overlay-toolkit 0.10.0 → 0.10.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.
@@ -0,0 +1,1323 @@
1
+ var I = Object.defineProperty;
2
+ var m = (s, r, e) => r in s ? I(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
+ var t = (s, r, e) => m(s, typeof r != "symbol" ? r + "" : r, e);
4
+ function w(s) {
5
+ return new y(s);
6
+ }
7
+ class y extends EventTarget {
8
+ //#endregion
9
+ constructor(e) {
10
+ super();
11
+ //#region EventTarget
12
+ t(this, "onconnect", null);
13
+ t(this, "ondisconnect", null);
14
+ t(this, "devices", /* @__PURE__ */ new Map());
15
+ this.api = e, this.addListener();
16
+ }
17
+ dispatchEvent(e) {
18
+ return e.type === "connect" && this.onconnect && this.onconnect.call(this, e), e.type === "disconnect" && this.ondisconnect && this.ondisconnect.call(this, e), super.dispatchEvent(e), !e.defaultPrevented;
19
+ }
20
+ async getDevices() {
21
+ const e = await this.requestGetDevices();
22
+ let a = [];
23
+ return e.forEach((i) => {
24
+ if (this.devices.has(i.instanceId))
25
+ a.push(this.devices.get(i.instanceId));
26
+ else {
27
+ const c = new p(this.api, i);
28
+ this.devices.set(i.instanceId, c), a.push(c);
29
+ }
30
+ }), a;
31
+ }
32
+ async requestDevice(e) {
33
+ return e && console.log("Requesting device with options:", e), this.getDevices();
34
+ }
35
+ async requestGetDevices() {
36
+ return (await d(this.api, "getDevices", {})).devices;
37
+ }
38
+ addListener() {
39
+ this.api.addOverlayListener("otk::hid::inputreport", (e) => this.callbackInputReport(e)), this.api.addOverlayListener("otk::hid::devicechanged", (e) => this.callbackDeviceChanged(e));
40
+ }
41
+ callbackInputReport(e) {
42
+ const a = e.instanceId, i = o(e.data), c = this.devices.get(a);
43
+ c ? c.dispatchEvent(new x("inputreport", c, i[0], new DataView(i.buffer, 1))) : console.warn("Device not found:", a);
44
+ }
45
+ callbackDeviceChanged(e) {
46
+ var a = e.add;
47
+ const i = new p(this.api, e.device), c = new v(a ? "connect" : "disconnect", i);
48
+ this.dispatchEvent(c);
49
+ }
50
+ }
51
+ async function d(s, r, e) {
52
+ const a = {
53
+ call: "otk::hid",
54
+ type: r,
55
+ ...e
56
+ }, i = await s.callOverlayHandler(a);
57
+ return i.error && console.log("callOverlayHID error:", r, e, i), i;
58
+ }
59
+ class p extends EventTarget {
60
+ //#endregion
61
+ // Simulate a device with some properties
62
+ constructor(e, a) {
63
+ super();
64
+ t(this, "instanceId");
65
+ t(this, "opened", !1);
66
+ t(this, "vendorId");
67
+ t(this, "productId");
68
+ t(this, "productName");
69
+ t(this, "collections");
70
+ //#region EventTarget
71
+ t(this, "oninputreport", null);
72
+ this.api = e, this.instanceId = a.instanceId, this.vendorId = a.vendorId, this.productId = a.productId, this.productName = a.productName, this.collections = a.collections || [];
73
+ }
74
+ dispatchEvent(e) {
75
+ return e.type === "inputreport" && this.oninputreport && this.oninputreport.call(this, e), super.dispatchEvent(e), !e.defaultPrevented;
76
+ }
77
+ async open() {
78
+ this.opened || (await this.request("open", {}), this.opened = !0);
79
+ }
80
+ async close() {
81
+ this.opened && (await this.request("close", {}), this.opened = !1);
82
+ }
83
+ async forget() {
84
+ }
85
+ async sendReport(e, a) {
86
+ if (!this.opened)
87
+ throw new Error("Device is not opened.");
88
+ await this.request("send", {
89
+ reportId: e,
90
+ data: u(a)
91
+ });
92
+ }
93
+ async sendFeatureReport(e, a) {
94
+ if (!this.opened)
95
+ throw new Error("Device is not opened.");
96
+ await this.request("sendFeature", {
97
+ reportId: e,
98
+ data: u(a)
99
+ });
100
+ }
101
+ async receiveFeatureReport(e) {
102
+ if (!this.opened)
103
+ throw new Error("Device is not opened.");
104
+ const a = await this.request("recvFeature", {
105
+ reportId: e
106
+ }), i = o(a.data);
107
+ return new DataView(i.buffer);
108
+ }
109
+ async request(e, a) {
110
+ return d(this.api, e, {
111
+ instanceId: this.instanceId,
112
+ ...a
113
+ });
114
+ }
115
+ }
116
+ class v extends Event {
117
+ constructor(e, a) {
118
+ super(e);
119
+ t(this, "device");
120
+ this.device = a;
121
+ }
122
+ }
123
+ class x extends Event {
124
+ constructor(e, a, i, c) {
125
+ super(e);
126
+ t(this, "device");
127
+ t(this, "reportId");
128
+ t(this, "data");
129
+ this.device = a, this.reportId = i, this.data = c;
130
+ }
131
+ }
132
+ function u(s) {
133
+ let r = null;
134
+ return s instanceof ArrayBuffer ? r = new Uint8Array(s) : r = new Uint8Array(s.buffer, s.byteOffset, s.byteLength), [...r].map((e) => e.toString(16).padStart(2, "0")).join("");
135
+ }
136
+ function o(s) {
137
+ const r = new Uint8Array(Math.ceil(s.length / 2));
138
+ for (let e = 0; e < s.length; )
139
+ r[e / 2] = Number.parseInt(s.slice(e, e += 2), 16);
140
+ return r;
141
+ }
142
+ class f {
143
+ constructor(r = null) {
144
+ t(this, "subscribers", /* @__PURE__ */ new Map());
145
+ t(this, "queue", []);
146
+ this.transport = r, r && this.setTransport(r);
147
+ }
148
+ setTransport(r) {
149
+ this.transport = r, this.transport.addEventListener("message", (e) => {
150
+ this.dispatchOverlayEvent(e.detail);
151
+ }), this.transport.addEventListener("connected", this.onTransportConnected.bind(this));
152
+ }
153
+ dispatchOverlayEvent(r) {
154
+ const e = this.subscribers.get(r.type);
155
+ if (e)
156
+ for (const a of e)
157
+ a(r);
158
+ }
159
+ addOverlayListener(r, e) {
160
+ this.subscribers.has(r) || this.subscribers.set(r, []), this.subscribers.get(r).push(e);
161
+ }
162
+ removeOverlayListener(r, e) {
163
+ if (!this.subscribers.has(r))
164
+ return;
165
+ const a = this.subscribers.get(r), i = a.indexOf(e);
166
+ i !== -1 && a.splice(i, 1);
167
+ }
168
+ async callOverlayHandler(r) {
169
+ return !this.transport || !this.transport.connected ? (console.warn("OverlayPluginAPI: Transport not connected, queuing message", r), new Promise((a) => {
170
+ this.queue.push([r, a]);
171
+ })) : this.transport.sendMessage(r);
172
+ }
173
+ /**
174
+ * Start overlay events
175
+ *
176
+ * Must be called after any listeners are added.
177
+ */
178
+ startOverlayEvents() {
179
+ var r = {
180
+ call: "subscribe",
181
+ events: Array.from(this.subscribers.keys())
182
+ };
183
+ this.callOverlayHandler(r);
184
+ }
185
+ onTransportConnected() {
186
+ if (!this.transport || !this.transport.connected || this.queue.length === 0)
187
+ return;
188
+ console.log("OverlayPluginAPI: Transport connected, sending queued messages");
189
+ let r = this.queue;
190
+ this.queue = [];
191
+ for (let [e, a] of r)
192
+ this.transport.sendMessage(e).then(a);
193
+ }
194
+ }
195
+ class D extends EventTarget {
196
+ constructor() {
197
+ super(...arguments);
198
+ t(this, "connected", !1);
199
+ t(this, "evtHandlerWrapper", (e) => {
200
+ this.dispatchEvent(new CustomEvent("message", { detail: e }));
201
+ });
202
+ }
203
+ get transportType() {
204
+ return "plugin";
205
+ }
206
+ sendMessage(e) {
207
+ return new Promise((a) => {
208
+ window.OverlayPluginApi.callHandler(JSON.stringify(e), a);
209
+ });
210
+ }
211
+ waitForApi() {
212
+ if (!window.OverlayPluginApi || !window.OverlayPluginApi.ready) {
213
+ setTimeout(() => this.waitForApi(), 300);
214
+ return;
215
+ }
216
+ window.__OverlayCallback = this.evtHandlerWrapper, this.connected = !0, this.dispatchEvent(new Event("connected"));
217
+ }
218
+ }
219
+ class P extends EventTarget {
220
+ constructor(e) {
221
+ super();
222
+ t(this, "ws");
223
+ t(this, "sequence", 0);
224
+ t(this, "responseResolvers", /* @__PURE__ */ new Map());
225
+ t(this, "evtHandler", () => {
226
+ });
227
+ t(this, "connected", !1);
228
+ this.ws = new WebSocket(e), this.connect(this.ws);
229
+ }
230
+ connect(e) {
231
+ e.addEventListener("open", this.onOpen.bind(this)), e.addEventListener("error", this.onError.bind(this)), e.addEventListener("message", this.onMessage.bind(this)), e.addEventListener("close", this.onClosed.bind(this));
232
+ }
233
+ onError(e) {
234
+ console.error(e);
235
+ }
236
+ onOpen() {
237
+ console.log("WebSocket connected"), this.connected = !0, this.dispatchEvent(new Event("connected"));
238
+ }
239
+ onMessage(e) {
240
+ try {
241
+ const a = JSON.parse(e.data);
242
+ if ("rseq" in a) {
243
+ const i = a.rseq;
244
+ this.responseResolvers.has(i) && (this.responseResolvers.get(i)(a), this.responseResolvers.delete(i));
245
+ } else
246
+ this.dispatchEvent(new CustomEvent("message", { detail: a }));
247
+ } catch {
248
+ console.error("Failed to parse WebSocket message", e);
249
+ }
250
+ }
251
+ onClosed(e) {
252
+ console.log("WebSocket closed", e), this.connected = !1, setTimeout(() => {
253
+ console.log("WebSocket reconnecting..."), this.ws = new WebSocket(this.ws.url), this.connect(this.ws);
254
+ }, 3e3);
255
+ }
256
+ get transportType() {
257
+ return "websocket";
258
+ }
259
+ sendMessage(e) {
260
+ const a = this.sequence++;
261
+ return e.rseq = a, new Promise((i) => {
262
+ this.responseResolvers.set(a, i), this.ws.send(JSON.stringify(e));
263
+ });
264
+ }
265
+ set eventHandler(e) {
266
+ this.evtHandler = e;
267
+ }
268
+ }
269
+ class N {
270
+ constructor() {
271
+ /**
272
+ * HID interface
273
+ */
274
+ t(this, "hid");
275
+ t(this, "api", new f());
276
+ t(this, "handlerMap", /* @__PURE__ */ new Map());
277
+ this.hid = w(this.api);
278
+ }
279
+ /**
280
+ * Fetch acts like window.fetch but without CORS restrictions
281
+ * @param url target URL
282
+ * @param options options
283
+ * @returns response
284
+ */
285
+ Fetch(r, e = {}) {
286
+ const a = {
287
+ call: "Fetch",
288
+ resource: r,
289
+ options: e
290
+ };
291
+ return this.api.callOverlayHandler(a);
292
+ }
293
+ /**
294
+ * Subscribe to game packets
295
+ * @param name subscription name
296
+ * @param filters optional filters. receive ALL packets when no filter is provided
297
+ * @param handler callback when packet is send/receive
298
+ * @returns subscription name
299
+ */
300
+ async SubscribePacket(r, e, a) {
301
+ const i = {
302
+ call: "otk::packet",
303
+ action: "subscribe",
304
+ name: r,
305
+ filters: e
306
+ }, c = await this.api.callOverlayHandler(i);
307
+ if (c.error)
308
+ throw new Error(c.error);
309
+ return this.handlerMap.set(c.name || r, a), c.name || r;
310
+ }
311
+ /**
312
+ * Unsubscribe from game packets
313
+ * @param name subscription name
314
+ */
315
+ async UnsubscribePacket(r) {
316
+ const e = {
317
+ call: "otk::packet",
318
+ action: "unsubscribe",
319
+ name: r
320
+ }, a = await this.api.callOverlayHandler(e);
321
+ if (a.error)
322
+ throw new Error(a.error);
323
+ this.handlerMap.delete(r);
324
+ }
325
+ packetHandler(r) {
326
+ let e = r, a = r;
327
+ a.data = Uint8Array.from(atob(e.msg), (c) => c.charCodeAt(0));
328
+ let i = this.handlerMap.get(e.name);
329
+ i ? i(a) : console.warn("No packet handler for name", e.name);
330
+ }
331
+ /**
332
+ * Game version
333
+ */
334
+ async GetGameVersion() {
335
+ const r = {
336
+ call: "otk::game_ver"
337
+ };
338
+ return this.api.callOverlayHandler(r);
339
+ }
340
+ /**
341
+ * Call start overlay events
342
+ *
343
+ * Must be called after any listeners are added
344
+ */
345
+ Start() {
346
+ this.api.addOverlayListener("otk::packet", (r) => this.packetHandler(r)), this.api.startOverlayEvents();
347
+ }
348
+ /**
349
+ * Call dispatch overlay event
350
+ *
351
+ * @param msg The message to dispatch
352
+ */
353
+ Dispatch(r) {
354
+ this.api.dispatchOverlayEvent(r);
355
+ }
356
+ /**
357
+ * Add an overlay listener
358
+ *
359
+ * @param event
360
+ * @param cb
361
+ */
362
+ AddListener(r, e) {
363
+ this.api.addOverlayListener(r, e);
364
+ }
365
+ /**
366
+ * Remove an overlay listener
367
+ * @param event
368
+ * @param cb
369
+ */
370
+ RemoveListener(r, e) {
371
+ this.api.removeOverlayListener(r, e);
372
+ }
373
+ /**
374
+ * Call overlay handler
375
+ * @param msg
376
+ * @returns
377
+ */
378
+ Call(r) {
379
+ return this.api.callOverlayHandler(r);
380
+ }
381
+ /**
382
+ * Get if running in OverlayPlugin CEF environment
383
+ * @returns
384
+ */
385
+ IsOverlayPluginCEF() {
386
+ return "OverlayPluginApi" in window;
387
+ }
388
+ tryConnectToCEF() {
389
+ if (!this.IsOverlayPluginCEF()) {
390
+ setTimeout(() => this.tryConnectToCEF(), 300);
391
+ return;
392
+ }
393
+ const r = new D();
394
+ this.api.setTransport(r), r.waitForApi();
395
+ }
396
+ /**
397
+ * Connect to OverlayPlugin via CEF or WebSocket
398
+ * @param wsUrl WebSocket URL, leave empty to auto-detect from query string
399
+ * @returns
400
+ */
401
+ Connect(r = "") {
402
+ if (this.tryConnectToCEF(), r || (r = new URLSearchParams(location.search).get("OVERLAY_WS")), r) {
403
+ if (this.IsOverlayPluginCEF()) {
404
+ console.warn("OverlayToolkit: Connect wsUrl ignored in OverlayPlugin CEF environment");
405
+ return;
406
+ }
407
+ const e = new P(r);
408
+ this.api.setTransport(e);
409
+ }
410
+ }
411
+ }
412
+ class n {
413
+ constructor(r, e) {
414
+ t(this, "type");
415
+ t(this, "typeCode");
416
+ t(this, "time");
417
+ this.typeCode = parseInt(e[0]), this.time = e[1], this.type = r;
418
+ }
419
+ get timeDate() {
420
+ return new Date(this.time);
421
+ }
422
+ }
423
+ class k extends n {
424
+ constructor(e) {
425
+ super("LogLine", e);
426
+ t(this, "code");
427
+ t(this, "name");
428
+ t(this, "line");
429
+ this.code = e[2], this.name = e[3], this.line = e[4];
430
+ }
431
+ }
432
+ class C extends n {
433
+ constructor(e) {
434
+ super("ChangeZone", e);
435
+ /**
436
+ * Zone ID of the zone, in decimal
437
+ */
438
+ t(this, "zoneID");
439
+ /**
440
+ * Zone name of the zone, in human friendly string
441
+ */
442
+ t(this, "zoneName");
443
+ this.zoneID = parseInt(e[2], 16), this.zoneName = e[3];
444
+ }
445
+ }
446
+ class b extends n {
447
+ constructor(e) {
448
+ super("ChangePrimaryPlayer", e);
449
+ /**
450
+ * Character ID of the character, in decimal
451
+ */
452
+ t(this, "charID");
453
+ /**
454
+ * Character name of the character, in human friendly string
455
+ */
456
+ t(this, "charName");
457
+ this.charID = parseInt(e[2], 16), this.charName = e[3];
458
+ }
459
+ get charIDHex() {
460
+ return this.charID.toString(16).toUpperCase();
461
+ }
462
+ }
463
+ class l extends n {
464
+ constructor(e) {
465
+ super("AddCombatant", e);
466
+ /**
467
+ * ID of the combatant, in decimal
468
+ */
469
+ t(this, "id");
470
+ /**
471
+ * Name of the combatant, in human friendly string
472
+ */
473
+ t(this, "name");
474
+ t(this, "job");
475
+ t(this, "level");
476
+ t(this, "ownerID");
477
+ t(this, "worldID");
478
+ t(this, "worldName");
479
+ t(this, "npcNameID");
480
+ t(this, "npcBaseID");
481
+ t(this, "currentHP");
482
+ t(this, "hp");
483
+ t(this, "currentMP");
484
+ t(this, "mp");
485
+ t(this, "x");
486
+ t(this, "y");
487
+ t(this, "z");
488
+ t(this, "heading");
489
+ this.id = parseInt(e[2], 16), this.name = e[3], this.job = parseInt(e[4], 16), this.level = parseInt(e[5], 16), this.ownerID = parseInt(e[6], 16), this.worldID = parseInt(e[7], 16), this.worldName = e[8], this.npcNameID = parseInt(e[9]), this.npcBaseID = parseInt(e[10]), this.currentHP = parseInt(e[11]), this.hp = parseInt(e[12]), this.currentMP = parseInt(e[13]), this.mp = parseInt(e[14]), this.x = parseFloat(e[17]), this.y = parseFloat(e[18]), this.z = parseFloat(e[19]), this.heading = parseFloat(e[20]);
490
+ }
491
+ }
492
+ class F extends n {
493
+ constructor(e) {
494
+ super("RemoveCombatant", e);
495
+ /**
496
+ * ID of the combatant, in decimal
497
+ */
498
+ t(this, "id");
499
+ t(this, "name");
500
+ t(this, "job");
501
+ t(this, "level");
502
+ t(this, "ownerID");
503
+ t(this, "world");
504
+ t(this, "npcNameID");
505
+ t(this, "npcBaseID");
506
+ t(this, "currentHP");
507
+ t(this, "hp");
508
+ t(this, "currentMP");
509
+ t(this, "mp");
510
+ t(this, "x");
511
+ t(this, "y");
512
+ t(this, "z");
513
+ t(this, "heading");
514
+ this.id = parseInt(e[2], 16), this.name = e[3], this.job = parseInt(e[4], 16), this.level = parseInt(e[5], 16), this.ownerID = parseInt(e[6], 16), this.world = e[8], this.npcNameID = parseInt(e[9]), this.npcBaseID = parseInt(e[10]), this.currentHP = parseInt(e[11]), this.hp = parseInt(e[12]), this.currentMP = parseInt(e[13]), this.mp = parseInt(e[14]), this.x = parseFloat(e[17]), this.y = parseFloat(e[18]), this.z = parseFloat(e[19]), this.heading = parseFloat(e[20]);
515
+ }
516
+ }
517
+ class M extends n {
518
+ constructor(e) {
519
+ super("PartyChanged", e);
520
+ /**
521
+ * IDs of the players in the party, in decimal
522
+ */
523
+ t(this, "party");
524
+ this.party = [];
525
+ let a = parseInt(e[2]);
526
+ for (let i = 0; i < a; i++)
527
+ this.party.push(parseInt(e[3 + i], 16));
528
+ }
529
+ }
530
+ class E extends n {
531
+ constructor(e) {
532
+ super("PlayerStats", e);
533
+ t(this, "job");
534
+ t(this, "strength");
535
+ t(this, "dexterity");
536
+ t(this, "vitality");
537
+ t(this, "intelligence");
538
+ t(this, "mind");
539
+ t(this, "piety");
540
+ t(this, "attackPower");
541
+ t(this, "directHit");
542
+ t(this, "criticalHit");
543
+ t(this, "attakcMagicPotency");
544
+ t(this, "healingMagicPotency");
545
+ t(this, "determination");
546
+ t(this, "skillSpeed");
547
+ t(this, "spellSpeed");
548
+ t(this, "tenacity");
549
+ t(this, "localContentID");
550
+ this.job = parseInt(e[2], 16), this.strength = parseInt(e[3]), this.dexterity = parseInt(e[4]), this.vitality = parseInt(e[5]), this.intelligence = parseInt(e[6]), this.mind = parseInt(e[7]), this.piety = parseInt(e[8]), this.attackPower = parseInt(e[9]), this.directHit = parseInt(e[10]), this.criticalHit = parseInt(e[11]), this.attakcMagicPotency = parseInt(e[12]), this.healingMagicPotency = parseInt(e[13]), this.determination = parseInt(e[14]), this.skillSpeed = parseInt(e[15]), this.spellSpeed = parseInt(e[16]), this.tenacity = parseInt(e[18]), this.localContentID = parseInt(e[19], 16);
551
+ }
552
+ }
553
+ class H extends n {
554
+ constructor(e) {
555
+ super("NetworkStartsCasting", e);
556
+ t(this, "sourceID");
557
+ t(this, "sourceName");
558
+ t(this, "id");
559
+ t(this, "ability");
560
+ t(this, "targetID");
561
+ t(this, "targetName");
562
+ t(this, "castTime");
563
+ t(this, "x");
564
+ t(this, "y");
565
+ t(this, "z");
566
+ t(this, "heading");
567
+ this.sourceID = parseInt(e[2], 16), this.sourceName = e[3], this.id = parseInt(e[4], 16), this.ability = e[5], this.targetID = parseInt(e[6], 16), this.targetName = e[7], this.castTime = parseFloat(e[8]), this.x = parseFloat(e[9]), this.y = parseFloat(e[10]), this.z = parseFloat(e[11]), this.heading = parseFloat(e[12]);
568
+ }
569
+ }
570
+ class T extends n {
571
+ constructor(e) {
572
+ super(e[0] == "22" ? "NetworkAOEAbility" : "NetworkAbility", e);
573
+ t(this, "sourceID");
574
+ t(this, "sourceName");
575
+ t(this, "id");
576
+ t(this, "ability");
577
+ t(this, "targetID");
578
+ t(this, "targetName");
579
+ t(this, "effects");
580
+ t(this, "targetCurrentHP");
581
+ t(this, "targetMaxHP");
582
+ t(this, "targetCurrentMP");
583
+ t(this, "targetMaxMP");
584
+ t(this, "targetX");
585
+ t(this, "targetY");
586
+ t(this, "targetZ");
587
+ t(this, "targetHeading");
588
+ t(this, "currentHP");
589
+ t(this, "maxHP");
590
+ t(this, "currentMP");
591
+ t(this, "maxMP");
592
+ t(this, "x");
593
+ t(this, "y");
594
+ t(this, "z");
595
+ t(this, "heading");
596
+ t(this, "sequence");
597
+ t(this, "targetIndex");
598
+ t(this, "targetCount");
599
+ t(this, "ownerID");
600
+ t(this, "ownerName");
601
+ t(this, "effectDisplayType");
602
+ t(this, "actionID");
603
+ t(this, "actionAnimationID");
604
+ t(this, "animationLockTime");
605
+ t(this, "rotationHex");
606
+ this.sourceID = parseInt(e[2], 16), this.sourceName = e[3], this.id = parseInt(e[4], 16), this.ability = e[5], this.targetID = parseInt(e[6], 16), this.targetName = e[7], this.effects = [];
607
+ for (let a = 0; a < 8; a++)
608
+ this.effects[a] = {
609
+ flags: parseInt(e[8 + a * 2], 16),
610
+ damage: e[9 + a * 2]
611
+ };
612
+ this.targetCurrentHP = parseInt(e[24]), this.targetMaxHP = parseInt(e[25]), this.targetCurrentMP = parseInt(e[26]), this.targetMaxMP = parseInt(e[27]), this.targetX = parseFloat(e[30]), this.targetY = parseFloat(e[31]), this.targetZ = parseFloat(e[32]), this.targetHeading = parseFloat(e[33]), this.currentHP = parseInt(e[34]), this.maxHP = parseInt(e[35]), this.currentMP = parseInt(e[36]), this.maxMP = parseInt(e[37]), this.x = parseFloat(e[40]), this.y = parseFloat(e[41]), this.z = parseFloat(e[42]), this.heading = parseFloat(e[43]), this.sequence = parseInt(e[44], 16), this.targetIndex = parseInt(e[45]), this.targetCount = parseInt(e[46]), this.ownerID = parseInt(e[47], 16), this.ownerName = e[48], this.effectDisplayType = parseInt(e[49]), this.actionID = parseInt(e[50], 16), this.actionAnimationID = parseInt(e[51], 16), this.animationLockTime = parseFloat(e[52]), this.rotationHex = parseInt(e[53], 16);
613
+ }
614
+ }
615
+ class S extends n {
616
+ constructor(e) {
617
+ super("NetworkCancelAbility", e);
618
+ t(this, "sourceID");
619
+ t(this, "source");
620
+ t(this, "id");
621
+ t(this, "name");
622
+ t(this, "reason");
623
+ this.sourceID = parseInt(e[2], 16), this.source = e[3], this.id = parseInt(e[4], 16), this.name = e[5], this.reason = e[6];
624
+ }
625
+ }
626
+ class L extends n {
627
+ constructor(e) {
628
+ super("NetworkDoT", e);
629
+ t(this, "id");
630
+ t(this, "name");
631
+ t(this, "which");
632
+ t(this, "effectID");
633
+ t(this, "damage");
634
+ t(this, "currentHP");
635
+ t(this, "maxHP");
636
+ t(this, "currentMP");
637
+ t(this, "maxMP");
638
+ // currentTP: number;
639
+ // maxTP: number;
640
+ t(this, "x");
641
+ t(this, "y");
642
+ t(this, "z");
643
+ t(this, "heading");
644
+ t(this, "sourceID");
645
+ t(this, "sourceName");
646
+ t(this, "damageType");
647
+ t(this, "sourceCurrentHP");
648
+ t(this, "sourceMaxHP");
649
+ t(this, "sourceCurrentMP");
650
+ t(this, "sourceMaxMP");
651
+ // sourceCurrentTP: number;
652
+ // sourceMaxTP: number;
653
+ t(this, "sourceX");
654
+ t(this, "sourceY");
655
+ t(this, "sourceZ");
656
+ t(this, "sourceHeading");
657
+ this.id = parseInt(e[2], 16), this.name = e[3], this.which = e[4], this.effectID = parseInt(e[5], 16), this.damage = parseInt(e[6]), this.currentHP = parseInt(e[7]), this.maxHP = parseInt(e[8]), this.currentMP = parseInt(e[9]), this.maxMP = parseInt(e[10]), this.x = parseFloat(e[13]), this.y = parseFloat(e[14]), this.z = parseFloat(e[15]), this.heading = parseFloat(e[16]), this.sourceID = parseInt(e[17], 16), this.sourceName = e[18], this.damageType = parseInt(e[19], 16), this.sourceCurrentHP = parseInt(e[20]), this.sourceMaxHP = parseInt(e[21]), this.sourceCurrentMP = parseInt(e[22]), this.sourceMaxMP = parseInt(e[23]), this.sourceX = parseFloat(e[26]), this.sourceY = parseFloat(e[27]), this.sourceZ = parseFloat(e[28]), this.sourceHeading = parseFloat(e[29]);
658
+ }
659
+ }
660
+ class O extends n {
661
+ constructor(e) {
662
+ super("NetworkDeath", e);
663
+ t(this, "targetID");
664
+ t(this, "targetName");
665
+ t(this, "sourceID");
666
+ t(this, "sourceName");
667
+ this.targetID = parseInt(e[2], 16), this.targetName = e[3], this.sourceID = parseInt(e[4], 16), this.sourceName = e[5];
668
+ }
669
+ }
670
+ class A extends n {
671
+ constructor(e) {
672
+ super("NetworkBuff", e);
673
+ t(this, "effectID");
674
+ t(this, "effectName");
675
+ t(this, "duration");
676
+ t(this, "sourceID");
677
+ t(this, "sourceName");
678
+ t(this, "targetID");
679
+ t(this, "targetName");
680
+ t(this, "count");
681
+ t(this, "targetMaxHP");
682
+ t(this, "sourceMaxHP");
683
+ this.effectID = parseInt(e[2], 16), this.effectName = e[3], this.duration = parseFloat(e[4]), this.sourceID = parseInt(e[5], 16), this.sourceName = e[6], this.targetID = parseInt(e[7], 16), this.targetName = e[8], this.count = parseInt(e[9]), this.targetMaxHP = parseInt(e[10] == "" ? "-1" : e[10]), this.sourceMaxHP = parseInt(e[11] == "" ? "-1" : e[11]);
684
+ }
685
+ }
686
+ class z extends n {
687
+ constructor(e) {
688
+ super("NetworkTargetIcon", e);
689
+ t(this, "targetID");
690
+ t(this, "targetName");
691
+ t(this, "id");
692
+ t(this, "data0");
693
+ this.targetID = parseInt(e[2], 16), this.targetName = e[3], this.id = parseInt(e[6], 16), this.data0 = parseInt(e[7], 16);
694
+ }
695
+ }
696
+ class q extends n {
697
+ constructor(e) {
698
+ super("NetworkRaidMarker", e);
699
+ t(this, "operation");
700
+ t(this, "waymark");
701
+ t(this, "id");
702
+ t(this, "name");
703
+ t(this, "x");
704
+ t(this, "y");
705
+ t(this, "z");
706
+ this.operation = e[2], this.waymark = parseInt(e[3]), this.id = parseInt(e[4], 16), this.name = e[5], this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]);
707
+ }
708
+ }
709
+ class R extends n {
710
+ constructor(e) {
711
+ super("NetworkTargetMarker", e);
712
+ t(this, "operation");
713
+ t(this, "waymark");
714
+ t(this, "id");
715
+ t(this, "name");
716
+ t(this, "targetID");
717
+ t(this, "targetName");
718
+ this.operation = e[2], this.waymark = parseInt(e[3]), this.id = parseInt(e[4], 16), this.name = e[5], this.targetID = parseInt(e[6], 16), this.targetName = e[7];
719
+ }
720
+ }
721
+ class B extends n {
722
+ constructor(e) {
723
+ super("NetworkBuffRemove", e);
724
+ t(this, "effectID");
725
+ t(this, "effectName");
726
+ t(this, "sourceID");
727
+ t(this, "sourceName");
728
+ t(this, "targetID");
729
+ t(this, "targetName");
730
+ t(this, "count");
731
+ this.effectID = parseInt(e[2], 16), this.effectName = e[3], this.sourceID = parseInt(e[5], 16), this.sourceName = e[6], this.targetID = parseInt(e[7], 16), this.targetName = e[8], this.count = parseInt(e[9], 16);
732
+ }
733
+ }
734
+ class U extends n {
735
+ constructor(e) {
736
+ super("NetworkGauge", e);
737
+ t(this, "id");
738
+ /**
739
+ * The data of the gauge, in a Uint8Array.
740
+ *
741
+ * First byte is always the job.
742
+ */
743
+ t(this, "data");
744
+ this.id = parseInt(e[2], 16), this.data = new Uint8Array(16);
745
+ let a = new DataView(this.data.buffer);
746
+ for (let i = 0; i < 4; i++) {
747
+ let c = parseInt(e[3 + i]);
748
+ a.setUint32(i * 4, c, !0);
749
+ }
750
+ }
751
+ }
752
+ class j extends n {
753
+ constructor(e) {
754
+ super("NetworkActorControl", e);
755
+ t(this, "instance");
756
+ t(this, "command");
757
+ t(this, "data");
758
+ this.instance = parseInt(e[2], 16), this.command = parseInt(e[3], 16), this.data = [];
759
+ for (let a = 0; a < 4; a++)
760
+ this.data.push(parseInt(e[4 + a], 16));
761
+ }
762
+ }
763
+ class G extends n {
764
+ constructor(e) {
765
+ super("NetworkNameToggle", e);
766
+ t(this, "id");
767
+ t(this, "name");
768
+ t(this, "targetID");
769
+ t(this, "targetName");
770
+ /**
771
+ * 1 = show, 0 = hide
772
+ */
773
+ t(this, "toggle");
774
+ this.id = parseInt(e[2], 16), this.name = e[3], this.targetID = parseInt(e[4], 16), this.targetName = e[5], this.toggle = parseInt(e[6]) === 1;
775
+ }
776
+ }
777
+ class W extends n {
778
+ constructor(e) {
779
+ super("NetworkTether", e);
780
+ t(this, "sourceID");
781
+ t(this, "sourceName");
782
+ t(this, "targetID");
783
+ t(this, "targetName");
784
+ t(this, "id");
785
+ this.sourceID = parseInt(e[2], 16), this.sourceName = e[3], this.targetID = parseInt(e[4], 16), this.targetName = e[5], this.id = parseInt(e[8], 16);
786
+ }
787
+ }
788
+ class V extends n {
789
+ constructor(e) {
790
+ super("LimitBreak", e);
791
+ /**
792
+ * The limit break value, in decimal. Maximum value is 10000 * bars
793
+ */
794
+ t(this, "value");
795
+ t(this, "bars");
796
+ this.value = parseInt(e[2], 16), this.bars = parseInt(e[3]);
797
+ }
798
+ }
799
+ class Y extends n {
800
+ constructor(e) {
801
+ super("NetworkActionSync", e);
802
+ t(this, "id");
803
+ t(this, "name");
804
+ t(this, "sequenceID");
805
+ t(this, "currentHP");
806
+ t(this, "maxHP");
807
+ t(this, "currentMP");
808
+ t(this, "maxMP");
809
+ t(this, "currentShield");
810
+ t(this, "x");
811
+ t(this, "y");
812
+ t(this, "z");
813
+ t(this, "heading");
814
+ this.id = parseInt(e[2], 16), this.name = e[3], this.sequenceID = parseInt(e[4], 16), this.currentHP = e[5] ? parseInt(e[5]) : -1, this.maxHP = e[6] ? parseInt(e[6]) : -1, this.currentMP = e[7] ? parseInt(e[7]) : -1, this.maxMP = e[8] ? parseInt(e[8]) : -1, this.currentShield = e[9] ? parseInt(e[9]) : -1, this.x = parseFloat(e[11]), this.y = parseFloat(e[12]), this.z = parseFloat(e[13]), this.heading = parseFloat(e[14]);
815
+ }
816
+ }
817
+ class Z extends n {
818
+ constructor(e) {
819
+ super("NetworkStatusEffects", e);
820
+ t(this, "targetID");
821
+ t(this, "targetName");
822
+ t(this, "jobLevelData");
823
+ t(this, "currentHP");
824
+ t(this, "maxHP");
825
+ t(this, "currentMP");
826
+ t(this, "maxMP");
827
+ t(this, "currentShield");
828
+ // unknown: number;
829
+ t(this, "x");
830
+ t(this, "y");
831
+ t(this, "z");
832
+ t(this, "heading");
833
+ t(this, "data");
834
+ this.targetID = parseInt(e[2], 16), this.targetName = e[3], this.jobLevelData = parseInt(e[4], 16), this.currentHP = parseInt(e[5]), this.maxHP = parseInt(e[6]), this.currentMP = parseInt(e[7]), this.maxMP = parseInt(e[8]), this.currentShield = parseInt(e[9]), this.x = parseFloat(e[11]), this.y = parseFloat(e[12]), this.z = parseFloat(e[13]), this.heading = parseFloat(e[14]), this.data = [];
835
+ for (let a = 0; a < 6; a++)
836
+ this.data.push(parseInt(e[15 + a], 16));
837
+ }
838
+ }
839
+ class X extends n {
840
+ constructor(e) {
841
+ super("NetworkUpdateHP", e);
842
+ t(this, "id");
843
+ t(this, "name");
844
+ t(this, "currentHP");
845
+ t(this, "maxHP");
846
+ t(this, "currentMP");
847
+ t(this, "maxMP");
848
+ // currentTP: number;
849
+ // maxTP: number;
850
+ t(this, "x");
851
+ t(this, "y");
852
+ t(this, "z");
853
+ t(this, "heading");
854
+ this.id = parseInt(e[2], 16), this.name = e[3], this.currentHP = parseInt(e[4]), this.maxHP = parseInt(e[5]), this.currentMP = parseInt(e[6]), this.maxMP = parseInt(e[7]), this.x = parseFloat(e[10]), this.y = parseFloat(e[11]), this.z = parseFloat(e[12]), this.heading = parseFloat(e[13]);
855
+ }
856
+ }
857
+ class _ extends n {
858
+ constructor(e) {
859
+ super("Map", e);
860
+ t(this, "id");
861
+ t(this, "regionName");
862
+ t(this, "placeName");
863
+ t(this, "placeNameSub");
864
+ this.id = parseInt(e[2], 16), this.regionName = e[3], this.placeName = e[4], this.placeNameSub = e[5];
865
+ }
866
+ }
867
+ class J extends n {
868
+ constructor(e) {
869
+ super("SystemLogMessage", e);
870
+ t(this, "instance");
871
+ t(this, "id");
872
+ t(this, "params");
873
+ this.instance = parseInt(e[2], 16), this.id = parseInt(e[3], 16), this.params = [];
874
+ for (let a = 0; a < 3; a++)
875
+ this.params.push(parseInt(e[4 + a], 16));
876
+ }
877
+ }
878
+ class K extends n {
879
+ constructor(e) {
880
+ super("StatusList3", e);
881
+ t(this, "id");
882
+ t(this, "name");
883
+ t(this, "statusList");
884
+ this.id = parseInt(e[2], 16), this.name = e[3], this.statusList = [];
885
+ for (let a = 0; a < e.length - 4 - 1; a++)
886
+ this.statusList.push(parseInt(e[4 + a], 16));
887
+ }
888
+ }
889
+ class $ extends n {
890
+ constructor(e) {
891
+ super("Debug", e);
892
+ t(this, "message");
893
+ this.message = e[2];
894
+ }
895
+ }
896
+ class Q extends n {
897
+ constructor(e) {
898
+ super("PacketDump", e);
899
+ t(this, "len");
900
+ t(this, "src");
901
+ t(this, "dst");
902
+ t(this, "packetType");
903
+ t(this, "data");
904
+ this.len = parseInt(e[2], 16), this.src = parseInt(e[3], 16), this.dst = parseInt(e[4], 16), this.packetType = parseInt(e[5], 16) & 65535, this.data = new Uint8Array(this.len - 16);
905
+ for (let a = 6, i = 0; a < e.length - 2; a++, i++) {
906
+ const c = parseInt(e[a], 16);
907
+ for (let h = 0; h < 4; h++)
908
+ this.data[i * 4 + h] = c >> h * 8 & 255;
909
+ }
910
+ }
911
+ }
912
+ class g extends n {
913
+ constructor(e) {
914
+ super("Version", e);
915
+ t(this, "message");
916
+ this.message = e[2];
917
+ }
918
+ }
919
+ let ee = class extends n {
920
+ constructor(e) {
921
+ super("Error", e);
922
+ t(this, "message");
923
+ this.message = e[2];
924
+ }
925
+ };
926
+ class te extends n {
927
+ constructor(e) {
928
+ super("LineRegistration", e);
929
+ t(this, "id");
930
+ t(this, "source");
931
+ t(this, "name");
932
+ t(this, "version");
933
+ this.id = parseInt(e[2]), this.source = e[3], this.name = e[4], this.version = e[5];
934
+ }
935
+ }
936
+ class se extends n {
937
+ constructor(e) {
938
+ super("MapEffect", e);
939
+ t(this, "instance");
940
+ t(this, "flags");
941
+ t(this, "location");
942
+ t(this, "data0");
943
+ t(this, "data1");
944
+ this.instance = parseInt(e[2], 16), this.flags = parseInt(e[3], 16), this.location = parseInt(e[4], 16), this.data0 = parseInt(e[5], 16), this.data1 = parseInt(e[6], 16);
945
+ }
946
+ }
947
+ class re extends n {
948
+ constructor(e) {
949
+ super("FateDirector", e);
950
+ t(this, "category");
951
+ t(this, "unknown");
952
+ t(this, "id");
953
+ t(this, "progress");
954
+ this.category = e[2], this.unknown = parseInt(e[3], 16), this.id = parseInt(e[4], 16), this.progress = parseInt(e[5], 16);
955
+ }
956
+ }
957
+ class ae extends n {
958
+ constructor(e) {
959
+ super("CEDirector", e);
960
+ t(this, "popTime");
961
+ // unix timestamp
962
+ t(this, "timeRemaining");
963
+ t(this, "unknown");
964
+ t(this, "ceKey");
965
+ t(this, "numPlayers");
966
+ t(this, "status");
967
+ t(this, "unknown2");
968
+ t(this, "progress");
969
+ this.popTime = parseInt(e[2], 16), this.timeRemaining = parseInt(e[3], 16), this.unknown = parseInt(e[4], 16), this.ceKey = parseInt(e[5], 16), this.numPlayers = parseInt(e[6], 16), this.status = parseInt(e[7], 16), this.unknown2 = parseInt(e[8], 16), this.progress = parseInt(e[9], 16);
970
+ }
971
+ }
972
+ class ne extends n {
973
+ constructor(e) {
974
+ super("InCombat", e);
975
+ t(this, "inACTCombat");
976
+ t(this, "inGameCombat");
977
+ t(this, "isACTChanged");
978
+ t(this, "isGameChanged");
979
+ this.inACTCombat = parseInt(e[2]) === 1, this.inGameCombat = parseInt(e[3]) === 1, this.isACTChanged = parseInt(e[4]) === 1, this.isGameChanged = parseInt(e[5]) === 1;
980
+ }
981
+ }
982
+ class ie extends n {
983
+ constructor(e) {
984
+ super("CombatantMemory", e);
985
+ t(this, "change");
986
+ t(this, "id");
987
+ t(this, "data");
988
+ this.change = e[2], this.id = parseInt(e[3], 16), this.data = /* @__PURE__ */ new Map();
989
+ for (let a = 4; a < e.length - 1; a += 2)
990
+ this.data.set(e[a], e[a + 1]);
991
+ }
992
+ }
993
+ class ce extends n {
994
+ constructor(e) {
995
+ super("RSVData", e);
996
+ t(this, "locale");
997
+ t(this, "unknown");
998
+ t(this, "key");
999
+ t(this, "value");
1000
+ this.locale = e[2], this.unknown = parseInt(e[3], 16), this.key = e[4], this.value = e[5];
1001
+ }
1002
+ }
1003
+ class he extends n {
1004
+ constructor(e) {
1005
+ super("StartsUsingExtra", e);
1006
+ t(this, "sourceID");
1007
+ t(this, "id");
1008
+ t(this, "x");
1009
+ t(this, "y");
1010
+ t(this, "z");
1011
+ t(this, "heading");
1012
+ this.sourceID = parseInt(e[2], 16), this.id = parseInt(e[3], 16), this.x = parseFloat(e[4]), this.y = parseFloat(e[5]), this.z = parseFloat(e[6]), this.heading = parseFloat(e[7]);
1013
+ }
1014
+ }
1015
+ class pe extends n {
1016
+ constructor(e) {
1017
+ super("AbilityExtra", e);
1018
+ t(this, "sourceID");
1019
+ t(this, "id");
1020
+ t(this, "globalEffectCounter");
1021
+ t(this, "dataFlag");
1022
+ t(this, "x");
1023
+ t(this, "y");
1024
+ t(this, "z");
1025
+ t(this, "heading");
1026
+ t(this, "animationTargetId");
1027
+ this.sourceID = parseInt(e[2], 16), this.id = parseInt(e[3], 16), this.globalEffectCounter = parseInt(e[4], 16), this.dataFlag = parseInt(e[5], 16), this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]), this.heading = parseFloat(e[9]), this.animationTargetId = parseInt(e[10], 16);
1028
+ }
1029
+ }
1030
+ class ue extends n {
1031
+ constructor(e) {
1032
+ super("ContentFinderSettings", e);
1033
+ t(this, "zoneID");
1034
+ t(this, "zoneName");
1035
+ t(this, "inContentFinderContent");
1036
+ t(this, "unrestrictedParty");
1037
+ t(this, "minimalItemLevel");
1038
+ t(this, "silenceEcho");
1039
+ t(this, "explorerMode");
1040
+ t(this, "levelSync");
1041
+ this.zoneID = parseInt(e[2], 16), this.zoneName = e[3], this.inContentFinderContent = parseInt(e[4]) === 1, this.unrestrictedParty = parseInt(e[5]) === 1, this.minimalItemLevel = parseInt(e[6]) === 1, this.silenceEcho = parseInt(e[7]) === 1, this.explorerMode = parseInt(e[8]) === 1, this.levelSync = parseInt(e[9]) === 1;
1042
+ }
1043
+ }
1044
+ class de extends n {
1045
+ constructor(e) {
1046
+ super("NpcYell", e);
1047
+ t(this, "npcId");
1048
+ t(this, "npcNameId");
1049
+ t(this, "npcYellId");
1050
+ this.npcId = parseInt(e[2], 16), this.npcNameId = parseInt(e[3], 16), this.npcYellId = parseInt(e[4], 16);
1051
+ }
1052
+ }
1053
+ class oe extends n {
1054
+ constructor(e) {
1055
+ super("BattleTalk2", e);
1056
+ t(this, "npcId");
1057
+ t(this, "instance");
1058
+ t(this, "npcNameId");
1059
+ t(this, "instanceContentTextId");
1060
+ t(this, "displayMs");
1061
+ this.npcId = parseInt(e[2], 16), this.instance = parseInt(e[3], 16), this.npcNameId = parseInt(e[4], 16), this.instanceContentTextId = parseInt(e[5], 16), this.displayMs = parseInt(e[6]);
1062
+ }
1063
+ }
1064
+ class Ie extends n {
1065
+ constructor(e) {
1066
+ super("Countdown", e);
1067
+ t(this, "id");
1068
+ t(this, "worldID");
1069
+ t(this, "countdownTime");
1070
+ t(this, "result");
1071
+ t(this, "name");
1072
+ this.id = parseInt(e[2], 16), this.worldID = parseInt(e[3], 16), this.countdownTime = parseInt(e[4]), this.result = parseInt(e[5], 16), this.name = e[6];
1073
+ }
1074
+ }
1075
+ class me extends n {
1076
+ constructor(e) {
1077
+ super("CountdownCancel", e);
1078
+ t(this, "id");
1079
+ t(this, "worldID");
1080
+ t(this, "name");
1081
+ this.id = parseInt(e[2], 16), this.worldID = parseInt(e[3], 16), this.name = e[4];
1082
+ }
1083
+ }
1084
+ class we extends n {
1085
+ constructor(e) {
1086
+ super("ActorMove", e);
1087
+ t(this, "id");
1088
+ t(this, "heading");
1089
+ t(this, "unk1");
1090
+ t(this, "unk2");
1091
+ t(this, "x");
1092
+ t(this, "y");
1093
+ t(this, "z");
1094
+ this.id = parseInt(e[2], 16), this.heading = parseFloat(e[3]), this.unk1 = parseInt(e[4], 16), this.unk2 = parseInt(e[5], 16), this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]);
1095
+ }
1096
+ }
1097
+ class ye extends n {
1098
+ constructor(e) {
1099
+ super("ActorSetPos", e);
1100
+ t(this, "id");
1101
+ t(this, "heading");
1102
+ t(this, "unk1");
1103
+ t(this, "unk2");
1104
+ t(this, "x");
1105
+ t(this, "y");
1106
+ t(this, "z");
1107
+ this.id = parseInt(e[2], 16), this.heading = parseFloat(e[3]), this.unk1 = parseInt(e[4], 16), this.unk2 = parseInt(e[5], 16), this.x = parseFloat(e[6]), this.y = parseFloat(e[7]), this.z = parseFloat(e[8]);
1108
+ }
1109
+ }
1110
+ class ve extends n {
1111
+ constructor(e) {
1112
+ super("SpawnNpcExtra", e);
1113
+ t(this, "id");
1114
+ t(this, "parentID");
1115
+ t(this, "tetherID");
1116
+ t(this, "animationState");
1117
+ this.id = parseInt(e[2], 16), this.parentID = parseInt(e[3], 16), this.tetherID = parseInt(e[4], 16), this.animationState = parseInt(e[5], 16);
1118
+ }
1119
+ }
1120
+ class xe extends n {
1121
+ constructor(e) {
1122
+ super("ActorControlExtra", e);
1123
+ t(this, "id");
1124
+ t(this, "category");
1125
+ t(this, "param1");
1126
+ t(this, "param2");
1127
+ t(this, "param3");
1128
+ t(this, "param4");
1129
+ this.id = parseInt(e[2], 16), this.category = parseInt(e[3], 16), this.param1 = parseInt(e[4], 16), this.param2 = parseInt(e[5], 16), this.param3 = parseInt(e[6], 16), this.param4 = parseInt(e[7], 16);
1130
+ }
1131
+ }
1132
+ class fe extends n {
1133
+ constructor(e) {
1134
+ super("ActorControlSelfExtra", e);
1135
+ t(this, "id");
1136
+ t(this, "category");
1137
+ t(this, "param1");
1138
+ t(this, "param2");
1139
+ t(this, "param3");
1140
+ t(this, "param4");
1141
+ t(this, "param5");
1142
+ t(this, "param6");
1143
+ this.id = parseInt(e[2], 16), this.category = parseInt(e[3], 16), this.param1 = parseInt(e[4], 16), this.param2 = parseInt(e[5], 16), this.param3 = parseInt(e[6], 16), this.param4 = parseInt(e[7], 16), this.param5 = parseInt(e[8], 16), this.param6 = parseInt(e[9], 16);
1144
+ }
1145
+ }
1146
+ class De extends n {
1147
+ constructor(e) {
1148
+ super("Unknown", e);
1149
+ t(this, "rawLines");
1150
+ this.rawLines = e;
1151
+ }
1152
+ }
1153
+ function Ce(s) {
1154
+ switch (parseInt(s[0])) {
1155
+ case 0:
1156
+ return new k(s);
1157
+ case 1:
1158
+ return new C(s);
1159
+ case 2:
1160
+ return new b(s);
1161
+ case 3:
1162
+ return new l(s);
1163
+ case 4:
1164
+ return new F(s);
1165
+ case 11:
1166
+ return new M(s);
1167
+ case 12:
1168
+ return new E(s);
1169
+ case 20:
1170
+ return new H(s);
1171
+ case 21:
1172
+ case 22:
1173
+ return new T(s);
1174
+ case 23:
1175
+ return new S(s);
1176
+ case 24:
1177
+ return new L(s);
1178
+ case 25:
1179
+ return new O(s);
1180
+ case 26:
1181
+ return new A(s);
1182
+ case 27:
1183
+ return new z(s);
1184
+ case 28:
1185
+ return new q(s);
1186
+ case 29:
1187
+ return new R(s);
1188
+ case 30:
1189
+ return new B(s);
1190
+ case 31:
1191
+ return new U(s);
1192
+ case 33:
1193
+ return new j(s);
1194
+ case 34:
1195
+ return new G(s);
1196
+ case 35:
1197
+ return new W(s);
1198
+ case 36:
1199
+ return new V(s);
1200
+ case 37:
1201
+ return new Y(s);
1202
+ case 38:
1203
+ return new Z(s);
1204
+ case 39:
1205
+ return new X(s);
1206
+ case 40:
1207
+ return new _(s);
1208
+ case 41:
1209
+ return new J(s);
1210
+ case 42:
1211
+ return new K(s);
1212
+ case 251:
1213
+ return new $(s);
1214
+ case 252:
1215
+ return new Q(s);
1216
+ case 253:
1217
+ return new g(s);
1218
+ case 254:
1219
+ return new ee(s);
1220
+ case 256:
1221
+ return new te(s);
1222
+ case 257:
1223
+ return new se(s);
1224
+ case 258:
1225
+ return new re(s);
1226
+ case 259:
1227
+ return new ae(s);
1228
+ case 260:
1229
+ return new ne(s);
1230
+ case 261:
1231
+ return new ie(s);
1232
+ case 262:
1233
+ return new ce(s);
1234
+ case 263:
1235
+ return new he(s);
1236
+ case 264:
1237
+ return new pe(s);
1238
+ case 265:
1239
+ return new ue(s);
1240
+ case 266:
1241
+ return new de(s);
1242
+ case 267:
1243
+ return new oe(s);
1244
+ case 268:
1245
+ return new Ie(s);
1246
+ case 269:
1247
+ return new me(s);
1248
+ case 270:
1249
+ return new we(s);
1250
+ case 271:
1251
+ return new ye(s);
1252
+ case 272:
1253
+ return new ve(s);
1254
+ case 273:
1255
+ return new xe(s);
1256
+ case 274:
1257
+ return new fe(s);
1258
+ default:
1259
+ return new De(s);
1260
+ }
1261
+ }
1262
+ let Pe = new N();
1263
+ (function() {
1264
+ Pe.Connect();
1265
+ })();
1266
+ export {
1267
+ pe as AbilityExtra,
1268
+ xe as ActorControlExtra,
1269
+ fe as ActorControlSelfExtra,
1270
+ we as ActorMove,
1271
+ ye as ActorSetPos,
1272
+ l as AddCombatant,
1273
+ oe as BattleTalk2,
1274
+ ae as CEDirector,
1275
+ b as ChangePrimaryPlayer,
1276
+ C as ChangeZone,
1277
+ ie as CombatantMemory,
1278
+ ue as ContentFinderSettings,
1279
+ Ie as Countdown,
1280
+ me as CountdownCancel,
1281
+ $ as Debug,
1282
+ ee as Error,
1283
+ re as FateDirector,
1284
+ k as GameLogLine,
1285
+ ne as InCombat,
1286
+ V as LimitBreak,
1287
+ te as LineRegistration,
1288
+ n as LogLineBase,
1289
+ se as MapEffect,
1290
+ _ as MapLog,
1291
+ H as NetowrkStartsCasting,
1292
+ T as NetworkAbility,
1293
+ Y as NetworkActionSync,
1294
+ j as NetworkActorControl,
1295
+ A as NetworkBuff,
1296
+ B as NetworkBuffRemove,
1297
+ S as NetworkCancelAbility,
1298
+ O as NetworkDeath,
1299
+ L as NetworkDoT,
1300
+ U as NetworkGauge,
1301
+ G as NetworkNameToggle,
1302
+ q as NetworkRaidMarker,
1303
+ Z as NetworkStatusEffects,
1304
+ z as NetworkTargetIcon,
1305
+ R as NetworkTargetMarker,
1306
+ W as NetworkTether,
1307
+ X as NetworkUpdateHP,
1308
+ de as NpcYell,
1309
+ N as OverlayToolkit,
1310
+ Q as PacketDump,
1311
+ Ce as ParseLogLine,
1312
+ M as PartyList,
1313
+ E as PlayerStats,
1314
+ ce as RSVData,
1315
+ F as RemoveCombatant,
1316
+ ve as SpawnNpcExtra,
1317
+ he as StartsUsingExtra,
1318
+ K as StatusList3,
1319
+ J as SystemLogMessage,
1320
+ De as UnknownLogLine,
1321
+ g as Version,
1322
+ Pe as default
1323
+ };