@sanctumterra/raknet 1.3.80 → 1.4.1

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 (276) hide show
  1. package/README.md +1 -1
  2. package/dist/client/client.d.ts +19 -20
  3. package/dist/client/client.d.ts.map +1 -1
  4. package/dist/client/client.js +139 -184
  5. package/dist/client/types/client-events.d.ts +5 -20
  6. package/dist/client/types/client-events.d.ts.map +1 -1
  7. package/dist/client/types/client-options.d.ts +7 -8
  8. package/dist/client/types/client-options.d.ts.map +1 -1
  9. package/dist/client/types/client-options.js +9 -9
  10. package/dist/client/types/index.d.ts +1 -1
  11. package/dist/client/types/index.d.ts.map +1 -1
  12. package/dist/client/types/index.js +1 -1
  13. package/dist/index.d.ts +1 -3
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -3
  16. package/dist/server/connection.d.ts +20 -59
  17. package/dist/server/connection.d.ts.map +1 -1
  18. package/dist/server/connection.js +53 -365
  19. package/dist/server/index.d.ts +2 -3
  20. package/dist/server/index.d.ts.map +1 -1
  21. package/dist/server/index.js +2 -3
  22. package/dist/server/server.d.ts +11 -18
  23. package/dist/server/server.d.ts.map +1 -1
  24. package/dist/server/server.js +98 -137
  25. package/dist/{proto → server}/types/advertisement.d.ts +1 -1
  26. package/dist/server/types/advertisement.d.ts.map +1 -0
  27. package/dist/{proto → server}/types/advertisement.js +14 -10
  28. package/dist/server/types/connection-events.d.ts +4 -0
  29. package/dist/server/types/connection-events.d.ts.map +1 -0
  30. package/dist/server/types/index.d.ts +5 -0
  31. package/dist/server/types/index.d.ts.map +1 -0
  32. package/dist/{proto → server}/types/index.js +3 -1
  33. package/dist/server/types/server-events.d.ts +7 -0
  34. package/dist/server/types/server-events.d.ts.map +1 -0
  35. package/dist/server/types/server-options.d.ts +12 -0
  36. package/dist/server/types/server-options.d.ts.map +1 -0
  37. package/dist/server/types/server-options.js +14 -0
  38. package/dist/shared/emitter.d.ts +28 -0
  39. package/dist/shared/emitter.d.ts.map +1 -0
  40. package/dist/shared/emitter.js +71 -0
  41. package/dist/shared/index.d.ts +5 -0
  42. package/dist/shared/index.d.ts.map +1 -0
  43. package/dist/{proto/decorators → shared}/index.js +4 -2
  44. package/dist/{utils/Logger.d.ts → shared/logger.d.ts} +1 -1
  45. package/dist/shared/logger.d.ts.map +1 -0
  46. package/dist/shared/network_session.d.ts +34 -0
  47. package/dist/shared/network_session.d.ts.map +1 -0
  48. package/dist/shared/network_session.js +247 -0
  49. package/dist/shared/proto/enums/connectionStatus.d.ts +8 -0
  50. package/dist/shared/proto/enums/connectionStatus.d.ts.map +1 -0
  51. package/dist/shared/proto/enums/connectionStatus.js +11 -0
  52. package/dist/shared/proto/enums/index.d.ts +5 -0
  53. package/dist/shared/proto/enums/index.d.ts.map +1 -0
  54. package/dist/{proto → shared/proto}/enums/index.js +2 -3
  55. package/dist/shared/proto/enums/packets.d.ts +19 -0
  56. package/dist/shared/proto/enums/packets.d.ts.map +1 -0
  57. package/dist/shared/proto/enums/packets.js +23 -0
  58. package/dist/shared/proto/enums/priority.d.ts +6 -0
  59. package/dist/shared/proto/enums/priority.d.ts.map +1 -0
  60. package/dist/shared/proto/enums/priority.js +4 -0
  61. package/dist/shared/proto/enums/reliability.d.ts.map +1 -0
  62. package/dist/shared/proto/index.d.ts +5 -0
  63. package/dist/shared/proto/index.d.ts.map +1 -0
  64. package/dist/{proto → shared/proto}/index.js +3 -3
  65. package/dist/shared/proto/offline/index.d.ts +7 -0
  66. package/dist/shared/proto/offline/index.d.ts.map +1 -0
  67. package/dist/shared/proto/offline/index.js +22 -0
  68. package/dist/shared/proto/offline/open-connection-reply-one.d.ts +9 -0
  69. package/dist/shared/proto/offline/open-connection-reply-one.d.ts.map +1 -0
  70. package/dist/shared/proto/offline/open-connection-reply-one.js +28 -0
  71. package/dist/shared/proto/offline/open-connection-reply-two.d.ts +11 -0
  72. package/dist/shared/proto/offline/open-connection-reply-two.d.ts.map +1 -0
  73. package/dist/shared/proto/offline/open-connection-reply-two.js +31 -0
  74. package/dist/shared/proto/offline/open-connection-request-one.d.ts +8 -0
  75. package/dist/shared/proto/offline/open-connection-request-one.d.ts.map +1 -0
  76. package/dist/shared/proto/offline/open-connection-request-one.js +25 -0
  77. package/dist/shared/proto/offline/open-connection-request-two.d.ts +10 -0
  78. package/dist/shared/proto/offline/open-connection-request-two.d.ts.map +1 -0
  79. package/dist/shared/proto/offline/open-connection-request-two.js +28 -0
  80. package/dist/shared/proto/offline/unconnected-ping.d.ts +8 -0
  81. package/dist/shared/proto/offline/unconnected-ping.d.ts.map +1 -0
  82. package/dist/shared/proto/offline/unconnected-ping.js +25 -0
  83. package/dist/shared/proto/offline/unconnected-pong.d.ts +9 -0
  84. package/dist/shared/proto/offline/unconnected-pong.d.ts.map +1 -0
  85. package/dist/shared/proto/offline/unconnected-pong.js +28 -0
  86. package/dist/shared/proto/online/ack.d.ts +7 -0
  87. package/dist/shared/proto/online/ack.d.ts.map +1 -0
  88. package/dist/{proto/packets → shared/proto/online}/ack.js +16 -31
  89. package/dist/shared/proto/online/connected-ping.d.ts +7 -0
  90. package/dist/shared/proto/online/connected-ping.d.ts.map +1 -0
  91. package/dist/shared/proto/online/connected-ping.js +19 -0
  92. package/dist/shared/proto/online/connected-pong.d.ts +8 -0
  93. package/dist/shared/proto/online/connected-pong.d.ts.map +1 -0
  94. package/dist/shared/proto/online/connected-pong.js +22 -0
  95. package/dist/shared/proto/online/connection-request-accepted.d.ts +12 -0
  96. package/dist/shared/proto/online/connection-request-accepted.d.ts.map +1 -0
  97. package/dist/shared/proto/online/connection-request-accepted.js +37 -0
  98. package/dist/shared/proto/online/connection-request.d.ts +9 -0
  99. package/dist/shared/proto/online/connection-request.d.ts.map +1 -0
  100. package/dist/shared/proto/online/connection-request.js +25 -0
  101. package/dist/shared/proto/online/disconnect-message.d.ts +6 -0
  102. package/dist/shared/proto/online/disconnect-message.d.ts.map +1 -0
  103. package/dist/shared/proto/online/disconnect-message.js +15 -0
  104. package/dist/shared/proto/online/frame-set.d.ts +9 -0
  105. package/dist/shared/proto/online/frame-set.d.ts.map +1 -0
  106. package/dist/shared/proto/online/frame-set.js +23 -0
  107. package/dist/shared/proto/online/index.d.ts +9 -0
  108. package/dist/shared/proto/online/index.d.ts.map +1 -0
  109. package/dist/shared/proto/online/index.js +24 -0
  110. package/dist/shared/proto/online/new-incomming-connection.d.ts +11 -0
  111. package/dist/shared/proto/online/new-incomming-connection.d.ts.map +1 -0
  112. package/dist/shared/proto/online/new-incomming-connection.js +33 -0
  113. package/dist/shared/proto/types/address.d.ts +12 -0
  114. package/dist/shared/proto/types/address.d.ts.map +1 -0
  115. package/dist/shared/proto/types/address.js +61 -0
  116. package/dist/shared/proto/types/frame.d.ts +23 -0
  117. package/dist/shared/proto/types/frame.d.ts.map +1 -0
  118. package/dist/shared/proto/types/frame.js +119 -0
  119. package/dist/{proto/packets → shared/proto}/types/index.d.ts +0 -2
  120. package/dist/shared/proto/types/index.d.ts.map +1 -0
  121. package/dist/{proto/packets → shared/proto}/types/index.js +0 -2
  122. package/dist/shared/proto/types/magic.d.ts +7 -0
  123. package/dist/shared/proto/types/magic.d.ts.map +1 -0
  124. package/dist/shared/proto/types/magic.js +15 -0
  125. package/dist/shared/proto/types/mtu.d.ts +7 -0
  126. package/dist/shared/proto/types/mtu.d.ts.map +1 -0
  127. package/dist/shared/proto/types/mtu.js +13 -0
  128. package/dist/tests/client-connect.d.ts +2 -0
  129. package/dist/tests/client-connect.d.ts.map +1 -0
  130. package/dist/tests/client-connect.js +32 -0
  131. package/dist/tests/client-once.d.ts +2 -0
  132. package/dist/tests/client-once.d.ts.map +1 -0
  133. package/dist/tests/client-once.js +11 -0
  134. package/dist/tests/server-listen.d.ts +2 -0
  135. package/dist/tests/server-listen.d.ts.map +1 -0
  136. package/dist/tests/server-listen.js +5 -0
  137. package/package.json +12 -6
  138. package/bun.lock +0 -67
  139. package/dist/client/framer.d.ts +0 -55
  140. package/dist/client/framer.d.ts.map +0 -1
  141. package/dist/client/framer.js +0 -458
  142. package/dist/proto/decorators/create.d.ts +0 -8
  143. package/dist/proto/decorators/create.d.ts.map +0 -1
  144. package/dist/proto/decorators/create.js +0 -77
  145. package/dist/proto/decorators/index.d.ts +0 -3
  146. package/dist/proto/decorators/index.d.ts.map +0 -1
  147. package/dist/proto/decorators/serialize.d.ts +0 -4
  148. package/dist/proto/decorators/serialize.d.ts.map +0 -1
  149. package/dist/proto/decorators/serialize.js +0 -12
  150. package/dist/proto/enums/flags.d.ts +0 -7
  151. package/dist/proto/enums/flags.d.ts.map +0 -1
  152. package/dist/proto/enums/flags.js +0 -10
  153. package/dist/proto/enums/index.d.ts +0 -6
  154. package/dist/proto/enums/index.d.ts.map +0 -1
  155. package/dist/proto/enums/packet.d.ts +0 -122
  156. package/dist/proto/enums/packet.d.ts.map +0 -1
  157. package/dist/proto/enums/packet.js +0 -125
  158. package/dist/proto/enums/priority.d.ts +0 -5
  159. package/dist/proto/enums/priority.d.ts.map +0 -1
  160. package/dist/proto/enums/priority.js +0 -8
  161. package/dist/proto/enums/reliability.d.ts.map +0 -1
  162. package/dist/proto/enums/status.d.ts +0 -7
  163. package/dist/proto/enums/status.d.ts.map +0 -1
  164. package/dist/proto/enums/status.js +0 -10
  165. package/dist/proto/index.d.ts +0 -5
  166. package/dist/proto/index.d.ts.map +0 -1
  167. package/dist/proto/packets/ack.d.ts +0 -10
  168. package/dist/proto/packets/ack.d.ts.map +0 -1
  169. package/dist/proto/packets/base-packet.d.ts +0 -26
  170. package/dist/proto/packets/base-packet.d.ts.map +0 -1
  171. package/dist/proto/packets/base-packet.js +0 -37
  172. package/dist/proto/packets/connected-ping.d.ts +0 -5
  173. package/dist/proto/packets/connected-ping.d.ts.map +0 -1
  174. package/dist/proto/packets/connected-ping.js +0 -27
  175. package/dist/proto/packets/connected-pong.d.ts +0 -6
  176. package/dist/proto/packets/connected-pong.d.ts.map +0 -1
  177. package/dist/proto/packets/connected-pong.js +0 -32
  178. package/dist/proto/packets/connection-request-accepted.d.ts +0 -10
  179. package/dist/proto/packets/connection-request-accepted.d.ts.map +0 -1
  180. package/dist/proto/packets/connection-request-accepted.js +0 -48
  181. package/dist/proto/packets/connection-request.d.ts +0 -7
  182. package/dist/proto/packets/connection-request.d.ts.map +0 -1
  183. package/dist/proto/packets/connection-request.js +0 -37
  184. package/dist/proto/packets/disconnect.d.ts +0 -5
  185. package/dist/proto/packets/disconnect.d.ts.map +0 -1
  186. package/dist/proto/packets/disconnect.js +0 -17
  187. package/dist/proto/packets/frame.d.ts +0 -1
  188. package/dist/proto/packets/frame.d.ts.map +0 -1
  189. package/dist/proto/packets/frame.js +0 -1
  190. package/dist/proto/packets/frameset.d.ts +0 -11
  191. package/dist/proto/packets/frameset.d.ts.map +0 -1
  192. package/dist/proto/packets/frameset.js +0 -37
  193. package/dist/proto/packets/incompatible-protocol-version.d.ts +0 -8
  194. package/dist/proto/packets/incompatible-protocol-version.d.ts.map +0 -1
  195. package/dist/proto/packets/incompatible-protocol-version.js +0 -38
  196. package/dist/proto/packets/index.d.ts +0 -19
  197. package/dist/proto/packets/index.d.ts.map +0 -1
  198. package/dist/proto/packets/index.js +0 -34
  199. package/dist/proto/packets/nack.d.ts +0 -8
  200. package/dist/proto/packets/nack.d.ts.map +0 -1
  201. package/dist/proto/packets/nack.js +0 -88
  202. package/dist/proto/packets/new-incoming-connection.d.ts +0 -9
  203. package/dist/proto/packets/new-incoming-connection.d.ts.map +0 -1
  204. package/dist/proto/packets/new-incoming-connection.js +0 -43
  205. package/dist/proto/packets/open-connection-reply-one.d.ts +0 -8
  206. package/dist/proto/packets/open-connection-reply-one.d.ts.map +0 -1
  207. package/dist/proto/packets/open-connection-reply-one.js +0 -43
  208. package/dist/proto/packets/open-connection-reply-two.d.ts +0 -10
  209. package/dist/proto/packets/open-connection-reply-two.d.ts.map +0 -1
  210. package/dist/proto/packets/open-connection-reply-two.js +0 -48
  211. package/dist/proto/packets/open-connection-request-one.d.ts +0 -7
  212. package/dist/proto/packets/open-connection-request-one.d.ts.map +0 -1
  213. package/dist/proto/packets/open-connection-request-one.js +0 -38
  214. package/dist/proto/packets/open-connection-request-two.d.ts +0 -9
  215. package/dist/proto/packets/open-connection-request-two.d.ts.map +0 -1
  216. package/dist/proto/packets/open-connection-request-two.js +0 -43
  217. package/dist/proto/packets/types/address.d.ts +0 -48
  218. package/dist/proto/packets/types/address.d.ts.map +0 -1
  219. package/dist/proto/packets/types/address.js +0 -99
  220. package/dist/proto/packets/types/data-type.d.ts +0 -21
  221. package/dist/proto/packets/types/data-type.d.ts.map +0 -1
  222. package/dist/proto/packets/types/data-type.js +0 -29
  223. package/dist/proto/packets/types/frame.d.ts +0 -23
  224. package/dist/proto/packets/types/frame.d.ts.map +0 -1
  225. package/dist/proto/packets/types/frame.js +0 -94
  226. package/dist/proto/packets/types/index.d.ts.map +0 -1
  227. package/dist/proto/packets/types/magic.d.ts +0 -7
  228. package/dist/proto/packets/types/magic.d.ts.map +0 -1
  229. package/dist/proto/packets/types/magic.js +0 -14
  230. package/dist/proto/packets/types/mtu.d.ts +0 -9
  231. package/dist/proto/packets/types/mtu.d.ts.map +0 -1
  232. package/dist/proto/packets/types/mtu.js +0 -18
  233. package/dist/proto/packets/types/sys-address.d.ts +0 -11
  234. package/dist/proto/packets/types/sys-address.d.ts.map +0 -1
  235. package/dist/proto/packets/types/sys-address.js +0 -32
  236. package/dist/proto/packets/unconnected-ping.d.ts +0 -7
  237. package/dist/proto/packets/unconnected-ping.d.ts.map +0 -1
  238. package/dist/proto/packets/unconnected-ping.js +0 -38
  239. package/dist/proto/packets/unconnected-pong.d.ts +0 -8
  240. package/dist/proto/packets/unconnected-pong.d.ts.map +0 -1
  241. package/dist/proto/packets/unconnected-pong.js +0 -43
  242. package/dist/proto/types/advertisement.d.ts.map +0 -1
  243. package/dist/proto/types/index.d.ts +0 -3
  244. package/dist/proto/types/index.d.ts.map +0 -1
  245. package/dist/proto/types/valid.d.ts +0 -4
  246. package/dist/proto/types/valid.d.ts.map +0 -1
  247. package/dist/server/server-events.d.ts +0 -9
  248. package/dist/server/server-events.d.ts.map +0 -1
  249. package/dist/server/server-options.d.ts +0 -26
  250. package/dist/server/server-options.d.ts.map +0 -1
  251. package/dist/server/server-options.js +0 -20
  252. package/dist/tests/client.d.ts +0 -2
  253. package/dist/tests/client.d.ts.map +0 -1
  254. package/dist/tests/client.js +0 -15
  255. package/dist/tests/localhost.d.ts +0 -2
  256. package/dist/tests/localhost.d.ts.map +0 -1
  257. package/dist/tests/localhost.js +0 -34
  258. package/dist/tests/server.d.ts +0 -2
  259. package/dist/tests/server.d.ts.map +0 -1
  260. package/dist/tests/server.js +0 -32
  261. package/dist/tests/test.d.ts +0 -2
  262. package/dist/tests/test.d.ts.map +0 -1
  263. package/dist/tests/test.js +0 -49
  264. package/dist/utils/Logger.d.ts.map +0 -1
  265. package/dist/utils/decorators.d.ts +0 -2
  266. package/dist/utils/decorators.d.ts.map +0 -1
  267. package/dist/utils/decorators.js +0 -17
  268. package/dist/utils/index.d.ts +0 -3
  269. package/dist/utils/index.d.ts.map +0 -1
  270. package/dist/utils/index.js +0 -18
  271. package/tsconfig.single.json +0 -9
  272. /package/dist/{proto/types/valid.js → server/types/connection-events.js} +0 -0
  273. /package/dist/server/{server-events.js → types/server-events.js} +0 -0
  274. /package/dist/{utils/Logger.js → shared/logger.js} +0 -0
  275. /package/dist/{proto → shared/proto}/enums/reliability.d.ts +0 -0
  276. /package/dist/{proto → shared/proto}/enums/reliability.js +0 -0
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Frame = exports.SplitFlag = void 0;
4
+ const binarystream_1 = require("@serenityjs/binarystream");
5
+ const enums_1 = require("../enums");
6
+ exports.SplitFlag = 0x10;
7
+ class Frame {
8
+ reliability;
9
+ reliableFrameIndex;
10
+ sequenceFrameIndex;
11
+ orderedFrameIndex;
12
+ orderChannel;
13
+ splitFrameIndex;
14
+ splitSize;
15
+ splitId;
16
+ payload;
17
+ static write(stream, frames) {
18
+ for (const frame of frames) {
19
+ const isReliable = frame.isReliable();
20
+ const isSequenced = frame.isSequenced();
21
+ const isOrdered = frame.isOrdered();
22
+ const isSplit = frame.isSplit();
23
+ const reliability = (frame.reliability << 5) | (isSplit ? exports.SplitFlag : 0);
24
+ const little = { endian: binarystream_1.Endianness.Little };
25
+ binarystream_1.Uint8.write(stream, reliability);
26
+ binarystream_1.Uint16.write(stream, frame.payload.byteLength << 3);
27
+ if (isReliable)
28
+ binarystream_1.Uint24.write(stream, frame.reliableFrameIndex, little);
29
+ if (isSequenced)
30
+ binarystream_1.Uint24.write(stream, frame.sequenceFrameIndex, little);
31
+ if (isOrdered) {
32
+ binarystream_1.Uint24.write(stream, frame.orderedFrameIndex, little);
33
+ binarystream_1.Uint8.write(stream, frame.orderChannel);
34
+ }
35
+ if (isSplit) {
36
+ binarystream_1.Uint32.write(stream, frame.splitSize);
37
+ binarystream_1.Uint16.write(stream, frame.splitId);
38
+ binarystream_1.Uint32.write(stream, frame.splitFrameIndex);
39
+ }
40
+ stream.write(frame.payload);
41
+ }
42
+ }
43
+ static read(stream) {
44
+ const frames = [];
45
+ while (!stream.feof()) {
46
+ const frame = new Frame();
47
+ const header = binarystream_1.Uint8.read(stream);
48
+ const reliability = (header & 0xe0) >> 5;
49
+ const split = (header & exports.SplitFlag) !== 0;
50
+ const length = Math.ceil(binarystream_1.Uint16.read(stream) / 8);
51
+ frame.reliability = reliability;
52
+ const little = { endian: binarystream_1.Endianness.Little };
53
+ const isReliable = frame.isReliable();
54
+ const isSequenced = frame.isSequenced();
55
+ const isOrdered = frame.isOrdered();
56
+ if (isReliable)
57
+ frame.reliableFrameIndex = binarystream_1.Uint24.read(stream, little);
58
+ if (isSequenced)
59
+ frame.sequenceFrameIndex = binarystream_1.Uint24.read(stream, little);
60
+ if (isOrdered) {
61
+ frame.orderedFrameIndex = binarystream_1.Uint24.read(stream, little);
62
+ frame.orderChannel = binarystream_1.Uint8.read(stream);
63
+ }
64
+ if (split) {
65
+ frame.splitSize = binarystream_1.Uint32.read(stream);
66
+ frame.splitId = binarystream_1.Uint16.read(stream);
67
+ frame.splitFrameIndex = binarystream_1.Uint32.read(stream);
68
+ }
69
+ frame.payload = stream.read(length);
70
+ frames.push(frame);
71
+ }
72
+ return frames;
73
+ }
74
+ isSplit() {
75
+ return this.splitSize > 0;
76
+ }
77
+ isReliable() {
78
+ const values = [
79
+ enums_1.Reliability.Reliable,
80
+ enums_1.Reliability.ReliableOrdered,
81
+ enums_1.Reliability.ReliableSequenced,
82
+ enums_1.Reliability.ReliableWithAckReceipt,
83
+ enums_1.Reliability.ReliableOrderedWithAckReceipt,
84
+ ];
85
+ return values.includes(this.reliability);
86
+ }
87
+ isSequenced() {
88
+ const values = [
89
+ enums_1.Reliability.ReliableSequenced,
90
+ enums_1.Reliability.UnreliableSequenced,
91
+ ];
92
+ return values.includes(this.reliability);
93
+ }
94
+ isOrdered() {
95
+ const values = [
96
+ enums_1.Reliability.UnreliableSequenced,
97
+ enums_1.Reliability.ReliableOrdered,
98
+ enums_1.Reliability.ReliableSequenced,
99
+ enums_1.Reliability.ReliableOrderedWithAckReceipt,
100
+ ];
101
+ return values.includes(this.reliability);
102
+ }
103
+ isOrderExclusive() {
104
+ const values = [
105
+ enums_1.Reliability.ReliableOrdered,
106
+ enums_1.Reliability.ReliableOrderedWithAckReceipt,
107
+ ];
108
+ return values.includes(this.reliability);
109
+ }
110
+ getByteLength() {
111
+ return (3 +
112
+ this.payload.byteLength +
113
+ (this.isReliable() ? 3 : 0) +
114
+ (this.isSequenced() ? 3 : 0) +
115
+ (this.isOrdered() ? 4 : 0) +
116
+ (this.isSplit() ? 10 : 0));
117
+ }
118
+ }
119
+ exports.Frame = Frame;
@@ -1,7 +1,5 @@
1
- export * from "./data-type";
2
1
  export * from "./magic";
3
2
  export * from "./mtu";
4
3
  export * from "./address";
5
4
  export * from "./frame";
6
- export * from "./sys-address";
7
5
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/proto/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -14,9 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./data-type"), exports);
18
17
  __exportStar(require("./magic"), exports);
19
18
  __exportStar(require("./mtu"), exports);
20
19
  __exportStar(require("./address"), exports);
21
20
  __exportStar(require("./frame"), exports);
22
- __exportStar(require("./sys-address"), exports);
@@ -0,0 +1,7 @@
1
+ import type { BinaryStream } from "@serenityjs/binarystream";
2
+ export declare class Magic {
3
+ static write(stream: BinaryStream): void;
4
+ static read(stream: BinaryStream): Buffer;
5
+ nothingItJustIgnoresANoStaticClassLint(): void;
6
+ }
7
+ //# sourceMappingURL=magic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"magic.d.ts","sourceRoot":"","sources":["../../../../src/shared/proto/types/magic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,qBAAa,KAAK;IACjB,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY;IAIjC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM;IAKzC,sCAAsC;CACtC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Magic = void 0;
4
+ const magic = Buffer.from("00ffff00fefefefefdfdfdfd12345678", "hex");
5
+ class Magic {
6
+ static write(stream) {
7
+ stream.write(magic);
8
+ }
9
+ static read(stream) {
10
+ const readMagic = stream.read(16);
11
+ return readMagic;
12
+ }
13
+ nothingItJustIgnoresANoStaticClassLint() { }
14
+ }
15
+ exports.Magic = Magic;
@@ -0,0 +1,7 @@
1
+ import type { BinaryStream } from "@serenityjs/binarystream";
2
+ export declare class MTU {
3
+ static write(stream: BinaryStream, mtu: number): void;
4
+ static read(stream: BinaryStream): number;
5
+ nothingItJustIgnoresANoStaticClassLint(): void;
6
+ }
7
+ //# sourceMappingURL=mtu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mtu.d.ts","sourceRoot":"","sources":["../../../../src/shared/proto/types/mtu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,qBAAa,GAAG;IACf,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM;IAI9C,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM;IAIzC,sCAAsC;CACtC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MTU = void 0;
4
+ class MTU {
5
+ static write(stream, mtu) {
6
+ stream.write(Buffer.alloc(mtu - stream.getBuffer().length));
7
+ }
8
+ static read(stream) {
9
+ return stream.buffer.byteLength;
10
+ }
11
+ nothingItJustIgnoresANoStaticClassLint() { }
12
+ }
13
+ exports.MTU = MTU;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=client-connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-connect.d.ts","sourceRoot":"","sources":["../../src/tests/client-connect.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const client_1 = require("../client");
4
+ const logger_1 = require("../shared/logger");
5
+ async function runBenchmark(iterations) {
6
+ logger_1.Logger.info(`§bStarting connection benchmark for ${iterations} iterations...§r`);
7
+ const connectionTimes = [];
8
+ for (let i = 0; i < iterations; i++) {
9
+ const time = Date.now();
10
+ const client = new client_1.Client({});
11
+ client.on("unconnectedPong", (packet) => {
12
+ logger_1.Logger.debug("unconnectedPong packet:", packet);
13
+ });
14
+ const connectionPromise = new Promise((resolve) => {
15
+ client.on("connect", () => {
16
+ const time2 = Date.now();
17
+ const timeDiff = time2 - time;
18
+ logger_1.Logger.info(`§aConnection attempt ${i + 1}/${iterations}: Connected in ${timeDiff}ms§r`);
19
+ resolve(timeDiff);
20
+ });
21
+ });
22
+ client.connect();
23
+ const connectionTime = await connectionPromise;
24
+ connectionTimes.push(connectionTime);
25
+ }
26
+ logger_1.Logger.warn("\n§e--- Benchmark Results ---§r");
27
+ logger_1.Logger.info("All Connection Times:", connectionTimes);
28
+ const totalTime = connectionTimes.reduce((sum, time) => sum + time, 0);
29
+ const averageTime = totalTime / iterations;
30
+ logger_1.Logger.info(`Average connection time over ${iterations} attempts: §d${averageTime.toFixed(2)}ms§r`);
31
+ }
32
+ runBenchmark(10);
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=client-once.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-once.d.ts","sourceRoot":"","sources":["../../src/tests/client-once.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const client_1 = require("../client");
4
+ const client = new client_1.Client();
5
+ client.on("unconnectedPong", (packet) => {
6
+ console.log(packet);
7
+ });
8
+ const time = Date.now();
9
+ client.connect().then(() => {
10
+ console.log(`Time taked ${Date.now() - time}ms`);
11
+ });
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=server-listen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-listen.d.ts","sourceRoot":"","sources":["../../src/tests/server-listen.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const server_1 = require("../server");
4
+ const server = new server_1.Server();
5
+ server.listen();
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@sanctumterra/raknet",
3
- "version": "1.3.80",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
+
6
+ "types": "dist/index.d.ts",
5
7
  "main": "dist/index.js",
8
+
6
9
  "module": "commonjs",
10
+
7
11
  "scripts": {
8
12
  "build": "tsc",
9
13
  "watch": "tsc --watch",
@@ -12,17 +16,19 @@
12
16
  "lint:write": "npx @biomejs/biome lint --write ./src",
13
17
  "format:write": "npx @biomejs/biome format --write ./src"
14
18
  },
19
+
15
20
  "keywords": [],
16
21
  "author": "",
17
22
  "license": "ISC",
23
+
18
24
  "dependencies": {
19
- "@serenityjs/binarystream": "2.7.3",
20
- "@serenityjs/emitter": "^0.5.2",
21
- "@serenityjs/protocol": "^0.6.4",
22
- "reflect-metadata": "^0.2.2"
25
+ "@sanctumterra/raknet": ".",
26
+ "@serenityjs/binarystream": "^3.0.10"
23
27
  },
24
28
  "devDependencies": {
29
+ "@types/bun": "^1.2.21",
30
+ "typescript": "^5.9.2",
25
31
  "@biomejs/biome": "^1.9.4",
26
- "@types/node": "^22.8.0"
32
+ "@types/node": "^24.3.0"
27
33
  }
28
34
  }
package/bun.lock DELETED
@@ -1,67 +0,0 @@
1
- {
2
- "lockfileVersion": 1,
3
- "workspaces": {
4
- "": {
5
- "name": "@sanctumterra/raknet",
6
- "dependencies": {
7
- "@serenityjs/binarystream": "^2.6.6",
8
- "@serenityjs/emitter": "^0.5.2",
9
- "@serenityjs/protocol": "^0.6.4",
10
- "reflect-metadata": "^0.2.2",
11
- },
12
- "devDependencies": {
13
- "@biomejs/biome": "^1.9.4",
14
- "@types/node": "^22.8.0",
15
- },
16
- },
17
- },
18
- "packages": {
19
- "@biomejs/biome": ["@biomejs/biome@1.9.4", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "1.9.4", "@biomejs/cli-darwin-x64": "1.9.4", "@biomejs/cli-linux-arm64": "1.9.4", "@biomejs/cli-linux-arm64-musl": "1.9.4", "@biomejs/cli-linux-x64": "1.9.4", "@biomejs/cli-linux-x64-musl": "1.9.4", "@biomejs/cli-win32-arm64": "1.9.4", "@biomejs/cli-win32-x64": "1.9.4" }, "bin": { "biome": "bin/biome" } }, "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog=="],
20
-
21
- "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@1.9.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw=="],
22
-
23
- "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@1.9.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg=="],
24
-
25
- "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@1.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g=="],
26
-
27
- "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@1.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA=="],
28
-
29
- "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@1.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg=="],
30
-
31
- "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@1.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg=="],
32
-
33
- "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@1.9.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg=="],
34
-
35
- "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@1.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA=="],
36
-
37
- "@serenityjs/binarystream": ["@serenityjs/binarystream@2.7.0", "", { "optionalDependencies": { "@serenityjs/binarystream-darwin-arm64": "2.7.0", "@serenityjs/binarystream-darwin-x64": "2.7.0", "@serenityjs/binarystream-linux-x64-gnu": "2.7.0", "@serenityjs/binarystream-win32-x64-msvc": "2.7.0" } }, "sha512-aIWTRqy3Z5mf9qbLiE7sjM96+PKXsJqs4tURe5VlnI5fauNlFIwUUBXGyrR2PiqBSOp8DSjmP1XfO49GP4hdEg=="],
38
-
39
- "@serenityjs/binarystream-darwin-arm64": ["@serenityjs/binarystream-darwin-arm64@2.7.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-i1MUyRLT6zNWSTOIb5eALFnSxEFmbM+nc/yw5ooqzAOM4qtr/jBrolHyEm157AU8+7ngnkBn9T94Z4zVYJGBhg=="],
40
-
41
- "@serenityjs/binarystream-darwin-x64": ["@serenityjs/binarystream-darwin-x64@2.7.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-hm2G3dlR4meGp2MqCmdWWPqTZxcsGdT4P/cg1i5Y74BdG9F9CYojvHPN9jaq8fY+ViqBz0hzPvrKPIPEMwBDHQ=="],
42
-
43
- "@serenityjs/binarystream-linux-x64-gnu": ["@serenityjs/binarystream-linux-x64-gnu@2.7.0", "", { "os": "linux", "cpu": "x64" }, "sha512-C2HgD+coQtlpIxnkpRObE38+rU2xVqsvRRZPcSxpkAzdPaiyVehkF7VZx0cWAZPiLZEZifNDTQV3tQlgfp4USg=="],
44
-
45
- "@serenityjs/binarystream-win32-x64-msvc": ["@serenityjs/binarystream-win32-x64-msvc@2.7.0", "", { "os": "win32", "cpu": "x64" }, "sha512-VozM9uyBdQQJXl5Cz9zdn2dA6jOpkgzWJHjgop63FSpVAllykMKbd2WU2ZpEbLy0dTScmND2suXcqiPeU5Jrwg=="],
46
-
47
- "@serenityjs/emitter": ["@serenityjs/emitter@0.5.2", "", {}, "sha512-x+tYqmCbOzSI0wo/0t6Scj5OU883RtTUZ6b0jfhymO0E5GEF1RkWI/4eEGcHUWMtuFDbPtb2pQynPNbt4R4XCQ=="],
48
-
49
- "@serenityjs/logger": ["@serenityjs/logger@0.8.0", "", { "dependencies": { "colorette": "2.0.20", "moment": "2.30.1" } }, "sha512-GSCbCNYmeSIAPAX0W+TKyB7zTtd9BSg+s/hxqK6JMpMMq679YPKkvv7pmQKme2Da/c2czIvNvbh4x7HGx15grQ=="],
50
-
51
- "@serenityjs/nbt": ["@serenityjs/nbt@0.8.0", "", { "dependencies": { "@serenityjs/binarystream": "^2.7.0" } }, "sha512-+4l3xwR33+UHTo5+cJD1q+Q/jTIvhbvgsGr5uUaojYaUfpf7UnHcew3LsiSXhzTtCC7VR90lv2XUvq9lDhAhJA=="],
52
-
53
- "@serenityjs/protocol": ["@serenityjs/protocol@0.6.4", "", { "dependencies": { "@serenityjs/binarystream": "2.7.0", "@serenityjs/nbt": "*", "@serenityjs/raknet": "*" } }, "sha512-tTeB2LmVxbQOOOadUetomjhJS3TO8GzqXBwdHDnrkhivhF8fJR27bUEYL4ZNvKB9nyuXpKxQJiXaatkHq6UroA=="],
54
-
55
- "@serenityjs/raknet": ["@serenityjs/raknet@0.8.0", "", { "dependencies": { "@serenityjs/binarystream": "^2.7.0", "@serenityjs/emitter": "*", "@serenityjs/logger": "*", "@serenityjs/nbt": "*", "reflect-metadata": "0.2.2" } }, "sha512-A7xOF6nhOljUD/yUrvNfXVAJhdVV+SC4rzBclexcDaLaxn5EqNQP4BFytKSsTb/v15wvlfY+600eBF4/qm9G+Q=="],
56
-
57
- "@types/node": ["@types/node@22.15.13", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-mkmz+UBGCF/ssSObTp1McwQEvIjO2hUnVvZzck61l0su7btUill8OSvzA4N62+AtkJgMhiniyD+wEL5kocZaEA=="],
58
-
59
- "colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="],
60
-
61
- "moment": ["moment@2.30.1", "", {}, "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how=="],
62
-
63
- "reflect-metadata": ["reflect-metadata@0.2.2", "", {}, "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q=="],
64
-
65
- "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
66
- }
67
- }
@@ -1,55 +0,0 @@
1
- import type { RemoteInfo } from "node:dgram";
2
- import { Frame, Frameset, Priority } from "../proto";
3
- import type { Client } from "./client";
4
- interface QueuedFrame {
5
- frame: Frame;
6
- timestamp: number;
7
- }
8
- export declare class Framer {
9
- private client;
10
- private lastInputSequence;
11
- private receivedFrameSequences;
12
- private lostFrameSequences;
13
- private inputHighestSequenceIndex;
14
- private inputOrderIndex;
15
- protected inputOrderingQueue: Array<Map<number, QueuedFrame>>;
16
- protected readonly fragmentsQueue: Map<number, {
17
- fragments: Map<number, Frame>;
18
- timestamp: number;
19
- }>;
20
- outputOrderIndex: number[];
21
- outputSequenceIndex: number[];
22
- outputFrameQueue: Frameset;
23
- protected outputSequence: number;
24
- protected outputSplitIndex: number;
25
- protected outputReliableIndex: number;
26
- outputFrames: Frame[];
27
- private outputFramesByteLength;
28
- outputBackup: Map<number, Frame[]>;
29
- _tickCount: number;
30
- private mtuDiff;
31
- private readonly BATCH_SIZE;
32
- private readonly MAX_BATCH_INTERVAL;
33
- private lastBatchTime;
34
- private readonly ORDERING_QUEUE_TIMEOUT;
35
- constructor(client: Client);
36
- tick(): void;
37
- private processBatchedAcksAndNacks;
38
- private processBatchedOrderedFrames;
39
- incomingMessage(payload: Buffer, rinfo: RemoteInfo): void;
40
- private processFrame;
41
- handle(frameSet: Frameset): void;
42
- private handleFrame;
43
- private handleOrdered;
44
- private processOrderedFrames;
45
- private handleSequenced;
46
- private handleSplit;
47
- private reassembleAndProcessFragment;
48
- frameAndSend(payload: Buffer, priority?: Priority): void;
49
- sendFrame(frame: Frame, priority: Priority): void;
50
- private createSplitFrame;
51
- private queueFrame;
52
- sendQueue(): void;
53
- }
54
- export {};
55
- //# sourceMappingURL=framer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"framer.d.ts","sourceRoot":"","sources":["../../src/client/framer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAMN,KAAK,EACL,QAAQ,EAOR,QAAQ,EAIR,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASvC,UAAU,WAAW;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,MAAM;IAClB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,iBAAiB,CAAM;IAC/B,OAAO,CAAC,sBAAsB,CAA0B;IACxD,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,yBAAyB,CAAmC;IACpE,OAAO,CAAC,eAAe,CAAmC;IAC1D,SAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAG3D;IACF,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,GAAG,CACrC,MAAM,EACN;QAAE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CACpD,CAAa;IAEP,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,QAAQ,CAAC;IAClC,SAAS,CAAC,cAAc,SAAK;IAC7B,SAAS,CAAC,gBAAgB,SAAK;IAC/B,SAAS,CAAC,mBAAmB,SAAK;IAC3B,YAAY,EAAE,KAAK,EAAE,CAAM;IAClC,OAAO,CAAC,sBAAsB,CAAK;IAC5B,YAAY,uBAA8B;IAC1C,UAAU,SAAK;IAEtB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAM;IACjC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAM;IACzC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAO;gBAElC,MAAM,EAAE,MAAM;IASnB,IAAI;IA+BX,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,2BAA2B;IAiC5B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU;IAqEzD,OAAO,CAAC,YAAY;IA2Eb,MAAM,CAAC,QAAQ,EAAE,QAAQ;IAyDhC,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,WAAW;IAenB,OAAO,CAAC,4BAA4B;IA2B7B,YAAY,CAClB,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,QAA0B,GAClC,IAAI;IAOA,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAiCxD,OAAO,CAAC,gBAAgB;IAsBxB,OAAO,CAAC,UAAU;IAqBX,SAAS,IAAI,IAAI;CA0BxB"}