tabby-rdp 0.6.1 → 0.6.4

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 (44) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +16 -11
  3. package/bin/SHA256SUMS +8 -8
  4. package/bin/darwin-arm64/tabby-rdp-proxy +0 -0
  5. package/bin/darwin-x64/tabby-rdp-proxy +0 -0
  6. package/bin/linux-arm/tabby-rdp-proxy +0 -0
  7. package/bin/linux-arm64/tabby-rdp-proxy +0 -0
  8. package/bin/linux-x64/tabby-rdp-proxy +0 -0
  9. package/bin/win32-arm64/tabby-rdp-proxy.exe +0 -0
  10. package/bin/win32-x64/tabby-rdp-proxy.exe +0 -0
  11. package/dist/audio.js +26 -5
  12. package/dist/clipboard.js +8 -2
  13. package/dist/desktop.service.js +60 -14
  14. package/dist/desktopForm.js +1 -1
  15. package/dist/fileTransfer.js +41 -8
  16. package/dist/freerdp.js +36 -14
  17. package/dist/freerdpClipboard.js +39 -9
  18. package/dist/freerdpFiles.js +183 -0
  19. package/dist/freerdpView.js +6 -0
  20. package/dist/freerdpWasm.js +183 -0
  21. package/dist/freerdpWasmSocket.js +28 -0
  22. package/dist/freerdpWasmWorker.js +174 -0
  23. package/dist/pduTrace.js +27 -5
  24. package/dist/rdpClient.js +2 -2
  25. package/dist/rdpProfile.js +2 -2
  26. package/dist/settingsPage.js +6 -6
  27. package/dist/ui.js +2 -2
  28. package/dist/zgfx.js +33 -18
  29. package/native/README.md +74 -33
  30. package/package.json +6 -18
  31. package/vendor/SHA256SUMS +16 -5
  32. package/vendor/iron-remote-desktop-rdp.js +301 -301
  33. package/vendor/iron-remote-desktop.js +770 -736
  34. package/vendor/ironrdp-factory.js +301 -301
  35. package/vendor/ironrdp_web_bg.wasm +0 -0
  36. package/wasm/freerdp/BUILD.json +63 -0
  37. package/wasm/freerdp/licenses/Emscripten-LICENSE +102 -0
  38. package/wasm/freerdp/licenses/FreeRDP-LICENSE +202 -0
  39. package/wasm/freerdp/licenses/FreeRDP-NOTICE +13 -0
  40. package/wasm/freerdp/licenses/LibreSSL-LICENSE +133 -0
  41. package/wasm/freerdp/licenses/Unicode-NOTICE +21 -0
  42. package/wasm/freerdp/licenses/zlib-LICENSE +22 -0
  43. package/wasm/freerdp/tabby-freerdp.js +2 -0
  44. package/wasm/freerdp/tabby-freerdp.wasm +0 -0
@@ -84,7 +84,7 @@ class d {
84
84
  * @param {Uint8Array} binary
85
85
  */
86
86
  addBinary(A, I) {
87
- const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = F, E = jA(I, C.__wbindgen_malloc), D = F;
87
+ const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = R, E = bA(I, C.__wbindgen_malloc), D = R;
88
88
  C.clipboarddata_addBinary(this.__wbg_ptr, g, B, E, D);
89
89
  }
90
90
  /**
@@ -92,7 +92,7 @@ class d {
92
92
  * @param {string} text
93
93
  */
94
94
  addText(A, I) {
95
- const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = F, E = R(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = F;
95
+ const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = R, E = F(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = R;
96
96
  C.clipboarddata_addText(this.__wbg_ptr, g, B, E, D);
97
97
  }
98
98
  constructor() {
@@ -110,7 +110,7 @@ class d {
110
110
  */
111
111
  items() {
112
112
  const A = C.clipboarddata_items(this.__wbg_ptr);
113
- var I = WA(A[0], A[1]).slice();
113
+ var I = lA(A[0], A[1]).slice();
114
114
  return C.__wbindgen_free(A[0], A[1] * 4, 4), I;
115
115
  }
116
116
  }
@@ -135,7 +135,7 @@ class n {
135
135
  let A, I;
136
136
  try {
137
137
  const g = C.clipboarditem_mimeType(this.__wbg_ptr);
138
- return A = g[0], I = g[1], y(g[0], g[1]);
138
+ return A = g[0], I = g[1], Y(g[0], g[1]);
139
139
  } finally {
140
140
  C.__wbindgen_free(A, I, 1);
141
141
  }
@@ -195,9 +195,9 @@ class V {
195
195
  }
196
196
  }
197
197
  Symbol.dispose && (V.prototype[Symbol.dispose] = V.prototype.free);
198
- class c {
198
+ class h {
199
199
  static __wrap(A) {
200
- const I = Object.create(c.prototype);
200
+ const I = Object.create(h.prototype);
201
201
  return I.__wbg_ptr = A, GA.register(I, I.__wbg_ptr, I), I;
202
202
  }
203
203
  __destroy_into_raw() {
@@ -214,7 +214,7 @@ class c {
214
214
  */
215
215
  static keyPressed(A) {
216
216
  const I = C.deviceevent_keyPressed(A);
217
- return c.__wrap(I);
217
+ return h.__wrap(I);
218
218
  }
219
219
  /**
220
220
  * @param {number} scancode
@@ -222,7 +222,7 @@ class c {
222
222
  */
223
223
  static keyReleased(A) {
224
224
  const I = C.deviceevent_keyReleased(A);
225
- return c.__wrap(I);
225
+ return h.__wrap(I);
226
226
  }
227
227
  /**
228
228
  * @param {number} button
@@ -230,7 +230,7 @@ class c {
230
230
  */
231
231
  static mouseButtonPressed(A) {
232
232
  const I = C.deviceevent_mouseButtonPressed(A);
233
- return c.__wrap(I);
233
+ return h.__wrap(I);
234
234
  }
235
235
  /**
236
236
  * @param {number} button
@@ -238,7 +238,7 @@ class c {
238
238
  */
239
239
  static mouseButtonReleased(A) {
240
240
  const I = C.deviceevent_mouseButtonReleased(A);
241
- return c.__wrap(I);
241
+ return h.__wrap(I);
242
242
  }
243
243
  /**
244
244
  * @param {number} x
@@ -247,7 +247,7 @@ class c {
247
247
  */
248
248
  static mouseMove(A, I) {
249
249
  const g = C.deviceevent_mouseMove(A, I);
250
- return c.__wrap(g);
250
+ return h.__wrap(g);
251
251
  }
252
252
  /**
253
253
  * @param {string} unicode
@@ -255,9 +255,9 @@ class c {
255
255
  */
256
256
  static unicodePressed(A) {
257
257
  const I = A.codePointAt(0);
258
- YA(I);
258
+ yA(I);
259
259
  const g = C.deviceevent_unicodePressed(I);
260
- return c.__wrap(g);
260
+ return h.__wrap(g);
261
261
  }
262
262
  /**
263
263
  * @param {string} unicode
@@ -265,9 +265,9 @@ class c {
265
265
  */
266
266
  static unicodeReleased(A) {
267
267
  const I = A.codePointAt(0);
268
- YA(I);
268
+ yA(I);
269
269
  const g = C.deviceevent_unicodeReleased(I);
270
- return c.__wrap(g);
270
+ return h.__wrap(g);
271
271
  }
272
272
  /**
273
273
  * @param {boolean} vertical
@@ -277,10 +277,10 @@ class c {
277
277
  */
278
278
  static wheelRotations(A, I, g) {
279
279
  const B = C.deviceevent_wheelRotations(A, I, g);
280
- return c.__wrap(B);
280
+ return h.__wrap(B);
281
281
  }
282
282
  }
283
- Symbol.dispose && (c.prototype[Symbol.dispose] = c.prototype.free);
283
+ Symbol.dispose && (h.prototype[Symbol.dispose] = h.prototype.free);
284
284
  class k {
285
285
  __destroy_into_raw() {
286
286
  const A = this.__wbg_ptr;
@@ -295,7 +295,7 @@ class k {
295
295
  * @param {any} value
296
296
  */
297
297
  constructor(A, I) {
298
- const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = F, E = C.extension_create(g, B, I);
298
+ const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = R, E = C.extension_create(g, B, I);
299
299
  return this.__wbg_ptr = E, oA.register(this, this.__wbg_ptr, this), this;
300
300
  }
301
301
  }
@@ -313,7 +313,7 @@ class _ {
313
313
  * @param {DeviceEvent} event
314
314
  */
315
315
  addEvent(A) {
316
- t(A, c);
316
+ t(A, h);
317
317
  var I = A.__destroy_into_raw();
318
318
  C.inputtransaction_addEvent(this.__wbg_ptr, I);
319
319
  }
@@ -323,9 +323,9 @@ class _ {
323
323
  }
324
324
  }
325
325
  Symbol.dispose && (_.prototype[Symbol.dispose] = _.prototype.free);
326
- class r {
326
+ class z {
327
327
  static __wrap(A) {
328
- const I = Object.create(r.prototype);
328
+ const I = Object.create(z.prototype);
329
329
  return I.__wbg_ptr = A, kA.register(I, I.__wbg_ptr, I), I;
330
330
  }
331
331
  __destroy_into_raw() {
@@ -343,7 +343,7 @@ class r {
343
343
  let A, I;
344
344
  try {
345
345
  const g = C.ironerror_backtrace(this.__wbg_ptr);
346
- return A = g[0], I = g[1], y(g[0], g[1]);
346
+ return A = g[0], I = g[1], Y(g[0], g[1]);
347
347
  } finally {
348
348
  C.__wbindgen_free(A, I, 1);
349
349
  }
@@ -359,18 +359,18 @@ class r {
359
359
  */
360
360
  rdcleanpathDetails() {
361
361
  const A = C.ironerror_rdcleanpathDetails(this.__wbg_ptr);
362
- return A === 0 ? void 0 : z.__wrap(A);
362
+ return A === 0 ? void 0 : e.__wrap(A);
363
363
  }
364
364
  }
365
- Symbol.dispose && (r.prototype[Symbol.dispose] = r.prototype.free);
366
- class z {
365
+ Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
366
+ class e {
367
367
  static __wrap(A) {
368
- const I = Object.create(z.prototype);
369
- return I.__wbg_ptr = A, FA.register(I, I.__wbg_ptr, I), I;
368
+ const I = Object.create(e.prototype);
369
+ return I.__wbg_ptr = A, RA.register(I, I.__wbg_ptr, I), I;
370
370
  }
371
371
  __destroy_into_raw() {
372
372
  const A = this.__wbg_ptr;
373
- return this.__wbg_ptr = 0, FA.unregister(this), A;
373
+ return this.__wbg_ptr = 0, RA.unregister(this), A;
374
374
  }
375
375
  free() {
376
376
  const A = this.__destroy_into_raw();
@@ -422,11 +422,11 @@ class z {
422
422
  return A === 16777215 ? void 0 : A;
423
423
  }
424
424
  }
425
- Symbol.dispose && (z.prototype[Symbol.dispose] = z.prototype.free);
425
+ Symbol.dispose && (e.prototype[Symbol.dispose] = e.prototype.free);
426
426
  class iA {
427
427
  __destroy_into_raw() {
428
428
  const A = this.__wbg_ptr;
429
- return this.__wbg_ptr = 0, RA.unregister(this), A;
429
+ return this.__wbg_ptr = 0, FA.unregister(this), A;
430
430
  }
431
431
  free() {
432
432
  const A = this.__destroy_into_raw();
@@ -434,14 +434,14 @@ class iA {
434
434
  }
435
435
  constructor() {
436
436
  const A = C.rdpfile_create();
437
- return this.__wbg_ptr = A, RA.register(this, this.__wbg_ptr, this), this;
437
+ return this.__wbg_ptr = A, FA.register(this, this.__wbg_ptr, this), this;
438
438
  }
439
439
  /**
440
440
  * @param {string} key
441
441
  * @returns {number | undefined}
442
442
  */
443
443
  getInt(A) {
444
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.rdpfile_getInt(this.__wbg_ptr, I, g);
444
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.rdpfile_getInt(this.__wbg_ptr, I, g);
445
445
  return B === Number.MAX_SAFE_INTEGER ? void 0 : B;
446
446
  }
447
447
  /**
@@ -449,16 +449,16 @@ class iA {
449
449
  * @returns {string | undefined}
450
450
  */
451
451
  getStr(A) {
452
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.rdpfile_getStr(this.__wbg_ptr, I, g);
452
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.rdpfile_getStr(this.__wbg_ptr, I, g);
453
453
  let E;
454
- return B[0] !== 0 && (E = y(B[0], B[1]).slice(), C.__wbindgen_free(B[0], B[1] * 1, 1)), E;
454
+ return B[0] !== 0 && (E = Y(B[0], B[1]).slice(), C.__wbindgen_free(B[0], B[1] * 1, 1)), E;
455
455
  }
456
456
  /**
457
457
  * @param {string} key
458
458
  * @param {number} value
459
459
  */
460
460
  insertInt(A, I) {
461
- const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = F;
461
+ const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = R;
462
462
  C.rdpfile_insertInt(this.__wbg_ptr, g, B, I);
463
463
  }
464
464
  /**
@@ -466,14 +466,14 @@ class iA {
466
466
  * @param {string} value
467
467
  */
468
468
  insertStr(A, I) {
469
- const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = F, E = R(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = F;
469
+ const g = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = R, E = F(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = R;
470
470
  C.rdpfile_insertStr(this.__wbg_ptr, g, B, E, D);
471
471
  }
472
472
  /**
473
473
  * @param {string} config
474
474
  */
475
475
  parse(A) {
476
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F;
476
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R;
477
477
  C.rdpfile_parse(this.__wbg_ptr, I, g);
478
478
  }
479
479
  /**
@@ -483,21 +483,21 @@ class iA {
483
483
  let A, I;
484
484
  try {
485
485
  const g = C.rdpfile_write(this.__wbg_ptr);
486
- return A = g[0], I = g[1], y(g[0], g[1]);
486
+ return A = g[0], I = g[1], Y(g[0], g[1]);
487
487
  } finally {
488
488
  C.__wbindgen_free(A, I, 1);
489
489
  }
490
490
  }
491
491
  }
492
492
  Symbol.dispose && (iA.prototype[Symbol.dispose] = iA.prototype.free);
493
- class P {
493
+ class r {
494
494
  static __wrap(A) {
495
- const I = Object.create(P.prototype);
496
- return I.__wbg_ptr = A, yA.register(I, I.__wbg_ptr, I), I;
495
+ const I = Object.create(r.prototype);
496
+ return I.__wbg_ptr = A, YA.register(I, I.__wbg_ptr, I), I;
497
497
  }
498
498
  __destroy_into_raw() {
499
499
  const A = this.__wbg_ptr;
500
- return this.__wbg_ptr = 0, yA.unregister(this), A;
500
+ return this.__wbg_ptr = 0, YA.unregister(this), A;
501
501
  }
502
502
  free() {
503
503
  const A = this.__destroy_into_raw();
@@ -511,7 +511,7 @@ class P {
511
511
  var I = A.__destroy_into_raw();
512
512
  const g = C.session_applyInputs(this.__wbg_ptr, I);
513
513
  if (g[1])
514
- throw p(g[0]);
514
+ throw Z(g[0]);
515
515
  }
516
516
  /**
517
517
  * @returns {DesktopSize}
@@ -529,8 +529,8 @@ class P {
529
529
  var I = A.__destroy_into_raw();
530
530
  const g = C.session_invokeExtension(this.__wbg_ptr, I);
531
531
  if (g[2])
532
- throw p(g[1]);
533
- return p(g[0]);
532
+ throw Z(g[1]);
533
+ return Z(g[0]);
534
534
  }
535
535
  /**
536
536
  * @param {ClipboardData} content
@@ -542,7 +542,7 @@ class P {
542
542
  releaseAllInputs() {
543
543
  const A = C.session_releaseAllInputs(this.__wbg_ptr);
544
544
  if (A[1])
545
- throw p(A[0]);
545
+ throw Z(A[0]);
546
546
  }
547
547
  /**
548
548
  * @param {number} width
@@ -552,7 +552,7 @@ class P {
552
552
  * @param {number | null} [physical_height]
553
553
  */
554
554
  resize(A, I, g, B, E) {
555
- C.session_resize(this.__wbg_ptr, A, I, a(g) ? Number.MAX_SAFE_INTEGER : g >>> 0, a(B) ? Number.MAX_SAFE_INTEGER : B >>> 0, a(E) ? Number.MAX_SAFE_INTEGER : E >>> 0);
555
+ C.session_resize(this.__wbg_ptr, A, I, S(g) ? Number.MAX_SAFE_INTEGER : g >>> 0, S(B) ? Number.MAX_SAFE_INTEGER : B >>> 0, S(E) ? Number.MAX_SAFE_INTEGER : E >>> 0);
556
556
  }
557
557
  /**
558
558
  * @returns {Promise<SessionTerminationInfo>}
@@ -563,7 +563,7 @@ class P {
563
563
  shutdown() {
564
564
  const A = C.session_shutdown(this.__wbg_ptr);
565
565
  if (A[1])
566
- throw p(A[0]);
566
+ throw Z(A[0]);
567
567
  }
568
568
  /**
569
569
  * @returns {boolean}
@@ -580,13 +580,13 @@ class P {
580
580
  synchronizeLockKeys(A, I, g, B) {
581
581
  const E = C.session_synchronizeLockKeys(this.__wbg_ptr, A, I, g, B);
582
582
  if (E[1])
583
- throw p(E[0]);
583
+ throw Z(E[0]);
584
584
  }
585
585
  }
586
- Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
587
- class U {
586
+ Symbol.dispose && (r.prototype[Symbol.dispose] = r.prototype.free);
587
+ class J {
588
588
  static __wrap(A) {
589
- const I = Object.create(U.prototype);
589
+ const I = Object.create(J.prototype);
590
590
  return I.__wbg_ptr = A, IA.register(I, I.__wbg_ptr, I), I;
591
591
  }
592
592
  __destroy_into_raw() {
@@ -602,8 +602,8 @@ class U {
602
602
  * @returns {SessionBuilder}
603
603
  */
604
604
  authToken(A) {
605
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.sessionbuilder_authToken(this.__wbg_ptr, I, g);
606
- return U.__wrap(B);
605
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.sessionbuilder_authToken(this.__wbg_ptr, I, g);
606
+ return J.__wrap(B);
607
607
  }
608
608
  /**
609
609
  * @param {Function} callback
@@ -611,7 +611,7 @@ class U {
611
611
  */
612
612
  canvasResizedCallback(A) {
613
613
  const I = C.sessionbuilder_canvasResizedCallback(this.__wbg_ptr, A);
614
- return U.__wrap(I);
614
+ return J.__wrap(I);
615
615
  }
616
616
  /**
617
617
  * @returns {Promise<Session>}
@@ -631,15 +631,15 @@ class U {
631
631
  t(A, V);
632
632
  var I = A.__destroy_into_raw();
633
633
  const g = C.sessionbuilder_desktopSize(this.__wbg_ptr, I);
634
- return U.__wrap(g);
634
+ return J.__wrap(g);
635
635
  }
636
636
  /**
637
637
  * @param {string} destination
638
638
  * @returns {SessionBuilder}
639
639
  */
640
640
  destination(A) {
641
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.sessionbuilder_destination(this.__wbg_ptr, I, g);
642
- return U.__wrap(B);
641
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.sessionbuilder_destination(this.__wbg_ptr, I, g);
642
+ return J.__wrap(B);
643
643
  }
644
644
  /**
645
645
  * @param {Extension} ext
@@ -649,7 +649,7 @@ class U {
649
649
  t(A, k);
650
650
  var I = A.__destroy_into_raw();
651
651
  const g = C.sessionbuilder_extension(this.__wbg_ptr, I);
652
- return U.__wrap(g);
652
+ return J.__wrap(g);
653
653
  }
654
654
  /**
655
655
  * @param {Function} callback
@@ -657,23 +657,23 @@ class U {
657
657
  */
658
658
  forceClipboardUpdateCallback(A) {
659
659
  const I = C.sessionbuilder_forceClipboardUpdateCallback(this.__wbg_ptr, A);
660
- return U.__wrap(I);
660
+ return J.__wrap(I);
661
661
  }
662
662
  /**
663
663
  * @param {string} password
664
664
  * @returns {SessionBuilder}
665
665
  */
666
666
  password(A) {
667
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.sessionbuilder_password(this.__wbg_ptr, I, g);
668
- return U.__wrap(B);
667
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.sessionbuilder_password(this.__wbg_ptr, I, g);
668
+ return J.__wrap(B);
669
669
  }
670
670
  /**
671
671
  * @param {string} address
672
672
  * @returns {SessionBuilder}
673
673
  */
674
674
  proxyAddress(A) {
675
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.sessionbuilder_proxyAddress(this.__wbg_ptr, I, g);
676
- return U.__wrap(B);
675
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.sessionbuilder_proxyAddress(this.__wbg_ptr, I, g);
676
+ return J.__wrap(B);
677
677
  }
678
678
  /**
679
679
  * @param {Function} callback
@@ -681,7 +681,7 @@ class U {
681
681
  */
682
682
  remoteClipboardChangedCallback(A) {
683
683
  const I = C.sessionbuilder_remoteClipboardChangedCallback(this.__wbg_ptr, A);
684
- return U.__wrap(I);
684
+ return J.__wrap(I);
685
685
  }
686
686
  /**
687
687
  * @param {HTMLCanvasElement} canvas
@@ -689,15 +689,15 @@ class U {
689
689
  */
690
690
  renderCanvas(A) {
691
691
  const I = C.sessionbuilder_renderCanvas(this.__wbg_ptr, A);
692
- return U.__wrap(I);
692
+ return J.__wrap(I);
693
693
  }
694
694
  /**
695
695
  * @param {string} server_domain
696
696
  * @returns {SessionBuilder}
697
697
  */
698
698
  serverDomain(A) {
699
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.sessionbuilder_serverDomain(this.__wbg_ptr, I, g);
700
- return U.__wrap(B);
699
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.sessionbuilder_serverDomain(this.__wbg_ptr, I, g);
700
+ return J.__wrap(B);
701
701
  }
702
702
  /**
703
703
  * @param {Function} callback
@@ -705,7 +705,7 @@ class U {
705
705
  */
706
706
  setCursorStyleCallback(A) {
707
707
  const I = C.sessionbuilder_setCursorStyleCallback(this.__wbg_ptr, A);
708
- return U.__wrap(I);
708
+ return J.__wrap(I);
709
709
  }
710
710
  /**
711
711
  * @param {any} context
@@ -713,21 +713,21 @@ class U {
713
713
  */
714
714
  setCursorStyleCallbackContext(A) {
715
715
  const I = C.sessionbuilder_setCursorStyleCallbackContext(this.__wbg_ptr, A);
716
- return U.__wrap(I);
716
+ return J.__wrap(I);
717
717
  }
718
718
  /**
719
719
  * @param {string} username
720
720
  * @returns {SessionBuilder}
721
721
  */
722
722
  username(A) {
723
- const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F, B = C.sessionbuilder_username(this.__wbg_ptr, I, g);
724
- return U.__wrap(B);
723
+ const I = F(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R, B = C.sessionbuilder_username(this.__wbg_ptr, I, g);
724
+ return J.__wrap(B);
725
725
  }
726
726
  }
727
- Symbol.dispose && (U.prototype[Symbol.dispose] = U.prototype.free);
728
- class v {
727
+ Symbol.dispose && (J.prototype[Symbol.dispose] = J.prototype.free);
728
+ class P {
729
729
  static __wrap(A) {
730
- const I = Object.create(v.prototype);
730
+ const I = Object.create(P.prototype);
731
731
  return I.__wbg_ptr = A, MA.register(I, I.__wbg_ptr, I), I;
732
732
  }
733
733
  __destroy_into_raw() {
@@ -745,28 +745,28 @@ class v {
745
745
  let A, I;
746
746
  try {
747
747
  const g = C.sessionterminationinfo_reason(this.__wbg_ptr);
748
- return A = g[0], I = g[1], y(g[0], g[1]);
748
+ return A = g[0], I = g[1], Y(g[0], g[1]);
749
749
  } finally {
750
750
  C.__wbindgen_free(A, I, 1);
751
751
  }
752
752
  }
753
753
  }
754
- Symbol.dispose && (v.prototype[Symbol.dispose] = v.prototype.free);
755
- function cA(Q, A) {
756
- const I = R(Q, C.__wbindgen_malloc, C.__wbindgen_realloc), g = F;
754
+ Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
755
+ function hA(Q, A) {
756
+ const I = F(Q, C.__wbindgen_malloc, C.__wbindgen_realloc), g = R;
757
757
  C.setup(I, g, A);
758
758
  }
759
- function SA() {
759
+ function aA() {
760
760
  return {
761
761
  __proto__: null,
762
762
  "./ironrdp_web_bg.js": {
763
763
  __proto__: null,
764
764
  __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(A) {
765
765
  const I = A, g = typeof I == "boolean" ? I : void 0;
766
- return a(g) ? 16777215 : g ? 1 : 0;
766
+ return S(g) ? 16777215 : g ? 1 : 0;
767
767
  },
768
768
  __wbg___wbindgen_debug_string_c25d447a39f5578f: function(A, I) {
769
- const g = QA(I), B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
769
+ const g = QA(I), B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
770
770
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
771
771
  },
772
772
  __wbg___wbindgen_is_function_1ff95bcc5517c252: function(A) {
@@ -787,27 +787,27 @@ function SA() {
787
787
  },
788
788
  __wbg___wbindgen_number_get_394265ed1e1b84ee: function(A, I) {
789
789
  const g = I, B = typeof g == "number" ? g : void 0;
790
- M().setFloat64(A + 8, a(B) ? 0 : B, true), M().setInt32(A + 0, !a(B), true);
790
+ M().setFloat64(A + 8, S(B) ? 0 : B, true), M().setInt32(A + 0, !S(B), true);
791
791
  },
792
792
  __wbg___wbindgen_string_get_b0ca35b86a603356: function(A, I) {
793
793
  const g = I, B = typeof g == "string" ? g : void 0;
794
- var E = a(B) ? 0 : R(B, C.__wbindgen_malloc, C.__wbindgen_realloc), D = F;
794
+ var E = S(B) ? 0 : F(B, C.__wbindgen_malloc, C.__wbindgen_realloc), D = R;
795
795
  M().setInt32(A + 4, D, true), M().setInt32(A + 0, E, true);
796
796
  },
797
797
  __wbg___wbindgen_throw_344f42d3211c4765: function(A, I) {
798
- throw new Error(y(A, I));
798
+ throw new Error(Y(A, I));
799
799
  },
800
800
  __wbg__wbg_cb_unref_fffb441def202758: function(A) {
801
801
  A._wbg_cb_unref();
802
802
  },
803
803
  __wbg_addEventListener_520e749bbae24529: function() {
804
804
  return o(function(A, I, g, B, E) {
805
- __trdListen(A, y(I, g), B, E);
805
+ __trdListen(A, Y(I, g), B, E);
806
806
  }, arguments);
807
807
  },
808
808
  __wbg_addEventListener_d85450ee1320c989: function() {
809
809
  return o(function(A, I, g, B) {
810
- __trdListen(A, y(I, g), B);
810
+ __trdListen(A, Y(I, g), B);
811
811
  }, arguments);
812
812
  },
813
813
  __wbg_apply_23dd4d2439189415: function() {
@@ -877,7 +877,7 @@ function SA() {
877
877
  __wbg_error_a6fa202b58aa1cd3: function(A, I) {
878
878
  let g, B;
879
879
  try {
880
- g = A, B = I, console.error(y(A, I));
880
+ g = A, B = I, console.error(Y(A, I));
881
881
  } finally {
882
882
  C.__wbindgen_free(g, B, 1);
883
883
  }
@@ -890,23 +890,23 @@ function SA() {
890
890
  },
891
891
  __wbg_getContext_e79ddf6a9cb3cc76: function() {
892
892
  return o(function(A, I, g) {
893
- const B = A.getContext(y(I, g));
894
- return a(B) ? 0 : q(B);
893
+ const B = A.getContext(Y(I, g));
894
+ return S(B) ? 0 : q(B);
895
895
  }, arguments);
896
896
  },
897
897
  __wbg_getRandomValues_3f44b700395062e5: function() {
898
898
  return o(function(A, I) {
899
- globalThis.crypto.getRandomValues(j(A, I));
899
+ globalThis.crypto.getRandomValues(b(A, I));
900
900
  }, arguments);
901
901
  },
902
902
  __wbg_getRandomValues_bf16787eede473f5: function() {
903
903
  return o(function(A, I) {
904
- globalThis.crypto.getRandomValues(j(A, I));
904
+ globalThis.crypto.getRandomValues(b(A, I));
905
905
  }, arguments);
906
906
  },
907
907
  __wbg_getRandomValues_cc7f052a444bb2ce: function() {
908
908
  return o(function(A, I) {
909
- globalThis.crypto.getRandomValues(j(A, I));
909
+ globalThis.crypto.getRandomValues(b(A, I));
910
910
  }, arguments);
911
911
  },
912
912
  __wbg_getTime_d6f070c088c9b5ed: function(A) {
@@ -993,7 +993,7 @@ function SA() {
993
993
  return I;
994
994
  },
995
995
  __wbg_ironerror_new: function(A) {
996
- return r.__wrap(A);
996
+ return z.__wrap(A);
997
997
  },
998
998
  __wbg_isArray_0677c962b281d01a: function(A) {
999
999
  return Array.isArray(A);
@@ -1015,7 +1015,7 @@ function SA() {
1015
1015
  },
1016
1016
  __wbg_new_08cb2fa678b17a48: function() {
1017
1017
  return o(function(A, I) {
1018
- return new URL(y(A, I));
1018
+ return new URL(Y(A, I));
1019
1019
  }, arguments);
1020
1020
  },
1021
1021
  __wbg_new_0_3da9e97f24fc69be: function() {
@@ -1034,7 +1034,7 @@ function SA() {
1034
1034
  },
1035
1035
  __wbg_new_bf8729ffe10e9ee7: function() {
1036
1036
  return o(function(A, I) {
1037
- return new WebSocket(y(A, I));
1037
+ return new WebSocket(Y(A, I));
1038
1038
  }, arguments);
1039
1039
  },
1040
1040
  __wbg_new_cd45aabdf6073e84: function(A) {
@@ -1049,10 +1049,10 @@ function SA() {
1049
1049
  }, arguments);
1050
1050
  },
1051
1051
  __wbg_new_from_slice_7568ba55b4a7e81f: function(A, I) {
1052
- return new Uint32Array(lA(A, I));
1052
+ return new Uint32Array(WA(A, I));
1053
1053
  },
1054
1054
  __wbg_new_from_slice_77cdfb7977362f3c: function(A, I) {
1055
- return new Uint8Array(j(A, I));
1055
+ return new Uint8Array(b(A, I));
1056
1056
  },
1057
1057
  __wbg_new_typed_1824d93f294193e5: function(A, I) {
1058
1058
  try {
@@ -1060,7 +1060,7 @@ function SA() {
1060
1060
  const w = g.a;
1061
1061
  g.a = 0;
1062
1062
  try {
1063
- return pA(w, g.b, D, i);
1063
+ return ZA(w, g.b, D, i);
1064
1064
  } finally {
1065
1065
  g.a = w;
1066
1066
  }
@@ -1072,17 +1072,17 @@ function SA() {
1072
1072
  },
1073
1073
  __wbg_new_with_event_init_dict_7b62c0f9fb241877: function() {
1074
1074
  return o(function(A, I, g) {
1075
- return new CloseEvent(y(A, I), g);
1075
+ return new CloseEvent(Y(A, I), g);
1076
1076
  }, arguments);
1077
1077
  },
1078
1078
  __wbg_new_with_str_54bc0f9c32770e1e: function() {
1079
1079
  return o(function(A, I) {
1080
- return new Request(y(A, I));
1080
+ return new Request(Y(A, I));
1081
1081
  }, arguments);
1082
1082
  },
1083
1083
  __wbg_new_with_str_and_init_d95cbe11ce28e65e: function() {
1084
1084
  return o(function(A, I, g) {
1085
- return new Request(y(A, I), g);
1085
+ return new Request(Y(A, I), g);
1086
1086
  }, arguments);
1087
1087
  },
1088
1088
  __wbg_new_with_u8_array_sequence_bdda73b0f202f149: function() {
@@ -1112,13 +1112,13 @@ function SA() {
1112
1112
  },
1113
1113
  __wbg_performance_3ef602e13d6c3b56: function(A) {
1114
1114
  const I = A.performance;
1115
- return a(I) ? 0 : q(I);
1115
+ return S(I) ? 0 : q(I);
1116
1116
  },
1117
1117
  __wbg_performance_3fcf6e32a7e1ed0a: function(A) {
1118
1118
  return A.performance;
1119
1119
  },
1120
1120
  __wbg_prototypesetcall_4770620bbe4688a0: function(A, I, g) {
1121
- Uint8Array.prototype.set.call(j(A, I), g);
1121
+ Uint8Array.prototype.set.call(b(A, I), g);
1122
1122
  },
1123
1123
  __wbg_push_d2ae3af0c1217ae6: function(A, I) {
1124
1124
  return A.push(I);
@@ -1138,19 +1138,19 @@ function SA() {
1138
1138
  return A.readyState;
1139
1139
  },
1140
1140
  __wbg_reason_5dc8e429d537d6a9: function(A, I) {
1141
- const g = I.reason, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
1141
+ const g = I.reason, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
1142
1142
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
1143
1143
  },
1144
1144
  __wbg_removeEventListener_a3f23c70077bdcc1: function() {
1145
1145
  return o(function(A, I, g, B) {
1146
- __trdUnlisten(A, y(I, g), B);
1146
+ __trdUnlisten(A, Y(I, g), B);
1147
1147
  }, arguments);
1148
1148
  },
1149
1149
  __wbg_resolve_2191a4dfe481c25b: function(A) {
1150
1150
  return Promise.resolve(A);
1151
1151
  },
1152
1152
  __wbg_search_c905fb82fd20bc6b: function(A, I) {
1153
- const g = I.search, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
1153
+ const g = I.search, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
1154
1154
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
1155
1155
  },
1156
1156
  __wbg_send_1733c45567a373ff: function() {
@@ -1160,14 +1160,14 @@ function SA() {
1160
1160
  },
1161
1161
  __wbg_send_df98dd5ede9b3f4d: function() {
1162
1162
  return o(function(A, I, g) {
1163
- A.send(y(I, g));
1163
+ A.send(Y(I, g));
1164
1164
  }, arguments);
1165
1165
  },
1166
1166
  __wbg_session_new: function(A) {
1167
- return P.__wrap(A);
1167
+ return r.__wrap(A);
1168
1168
  },
1169
1169
  __wbg_sessionterminationinfo_new: function(A) {
1170
- return v.__wrap(A);
1170
+ return P.__wrap(A);
1171
1171
  },
1172
1172
  __wbg_setInterval_cbf1c35c6a692d37: function() {
1173
1173
  return o(function(A, I) {
@@ -1181,7 +1181,7 @@ function SA() {
1181
1181
  },
1182
1182
  __wbg_set_0de9c62c23d04ad5: function() {
1183
1183
  return o(function(A, I, g, B, E) {
1184
- A.set(y(I, g), y(B, E));
1184
+ A.set(Y(I, g), Y(B, E));
1185
1185
  }, arguments);
1186
1186
  },
1187
1187
  __wbg_set_8535240470bf2500: function() {
@@ -1205,42 +1205,42 @@ function SA() {
1205
1205
  A.height = I >>> 0;
1206
1206
  },
1207
1207
  __wbg_set_method_5532d59b92d76467: function(A, I, g) {
1208
- A.method = y(I, g);
1208
+ A.method = Y(I, g);
1209
1209
  },
1210
1210
  __wbg_set_once_51a9fb6b8af8a72b: function(A, I) {
1211
1211
  A.once = I !== 0;
1212
1212
  },
1213
1213
  __wbg_set_reason_18dc06ea0d60243b: function(A, I, g) {
1214
- A.reason = y(I, g);
1214
+ A.reason = Y(I, g);
1215
1215
  },
1216
1216
  __wbg_set_search_f9700de567764208: function(A, I, g) {
1217
- A.search = y(I, g);
1217
+ A.search = Y(I, g);
1218
1218
  },
1219
1219
  __wbg_set_width_8e30d010cd66830d: function(A, I) {
1220
1220
  A.width = I >>> 0;
1221
1221
  },
1222
1222
  __wbg_stack_3b0d974bbf31e44f: function(A, I) {
1223
- const g = I.stack, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
1223
+ const g = I.stack, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
1224
1224
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
1225
1225
  },
1226
1226
  __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
1227
1227
  const A = typeof global > "u" ? null : global;
1228
- return a(A) ? 0 : q(A);
1228
+ return S(A) ? 0 : q(A);
1229
1229
  },
1230
1230
  __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
1231
1231
  const A = typeof globalThis > "u" ? null : globalThis;
1232
- return a(A) ? 0 : q(A);
1232
+ return S(A) ? 0 : q(A);
1233
1233
  },
1234
1234
  __wbg_static_accessor_SELF_146583524fe1469b: function() {
1235
1235
  const A = typeof self > "u" ? null : self;
1236
- return a(A) ? 0 : q(A);
1236
+ return S(A) ? 0 : q(A);
1237
1237
  },
1238
1238
  __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
1239
1239
  const A = typeof window > "u" ? null : window;
1240
- return a(A) ? 0 : q(A);
1240
+ return S(A) ? 0 : q(A);
1241
1241
  },
1242
1242
  __wbg_statusText_9f08c32741a99815: function(A, I) {
1243
- const g = I.statusText, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
1243
+ const g = I.statusText, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
1244
1244
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
1245
1245
  },
1246
1246
  __wbg_status_c45b3b9b3033184a: function(A) {
@@ -1259,12 +1259,12 @@ function SA() {
1259
1259
  return A.toString();
1260
1260
  },
1261
1261
  __wbg_url_f6cd241d61f89b82: function(A, I) {
1262
- const g = I.url, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
1262
+ const g = I.url, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
1263
1263
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
1264
1264
  },
1265
1265
  __wbg_userAgent_0558f0ac642f7771: function() {
1266
1266
  return o(function(A, I) {
1267
- const g = I.userAgent, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = F;
1267
+ const g = I.userAgent, B = F(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = R;
1268
1268
  M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
1269
1269
  }, arguments);
1270
1270
  },
@@ -1278,7 +1278,7 @@ function SA() {
1278
1278
  return A.width;
1279
1279
  },
1280
1280
  __wbindgen_cast_0000000000000001: function(A, I) {
1281
- return s(A, I, ZA);
1281
+ return s(A, I, pA);
1282
1282
  },
1283
1283
  __wbindgen_cast_0000000000000002: function(A, I) {
1284
1284
  return s(A, I, LA);
@@ -1293,7 +1293,7 @@ function SA() {
1293
1293
  return s(A, I, dA);
1294
1294
  },
1295
1295
  __wbindgen_cast_0000000000000006: function(A, I) {
1296
- return s(A, I, aA);
1296
+ return s(A, I, SA);
1297
1297
  },
1298
1298
  __wbindgen_cast_0000000000000007: function(A, I) {
1299
1299
  return s(A, I, HA);
@@ -1302,7 +1302,7 @@ function SA() {
1302
1302
  return A;
1303
1303
  },
1304
1304
  __wbindgen_cast_0000000000000009: function(A, I) {
1305
- return y(A, I);
1305
+ return Y(A, I);
1306
1306
  },
1307
1307
  __wbindgen_init_externref_table: function() {
1308
1308
  const A = C.__wbindgen_externrefs, I = A.grow(4);
@@ -1311,7 +1311,7 @@ function SA() {
1311
1311
  }
1312
1312
  };
1313
1313
  }
1314
- function aA(Q, A) {
1314
+ function SA(Q, A) {
1315
1315
  C.wasm_bindgen__convert__closures_____invoke__h38edb88495230029(Q, A);
1316
1316
  }
1317
1317
  function HA(Q, A) {
@@ -1326,12 +1326,12 @@ function sA(Q, A, I) {
1326
1326
  function qA(Q, A, I) {
1327
1327
  C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69_3(Q, A, I);
1328
1328
  }
1329
- function ZA(Q, A, I) {
1329
+ function pA(Q, A, I) {
1330
1330
  const g = C.wasm_bindgen__convert__closures_____invoke__hfbb046a5343bcac9(Q, A, I);
1331
1331
  if (g[1])
1332
- throw p(g[0]);
1332
+ throw Z(g[0]);
1333
1333
  }
1334
- function pA(Q, A, I, g) {
1334
+ function ZA(Q, A, I, g) {
1335
1335
  C.wasm_bindgen__convert__closures_____invoke__h4cc111f3c9bb2945(Q, A, I, g);
1336
1336
  }
1337
1337
  function dA(Q, A, I, g, B) {
@@ -1351,11 +1351,11 @@ const VA = ["blob", "arraybuffer"], $ = typeof FinalizationRegistry > "u" ? { re
1351
1351
  }, unregister: () => {
1352
1352
  } } : new FinalizationRegistry((Q) => C.__wbg_inputtransaction_free(Q, 1)), kA = typeof FinalizationRegistry > "u" ? { register: () => {
1353
1353
  }, unregister: () => {
1354
- } } : new FinalizationRegistry((Q) => C.__wbg_ironerror_free(Q, 1)), FA = typeof FinalizationRegistry > "u" ? { register: () => {
1354
+ } } : new FinalizationRegistry((Q) => C.__wbg_ironerror_free(Q, 1)), RA = typeof FinalizationRegistry > "u" ? { register: () => {
1355
1355
  }, unregister: () => {
1356
- } } : new FinalizationRegistry((Q) => C.__wbg_rdcleanpathdetails_free(Q, 1)), RA = typeof FinalizationRegistry > "u" ? { register: () => {
1356
+ } } : new FinalizationRegistry((Q) => C.__wbg_rdcleanpathdetails_free(Q, 1)), FA = typeof FinalizationRegistry > "u" ? { register: () => {
1357
1357
  }, unregister: () => {
1358
- } } : new FinalizationRegistry((Q) => C.__wbg_rdpfile_free(Q, 1)), yA = typeof FinalizationRegistry > "u" ? { register: () => {
1358
+ } } : new FinalizationRegistry((Q) => C.__wbg_rdpfile_free(Q, 1)), YA = typeof FinalizationRegistry > "u" ? { register: () => {
1359
1359
  }, unregister: () => {
1360
1360
  } } : new FinalizationRegistry((Q) => C.__wbg_session_free(Q, 1)), IA = typeof FinalizationRegistry > "u" ? { register: () => {
1361
1361
  }, unregister: () => {
@@ -1366,14 +1366,14 @@ function q(Q) {
1366
1366
  const A = C.__externref_table_alloc();
1367
1367
  return C.__wbindgen_externrefs.set(A, Q), A;
1368
1368
  }
1369
- function YA(Q) {
1369
+ function yA(Q) {
1370
1370
  if (typeof Q == "number" && (Q >= 1114112 || Q >= 55296 && Q < 57344)) throw new Error(`expected a valid Unicode scalar value, found ${Q}`);
1371
1371
  }
1372
1372
  function t(Q, A) {
1373
1373
  if (!(Q instanceof A))
1374
1374
  throw new Error(`expected instance of ${A.name}`);
1375
1375
  }
1376
- const UA = typeof FinalizationRegistry > "u" ? { register: () => {
1376
+ const JA = typeof FinalizationRegistry > "u" ? { register: () => {
1377
1377
  }, unregister: () => {
1378
1378
  } } : new FinalizationRegistry((Q) => C.__wbindgen_destroy_closure(Q.a, Q.b));
1379
1379
  function QA(Q) {
@@ -1413,27 +1413,27 @@ function QA(Q) {
1413
1413
  return Q instanceof Error ? `${Q.name}: ${Q.message}
1414
1414
  ${Q.stack}` : g;
1415
1415
  }
1416
- function WA(Q, A) {
1416
+ function lA(Q, A) {
1417
1417
  Q = Q >>> 0;
1418
1418
  const I = M(), g = [];
1419
1419
  for (let B = Q; B < Q + 4 * A; B += 4)
1420
1420
  g.push(C.__wbindgen_externrefs.get(I.getUint32(B, true)));
1421
1421
  return C.__externref_drop_slice(Q, A), g;
1422
1422
  }
1423
- function lA(Q, A) {
1423
+ function WA(Q, A) {
1424
1424
  return Q = Q >>> 0, xA().subarray(Q / 4, Q / 4 + A);
1425
1425
  }
1426
- function j(Q, A) {
1426
+ function b(Q, A) {
1427
1427
  return Q = Q >>> 0, x().subarray(Q / 1, Q / 1 + A);
1428
1428
  }
1429
1429
  function tA(Q, A) {
1430
1430
  return Q = Q >>> 0, OA().subarray(Q / 1, Q / 1 + A);
1431
1431
  }
1432
- let Z = null;
1432
+ let p = null;
1433
1433
  function M() {
1434
- return (Z === null || Z.buffer.detached === true || Z.buffer.detached === void 0 && Z.buffer !== C.memory.buffer) && (Z = new DataView(C.memory.buffer)), Z;
1434
+ return (p === null || p.buffer.detached === true || p.buffer.detached === void 0 && p.buffer !== C.memory.buffer) && (p = new DataView(C.memory.buffer)), p;
1435
1435
  }
1436
- function y(Q, A) {
1436
+ function Y(Q, A) {
1437
1437
  return mA(Q >>> 0, A);
1438
1438
  }
1439
1439
  let m = null;
@@ -1456,7 +1456,7 @@ function o(Q, A) {
1456
1456
  C.__wbindgen_exn_store(g);
1457
1457
  }
1458
1458
  }
1459
- function a(Q) {
1459
+ function S(Q) {
1460
1460
  return Q == null;
1461
1461
  }
1462
1462
  function s(Q, A, I) {
@@ -1471,17 +1471,17 @@ function s(Q, A, I) {
1471
1471
  }
1472
1472
  };
1473
1473
  return B._wbg_cb_unref = () => {
1474
- --g.cnt === 0 && (C.__wbindgen_destroy_closure(g.a, g.b), g.a = 0, UA.unregister(g));
1475
- }, UA.register(B, g, g), B;
1474
+ --g.cnt === 0 && (C.__wbindgen_destroy_closure(g.a, g.b), g.a = 0, JA.unregister(g));
1475
+ }, JA.register(B, g, g), B;
1476
1476
  }
1477
- function jA(Q, A) {
1477
+ function bA(Q, A) {
1478
1478
  const I = A(Q.length * 1, 1) >>> 0;
1479
- return x().set(Q, I / 1), F = Q.length, I;
1479
+ return x().set(Q, I / 1), R = Q.length, I;
1480
1480
  }
1481
- function R(Q, A, I) {
1481
+ function F(Q, A, I) {
1482
1482
  if (I === void 0) {
1483
1483
  const i = X.encode(Q), w = A(i.length, 1) >>> 0;
1484
- return x().subarray(w, w + i.length).set(i), F = i.length, w;
1484
+ return x().subarray(w, w + i.length).set(i), R = i.length, w;
1485
1485
  }
1486
1486
  let g = Q.length, B = A(g, 1) >>> 0;
1487
1487
  const E = x();
@@ -1496,18 +1496,18 @@ function R(Q, A, I) {
1496
1496
  const i = x().subarray(B + D, B + g), w = X.encodeInto(Q, i);
1497
1497
  D += w.written, B = I(B, g, D, 1) >>> 0;
1498
1498
  }
1499
- return F = D, B;
1499
+ return R = D, B;
1500
1500
  }
1501
- function p(Q) {
1501
+ function Z(Q) {
1502
1502
  const A = C.__wbindgen_externrefs.get(Q);
1503
1503
  return C.__externref_table_dealloc(Q), A;
1504
1504
  }
1505
1505
  let u = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
1506
1506
  u.decode();
1507
- const bA = 2146435072;
1507
+ const jA = 2146435072;
1508
1508
  let gA = 0;
1509
1509
  function mA(Q, A) {
1510
- return gA += A, gA >= bA && (u = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }), u.decode(), gA = A), u.decode(x().subarray(Q, Q + A));
1510
+ return gA += A, gA >= jA && (u = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }), u.decode(), gA = A), u.decode(x().subarray(Q, Q + A));
1511
1511
  }
1512
1512
  const X = new TextEncoder();
1513
1513
  "encodeInto" in X || (X.encodeInto = function(Q, A) {
@@ -1517,9 +1517,9 @@ const X = new TextEncoder();
1517
1517
  written: I.length
1518
1518
  };
1519
1519
  });
1520
- let F = 0, C;
1520
+ let R = 0, C;
1521
1521
  function TA(Q, A) {
1522
- return C = __trdWatchExports(Q.exports), Z = null, m = null, T = null, f = null, C.__wbindgen_start(), C;
1522
+ return C = __trdWatchExports(Q.exports), p = null, m = null, T = null, f = null, C.__wbindgen_start(), C;
1523
1523
  }
1524
1524
  async function fA(Q, A) {
1525
1525
  if (typeof Response == "function" && Q instanceof Response) {
@@ -1551,13 +1551,13 @@ async function fA(Q, A) {
1551
1551
  async function XA(Q) {
1552
1552
  if (C !== void 0) return C;
1553
1553
  Q !== void 0 && (Object.getPrototypeOf(Q) === Object.prototype ? { module_or_path: Q } = Q : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), Q === void 0 && (Q = new URL("ironrdp_web_bg.wasm", import.meta.url));
1554
- const A = SA();
1554
+ const A = aA();
1555
1555
  (typeof Q == "string" || typeof Request == "function" && Q instanceof Request || typeof URL == "function" && Q instanceof URL) && (Q = fetch(Q));
1556
1556
  const { instance: I, module: g } = await fA(await Q, A);
1557
1557
  return TA(I);
1558
1558
  }
1559
1559
  const nA = "avc1.640033";
1560
- function JA() {
1560
+ function KA() {
1561
1561
  return {
1562
1562
  codec: nA,
1563
1563
  optimizeForLatency: true,
@@ -1569,12 +1569,12 @@ async function EI() {
1569
1569
  if (typeof VideoDecoder > "u" || typeof EncodedVideoChunk > "u")
1570
1570
  return false;
1571
1571
  try {
1572
- return (await VideoDecoder.isConfigSupported(JA())).supported === true;
1572
+ return (await VideoDecoder.isConfigSupported(KA())).supported === true;
1573
1573
  } catch {
1574
1574
  return false;
1575
1575
  }
1576
1576
  }
1577
- const _Y = class _Y {
1577
+ const _y = class _y {
1578
1578
  constructor(A = {}) {
1579
1579
  __publicField(this, "stats", {
1580
1580
  frames: 0,
@@ -1616,9 +1616,9 @@ const _Y = class _Y {
1616
1616
  __publicField(this, "watchdog", null);
1617
1617
  __publicField(this, "canvas", null);
1618
1618
  __publicField(this, "closed", false);
1619
- if (this.options = A, this.maxDecoders = A.maxDecoders ?? _Y.MAX_DECODERS, !Number.isInteger(this.maxDecoders) || this.maxDecoders < 1 || this.maxDecoders > _Y.MAX_DECODERS)
1619
+ if (this.options = A, this.maxDecoders = A.maxDecoders ?? _y.MAX_DECODERS, !Number.isInteger(this.maxDecoders) || this.maxDecoders < 1 || this.maxDecoders > _y.MAX_DECODERS)
1620
1620
  throw new RangeError("maxDecoders must be an integer from 1 to 32");
1621
- this.stallMs = A.stallMs ?? 3e3, this.now = A.now ?? (() => performance.now()), this.opens = new hA(_Y.SESSION_OPENS, this.now());
1621
+ this.stallMs = A.stallMs ?? 3e3, this.now = A.now ?? (() => performance.now()), this.opens = new UA(_y.SESSION_OPENS, this.now());
1622
1622
  }
1623
1623
  decode(A, I) {
1624
1624
  if (this.failed !== null || this.closed) {
@@ -1644,13 +1644,13 @@ const _Y = class _Y {
1644
1644
  g = this.open(A.surfaceId);
1645
1645
  }
1646
1646
  const B = A.data.byteLength;
1647
- if (g.pending.size >= _Y.MAX_PENDING_FRAMES) {
1648
- this.fail(`more than ${_Y.MAX_PENDING_FRAMES} frames in a decoder`), I(A.id, null, this.failed ?? void 0);
1647
+ if (g.pending.size >= _y.MAX_PENDING_FRAMES) {
1648
+ this.fail(`more than ${_y.MAX_PENDING_FRAMES} frames in a decoder`), I(A.id, null, this.failed ?? void 0);
1649
1649
  return;
1650
1650
  }
1651
- if (this.pendingBytes + B > _Y.MAX_PENDING_BYTES) {
1651
+ if (this.pendingBytes + B > _y.MAX_PENDING_BYTES) {
1652
1652
  this.fail(
1653
- `more than ${_Y.MAX_PENDING_BYTES / (1024 * 1024)} MiB of H.264 in the decoders`
1653
+ `more than ${_y.MAX_PENDING_BYTES / (1024 * 1024)} MiB of H.264 in the decoders`
1654
1654
  ), I(A.id, null, this.failed ?? void 0);
1655
1655
  return;
1656
1656
  }
@@ -1672,7 +1672,7 @@ const _Y = class _Y {
1672
1672
  close() {
1673
1673
  this.closed = true, this.stopWatchdog();
1674
1674
  for (const A of [...this.surfaces.values(), ...this.retiring])
1675
- e(A.decoder);
1675
+ v(A.decoder);
1676
1676
  this.surfaces.clear(), this.retiring.clear(), this.waitingForKey.clear(), this.stats.pending = 0, this.pendingBytes = 0, this.clearReadbacks(), this.canvas = null;
1677
1677
  }
1678
1678
  /** Releases streams as soon as their surfaces end, including when no later H.264 frame arrives. */
@@ -1688,17 +1688,17 @@ const _Y = class _Y {
1688
1688
  const I = this.now();
1689
1689
  let g = this.surfaceOpens.get(A);
1690
1690
  if (g === void 0) {
1691
- if (this.surfaceOpens.size >= _Y.MAX_DECODERS)
1691
+ if (this.surfaceOpens.size >= _y.MAX_DECODERS)
1692
1692
  for (const [B, E] of this.surfaceOpens)
1693
1693
  E.rested(I) && this.surfaceOpens.delete(B);
1694
- g = new hA(_Y.SURFACE_OPENS, I), this.surfaceOpens.set(A, g);
1694
+ g = new UA(_y.SURFACE_OPENS, I), this.surfaceOpens.set(A, g);
1695
1695
  }
1696
1696
  if (!g.take(I)) {
1697
- const { inARow: B, perSecond: E } = _Y.SURFACE_OPENS;
1697
+ const { inARow: B, perSecond: E } = _y.SURFACE_OPENS;
1698
1698
  return `H.264 decoders opened for surface ${A} faster than ${B} in a row and ${E} a second`;
1699
1699
  }
1700
1700
  if (!this.opens.take(I)) {
1701
- const { inARow: B, perSecond: E } = _Y.SESSION_OPENS;
1701
+ const { inARow: B, perSecond: E } = _y.SESSION_OPENS;
1702
1702
  return `H.264 decoders opened faster than ${B} in a row and ${E} a second`;
1703
1703
  }
1704
1704
  return null;
@@ -1713,7 +1713,7 @@ const _Y = class _Y {
1713
1713
  }),
1714
1714
  pending: /* @__PURE__ */ new Map()
1715
1715
  };
1716
- return I.decoder.configure(JA()), this.surfaces.set(A, I), I;
1716
+ return I.decoder.configure(KA()), this.surfaces.set(A, I), I;
1717
1717
  }
1718
1718
  /** The server is done with a surface: its decoder closes once the frames given to it are out. */
1719
1719
  retire(A) {
@@ -1721,7 +1721,7 @@ const _Y = class _Y {
1721
1721
  if (I === void 0)
1722
1722
  return;
1723
1723
  if (this.surfaces.delete(A), I.pending.size === 0) {
1724
- e(I.decoder);
1724
+ v(I.decoder);
1725
1725
  return;
1726
1726
  }
1727
1727
  this.retiring.add(I);
@@ -1729,7 +1729,7 @@ const _Y = class _Y {
1729
1729
  if (this.retiring.delete(I)) {
1730
1730
  for (const B of [...I.pending.values()])
1731
1731
  this.settle(I, B), this.stats.dropped++, B.done(B.frame.id, null);
1732
- e(I.decoder);
1732
+ v(I.decoder);
1733
1733
  }
1734
1734
  };
1735
1735
  try {
@@ -1745,7 +1745,7 @@ const _Y = class _Y {
1745
1745
  return;
1746
1746
  }
1747
1747
  const E = I.codedWidth * I.codedHeight;
1748
- if (!Number.isSafeInteger(E) || E <= 0 || E > _Y.MAX_PICTURE_PIXELS) {
1748
+ if (!Number.isSafeInteger(E) || E <= 0 || E > _y.MAX_PICTURE_PIXELS) {
1749
1749
  I.close(), this.fail("decoded H.264 picture exceeds the pixel budget");
1750
1750
  return;
1751
1751
  }
@@ -1756,17 +1756,17 @@ const _Y = class _Y {
1756
1756
  }
1757
1757
  this.settle(A, B);
1758
1758
  const D = B.frame.regions.reduce((w, G) => w + (G.right - G.left) * (G.bottom - G.top) * 4, 0);
1759
- if (this.readbackPictures.size >= _Y.MAX_READBACKS) {
1760
- I.close(), this.fail(`more than ${_Y.MAX_READBACKS} pictures being read back`), B.done(g, null, this.failed ?? void 0);
1759
+ if (this.readbackPictures.size >= _y.MAX_READBACKS) {
1760
+ I.close(), this.fail(`more than ${_y.MAX_READBACKS} pictures being read back`), B.done(g, null, this.failed ?? void 0);
1761
1761
  return;
1762
1762
  }
1763
- if (this.readbackBytes + D > _Y.MAX_READBACK_BYTES) {
1763
+ if (this.readbackBytes + D > _y.MAX_READBACK_BYTES) {
1764
1764
  I.close(), this.fail(
1765
- `more than ${_Y.MAX_READBACK_BYTES / (1024 * 1024)} MiB of pictures being read back`
1765
+ `more than ${_y.MAX_READBACK_BYTES / (1024 * 1024)} MiB of pictures being read back`
1766
1766
  ), B.done(g, null, this.failed ?? void 0);
1767
1767
  return;
1768
1768
  }
1769
- if (this.readbackPixels + E > _Y.MAX_READBACK_PIXELS) {
1769
+ if (this.readbackPixels + E > _y.MAX_READBACK_PIXELS) {
1770
1770
  I.close(), this.fail("more than 128 Mi pixels of decoded pictures being read back"), B.done(g, null, this.failed ?? void 0);
1771
1771
  return;
1772
1772
  }
@@ -1806,17 +1806,17 @@ const _Y = class _Y {
1806
1806
  const w = i.reduce((N, L) => N + L.width * L.height * 4, 0), G = new Uint8Array(w);
1807
1807
  if (i.length === 0)
1808
1808
  return G;
1809
- let [S, h, K, W] = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1809
+ let [a, U, c, l] = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
1810
1810
  for (const N of i)
1811
- S = Math.min(S, N.x), h = Math.min(h, N.y), K = Math.max(K, N.x + N.width), W = Math.max(W, N.y + N.height);
1812
- const H = { x: S, y: h, width: K - S, height: W - h };
1811
+ a = Math.min(a, N.x), U = Math.min(U, N.y), c = Math.max(c, N.x + N.width), l = Math.max(l, N.y + N.height);
1812
+ const H = { x: a, y: U, width: c - a, height: l - U };
1813
1813
  if (i.length === 1)
1814
1814
  return await this.readBox(A, g, H, G), G;
1815
- if (H.width * H.height * 4 > w * _Y.BOX_WASTE) {
1815
+ if (H.width * H.height * 4 > w * _y.BOX_WASTE) {
1816
1816
  let N = 0;
1817
1817
  for (const L of i) {
1818
- const l = L.width * L.height * 4;
1819
- await this.readBox(A, g, L, G.subarray(N, N + l)), N += l;
1818
+ const W = L.width * L.height * 4;
1819
+ await this.readBox(A, g, L, G.subarray(N, N + W)), N += W;
1820
1820
  }
1821
1821
  return G;
1822
1822
  }
@@ -1825,8 +1825,8 @@ const _Y = class _Y {
1825
1825
  let EA = 0;
1826
1826
  for (const N of i) {
1827
1827
  const L = N.width * 4;
1828
- for (let l = 0; l < N.height; l++) {
1829
- const DA = ((N.y - H.y + l) * H.width + (N.x - H.x)) * 4;
1828
+ for (let W = 0; W < N.height; W++) {
1829
+ const DA = ((N.y - H.y + W) * H.width + (N.x - H.x)) * 4;
1830
1830
  G.set(CA.subarray(DA, DA + L), EA), EA += L;
1831
1831
  }
1832
1832
  }
@@ -1889,7 +1889,7 @@ const _Y = class _Y {
1889
1889
  this.failed = A, this.stopWatchdog();
1890
1890
  const I = [...this.surfaces.values(), ...this.retiring], g = I.flatMap((B) => [...B.pending.values()]);
1891
1891
  for (const B of I)
1892
- e(B.decoder);
1892
+ v(B.decoder);
1893
1893
  this.surfaces.clear(), this.retiring.clear(), this.waitingForKey.clear(), this.stats.pending = 0, this.pendingBytes = 0, this.clearReadbacks(), this.canvas = null, (_b = (_a = this.options).onFailure) == null ? void 0 : _b.call(_a, A);
1894
1894
  for (const { frame: B, done: E } of g)
1895
1895
  E(B.id, null, A);
@@ -1900,7 +1900,7 @@ const _Y = class _Y {
1900
1900
  * (MS-RDPBCGR 2.2.1.3.6); after a reset, the decoders of the surfaces it destroyed may still be finishing their
1901
1901
  * frames while those of the new ones start.
1902
1902
  */
1903
- __publicField(_Y, "MAX_DECODERS", 32);
1903
+ __publicField(_y, "MAX_DECODERS", 32);
1904
1904
  /**
1905
1905
  * How fast one surface's decoders may open: 16 in a row, then 4 a second. A decoder opens for a surface's first
1906
1906
  * frame, and again for its first frame after its stream ended (the surface deleted, created again or destroyed by
@@ -1910,24 +1910,24 @@ __publicField(_Y, "MAX_DECODERS", 32);
1910
1910
  * had that done for every frame: 32,768 times for one message of 90 KB on the wire, which froze the page, and
1911
1911
  * every session in it, for 1.4 s, message after message.
1912
1912
  */
1913
- __publicField(_Y, "SURFACE_OPENS", { inARow: 16, perSecond: 4 });
1913
+ __publicField(_y, "SURFACE_OPENS", { inARow: 16, perSecond: 4 });
1914
1914
  /**
1915
1915
  * How fast decoders may open for all surfaces together: 128 in a row, then 32 a second. That is each of 16
1916
1916
  * monitors (MS-RDPBCGR 2.2.1.3.6) resized eight times in a row, then twice a second, and opening that many takes
1917
1917
  * the page's thread under 6 ms, then under 1.5 ms a second.
1918
1918
  */
1919
- __publicField(_Y, "SESSION_OPENS", { inARow: 128, perSecond: 32 });
1919
+ __publicField(_y, "SESSION_OPENS", { inARow: 128, perSecond: 32 });
1920
1920
  /**
1921
1921
  * The most frames one decoder may hold. A decoder keeps up with its stream, so frames wait in it about as long as
1922
1922
  * one takes to decode, and the server stops at its unacknowledged frames: 256 is over two seconds of 60 Hz AVC444
1923
1923
  * (two access units a frame), and a frame that waits longer than `stallMs` (3 s) fails the decoder anyway.
1924
1924
  */
1925
- __publicField(_Y, "MAX_PENDING_FRAMES", 256);
1925
+ __publicField(_y, "MAX_PENDING_FRAMES", 256);
1926
1926
  /**
1927
1927
  * The most bytes of H.264 the decoders may hold at once: over a second at the highest bitrate any H.264 level
1928
1928
  * allows (level 6.2, High profile: 1,000 Mbit/s), where servers send a few to tens of Mbit/s.
1929
1929
  */
1930
- __publicField(_Y, "MAX_PENDING_BYTES", 128 * 1024 * 1024);
1930
+ __publicField(_y, "MAX_PENDING_BYTES", 128 * 1024 * 1024);
1931
1931
  /**
1932
1932
  * The most bytes the pictures being read back may be read into at once: the RGBA of their frames' regions. A
1933
1933
  * picture is read back as it comes out, while its decoder goes on, so readbacks overlap when pictures come out
@@ -1935,15 +1935,15 @@ __publicField(_Y, "MAX_PENDING_BYTES", 128 * 1024 * 1024);
1935
1935
  * compositor holds), or four whole 8K pictures (7680x4320, 127 MiB each). Regions read back as their bounding box
1936
1936
  * take the box as well while it is read, at most twice what they hold.
1937
1937
  */
1938
- __publicField(_Y, "MAX_READBACK_BYTES", 512 * 1024 * 1024);
1939
- __publicField(_Y, "MAX_READBACKS", 64);
1940
- __publicField(_Y, "MAX_PICTURE_PIXELS", 64 * 1024 * 1024);
1938
+ __publicField(_y, "MAX_READBACK_BYTES", 512 * 1024 * 1024);
1939
+ __publicField(_y, "MAX_READBACKS", 64);
1940
+ __publicField(_y, "MAX_PICTURE_PIXELS", 64 * 1024 * 1024);
1941
1941
  /** Four whole 8K pictures, or 512 MiB at four bytes per coded pixel, regardless of dirty-region size. */
1942
- __publicField(_Y, "MAX_READBACK_PIXELS", 128 * 1024 * 1024);
1942
+ __publicField(_y, "MAX_READBACK_PIXELS", 128 * 1024 * 1024);
1943
1943
  /** A bounding box may be this many times what its regions hold before they are read one by one instead. */
1944
- __publicField(_Y, "BOX_WASTE", 2);
1945
- let Y = _Y;
1946
- class hA {
1944
+ __publicField(_y, "BOX_WASTE", 2);
1945
+ let y = _y;
1946
+ class UA {
1947
1947
  constructor(A, I) {
1948
1948
  __publicField(this, "allowance");
1949
1949
  __publicField(this, "at");
@@ -1964,7 +1964,7 @@ class hA {
1964
1964
  }
1965
1965
  }
1966
1966
  }
1967
- function e(Q) {
1967
+ function v(Q) {
1968
1968
  if (Q.state !== "closed")
1969
1969
  try {
1970
1970
  Q.close();
@@ -1974,7 +1974,7 @@ function e(Q) {
1974
1974
  function BA(Q) {
1975
1975
  return Q instanceof Error || Q instanceof DOMException ? `${Q.name}: ${Q.message}` : String(Q);
1976
1976
  }
1977
- const b = {
1977
+ const j = {
1978
1978
  /**
1979
1979
  * Request file size (8-byte unsigned integer).
1980
1980
  * When set: position must be 0, size must be 8.
@@ -1986,19 +1986,19 @@ const b = {
1986
1986
  */
1987
1987
  RANGE: 2
1988
1988
  };
1989
- function rA(Q) {
1989
+ function zA(Q) {
1990
1990
  return new k("files_available_callback", Q);
1991
1991
  }
1992
- function zA(Q) {
1992
+ function eA(Q) {
1993
1993
  return new k("file_contents_request_callback", Q);
1994
1994
  }
1995
- function PA(Q) {
1995
+ function rA(Q) {
1996
1996
  return new k("file_contents_response_callback", Q);
1997
1997
  }
1998
- function vA(Q) {
1998
+ function PA(Q) {
1999
1999
  return new k("lock_callback", Q);
2000
2000
  }
2001
- function eA(Q) {
2001
+ function vA(Q) {
2002
2002
  return new k("unlock_callback", Q);
2003
2003
  }
2004
2004
  function uA(Q) {
@@ -2057,7 +2057,7 @@ class gI {
2057
2057
  this.finalized || (this.finalized = true, this.chunks = []);
2058
2058
  }
2059
2059
  }
2060
- class KA {
2060
+ class cA {
2061
2061
  constructor() {
2062
2062
  __publicField(this, "name", "blob");
2063
2063
  }
@@ -2212,7 +2212,7 @@ function QI(Q) {
2212
2212
  async function CI(Q = "auto", A) {
2213
2213
  var _a, _b;
2214
2214
  if (Q === "blob")
2215
- return new KA();
2215
+ return new cA();
2216
2216
  if (typeof ((_b = (_a = globalThis.navigator) == null ? void 0 : _a.storage) == null ? void 0 : _b.getDirectory) == "function")
2217
2217
  try {
2218
2218
  const I = await navigator.storage.getDirectory();
@@ -2222,9 +2222,9 @@ async function CI(Q = "auto", A) {
2222
2222
  } catch (I) {
2223
2223
  console.debug("OPFS unavailable, falling back to blob storage:", I);
2224
2224
  }
2225
- return new KA();
2225
+ return new cA();
2226
2226
  }
2227
- const _J = class _J {
2227
+ const _K = class _K {
2228
2228
  constructor(A) {
2229
2229
  __publicField(this, "session");
2230
2230
  __publicField(this, "chunkSize");
@@ -2335,13 +2335,13 @@ const _J = class _J {
2335
2335
  */
2336
2336
  getBuilderExtensions() {
2337
2337
  return [
2338
- rA(
2338
+ zA(
2339
2339
  (A, I) => this.handleFilesAvailable(A, I)
2340
2340
  ),
2341
- zA((A) => this.handleFileContentsRequest(A)),
2342
- PA((A) => this.handleFileContentsResponse(A)),
2343
- vA((A) => this.handleLock(A)),
2344
- eA((A) => this.handleUnlock(A)),
2341
+ eA((A) => this.handleFileContentsRequest(A)),
2342
+ rA((A) => this.handleFileContentsResponse(A)),
2343
+ PA((A) => this.handleLock(A)),
2344
+ vA((A) => this.handleUnlock(A)),
2345
2345
  uA((A) => this.handleLocksExpired(A)),
2346
2346
  _A((A) => this.handleFormatListResponse(A))
2347
2347
  ];
@@ -2425,7 +2425,7 @@ const _J = class _J {
2425
2425
  this.activeDownloads.set(g, w);
2426
2426
  });
2427
2427
  try {
2428
- this.sendRequestFileContents(g, I, b.SIZE, 0, 8, B);
2428
+ this.sendRequestFileContents(g, I, j.SIZE, 0, 8, B);
2429
2429
  } catch (D) {
2430
2430
  this.activeDownloads.delete(g);
2431
2431
  const i = {
@@ -2480,10 +2480,10 @@ const _J = class _J {
2480
2480
  async downloadFilesConcurrent(A, I = {}) {
2481
2481
  const g = I.maxConcurrent ?? 3, B = /* @__PURE__ */ new Map(), E = [], D = A.map((w, G) => async () => {
2482
2482
  try {
2483
- const { completion: S } = this.downloadFile(w, G), h = await S;
2484
- B.set(G, h);
2485
- } catch (S) {
2486
- E.push({ index: G, error: S });
2483
+ const { completion: a } = this.downloadFile(w, G), U = await a;
2484
+ B.set(G, U);
2485
+ } catch (a) {
2486
+ E.push({ index: G, error: a });
2487
2487
  }
2488
2488
  }), i = [];
2489
2489
  for (const w of D) {
@@ -2518,7 +2518,7 @@ const _J = class _J {
2518
2518
  */
2519
2519
  uploadFiles(A) {
2520
2520
  this.uploadState !== void 0 && this.supersedeUpload(), this.retainedFiles = void 0;
2521
- const I = _J.normalizeToDroppedFiles(A), g = /* @__PURE__ */ new Map();
2521
+ const I = _K.normalizeToDroppedFiles(A), g = /* @__PURE__ */ new Map();
2522
2522
  for (let w = 0; w < I.length; w++)
2523
2523
  g.set(w, this.generateStreamId());
2524
2524
  const B = I.map((w) => ({
@@ -2543,14 +2543,14 @@ const _J = class _J {
2543
2543
  }, this.suppressUploadMonitoring();
2544
2544
  try {
2545
2545
  this.sendInitiateFileCopy(B), this.emit("upload-batch-started", g, I);
2546
- } catch (S) {
2546
+ } catch (a) {
2547
2547
  this.uploadState = void 0, this.resumeUploadMonitoring();
2548
- const h = {
2548
+ const U = {
2549
2549
  message: "Failed to initiate file upload",
2550
2550
  direction: "upload",
2551
- cause: S
2551
+ cause: a
2552
2552
  };
2553
- this.emit("error", h), G(new Error(h.message, { cause: S }));
2553
+ this.emit("error", U), G(new Error(U.message, { cause: a }));
2554
2554
  return;
2555
2555
  }
2556
2556
  this.armPasteAckWatchdog();
@@ -2594,7 +2594,7 @@ const _J = class _J {
2594
2594
  this.pasteAckTimeout = void 0;
2595
2595
  const A = this.uploadState;
2596
2596
  A !== void 0 && A.isRePaste !== true ? this.failPendingUpload("The remote did not request the files in time, so the paste was not completed") : this.resumeUploadMonitoring();
2597
- }, _J.PASTE_ACK_TIMEOUT_MS);
2597
+ }, _K.PASTE_ACK_TIMEOUT_MS);
2598
2598
  }
2599
2599
  /** Disarm the paste-acknowledgment watchdog, if armed. */
2600
2600
  clearPasteAckWatchdog() {
@@ -2612,7 +2612,7 @@ const _J = class _J {
2612
2612
  this.uploadInactivityTimeout = void 0;
2613
2613
  const A = this.uploadState;
2614
2614
  A !== void 0 && A.isRePaste !== true && this.failPendingUpload("The remote stopped requesting the files, so the paste did not complete");
2615
- }, _J.UPLOAD_INACTIVITY_TIMEOUT_MS);
2615
+ }, _K.UPLOAD_INACTIVITY_TIMEOUT_MS);
2616
2616
  }
2617
2617
  /** Disarm the upload inactivity watchdog, if armed. */
2618
2618
  clearUploadInactivityWatchdog() {
@@ -2800,10 +2800,10 @@ const _J = class _J {
2800
2800
  * entries into `results`.
2801
2801
  */
2802
2802
  async traverseEntry(A, I, g, B) {
2803
- if (!(g.length >= _J.MAX_DIRECTORY_ENTRIES)) {
2804
- if (B > _J.MAX_DIRECTORY_DEPTH) {
2803
+ if (!(g.length >= _K.MAX_DIRECTORY_ENTRIES)) {
2804
+ if (B > _K.MAX_DIRECTORY_DEPTH) {
2805
2805
  console.warn(
2806
- `Skipping "${A.name}": directory depth exceeds ${_J.MAX_DIRECTORY_DEPTH}`
2806
+ `Skipping "${A.name}": directory depth exceeds ${_K.MAX_DIRECTORY_DEPTH}`
2807
2807
  );
2808
2808
  return;
2809
2809
  }
@@ -2828,7 +2828,7 @@ const _J = class _J {
2828
2828
  path: I,
2829
2829
  isDirectory: true
2830
2830
  });
2831
- const D = A.createReader(), i = await _J.readAllDirectoryEntries(D);
2831
+ const D = A.createReader(), i = await _K.readAllDirectoryEntries(D);
2832
2832
  for (const w of i)
2833
2833
  await this.traverseEntry(w, E, g, B + 1);
2834
2834
  }
@@ -2880,8 +2880,8 @@ const _J = class _J {
2880
2880
  this.failPendingUpload("Upload interrupted: the remote clipboard changed");
2881
2881
  const g = A.map((B) => ({
2882
2882
  ...B,
2883
- name: _J.sanitizeFileName(B.name),
2884
- path: B.path !== void 0 ? _J.sanitizePath(B.path) : void 0
2883
+ name: _K.sanitizeFileName(B.name),
2884
+ path: B.path !== void 0 ? _K.sanitizePath(B.path) : void 0
2885
2885
  }));
2886
2886
  this.availableFiles = g, this.clipDataId = I, this.emit("files-available", g);
2887
2887
  }
@@ -2932,7 +2932,7 @@ const _J = class _J {
2932
2932
  return;
2933
2933
  }
2934
2934
  if (E == null) {
2935
- if ((A.flags & b.SIZE) !== 0) {
2935
+ if ((A.flags & j.SIZE) !== 0) {
2936
2936
  const w = new Uint8Array(8);
2937
2937
  this.sendSubmitFileContents(A.streamId, false, w);
2938
2938
  } else
@@ -2940,55 +2940,55 @@ const _J = class _J {
2940
2940
  return;
2941
2941
  }
2942
2942
  const i = E;
2943
- if ((A.flags & b.SIZE) !== 0) {
2943
+ if ((A.flags & j.SIZE) !== 0) {
2944
2944
  const w = new Uint8Array(8);
2945
2945
  new DataView(w.buffer).setBigUint64(0, BigInt(i.size), true), this.sendSubmitFileContents(A.streamId, false, w), i.size === 0 && this.markUploadFileComplete(A.index, i, I.transferIds.get(A.index) ?? -1);
2946
- } else if ((A.flags & b.RANGE) !== 0) {
2946
+ } else if ((A.flags & j.RANGE) !== 0) {
2947
2947
  const w = i.slice(A.position, A.position + A.size), G = new FileReader();
2948
2948
  I.activeReaders.set(A.streamId, G);
2949
- const S = setTimeout(() => {
2949
+ const a = setTimeout(() => {
2950
2950
  var _a;
2951
2951
  G.abort(), this.uploadState !== void 0 && (this.uploadState.activeReaders.delete(A.streamId), this.uploadState.readerTimeouts.delete(A.streamId)), this.sendSubmitFileContents(A.streamId, true, new Uint8Array());
2952
- const h = {
2953
- message: `File read timeout after ${_J.FILE_READER_TIMEOUT_MS / 1e3}s`,
2952
+ const U = {
2953
+ message: `File read timeout after ${_K.FILE_READER_TIMEOUT_MS / 1e3}s`,
2954
2954
  transferId: (_a = this.uploadState) == null ? void 0 : _a.transferIds.get(A.index),
2955
2955
  fileIndex: A.index,
2956
2956
  fileName: D.name,
2957
2957
  direction: "upload"
2958
2958
  };
2959
- this.emit("error", h), this.uploadState !== void 0 && (this.uploadState.failedFiles.add(A.index), this.uploadState.completedFiles.add(A.index), this.uploadState.completedFiles.size >= this.uploadState.expectedFileCount && this.finishUploadBatch(this.uploadState));
2960
- }, _J.FILE_READER_TIMEOUT_MS);
2961
- I.readerTimeouts.set(A.streamId, S), G.onload = () => {
2959
+ this.emit("error", U), this.uploadState !== void 0 && (this.uploadState.failedFiles.add(A.index), this.uploadState.completedFiles.add(A.index), this.uploadState.completedFiles.size >= this.uploadState.expectedFileCount && this.finishUploadBatch(this.uploadState));
2960
+ }, _K.FILE_READER_TIMEOUT_MS);
2961
+ I.readerTimeouts.set(A.streamId, a), G.onload = () => {
2962
2962
  if (this.uploadState !== void 0) {
2963
2963
  this.uploadState.activeReaders.delete(A.streamId);
2964
- const K = this.uploadState.readerTimeouts.get(A.streamId);
2965
- K !== void 0 && (clearTimeout(K), this.uploadState.readerTimeouts.delete(A.streamId));
2964
+ const c = this.uploadState.readerTimeouts.get(A.streamId);
2965
+ c !== void 0 && (clearTimeout(c), this.uploadState.readerTimeouts.delete(A.streamId));
2966
2966
  }
2967
- const h = new Uint8Array(G.result);
2968
- if (this.sendSubmitFileContents(A.streamId, false, h), this.uploadState !== void 0) {
2969
- const K = (this.uploadState.bytesServed.get(A.index) ?? 0) + h.length;
2970
- this.uploadState.bytesServed.set(A.index, K);
2971
- const W = this.uploadState.transferIds.get(A.index) ?? -1, H = {
2972
- transferId: W,
2967
+ const U = new Uint8Array(G.result);
2968
+ if (this.sendSubmitFileContents(A.streamId, false, U), this.uploadState !== void 0) {
2969
+ const c = (this.uploadState.bytesServed.get(A.index) ?? 0) + U.length;
2970
+ this.uploadState.bytesServed.set(A.index, c);
2971
+ const l = this.uploadState.transferIds.get(A.index) ?? -1, H = {
2972
+ transferId: l,
2973
2973
  fileIndex: A.index,
2974
2974
  fileName: D.name,
2975
- bytesTransferred: K,
2975
+ bytesTransferred: c,
2976
2976
  totalBytes: i.size,
2977
- percentage: i.size === 0 ? 100 : Math.min(K / i.size * 100, 100)
2977
+ percentage: i.size === 0 ? 100 : Math.min(c / i.size * 100, 100)
2978
2978
  };
2979
- this.emit("upload-progress", H), K >= i.size && this.markUploadFileComplete(A.index, i, W);
2979
+ this.emit("upload-progress", H), c >= i.size && this.markUploadFileComplete(A.index, i, l);
2980
2980
  }
2981
2981
  }, G.onerror = () => {
2982
2982
  var _a, _b;
2983
2983
  if (this.uploadState !== void 0) {
2984
2984
  this.uploadState.activeReaders.delete(A.streamId);
2985
- const K = this.uploadState.readerTimeouts.get(A.streamId);
2986
- K !== void 0 && (clearTimeout(K), this.uploadState.readerTimeouts.delete(A.streamId));
2985
+ const c = this.uploadState.readerTimeouts.get(A.streamId);
2986
+ c !== void 0 && (clearTimeout(c), this.uploadState.readerTimeouts.delete(A.streamId));
2987
2987
  }
2988
2988
  if (((_a = this.uploadState) == null ? void 0 : _a.failedFiles.has(A.index)) === true)
2989
2989
  return;
2990
2990
  this.sendSubmitFileContents(A.streamId, true, new Uint8Array());
2991
- const h = {
2991
+ const U = {
2992
2992
  message: "Failed to read file chunk",
2993
2993
  transferId: (_b = this.uploadState) == null ? void 0 : _b.transferIds.get(A.index),
2994
2994
  fileIndex: A.index,
@@ -2996,7 +2996,7 @@ const _J = class _J {
2996
2996
  direction: "upload",
2997
2997
  cause: G.error
2998
2998
  };
2999
- this.emit("error", h), this.uploadState !== void 0 && (this.uploadState.failedFiles.add(A.index), this.uploadState.completedFiles.add(A.index), this.uploadState.completedFiles.size >= this.uploadState.expectedFileCount && this.finishUploadBatch(this.uploadState));
2999
+ this.emit("error", U), this.uploadState !== void 0 && (this.uploadState.failedFiles.add(A.index), this.uploadState.completedFiles.add(A.index), this.uploadState.completedFiles.size >= this.uploadState.expectedFileCount && this.finishUploadBatch(this.uploadState));
3000
3000
  }, G.readAsArrayBuffer(w);
3001
3001
  }
3002
3002
  }
@@ -3069,7 +3069,7 @@ const _J = class _J {
3069
3069
  return;
3070
3070
  }
3071
3071
  const g = new DataView(A.data.buffer, A.data.byteOffset, A.data.byteLength), B = Number(g.getBigUint64(0, true));
3072
- if (B > _J.MAX_FILE_SIZE) {
3072
+ if (B > _K.MAX_FILE_SIZE) {
3073
3073
  this.activeDownloads.delete(A.streamId), this.abortWriteHandle(I);
3074
3074
  const E = {
3075
3075
  message: `File size ${(B / (1024 * 1024 * 1024)).toFixed(2)}GB exceeds maximum download limit of 2GB`,
@@ -3102,7 +3102,7 @@ const _J = class _J {
3102
3102
  initWriteHandleAndRequestFirstChunk(A) {
3103
3103
  A.writeHandleReady = (async () => {
3104
3104
  try {
3105
- const I = (async () => (await this.ensureStorageBackend()).createWriteHandle(A.fileInfo.name, A.expectedSize ?? 0))(), g = _J.WRITE_HANDLE_INIT_TIMEOUT_MS, B = await Promise.race([
3105
+ const I = (async () => (await this.ensureStorageBackend()).createWriteHandle(A.fileInfo.name, A.expectedSize ?? 0))(), g = _K.WRITE_HANDLE_INIT_TIMEOUT_MS, B = await Promise.race([
3106
3106
  I,
3107
3107
  new Promise(
3108
3108
  (E, D) => setTimeout(() => D(new Error(`Storage init timed out after ${g / 1e3}s`)), g)
@@ -3259,7 +3259,7 @@ const _J = class _J {
3259
3259
  this.sendRequestFileContents(
3260
3260
  A.streamId,
3261
3261
  A.fileIndex,
3262
- b.RANGE,
3262
+ j.RANGE,
3263
3263
  I,
3264
3264
  B,
3265
3265
  A.clipDataId
@@ -3288,9 +3288,9 @@ const _J = class _J {
3288
3288
  }
3289
3289
  };
3290
3290
  /** Maximum file size for downloads (2GB) to prevent browser out-of-memory errors */
3291
- __publicField(_J, "MAX_FILE_SIZE", 2 * 1024 * 1024 * 1024);
3291
+ __publicField(_K, "MAX_FILE_SIZE", 2 * 1024 * 1024 * 1024);
3292
3292
  /** Timeout for FileReader operations (60 seconds) to prevent stalled uploads */
3293
- __publicField(_J, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
3293
+ __publicField(_K, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
3294
3294
  /**
3295
3295
  * How long to keep clipboard monitoring suppressed after advertising an upload
3296
3296
  * while waiting for the remote to pull the files (first FileContentsRequest),
@@ -3300,7 +3300,7 @@ __publicField(_J, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
3300
3300
  * clobbered), the watchdog resumes monitoring and fails the upload so its state
3301
3301
  * cannot wedge later uploads.
3302
3302
  */
3303
- __publicField(_J, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
3303
+ __publicField(_K, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
3304
3304
  /**
3305
3305
  * Upload inactivity window. After the remote starts pulling, each FileContentsRequest
3306
3306
  * resets this; if pulls then stop for this long -- e.g. the remote grabbed the
@@ -3308,62 +3308,62 @@ __publicField(_J, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
3308
3308
  * upload is failed so `uploadState` is released and later uploads aren't wedged. A
3309
3309
  * slow-but-progressing transfer keeps resetting it, so it is never killed.
3310
3310
  */
3311
- __publicField(_J, "UPLOAD_INACTIVITY_TIMEOUT_MS", 60 * 1e3);
3311
+ __publicField(_K, "UPLOAD_INACTIVITY_TIMEOUT_MS", 60 * 1e3);
3312
3312
  /** Timeout for storage backend write handle initialization (30 seconds). */
3313
- __publicField(_J, "WRITE_HANDLE_INIT_TIMEOUT_MS", 30 * 1e3);
3313
+ __publicField(_K, "WRITE_HANDLE_INIT_TIMEOUT_MS", 30 * 1e3);
3314
3314
  /** Maximum recursion depth when traversing dropped directories. */
3315
- __publicField(_J, "MAX_DIRECTORY_DEPTH", 32);
3315
+ __publicField(_K, "MAX_DIRECTORY_DEPTH", 32);
3316
3316
  /** Maximum total entries (files + directories) collected from a single drop. */
3317
- __publicField(_J, "MAX_DIRECTORY_ENTRIES", 1e3);
3318
- let J = _J;
3317
+ __publicField(_K, "MAX_DIRECTORY_ENTRIES", 1e3);
3318
+ let K = _K;
3319
3319
  async function NI(Q, A, I) {
3320
- await XA(A === void 0 ? void 0 : { module_or_path: A }), cA(Q, I);
3320
+ await XA(A === void 0 ? void 0 : { module_or_path: A }), hA(Q, I);
3321
3321
  }
3322
3322
  const kI = {
3323
3323
  DesktopSize: V,
3324
3324
  InputTransaction: _,
3325
- SessionBuilder: U,
3325
+ SessionBuilder: J,
3326
3326
  ClipboardData: d,
3327
- DeviceEvent: c
3327
+ DeviceEvent: h
3328
3328
  };
3329
- function FI(Q) {
3329
+ function RI(Q) {
3330
3330
  return new k("pcb", Q);
3331
3331
  }
3332
- function RI(Q, A = "enhanced") {
3332
+ function FI(Q, A = "enhanced") {
3333
3333
  if (Q.trim() === "")
3334
3334
  throw new Error("vmconnect requires a VM ID");
3335
3335
  const I = A === "enhanced" ? `${Q};EnhancedMode=1` : Q;
3336
3336
  return new k("vmconnect", I);
3337
3337
  }
3338
- function yI(Q) {
3338
+ function YI(Q) {
3339
3339
  return new k("display_control", Q);
3340
3340
  }
3341
3341
  function MI(Q) {
3342
3342
  return new k("graphics_pipeline", Q);
3343
3343
  }
3344
- function YI(Q) {
3344
+ function yI(Q) {
3345
3345
  return new k("h264_decoder", Q);
3346
3346
  }
3347
- function UI(Q) {
3347
+ function JI(Q) {
3348
3348
  return new k("audio_playback", Q);
3349
3349
  }
3350
- function hI(Q) {
3350
+ function UI(Q) {
3351
3351
  return new k("drive_redirection", Q);
3352
3352
  }
3353
- function KI(Q) {
3353
+ function cI(Q) {
3354
3354
  return new k("audio_input", Q);
3355
3355
  }
3356
- function JI(Q) {
3356
+ function KI(Q) {
3357
3357
  const A = Q instanceof Uint8Array ? Q : new Uint8Array(Q.buffer, Q.byteOffset, Q.byteLength);
3358
3358
  return new k("audio_input_data", A);
3359
3359
  }
3360
- function cI(Q) {
3360
+ function hI(Q) {
3361
3361
  return new k("kdc_proxy_url", Q);
3362
3362
  }
3363
- function SI(Q) {
3363
+ function aI(Q) {
3364
3364
  return new k("outbound_message_size_limit", Q);
3365
3365
  }
3366
- function aI(Q) {
3366
+ function SI(Q) {
3367
3367
  return new k("enable_credssp", Q);
3368
3368
  }
3369
3369
  function HI(Q) {
@@ -3376,43 +3376,43 @@ function LI(Q) {
3376
3376
  catch (error) { __trdReleaseBrowserRoots(); throw error; }
3377
3377
  return {
3378
3378
  Backend: kI,
3379
- BlobStorageBackend: KA,
3380
- FileContentsFlags: b,
3379
+ BlobStorageBackend: cA,
3380
+ FileContentsFlags: j,
3381
3381
  OpfsStorageBackend: O,
3382
3382
  PrinterDriverName: DI,
3383
3383
  RdpFile: iA,
3384
- RdpFileTransferProvider: J,
3385
- WebCodecsH264Decoder: Y,
3386
- audioInput: KI,
3387
- audioInputData: JI,
3388
- audioPlayback: UI,
3384
+ RdpFileTransferProvider: K,
3385
+ WebCodecsH264Decoder: y,
3386
+ audioInput: cI,
3387
+ audioInputData: KI,
3388
+ audioPlayback: JI,
3389
3389
  detectStorageBackend: CI,
3390
- displayControl: yI,
3391
- driveRedirection: hI,
3392
- enableCredssp: aI,
3390
+ displayControl: YI,
3391
+ driveRedirection: UI,
3392
+ enableCredssp: SI,
3393
3393
  enableServerPointer: HI,
3394
- fileContentsRequestCallback: zA,
3395
- fileContentsResponseCallback: PA,
3396
- filesAvailableCallback: rA,
3394
+ fileContentsRequestCallback: eA,
3395
+ fileContentsResponseCallback: rA,
3396
+ filesAvailableCallback: zA,
3397
3397
  graphicsPipeline: MI,
3398
- h264Decoder: YI,
3398
+ h264Decoder: yI,
3399
3399
  h264Supported: EI,
3400
3400
  init: NI,
3401
3401
  initiateFileCopy: II,
3402
- kdcProxyUrl: cI,
3402
+ kdcProxyUrl: hI,
3403
3403
  legacyGraphics: LI,
3404
- lockCallback: vA,
3404
+ lockCallback: PA,
3405
3405
  locksExpiredCallback: uA,
3406
- outboundMessageSizeLimit: SI,
3407
- preConnectionBlob: FI,
3406
+ outboundMessageSizeLimit: aI,
3407
+ preConnectionBlob: RI,
3408
3408
  printJobStreamCallbacks: iI,
3409
3409
  printerDeviceId: GI,
3410
3410
  printerDriverName: oI,
3411
3411
  printerName: wI,
3412
3412
  requestFileContents: $A,
3413
3413
  submitFileContents: AI,
3414
- unlockCallback: eA,
3415
- vmConnect: RI,
3414
+ unlockCallback: vA,
3415
+ vmConnect: FI,
3416
3416
  runtime: {
3417
3417
  dispose () { __trdReleaseBrowserRoots(); __trdListeners.clear(); },
3418
3418
  get memory () { return C.memory; },