@solibo/home-api 1.15.15 → 1.16.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 (64) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1019 -943
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +1 -1
  4. package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -0
  5. package/MultiplatformSettings-multiplatform-settings.mjs +1 -1
  6. package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
  7. package/kotlin-kotlin-stdlib.mjs +2223 -1914
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  9. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +1 -1
  10. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
  11. package/kotlinx-atomicfu.mjs +14 -14
  12. package/kotlinx-atomicfu.mjs.map +1 -0
  13. package/kotlinx-browser.mjs +1 -1
  14. package/kotlinx-browser.mjs.map +1 -0
  15. package/kotlinx-coroutines-core.mjs +2307 -2247
  16. package/kotlinx-coroutines-core.mjs.map +1 -0
  17. package/kotlinx-io-kotlinx-io-bytestring.mjs +41 -41
  18. package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
  19. package/kotlinx-io-kotlinx-io-core.mjs +474 -470
  20. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
  21. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1909 -1910
  22. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  23. package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +1 -1
  24. package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
  25. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1986 -1658
  26. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  27. package/ktor-ktor-client-auth.mjs +1 -1
  28. package/ktor-ktor-client-auth.mjs.map +1 -0
  29. package/ktor-ktor-client-content-negotiation.mjs +260 -234
  30. package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
  31. package/ktor-ktor-client-core.mjs +3240 -3326
  32. package/ktor-ktor-client-core.mjs.map +1 -0
  33. package/ktor-ktor-client-encoding.mjs +1 -1
  34. package/ktor-ktor-client-encoding.mjs.map +1 -0
  35. package/ktor-ktor-client-logging.mjs +1 -1
  36. package/ktor-ktor-client-logging.mjs.map +1 -0
  37. package/ktor-ktor-client-websockets.mjs +1 -1
  38. package/ktor-ktor-client-websockets.mjs.map +1 -0
  39. package/ktor-ktor-events.mjs +8 -8
  40. package/ktor-ktor-events.mjs.map +1 -0
  41. package/ktor-ktor-http-cio.mjs +525 -530
  42. package/ktor-ktor-http-cio.mjs.map +1 -0
  43. package/ktor-ktor-http.mjs +735 -766
  44. package/ktor-ktor-http.mjs.map +1 -0
  45. package/ktor-ktor-io.mjs +1502 -1279
  46. package/ktor-ktor-io.mjs.map +1 -0
  47. package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
  48. package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
  49. package/ktor-ktor-serialization-kotlinx.mjs +272 -389
  50. package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
  51. package/ktor-ktor-serialization.mjs +113 -142
  52. package/ktor-ktor-serialization.mjs.map +1 -0
  53. package/ktor-ktor-sse.mjs +1 -1
  54. package/ktor-ktor-sse.mjs.map +1 -0
  55. package/ktor-ktor-utils.mjs +812 -787
  56. package/ktor-ktor-utils.mjs.map +1 -0
  57. package/ktor-ktor-websocket-serialization.mjs +1 -1
  58. package/ktor-ktor-websocket-serialization.mjs.map +1 -0
  59. package/ktor-ktor-websockets.mjs +901 -862
  60. package/ktor-ktor-websockets.mjs.map +1 -0
  61. package/package.json +2 -2
  62. package/solibo-sdk-sdk-home-api.d.mts +127 -14
  63. package/solibo-sdk-sdk-home-api.mjs +110003 -108257
  64. package/solibo-sdk-sdk-home-api.mjs.map +1 -0
@@ -2,8 +2,8 @@ import {
2
2
  collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
3
3
  mapCapacity1h45rc3eh9p2l as mapCapacity,
4
4
  coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
5
- LinkedHashMap_init_$Create$1gzy1x4a46gd4 as LinkedHashMap_init_$Create$,
6
- Unit_instancev9v8hjid95df as Unit_instance,
5
+ LinkedHashMap_init_$Create$1gaaqjdgvat9g as LinkedHashMap_init_$Create$,
6
+ Unit_instance3vdlo4e4f5ggx as Unit_instance,
7
7
  protoOf180f3jzyo7rfj as protoOf,
8
8
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
9
9
  enumEntries20mr21zbe3az4 as enumEntries,
@@ -12,35 +12,42 @@ import {
12
12
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
13
13
  VOID3gxj6tk5isa35 as VOID,
14
14
  toString1pkumu07cwy4m as toString,
15
+ IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
15
16
  getStringHashCode26igk1bx568vk as getStringHashCode,
17
+ substringiqarkczpya5m as substring,
18
+ charCodeAt1yspne1d8erbm as charCodeAt,
19
+ Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
20
+ isHighSurrogate11jfjw70ar0zf as isHighSurrogate,
21
+ isLowSurrogateujxcv7hjn4ma as isLowSurrogate,
16
22
  initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
17
23
  isInterface3d6p8outrmvmk as isInterface,
18
- IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
19
24
  CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
20
25
  THROW_CCE2g6jy02ryeudk as THROW_CCE,
21
26
  get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
22
27
  initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
28
+ constructCallableReference23y65rf941mch as constructCallableReference,
23
29
  ensureNotNull1e947j3ixpazm as ensureNotNull,
24
- CancellationException_init_$Create$3ch6sfo7bilrl as CancellationException_init_$Create$,
30
+ CancellationException_init_$Create$3mozl5zk7b7i2 as CancellationException_init_$Create$,
25
31
  CancellationException3b36o9qz53rgr as CancellationException,
26
32
  initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
27
33
  toString30pk9tzaqopn as toString_0,
28
34
  fromInt2ii0rejb1w62w as fromInt,
29
- ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$,
30
- IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
35
+ ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
36
+ IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
31
37
  joinToString1cxrrlmo0chqs as joinToString,
32
38
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
33
39
  Exceptiondt2hlxn7j7vw as Exception,
34
- Exception_init_$Init$1giio8zw2zqqc as Exception_init_$Init$,
40
+ Exception_init_$Init$3okdru6mzytq2 as Exception_init_$Init$,
35
41
  captureStack1fzi4aczwc4hg as captureStack,
36
42
  defineProp3ur6h3slcvq4x as defineProp,
37
43
  compareTo3ankvs086tmwq as compareTo,
38
44
  decodeToString1dbzcjd620q25 as decodeToString,
39
45
  Randomei1bbeye8rr8 as Random,
46
+ toHexString5bhtjxqec7ow as toHexString,
40
47
  throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException,
41
48
  RuntimeException1r3t0zl97011n as RuntimeException,
42
- RuntimeException_init_$Init$2o5rfs7mzby0b as RuntimeException_init_$Init$,
43
- ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$_0,
49
+ RuntimeException_init_$Init$24zelexl34ubl as RuntimeException_init_$Init$,
50
+ ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$_0,
44
51
  split2bvyvnrlcifjv as split,
45
52
  first58ocm7j58k3q as first,
46
53
  isCharSequence1ju9jr1w86plq as isCharSequence,
@@ -49,39 +56,37 @@ import {
49
56
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
50
57
  } from './kotlin-kotlin-stdlib.mjs';
51
58
  import {
52
- Dispatchers_getInstance2p2r3ndn98nn as Dispatchers_getInstance,
59
+ Dispatchers_getInstance20p7pyqnrepag as Dispatchers_getInstance,
53
60
  launch1c91vkjzdi9sd as launch,
54
- CoroutineStart_UNDISPATCHED_getInstance3vhik5zct4e74 as CoroutineStart_UNDISPATCHED_getInstance,
61
+ CoroutineStart_UNDISPATCHED_getInstance2pq896dvru5v1 as CoroutineStart_UNDISPATCHED_getInstance,
55
62
  ChannelResult2y4k69ac6y3du as ChannelResult,
56
- _ChannelResult___get_isSuccess__impl__odq1z912b5ogo8613be as _ChannelResult___get_isSuccess__impl__odq1z9,
63
+ _ChannelResult___get_isSuccess__impl__odq1z9t6ktwy0g0q0f as _ChannelResult___get_isSuccess__impl__odq1z9,
57
64
  CoroutineScopefcb5f5dwqcas as CoroutineScope,
58
65
  cancelConsumed2i0oizqhmljf6 as cancelConsumed,
59
66
  ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
60
67
  ClosedReceiveChannelException3ofg6gf5f5b38 as ClosedReceiveChannelException,
61
68
  CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred,
62
69
  Job13y4jkazwjho0 as Job,
63
- Key_instance2rlngjw9v1qsd as Key_instance,
70
+ Key_instancebefxze3q9f64 as Key_instance,
64
71
  CoroutineName2g5zosw74tf0f as CoroutineName,
65
- Factory_getInstance3boxsed5qz5iy as Factory_getInstance,
72
+ Factory_getInstance32nnliw9sj63p as Factory_getInstance,
66
73
  DisposableHandle1uzxt8frdchxn as DisposableHandle,
67
74
  CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
68
75
  Channel3r72atmcithql as Channel,
69
- withTimeoutOrNull3fn9ef0keo2ht as withTimeoutOrNull,
70
- BufferOverflow_SUSPEND_getInstance3j24qbb4wnzlq as BufferOverflow_SUSPEND_getInstance,
71
- BufferOverflow_DROP_OLDEST_getInstance3u1027cpcc1wz as BufferOverflow_DROP_OLDEST_getInstance,
72
- _ChannelResult___get_isClosed__impl__mg7kuu1g5u2zmbzbfb4 as _ChannelResult___get_isClosed__impl__mg7kuu,
73
- close$default1evna6yun3t5h as close$default,
74
- cancel$default1fq6eekptkf7a as cancel$default,
75
- SendChannel38sllbxw662ws as SendChannel,
76
+ withTimeoutOrNull3qi35nuwr2k8a as withTimeoutOrNull,
77
+ BufferOverflow_SUSPEND_getInstanceob833ibjouyy as BufferOverflow_SUSPEND_getInstance,
78
+ BufferOverflow_DROP_OLDEST_getInstanceckq6sjfawt4w as BufferOverflow_DROP_OLDEST_getInstance,
79
+ _ChannelResult___get_isClosed__impl__mg7kuu3a26on4apn4j4 as _ChannelResult___get_isClosed__impl__mg7kuu,
80
+ close$defaultlxi0kykibhye as close$default,
81
+ cancel$default2imfx8rp1ubvu as cancel$default,
76
82
  ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
83
+ SendChannel38sllbxw662ws as SendChannel,
77
84
  } from './kotlinx-coroutines-core.mjs';
78
85
  import {
79
86
  get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
80
87
  ChannelIOException2i3t76lsrbgox as ChannelIOException,
81
88
  KtorSimpleLogger1xdphsp5l4e48 as KtorSimpleLogger,
82
- initCauseBridge1upxfqhavblt6 as initCauseBridge,
83
89
  getTimeMillis12o7k17x9fmwi as getTimeMillis,
84
- hex2ofqpe9ngcu1i as hex,
85
90
  } from './ktor-ktor-utils.mjs';
86
91
  import {
87
92
  BytePacketBuilder2biodf4wxvlba as BytePacketBuilder,
@@ -89,14 +94,14 @@ import {
89
94
  buildjygoh729rhy8 as build,
90
95
  get_size2imoy2jq11jxl as get_size,
91
96
  readText27783kyxjxi1g as readText,
92
- Charsets_getInstanceqkyjyusuh1b0 as Charsets_getInstance,
97
+ Charsets_getInstance3jooo7e4x0j2x as Charsets_getInstance,
93
98
  toByteArray1i3ns5jnoqlv6 as toByteArray,
94
99
  ClosedByteChannelException3il8gfpye60w as ClosedByteChannelException,
95
100
  writeText19qfzm98fbm4l as writeText,
96
101
  } from './ktor-ktor-io.mjs';
97
102
  import {
98
103
  readByteArray1ri21h2rciakw as readByteArray,
99
- IOException_init_$Create$1sfdrtkx2q59o as IOException_init_$Create$,
104
+ IOException_init_$Create$30ael4xxp8cz as IOException_init_$Create$,
100
105
  Buffergs925ekssbch as Buffer,
101
106
  } from './kotlinx-io-kotlinx-io-core.mjs';
102
107
  import {
@@ -109,13 +114,14 @@ var imul = Math.imul;
109
114
  //region block: pre-declaration
110
115
  initMetadataForCompanion(Companion);
111
116
  initMetadataForClass(Codes, 'Codes', VOID, Enum);
117
+ initMetadataForCompanion(Companion_0);
112
118
  initMetadataForClass(CloseReason, 'CloseReason');
113
119
  function send(frame, $completion) {
114
- return this.s32().s18(frame, $completion);
120
+ return this.l34().g19(frame, $completion);
115
121
  }
116
122
  initMetadataForInterface(WebSocketSession, 'WebSocketSession', VOID, VOID, [CoroutineScope], [1, 0]);
117
123
  initMetadataForInterface(DefaultWebSocketSession, 'DefaultWebSocketSession', VOID, VOID, [WebSocketSession], [1, 0]);
118
- initMetadataForCompanion(Companion_0);
124
+ initMetadataForCompanion(Companion_1);
119
125
  initMetadataForLambda(DefaultWebSocketSessionImpl$start$slambda, CoroutineImpl, VOID, [1]);
120
126
  initMetadataForLambda(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda, CoroutineImpl, VOID, [1]);
121
127
  initMetadataForLambda(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda, CoroutineImpl, VOID, [1]);
@@ -126,19 +132,19 @@ initMetadataForCoroutine($checkMaxFrameSizeCOROUTINE$, CoroutineImpl);
126
132
  initMetadataForClass(DefaultWebSocketSessionImpl, 'DefaultWebSocketSessionImpl', VOID, VOID, [DefaultWebSocketSession, WebSocketSession], [1, 0, 2]);
127
133
  initMetadataForObject(NonDisposableHandle, 'NonDisposableHandle', VOID, VOID, [DisposableHandle]);
128
134
  initMetadataForClass(FrameTooBigException, 'FrameTooBigException', VOID, Exception, [CopyableThrowable]);
129
- initMetadataForCompanion(Companion_1);
135
+ initMetadataForCompanion(Companion_2);
130
136
  initMetadataForClass(FrameType, 'FrameType', VOID, Enum);
131
137
  initMetadataForLambda(ponger$slambda, CoroutineImpl, VOID, [1]);
132
138
  initMetadataForLambda(pinger$slambda$slambda, CoroutineImpl, VOID, [1]);
133
139
  initMetadataForLambda(pinger$slambda$slambda_1, CoroutineImpl, VOID, [1]);
134
140
  initMetadataForLambda(pinger$slambda, CoroutineImpl, VOID, [1]);
135
- initMetadataForCompanion(Companion_2);
136
- initMetadataForClass(WebSocketChannelsConfig, 'WebSocketChannelsConfig', WebSocketChannelsConfig);
137
141
  initMetadataForCompanion(Companion_3);
142
+ initMetadataForClass(WebSocketChannelsConfig, 'WebSocketChannelsConfig', WebSocketChannelsConfig);
143
+ initMetadataForCompanion(Companion_4);
138
144
  initMetadataForClass(ChannelConfig, 'ChannelConfig');
139
145
  initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
140
- initMetadataForCompanion(Companion_4);
141
- initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
146
+ initMetadataForCompanion(Companion_5);
147
+ initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
142
148
  initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
143
149
  initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
144
150
  initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
@@ -150,7 +156,7 @@ initMetadataForClass(Text, 'Text', VOID, Frame);
150
156
  initMetadataForClass(Close, 'Close', Close_init_$Create$_0, Frame);
151
157
  initMetadataForClass(Ping, 'Ping', VOID, Frame);
152
158
  initMetadataForClass(Pong, 'Pong', VOID, Frame);
153
- initMetadataForCompanion(Companion_5);
159
+ initMetadataForCompanion(Companion_6);
154
160
  //endregion
155
161
  var Codes_NORMAL_instance;
156
162
  var Codes_GOING_AWAY_instance;
@@ -175,14 +181,14 @@ function Companion() {
175
181
  var _iterator__ex2g4s = this_0.t();
176
182
  while (_iterator__ex2g4s.u()) {
177
183
  var element = _iterator__ex2g4s.v();
178
- var tmp$ret$2 = element.h32_1;
184
+ var tmp$ret$2 = element.p33_1;
179
185
  destination.s2(tmp$ret$2, element);
180
186
  }
181
- tmp.i32_1 = destination;
182
- this.j32_1 = Codes_INTERNAL_ERROR_getInstance();
187
+ tmp.q33_1 = destination;
188
+ this.r33_1 = Codes_INTERNAL_ERROR_getInstance();
183
189
  }
184
- protoOf(Companion).k32 = function (code) {
185
- return this.i32_1.z2(code);
190
+ protoOf(Companion).s33 = function (code) {
191
+ return this.q33_1.z2(code);
186
192
  };
187
193
  var Companion_instance;
188
194
  function Companion_getInstance() {
@@ -220,7 +226,7 @@ function Codes_initEntries() {
220
226
  }
221
227
  var $ENTRIES;
222
228
  function CloseReason_init_$Init$(code, message, $this) {
223
- CloseReason.call($this, code.h32_1, message);
229
+ CloseReason.call($this, code.p33_1, message);
224
230
  return $this;
225
231
  }
226
232
  function CloseReason_init_$Create$(code, message) {
@@ -228,7 +234,13 @@ function CloseReason_init_$Create$(code, message) {
228
234
  }
229
235
  function Codes(name, ordinal, code) {
230
236
  Enum.call(this, name, ordinal);
231
- this.h32_1 = code;
237
+ this.p33_1 = code;
238
+ }
239
+ function Companion_0() {
240
+ }
241
+ var Companion_instance_0;
242
+ function Companion_getInstance_0() {
243
+ return Companion_instance_0;
232
244
  }
233
245
  function Codes_NORMAL_getInstance() {
234
246
  Codes_initEntries();
@@ -279,19 +291,25 @@ function Codes_TRY_AGAIN_LATER_getInstance() {
279
291
  return Codes_TRY_AGAIN_LATER_instance;
280
292
  }
281
293
  function CloseReason(code, message) {
282
- this.l32_1 = code;
283
- this.m32_1 = message;
294
+ this.t33_1 = code;
295
+ this.u33_1 = message;
296
+ var size = utf8Size(this.u33_1);
297
+ // Inline function 'kotlin.require' call
298
+ if (!(size <= 123)) {
299
+ var message_0 = 'Close reason message is too long: ' + size + ' bytes, but must not exceed ' + '123 bytes when UTF-8-encoded';
300
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
301
+ }
284
302
  }
285
- protoOf(CloseReason).n32 = function () {
286
- return Companion_getInstance().k32(this.l32_1);
303
+ protoOf(CloseReason).v33 = function () {
304
+ return Companion_getInstance().s33(this.t33_1);
287
305
  };
288
306
  protoOf(CloseReason).toString = function () {
289
- var tmp0_elvis_lhs = this.n32();
290
- return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.l32_1 : tmp0_elvis_lhs) + ', message=' + this.m32_1 + ')';
307
+ var tmp0_elvis_lhs = this.v33();
308
+ return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.t33_1 : tmp0_elvis_lhs) + ', message=' + this.u33_1 + ')';
291
309
  };
292
310
  protoOf(CloseReason).hashCode = function () {
293
- var result = this.l32_1;
294
- result = imul(result, 31) + getStringHashCode(this.m32_1) | 0;
311
+ var result = this.t33_1;
312
+ result = imul(result, 31) + getStringHashCode(this.u33_1) | 0;
295
313
  return result;
296
314
  };
297
315
  protoOf(CloseReason).equals = function (other) {
@@ -299,12 +317,47 @@ protoOf(CloseReason).equals = function (other) {
299
317
  return true;
300
318
  if (!(other instanceof CloseReason))
301
319
  return false;
302
- if (!(this.l32_1 === other.l32_1))
320
+ if (!(this.t33_1 === other.t33_1))
303
321
  return false;
304
- if (!(this.m32_1 === other.m32_1))
322
+ if (!(this.u33_1 === other.u33_1))
305
323
  return false;
306
324
  return true;
307
325
  };
326
+ function utf8Size(_this__u8e3s4) {
327
+ var size = 0;
328
+ var index = 0;
329
+ while (index < _this__u8e3s4.length) {
330
+ var bytes = utf8ByteCountAt(_this__u8e3s4, index);
331
+ size = size + bytes | 0;
332
+ index = index + (bytes === 4 ? 2 : 1) | 0;
333
+ }
334
+ return size;
335
+ }
336
+ function utf8Truncate(_this__u8e3s4, maxSize) {
337
+ var size = 0;
338
+ var index = 0;
339
+ $l$loop: while (index < _this__u8e3s4.length) {
340
+ var bytes = utf8ByteCountAt(_this__u8e3s4, index);
341
+ if ((size + bytes | 0) > maxSize)
342
+ break $l$loop;
343
+ size = size + bytes | 0;
344
+ index = index + (bytes === 4 ? 2 : 1) | 0;
345
+ }
346
+ return index === _this__u8e3s4.length ? _this__u8e3s4 : substring(_this__u8e3s4, 0, index);
347
+ }
348
+ function utf8ByteCountAt(_this__u8e3s4, index) {
349
+ // Inline function 'kotlin.code' call
350
+ var this_0 = charCodeAt(_this__u8e3s4, index);
351
+ var code = Char__toInt_impl_vasixd(this_0);
352
+ return code < 128 ? 1 : code < 2048 ? 2 : isHighSurrogate(charCodeAt(_this__u8e3s4, index)) && (index + 1 | 0) < _this__u8e3s4.length && isLowSurrogate(charCodeAt(_this__u8e3s4, index + 1 | 0)) ? 4 : 3;
353
+ }
354
+ function validateSize(_this__u8e3s4) {
355
+ // Inline function 'kotlin.require' call
356
+ if (!(!_this__u8e3s4.b34_1.y33_1 || _this__u8e3s4.c34_1.length <= 125)) {
357
+ var message = 'Control frames must not exceed 125 bytes per RFC 6455, ' + ('but ' + _this__u8e3s4.b34_1.toString() + ' frame has ' + _this__u8e3s4.c34_1.length + ' bytes');
358
+ throw IllegalArgumentException_init_$Create$(toString(message));
359
+ }
360
+ }
308
361
  function get_LOGGER() {
309
362
  _init_properties_DefaultWebSocketSession_kt__469s0y();
310
363
  return LOGGER;
@@ -331,230 +384,228 @@ function DefaultWebSocketSession() {
331
384
  function DefaultWebSocketSession_0(session, pingIntervalMillis, timeoutMillis, channelsConfig) {
332
385
  pingIntervalMillis = pingIntervalMillis === VOID ? 0n : pingIntervalMillis;
333
386
  timeoutMillis = timeoutMillis === VOID ? 15000n : timeoutMillis;
334
- channelsConfig = channelsConfig === VOID ? Companion_getInstance_2().u32_1 : channelsConfig;
387
+ channelsConfig = channelsConfig === VOID ? Companion_getInstance_3().n34_1 : channelsConfig;
335
388
  _init_properties_DefaultWebSocketSession_kt__469s0y();
336
389
  // Inline function 'kotlin.require' call
337
390
  if (!!isInterface(session, DefaultWebSocketSession)) {
338
391
  var message = 'Cannot wrap other DefaultWebSocketSession';
339
392
  throw IllegalArgumentException_init_$Create$(toString(message));
340
393
  }
341
- return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.v32_1, channelsConfig.w32_1);
394
+ return new DefaultWebSocketSessionImpl(session, pingIntervalMillis, timeoutMillis, channelsConfig.o34_1, channelsConfig.p34_1);
342
395
  }
343
396
  function runIncomingProcessor($this, ponger) {
344
- var tmp = get_IncomingProcessorCoroutineName().hf(Dispatchers_getInstance().k12_1);
397
+ var tmp = get_IncomingProcessorCoroutineName().vf(Dispatchers_getInstance().y12_1);
345
398
  return launch($this, tmp, VOID, DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0($this, ponger, null));
346
399
  }
347
400
  function runOutgoingProcessor($this) {
348
- var tmp = get_OutgoingProcessorCoroutineName().hf(Dispatchers_getInstance().k12_1);
401
+ var tmp = get_OutgoingProcessorCoroutineName().vf(Dispatchers_getInstance().y12_1);
349
402
  var tmp_0 = CoroutineStart_UNDISPATCHED_getInstance();
350
403
  return launch($this, tmp, tmp_0, DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0($this, null));
351
404
  }
352
405
  function outgoingProcessorLoop($this, $completion) {
353
406
  var tmp = new $outgoingProcessorLoopCOROUTINE$($this, $completion);
354
- tmp.l8_1 = Unit_instance;
355
- tmp.m8_1 = null;
356
- return tmp.r8();
407
+ tmp.m8_1 = Unit_instance;
408
+ tmp.n8_1 = null;
409
+ return tmp.s8();
357
410
  }
358
411
  function sendCloseSequence($this, reason, exception, $completion) {
359
412
  exception = exception === VOID ? null : exception;
360
413
  var tmp = new $sendCloseSequenceCOROUTINE$($this, reason, exception, $completion);
361
- tmp.l8_1 = Unit_instance;
362
- tmp.m8_1 = null;
363
- return tmp.r8();
414
+ tmp.m8_1 = Unit_instance;
415
+ tmp.n8_1 = null;
416
+ return tmp.s8();
364
417
  }
365
418
  function tryClose($this) {
366
- return $this.b34_1.atomicfu$compareAndSet(false, true);
419
+ return $this.u35_1.atomicfu$compareAndSet(false, true);
367
420
  }
368
421
  function runOrCancelPinger($this) {
369
- var interval = $this.e34_1;
422
+ var interval = $this.x35_1;
370
423
  var tmp;
371
- if ($this.b34_1.kotlinx$atomicfu$value) {
424
+ if ($this.u35_1.kotlinx$atomicfu$value) {
372
425
  tmp = null;
373
426
  } else if (interval > 0n) {
374
- var tmp_0 = $this.u33_1.s32();
375
- var tmp_1 = $this.f34_1;
427
+ var tmp_0 = $this.n35_1.l34();
428
+ var tmp_1 = $this.y35_1;
376
429
  tmp = pinger($this, tmp_0, interval, tmp_1, DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0($this, null));
377
430
  } else {
378
431
  tmp = null;
379
432
  }
380
433
  var newPinger = tmp;
381
- var tmp0_safe_receiver = $this.v33_1.atomicfu$getAndSet(newPinger);
434
+ var tmp0_safe_receiver = $this.o35_1.atomicfu$getAndSet(newPinger);
382
435
  if (tmp0_safe_receiver == null)
383
436
  null;
384
437
  else
385
- tmp0_safe_receiver.a19();
386
- var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.t18(Companion_getInstance_0().h34_1));
438
+ tmp0_safe_receiver.n19();
439
+ var tmp2_safe_receiver = newPinger == null ? null : new ChannelResult(newPinger.h19(Companion_getInstance_1().a36_1));
387
440
  if (tmp2_safe_receiver == null)
388
441
  null;
389
442
  else
390
- _ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.d17_1);
391
- if ($this.b34_1.kotlinx$atomicfu$value && !(newPinger == null)) {
443
+ _ChannelResult___get_isSuccess__impl__odq1z9(tmp2_safe_receiver.r17_1);
444
+ if ($this.u35_1.kotlinx$atomicfu$value && !(newPinger == null)) {
392
445
  runOrCancelPinger($this);
393
446
  }
394
447
  }
395
448
  function checkMaxFrameSize($this, packet, frame, $completion) {
396
449
  var tmp = new $checkMaxFrameSizeCOROUTINE$($this, packet, frame, $completion);
397
- tmp.l8_1 = Unit_instance;
398
- tmp.m8_1 = null;
399
- return tmp.r8();
450
+ tmp.m8_1 = Unit_instance;
451
+ tmp.n8_1 = null;
452
+ return tmp.s8();
400
453
  }
401
454
  function processIncomingExtensions($this, frame) {
402
455
  // Inline function 'kotlin.collections.fold' call
403
456
  var accumulator = frame;
404
- var _iterator__ex2g4s = $this.u34().t();
457
+ var _iterator__ex2g4s = $this.n36().t();
405
458
  while (_iterator__ex2g4s.u()) {
406
459
  var element = _iterator__ex2g4s.v();
407
460
  var current = accumulator;
408
- accumulator = element.v34(current);
461
+ accumulator = element.o36(current);
409
462
  }
410
463
  return accumulator;
411
464
  }
412
465
  function processOutgoingExtensions($this, frame) {
413
466
  // Inline function 'kotlin.collections.fold' call
414
467
  var accumulator = frame;
415
- var _iterator__ex2g4s = $this.u34().t();
468
+ var _iterator__ex2g4s = $this.n36().t();
416
469
  while (_iterator__ex2g4s.u()) {
417
470
  var element = _iterator__ex2g4s.v();
418
471
  var current = accumulator;
419
- accumulator = element.w34(current);
472
+ accumulator = element.p36(current);
420
473
  }
421
474
  return accumulator;
422
475
  }
423
- function Companion_0() {
424
- Companion_instance_0 = this;
425
- this.h34_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
476
+ function Companion_1() {
477
+ Companion_instance_1 = this;
478
+ this.a36_1 = new Pong(new Int8Array(0), NonDisposableHandle_instance);
426
479
  }
427
- var Companion_instance_0;
428
- function Companion_getInstance_0() {
429
- if (Companion_instance_0 == null)
430
- new Companion_0();
431
- return Companion_instance_0;
480
+ var Companion_instance_1;
481
+ function Companion_getInstance_1() {
482
+ if (Companion_instance_1 == null)
483
+ new Companion_1();
484
+ return Companion_instance_1;
432
485
  }
433
486
  function DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation) {
434
- this.f35_1 = $incomingJob;
435
- this.g35_1 = $outgoingJob;
436
- this.h35_1 = this$0;
487
+ this.y36_1 = $incomingJob;
488
+ this.z36_1 = $outgoingJob;
489
+ this.a37_1 = this$0;
437
490
  CoroutineImpl.call(this, resultContinuation);
438
491
  }
439
- protoOf(DefaultWebSocketSessionImpl$start$slambda).o1p = function ($this$launch, $completion) {
440
- var tmp = this.p1p($this$launch, $completion);
441
- tmp.l8_1 = Unit_instance;
442
- tmp.m8_1 = null;
443
- return tmp.r8();
492
+ protoOf(DefaultWebSocketSessionImpl$start$slambda).j1q = function ($this$launch, $completion) {
493
+ var tmp = this.k1q($this$launch, $completion);
494
+ tmp.m8_1 = Unit_instance;
495
+ tmp.n8_1 = null;
496
+ return tmp.s8();
444
497
  };
445
- protoOf(DefaultWebSocketSessionImpl$start$slambda).d9 = function (p1, $completion) {
446
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
498
+ protoOf(DefaultWebSocketSessionImpl$start$slambda).f9 = function (p1, $completion) {
499
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
447
500
  };
448
- protoOf(DefaultWebSocketSessionImpl$start$slambda).r8 = function () {
449
- var suspendResult = this.l8_1;
501
+ protoOf(DefaultWebSocketSessionImpl$start$slambda).s8 = function () {
502
+ var suspendResult = this.m8_1;
450
503
  $sm: do
451
504
  try {
452
- var tmp = this.j8_1;
505
+ var tmp = this.k8_1;
453
506
  switch (tmp) {
454
507
  case 0:
455
- this.k8_1 = 3;
456
- this.j8_1 = 1;
457
- suspendResult = this.f35_1.at(this);
508
+ this.l8_1 = 3;
509
+ this.k8_1 = 1;
510
+ suspendResult = this.y36_1.ot(this);
458
511
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
459
512
  return suspendResult;
460
513
  }
461
514
 
462
515
  continue $sm;
463
516
  case 1:
464
- this.j8_1 = 2;
465
- suspendResult = this.g35_1.at(this);
517
+ this.k8_1 = 2;
518
+ suspendResult = this.z36_1.ot(this);
466
519
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
467
520
  return suspendResult;
468
521
  }
469
522
 
470
523
  continue $sm;
471
524
  case 2:
472
- this.h35_1.x33_1.et();
525
+ this.a37_1.q35_1.st();
473
526
  return Unit_instance;
474
527
  case 3:
475
- throw this.m8_1;
528
+ throw this.n8_1;
476
529
  }
477
530
  } catch ($p) {
478
531
  var e = $p;
479
- if (this.k8_1 === 3) {
532
+ if (this.l8_1 === 3) {
480
533
  throw e;
481
534
  } else {
482
- this.j8_1 = this.k8_1;
483
- this.m8_1 = e;
535
+ this.k8_1 = this.l8_1;
536
+ this.n8_1 = e;
484
537
  }
485
538
  }
486
539
  while (true);
487
540
  };
488
- protoOf(DefaultWebSocketSessionImpl$start$slambda).p1p = function ($this$launch, completion) {
489
- var i = new DefaultWebSocketSessionImpl$start$slambda(this.f35_1, this.g35_1, this.h35_1, completion);
490
- i.i35_1 = $this$launch;
541
+ protoOf(DefaultWebSocketSessionImpl$start$slambda).k1q = function ($this$launch, completion) {
542
+ var i = new DefaultWebSocketSessionImpl$start$slambda(this.y36_1, this.z36_1, this.a37_1, completion);
543
+ i.b37_1 = $this$launch;
491
544
  return i;
492
545
  };
493
546
  function DefaultWebSocketSessionImpl$start$slambda_0($incomingJob, $outgoingJob, this$0, resultContinuation) {
494
547
  var i = new DefaultWebSocketSessionImpl$start$slambda($incomingJob, $outgoingJob, this$0, resultContinuation);
495
- var l = function ($this$launch, $completion) {
496
- return i.o1p($this$launch, $completion);
497
- };
498
- l.$arity = 1;
499
- return l;
548
+ return constructCallableReference(function ($this$launch, $completion) {
549
+ return i.j1q($this$launch, $completion);
550
+ }, 1);
500
551
  }
501
552
  function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation) {
502
- this.r35_1 = this$0;
503
- this.s35_1 = $ponger;
553
+ this.k37_1 = this$0;
554
+ this.l37_1 = $ponger;
504
555
  CoroutineImpl.call(this, resultContinuation);
505
556
  }
506
- protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).o1p = function ($this$launch, $completion) {
507
- var tmp = this.p1p($this$launch, $completion);
508
- tmp.l8_1 = Unit_instance;
509
- tmp.m8_1 = null;
510
- return tmp.r8();
557
+ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).j1q = function ($this$launch, $completion) {
558
+ var tmp = this.k1q($this$launch, $completion);
559
+ tmp.m8_1 = Unit_instance;
560
+ tmp.n8_1 = null;
561
+ return tmp.s8();
511
562
  };
512
- protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).d9 = function (p1, $completion) {
513
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
563
+ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).f9 = function (p1, $completion) {
564
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
514
565
  };
515
- protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function () {
516
- var suspendResult = this.l8_1;
566
+ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).s8 = function () {
567
+ var suspendResult = this.m8_1;
517
568
  $sm: do
518
569
  try {
519
- var tmp = this.j8_1;
570
+ var tmp = this.k8_1;
520
571
  switch (tmp) {
521
572
  case 0:
522
- this.k8_1 = 39;
523
- this.d36_1 = null;
524
- this.w35_1 = null;
525
- this.v35_1 = false;
526
- this.x35_1 = Unit_instance;
527
- this.j8_1 = 1;
573
+ this.l8_1 = 39;
574
+ this.w37_1 = null;
575
+ this.p37_1 = null;
576
+ this.o37_1 = false;
577
+ this.q37_1 = Unit_instance;
578
+ this.k8_1 = 1;
528
579
  continue $sm;
529
580
  case 1:
530
- this.j8_1 = 2;
581
+ this.k8_1 = 2;
531
582
  continue $sm;
532
583
  case 2:
533
- this.k8_1 = 33;
534
- this.k8_1 = 32;
535
- this.h36_1 = this.r35_1.u33_1.r32();
536
- this.j8_1 = 3;
584
+ this.l8_1 = 33;
585
+ this.l8_1 = 32;
586
+ this.a38_1 = this.k37_1.n35_1.k34();
587
+ this.k8_1 = 3;
537
588
  continue $sm;
538
589
  case 3:
539
- this.a36_1 = this.h36_1;
540
- this.z35_1 = null;
541
- this.j8_1 = 4;
590
+ this.t37_1 = this.a38_1;
591
+ this.s37_1 = null;
592
+ this.k8_1 = 4;
542
593
  continue $sm;
543
594
  case 4:
544
- this.j8_1 = 5;
595
+ this.k8_1 = 5;
545
596
  continue $sm;
546
597
  case 5:
547
- this.j8_1 = 6;
598
+ this.k8_1 = 6;
548
599
  continue $sm;
549
600
  case 6:
550
- this.k8_1 = 29;
551
- this.k8_1 = 28;
552
- this.g36_1 = this.a36_1.t();
553
- this.j8_1 = 7;
601
+ this.l8_1 = 29;
602
+ this.l8_1 = 28;
603
+ this.z37_1 = this.t37_1.t();
604
+ this.k8_1 = 7;
554
605
  continue $sm;
555
606
  case 7:
556
- this.j8_1 = 8;
557
- suspendResult = this.g36_1.v16(this);
607
+ this.k8_1 = 8;
608
+ suspendResult = this.z37_1.j17(this);
558
609
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
559
610
  return suspendResult;
560
611
  }
@@ -562,46 +613,46 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
562
613
  continue $sm;
563
614
  case 8:
564
615
  if (!suspendResult) {
565
- this.j8_1 = 26;
616
+ this.k8_1 = 26;
566
617
  continue $sm;
567
618
  }
568
619
 
569
- var e = this.g36_1.v();
570
- this.f36_1 = e;
571
- this.j8_1 = 9;
620
+ var e = this.z37_1.v();
621
+ this.y37_1 = e;
622
+ this.k8_1 = 9;
572
623
  continue $sm;
573
624
  case 9:
574
- this.e36_1 = this.f36_1;
625
+ this.x37_1 = this.y37_1;
575
626
  var this_0 = get_LOGGER();
576
627
  if (get_isTraceEnabled(this_0)) {
577
- this_0.h2j('WebSocketSession(' + toString(this.t35_1) + ') receiving frame ' + this.e36_1.toString());
628
+ this_0.c2k('WebSocketSession(' + toString(this.m37_1) + ') receiving frame ' + this.x37_1.toString());
578
629
  }
579
630
 
580
- var tmp0_subject = this.e36_1;
631
+ var tmp0_subject = this.x37_1;
581
632
  if (tmp0_subject instanceof Close) {
582
- if (!this.r35_1.s32().x16()) {
583
- this.j8_1 = 18;
584
- var tmp_0 = this.r35_1.s32();
585
- var tmp1_elvis_lhs = readReason(this.e36_1);
586
- suspendResult = tmp_0.s18(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
633
+ if (!this.k37_1.l34().l17()) {
634
+ this.k8_1 = 18;
635
+ var tmp_0 = this.k37_1.l34();
636
+ var tmp1_elvis_lhs = readReason(this.x37_1);
637
+ suspendResult = tmp_0.g19(Close_init_$Create$(tmp1_elvis_lhs == null ? get_NORMAL_CLOSE() : tmp1_elvis_lhs), this);
587
638
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
588
639
  return suspendResult;
589
640
  }
590
641
  continue $sm;
591
642
  } else {
592
- this.j8_1 = 19;
643
+ this.k8_1 = 19;
593
644
  continue $sm;
594
645
  }
595
646
  } else {
596
647
  if (tmp0_subject instanceof Pong) {
597
- var tmp2_safe_receiver = this.r35_1.v33_1.kotlinx$atomicfu$value;
648
+ var tmp2_safe_receiver = this.k37_1.o35_1.kotlinx$atomicfu$value;
598
649
  if (tmp2_safe_receiver == null) {
599
- this.c36_1 = null;
600
- this.j8_1 = 17;
650
+ this.v37_1 = null;
651
+ this.k8_1 = 17;
601
652
  continue $sm;
602
653
  } else {
603
- this.j8_1 = 16;
604
- suspendResult = tmp2_safe_receiver.s18(this.e36_1, this);
654
+ this.k8_1 = 16;
655
+ suspendResult = tmp2_safe_receiver.g19(this.x37_1, this);
605
656
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
606
657
  return suspendResult;
607
658
  }
@@ -609,15 +660,15 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
609
660
  }
610
661
  } else {
611
662
  if (tmp0_subject instanceof Ping) {
612
- this.j8_1 = 15;
613
- suspendResult = this.s35_1.s18(this.e36_1, this);
663
+ this.k8_1 = 15;
664
+ suspendResult = this.l37_1.g19(this.x37_1, this);
614
665
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
615
666
  return suspendResult;
616
667
  }
617
668
  continue $sm;
618
669
  } else {
619
- this.j8_1 = 10;
620
- suspendResult = checkMaxFrameSize(this.r35_1, this.w35_1, this.e36_1, this);
670
+ this.k8_1 = 10;
671
+ suspendResult = checkMaxFrameSize(this.k37_1, this.p37_1, this.x37_1, this);
621
672
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
622
673
  return suspendResult;
623
674
  }
@@ -627,40 +678,40 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
627
678
  }
628
679
 
629
680
  case 10:
630
- if (!this.e36_1.i36_1) {
631
- if (this.d36_1 == null) {
632
- this.d36_1 = this.e36_1;
681
+ if (!this.x37_1.a34_1) {
682
+ if (this.w37_1 == null) {
683
+ this.w37_1 = this.x37_1;
633
684
  }
634
- if (this.w35_1 == null) {
635
- this.w35_1 = BytePacketBuilder();
685
+ if (this.p37_1 == null) {
686
+ this.p37_1 = BytePacketBuilder();
636
687
  }
637
- writeFully(this.w35_1, this.e36_1.k36_1);
638
- this.j8_1 = 21;
688
+ writeFully(this.p37_1, this.x37_1.c34_1);
689
+ this.k8_1 = 21;
639
690
  continue $sm;
640
691
  } else {
641
- this.j8_1 = 11;
692
+ this.k8_1 = 11;
642
693
  continue $sm;
643
694
  }
644
695
 
645
696
  case 11:
646
- if (this.d36_1 == null) {
647
- this.j8_1 = 14;
648
- suspendResult = this.r35_1.z33_1.s18(processIncomingExtensions(this.r35_1, this.e36_1), this);
697
+ if (this.w37_1 == null) {
698
+ this.k8_1 = 14;
699
+ suspendResult = this.k37_1.s35_1.g19(processIncomingExtensions(this.k37_1, this.x37_1), this);
649
700
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
650
701
  return suspendResult;
651
702
  }
652
703
  continue $sm;
653
704
  } else {
654
- this.j8_1 = 12;
705
+ this.k8_1 = 12;
655
706
  continue $sm;
656
707
  }
657
708
 
658
709
  case 12:
659
- writeFully(ensureNotNull(this.w35_1), this.e36_1.k36_1);
660
- var defragmented = Companion_getInstance_5().q36(true, this.d36_1.j36_1, readByteArray(build(this.w35_1)), this.d36_1.m36_1, this.d36_1.n36_1, this.d36_1.o36_1);
661
- this.d36_1 = null;
662
- this.j8_1 = 13;
663
- suspendResult = this.r35_1.z33_1.s18(processIncomingExtensions(this.r35_1, defragmented), this);
710
+ writeFully(ensureNotNull(this.p37_1), this.x37_1.c34_1);
711
+ var defragmented = Companion_getInstance_6().c38(true, this.w37_1.b34_1, readByteArray(build(this.p37_1)), this.w37_1.e34_1, this.w37_1.f34_1, this.w37_1.g34_1);
712
+ this.w37_1 = null;
713
+ this.k8_1 = 13;
714
+ suspendResult = this.k37_1.s35_1.g19(processIncomingExtensions(this.k37_1, defragmented), this);
664
715
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
665
716
  return suspendResult;
666
717
  }
@@ -668,316 +719,314 @@ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).r8 = function
668
719
  continue $sm;
669
720
  case 13:
670
721
  var tmp_1 = this;
671
- tmp_1.b36_1 = Unit_instance;
672
- this.j8_1 = 20;
722
+ tmp_1.u37_1 = Unit_instance;
723
+ this.k8_1 = 20;
673
724
  continue $sm;
674
725
  case 14:
675
- this.j8_1 = 21;
726
+ this.k8_1 = 21;
676
727
  continue $sm;
677
728
  case 15:
678
729
  var tmp_2 = this;
679
- tmp_2.b36_1 = Unit_instance;
680
- this.j8_1 = 20;
730
+ tmp_2.u37_1 = Unit_instance;
731
+ this.k8_1 = 20;
681
732
  continue $sm;
682
733
  case 16:
683
734
  var tmp_3 = this;
684
- tmp_3.c36_1 = Unit_instance;
685
- this.j8_1 = 17;
735
+ tmp_3.v37_1 = Unit_instance;
736
+ this.k8_1 = 17;
686
737
  continue $sm;
687
738
  case 17:
688
- this.b36_1 = this.c36_1;
689
- this.j8_1 = 20;
739
+ this.u37_1 = this.v37_1;
740
+ this.k8_1 = 20;
690
741
  continue $sm;
691
742
  case 18:
692
- this.j8_1 = 19;
743
+ this.k8_1 = 19;
693
744
  continue $sm;
694
745
  case 19:
695
- this.v35_1 = true;
696
- this.j8_1 = 22;
746
+ this.o37_1 = true;
747
+ this.k8_1 = 22;
697
748
  var tmp_4 = this;
698
749
  continue $sm;
699
750
  case 20:
700
751
  if (false) {
701
- this.j8_1 = 9;
752
+ this.k8_1 = 9;
702
753
  continue $sm;
703
754
  }
704
755
 
705
- this.j8_1 = 21;
756
+ this.k8_1 = 21;
706
757
  continue $sm;
707
758
  case 21:
708
- this.j8_1 = 7;
759
+ this.k8_1 = 7;
709
760
  continue $sm;
710
761
  case 22:
711
- this.k8_1 = 32;
712
- cancelConsumed(this.a36_1, this.z35_1);
713
- this.k8_1 = 39;
714
- this.j8_1 = 23;
762
+ this.l8_1 = 32;
763
+ cancelConsumed(this.t37_1, this.s37_1);
764
+ this.l8_1 = 39;
765
+ this.k8_1 = 23;
715
766
  continue $sm;
716
767
  case 23:
717
- this.k8_1 = 39;
718
- this.s35_1.a19();
719
- var tmp0_safe_receiver = this.w35_1;
768
+ this.l8_1 = 39;
769
+ this.l37_1.n19();
770
+ var tmp0_safe_receiver = this.p37_1;
720
771
  if (tmp0_safe_receiver == null)
721
772
  null;
722
773
  else {
723
774
  tmp0_safe_receiver.j4();
724
775
  }
725
776
 
726
- this.r35_1.z33_1.a19();
727
- if (!this.v35_1) {
728
- this.j8_1 = 24;
729
- suspendResult = close(this.r35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
777
+ this.k37_1.s35_1.n19();
778
+ if (!this.o37_1) {
779
+ this.k8_1 = 24;
780
+ suspendResult = close(this.k37_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
730
781
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
731
782
  return suspendResult;
732
783
  }
733
784
  continue $sm;
734
785
  } else {
735
- this.j8_1 = 25;
786
+ this.k8_1 = 25;
736
787
  continue $sm;
737
788
  }
738
789
 
739
790
  case 24:
740
- this.j8_1 = 25;
791
+ this.k8_1 = 25;
741
792
  continue $sm;
742
793
  case 25:
743
794
  var tmp_5 = this;
744
795
  return Unit_instance;
745
796
  case 26:
746
- this.j8_1 = 27;
797
+ this.k8_1 = 27;
747
798
  var tmp_6 = this;
748
799
  continue $sm;
749
800
  case 27:
750
- this.k8_1 = 32;
751
- cancelConsumed(this.a36_1, this.z35_1);
752
- this.j8_1 = 31;
801
+ this.l8_1 = 32;
802
+ cancelConsumed(this.t37_1, this.s37_1);
803
+ this.k8_1 = 31;
753
804
  continue $sm;
754
805
  case 28:
755
- this.k8_1 = 29;
756
- var tmp_7 = this.m8_1;
806
+ this.l8_1 = 29;
807
+ var tmp_7 = this.n8_1;
757
808
  if (tmp_7 instanceof Error) {
758
- var e_0 = this.m8_1;
809
+ var e_0 = this.n8_1;
759
810
  var tmp_8 = this;
760
- this.z35_1 = e_0;
811
+ this.s37_1 = e_0;
761
812
  throw e_0;
762
813
  } else {
763
- throw this.m8_1;
814
+ throw this.n8_1;
764
815
  }
765
816
 
766
817
  case 29:
767
- this.k8_1 = 32;
768
- var t = this.m8_1;
769
- cancelConsumed(this.a36_1, this.z35_1);
818
+ this.l8_1 = 32;
819
+ var t = this.n8_1;
820
+ cancelConsumed(this.t37_1, this.s37_1);
770
821
  throw t;
771
822
  case 30:
772
- this.k8_1 = 32;
773
- cancelConsumed(this.a36_1, this.z35_1);
823
+ this.l8_1 = 32;
824
+ cancelConsumed(this.t37_1, this.s37_1);
774
825
  if (false) {
775
- this.j8_1 = 3;
826
+ this.k8_1 = 3;
776
827
  continue $sm;
777
828
  }
778
829
 
779
- this.j8_1 = 31;
830
+ this.k8_1 = 31;
780
831
  continue $sm;
781
832
  case 31:
782
- this.x35_1 = Unit_instance;
783
- this.k8_1 = 39;
784
- this.j8_1 = 36;
833
+ this.q37_1 = Unit_instance;
834
+ this.l8_1 = 39;
835
+ this.k8_1 = 36;
785
836
  continue $sm;
786
837
  case 32:
787
- this.k8_1 = 33;
788
- var tmp_9 = this.m8_1;
838
+ this.l8_1 = 33;
839
+ var tmp_9 = this.n8_1;
789
840
  if (tmp_9 instanceof ClosedSendChannelException) {
790
- var _unused_var__etf5q3 = this.m8_1;
841
+ var _unused_var__etf5q3 = this.n8_1;
791
842
  var tmp_10 = this;
792
- tmp_10.x35_1 = Unit_instance;
793
- this.k8_1 = 39;
794
- this.j8_1 = 36;
843
+ tmp_10.q37_1 = Unit_instance;
844
+ this.l8_1 = 39;
845
+ this.k8_1 = 36;
795
846
  continue $sm;
796
847
  } else {
797
- var tmp_11 = this.m8_1;
848
+ var tmp_11 = this.n8_1;
798
849
  if (tmp_11 instanceof Error) {
799
- var cause = this.m8_1;
850
+ var cause = this.n8_1;
800
851
  var tmp_12 = this;
801
- this.s35_1.a19();
802
- tmp_12.x35_1 = this.r35_1.z33_1.y18(cause);
803
- this.k8_1 = 39;
804
- this.j8_1 = 36;
852
+ this.l37_1.n19();
853
+ tmp_12.q37_1 = this.k37_1.s35_1.l19(cause);
854
+ this.l8_1 = 39;
855
+ this.k8_1 = 36;
805
856
  continue $sm;
806
857
  } else {
807
- throw this.m8_1;
858
+ throw this.n8_1;
808
859
  }
809
860
  }
810
861
 
811
862
  case 33:
812
- this.k8_1 = 39;
813
- this.y35_1 = this.m8_1;
814
- this.s35_1.a19();
815
- var tmp0_safe_receiver_0 = this.w35_1;
863
+ this.l8_1 = 39;
864
+ this.r37_1 = this.n8_1;
865
+ this.l37_1.n19();
866
+ var tmp0_safe_receiver_0 = this.p37_1;
816
867
  if (tmp0_safe_receiver_0 == null)
817
868
  null;
818
869
  else {
819
870
  tmp0_safe_receiver_0.j4();
820
871
  }
821
872
 
822
- this.r35_1.z33_1.a19();
823
- if (!this.v35_1) {
824
- this.j8_1 = 34;
825
- suspendResult = close(this.r35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
873
+ this.k37_1.s35_1.n19();
874
+ if (!this.o37_1) {
875
+ this.k8_1 = 34;
876
+ suspendResult = close(this.k37_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
826
877
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
827
878
  return suspendResult;
828
879
  }
829
880
  continue $sm;
830
881
  } else {
831
- this.j8_1 = 35;
882
+ this.k8_1 = 35;
832
883
  continue $sm;
833
884
  }
834
885
 
835
886
  case 34:
836
- this.j8_1 = 35;
887
+ this.k8_1 = 35;
837
888
  continue $sm;
838
889
  case 35:
839
- throw this.y35_1;
890
+ throw this.r37_1;
840
891
  case 36:
841
- this.u35_1 = this.x35_1;
842
- this.k8_1 = 39;
843
- this.s35_1.a19();
844
- var tmp0_safe_receiver_1 = this.w35_1;
892
+ this.n37_1 = this.q37_1;
893
+ this.l8_1 = 39;
894
+ this.l37_1.n19();
895
+ var tmp0_safe_receiver_1 = this.p37_1;
845
896
  if (tmp0_safe_receiver_1 == null)
846
897
  null;
847
898
  else {
848
899
  tmp0_safe_receiver_1.j4();
849
900
  }
850
901
 
851
- this.r35_1.z33_1.a19();
852
- if (!this.v35_1) {
853
- this.j8_1 = 37;
854
- suspendResult = close(this.r35_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
902
+ this.k37_1.s35_1.n19();
903
+ if (!this.o37_1) {
904
+ this.k8_1 = 37;
905
+ suspendResult = close(this.k37_1, CloseReason_init_$Create$(Codes_CLOSED_ABNORMALLY_getInstance(), 'Connection was closed without close frame'), this);
855
906
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
856
907
  return suspendResult;
857
908
  }
858
909
  continue $sm;
859
910
  } else {
860
- this.j8_1 = 38;
911
+ this.k8_1 = 38;
861
912
  continue $sm;
862
913
  }
863
914
 
864
915
  case 37:
865
- this.j8_1 = 38;
916
+ this.k8_1 = 38;
866
917
  continue $sm;
867
918
  case 38:
868
919
  return Unit_instance;
869
920
  case 39:
870
- throw this.m8_1;
921
+ throw this.n8_1;
871
922
  }
872
923
  } catch ($p) {
873
924
  var e_1 = $p;
874
- if (this.k8_1 === 39) {
925
+ if (this.l8_1 === 39) {
875
926
  throw e_1;
876
927
  } else {
877
- this.j8_1 = this.k8_1;
878
- this.m8_1 = e_1;
928
+ this.k8_1 = this.l8_1;
929
+ this.n8_1 = e_1;
879
930
  }
880
931
  }
881
932
  while (true);
882
933
  };
883
- protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).p1p = function ($this$launch, completion) {
884
- var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.r35_1, this.s35_1, completion);
885
- i.t35_1 = $this$launch;
934
+ protoOf(DefaultWebSocketSessionImpl$runIncomingProcessor$slambda).k1q = function ($this$launch, completion) {
935
+ var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this.k37_1, this.l37_1, completion);
936
+ i.m37_1 = $this$launch;
886
937
  return i;
887
938
  };
888
939
  function DefaultWebSocketSessionImpl$runIncomingProcessor$slambda_0(this$0, $ponger, resultContinuation) {
889
940
  var i = new DefaultWebSocketSessionImpl$runIncomingProcessor$slambda(this$0, $ponger, resultContinuation);
890
- var l = function ($this$launch, $completion) {
891
- return i.o1p($this$launch, $completion);
892
- };
893
- l.$arity = 1;
894
- return l;
941
+ return constructCallableReference(function ($this$launch, $completion) {
942
+ return i.j1q($this$launch, $completion);
943
+ }, 1);
895
944
  }
896
945
  function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation) {
897
- this.z36_1 = this$0;
946
+ this.l38_1 = this$0;
898
947
  CoroutineImpl.call(this, resultContinuation);
899
948
  }
900
- protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).o1p = function ($this$launch, $completion) {
901
- var tmp = this.p1p($this$launch, $completion);
902
- tmp.l8_1 = Unit_instance;
903
- tmp.m8_1 = null;
904
- return tmp.r8();
949
+ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).j1q = function ($this$launch, $completion) {
950
+ var tmp = this.k1q($this$launch, $completion);
951
+ tmp.m8_1 = Unit_instance;
952
+ tmp.n8_1 = null;
953
+ return tmp.s8();
905
954
  };
906
- protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).d9 = function (p1, $completion) {
907
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
955
+ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).f9 = function (p1, $completion) {
956
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
908
957
  };
909
- protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function () {
910
- var suspendResult = this.l8_1;
958
+ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).s8 = function () {
959
+ var suspendResult = this.m8_1;
911
960
  $sm: do
912
961
  try {
913
- var tmp = this.j8_1;
962
+ var tmp = this.k8_1;
914
963
  switch (tmp) {
915
964
  case 0:
916
- this.k8_1 = 13;
917
- this.j8_1 = 1;
965
+ this.l8_1 = 13;
966
+ this.k8_1 = 1;
918
967
  continue $sm;
919
968
  case 1:
920
- this.j8_1 = 2;
969
+ this.k8_1 = 2;
921
970
  continue $sm;
922
971
  case 2:
923
- this.k8_1 = 9;
924
- this.k8_1 = 4;
925
- this.j8_1 = 3;
926
- suspendResult = outgoingProcessorLoop(this.z36_1, this);
972
+ this.l8_1 = 9;
973
+ this.l8_1 = 4;
974
+ this.k8_1 = 3;
975
+ suspendResult = outgoingProcessorLoop(this.l38_1, this);
927
976
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
928
977
  return suspendResult;
929
978
  }
930
979
 
931
980
  continue $sm;
932
981
  case 3:
933
- this.k8_1 = 13;
934
- this.j8_1 = 11;
982
+ this.l8_1 = 13;
983
+ this.k8_1 = 11;
935
984
  continue $sm;
936
985
  case 4:
937
- this.k8_1 = 9;
938
- var tmp_0 = this.m8_1;
986
+ this.l8_1 = 9;
987
+ var tmp_0 = this.n8_1;
939
988
  if (tmp_0 instanceof ClosedSendChannelException) {
940
- var _unused_var__etf5q3 = this.m8_1;
941
- this.k8_1 = 13;
942
- this.j8_1 = 11;
989
+ var _unused_var__etf5q3 = this.n8_1;
990
+ this.l8_1 = 13;
991
+ this.k8_1 = 11;
943
992
  continue $sm;
944
993
  } else {
945
- var tmp_1 = this.m8_1;
994
+ var tmp_1 = this.n8_1;
946
995
  if (tmp_1 instanceof ClosedReceiveChannelException) {
947
- var _unused_var__etf5q3_0 = this.m8_1;
948
- this.k8_1 = 13;
949
- this.j8_1 = 11;
996
+ var _unused_var__etf5q3_0 = this.n8_1;
997
+ this.l8_1 = 13;
998
+ this.k8_1 = 11;
950
999
  continue $sm;
951
1000
  } else {
952
- var tmp_2 = this.m8_1;
1001
+ var tmp_2 = this.n8_1;
953
1002
  if (tmp_2 instanceof CancellationException) {
954
- var _unused_var__etf5q3_1 = this.m8_1;
955
- this.j8_1 = 5;
956
- suspendResult = sendCloseSequence(this.z36_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
1003
+ var _unused_var__etf5q3_1 = this.n8_1;
1004
+ this.k8_1 = 5;
1005
+ suspendResult = sendCloseSequence(this.l38_1, CloseReason_init_$Create$(Codes_NORMAL_getInstance(), ''), VOID, this);
957
1006
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
958
1007
  return suspendResult;
959
1008
  }
960
1009
  continue $sm;
961
1010
  } else {
962
- var tmp_3 = this.m8_1;
1011
+ var tmp_3 = this.n8_1;
963
1012
  if (tmp_3 instanceof ChannelIOException) {
964
- var _unused_var__etf5q3_2 = this.m8_1;
965
- this.k8_1 = 13;
966
- this.j8_1 = 11;
1013
+ var _unused_var__etf5q3_2 = this.n8_1;
1014
+ this.l8_1 = 13;
1015
+ this.k8_1 = 11;
967
1016
  continue $sm;
968
1017
  } else {
969
- var tmp_4 = this.m8_1;
1018
+ var tmp_4 = this.n8_1;
970
1019
  if (tmp_4 instanceof Error) {
971
- var cause = this.m8_1;
972
- this.z36_1.a34_1.dt(CancellationException_init_$Create$('Failed to send frame', cause));
973
- this.j8_1 = 6;
974
- suspendResult = closeExceptionally(this.z36_1.u33_1, cause, this);
1020
+ var cause = this.n8_1;
1021
+ this.l38_1.t35_1.rt(CancellationException_init_$Create$('Failed to send frame', cause));
1022
+ this.k8_1 = 6;
1023
+ suspendResult = closeExceptionally(this.l38_1.n35_1, cause, this);
975
1024
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
976
1025
  return suspendResult;
977
1026
  }
978
1027
  continue $sm;
979
1028
  } else {
980
- throw this.m8_1;
1029
+ throw this.n8_1;
981
1030
  }
982
1031
  }
983
1032
  }
@@ -985,18 +1034,18 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
985
1034
  }
986
1035
 
987
1036
  case 5:
988
- this.k8_1 = 13;
989
- this.j8_1 = 11;
1037
+ this.l8_1 = 13;
1038
+ this.k8_1 = 11;
990
1039
  continue $sm;
991
1040
  case 6:
992
- this.k8_1 = 13;
993
- this.j8_1 = 7;
1041
+ this.l8_1 = 13;
1042
+ this.k8_1 = 7;
994
1043
  continue $sm;
995
1044
  case 7:
996
- this.k8_1 = 13;
997
- this.z36_1.a34_1.c19();
998
- this.j8_1 = 8;
999
- suspendResult = close(this.z36_1.u33_1, VOID, this);
1045
+ this.l8_1 = 13;
1046
+ this.l38_1.t35_1.p19();
1047
+ this.k8_1 = 8;
1048
+ suspendResult = close(this.l38_1.n35_1, VOID, this);
1000
1049
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1001
1050
  return suspendResult;
1002
1051
  }
@@ -1005,23 +1054,23 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
1005
1054
  case 8:
1006
1055
  return Unit_instance;
1007
1056
  case 9:
1008
- this.k8_1 = 13;
1009
- this.b37_1 = this.m8_1;
1010
- this.z36_1.a34_1.c19();
1011
- this.j8_1 = 10;
1012
- suspendResult = close(this.z36_1.u33_1, VOID, this);
1057
+ this.l8_1 = 13;
1058
+ this.n38_1 = this.n8_1;
1059
+ this.l38_1.t35_1.p19();
1060
+ this.k8_1 = 10;
1061
+ suspendResult = close(this.l38_1.n35_1, VOID, this);
1013
1062
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1014
1063
  return suspendResult;
1015
1064
  }
1016
1065
 
1017
1066
  continue $sm;
1018
1067
  case 10:
1019
- throw this.b37_1;
1068
+ throw this.n38_1;
1020
1069
  case 11:
1021
- this.k8_1 = 13;
1022
- this.z36_1.a34_1.c19();
1023
- this.j8_1 = 12;
1024
- suspendResult = close(this.z36_1.u33_1, VOID, this);
1070
+ this.l8_1 = 13;
1071
+ this.l38_1.t35_1.p19();
1072
+ this.k8_1 = 12;
1073
+ suspendResult = close(this.l38_1.n35_1, VOID, this);
1025
1074
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1026
1075
  return suspendResult;
1027
1076
  }
@@ -1030,55 +1079,53 @@ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).r8 = function
1030
1079
  case 12:
1031
1080
  return Unit_instance;
1032
1081
  case 13:
1033
- throw this.m8_1;
1082
+ throw this.n8_1;
1034
1083
  }
1035
1084
  } catch ($p) {
1036
1085
  var e = $p;
1037
- if (this.k8_1 === 13) {
1086
+ if (this.l8_1 === 13) {
1038
1087
  throw e;
1039
1088
  } else {
1040
- this.j8_1 = this.k8_1;
1041
- this.m8_1 = e;
1089
+ this.k8_1 = this.l8_1;
1090
+ this.n8_1 = e;
1042
1091
  }
1043
1092
  }
1044
1093
  while (true);
1045
1094
  };
1046
- protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).p1p = function ($this$launch, completion) {
1047
- var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.z36_1, completion);
1048
- i.a37_1 = $this$launch;
1095
+ protoOf(DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda).k1q = function ($this$launch, completion) {
1096
+ var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this.l38_1, completion);
1097
+ i.m38_1 = $this$launch;
1049
1098
  return i;
1050
1099
  };
1051
1100
  function DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda_0(this$0, resultContinuation) {
1052
1101
  var i = new DefaultWebSocketSessionImpl$runOutgoingProcessor$slambda(this$0, resultContinuation);
1053
- var l = function ($this$launch, $completion) {
1054
- return i.o1p($this$launch, $completion);
1055
- };
1056
- l.$arity = 1;
1057
- return l;
1102
+ return constructCallableReference(function ($this$launch, $completion) {
1103
+ return i.j1q($this$launch, $completion);
1104
+ }, 1);
1058
1105
  }
1059
1106
  function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation) {
1060
- this.k37_1 = this$0;
1107
+ this.w38_1 = this$0;
1061
1108
  CoroutineImpl.call(this, resultContinuation);
1062
1109
  }
1063
- protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).m37 = function (it, $completion) {
1064
- var tmp = this.n37(it, $completion);
1065
- tmp.l8_1 = Unit_instance;
1066
- tmp.m8_1 = null;
1067
- return tmp.r8();
1110
+ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).y38 = function (it, $completion) {
1111
+ var tmp = this.z38(it, $completion);
1112
+ tmp.m8_1 = Unit_instance;
1113
+ tmp.n8_1 = null;
1114
+ return tmp.s8();
1068
1115
  };
1069
- protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).d9 = function (p1, $completion) {
1070
- return this.m37(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
1116
+ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).f9 = function (p1, $completion) {
1117
+ return this.y38(p1 instanceof CloseReason ? p1 : THROW_CCE(), $completion);
1071
1118
  };
1072
- protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function () {
1073
- var suspendResult = this.l8_1;
1119
+ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).s8 = function () {
1120
+ var suspendResult = this.m8_1;
1074
1121
  $sm: do
1075
1122
  try {
1076
- var tmp = this.j8_1;
1123
+ var tmp = this.k8_1;
1077
1124
  switch (tmp) {
1078
1125
  case 0:
1079
- this.k8_1 = 2;
1080
- this.j8_1 = 1;
1081
- suspendResult = sendCloseSequence(this.k37_1, this.l37_1, IOException_init_$Create$('Ping timeout'), this);
1126
+ this.l8_1 = 2;
1127
+ this.k8_1 = 1;
1128
+ suspendResult = sendCloseSequence(this.w38_1, this.x38_1, IOException_init_$Create$('Ping timeout'), this);
1082
1129
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1083
1130
  return suspendResult;
1084
1131
  }
@@ -1087,50 +1134,48 @@ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).r8 = function ()
1087
1134
  case 1:
1088
1135
  return Unit_instance;
1089
1136
  case 2:
1090
- throw this.m8_1;
1137
+ throw this.n8_1;
1091
1138
  }
1092
1139
  } catch ($p) {
1093
1140
  var e = $p;
1094
- if (this.k8_1 === 2) {
1141
+ if (this.l8_1 === 2) {
1095
1142
  throw e;
1096
1143
  } else {
1097
- this.j8_1 = this.k8_1;
1098
- this.m8_1 = e;
1144
+ this.k8_1 = this.l8_1;
1145
+ this.n8_1 = e;
1099
1146
  }
1100
1147
  }
1101
1148
  while (true);
1102
1149
  };
1103
- protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).n37 = function (it, completion) {
1104
- var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.k37_1, completion);
1105
- i.l37_1 = it;
1150
+ protoOf(DefaultWebSocketSessionImpl$runOrCancelPinger$slambda).z38 = function (it, completion) {
1151
+ var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this.w38_1, completion);
1152
+ i.x38_1 = it;
1106
1153
  return i;
1107
1154
  };
1108
1155
  function DefaultWebSocketSessionImpl$runOrCancelPinger$slambda_0(this$0, resultContinuation) {
1109
1156
  var i = new DefaultWebSocketSessionImpl$runOrCancelPinger$slambda(this$0, resultContinuation);
1110
- var l = function (it, $completion) {
1111
- return i.m37(it, $completion);
1112
- };
1113
- l.$arity = 1;
1114
- return l;
1157
+ return constructCallableReference(function (it, $completion) {
1158
+ return i.y38(it, $completion);
1159
+ }, 1);
1115
1160
  }
1116
1161
  function $outgoingProcessorLoopCOROUTINE$(_this__u8e3s4, resultContinuation) {
1117
1162
  CoroutineImpl.call(this, resultContinuation);
1118
- this.f33_1 = _this__u8e3s4;
1163
+ this.y34_1 = _this__u8e3s4;
1119
1164
  }
1120
- protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
1121
- var suspendResult = this.l8_1;
1165
+ protoOf($outgoingProcessorLoopCOROUTINE$).s8 = function () {
1166
+ var suspendResult = this.m8_1;
1122
1167
  $sm: do
1123
1168
  try {
1124
- var tmp = this.j8_1;
1169
+ var tmp = this.k8_1;
1125
1170
  switch (tmp) {
1126
1171
  case 0:
1127
- this.k8_1 = 7;
1128
- this.h33_1 = this.f33_1.a34_1.t();
1129
- this.j8_1 = 1;
1172
+ this.l8_1 = 7;
1173
+ this.a35_1 = this.y34_1.t35_1.t();
1174
+ this.k8_1 = 1;
1130
1175
  continue $sm;
1131
1176
  case 1:
1132
- this.j8_1 = 2;
1133
- suspendResult = this.h33_1.v16(this);
1177
+ this.k8_1 = 2;
1178
+ suspendResult = this.a35_1.j17(this);
1134
1179
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1135
1180
  return suspendResult;
1136
1181
  }
@@ -1138,19 +1183,19 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
1138
1183
  continue $sm;
1139
1184
  case 2:
1140
1185
  if (!suspendResult) {
1141
- this.j8_1 = 6;
1186
+ this.k8_1 = 6;
1142
1187
  continue $sm;
1143
1188
  }
1144
1189
 
1145
- var frame = this.h33_1.v();
1190
+ var frame = this.a35_1.v();
1146
1191
  var this_0 = get_LOGGER();
1147
1192
  if (get_isTraceEnabled(this_0)) {
1148
- this_0.h2j('Sending ' + frame.toString() + ' from session ' + toString(this.f33_1));
1193
+ this_0.c2k('Sending ' + frame.toString() + ' from session ' + toString(this.y34_1));
1149
1194
  }
1150
1195
 
1151
1196
  if (frame instanceof Close) {
1152
- this.j8_1 = 3;
1153
- suspendResult = sendCloseSequence(this.f33_1, readReason(frame), VOID, this);
1197
+ this.k8_1 = 3;
1198
+ suspendResult = sendCloseSequence(this.y34_1, readReason(frame), VOID, this);
1154
1199
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1155
1200
  return suspendResult;
1156
1201
  }
@@ -1163,223 +1208,223 @@ protoOf($outgoingProcessorLoopCOROUTINE$).r8 = function () {
1163
1208
  tmp_0 = frame instanceof Binary;
1164
1209
  }
1165
1210
  if (tmp_0) {
1166
- this.g33_1 = processOutgoingExtensions(this.f33_1, frame);
1167
- this.j8_1 = 4;
1211
+ this.z34_1 = processOutgoingExtensions(this.y34_1, frame);
1212
+ this.k8_1 = 4;
1168
1213
  continue $sm;
1169
1214
  } else {
1170
- this.g33_1 = frame;
1171
- this.j8_1 = 4;
1215
+ this.z34_1 = frame;
1216
+ this.k8_1 = 4;
1172
1217
  continue $sm;
1173
1218
  }
1174
1219
  }
1175
1220
 
1176
1221
  case 3:
1177
- this.j8_1 = 6;
1222
+ this.k8_1 = 6;
1178
1223
  var tmp_1 = this;
1179
1224
  continue $sm;
1180
1225
  case 4:
1181
- var processedFrame = this.g33_1;
1182
- this.j8_1 = 5;
1183
- suspendResult = this.f33_1.u33_1.s32().s18(processedFrame, this);
1226
+ var processedFrame = this.z34_1;
1227
+ this.k8_1 = 5;
1228
+ suspendResult = this.y34_1.n35_1.l34().g19(processedFrame, this);
1184
1229
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1185
1230
  return suspendResult;
1186
1231
  }
1187
1232
 
1188
1233
  continue $sm;
1189
1234
  case 5:
1190
- this.j8_1 = 1;
1235
+ this.k8_1 = 1;
1191
1236
  continue $sm;
1192
1237
  case 6:
1193
1238
  return Unit_instance;
1194
1239
  case 7:
1195
- throw this.m8_1;
1240
+ throw this.n8_1;
1196
1241
  }
1197
1242
  } catch ($p) {
1198
1243
  var e = $p;
1199
- if (this.k8_1 === 7) {
1244
+ if (this.l8_1 === 7) {
1200
1245
  throw e;
1201
1246
  } else {
1202
- this.j8_1 = this.k8_1;
1203
- this.m8_1 = e;
1247
+ this.k8_1 = this.l8_1;
1248
+ this.n8_1 = e;
1204
1249
  }
1205
1250
  }
1206
1251
  while (true);
1207
1252
  };
1208
1253
  function $sendCloseSequenceCOROUTINE$(_this__u8e3s4, reason, exception, resultContinuation) {
1209
1254
  CoroutineImpl.call(this, resultContinuation);
1210
- this.q33_1 = _this__u8e3s4;
1211
- this.r33_1 = reason;
1212
- this.s33_1 = exception;
1255
+ this.j35_1 = _this__u8e3s4;
1256
+ this.k35_1 = reason;
1257
+ this.l35_1 = exception;
1213
1258
  }
1214
- protoOf($sendCloseSequenceCOROUTINE$).r8 = function () {
1215
- var suspendResult = this.l8_1;
1259
+ protoOf($sendCloseSequenceCOROUTINE$).s8 = function () {
1260
+ var suspendResult = this.m8_1;
1216
1261
  $sm: do
1217
1262
  try {
1218
- var tmp = this.j8_1;
1263
+ var tmp = this.k8_1;
1219
1264
  switch (tmp) {
1220
1265
  case 0:
1221
- this.k8_1 = 6;
1222
- if (!tryClose(this.q33_1))
1266
+ this.l8_1 = 6;
1267
+ if (!tryClose(this.j35_1))
1223
1268
  return Unit_instance;
1224
1269
  var this_0 = get_LOGGER();
1225
1270
  if (get_isTraceEnabled(this_0)) {
1226
- this_0.h2j('Sending Close Sequence for session ' + toString(this.q33_1) + ' with reason ' + toString_0(this.r33_1) + ' and exception ' + toString_0(this.s33_1));
1271
+ this_0.c2k('Sending Close Sequence for session ' + toString(this.j35_1) + ' with reason ' + toString_0(this.k35_1) + ' and exception ' + toString_0(this.l35_1));
1227
1272
  }
1228
1273
 
1229
- this.q33_1.x33_1.my();
1274
+ this.j35_1.q35_1.az();
1230
1275
  var tmp_0 = this;
1231
- var tmp0_elvis_lhs = this.r33_1;
1232
- tmp_0.t33_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
1233
- this.j8_1 = 1;
1276
+ var tmp0_elvis_lhs = this.k35_1;
1277
+ tmp_0.m35_1 = tmp0_elvis_lhs == null ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : tmp0_elvis_lhs;
1278
+ this.k8_1 = 1;
1234
1279
  continue $sm;
1235
1280
  case 1:
1236
- this.k8_1 = 5;
1237
- runOrCancelPinger(this.q33_1);
1238
- if (!(this.t33_1.l32_1 === Codes_CLOSED_ABNORMALLY_getInstance().h32_1)) {
1239
- this.j8_1 = 2;
1240
- suspendResult = this.q33_1.u33_1.s32().s18(Close_init_$Create$(this.t33_1), this);
1281
+ this.l8_1 = 5;
1282
+ runOrCancelPinger(this.j35_1);
1283
+ if (!(this.m35_1.t33_1 === Codes_CLOSED_ABNORMALLY_getInstance().p33_1)) {
1284
+ this.k8_1 = 2;
1285
+ suspendResult = this.j35_1.n35_1.l34().g19(Close_init_$Create$(this.m35_1), this);
1241
1286
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1242
1287
  return suspendResult;
1243
1288
  }
1244
1289
  continue $sm;
1245
1290
  } else {
1246
- this.j8_1 = 3;
1291
+ this.k8_1 = 3;
1247
1292
  continue $sm;
1248
1293
  }
1249
1294
 
1250
1295
  case 2:
1251
- this.j8_1 = 3;
1296
+ this.k8_1 = 3;
1252
1297
  continue $sm;
1253
1298
  case 3:
1254
- this.k8_1 = 6;
1255
- this.j8_1 = 4;
1299
+ this.l8_1 = 6;
1300
+ this.k8_1 = 4;
1256
1301
  continue $sm;
1257
1302
  case 4:
1258
- this.k8_1 = 6;
1259
- this.q33_1.w33_1.ky(this.t33_1);
1260
- if (!(this.s33_1 == null)) {
1261
- this.q33_1.a34_1.y18(this.s33_1);
1262
- this.q33_1.z33_1.y18(this.s33_1);
1303
+ this.l8_1 = 6;
1304
+ this.j35_1.p35_1.yy(this.m35_1);
1305
+ if (!(this.l35_1 == null)) {
1306
+ this.j35_1.t35_1.l19(this.l35_1);
1307
+ this.j35_1.s35_1.l19(this.l35_1);
1263
1308
  }
1264
1309
 
1265
1310
  return Unit_instance;
1266
1311
  case 5:
1267
- this.k8_1 = 6;
1268
- var t = this.m8_1;
1269
- this.q33_1.w33_1.ky(this.t33_1);
1270
- if (!(this.s33_1 == null)) {
1271
- this.q33_1.a34_1.y18(this.s33_1);
1272
- this.q33_1.z33_1.y18(this.s33_1);
1312
+ this.l8_1 = 6;
1313
+ var t = this.n8_1;
1314
+ this.j35_1.p35_1.yy(this.m35_1);
1315
+ if (!(this.l35_1 == null)) {
1316
+ this.j35_1.t35_1.l19(this.l35_1);
1317
+ this.j35_1.s35_1.l19(this.l35_1);
1273
1318
  }
1274
1319
 
1275
1320
  throw t;
1276
1321
  case 6:
1277
- throw this.m8_1;
1322
+ throw this.n8_1;
1278
1323
  }
1279
1324
  } catch ($p) {
1280
1325
  var e = $p;
1281
- if (this.k8_1 === 6) {
1326
+ if (this.l8_1 === 6) {
1282
1327
  throw e;
1283
1328
  } else {
1284
- this.j8_1 = this.k8_1;
1285
- this.m8_1 = e;
1329
+ this.k8_1 = this.l8_1;
1330
+ this.n8_1 = e;
1286
1331
  }
1287
1332
  }
1288
1333
  while (true);
1289
1334
  };
1290
1335
  function $checkMaxFrameSizeCOROUTINE$(_this__u8e3s4, packet, frame, resultContinuation) {
1291
1336
  CoroutineImpl.call(this, resultContinuation);
1292
- this.q34_1 = _this__u8e3s4;
1293
- this.r34_1 = packet;
1294
- this.s34_1 = frame;
1337
+ this.j36_1 = _this__u8e3s4;
1338
+ this.k36_1 = packet;
1339
+ this.l36_1 = frame;
1295
1340
  }
1296
- protoOf($checkMaxFrameSizeCOROUTINE$).r8 = function () {
1297
- var suspendResult = this.l8_1;
1341
+ protoOf($checkMaxFrameSizeCOROUTINE$).s8 = function () {
1342
+ var suspendResult = this.m8_1;
1298
1343
  $sm: do
1299
1344
  try {
1300
- var tmp = this.j8_1;
1345
+ var tmp = this.k8_1;
1301
1346
  switch (tmp) {
1302
1347
  case 0:
1303
- this.k8_1 = 3;
1348
+ this.l8_1 = 3;
1304
1349
  var tmp_0 = this;
1305
- var tmp_1 = this.s34_1.k36_1.length;
1306
- var tmp0_safe_receiver = this.r34_1;
1350
+ var tmp_1 = this.l36_1.c34_1.length;
1351
+ var tmp0_safe_receiver = this.k36_1;
1307
1352
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_size(tmp0_safe_receiver);
1308
- tmp_0.t34_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
1309
- if (fromInt(this.t34_1) > this.q34_1.q32()) {
1310
- var tmp2_safe_receiver = this.r34_1;
1353
+ tmp_0.m36_1 = tmp_1 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
1354
+ if (fromInt(this.m36_1) > this.j36_1.j34()) {
1355
+ var tmp2_safe_receiver = this.k36_1;
1311
1356
  if (tmp2_safe_receiver == null)
1312
1357
  null;
1313
1358
  else {
1314
1359
  tmp2_safe_receiver.j4();
1315
1360
  }
1316
- this.j8_1 = 2;
1317
- suspendResult = close(this.q34_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.t34_1 + '. Max size is ' + this.q34_1.q32().toString()), this);
1361
+ this.k8_1 = 2;
1362
+ suspendResult = close(this.j36_1, CloseReason_init_$Create$(Codes_TOO_BIG_getInstance(), 'Frame is too big: ' + this.m36_1 + '. Max size is ' + this.j36_1.j34().toString()), this);
1318
1363
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1319
1364
  return suspendResult;
1320
1365
  }
1321
1366
  continue $sm;
1322
1367
  } else {
1323
- this.j8_1 = 1;
1368
+ this.k8_1 = 1;
1324
1369
  continue $sm;
1325
1370
  }
1326
1371
 
1327
1372
  case 1:
1328
1373
  return Unit_instance;
1329
1374
  case 2:
1330
- throw new FrameTooBigException(fromInt(this.t34_1));
1375
+ throw new FrameTooBigException(fromInt(this.m36_1));
1331
1376
  case 3:
1332
- throw this.m8_1;
1377
+ throw this.n8_1;
1333
1378
  }
1334
1379
  } catch ($p) {
1335
1380
  var e = $p;
1336
- if (this.k8_1 === 3) {
1381
+ if (this.l8_1 === 3) {
1337
1382
  throw e;
1338
1383
  } else {
1339
- this.j8_1 = this.k8_1;
1340
- this.m8_1 = e;
1384
+ this.k8_1 = this.l8_1;
1385
+ this.n8_1 = e;
1341
1386
  }
1342
1387
  }
1343
1388
  while (true);
1344
1389
  };
1345
1390
  function DefaultWebSocketSessionImpl(raw, pingIntervalMillis, timeoutMillis, incomingFramesConfig, outgoingFramesConfig) {
1346
- Companion_getInstance_0();
1347
- this.u33_1 = raw;
1348
- this.v33_1 = atomic$ref$1(null);
1349
- this.w33_1 = CompletableDeferred();
1350
- this.x33_1 = Job();
1351
- this.y33_1 = this.u33_1.ur().ff(Key_instance).hf(this.x33_1).hf(new CoroutineName('ws-default'));
1352
- this.z33_1 = from(Factory_getInstance(), incomingFramesConfig);
1353
- this.a34_1 = from(Factory_getInstance(), outgoingFramesConfig);
1354
- this.b34_1 = atomic$boolean$1(false);
1391
+ Companion_getInstance_1();
1392
+ this.n35_1 = raw;
1393
+ this.o35_1 = atomic$ref$1(null);
1394
+ this.p35_1 = CompletableDeferred();
1395
+ this.q35_1 = Job();
1396
+ this.r35_1 = this.n35_1.is().tf(Key_instance).vf(this.q35_1).vf(new CoroutineName('ws-default'));
1397
+ this.s35_1 = from(Factory_getInstance(), incomingFramesConfig);
1398
+ this.t35_1 = from(Factory_getInstance(), outgoingFramesConfig);
1399
+ this.u35_1 = atomic$boolean$1(false);
1355
1400
  var tmp = this;
1356
1401
  // Inline function 'kotlin.collections.mutableListOf' call
1357
- tmp.c34_1 = ArrayList_init_$Create$();
1358
- this.d34_1 = atomic$boolean$1(false);
1359
- this.e34_1 = pingIntervalMillis;
1360
- this.f34_1 = timeoutMillis;
1361
- this.g34_1 = this.w33_1;
1402
+ tmp.v35_1 = ArrayList_init_$Create$();
1403
+ this.w35_1 = atomic$boolean$1(false);
1404
+ this.x35_1 = pingIntervalMillis;
1405
+ this.y35_1 = timeoutMillis;
1406
+ this.z35_1 = this.p35_1;
1362
1407
  }
1363
- protoOf(DefaultWebSocketSessionImpl).ur = function () {
1364
- return this.y33_1;
1408
+ protoOf(DefaultWebSocketSessionImpl).is = function () {
1409
+ return this.r35_1;
1365
1410
  };
1366
- protoOf(DefaultWebSocketSessionImpl).r32 = function () {
1367
- return this.z33_1;
1411
+ protoOf(DefaultWebSocketSessionImpl).k34 = function () {
1412
+ return this.s35_1;
1368
1413
  };
1369
- protoOf(DefaultWebSocketSessionImpl).s32 = function () {
1370
- return this.a34_1;
1414
+ protoOf(DefaultWebSocketSessionImpl).l34 = function () {
1415
+ return this.t35_1;
1371
1416
  };
1372
- protoOf(DefaultWebSocketSessionImpl).u34 = function () {
1373
- return this.c34_1;
1417
+ protoOf(DefaultWebSocketSessionImpl).n36 = function () {
1418
+ return this.v35_1;
1374
1419
  };
1375
- protoOf(DefaultWebSocketSessionImpl).p32 = function (value) {
1376
- this.u33_1.p32(value);
1420
+ protoOf(DefaultWebSocketSessionImpl).i34 = function (value) {
1421
+ this.n35_1.i34(value);
1377
1422
  };
1378
- protoOf(DefaultWebSocketSessionImpl).q32 = function () {
1379
- return this.u33_1.q32();
1423
+ protoOf(DefaultWebSocketSessionImpl).j34 = function () {
1424
+ return this.n35_1.j34();
1380
1425
  };
1381
- protoOf(DefaultWebSocketSessionImpl).o32 = function (negotiatedExtensions) {
1382
- if (!this.d34_1.atomicfu$compareAndSet(false, true)) {
1426
+ protoOf(DefaultWebSocketSessionImpl).h34 = function (negotiatedExtensions) {
1427
+ if (!this.w35_1.atomicfu$compareAndSet(false, true)) {
1383
1428
  // Inline function 'kotlin.error' call
1384
1429
  var message = 'WebSocket session ' + toString(this) + ' is already started.';
1385
1430
  throw IllegalStateException_init_$Create$(toString(message));
@@ -1388,16 +1433,16 @@ protoOf(DefaultWebSocketSessionImpl).o32 = function (negotiatedExtensions) {
1388
1433
  var this_0 = get_LOGGER();
1389
1434
  if (get_isTraceEnabled(this_0)) {
1390
1435
  var tmp$ret$2 = 'Starting default WebSocketSession(' + toString(this) + ') ' + ('with negotiated extensions: ' + joinToString(negotiatedExtensions));
1391
- this_0.h2j(tmp$ret$2);
1436
+ this_0.c2k(tmp$ret$2);
1392
1437
  }
1393
- this.c34_1.j1(negotiatedExtensions);
1438
+ this.v35_1.i1(negotiatedExtensions);
1394
1439
  runOrCancelPinger(this);
1395
- var incomingJob = runIncomingProcessor(this, ponger(this, this.s32()));
1440
+ var incomingJob = runIncomingProcessor(this, ponger(this, this.l34()));
1396
1441
  var outgoingJob = runOutgoingProcessor(this);
1397
1442
  launch(this, VOID, VOID, DefaultWebSocketSessionImpl$start$slambda_0(incomingJob, outgoingJob, this, null));
1398
1443
  };
1399
- protoOf(DefaultWebSocketSessionImpl).i1g = function ($completion) {
1400
- return this.u33_1.i1g($completion);
1444
+ protoOf(DefaultWebSocketSessionImpl).y1g = function ($completion) {
1445
+ return this.n35_1.y1g($completion);
1401
1446
  };
1402
1447
  var properties_initialized_DefaultWebSocketSession_kt_6cjlhc;
1403
1448
  function _init_properties_DefaultWebSocketSession_kt__469s0y() {
@@ -1419,20 +1464,20 @@ function _init_properties_DefaultWebSocketSession_kt__469s0y() {
1419
1464
  }
1420
1465
  }
1421
1466
  function readReason(_this__u8e3s4) {
1422
- if (_this__u8e3s4.k36_1.length < 2) {
1467
+ if (_this__u8e3s4.c34_1.length < 2) {
1423
1468
  return null;
1424
1469
  }
1425
1470
  // Inline function 'io.ktor.utils.io.core.buildPacket' call
1426
1471
  var builder = new Buffer();
1427
- writeFully(builder, _this__u8e3s4.k36_1);
1472
+ writeFully(builder, _this__u8e3s4.c34_1);
1428
1473
  var packet = builder;
1429
- var code = packet.wo();
1474
+ var code = packet.kp();
1430
1475
  var message = readText(packet);
1431
1476
  return new CloseReason(code, message);
1432
1477
  }
1433
1478
  function NonDisposableHandle() {
1434
1479
  }
1435
- protoOf(NonDisposableHandle).fv = function () {
1480
+ protoOf(NonDisposableHandle).tv = function () {
1436
1481
  return Unit_instance;
1437
1482
  };
1438
1483
  protoOf(NonDisposableHandle).toString = function () {
@@ -1452,28 +1497,27 @@ var NonDisposableHandle_instance;
1452
1497
  function NonDisposableHandle_getInstance() {
1453
1498
  return NonDisposableHandle_instance;
1454
1499
  }
1455
- function FrameTooBigException(frameSize) {
1456
- Exception_init_$Init$(this);
1500
+ function FrameTooBigException(frameSize, cause) {
1501
+ cause = cause === VOID ? null : cause;
1502
+ Exception_init_$Init$(cause, this);
1457
1503
  captureStack(this, FrameTooBigException);
1458
- this.o37_1 = frameSize;
1504
+ this.a39_1 = frameSize;
1459
1505
  delete this.message;
1460
1506
  }
1461
1507
  protoOf(FrameTooBigException).e = function () {
1462
- return 'Frame is too big: ' + this.o37_1.toString();
1508
+ var sizeSuffix = this.a39_1 >= 0n ? ': ' + this.a39_1.toString() : '';
1509
+ return 'Frame is too big' + sizeSuffix;
1463
1510
  };
1464
- protoOf(FrameTooBigException).vy = function () {
1465
- // Inline function 'kotlin.also' call
1466
- var this_0 = new FrameTooBigException(this.o37_1);
1467
- initCauseBridge(this_0, this);
1468
- return this_0;
1511
+ protoOf(FrameTooBigException).jz = function () {
1512
+ return new FrameTooBigException(this.a39_1, this);
1469
1513
  };
1470
1514
  var FrameType_TEXT_instance;
1471
1515
  var FrameType_BINARY_instance;
1472
1516
  var FrameType_CLOSE_instance;
1473
1517
  var FrameType_PING_instance;
1474
1518
  var FrameType_PONG_instance;
1475
- function Companion_1() {
1476
- Companion_instance_1 = this;
1519
+ function Companion_2() {
1520
+ Companion_instance_2 = this;
1477
1521
  var tmp = this;
1478
1522
  var tmp0 = get_entries_0();
1479
1523
  var tmp$ret$0;
@@ -1489,10 +1533,10 @@ function Companion_1() {
1489
1533
  tmp$ret$0 = maxElem;
1490
1534
  break $l$block_0;
1491
1535
  }
1492
- var maxValue = maxElem.s37_1;
1536
+ var maxValue = maxElem.z33_1;
1493
1537
  do {
1494
1538
  var e = iterator.v();
1495
- var v = e.s37_1;
1539
+ var v = e.z33_1;
1496
1540
  if (compareTo(maxValue, v) < 0) {
1497
1541
  maxElem = e;
1498
1542
  maxValue = v;
@@ -1501,10 +1545,10 @@ function Companion_1() {
1501
1545
  while (iterator.u());
1502
1546
  tmp$ret$0 = maxElem;
1503
1547
  }
1504
- tmp.t37_1 = ensureNotNull(tmp$ret$0).s37_1;
1548
+ tmp.b39_1 = ensureNotNull(tmp$ret$0).z33_1;
1505
1549
  var tmp_0 = this;
1506
1550
  var tmp_1 = 0;
1507
- var tmp_2 = this.t37_1 + 1 | 0;
1551
+ var tmp_2 = this.b39_1 + 1 | 0;
1508
1552
  // Inline function 'kotlin.arrayOfNulls' call
1509
1553
  var tmp_3 = Array(tmp_2);
1510
1554
  while (tmp_1 < tmp_2) {
@@ -1518,7 +1562,7 @@ function Companion_1() {
1518
1562
  var _iterator__ex2g4s = tmp0_0.t();
1519
1563
  while (_iterator__ex2g4s.u()) {
1520
1564
  var element = _iterator__ex2g4s.v();
1521
- if (element.s37_1 === tmp_4) {
1565
+ if (element.z33_1 === tmp_4) {
1522
1566
  if (found) {
1523
1567
  tmp$ret$5 = null;
1524
1568
  break $l$block_2;
@@ -1536,14 +1580,14 @@ function Companion_1() {
1536
1580
  tmp_3[tmp_4] = tmp$ret$5;
1537
1581
  tmp_1 = tmp_1 + 1 | 0;
1538
1582
  }
1539
- tmp_0.u37_1 = tmp_3;
1583
+ tmp_0.c39_1 = tmp_3;
1540
1584
  }
1541
- var Companion_instance_1;
1542
- function Companion_getInstance_1() {
1585
+ var Companion_instance_2;
1586
+ function Companion_getInstance_2() {
1543
1587
  FrameType_initEntries();
1544
- if (Companion_instance_1 == null)
1545
- new Companion_1();
1546
- return Companion_instance_1;
1588
+ if (Companion_instance_2 == null)
1589
+ new Companion_2();
1590
+ return Companion_instance_2;
1547
1591
  }
1548
1592
  function values_0() {
1549
1593
  return [FrameType_TEXT_getInstance(), FrameType_BINARY_getInstance(), FrameType_CLOSE_getInstance(), FrameType_PING_getInstance(), FrameType_PONG_getInstance()];
@@ -1563,13 +1607,13 @@ function FrameType_initEntries() {
1563
1607
  FrameType_CLOSE_instance = new FrameType('CLOSE', 2, true, 8);
1564
1608
  FrameType_PING_instance = new FrameType('PING', 3, true, 9);
1565
1609
  FrameType_PONG_instance = new FrameType('PONG', 4, true, 10);
1566
- Companion_getInstance_1();
1610
+ Companion_getInstance_2();
1567
1611
  }
1568
1612
  var $ENTRIES_0;
1569
1613
  function FrameType(name, ordinal, controlFrame, opcode) {
1570
1614
  Enum.call(this, name, ordinal);
1571
- this.r37_1 = controlFrame;
1572
- this.s37_1 = opcode;
1615
+ this.y33_1 = controlFrame;
1616
+ this.z33_1 = opcode;
1573
1617
  }
1574
1618
  function FrameType_TEXT_getInstance() {
1575
1619
  FrameType_initEntries();
@@ -1612,55 +1656,55 @@ function pinger(_this__u8e3s4, outgoing, periodMillis, timeoutMillis, onTimeout)
1612
1656
  _init_properties_PingPong_kt__9aqxey();
1613
1657
  var actorJob = Job();
1614
1658
  var channel = Channel(2147483647);
1615
- var tmp = actorJob.hf(get_PingerCoroutineName());
1659
+ var tmp = actorJob.vf(get_PingerCoroutineName());
1616
1660
  launch(_this__u8e3s4, tmp, VOID, pinger$slambda_0(periodMillis, timeoutMillis, onTimeout, channel, outgoing, null));
1617
- var tmp_0 = ensureNotNull(_this__u8e3s4.ur().w8(Key_instance));
1618
- tmp_0.ws(pinger$lambda(actorJob));
1661
+ var tmp_0 = ensureNotNull(_this__u8e3s4.is().x8(Key_instance));
1662
+ tmp_0.kt(pinger$lambda(actorJob));
1619
1663
  return channel;
1620
1664
  }
1621
1665
  function ponger$slambda($channel, $outgoing, resultContinuation) {
1622
- this.d38_1 = $channel;
1623
- this.e38_1 = $outgoing;
1666
+ this.l39_1 = $channel;
1667
+ this.m39_1 = $outgoing;
1624
1668
  CoroutineImpl.call(this, resultContinuation);
1625
1669
  }
1626
- protoOf(ponger$slambda).o1p = function ($this$launch, $completion) {
1627
- var tmp = this.p1p($this$launch, $completion);
1628
- tmp.l8_1 = Unit_instance;
1629
- tmp.m8_1 = null;
1630
- return tmp.r8();
1670
+ protoOf(ponger$slambda).j1q = function ($this$launch, $completion) {
1671
+ var tmp = this.k1q($this$launch, $completion);
1672
+ tmp.m8_1 = Unit_instance;
1673
+ tmp.n8_1 = null;
1674
+ return tmp.s8();
1631
1675
  };
1632
- protoOf(ponger$slambda).d9 = function (p1, $completion) {
1633
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1676
+ protoOf(ponger$slambda).f9 = function (p1, $completion) {
1677
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1634
1678
  };
1635
- protoOf(ponger$slambda).r8 = function () {
1636
- var suspendResult = this.l8_1;
1679
+ protoOf(ponger$slambda).s8 = function () {
1680
+ var suspendResult = this.m8_1;
1637
1681
  $sm: do
1638
1682
  try {
1639
- var tmp = this.j8_1;
1683
+ var tmp = this.k8_1;
1640
1684
  switch (tmp) {
1641
1685
  case 0:
1642
- this.k8_1 = 14;
1643
- this.k8_1 = 13;
1644
- this.j38_1 = this.d38_1;
1645
- this.j8_1 = 1;
1686
+ this.l8_1 = 14;
1687
+ this.l8_1 = 13;
1688
+ this.r39_1 = this.l39_1;
1689
+ this.k8_1 = 1;
1646
1690
  continue $sm;
1647
1691
  case 1:
1648
- this.h38_1 = this.j38_1;
1649
- this.g38_1 = null;
1650
- this.j8_1 = 2;
1692
+ this.p39_1 = this.r39_1;
1693
+ this.o39_1 = null;
1694
+ this.k8_1 = 2;
1651
1695
  continue $sm;
1652
1696
  case 2:
1653
- this.j8_1 = 3;
1697
+ this.k8_1 = 3;
1654
1698
  continue $sm;
1655
1699
  case 3:
1656
- this.k8_1 = 10;
1657
- this.k8_1 = 9;
1658
- this.i38_1 = this.h38_1.t();
1659
- this.j8_1 = 4;
1700
+ this.l8_1 = 10;
1701
+ this.l8_1 = 9;
1702
+ this.q39_1 = this.p39_1.t();
1703
+ this.k8_1 = 4;
1660
1704
  continue $sm;
1661
1705
  case 4:
1662
- this.j8_1 = 5;
1663
- suspendResult = this.i38_1.v16(this);
1706
+ this.k8_1 = 5;
1707
+ suspendResult = this.q39_1.j17(this);
1664
1708
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1665
1709
  return suspendResult;
1666
1710
  }
@@ -1668,311 +1712,305 @@ protoOf(ponger$slambda).r8 = function () {
1668
1712
  continue $sm;
1669
1713
  case 5:
1670
1714
  if (!suspendResult) {
1671
- this.j8_1 = 7;
1715
+ this.k8_1 = 7;
1672
1716
  continue $sm;
1673
1717
  }
1674
1718
 
1675
- var e = this.i38_1.v();
1676
- get_LOGGER().h2j('Received ping message, sending pong message');
1677
- this.j8_1 = 6;
1678
- suspendResult = this.e38_1.s18(new Pong(e.k36_1), this);
1719
+ var e = this.q39_1.v();
1720
+ get_LOGGER().c2k('Received ping message, sending pong message');
1721
+ this.k8_1 = 6;
1722
+ suspendResult = this.m39_1.g19(new Pong(e.c34_1), this);
1679
1723
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1680
1724
  return suspendResult;
1681
1725
  }
1682
1726
 
1683
1727
  continue $sm;
1684
1728
  case 6:
1685
- this.j8_1 = 4;
1729
+ this.k8_1 = 4;
1686
1730
  continue $sm;
1687
1731
  case 7:
1688
- this.j8_1 = 8;
1732
+ this.k8_1 = 8;
1689
1733
  var tmp_0 = this;
1690
1734
  continue $sm;
1691
1735
  case 8:
1692
- this.k8_1 = 13;
1693
- cancelConsumed(this.h38_1, this.g38_1);
1694
- this.j8_1 = 12;
1736
+ this.l8_1 = 13;
1737
+ cancelConsumed(this.p39_1, this.o39_1);
1738
+ this.k8_1 = 12;
1695
1739
  continue $sm;
1696
1740
  case 9:
1697
- this.k8_1 = 10;
1698
- var tmp_1 = this.m8_1;
1741
+ this.l8_1 = 10;
1742
+ var tmp_1 = this.n8_1;
1699
1743
  if (tmp_1 instanceof Error) {
1700
- var e_0 = this.m8_1;
1744
+ var e_0 = this.n8_1;
1701
1745
  var tmp_2 = this;
1702
- this.g38_1 = e_0;
1746
+ this.o39_1 = e_0;
1703
1747
  throw e_0;
1704
1748
  } else {
1705
- throw this.m8_1;
1749
+ throw this.n8_1;
1706
1750
  }
1707
1751
 
1708
1752
  case 10:
1709
- this.k8_1 = 13;
1710
- var t = this.m8_1;
1711
- cancelConsumed(this.h38_1, this.g38_1);
1753
+ this.l8_1 = 13;
1754
+ var t = this.n8_1;
1755
+ cancelConsumed(this.p39_1, this.o39_1);
1712
1756
  throw t;
1713
1757
  case 11:
1714
- this.k8_1 = 13;
1715
- cancelConsumed(this.h38_1, this.g38_1);
1758
+ this.l8_1 = 13;
1759
+ cancelConsumed(this.p39_1, this.o39_1);
1716
1760
  if (false) {
1717
- this.j8_1 = 1;
1761
+ this.k8_1 = 1;
1718
1762
  continue $sm;
1719
1763
  }
1720
1764
 
1721
- this.j8_1 = 12;
1765
+ this.k8_1 = 12;
1722
1766
  continue $sm;
1723
1767
  case 12:
1724
- this.k8_1 = 14;
1725
- this.j8_1 = 15;
1768
+ this.l8_1 = 14;
1769
+ this.k8_1 = 15;
1726
1770
  continue $sm;
1727
1771
  case 13:
1728
- this.k8_1 = 14;
1729
- var tmp_3 = this.m8_1;
1772
+ this.l8_1 = 14;
1773
+ var tmp_3 = this.n8_1;
1730
1774
  if (tmp_3 instanceof ClosedSendChannelException) {
1731
- var _unused_var__etf5q3 = this.m8_1;
1732
- this.j8_1 = 15;
1775
+ var _unused_var__etf5q3 = this.n8_1;
1776
+ this.k8_1 = 15;
1733
1777
  continue $sm;
1734
1778
  } else {
1735
- throw this.m8_1;
1779
+ throw this.n8_1;
1736
1780
  }
1737
1781
 
1738
1782
  case 14:
1739
- throw this.m8_1;
1783
+ throw this.n8_1;
1740
1784
  case 15:
1741
- this.k8_1 = 14;
1785
+ this.l8_1 = 14;
1742
1786
  return Unit_instance;
1743
1787
  }
1744
1788
  } catch ($p) {
1745
1789
  var e_1 = $p;
1746
- if (this.k8_1 === 14) {
1790
+ if (this.l8_1 === 14) {
1747
1791
  throw e_1;
1748
1792
  } else {
1749
- this.j8_1 = this.k8_1;
1750
- this.m8_1 = e_1;
1793
+ this.k8_1 = this.l8_1;
1794
+ this.n8_1 = e_1;
1751
1795
  }
1752
1796
  }
1753
1797
  while (true);
1754
1798
  };
1755
- protoOf(ponger$slambda).p1p = function ($this$launch, completion) {
1756
- var i = new ponger$slambda(this.d38_1, this.e38_1, completion);
1757
- i.f38_1 = $this$launch;
1799
+ protoOf(ponger$slambda).k1q = function ($this$launch, completion) {
1800
+ var i = new ponger$slambda(this.l39_1, this.m39_1, completion);
1801
+ i.n39_1 = $this$launch;
1758
1802
  return i;
1759
1803
  };
1760
1804
  function ponger$slambda_0($channel, $outgoing, resultContinuation) {
1761
1805
  var i = new ponger$slambda($channel, $outgoing, resultContinuation);
1762
- var l = function ($this$launch, $completion) {
1763
- return i.o1p($this$launch, $completion);
1764
- };
1765
- l.$arity = 1;
1766
- return l;
1806
+ return constructCallableReference(function ($this$launch, $completion) {
1807
+ return i.j1q($this$launch, $completion);
1808
+ }, 1);
1767
1809
  }
1768
1810
  function pinger$slambda$slambda($channel, resultContinuation) {
1769
- this.s38_1 = $channel;
1811
+ this.a3a_1 = $channel;
1770
1812
  CoroutineImpl.call(this, resultContinuation);
1771
1813
  }
1772
- protoOf(pinger$slambda$slambda).o1p = function ($this$withTimeoutOrNull, $completion) {
1773
- var tmp = this.p1p($this$withTimeoutOrNull, $completion);
1774
- tmp.l8_1 = Unit_instance;
1775
- tmp.m8_1 = null;
1776
- return tmp.r8();
1814
+ protoOf(pinger$slambda$slambda).j1q = function ($this$withTimeoutOrNull, $completion) {
1815
+ var tmp = this.k1q($this$withTimeoutOrNull, $completion);
1816
+ tmp.m8_1 = Unit_instance;
1817
+ tmp.n8_1 = null;
1818
+ return tmp.s8();
1777
1819
  };
1778
- protoOf(pinger$slambda$slambda).d9 = function (p1, $completion) {
1779
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1820
+ protoOf(pinger$slambda$slambda).f9 = function (p1, $completion) {
1821
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1780
1822
  };
1781
- protoOf(pinger$slambda$slambda).r8 = function () {
1782
- var suspendResult = this.l8_1;
1823
+ protoOf(pinger$slambda$slambda).s8 = function () {
1824
+ var suspendResult = this.m8_1;
1783
1825
  $sm: do
1784
1826
  try {
1785
- var tmp = this.j8_1;
1827
+ var tmp = this.k8_1;
1786
1828
  switch (tmp) {
1787
1829
  case 0:
1788
- this.k8_1 = 3;
1789
- this.j8_1 = 1;
1830
+ this.l8_1 = 3;
1831
+ this.k8_1 = 1;
1790
1832
  continue $sm;
1791
1833
  case 1:
1792
1834
  if (!true) {
1793
- this.j8_1 = 4;
1835
+ this.k8_1 = 4;
1794
1836
  continue $sm;
1795
1837
  }
1796
1838
 
1797
- this.j8_1 = 2;
1798
- suspendResult = this.s38_1.w18(this);
1839
+ this.k8_1 = 2;
1840
+ suspendResult = this.a3a_1.j19(this);
1799
1841
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1800
1842
  return suspendResult;
1801
1843
  }
1802
1844
 
1803
1845
  continue $sm;
1804
1846
  case 2:
1805
- this.j8_1 = 1;
1847
+ this.k8_1 = 1;
1806
1848
  continue $sm;
1807
1849
  case 3:
1808
- throw this.m8_1;
1850
+ throw this.n8_1;
1809
1851
  case 4:
1810
1852
  return Unit_instance;
1811
1853
  }
1812
1854
  } catch ($p) {
1813
1855
  var e = $p;
1814
- if (this.k8_1 === 3) {
1856
+ if (this.l8_1 === 3) {
1815
1857
  throw e;
1816
1858
  } else {
1817
- this.j8_1 = this.k8_1;
1818
- this.m8_1 = e;
1859
+ this.k8_1 = this.l8_1;
1860
+ this.n8_1 = e;
1819
1861
  }
1820
1862
  }
1821
1863
  while (true);
1822
1864
  };
1823
- protoOf(pinger$slambda$slambda).p1p = function ($this$withTimeoutOrNull, completion) {
1824
- var i = new pinger$slambda$slambda(this.s38_1, completion);
1825
- i.t38_1 = $this$withTimeoutOrNull;
1865
+ protoOf(pinger$slambda$slambda).k1q = function ($this$withTimeoutOrNull, completion) {
1866
+ var i = new pinger$slambda$slambda(this.a3a_1, completion);
1867
+ i.b3a_1 = $this$withTimeoutOrNull;
1826
1868
  return i;
1827
1869
  };
1828
1870
  function pinger$slambda$slambda_0($channel, resultContinuation) {
1829
1871
  var i = new pinger$slambda$slambda($channel, resultContinuation);
1830
- var l = function ($this$withTimeoutOrNull, $completion) {
1831
- return i.o1p($this$withTimeoutOrNull, $completion);
1832
- };
1833
- l.$arity = 1;
1834
- return l;
1872
+ return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
1873
+ return i.j1q($this$withTimeoutOrNull, $completion);
1874
+ }, 1);
1835
1875
  }
1836
1876
  function pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation) {
1837
- this.c39_1 = $outgoing;
1838
- this.d39_1 = $pingMessage;
1839
- this.e39_1 = $channel;
1877
+ this.k3a_1 = $outgoing;
1878
+ this.l3a_1 = $pingMessage;
1879
+ this.m3a_1 = $channel;
1840
1880
  CoroutineImpl.call(this, resultContinuation);
1841
1881
  }
1842
- protoOf(pinger$slambda$slambda_1).o1p = function ($this$withTimeoutOrNull, $completion) {
1843
- var tmp = this.p1p($this$withTimeoutOrNull, $completion);
1844
- tmp.l8_1 = Unit_instance;
1845
- tmp.m8_1 = null;
1846
- return tmp.r8();
1882
+ protoOf(pinger$slambda$slambda_1).j1q = function ($this$withTimeoutOrNull, $completion) {
1883
+ var tmp = this.k1q($this$withTimeoutOrNull, $completion);
1884
+ tmp.m8_1 = Unit_instance;
1885
+ tmp.n8_1 = null;
1886
+ return tmp.s8();
1847
1887
  };
1848
- protoOf(pinger$slambda$slambda_1).d9 = function (p1, $completion) {
1849
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1888
+ protoOf(pinger$slambda$slambda_1).f9 = function (p1, $completion) {
1889
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1850
1890
  };
1851
- protoOf(pinger$slambda$slambda_1).r8 = function () {
1852
- var suspendResult = this.l8_1;
1891
+ protoOf(pinger$slambda$slambda_1).s8 = function () {
1892
+ var suspendResult = this.m8_1;
1853
1893
  $sm: do
1854
1894
  try {
1855
- var tmp = this.j8_1;
1895
+ var tmp = this.k8_1;
1856
1896
  switch (tmp) {
1857
1897
  case 0:
1858
- this.k8_1 = 6;
1859
- get_LOGGER().h2j('WebSocket Pinger: sending ping frame');
1860
- this.j8_1 = 1;
1861
- suspendResult = this.c39_1.s18(new Ping(toByteArray(this.d39_1, Charsets_getInstance().p1q_1)), this);
1898
+ this.l8_1 = 6;
1899
+ get_LOGGER().c2k('WebSocket Pinger: sending ping frame');
1900
+ this.k8_1 = 1;
1901
+ suspendResult = this.k3a_1.g19(new Ping(toByteArray(this.l3a_1, Charsets_getInstance().k1r_1)), this);
1862
1902
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1863
1903
  return suspendResult;
1864
1904
  }
1865
1905
 
1866
1906
  continue $sm;
1867
1907
  case 1:
1868
- this.j8_1 = 2;
1908
+ this.k8_1 = 2;
1869
1909
  continue $sm;
1870
1910
  case 2:
1871
1911
  if (!true) {
1872
- this.j8_1 = 5;
1912
+ this.k8_1 = 5;
1873
1913
  continue $sm;
1874
1914
  }
1875
1915
 
1876
- this.j8_1 = 3;
1877
- suspendResult = this.e39_1.w18(this);
1916
+ this.k8_1 = 3;
1917
+ suspendResult = this.m3a_1.j19(this);
1878
1918
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1879
1919
  return suspendResult;
1880
1920
  }
1881
1921
 
1882
1922
  continue $sm;
1883
1923
  case 3:
1884
- this.g39_1 = suspendResult;
1885
- if (decodeToString(this.g39_1.k36_1, 0, 0 + this.g39_1.k36_1.length | 0) === this.d39_1) {
1886
- get_LOGGER().h2j('WebSocket Pinger: received valid pong frame ' + this.g39_1.toString());
1887
- this.j8_1 = 5;
1924
+ this.o3a_1 = suspendResult;
1925
+ if (decodeToString(this.o3a_1.c34_1, 0, 0 + this.o3a_1.c34_1.length | 0) === this.l3a_1) {
1926
+ get_LOGGER().c2k('WebSocket Pinger: received valid pong frame ' + this.o3a_1.toString());
1927
+ this.k8_1 = 5;
1888
1928
  continue $sm;
1889
1929
  } else {
1890
- this.j8_1 = 4;
1930
+ this.k8_1 = 4;
1891
1931
  continue $sm;
1892
1932
  }
1893
1933
 
1894
1934
  case 4:
1895
- get_LOGGER().h2j('WebSocket Pinger: received invalid pong frame ' + this.g39_1.toString() + ', continue waiting');
1896
- this.j8_1 = 2;
1935
+ get_LOGGER().c2k('WebSocket Pinger: received invalid pong frame ' + this.o3a_1.toString() + ', continue waiting');
1936
+ this.k8_1 = 2;
1897
1937
  continue $sm;
1898
1938
  case 5:
1899
1939
  return Unit_instance;
1900
1940
  case 6:
1901
- throw this.m8_1;
1941
+ throw this.n8_1;
1902
1942
  }
1903
1943
  } catch ($p) {
1904
1944
  var e = $p;
1905
- if (this.k8_1 === 6) {
1945
+ if (this.l8_1 === 6) {
1906
1946
  throw e;
1907
1947
  } else {
1908
- this.j8_1 = this.k8_1;
1909
- this.m8_1 = e;
1948
+ this.k8_1 = this.l8_1;
1949
+ this.n8_1 = e;
1910
1950
  }
1911
1951
  }
1912
1952
  while (true);
1913
1953
  };
1914
- protoOf(pinger$slambda$slambda_1).p1p = function ($this$withTimeoutOrNull, completion) {
1915
- var i = new pinger$slambda$slambda_1(this.c39_1, this.d39_1, this.e39_1, completion);
1916
- i.f39_1 = $this$withTimeoutOrNull;
1954
+ protoOf(pinger$slambda$slambda_1).k1q = function ($this$withTimeoutOrNull, completion) {
1955
+ var i = new pinger$slambda$slambda_1(this.k3a_1, this.l3a_1, this.m3a_1, completion);
1956
+ i.n3a_1 = $this$withTimeoutOrNull;
1917
1957
  return i;
1918
1958
  };
1919
1959
  function pinger$slambda$slambda_2($outgoing, $pingMessage, $channel, resultContinuation) {
1920
1960
  var i = new pinger$slambda$slambda_1($outgoing, $pingMessage, $channel, resultContinuation);
1921
- var l = function ($this$withTimeoutOrNull, $completion) {
1922
- return i.o1p($this$withTimeoutOrNull, $completion);
1923
- };
1924
- l.$arity = 1;
1925
- return l;
1961
+ return constructCallableReference(function ($this$withTimeoutOrNull, $completion) {
1962
+ return i.j1q($this$withTimeoutOrNull, $completion);
1963
+ }, 1);
1926
1964
  }
1927
1965
  function pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
1928
- this.p39_1 = $periodMillis;
1929
- this.q39_1 = $timeoutMillis;
1930
- this.r39_1 = $onTimeout;
1931
- this.s39_1 = $channel;
1932
- this.t39_1 = $outgoing;
1966
+ this.x3a_1 = $periodMillis;
1967
+ this.y3a_1 = $timeoutMillis;
1968
+ this.z3a_1 = $onTimeout;
1969
+ this.a3b_1 = $channel;
1970
+ this.b3b_1 = $outgoing;
1933
1971
  CoroutineImpl.call(this, resultContinuation);
1934
1972
  }
1935
- protoOf(pinger$slambda).o1p = function ($this$launch, $completion) {
1936
- var tmp = this.p1p($this$launch, $completion);
1937
- tmp.l8_1 = Unit_instance;
1938
- tmp.m8_1 = null;
1939
- return tmp.r8();
1973
+ protoOf(pinger$slambda).j1q = function ($this$launch, $completion) {
1974
+ var tmp = this.k1q($this$launch, $completion);
1975
+ tmp.m8_1 = Unit_instance;
1976
+ tmp.n8_1 = null;
1977
+ return tmp.s8();
1940
1978
  };
1941
- protoOf(pinger$slambda).d9 = function (p1, $completion) {
1942
- return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1979
+ protoOf(pinger$slambda).f9 = function (p1, $completion) {
1980
+ return this.j1q((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
1943
1981
  };
1944
- protoOf(pinger$slambda).r8 = function () {
1945
- var suspendResult = this.l8_1;
1982
+ protoOf(pinger$slambda).s8 = function () {
1983
+ var suspendResult = this.m8_1;
1946
1984
  $sm: do
1947
1985
  try {
1948
- var tmp = this.j8_1;
1986
+ var tmp = this.k8_1;
1949
1987
  switch (tmp) {
1950
1988
  case 0:
1951
- this.k8_1 = 9;
1952
- get_LOGGER().h2j('Starting WebSocket pinger coroutine with period ' + this.p39_1.toString() + ' ms and timeout ' + this.q39_1.toString() + ' ms');
1953
- this.w39_1 = Random(getTimeMillis());
1954
- this.v39_1 = new Int8Array(32);
1955
- this.k8_1 = 7;
1956
- this.j8_1 = 1;
1989
+ this.l8_1 = 9;
1990
+ get_LOGGER().c2k('Starting WebSocket pinger coroutine with period ' + this.x3a_1.toString() + ' ms and timeout ' + this.y3a_1.toString() + ' ms');
1991
+ this.e3b_1 = Random(getTimeMillis());
1992
+ this.d3b_1 = new Int8Array(32);
1993
+ this.l8_1 = 7;
1994
+ this.k8_1 = 1;
1957
1995
  continue $sm;
1958
1996
  case 1:
1959
1997
  if (!true) {
1960
- this.j8_1 = 6;
1998
+ this.k8_1 = 6;
1961
1999
  continue $sm;
1962
2000
  }
1963
2001
 
1964
- this.j8_1 = 2;
1965
- suspendResult = withTimeoutOrNull(this.p39_1, pinger$slambda$slambda_0(this.s39_1, null), this);
2002
+ this.k8_1 = 2;
2003
+ suspendResult = withTimeoutOrNull(this.x3a_1, pinger$slambda$slambda_0(this.a3b_1, null), this);
1966
2004
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1967
2005
  return suspendResult;
1968
2006
  }
1969
2007
 
1970
2008
  continue $sm;
1971
2009
  case 2:
1972
- this.w39_1.dh(this.v39_1);
1973
- var pingMessage = '[ping ' + hex(this.v39_1) + ' ping]';
1974
- this.j8_1 = 3;
1975
- suspendResult = withTimeoutOrNull(this.q39_1, pinger$slambda$slambda_2(this.t39_1, pingMessage, this.s39_1, null), this);
2010
+ this.e3b_1.rh(this.d3b_1);
2011
+ var pingMessage = '[ping ' + toHexString(this.d3b_1) + ' ping]';
2012
+ this.k8_1 = 3;
2013
+ suspendResult = withTimeoutOrNull(this.y3a_1, pinger$slambda$slambda_2(this.b3b_1, pingMessage, this.a3b_1, null), this);
1976
2014
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1977
2015
  return suspendResult;
1978
2016
  }
@@ -1981,93 +2019,91 @@ protoOf(pinger$slambda).r8 = function () {
1981
2019
  case 3:
1982
2020
  var rc = suspendResult;
1983
2021
  if (rc == null) {
1984
- get_LOGGER().h2j('WebSocket pinger has timed out');
1985
- this.j8_1 = 5;
1986
- suspendResult = this.r39_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
2022
+ get_LOGGER().c2k('WebSocket pinger has timed out');
2023
+ this.k8_1 = 5;
2024
+ suspendResult = this.z3a_1(CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), 'Ping timeout'), this);
1987
2025
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1988
2026
  return suspendResult;
1989
2027
  }
1990
2028
  continue $sm;
1991
2029
  } else {
1992
- this.j8_1 = 4;
2030
+ this.k8_1 = 4;
1993
2031
  continue $sm;
1994
2032
  }
1995
2033
 
1996
2034
  case 4:
1997
- this.j8_1 = 1;
2035
+ this.k8_1 = 1;
1998
2036
  continue $sm;
1999
2037
  case 5:
2000
- this.j8_1 = 6;
2038
+ this.k8_1 = 6;
2001
2039
  continue $sm;
2002
2040
  case 6:
2003
- this.k8_1 = 9;
2004
- this.j8_1 = 8;
2041
+ this.l8_1 = 9;
2042
+ this.k8_1 = 8;
2005
2043
  continue $sm;
2006
2044
  case 7:
2007
- this.k8_1 = 9;
2008
- var tmp_0 = this.m8_1;
2045
+ this.l8_1 = 9;
2046
+ var tmp_0 = this.n8_1;
2009
2047
  if (tmp_0 instanceof CancellationException) {
2010
- var ignore = this.m8_1;
2011
- this.j8_1 = 8;
2048
+ var ignore = this.n8_1;
2049
+ this.k8_1 = 8;
2012
2050
  continue $sm;
2013
2051
  } else {
2014
- var tmp_1 = this.m8_1;
2052
+ var tmp_1 = this.n8_1;
2015
2053
  if (tmp_1 instanceof ClosedReceiveChannelException) {
2016
- var ignore_0 = this.m8_1;
2017
- this.j8_1 = 8;
2054
+ var ignore_0 = this.n8_1;
2055
+ this.k8_1 = 8;
2018
2056
  continue $sm;
2019
2057
  } else {
2020
- var tmp_2 = this.m8_1;
2058
+ var tmp_2 = this.n8_1;
2021
2059
  if (tmp_2 instanceof ClosedSendChannelException) {
2022
- var ignore_1 = this.m8_1;
2023
- this.j8_1 = 8;
2060
+ var ignore_1 = this.n8_1;
2061
+ this.k8_1 = 8;
2024
2062
  continue $sm;
2025
2063
  } else {
2026
- var tmp_3 = this.m8_1;
2064
+ var tmp_3 = this.n8_1;
2027
2065
  if (tmp_3 instanceof ClosedByteChannelException) {
2028
- var ignore_2 = this.m8_1;
2029
- this.j8_1 = 8;
2066
+ var ignore_2 = this.n8_1;
2067
+ this.k8_1 = 8;
2030
2068
  continue $sm;
2031
2069
  } else {
2032
- throw this.m8_1;
2070
+ throw this.n8_1;
2033
2071
  }
2034
2072
  }
2035
2073
  }
2036
2074
  }
2037
2075
 
2038
2076
  case 8:
2039
- this.k8_1 = 9;
2077
+ this.l8_1 = 9;
2040
2078
  return Unit_instance;
2041
2079
  case 9:
2042
- throw this.m8_1;
2080
+ throw this.n8_1;
2043
2081
  }
2044
2082
  } catch ($p) {
2045
2083
  var e = $p;
2046
- if (this.k8_1 === 9) {
2084
+ if (this.l8_1 === 9) {
2047
2085
  throw e;
2048
2086
  } else {
2049
- this.j8_1 = this.k8_1;
2050
- this.m8_1 = e;
2087
+ this.k8_1 = this.l8_1;
2088
+ this.n8_1 = e;
2051
2089
  }
2052
2090
  }
2053
2091
  while (true);
2054
2092
  };
2055
- protoOf(pinger$slambda).p1p = function ($this$launch, completion) {
2056
- var i = new pinger$slambda(this.p39_1, this.q39_1, this.r39_1, this.s39_1, this.t39_1, completion);
2057
- i.u39_1 = $this$launch;
2093
+ protoOf(pinger$slambda).k1q = function ($this$launch, completion) {
2094
+ var i = new pinger$slambda(this.x3a_1, this.y3a_1, this.z3a_1, this.a3b_1, this.b3b_1, completion);
2095
+ i.c3b_1 = $this$launch;
2058
2096
  return i;
2059
2097
  };
2060
2098
  function pinger$slambda_0($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation) {
2061
2099
  var i = new pinger$slambda($periodMillis, $timeoutMillis, $onTimeout, $channel, $outgoing, resultContinuation);
2062
- var l = function ($this$launch, $completion) {
2063
- return i.o1p($this$launch, $completion);
2064
- };
2065
- l.$arity = 1;
2066
- return l;
2100
+ return constructCallableReference(function ($this$launch, $completion) {
2101
+ return i.j1q($this$launch, $completion);
2102
+ }, 1);
2067
2103
  }
2068
2104
  function pinger$lambda($actorJob) {
2069
2105
  return function (it) {
2070
- $actorJob.et();
2106
+ $actorJob.st();
2071
2107
  return Unit_instance;
2072
2108
  };
2073
2109
  }
@@ -2079,38 +2115,38 @@ function _init_properties_PingPong_kt__9aqxey() {
2079
2115
  PingerCoroutineName = new CoroutineName('ws-pinger');
2080
2116
  }
2081
2117
  }
2082
- function Companion_2() {
2083
- Companion_instance_2 = this;
2118
+ function Companion_3() {
2119
+ Companion_instance_3 = this;
2084
2120
  var tmp = this;
2085
2121
  // Inline function 'kotlin.apply' call
2086
2122
  var this_0 = new WebSocketChannelsConfig();
2087
- this_0.v32_1 = this_0.x39();
2088
- this_0.w32_1 = this_0.x39();
2089
- tmp.u32_1 = this_0;
2123
+ this_0.o34_1 = this_0.f3b();
2124
+ this_0.p34_1 = this_0.f3b();
2125
+ tmp.n34_1 = this_0;
2090
2126
  }
2091
- var Companion_instance_2;
2092
- function Companion_getInstance_2() {
2093
- if (Companion_instance_2 == null)
2094
- new Companion_2();
2095
- return Companion_instance_2;
2127
+ var Companion_instance_3;
2128
+ function Companion_getInstance_3() {
2129
+ if (Companion_instance_3 == null)
2130
+ new Companion_3();
2131
+ return Companion_instance_3;
2096
2132
  }
2097
2133
  function WebSocketChannelsConfig() {
2098
- Companion_getInstance_2();
2099
- this.v32_1 = Companion_getInstance_3().y39_1;
2100
- this.w32_1 = Companion_getInstance_3().y39_1;
2134
+ Companion_getInstance_3();
2135
+ this.o34_1 = Companion_getInstance_4().g3b_1;
2136
+ this.p34_1 = Companion_getInstance_4().g3b_1;
2101
2137
  }
2102
- protoOf(WebSocketChannelsConfig).x39 = function () {
2103
- return Companion_getInstance_3().y39_1;
2138
+ protoOf(WebSocketChannelsConfig).f3b = function () {
2139
+ return Companion_getInstance_4().g3b_1;
2104
2140
  };
2105
2141
  function from(_this__u8e3s4, config) {
2106
2142
  // Inline function 'kotlin.with' call
2107
2143
  var tmp;
2108
- if (config.z39_1 === 2147483647) {
2144
+ if (config.h3b_1 === 2147483647) {
2109
2145
  tmp = Channel(2147483647);
2110
- } else if (config.a3a_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
2111
- tmp = Channel(config.z39_1, BufferOverflow_SUSPEND_getInstance());
2112
- } else if (config.a3a_1.equals(ChannelOverflow_CLOSE_getInstance())) {
2113
- tmp = new BoundedChannel(config.z39_1);
2146
+ } else if (config.i3b_1.equals(ChannelOverflow_SUSPEND_getInstance())) {
2147
+ tmp = Channel(config.h3b_1, BufferOverflow_SUSPEND_getInstance());
2148
+ } else if (config.i3b_1.equals(ChannelOverflow_CLOSE_getInstance())) {
2149
+ tmp = new BoundedChannel(config.h3b_1);
2114
2150
  } else {
2115
2151
  // Inline function 'kotlin.error' call
2116
2152
  var message = 'Unsupported channel config.';
@@ -2118,23 +2154,23 @@ function from(_this__u8e3s4, config) {
2118
2154
  }
2119
2155
  return tmp;
2120
2156
  }
2121
- function Companion_3() {
2122
- Companion_instance_3 = this;
2123
- this.y39_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
2157
+ function Companion_4() {
2158
+ Companion_instance_4 = this;
2159
+ this.g3b_1 = new ChannelConfig(2147483647, ChannelOverflow_SUSPEND_getInstance());
2124
2160
  }
2125
- var Companion_instance_3;
2126
- function Companion_getInstance_3() {
2127
- if (Companion_instance_3 == null)
2128
- new Companion_3();
2129
- return Companion_instance_3;
2161
+ var Companion_instance_4;
2162
+ function Companion_getInstance_4() {
2163
+ if (Companion_instance_4 == null)
2164
+ new Companion_4();
2165
+ return Companion_instance_4;
2130
2166
  }
2131
2167
  function ChannelConfig(capacity, onOverflow) {
2132
- Companion_getInstance_3();
2133
- this.z39_1 = capacity;
2134
- this.a3a_1 = onOverflow;
2168
+ Companion_getInstance_4();
2169
+ this.h3b_1 = capacity;
2170
+ this.i3b_1 = onOverflow;
2135
2171
  }
2136
- protoOf(ChannelConfig).b3a = function () {
2137
- return this.a3a_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.z39_1 === 2147483647);
2172
+ protoOf(ChannelConfig).j3b = function () {
2173
+ return this.i3b_1.equals(ChannelOverflow_SUSPEND_getInstance()) && !(this.h3b_1 === 2147483647);
2138
2174
  };
2139
2175
  var ChannelOverflow_SUSPEND_instance;
2140
2176
  var ChannelOverflow_CLOSE_instance;
@@ -2158,22 +2194,22 @@ function BoundedChannel$Companion$createDelegate$lambda($channel) {
2158
2194
  } else {
2159
2195
  tmp_0 = $channel._v;
2160
2196
  }
2161
- if (!tmp_0.x16()) {
2197
+ if (!tmp_0.l17()) {
2162
2198
  var tmp_1;
2163
2199
  if ($channel._v == null) {
2164
2200
  throwUninitializedPropertyAccessException('channel');
2165
2201
  } else {
2166
2202
  tmp_1 = $channel._v;
2167
2203
  }
2168
- tmp_1.y18(new ChannelOverflowException('Channel overflowed'));
2204
+ tmp_1.l19(new ChannelOverflowException('Channel overflowed'));
2169
2205
  tmp = Unit_instance;
2170
2206
  }
2171
2207
  return Unit_instance;
2172
2208
  };
2173
2209
  }
2174
- function Companion_4() {
2210
+ function Companion_5() {
2175
2211
  }
2176
- protoOf(Companion_4).c3a = function (capacity) {
2212
+ protoOf(Companion_5).k3b = function (capacity) {
2177
2213
  var channel = {_v: null};
2178
2214
  var tmp = BufferOverflow_DROP_OLDEST_getInstance();
2179
2215
  // Inline function 'kotlin.also' call
@@ -2181,47 +2217,47 @@ protoOf(Companion_4).c3a = function (capacity) {
2181
2217
  channel._v = this_0;
2182
2218
  return this_0;
2183
2219
  };
2184
- var Companion_instance_4;
2185
- function Companion_getInstance_4() {
2186
- return Companion_instance_4;
2220
+ var Companion_instance_5;
2221
+ function Companion_getInstance_5() {
2222
+ return Companion_instance_5;
2187
2223
  }
2188
2224
  function BoundedChannel(capacity, delegate) {
2189
- delegate = delegate === VOID ? Companion_instance_4.c3a(capacity) : delegate;
2190
- this.d3a_1 = delegate;
2225
+ delegate = delegate === VOID ? Companion_instance_5.k3b(capacity) : delegate;
2226
+ this.l3b_1 = delegate;
2191
2227
  }
2192
- protoOf(BoundedChannel).e3a = function (element) {
2193
- var result = this.d3a_1.t18(element);
2228
+ protoOf(BoundedChannel).m3b = function (element) {
2229
+ var result = this.l3b_1.h19(element);
2194
2230
  if (!_ChannelResult___get_isSuccess__impl__odq1z9(result) && !_ChannelResult___get_isClosed__impl__mg7kuu(result)) {
2195
- this.y18(new ChannelOverflowException('Channel overflowed'));
2231
+ this.l19(new ChannelOverflowException('Channel overflowed'));
2196
2232
  }
2197
2233
  return result;
2198
2234
  };
2199
- protoOf(BoundedChannel).t18 = function (element) {
2200
- return this.e3a(element);
2235
+ protoOf(BoundedChannel).h19 = function (element) {
2236
+ return this.m3b(element);
2201
2237
  };
2202
- protoOf(BoundedChannel).f3a = function (element, $completion) {
2203
- return this.d3a_1.s18(element, $completion);
2238
+ protoOf(BoundedChannel).n3b = function (element, $completion) {
2239
+ return this.l3b_1.g19(element, $completion);
2204
2240
  };
2205
- protoOf(BoundedChannel).s18 = function (element, $completion) {
2206
- return this.f3a(element, $completion);
2241
+ protoOf(BoundedChannel).g19 = function (element, $completion) {
2242
+ return this.n3b(element, $completion);
2207
2243
  };
2208
- protoOf(BoundedChannel).y18 = function (cause) {
2209
- return this.d3a_1.y18(cause);
2244
+ protoOf(BoundedChannel).l19 = function (cause) {
2245
+ return this.l3b_1.l19(cause);
2210
2246
  };
2211
- protoOf(BoundedChannel).x16 = function () {
2212
- return this.d3a_1.x16();
2247
+ protoOf(BoundedChannel).l17 = function () {
2248
+ return this.l3b_1.l17();
2213
2249
  };
2214
- protoOf(BoundedChannel).g3a = function ($completion) {
2215
- return this.d3a_1.w18($completion);
2250
+ protoOf(BoundedChannel).o3b = function ($completion) {
2251
+ return this.l3b_1.j19($completion);
2216
2252
  };
2217
- protoOf(BoundedChannel).w18 = function ($completion) {
2218
- return this.g3a($completion);
2253
+ protoOf(BoundedChannel).j19 = function ($completion) {
2254
+ return this.o3b($completion);
2219
2255
  };
2220
2256
  protoOf(BoundedChannel).t = function () {
2221
- return this.d3a_1.t();
2257
+ return this.l3b_1.t();
2222
2258
  };
2223
- protoOf(BoundedChannel).dt = function (cause) {
2224
- this.d3a_1.dt(cause);
2259
+ protoOf(BoundedChannel).rt = function (cause) {
2260
+ this.l3b_1.rt(cause);
2225
2261
  };
2226
2262
  function ChannelOverflowException(message) {
2227
2263
  RuntimeException_init_$Init$(message, this);
@@ -2240,16 +2276,16 @@ function WebSocketExtension() {
2240
2276
  function WebSocketExtensionsConfig() {
2241
2277
  var tmp = this;
2242
2278
  // Inline function 'kotlin.collections.mutableListOf' call
2243
- tmp.j3a_1 = ArrayList_init_$Create$();
2279
+ tmp.r3b_1 = ArrayList_init_$Create$();
2244
2280
  var tmp_0 = this;
2245
2281
  // Inline function 'kotlin.arrayOf' call
2246
2282
  // Inline function 'kotlin.js.unsafeCast' call
2247
2283
  // Inline function 'kotlin.js.asDynamic' call
2248
- tmp_0.k3a_1 = [false, false, false];
2284
+ tmp_0.s3b_1 = [false, false, false];
2249
2285
  }
2250
- protoOf(WebSocketExtensionsConfig).y2l = function () {
2286
+ protoOf(WebSocketExtensionsConfig).f2n = function () {
2251
2287
  // Inline function 'kotlin.collections.map' call
2252
- var this_0 = this.j3a_1;
2288
+ var this_0 = this.r3b_1;
2253
2289
  // Inline function 'kotlin.collections.mapTo' call
2254
2290
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2255
2291
  var _iterator__ex2g4s = this_0.t();
@@ -2261,14 +2297,14 @@ protoOf(WebSocketExtensionsConfig).y2l = function () {
2261
2297
  return destination;
2262
2298
  };
2263
2299
  function parametersToString($this) {
2264
- return $this.m3a_1.r() ? '' : '; ' + joinToString($this.m3a_1, ';');
2300
+ return $this.u3b_1.r() ? '' : '; ' + joinToString($this.u3b_1, ';');
2265
2301
  }
2266
2302
  function WebSocketExtensionHeader(name, parameters) {
2267
- this.l3a_1 = name;
2268
- this.m3a_1 = parameters;
2303
+ this.t3b_1 = name;
2304
+ this.u3b_1 = parameters;
2269
2305
  }
2270
2306
  protoOf(WebSocketExtensionHeader).toString = function () {
2271
- return this.l3a_1 + ' ' + parametersToString(this);
2307
+ return this.t3b_1 + ' ' + parametersToString(this);
2272
2308
  };
2273
2309
  function parseWebSocketExtensions(value) {
2274
2310
  // Inline function 'kotlin.collections.map' call
@@ -2304,77 +2340,78 @@ function WebSocketSession() {
2304
2340
  function close(_this__u8e3s4, reason, $completion) {
2305
2341
  reason = reason === VOID ? CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '') : reason;
2306
2342
  var tmp = new $closeCOROUTINE$(_this__u8e3s4, reason, $completion);
2307
- tmp.l8_1 = Unit_instance;
2308
- tmp.m8_1 = null;
2309
- return tmp.r8();
2343
+ tmp.m8_1 = Unit_instance;
2344
+ tmp.n8_1 = null;
2345
+ return tmp.s8();
2310
2346
  }
2311
2347
  function closeExceptionally(_this__u8e3s4, cause, $completion) {
2312
2348
  var tmp;
2313
2349
  if (cause instanceof CancellationException) {
2314
2350
  tmp = CloseReason_init_$Create$(Codes_NORMAL_getInstance(), '');
2315
2351
  } else {
2316
- tmp = CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), cause.toString());
2352
+ var message = utf8Truncate(cause.toString(), 123);
2353
+ tmp = CloseReason_init_$Create$(Codes_INTERNAL_ERROR_getInstance(), message);
2317
2354
  }
2318
2355
  var reason = tmp;
2319
2356
  return close(_this__u8e3s4, reason, $completion);
2320
2357
  }
2321
2358
  function $closeCOROUTINE$(_this__u8e3s4, reason, resultContinuation) {
2322
2359
  CoroutineImpl.call(this, resultContinuation);
2323
- this.v3a_1 = _this__u8e3s4;
2324
- this.w3a_1 = reason;
2360
+ this.d3c_1 = _this__u8e3s4;
2361
+ this.e3c_1 = reason;
2325
2362
  }
2326
- protoOf($closeCOROUTINE$).r8 = function () {
2327
- var suspendResult = this.l8_1;
2363
+ protoOf($closeCOROUTINE$).s8 = function () {
2364
+ var suspendResult = this.m8_1;
2328
2365
  $sm: do
2329
2366
  try {
2330
- var tmp = this.j8_1;
2367
+ var tmp = this.k8_1;
2331
2368
  switch (tmp) {
2332
2369
  case 0:
2333
- this.k8_1 = 4;
2334
- this.k8_1 = 3;
2335
- this.j8_1 = 1;
2336
- suspendResult = this.v3a_1.t32(Close_init_$Create$(this.w3a_1), this);
2370
+ this.l8_1 = 4;
2371
+ this.l8_1 = 3;
2372
+ this.k8_1 = 1;
2373
+ suspendResult = this.d3c_1.m34(Close_init_$Create$(this.e3c_1), this);
2337
2374
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2338
2375
  return suspendResult;
2339
2376
  }
2340
2377
 
2341
2378
  continue $sm;
2342
2379
  case 1:
2343
- this.j8_1 = 2;
2344
- suspendResult = this.v3a_1.i1g(this);
2380
+ this.k8_1 = 2;
2381
+ suspendResult = this.d3c_1.y1g(this);
2345
2382
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2346
2383
  return suspendResult;
2347
2384
  }
2348
2385
 
2349
2386
  continue $sm;
2350
2387
  case 2:
2351
- this.k8_1 = 4;
2352
- this.j8_1 = 5;
2388
+ this.l8_1 = 4;
2389
+ this.k8_1 = 5;
2353
2390
  continue $sm;
2354
2391
  case 3:
2355
- this.k8_1 = 4;
2356
- var tmp_0 = this.m8_1;
2392
+ this.l8_1 = 4;
2393
+ var tmp_0 = this.n8_1;
2357
2394
  if (tmp_0 instanceof Error) {
2358
- var _unused_var__etf5q3 = this.m8_1;
2359
- this.j8_1 = 5;
2395
+ var _unused_var__etf5q3 = this.n8_1;
2396
+ this.k8_1 = 5;
2360
2397
  continue $sm;
2361
2398
  } else {
2362
- throw this.m8_1;
2399
+ throw this.n8_1;
2363
2400
  }
2364
2401
 
2365
2402
  case 4:
2366
- throw this.m8_1;
2403
+ throw this.n8_1;
2367
2404
  case 5:
2368
- this.k8_1 = 4;
2405
+ this.l8_1 = 4;
2369
2406
  return Unit_instance;
2370
2407
  }
2371
2408
  } catch ($p) {
2372
2409
  var e = $p;
2373
- if (this.k8_1 === 4) {
2410
+ if (this.l8_1 === 4) {
2374
2411
  throw e;
2375
2412
  } else {
2376
- this.j8_1 = this.k8_1;
2377
- this.m8_1 = e;
2413
+ this.k8_1 = this.l8_1;
2414
+ this.n8_1 = e;
2378
2415
  }
2379
2416
  }
2380
2417
  while (true);
@@ -2400,8 +2437,8 @@ function Text_init_$Create$(text) {
2400
2437
  function Close_init_$Init$(reason, $this) {
2401
2438
  // Inline function 'io.ktor.utils.io.core.buildPacket' call
2402
2439
  var builder = new Buffer();
2403
- builder.eq(reason.l32_1);
2404
- writeText(builder, reason.m32_1);
2440
+ builder.sq(reason.t33_1);
2441
+ writeText(builder, reason.u33_1);
2405
2442
  Close_init_$Init$_0(builder, $this);
2406
2443
  return $this;
2407
2444
  }
@@ -2413,7 +2450,7 @@ function Close_init_$Init$_0(packet, $this) {
2413
2450
  return $this;
2414
2451
  }
2415
2452
  function Close_init_$Init$_1($this) {
2416
- Close.call($this, Companion_getInstance_5().p36_1);
2453
+ Close.call($this, Companion_getInstance_6().b38_1);
2417
2454
  return $this;
2418
2455
  }
2419
2456
  function Close_init_$Create$_0() {
@@ -2441,11 +2478,11 @@ function Pong(data, disposableHandle) {
2441
2478
  disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
2442
2479
  Frame.call(this, true, FrameType_PONG_getInstance(), data, disposableHandle, false, false, false);
2443
2480
  }
2444
- function Companion_5() {
2445
- Companion_instance_5 = this;
2446
- this.p36_1 = new Int8Array(0);
2481
+ function Companion_6() {
2482
+ Companion_instance_6 = this;
2483
+ this.b38_1 = new Int8Array(0);
2447
2484
  }
2448
- protoOf(Companion_5).q36 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
2485
+ protoOf(Companion_6).c38 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
2449
2486
  var tmp;
2450
2487
  switch (frameType.a1_1) {
2451
2488
  case 1:
@@ -2469,56 +2506,58 @@ protoOf(Companion_5).q36 = function (fin, frameType, data, rsv1, rsv2, rsv3) {
2469
2506
  }
2470
2507
  return tmp;
2471
2508
  };
2472
- var Companion_instance_5;
2473
- function Companion_getInstance_5() {
2474
- if (Companion_instance_5 == null)
2475
- new Companion_5();
2476
- return Companion_instance_5;
2509
+ var Companion_instance_6;
2510
+ function Companion_getInstance_6() {
2511
+ if (Companion_instance_6 == null)
2512
+ new Companion_6();
2513
+ return Companion_instance_6;
2477
2514
  }
2478
2515
  function Frame(fin, frameType, data, disposableHandle, rsv1, rsv2, rsv3) {
2479
- Companion_getInstance_5();
2516
+ Companion_getInstance_6();
2480
2517
  disposableHandle = disposableHandle === VOID ? NonDisposableHandle_instance : disposableHandle;
2481
2518
  rsv1 = rsv1 === VOID ? false : rsv1;
2482
2519
  rsv2 = rsv2 === VOID ? false : rsv2;
2483
2520
  rsv3 = rsv3 === VOID ? false : rsv3;
2484
- this.i36_1 = fin;
2485
- this.j36_1 = frameType;
2486
- this.k36_1 = data;
2487
- this.l36_1 = disposableHandle;
2488
- this.m36_1 = rsv1;
2489
- this.n36_1 = rsv2;
2490
- this.o36_1 = rsv3;
2521
+ this.a34_1 = fin;
2522
+ this.b34_1 = frameType;
2523
+ this.c34_1 = data;
2524
+ this.d34_1 = disposableHandle;
2525
+ this.e34_1 = rsv1;
2526
+ this.f34_1 = rsv2;
2527
+ this.g34_1 = rsv3;
2528
+ validateSize(this);
2491
2529
  }
2492
2530
  protoOf(Frame).toString = function () {
2493
- return 'Frame ' + this.j36_1.toString() + ' (fin=' + this.i36_1 + ', buffer len = ' + this.k36_1.length + ')';
2531
+ return 'Frame ' + this.b34_1.toString() + ' (fin=' + this.a34_1 + ', buffer len = ' + this.c34_1.length + ')';
2494
2532
  };
2495
2533
  function get_OUTGOING_CHANNEL_CAPACITY() {
2496
2534
  return OUTGOING_CHANNEL_CAPACITY;
2497
2535
  }
2498
2536
  var OUTGOING_CHANNEL_CAPACITY;
2499
2537
  //region block: post-declaration
2500
- protoOf(DefaultWebSocketSessionImpl).t32 = send;
2538
+ protoOf(DefaultWebSocketSessionImpl).m34 = send;
2501
2539
  defineProp(protoOf(FrameTooBigException), 'message', function () {
2502
2540
  return this.e();
2503
2541
  });
2504
- protoOf(BoundedChannel).a19 = close$default;
2505
- protoOf(BoundedChannel).c19 = cancel$default;
2542
+ protoOf(BoundedChannel).n19 = close$default;
2543
+ protoOf(BoundedChannel).p19 = cancel$default;
2506
2544
  //endregion
2507
2545
  //region block: init
2546
+ Companion_instance_0 = new Companion_0();
2508
2547
  NonDisposableHandle_instance = new NonDisposableHandle();
2509
- Companion_instance_4 = new Companion_4();
2548
+ Companion_instance_5 = new Companion_5();
2510
2549
  OUTGOING_CHANNEL_CAPACITY = null;
2511
2550
  //endregion
2512
2551
  //region block: exports
2513
2552
  export {
2514
- Companion_getInstance as Companion_getInstance2xymkrjuj4ub8,
2515
- Companion_getInstance_2 as Companion_getInstance1u99479g32m9i,
2516
- Codes_CLOSED_ABNORMALLY_getInstance as Codes_CLOSED_ABNORMALLY_getInstance2rjj5xk3ewrku,
2517
- Codes_NORMAL_getInstance as Codes_NORMAL_getInstance1akc4vzdzyb59,
2518
- send as send3kjrrxgwu0vpw,
2519
- Binary_init_$Create$ as Binary_init_$Create$3ji9zus3m6s2e,
2520
- Close_init_$Create$ as Close_init_$Create$lgyf6kdpsq84,
2521
- Text_init_$Create$ as Text_init_$Create$33xdsiuzmxup1,
2553
+ Companion_getInstance as Companion_getInstanceo8cazic5dguk,
2554
+ Companion_getInstance_3 as Companion_getInstance27kujspvp4jub,
2555
+ Codes_CLOSED_ABNORMALLY_getInstance as Codes_CLOSED_ABNORMALLY_getInstance35h8511ldg1ec,
2556
+ Codes_NORMAL_getInstance as Codes_NORMAL_getInstance1njykag03saqj,
2557
+ send as send3vgnni2smbra3,
2558
+ Binary_init_$Create$ as Binary_init_$Create$1tryf04oicy2z,
2559
+ Close_init_$Create$ as Close_init_$Create$r368b6qas851,
2560
+ Text_init_$Create$ as Text_init_$Create$3e94pc3s749ft,
2522
2561
  CloseReason as CloseReason10cphaqpp3ct7,
2523
2562
  DefaultWebSocketSession_0 as DefaultWebSocketSessionmehckluw85jl,
2524
2563
  DefaultWebSocketSession as DefaultWebSocketSession3h8506yqzs5fx,
@@ -2531,4 +2570,4 @@ export {
2531
2570
  };
2532
2571
  //endregion
2533
2572
 
2534
-
2573
+ //# sourceMappingURL=ktor-ktor-websockets.mjs.map