tabby-rdp 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -0
- package/README.md +93 -4
- package/dist/desktop.service.js +404 -43
- package/dist/desktop.service.js.map +1 -1
- package/dist/desktopForm.js +26 -1
- package/dist/desktopForm.js.map +1 -1
- package/dist/desktops.js +17 -1
- package/dist/desktops.js.map +1 -1
- package/dist/drives.js +284 -0
- package/dist/drives.js.map +1 -0
- package/dist/fileTransfer.js +128 -11
- package/dist/fileTransfer.js.map +1 -1
- package/dist/gateway.js +492 -0
- package/dist/gateway.js.map +1 -0
- package/dist/hyperv.js +79 -0
- package/dist/hyperv.js.map +1 -0
- package/dist/ntlm.js +226 -0
- package/dist/ntlm.js.map +1 -0
- package/dist/rdcleanpath.js +167 -26
- package/dist/rdcleanpath.js.map +1 -1
- package/dist/rdpFile.js +34 -0
- package/dist/rdpFile.js.map +1 -1
- package/dist/rdpProfile.js +39 -4
- package/dist/rdpProfile.js.map +1 -1
- package/dist/settingsPage.js +60 -6
- package/dist/settingsPage.js.map +1 -1
- package/dist/signin.js +26 -18
- package/dist/signin.js.map +1 -1
- package/dist/sshChannelStream.js +11 -1
- package/dist/sshChannelStream.js.map +1 -1
- package/dist/ui.js +10 -0
- package/dist/ui.js.map +1 -1
- package/dist/vms.js +20 -3
- package/dist/vms.js.map +1 -1
- package/dist/wake.js +16 -4
- package/dist/wake.js.map +1 -1
- package/package.json +1 -1
- package/vendor/iron-remote-desktop-rdp.js +418 -390
- package/vendor/ironrdp_web_bg.wasm +0 -0
|
@@ -4,11 +4,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
class Z {
|
|
5
5
|
static __wrap(A) {
|
|
6
6
|
const I = Object.create(Z.prototype);
|
|
7
|
-
return I.__wbg_ptr = A,
|
|
7
|
+
return I.__wbg_ptr = A, u.register(I, I.__wbg_ptr, I), I;
|
|
8
8
|
}
|
|
9
9
|
__destroy_into_raw() {
|
|
10
10
|
const A = this.__wbg_ptr;
|
|
11
|
-
return this.__wbg_ptr = 0,
|
|
11
|
+
return this.__wbg_ptr = 0, u.unregister(this), A;
|
|
12
12
|
}
|
|
13
13
|
free() {
|
|
14
14
|
const A = this.__destroy_into_raw();
|
|
@@ -19,7 +19,7 @@ class Z {
|
|
|
19
19
|
* @param {Uint8Array} binary
|
|
20
20
|
*/
|
|
21
21
|
addBinary(A, I) {
|
|
22
|
-
const g =
|
|
22
|
+
const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = lA(I, C.__wbindgen_malloc), D = k;
|
|
23
23
|
C.clipboarddata_addBinary(this.__wbg_ptr, g, B, E, D);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
@@ -27,12 +27,12 @@ class Z {
|
|
|
27
27
|
* @param {string} text
|
|
28
28
|
*/
|
|
29
29
|
addText(A, I) {
|
|
30
|
-
const g =
|
|
30
|
+
const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = R(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = k;
|
|
31
31
|
C.clipboarddata_addText(this.__wbg_ptr, g, B, E, D);
|
|
32
32
|
}
|
|
33
33
|
constructor() {
|
|
34
34
|
const A = C.clipboarddata_create();
|
|
35
|
-
return this.__wbg_ptr = A,
|
|
35
|
+
return this.__wbg_ptr = A, u.register(this, this.__wbg_ptr, this), this;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @returns {boolean}
|
|
@@ -50,14 +50,14 @@ class Z {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
Symbol.dispose && (Z.prototype[Symbol.dispose] = Z.prototype.free);
|
|
53
|
-
class
|
|
53
|
+
class f {
|
|
54
54
|
static __wrap(A) {
|
|
55
|
-
const I = Object.create(
|
|
56
|
-
return I.__wbg_ptr = A,
|
|
55
|
+
const I = Object.create(f.prototype);
|
|
56
|
+
return I.__wbg_ptr = A, CA.register(I, I.__wbg_ptr, I), I;
|
|
57
57
|
}
|
|
58
58
|
__destroy_into_raw() {
|
|
59
59
|
const A = this.__wbg_ptr;
|
|
60
|
-
return this.__wbg_ptr = 0,
|
|
60
|
+
return this.__wbg_ptr = 0, CA.unregister(this), A;
|
|
61
61
|
}
|
|
62
62
|
free() {
|
|
63
63
|
const A = this.__destroy_into_raw();
|
|
@@ -70,7 +70,7 @@ class X {
|
|
|
70
70
|
let A, I;
|
|
71
71
|
try {
|
|
72
72
|
const g = C.clipboarditem_mimeType(this.__wbg_ptr);
|
|
73
|
-
return A = g[0], I = g[1],
|
|
73
|
+
return A = g[0], I = g[1], y(g[0], g[1]);
|
|
74
74
|
} finally {
|
|
75
75
|
C.__wbindgen_free(A, I, 1);
|
|
76
76
|
}
|
|
@@ -82,7 +82,7 @@ class X {
|
|
|
82
82
|
return C.clipboarditem_value(this.__wbg_ptr);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
Symbol.dispose && (
|
|
85
|
+
Symbol.dispose && (f.prototype[Symbol.dispose] = f.prototype.free);
|
|
86
86
|
class p {
|
|
87
87
|
static __wrap(A) {
|
|
88
88
|
const I = Object.create(p.prototype);
|
|
@@ -133,11 +133,11 @@ Symbol.dispose && (p.prototype[Symbol.dispose] = p.prototype.free);
|
|
|
133
133
|
class K {
|
|
134
134
|
static __wrap(A) {
|
|
135
135
|
const I = Object.create(K.prototype);
|
|
136
|
-
return I.__wbg_ptr = A,
|
|
136
|
+
return I.__wbg_ptr = A, EA.register(I, I.__wbg_ptr, I), I;
|
|
137
137
|
}
|
|
138
138
|
__destroy_into_raw() {
|
|
139
139
|
const A = this.__wbg_ptr;
|
|
140
|
-
return this.__wbg_ptr = 0,
|
|
140
|
+
return this.__wbg_ptr = 0, EA.unregister(this), A;
|
|
141
141
|
}
|
|
142
142
|
free() {
|
|
143
143
|
const A = this.__destroy_into_raw();
|
|
@@ -190,7 +190,7 @@ class K {
|
|
|
190
190
|
*/
|
|
191
191
|
static unicodePressed(A) {
|
|
192
192
|
const I = A.codePointAt(0);
|
|
193
|
-
|
|
193
|
+
FA(I);
|
|
194
194
|
const g = C.deviceevent_unicodePressed(I);
|
|
195
195
|
return K.__wrap(g);
|
|
196
196
|
}
|
|
@@ -200,7 +200,7 @@ class K {
|
|
|
200
200
|
*/
|
|
201
201
|
static unicodeReleased(A) {
|
|
202
202
|
const I = A.codePointAt(0);
|
|
203
|
-
|
|
203
|
+
FA(I);
|
|
204
204
|
const g = C.deviceevent_unicodeReleased(I);
|
|
205
205
|
return K.__wrap(g);
|
|
206
206
|
}
|
|
@@ -216,10 +216,10 @@ class K {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
|
|
219
|
-
class
|
|
219
|
+
class N {
|
|
220
220
|
__destroy_into_raw() {
|
|
221
221
|
const A = this.__wbg_ptr;
|
|
222
|
-
return this.__wbg_ptr = 0,
|
|
222
|
+
return this.__wbg_ptr = 0, DA.unregister(this), A;
|
|
223
223
|
}
|
|
224
224
|
free() {
|
|
225
225
|
const A = this.__destroy_into_raw();
|
|
@@ -230,15 +230,15 @@ class o {
|
|
|
230
230
|
* @param {any} value
|
|
231
231
|
*/
|
|
232
232
|
constructor(A, I) {
|
|
233
|
-
const g =
|
|
234
|
-
return this.__wbg_ptr = E,
|
|
233
|
+
const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = C.extension_create(g, B, I);
|
|
234
|
+
return this.__wbg_ptr = E, DA.register(this, this.__wbg_ptr, this), this;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
Symbol.dispose && (
|
|
238
|
-
class
|
|
237
|
+
Symbol.dispose && (N.prototype[Symbol.dispose] = N.prototype.free);
|
|
238
|
+
class e {
|
|
239
239
|
__destroy_into_raw() {
|
|
240
240
|
const A = this.__wbg_ptr;
|
|
241
|
-
return this.__wbg_ptr = 0,
|
|
241
|
+
return this.__wbg_ptr = 0, iA.unregister(this), A;
|
|
242
242
|
}
|
|
243
243
|
free() {
|
|
244
244
|
const A = this.__destroy_into_raw();
|
|
@@ -248,24 +248,24 @@ class v {
|
|
|
248
248
|
* @param {DeviceEvent} event
|
|
249
249
|
*/
|
|
250
250
|
addEvent(A) {
|
|
251
|
-
|
|
251
|
+
V(A, K);
|
|
252
252
|
var I = A.__destroy_into_raw();
|
|
253
253
|
C.inputtransaction_addEvent(this.__wbg_ptr, I);
|
|
254
254
|
}
|
|
255
255
|
constructor() {
|
|
256
256
|
const A = C.inputtransaction_create();
|
|
257
|
-
return this.__wbg_ptr = A,
|
|
257
|
+
return this.__wbg_ptr = A, iA.register(this, this.__wbg_ptr, this), this;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
Symbol.dispose && (
|
|
260
|
+
Symbol.dispose && (e.prototype[Symbol.dispose] = e.prototype.free);
|
|
261
261
|
class T {
|
|
262
262
|
static __wrap(A) {
|
|
263
263
|
const I = Object.create(T.prototype);
|
|
264
|
-
return I.__wbg_ptr = A,
|
|
264
|
+
return I.__wbg_ptr = A, wA.register(I, I.__wbg_ptr, I), I;
|
|
265
265
|
}
|
|
266
266
|
__destroy_into_raw() {
|
|
267
267
|
const A = this.__wbg_ptr;
|
|
268
|
-
return this.__wbg_ptr = 0,
|
|
268
|
+
return this.__wbg_ptr = 0, wA.unregister(this), A;
|
|
269
269
|
}
|
|
270
270
|
free() {
|
|
271
271
|
const A = this.__destroy_into_raw();
|
|
@@ -278,7 +278,7 @@ class T {
|
|
|
278
278
|
let A, I;
|
|
279
279
|
try {
|
|
280
280
|
const g = C.ironerror_backtrace(this.__wbg_ptr);
|
|
281
|
-
return A = g[0], I = g[1],
|
|
281
|
+
return A = g[0], I = g[1], y(g[0], g[1]);
|
|
282
282
|
} finally {
|
|
283
283
|
C.__wbindgen_free(A, I, 1);
|
|
284
284
|
}
|
|
@@ -294,18 +294,18 @@ class T {
|
|
|
294
294
|
*/
|
|
295
295
|
rdcleanpathDetails() {
|
|
296
296
|
const A = C.ironerror_rdcleanpathDetails(this.__wbg_ptr);
|
|
297
|
-
return A === 0 ? void 0 :
|
|
297
|
+
return A === 0 ? void 0 : n.__wrap(A);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
Symbol.dispose && (T.prototype[Symbol.dispose] = T.prototype.free);
|
|
301
|
-
class
|
|
301
|
+
class n {
|
|
302
302
|
static __wrap(A) {
|
|
303
|
-
const I = Object.create(
|
|
304
|
-
return I.__wbg_ptr = A,
|
|
303
|
+
const I = Object.create(n.prototype);
|
|
304
|
+
return I.__wbg_ptr = A, GA.register(I, I.__wbg_ptr, I), I;
|
|
305
305
|
}
|
|
306
306
|
__destroy_into_raw() {
|
|
307
307
|
const A = this.__wbg_ptr;
|
|
308
|
-
return this.__wbg_ptr = 0,
|
|
308
|
+
return this.__wbg_ptr = 0, GA.unregister(this), A;
|
|
309
309
|
}
|
|
310
310
|
free() {
|
|
311
311
|
const A = this.__destroy_into_raw();
|
|
@@ -357,11 +357,11 @@ class f {
|
|
|
357
357
|
return A === 16777215 ? void 0 : A;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
Symbol.dispose && (
|
|
361
|
-
class
|
|
360
|
+
Symbol.dispose && (n.prototype[Symbol.dispose] = n.prototype.free);
|
|
361
|
+
class QA {
|
|
362
362
|
__destroy_into_raw() {
|
|
363
363
|
const A = this.__wbg_ptr;
|
|
364
|
-
return this.__wbg_ptr = 0,
|
|
364
|
+
return this.__wbg_ptr = 0, oA.unregister(this), A;
|
|
365
365
|
}
|
|
366
366
|
free() {
|
|
367
367
|
const A = this.__destroy_into_raw();
|
|
@@ -369,14 +369,14 @@ class CA {
|
|
|
369
369
|
}
|
|
370
370
|
constructor() {
|
|
371
371
|
const A = C.rdpfile_create();
|
|
372
|
-
return this.__wbg_ptr = A,
|
|
372
|
+
return this.__wbg_ptr = A, oA.register(this, this.__wbg_ptr, this), this;
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
* @param {string} key
|
|
376
376
|
* @returns {number | undefined}
|
|
377
377
|
*/
|
|
378
378
|
getInt(A) {
|
|
379
|
-
const I =
|
|
379
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.rdpfile_getInt(this.__wbg_ptr, I, g);
|
|
380
380
|
return B === Number.MAX_SAFE_INTEGER ? void 0 : B;
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -384,16 +384,16 @@ class CA {
|
|
|
384
384
|
* @returns {string | undefined}
|
|
385
385
|
*/
|
|
386
386
|
getStr(A) {
|
|
387
|
-
const I =
|
|
387
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.rdpfile_getStr(this.__wbg_ptr, I, g);
|
|
388
388
|
let E;
|
|
389
|
-
return B[0] !== 0 && (E =
|
|
389
|
+
return B[0] !== 0 && (E = y(B[0], B[1]).slice(), C.__wbindgen_free(B[0], B[1] * 1, 1)), E;
|
|
390
390
|
}
|
|
391
391
|
/**
|
|
392
392
|
* @param {string} key
|
|
393
393
|
* @param {number} value
|
|
394
394
|
*/
|
|
395
395
|
insertInt(A, I) {
|
|
396
|
-
const g =
|
|
396
|
+
const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k;
|
|
397
397
|
C.rdpfile_insertInt(this.__wbg_ptr, g, B, I);
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
@@ -401,14 +401,14 @@ class CA {
|
|
|
401
401
|
* @param {string} value
|
|
402
402
|
*/
|
|
403
403
|
insertStr(A, I) {
|
|
404
|
-
const g =
|
|
404
|
+
const g = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), B = k, E = R(I, C.__wbindgen_malloc, C.__wbindgen_realloc), D = k;
|
|
405
405
|
C.rdpfile_insertStr(this.__wbg_ptr, g, B, E, D);
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* @param {string} config
|
|
409
409
|
*/
|
|
410
410
|
parse(A) {
|
|
411
|
-
const I =
|
|
411
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k;
|
|
412
412
|
C.rdpfile_parse(this.__wbg_ptr, I, g);
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
@@ -418,21 +418,21 @@ class CA {
|
|
|
418
418
|
let A, I;
|
|
419
419
|
try {
|
|
420
420
|
const g = C.rdpfile_write(this.__wbg_ptr);
|
|
421
|
-
return A = g[0], I = g[1],
|
|
421
|
+
return A = g[0], I = g[1], y(g[0], g[1]);
|
|
422
422
|
} finally {
|
|
423
423
|
C.__wbindgen_free(A, I, 1);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
Symbol.dispose && (
|
|
428
|
-
class
|
|
427
|
+
Symbol.dispose && (QA.prototype[Symbol.dispose] = QA.prototype.free);
|
|
428
|
+
class r {
|
|
429
429
|
static __wrap(A) {
|
|
430
|
-
const I = Object.create(
|
|
431
|
-
return I.__wbg_ptr = A,
|
|
430
|
+
const I = Object.create(r.prototype);
|
|
431
|
+
return I.__wbg_ptr = A, NA.register(I, I.__wbg_ptr, I), I;
|
|
432
432
|
}
|
|
433
433
|
__destroy_into_raw() {
|
|
434
434
|
const A = this.__wbg_ptr;
|
|
435
|
-
return this.__wbg_ptr = 0,
|
|
435
|
+
return this.__wbg_ptr = 0, NA.unregister(this), A;
|
|
436
436
|
}
|
|
437
437
|
free() {
|
|
438
438
|
const A = this.__destroy_into_raw();
|
|
@@ -442,7 +442,7 @@ class n {
|
|
|
442
442
|
* @param {InputTransaction} transaction
|
|
443
443
|
*/
|
|
444
444
|
applyInputs(A) {
|
|
445
|
-
|
|
445
|
+
V(A, e);
|
|
446
446
|
var I = A.__destroy_into_raw();
|
|
447
447
|
const g = C.session_applyInputs(this.__wbg_ptr, I);
|
|
448
448
|
if (g[1])
|
|
@@ -460,7 +460,7 @@ class n {
|
|
|
460
460
|
* @returns {any}
|
|
461
461
|
*/
|
|
462
462
|
invokeExtension(A) {
|
|
463
|
-
|
|
463
|
+
V(A, N);
|
|
464
464
|
var I = A.__destroy_into_raw();
|
|
465
465
|
const g = C.session_invokeExtension(this.__wbg_ptr, I);
|
|
466
466
|
if (g[2])
|
|
@@ -472,7 +472,7 @@ class n {
|
|
|
472
472
|
* @returns {Promise<void>}
|
|
473
473
|
*/
|
|
474
474
|
onClipboardPaste(A) {
|
|
475
|
-
return
|
|
475
|
+
return V(A, Z), C.session_onClipboardPaste(this.__wbg_ptr, A.__wbg_ptr);
|
|
476
476
|
}
|
|
477
477
|
releaseAllInputs() {
|
|
478
478
|
const A = C.session_releaseAllInputs(this.__wbg_ptr);
|
|
@@ -518,10 +518,10 @@ class n {
|
|
|
518
518
|
throw q(E[0]);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
Symbol.dispose && (
|
|
522
|
-
class
|
|
521
|
+
Symbol.dispose && (r.prototype[Symbol.dispose] = r.prototype.free);
|
|
522
|
+
class c {
|
|
523
523
|
static __wrap(A) {
|
|
524
|
-
const I = Object.create(
|
|
524
|
+
const I = Object.create(c.prototype);
|
|
525
525
|
return I.__wbg_ptr = A, $.register(I, I.__wbg_ptr, I), I;
|
|
526
526
|
}
|
|
527
527
|
__destroy_into_raw() {
|
|
@@ -537,8 +537,8 @@ class Y {
|
|
|
537
537
|
* @returns {SessionBuilder}
|
|
538
538
|
*/
|
|
539
539
|
authToken(A) {
|
|
540
|
-
const I =
|
|
541
|
-
return
|
|
540
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_authToken(this.__wbg_ptr, I, g);
|
|
541
|
+
return c.__wrap(B);
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
544
|
* @param {Function} callback
|
|
@@ -546,7 +546,7 @@ class Y {
|
|
|
546
546
|
*/
|
|
547
547
|
canvasResizedCallback(A) {
|
|
548
548
|
const I = C.sessionbuilder_canvasResizedCallback(this.__wbg_ptr, A);
|
|
549
|
-
return
|
|
549
|
+
return c.__wrap(I);
|
|
550
550
|
}
|
|
551
551
|
/**
|
|
552
552
|
* @returns {Promise<Session>}
|
|
@@ -563,28 +563,28 @@ class Y {
|
|
|
563
563
|
* @returns {SessionBuilder}
|
|
564
564
|
*/
|
|
565
565
|
desktopSize(A) {
|
|
566
|
-
|
|
566
|
+
V(A, p);
|
|
567
567
|
var I = A.__destroy_into_raw();
|
|
568
568
|
const g = C.sessionbuilder_desktopSize(this.__wbg_ptr, I);
|
|
569
|
-
return
|
|
569
|
+
return c.__wrap(g);
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
572
572
|
* @param {string} destination
|
|
573
573
|
* @returns {SessionBuilder}
|
|
574
574
|
*/
|
|
575
575
|
destination(A) {
|
|
576
|
-
const I =
|
|
577
|
-
return
|
|
576
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_destination(this.__wbg_ptr, I, g);
|
|
577
|
+
return c.__wrap(B);
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* @param {Extension} ext
|
|
581
581
|
* @returns {SessionBuilder}
|
|
582
582
|
*/
|
|
583
583
|
extension(A) {
|
|
584
|
-
|
|
584
|
+
V(A, N);
|
|
585
585
|
var I = A.__destroy_into_raw();
|
|
586
586
|
const g = C.sessionbuilder_extension(this.__wbg_ptr, I);
|
|
587
|
-
return
|
|
587
|
+
return c.__wrap(g);
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
590
590
|
* @param {Function} callback
|
|
@@ -592,23 +592,23 @@ class Y {
|
|
|
592
592
|
*/
|
|
593
593
|
forceClipboardUpdateCallback(A) {
|
|
594
594
|
const I = C.sessionbuilder_forceClipboardUpdateCallback(this.__wbg_ptr, A);
|
|
595
|
-
return
|
|
595
|
+
return c.__wrap(I);
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
598
598
|
* @param {string} password
|
|
599
599
|
* @returns {SessionBuilder}
|
|
600
600
|
*/
|
|
601
601
|
password(A) {
|
|
602
|
-
const I =
|
|
603
|
-
return
|
|
602
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_password(this.__wbg_ptr, I, g);
|
|
603
|
+
return c.__wrap(B);
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
606
|
* @param {string} address
|
|
607
607
|
* @returns {SessionBuilder}
|
|
608
608
|
*/
|
|
609
609
|
proxyAddress(A) {
|
|
610
|
-
const I =
|
|
611
|
-
return
|
|
610
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_proxyAddress(this.__wbg_ptr, I, g);
|
|
611
|
+
return c.__wrap(B);
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
614
|
* @param {Function} callback
|
|
@@ -616,7 +616,7 @@ class Y {
|
|
|
616
616
|
*/
|
|
617
617
|
remoteClipboardChangedCallback(A) {
|
|
618
618
|
const I = C.sessionbuilder_remoteClipboardChangedCallback(this.__wbg_ptr, A);
|
|
619
|
-
return
|
|
619
|
+
return c.__wrap(I);
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
622
|
* @param {HTMLCanvasElement} canvas
|
|
@@ -624,15 +624,15 @@ class Y {
|
|
|
624
624
|
*/
|
|
625
625
|
renderCanvas(A) {
|
|
626
626
|
const I = C.sessionbuilder_renderCanvas(this.__wbg_ptr, A);
|
|
627
|
-
return
|
|
627
|
+
return c.__wrap(I);
|
|
628
628
|
}
|
|
629
629
|
/**
|
|
630
630
|
* @param {string} server_domain
|
|
631
631
|
* @returns {SessionBuilder}
|
|
632
632
|
*/
|
|
633
633
|
serverDomain(A) {
|
|
634
|
-
const I =
|
|
635
|
-
return
|
|
634
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_serverDomain(this.__wbg_ptr, I, g);
|
|
635
|
+
return c.__wrap(B);
|
|
636
636
|
}
|
|
637
637
|
/**
|
|
638
638
|
* @param {Function} callback
|
|
@@ -640,7 +640,7 @@ class Y {
|
|
|
640
640
|
*/
|
|
641
641
|
setCursorStyleCallback(A) {
|
|
642
642
|
const I = C.sessionbuilder_setCursorStyleCallback(this.__wbg_ptr, A);
|
|
643
|
-
return
|
|
643
|
+
return c.__wrap(I);
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
646
|
* @param {any} context
|
|
@@ -648,26 +648,26 @@ class Y {
|
|
|
648
648
|
*/
|
|
649
649
|
setCursorStyleCallbackContext(A) {
|
|
650
650
|
const I = C.sessionbuilder_setCursorStyleCallbackContext(this.__wbg_ptr, A);
|
|
651
|
-
return
|
|
651
|
+
return c.__wrap(I);
|
|
652
652
|
}
|
|
653
653
|
/**
|
|
654
654
|
* @param {string} username
|
|
655
655
|
* @returns {SessionBuilder}
|
|
656
656
|
*/
|
|
657
657
|
username(A) {
|
|
658
|
-
const I =
|
|
659
|
-
return
|
|
658
|
+
const I = R(A, C.__wbindgen_malloc, C.__wbindgen_realloc), g = k, B = C.sessionbuilder_username(this.__wbg_ptr, I, g);
|
|
659
|
+
return c.__wrap(B);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
Symbol.dispose && (
|
|
662
|
+
Symbol.dispose && (c.prototype[Symbol.dispose] = c.prototype.free);
|
|
663
663
|
class P {
|
|
664
664
|
static __wrap(A) {
|
|
665
665
|
const I = Object.create(P.prototype);
|
|
666
|
-
return I.__wbg_ptr = A,
|
|
666
|
+
return I.__wbg_ptr = A, kA.register(I, I.__wbg_ptr, I), I;
|
|
667
667
|
}
|
|
668
668
|
__destroy_into_raw() {
|
|
669
669
|
const A = this.__wbg_ptr;
|
|
670
|
-
return this.__wbg_ptr = 0,
|
|
670
|
+
return this.__wbg_ptr = 0, kA.unregister(this), A;
|
|
671
671
|
}
|
|
672
672
|
free() {
|
|
673
673
|
const A = this.__destroy_into_raw();
|
|
@@ -680,7 +680,7 @@ class P {
|
|
|
680
680
|
let A, I;
|
|
681
681
|
try {
|
|
682
682
|
const g = C.sessionterminationinfo_reason(this.__wbg_ptr);
|
|
683
|
-
return A = g[0], I = g[1],
|
|
683
|
+
return A = g[0], I = g[1], y(g[0], g[1]);
|
|
684
684
|
} finally {
|
|
685
685
|
C.__wbindgen_free(A, I, 1);
|
|
686
686
|
}
|
|
@@ -688,10 +688,10 @@ class P {
|
|
|
688
688
|
}
|
|
689
689
|
Symbol.dispose && (P.prototype[Symbol.dispose] = P.prototype.free);
|
|
690
690
|
function JA(Q) {
|
|
691
|
-
const A =
|
|
691
|
+
const A = R(Q, C.__wbindgen_malloc, C.__wbindgen_realloc), I = k;
|
|
692
692
|
C.setup(A, I);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function UA() {
|
|
695
695
|
return {
|
|
696
696
|
__proto__: null,
|
|
697
697
|
"./ironrdp_web_bg.js": {
|
|
@@ -701,8 +701,8 @@ function cA() {
|
|
|
701
701
|
return h(g) ? 16777215 : g ? 1 : 0;
|
|
702
702
|
},
|
|
703
703
|
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(A, I) {
|
|
704
|
-
const g = gA(I), B =
|
|
705
|
-
|
|
704
|
+
const g = gA(I), B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
705
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
706
706
|
},
|
|
707
707
|
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(A) {
|
|
708
708
|
return typeof A == "function";
|
|
@@ -722,51 +722,56 @@ function cA() {
|
|
|
722
722
|
},
|
|
723
723
|
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(A, I) {
|
|
724
724
|
const g = I, B = typeof g == "number" ? g : void 0;
|
|
725
|
-
|
|
725
|
+
M().setFloat64(A + 8, h(B) ? 0 : B, true), M().setInt32(A + 0, !h(B), true);
|
|
726
726
|
},
|
|
727
727
|
__wbg___wbindgen_string_get_b0ca35b86a603356: function(A, I) {
|
|
728
728
|
const g = I, B = typeof g == "string" ? g : void 0;
|
|
729
|
-
var E = h(B) ? 0 :
|
|
730
|
-
|
|
729
|
+
var E = h(B) ? 0 : R(B, C.__wbindgen_malloc, C.__wbindgen_realloc), D = k;
|
|
730
|
+
M().setInt32(A + 4, D, true), M().setInt32(A + 0, E, true);
|
|
731
731
|
},
|
|
732
732
|
__wbg___wbindgen_throw_344f42d3211c4765: function(A, I) {
|
|
733
|
-
throw new Error(
|
|
733
|
+
throw new Error(y(A, I));
|
|
734
734
|
},
|
|
735
735
|
__wbg__wbg_cb_unref_fffb441def202758: function(A) {
|
|
736
736
|
A._wbg_cb_unref();
|
|
737
737
|
},
|
|
738
738
|
__wbg_addEventListener_520e749bbae24529: function() {
|
|
739
|
-
return
|
|
740
|
-
A.addEventListener(
|
|
739
|
+
return o(function(A, I, g, B, E) {
|
|
740
|
+
A.addEventListener(y(I, g), B, E);
|
|
741
741
|
}, arguments);
|
|
742
742
|
},
|
|
743
743
|
__wbg_addEventListener_d85450ee1320c989: function() {
|
|
744
|
-
return
|
|
745
|
-
A.addEventListener(
|
|
744
|
+
return o(function(A, I, g, B) {
|
|
745
|
+
A.addEventListener(y(I, g), B);
|
|
746
|
+
}, arguments);
|
|
747
|
+
},
|
|
748
|
+
__wbg_apply_23dd4d2439189415: function() {
|
|
749
|
+
return o(function(A, I, g) {
|
|
750
|
+
return Reflect.apply(A, I, g);
|
|
746
751
|
}, arguments);
|
|
747
752
|
},
|
|
748
753
|
__wbg_apply_3ac86a26fdb56c05: function() {
|
|
749
|
-
return
|
|
754
|
+
return o(function(A, I, g) {
|
|
750
755
|
return A.apply(I, g);
|
|
751
756
|
}, arguments);
|
|
752
757
|
},
|
|
753
758
|
__wbg_arrayBuffer_3b637f0fa65c5351: function() {
|
|
754
|
-
return
|
|
759
|
+
return o(function(A) {
|
|
755
760
|
return A.arrayBuffer();
|
|
756
761
|
}, arguments);
|
|
757
762
|
},
|
|
758
763
|
__wbg_call_8a2dd23819f8a60a: function() {
|
|
759
|
-
return
|
|
764
|
+
return o(function(A, I) {
|
|
760
765
|
return A.call(I);
|
|
761
766
|
}, arguments);
|
|
762
767
|
},
|
|
763
768
|
__wbg_call_a6e5c5dce5018821: function() {
|
|
764
|
-
return
|
|
769
|
+
return o(function(A, I, g) {
|
|
765
770
|
return A.call(I, g);
|
|
766
771
|
}, arguments);
|
|
767
772
|
},
|
|
768
773
|
__wbg_call_e3b662382210db98: function() {
|
|
769
|
-
return
|
|
774
|
+
return o(function(A, I, g, B) {
|
|
770
775
|
return A.call(I, g, B);
|
|
771
776
|
}, arguments);
|
|
772
777
|
},
|
|
@@ -780,10 +785,10 @@ function cA() {
|
|
|
780
785
|
return Z.__wrap(A);
|
|
781
786
|
},
|
|
782
787
|
__wbg_clipboarditem_new: function(A) {
|
|
783
|
-
return
|
|
788
|
+
return f.__wrap(A);
|
|
784
789
|
},
|
|
785
790
|
__wbg_close_c65ca0257e895318: function() {
|
|
786
|
-
return
|
|
791
|
+
return o(function(A) {
|
|
787
792
|
A.close();
|
|
788
793
|
}, arguments);
|
|
789
794
|
},
|
|
@@ -797,7 +802,7 @@ function cA() {
|
|
|
797
802
|
console.debug(A);
|
|
798
803
|
},
|
|
799
804
|
__wbg_dispatchEvent_ca78eaf3d469bc25: function() {
|
|
800
|
-
return
|
|
805
|
+
return o(function(A, I) {
|
|
801
806
|
return A.dispatchEvent(I);
|
|
802
807
|
}, arguments);
|
|
803
808
|
},
|
|
@@ -807,7 +812,7 @@ function cA() {
|
|
|
807
812
|
__wbg_error_a6fa202b58aa1cd3: function(A, I) {
|
|
808
813
|
let g, B;
|
|
809
814
|
try {
|
|
810
|
-
g = A, B = I, console.error(
|
|
815
|
+
g = A, B = I, console.error(y(A, I));
|
|
811
816
|
} finally {
|
|
812
817
|
C.__wbindgen_free(g, B, 1);
|
|
813
818
|
}
|
|
@@ -819,24 +824,24 @@ function cA() {
|
|
|
819
824
|
return Array.from(A);
|
|
820
825
|
},
|
|
821
826
|
__wbg_getContext_e79ddf6a9cb3cc76: function() {
|
|
822
|
-
return
|
|
823
|
-
const B = A.getContext(
|
|
827
|
+
return o(function(A, I, g) {
|
|
828
|
+
const B = A.getContext(y(I, g));
|
|
824
829
|
return h(B) ? 0 : L(B);
|
|
825
830
|
}, arguments);
|
|
826
831
|
},
|
|
827
832
|
__wbg_getRandomValues_3f44b700395062e5: function() {
|
|
828
|
-
return
|
|
829
|
-
globalThis.crypto.getRandomValues(
|
|
833
|
+
return o(function(A, I) {
|
|
834
|
+
globalThis.crypto.getRandomValues(t(A, I));
|
|
830
835
|
}, arguments);
|
|
831
836
|
},
|
|
832
837
|
__wbg_getRandomValues_bf16787eede473f5: function() {
|
|
833
|
-
return
|
|
834
|
-
globalThis.crypto.getRandomValues(
|
|
838
|
+
return o(function(A, I) {
|
|
839
|
+
globalThis.crypto.getRandomValues(t(A, I));
|
|
835
840
|
}, arguments);
|
|
836
841
|
},
|
|
837
842
|
__wbg_getRandomValues_cc7f052a444bb2ce: function() {
|
|
838
|
-
return
|
|
839
|
-
globalThis.crypto.getRandomValues(
|
|
843
|
+
return o(function(A, I) {
|
|
844
|
+
globalThis.crypto.getRandomValues(t(A, I));
|
|
840
845
|
}, arguments);
|
|
841
846
|
},
|
|
842
847
|
__wbg_getTime_d6f070c088c9b5ed: function(A) {
|
|
@@ -846,10 +851,13 @@ function cA() {
|
|
|
846
851
|
return A[I >>> 0];
|
|
847
852
|
},
|
|
848
853
|
__wbg_get_78f252d074a84d0b: function() {
|
|
849
|
-
return
|
|
854
|
+
return o(function(A, I) {
|
|
850
855
|
return Reflect.get(A, I);
|
|
851
856
|
}, arguments);
|
|
852
857
|
},
|
|
858
|
+
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(A, I) {
|
|
859
|
+
return A[I >>> 0];
|
|
860
|
+
},
|
|
853
861
|
__wbg_height_6eec812c213259a1: function(A) {
|
|
854
862
|
return A.height;
|
|
855
863
|
},
|
|
@@ -922,6 +930,9 @@ function cA() {
|
|
|
922
930
|
__wbg_ironerror_new: function(A) {
|
|
923
931
|
return T.__wrap(A);
|
|
924
932
|
},
|
|
933
|
+
__wbg_isArray_0677c962b281d01a: function(A) {
|
|
934
|
+
return Array.isArray(A);
|
|
935
|
+
},
|
|
925
936
|
__wbg_length_1f0964f4a5e2c6d8: function(A) {
|
|
926
937
|
return A.length;
|
|
927
938
|
},
|
|
@@ -938,15 +949,15 @@ function cA() {
|
|
|
938
949
|
return A.navigator;
|
|
939
950
|
},
|
|
940
951
|
__wbg_new_08cb2fa678b17a48: function() {
|
|
941
|
-
return
|
|
942
|
-
return new URL(
|
|
952
|
+
return o(function(A, I) {
|
|
953
|
+
return new URL(y(A, I));
|
|
943
954
|
}, arguments);
|
|
944
955
|
},
|
|
945
956
|
__wbg_new_0_3da9e97f24fc69be: function() {
|
|
946
957
|
return /* @__PURE__ */ new Date();
|
|
947
958
|
},
|
|
948
959
|
__wbg_new_0d809930cd1354c6: function() {
|
|
949
|
-
return
|
|
960
|
+
return o(function() {
|
|
950
961
|
return new Headers();
|
|
951
962
|
}, arguments);
|
|
952
963
|
},
|
|
@@ -957,8 +968,8 @@ function cA() {
|
|
|
957
968
|
return new Array();
|
|
958
969
|
},
|
|
959
970
|
__wbg_new_bf8729ffe10e9ee7: function() {
|
|
960
|
-
return
|
|
961
|
-
return new WebSocket(
|
|
971
|
+
return o(function(A, I) {
|
|
972
|
+
return new WebSocket(y(A, I));
|
|
962
973
|
}, arguments);
|
|
963
974
|
},
|
|
964
975
|
__wbg_new_cd45aabdf6073e84: function(A) {
|
|
@@ -968,7 +979,7 @@ function cA() {
|
|
|
968
979
|
return new Object();
|
|
969
980
|
},
|
|
970
981
|
__wbg_new_f0787df90791d9ba: function() {
|
|
971
|
-
return
|
|
982
|
+
return o(function() {
|
|
972
983
|
return new URLSearchParams();
|
|
973
984
|
}, arguments);
|
|
974
985
|
},
|
|
@@ -976,7 +987,7 @@ function cA() {
|
|
|
976
987
|
return new Uint32Array(dA(A, I));
|
|
977
988
|
},
|
|
978
989
|
__wbg_new_from_slice_77cdfb7977362f3c: function(A, I) {
|
|
979
|
-
return new Uint8Array(
|
|
990
|
+
return new Uint8Array(t(A, I));
|
|
980
991
|
},
|
|
981
992
|
__wbg_new_typed_1824d93f294193e5: function(A, I) {
|
|
982
993
|
try {
|
|
@@ -995,27 +1006,27 @@ function cA() {
|
|
|
995
1006
|
}
|
|
996
1007
|
},
|
|
997
1008
|
__wbg_new_with_event_init_dict_7b62c0f9fb241877: function() {
|
|
998
|
-
return
|
|
999
|
-
return new CloseEvent(
|
|
1009
|
+
return o(function(A, I, g) {
|
|
1010
|
+
return new CloseEvent(y(A, I), g);
|
|
1000
1011
|
}, arguments);
|
|
1001
1012
|
},
|
|
1002
1013
|
__wbg_new_with_str_54bc0f9c32770e1e: function() {
|
|
1003
|
-
return
|
|
1004
|
-
return new Request(
|
|
1014
|
+
return o(function(A, I) {
|
|
1015
|
+
return new Request(y(A, I));
|
|
1005
1016
|
}, arguments);
|
|
1006
1017
|
},
|
|
1007
1018
|
__wbg_new_with_str_and_init_d95cbe11ce28e65e: function() {
|
|
1008
|
-
return
|
|
1009
|
-
return new Request(
|
|
1019
|
+
return o(function(A, I, g) {
|
|
1020
|
+
return new Request(y(A, I), g);
|
|
1010
1021
|
}, arguments);
|
|
1011
1022
|
},
|
|
1012
1023
|
__wbg_new_with_u8_array_sequence_bdda73b0f202f149: function() {
|
|
1013
|
-
return
|
|
1024
|
+
return o(function(A) {
|
|
1014
1025
|
return new Blob(A);
|
|
1015
1026
|
}, arguments);
|
|
1016
1027
|
},
|
|
1017
1028
|
__wbg_new_with_u8_clamped_array_and_sh_2767e4741c267d25: function() {
|
|
1018
|
-
return
|
|
1029
|
+
return o(function(A, I, g, B) {
|
|
1019
1030
|
return new ImageData(VA(A, I), g >>> 0, B >>> 0);
|
|
1020
1031
|
}, arguments);
|
|
1021
1032
|
},
|
|
@@ -1042,13 +1053,13 @@ function cA() {
|
|
|
1042
1053
|
return A.performance;
|
|
1043
1054
|
},
|
|
1044
1055
|
__wbg_prototypesetcall_4770620bbe4688a0: function(A, I, g) {
|
|
1045
|
-
Uint8Array.prototype.set.call(
|
|
1056
|
+
Uint8Array.prototype.set.call(t(A, I), g);
|
|
1046
1057
|
},
|
|
1047
1058
|
__wbg_push_d2ae3af0c1217ae6: function(A, I) {
|
|
1048
1059
|
return A.push(I);
|
|
1049
1060
|
},
|
|
1050
1061
|
__wbg_putImageData_a4dee11e08ab9ac8: function() {
|
|
1051
|
-
return
|
|
1062
|
+
return o(function(A, I, g, B) {
|
|
1052
1063
|
A.putImageData(I, g, B);
|
|
1053
1064
|
}, arguments);
|
|
1054
1065
|
},
|
|
@@ -1062,54 +1073,54 @@ function cA() {
|
|
|
1062
1073
|
return A.readyState;
|
|
1063
1074
|
},
|
|
1064
1075
|
__wbg_reason_5dc8e429d537d6a9: function(A, I) {
|
|
1065
|
-
const g = I.reason, B =
|
|
1066
|
-
|
|
1076
|
+
const g = I.reason, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1077
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
1067
1078
|
},
|
|
1068
1079
|
__wbg_removeEventListener_a3f23c70077bdcc1: function() {
|
|
1069
|
-
return
|
|
1070
|
-
A.removeEventListener(
|
|
1080
|
+
return o(function(A, I, g, B) {
|
|
1081
|
+
A.removeEventListener(y(I, g), B);
|
|
1071
1082
|
}, arguments);
|
|
1072
1083
|
},
|
|
1073
1084
|
__wbg_resolve_2191a4dfe481c25b: function(A) {
|
|
1074
1085
|
return Promise.resolve(A);
|
|
1075
1086
|
},
|
|
1076
1087
|
__wbg_search_c905fb82fd20bc6b: function(A, I) {
|
|
1077
|
-
const g = I.search, B =
|
|
1078
|
-
|
|
1088
|
+
const g = I.search, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1089
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
1079
1090
|
},
|
|
1080
1091
|
__wbg_send_1733c45567a373ff: function() {
|
|
1081
|
-
return
|
|
1092
|
+
return o(function(A, I) {
|
|
1082
1093
|
A.send(I);
|
|
1083
1094
|
}, arguments);
|
|
1084
1095
|
},
|
|
1085
1096
|
__wbg_send_df98dd5ede9b3f4d: function() {
|
|
1086
|
-
return
|
|
1087
|
-
A.send(
|
|
1097
|
+
return o(function(A, I, g) {
|
|
1098
|
+
A.send(y(I, g));
|
|
1088
1099
|
}, arguments);
|
|
1089
1100
|
},
|
|
1090
1101
|
__wbg_session_new: function(A) {
|
|
1091
|
-
return
|
|
1102
|
+
return r.__wrap(A);
|
|
1092
1103
|
},
|
|
1093
1104
|
__wbg_sessionterminationinfo_new: function(A) {
|
|
1094
1105
|
return P.__wrap(A);
|
|
1095
1106
|
},
|
|
1096
1107
|
__wbg_setInterval_cbf1c35c6a692d37: function() {
|
|
1097
|
-
return
|
|
1108
|
+
return o(function(A, I) {
|
|
1098
1109
|
return setInterval(A, I);
|
|
1099
1110
|
}, arguments);
|
|
1100
1111
|
},
|
|
1101
1112
|
__wbg_setTimeout_56bcdccbad22fd44: function() {
|
|
1102
|
-
return
|
|
1113
|
+
return o(function(A, I) {
|
|
1103
1114
|
return setTimeout(A, I);
|
|
1104
1115
|
}, arguments);
|
|
1105
1116
|
},
|
|
1106
1117
|
__wbg_set_0de9c62c23d04ad5: function() {
|
|
1107
|
-
return
|
|
1108
|
-
A.set(
|
|
1118
|
+
return o(function(A, I, g, B, E) {
|
|
1119
|
+
A.set(y(I, g), y(B, E));
|
|
1109
1120
|
}, arguments);
|
|
1110
1121
|
},
|
|
1111
1122
|
__wbg_set_8535240470bf2500: function() {
|
|
1112
|
-
return
|
|
1123
|
+
return o(function(A, I, g) {
|
|
1113
1124
|
return Reflect.set(A, I, g);
|
|
1114
1125
|
}, arguments);
|
|
1115
1126
|
},
|
|
@@ -1129,23 +1140,23 @@ function cA() {
|
|
|
1129
1140
|
A.height = I >>> 0;
|
|
1130
1141
|
},
|
|
1131
1142
|
__wbg_set_method_5532d59b92d76467: function(A, I, g) {
|
|
1132
|
-
A.method =
|
|
1143
|
+
A.method = y(I, g);
|
|
1133
1144
|
},
|
|
1134
1145
|
__wbg_set_once_51a9fb6b8af8a72b: function(A, I) {
|
|
1135
1146
|
A.once = I !== 0;
|
|
1136
1147
|
},
|
|
1137
1148
|
__wbg_set_reason_18dc06ea0d60243b: function(A, I, g) {
|
|
1138
|
-
A.reason =
|
|
1149
|
+
A.reason = y(I, g);
|
|
1139
1150
|
},
|
|
1140
1151
|
__wbg_set_search_f9700de567764208: function(A, I, g) {
|
|
1141
|
-
A.search =
|
|
1152
|
+
A.search = y(I, g);
|
|
1142
1153
|
},
|
|
1143
1154
|
__wbg_set_width_8e30d010cd66830d: function(A, I) {
|
|
1144
1155
|
A.width = I >>> 0;
|
|
1145
1156
|
},
|
|
1146
1157
|
__wbg_stack_3b0d974bbf31e44f: function(A, I) {
|
|
1147
|
-
const g = I.stack, B =
|
|
1148
|
-
|
|
1158
|
+
const g = I.stack, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1159
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
1149
1160
|
},
|
|
1150
1161
|
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
1151
1162
|
const A = typeof global > "u" ? null : global;
|
|
@@ -1164,8 +1175,8 @@ function cA() {
|
|
|
1164
1175
|
return h(A) ? 0 : L(A);
|
|
1165
1176
|
},
|
|
1166
1177
|
__wbg_statusText_9f08c32741a99815: function(A, I) {
|
|
1167
|
-
const g = I.statusText, B =
|
|
1168
|
-
|
|
1178
|
+
const g = I.statusText, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1179
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
1169
1180
|
},
|
|
1170
1181
|
__wbg_status_c45b3b9b3033184a: function(A) {
|
|
1171
1182
|
return A.status;
|
|
@@ -1183,13 +1194,13 @@ function cA() {
|
|
|
1183
1194
|
return A.toString();
|
|
1184
1195
|
},
|
|
1185
1196
|
__wbg_url_f6cd241d61f89b82: function(A, I) {
|
|
1186
|
-
const g = I.url, B =
|
|
1187
|
-
|
|
1197
|
+
const g = I.url, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1198
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
1188
1199
|
},
|
|
1189
1200
|
__wbg_userAgent_0558f0ac642f7771: function() {
|
|
1190
|
-
return
|
|
1191
|
-
const g = I.userAgent, B =
|
|
1192
|
-
|
|
1201
|
+
return o(function(A, I) {
|
|
1202
|
+
const g = I.userAgent, B = R(g, C.__wbindgen_malloc, C.__wbindgen_realloc), E = k;
|
|
1203
|
+
M().setInt32(A + 4, E, true), M().setInt32(A + 0, B, true);
|
|
1193
1204
|
}, arguments);
|
|
1194
1205
|
},
|
|
1195
1206
|
__wbg_warn_b1370d804fa3e259: function(A) {
|
|
@@ -1202,31 +1213,31 @@ function cA() {
|
|
|
1202
1213
|
return A.width;
|
|
1203
1214
|
},
|
|
1204
1215
|
__wbindgen_cast_0000000000000001: function(A, I) {
|
|
1205
|
-
return
|
|
1216
|
+
return S(A, I, LA);
|
|
1206
1217
|
},
|
|
1207
1218
|
__wbindgen_cast_0000000000000002: function(A, I) {
|
|
1208
|
-
return
|
|
1219
|
+
return S(A, I, aA);
|
|
1209
1220
|
},
|
|
1210
1221
|
__wbindgen_cast_0000000000000003: function(A, I) {
|
|
1211
|
-
return
|
|
1222
|
+
return S(A, I, HA);
|
|
1212
1223
|
},
|
|
1213
1224
|
__wbindgen_cast_0000000000000004: function(A, I) {
|
|
1214
|
-
return
|
|
1225
|
+
return S(A, I, SA);
|
|
1215
1226
|
},
|
|
1216
1227
|
__wbindgen_cast_0000000000000005: function(A, I) {
|
|
1217
|
-
return
|
|
1228
|
+
return S(A, I, qA);
|
|
1218
1229
|
},
|
|
1219
1230
|
__wbindgen_cast_0000000000000006: function(A, I) {
|
|
1220
|
-
return
|
|
1231
|
+
return S(A, I, KA);
|
|
1221
1232
|
},
|
|
1222
1233
|
__wbindgen_cast_0000000000000007: function(A, I) {
|
|
1223
|
-
return
|
|
1234
|
+
return S(A, I, hA);
|
|
1224
1235
|
},
|
|
1225
1236
|
__wbindgen_cast_0000000000000008: function(A) {
|
|
1226
1237
|
return A;
|
|
1227
1238
|
},
|
|
1228
1239
|
__wbindgen_cast_0000000000000009: function(A, I) {
|
|
1229
|
-
return
|
|
1240
|
+
return y(A, I);
|
|
1230
1241
|
},
|
|
1231
1242
|
__wbindgen_init_externref_table: function() {
|
|
1232
1243
|
const A = C.__wbindgen_externrefs, I = A.grow(4);
|
|
@@ -1244,10 +1255,10 @@ function hA(Q, A) {
|
|
|
1244
1255
|
function aA(Q, A, I) {
|
|
1245
1256
|
C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69(Q, A, I);
|
|
1246
1257
|
}
|
|
1247
|
-
function
|
|
1258
|
+
function HA(Q, A, I) {
|
|
1248
1259
|
C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69_2(Q, A, I);
|
|
1249
1260
|
}
|
|
1250
|
-
function
|
|
1261
|
+
function SA(Q, A, I) {
|
|
1251
1262
|
C.wasm_bindgen__convert__closures_____invoke__h64a57be2ca3e0d69_3(Q, A, I);
|
|
1252
1263
|
}
|
|
1253
1264
|
function LA(Q, A, I) {
|
|
@@ -1261,43 +1272,43 @@ function sA(Q, A, I, g) {
|
|
|
1261
1272
|
function qA(Q, A, I, g, B) {
|
|
1262
1273
|
C.wasm_bindgen__convert__closures_____invoke__h777de2c1fe9da8ab(Q, A, I, g, B);
|
|
1263
1274
|
}
|
|
1264
|
-
const ZA = ["blob", "arraybuffer"],
|
|
1275
|
+
const ZA = ["blob", "arraybuffer"], u = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1265
1276
|
}, unregister: () => {
|
|
1266
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_clipboarddata_free(Q, 1)),
|
|
1277
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_clipboarddata_free(Q, 1)), CA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1267
1278
|
}, unregister: () => {
|
|
1268
1279
|
} } : new FinalizationRegistry((Q) => C.__wbg_clipboarditem_free(Q, 1)), _ = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1269
1280
|
}, unregister: () => {
|
|
1270
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_desktopsize_free(Q, 1)),
|
|
1281
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_desktopsize_free(Q, 1)), EA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1271
1282
|
}, unregister: () => {
|
|
1272
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_deviceevent_free(Q, 1)),
|
|
1283
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_deviceevent_free(Q, 1)), DA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1273
1284
|
}, unregister: () => {
|
|
1274
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_extension_free(Q, 1)),
|
|
1285
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_extension_free(Q, 1)), iA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1275
1286
|
}, unregister: () => {
|
|
1276
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_inputtransaction_free(Q, 1)),
|
|
1287
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_inputtransaction_free(Q, 1)), wA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1277
1288
|
}, unregister: () => {
|
|
1278
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_ironerror_free(Q, 1)),
|
|
1289
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_ironerror_free(Q, 1)), GA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1279
1290
|
}, unregister: () => {
|
|
1280
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_rdcleanpathdetails_free(Q, 1)),
|
|
1291
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_rdcleanpathdetails_free(Q, 1)), oA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1281
1292
|
}, unregister: () => {
|
|
1282
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_rdpfile_free(Q, 1)),
|
|
1293
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_rdpfile_free(Q, 1)), NA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1283
1294
|
}, unregister: () => {
|
|
1284
1295
|
} } : new FinalizationRegistry((Q) => C.__wbg_session_free(Q, 1)), $ = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1285
1296
|
}, unregister: () => {
|
|
1286
|
-
} } : new FinalizationRegistry((Q) => C.__wbg_sessionbuilder_free(Q, 1)),
|
|
1297
|
+
} } : new FinalizationRegistry((Q) => C.__wbg_sessionbuilder_free(Q, 1)), kA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1287
1298
|
}, unregister: () => {
|
|
1288
1299
|
} } : new FinalizationRegistry((Q) => C.__wbg_sessionterminationinfo_free(Q, 1));
|
|
1289
1300
|
function L(Q) {
|
|
1290
1301
|
const A = C.__externref_table_alloc();
|
|
1291
1302
|
return C.__wbindgen_externrefs.set(A, Q), A;
|
|
1292
1303
|
}
|
|
1293
|
-
function
|
|
1304
|
+
function FA(Q) {
|
|
1294
1305
|
if (typeof Q == "number" && (Q >= 1114112 || Q >= 55296 && Q < 57344)) throw new Error(`expected a valid Unicode scalar value, found ${Q}`);
|
|
1295
1306
|
}
|
|
1296
|
-
function
|
|
1307
|
+
function V(Q, A) {
|
|
1297
1308
|
if (!(Q instanceof A))
|
|
1298
1309
|
throw new Error(`expected instance of ${A.name}`);
|
|
1299
1310
|
}
|
|
1300
|
-
const
|
|
1311
|
+
const RA = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1301
1312
|
}, unregister: () => {
|
|
1302
1313
|
} } : new FinalizationRegistry((Q) => C.__wbindgen_destroy_closure(Q.a, Q.b));
|
|
1303
1314
|
function gA(Q) {
|
|
@@ -1339,40 +1350,40 @@ ${Q.stack}` : g;
|
|
|
1339
1350
|
}
|
|
1340
1351
|
function pA(Q, A) {
|
|
1341
1352
|
Q = Q >>> 0;
|
|
1342
|
-
const I =
|
|
1353
|
+
const I = M(), g = [];
|
|
1343
1354
|
for (let B = Q; B < Q + 4 * A; B += 4)
|
|
1344
1355
|
g.push(C.__wbindgen_externrefs.get(I.getUint32(B, true)));
|
|
1345
1356
|
return C.__externref_drop_slice(Q, A), g;
|
|
1346
1357
|
}
|
|
1347
1358
|
function dA(Q, A) {
|
|
1348
|
-
return Q = Q >>> 0,
|
|
1359
|
+
return Q = Q >>> 0, WA().subarray(Q / 4, Q / 4 + A);
|
|
1349
1360
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return Q = Q >>> 0,
|
|
1361
|
+
function t(Q, A) {
|
|
1362
|
+
return Q = Q >>> 0, W().subarray(Q / 1, Q / 1 + A);
|
|
1352
1363
|
}
|
|
1353
1364
|
function VA(Q, A) {
|
|
1354
|
-
return Q = Q >>> 0,
|
|
1365
|
+
return Q = Q >>> 0, xA().subarray(Q / 1, Q / 1 + A);
|
|
1355
1366
|
}
|
|
1356
1367
|
let s = null;
|
|
1357
|
-
function
|
|
1368
|
+
function M() {
|
|
1358
1369
|
return (s === null || s.buffer.detached === true || s.buffer.detached === void 0 && s.buffer !== C.memory.buffer) && (s = new DataView(C.memory.buffer)), s;
|
|
1359
1370
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
1362
|
-
}
|
|
1363
|
-
let x = null;
|
|
1364
|
-
function OA() {
|
|
1365
|
-
return (x === null || x.byteLength === 0) && (x = new Uint32Array(C.memory.buffer)), x;
|
|
1366
|
-
}
|
|
1367
|
-
let t = null;
|
|
1368
|
-
function V() {
|
|
1369
|
-
return (t === null || t.byteLength === 0) && (t = new Uint8Array(C.memory.buffer)), t;
|
|
1371
|
+
function y(Q, A) {
|
|
1372
|
+
return jA(Q >>> 0, A);
|
|
1370
1373
|
}
|
|
1371
1374
|
let b = null;
|
|
1372
1375
|
function WA() {
|
|
1373
|
-
return (b === null || b.byteLength === 0) && (b = new
|
|
1376
|
+
return (b === null || b.byteLength === 0) && (b = new Uint32Array(C.memory.buffer)), b;
|
|
1377
|
+
}
|
|
1378
|
+
let m = null;
|
|
1379
|
+
function W() {
|
|
1380
|
+
return (m === null || m.byteLength === 0) && (m = new Uint8Array(C.memory.buffer)), m;
|
|
1381
|
+
}
|
|
1382
|
+
let O = null;
|
|
1383
|
+
function xA() {
|
|
1384
|
+
return (O === null || O.byteLength === 0) && (O = new Uint8ClampedArray(C.memory.buffer)), O;
|
|
1374
1385
|
}
|
|
1375
|
-
function
|
|
1386
|
+
function o(Q, A) {
|
|
1376
1387
|
try {
|
|
1377
1388
|
return Q.apply(this, A);
|
|
1378
1389
|
} catch (I) {
|
|
@@ -1383,7 +1394,7 @@ function G(Q, A) {
|
|
|
1383
1394
|
function h(Q) {
|
|
1384
1395
|
return Q == null;
|
|
1385
1396
|
}
|
|
1386
|
-
function
|
|
1397
|
+
function S(Q, A, I) {
|
|
1387
1398
|
const g = { a: Q, b: A, cnt: 1 }, B = (...E) => {
|
|
1388
1399
|
g.cnt++;
|
|
1389
1400
|
const D = g.a;
|
|
@@ -1395,20 +1406,20 @@ function H(Q, A, I) {
|
|
|
1395
1406
|
}
|
|
1396
1407
|
};
|
|
1397
1408
|
return B._wbg_cb_unref = () => {
|
|
1398
|
-
--g.cnt === 0 && (C.__wbindgen_destroy_closure(g.a, g.b), g.a = 0,
|
|
1399
|
-
},
|
|
1409
|
+
--g.cnt === 0 && (C.__wbindgen_destroy_closure(g.a, g.b), g.a = 0, RA.unregister(g));
|
|
1410
|
+
}, RA.register(B, g, g), B;
|
|
1400
1411
|
}
|
|
1401
1412
|
function lA(Q, A) {
|
|
1402
1413
|
const I = A(Q.length * 1, 1) >>> 0;
|
|
1403
|
-
return
|
|
1414
|
+
return W().set(Q, I / 1), k = Q.length, I;
|
|
1404
1415
|
}
|
|
1405
|
-
function
|
|
1416
|
+
function R(Q, A, I) {
|
|
1406
1417
|
if (I === void 0) {
|
|
1407
|
-
const i =
|
|
1408
|
-
return
|
|
1418
|
+
const i = X.encode(Q), w = A(i.length, 1) >>> 0;
|
|
1419
|
+
return W().subarray(w, w + i.length).set(i), k = i.length, w;
|
|
1409
1420
|
}
|
|
1410
1421
|
let g = Q.length, B = A(g, 1) >>> 0;
|
|
1411
|
-
const E =
|
|
1422
|
+
const E = W();
|
|
1412
1423
|
let D = 0;
|
|
1413
1424
|
for (; D < g; D++) {
|
|
1414
1425
|
const i = Q.charCodeAt(D);
|
|
@@ -1417,7 +1428,7 @@ function F(Q, A, I) {
|
|
|
1417
1428
|
}
|
|
1418
1429
|
if (D !== g) {
|
|
1419
1430
|
D !== 0 && (Q = Q.slice(D)), B = I(B, g, g = D + Q.length * 3, 1) >>> 0;
|
|
1420
|
-
const i =
|
|
1431
|
+
const i = W().subarray(B + D, B + g), w = X.encodeInto(Q, i);
|
|
1421
1432
|
D += w.written, B = I(B, g, D, 1) >>> 0;
|
|
1422
1433
|
}
|
|
1423
1434
|
return k = D, B;
|
|
@@ -1426,26 +1437,26 @@ function q(Q) {
|
|
|
1426
1437
|
const A = C.__wbindgen_externrefs.get(Q);
|
|
1427
1438
|
return C.__externref_table_dealloc(Q), A;
|
|
1428
1439
|
}
|
|
1429
|
-
let
|
|
1430
|
-
|
|
1431
|
-
const
|
|
1440
|
+
let z = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
1441
|
+
z.decode();
|
|
1442
|
+
const tA = 2146435072;
|
|
1432
1443
|
let AA = 0;
|
|
1433
|
-
function
|
|
1434
|
-
return AA += A, AA >=
|
|
1444
|
+
function jA(Q, A) {
|
|
1445
|
+
return AA += A, AA >= tA && (z = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }), z.decode(), AA = A), z.decode(W().subarray(Q, Q + A));
|
|
1435
1446
|
}
|
|
1436
|
-
const
|
|
1437
|
-
"encodeInto" in
|
|
1438
|
-
const I =
|
|
1447
|
+
const X = new TextEncoder();
|
|
1448
|
+
"encodeInto" in X || (X.encodeInto = function(Q, A) {
|
|
1449
|
+
const I = X.encode(Q);
|
|
1439
1450
|
return A.set(I), {
|
|
1440
1451
|
read: Q.length,
|
|
1441
1452
|
written: I.length
|
|
1442
1453
|
};
|
|
1443
1454
|
});
|
|
1444
1455
|
let k = 0, C;
|
|
1445
|
-
function
|
|
1446
|
-
return C = Q.exports, s = null,
|
|
1456
|
+
function bA(Q, A) {
|
|
1457
|
+
return C = Q.exports, s = null, b = null, m = null, O = null, C.__wbindgen_start(), C;
|
|
1447
1458
|
}
|
|
1448
|
-
async function
|
|
1459
|
+
async function mA(Q, A) {
|
|
1449
1460
|
if (typeof Response == "function" && Q instanceof Response) {
|
|
1450
1461
|
if (typeof WebAssembly.instantiateStreaming == "function")
|
|
1451
1462
|
try {
|
|
@@ -1472,16 +1483,16 @@ async function bA(Q, A) {
|
|
|
1472
1483
|
return false;
|
|
1473
1484
|
}
|
|
1474
1485
|
}
|
|
1475
|
-
async function
|
|
1486
|
+
async function OA(Q) {
|
|
1476
1487
|
if (C !== void 0) return C;
|
|
1477
1488
|
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));
|
|
1478
|
-
const A =
|
|
1489
|
+
const A = UA();
|
|
1479
1490
|
(typeof Q == "string" || typeof Request == "function" && Q instanceof Request || typeof URL == "function" && Q instanceof URL) && (Q = fetch(Q));
|
|
1480
|
-
const { instance: I, module: g } = await
|
|
1481
|
-
return
|
|
1491
|
+
const { instance: I, module: g } = await mA(await Q, A);
|
|
1492
|
+
return bA(I);
|
|
1482
1493
|
}
|
|
1483
1494
|
const XA = "avc1.640033";
|
|
1484
|
-
function
|
|
1495
|
+
function MA() {
|
|
1485
1496
|
return {
|
|
1486
1497
|
codec: XA,
|
|
1487
1498
|
optimizeForLatency: true,
|
|
@@ -1493,12 +1504,12 @@ async function BI() {
|
|
|
1493
1504
|
if (typeof VideoDecoder > "u" || typeof EncodedVideoChunk > "u")
|
|
1494
1505
|
return false;
|
|
1495
1506
|
try {
|
|
1496
|
-
return (await VideoDecoder.isConfigSupported(
|
|
1507
|
+
return (await VideoDecoder.isConfigSupported(MA())).supported === true;
|
|
1497
1508
|
} catch {
|
|
1498
1509
|
return false;
|
|
1499
1510
|
}
|
|
1500
1511
|
}
|
|
1501
|
-
class
|
|
1512
|
+
const _cA = class _cA {
|
|
1502
1513
|
constructor(A = {}) {
|
|
1503
1514
|
__publicField(this, "stats", {
|
|
1504
1515
|
frames: 0,
|
|
@@ -1568,7 +1579,7 @@ class QI {
|
|
|
1568
1579
|
waitingSince: null,
|
|
1569
1580
|
pending: /* @__PURE__ */ new Map()
|
|
1570
1581
|
};
|
|
1571
|
-
return I.decoder.configure(
|
|
1582
|
+
return I.decoder.configure(MA()), this.surfaces.set(A, I), I;
|
|
1572
1583
|
}
|
|
1573
1584
|
output(A, I) {
|
|
1574
1585
|
const g = I.timestamp, B = A.pending.get(g);
|
|
@@ -1595,37 +1606,47 @@ class QI {
|
|
|
1595
1606
|
}
|
|
1596
1607
|
/** The RGBA of the frame's regions, in turn. */
|
|
1597
1608
|
async readRegions(A, I) {
|
|
1598
|
-
const g = A.visibleRect ?? { x: 0, y: 0, width: A.codedWidth, height: A.codedHeight }, B = I.destination, [E, D] = g.width >= B.right && g.height >= B.bottom ? [0, 0] : [B.left, B.top], i = I.regions.map((
|
|
1599
|
-
x:
|
|
1600
|
-
y:
|
|
1601
|
-
width:
|
|
1602
|
-
height:
|
|
1609
|
+
const g = A.visibleRect ?? { x: 0, y: 0, width: A.codedWidth, height: A.codedHeight }, B = I.destination, [E, D] = g.width >= B.right && g.height >= B.bottom ? [0, 0] : [B.left, B.top], i = I.regions.map((G) => ({
|
|
1610
|
+
x: G.left - E,
|
|
1611
|
+
y: G.top - D,
|
|
1612
|
+
width: G.right - G.left,
|
|
1613
|
+
height: G.bottom - G.top
|
|
1603
1614
|
}));
|
|
1604
|
-
for (const
|
|
1605
|
-
if (
|
|
1615
|
+
for (const G of i)
|
|
1616
|
+
if (G.x < 0 || G.y < 0 || G.x + G.width > g.width || G.y + G.height > g.height)
|
|
1606
1617
|
throw new Error(
|
|
1607
|
-
`region ${JSON.stringify(
|
|
1618
|
+
`region ${JSON.stringify(G)} is outside the ${g.width}x${g.height} picture`
|
|
1608
1619
|
);
|
|
1609
|
-
const w = i.reduce((
|
|
1620
|
+
const w = i.reduce((G, H) => G + H.width * H.height * 4, 0), F = new Uint8Array(w);
|
|
1610
1621
|
if (i.length === 0)
|
|
1611
|
-
return
|
|
1612
|
-
const a = Math.min(...i.map((
|
|
1622
|
+
return F;
|
|
1623
|
+
const a = Math.min(...i.map((G) => G.x)), J = Math.min(...i.map((G) => G.y)), Y = {
|
|
1613
1624
|
x: a,
|
|
1614
1625
|
y: J,
|
|
1615
|
-
width: Math.max(...i.map((
|
|
1616
|
-
height: Math.max(...i.map((
|
|
1617
|
-
}
|
|
1618
|
-
if (
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
+
width: Math.max(...i.map((G) => G.x + G.width)) - a,
|
|
1627
|
+
height: Math.max(...i.map((G) => G.y + G.height)) - J
|
|
1628
|
+
};
|
|
1629
|
+
if (i.length === 1)
|
|
1630
|
+
return await this.readBox(A, g, Y, F), F;
|
|
1631
|
+
if (Y.width * Y.height * 4 > w * _cA.BOX_WASTE) {
|
|
1632
|
+
let G = 0;
|
|
1633
|
+
for (const H of i) {
|
|
1634
|
+
const d = H.width * H.height * 4;
|
|
1635
|
+
await this.readBox(A, g, H, F.subarray(G, G + d)), G += d;
|
|
1636
|
+
}
|
|
1637
|
+
return F;
|
|
1638
|
+
}
|
|
1639
|
+
const l = new Uint8Array(Y.width * Y.height * 4);
|
|
1640
|
+
await this.readBox(A, g, Y, l);
|
|
1641
|
+
let v = 0;
|
|
1642
|
+
for (const G of i) {
|
|
1643
|
+
const H = G.width * 4;
|
|
1644
|
+
for (let d = 0; d < G.height; d++) {
|
|
1645
|
+
const BA = ((G.y - Y.y + d) * Y.width + (G.x - Y.x)) * 4;
|
|
1646
|
+
F.set(l.subarray(BA, BA + H), v), v += H;
|
|
1626
1647
|
}
|
|
1627
1648
|
}
|
|
1628
|
-
return
|
|
1649
|
+
return F;
|
|
1629
1650
|
}
|
|
1630
1651
|
async readBox(A, I, g, B) {
|
|
1631
1652
|
var _a, _b;
|
|
@@ -1684,7 +1705,10 @@ class QI {
|
|
|
1684
1705
|
for (const { frame: g, done: B } of I)
|
|
1685
1706
|
B(g.id, null, A);
|
|
1686
1707
|
}
|
|
1687
|
-
}
|
|
1708
|
+
};
|
|
1709
|
+
/** A bounding box may be this many times what its regions hold before they are read one by one instead. */
|
|
1710
|
+
__publicField(_cA, "BOX_WASTE", 2);
|
|
1711
|
+
let cA = _cA;
|
|
1688
1712
|
function yA(Q) {
|
|
1689
1713
|
if (Q.state !== "closed")
|
|
1690
1714
|
try {
|
|
@@ -1707,51 +1731,51 @@ const j = {
|
|
|
1707
1731
|
*/
|
|
1708
1732
|
RANGE: 2
|
|
1709
1733
|
};
|
|
1710
|
-
function TA(Q) {
|
|
1711
|
-
return new o("files_available_callback", Q);
|
|
1712
|
-
}
|
|
1713
1734
|
function fA(Q) {
|
|
1714
|
-
return new
|
|
1735
|
+
return new N("files_available_callback", Q);
|
|
1715
1736
|
}
|
|
1716
|
-
function
|
|
1717
|
-
return new
|
|
1718
|
-
}
|
|
1719
|
-
function PA(Q) {
|
|
1720
|
-
return new o("lock_callback", Q);
|
|
1737
|
+
function TA(Q) {
|
|
1738
|
+
return new N("file_contents_request_callback", Q);
|
|
1721
1739
|
}
|
|
1722
|
-
function
|
|
1723
|
-
return new
|
|
1740
|
+
function nA(Q) {
|
|
1741
|
+
return new N("file_contents_response_callback", Q);
|
|
1724
1742
|
}
|
|
1725
1743
|
function rA(Q) {
|
|
1726
|
-
return new
|
|
1744
|
+
return new N("lock_callback", Q);
|
|
1745
|
+
}
|
|
1746
|
+
function PA(Q) {
|
|
1747
|
+
return new N("unlock_callback", Q);
|
|
1727
1748
|
}
|
|
1728
1749
|
function vA(Q) {
|
|
1729
|
-
return new
|
|
1750
|
+
return new N("locks_expired_callback", Q);
|
|
1730
1751
|
}
|
|
1731
|
-
|
|
1752
|
+
function zA(Q) {
|
|
1753
|
+
return new N("format_list_response_callback", Q);
|
|
1754
|
+
}
|
|
1755
|
+
const QI = {
|
|
1732
1756
|
PostScript: "MS Publisher Imagesetter",
|
|
1733
1757
|
MicrosoftPrintToPdf: "Microsoft Print to PDF"
|
|
1734
1758
|
};
|
|
1759
|
+
function CI(Q) {
|
|
1760
|
+
return new N("print_job_stream_callbacks", Q);
|
|
1761
|
+
}
|
|
1735
1762
|
function EI(Q) {
|
|
1736
|
-
return new
|
|
1763
|
+
return new N("printer_name", Q);
|
|
1737
1764
|
}
|
|
1738
1765
|
function DI(Q) {
|
|
1739
|
-
return new
|
|
1766
|
+
return new N("printer_device_id", Q);
|
|
1740
1767
|
}
|
|
1741
1768
|
function iI(Q) {
|
|
1742
|
-
return new
|
|
1769
|
+
return new N("printer_driver_name", Q);
|
|
1743
1770
|
}
|
|
1744
|
-
function
|
|
1745
|
-
return new
|
|
1771
|
+
function eA(Q) {
|
|
1772
|
+
return new N("request_file_contents", Q);
|
|
1746
1773
|
}
|
|
1747
1774
|
function uA(Q) {
|
|
1748
|
-
return new
|
|
1749
|
-
}
|
|
1750
|
-
function eA(Q) {
|
|
1751
|
-
return new o("submit_file_contents", Q);
|
|
1775
|
+
return new N("submit_file_contents", Q);
|
|
1752
1776
|
}
|
|
1753
1777
|
function _A(Q) {
|
|
1754
|
-
return new
|
|
1778
|
+
return new N("initiate_file_copy", Q);
|
|
1755
1779
|
}
|
|
1756
1780
|
class $A {
|
|
1757
1781
|
constructor() {
|
|
@@ -1824,7 +1848,7 @@ class AI {
|
|
|
1824
1848
|
}
|
|
1825
1849
|
}
|
|
1826
1850
|
}
|
|
1827
|
-
const
|
|
1851
|
+
const _x = class _x {
|
|
1828
1852
|
constructor(A, I, g) {
|
|
1829
1853
|
__publicField(this, "name", "opfs");
|
|
1830
1854
|
/** Sequence counter for generating unique temp file names. */
|
|
@@ -1839,7 +1863,7 @@ const _O = class _O {
|
|
|
1839
1863
|
*/
|
|
1840
1864
|
static async create(A, I) {
|
|
1841
1865
|
const g = I ?? `s-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, B = await A.getDirectoryHandle("ironrdp-transfers", { create: true }), E = await B.getDirectoryHandle(g, { create: true });
|
|
1842
|
-
return
|
|
1866
|
+
return _x.cleanupStale(B, g), new _x(A, E, g);
|
|
1843
1867
|
}
|
|
1844
1868
|
// 24 hours
|
|
1845
1869
|
/**
|
|
@@ -1860,7 +1884,7 @@ const _O = class _O {
|
|
|
1860
1884
|
if (!E)
|
|
1861
1885
|
continue;
|
|
1862
1886
|
const D = Number(E[1]);
|
|
1863
|
-
if (g - D >
|
|
1887
|
+
if (g - D > _x.STALE_SESSION_THRESHOLD_MS)
|
|
1864
1888
|
try {
|
|
1865
1889
|
await A.removeEntry(B, { recursive: true });
|
|
1866
1890
|
} catch {
|
|
@@ -1917,8 +1941,8 @@ const _O = class _O {
|
|
|
1917
1941
|
}
|
|
1918
1942
|
};
|
|
1919
1943
|
/** Maximum age (in milliseconds) before a session directory is considered stale. */
|
|
1920
|
-
__publicField(
|
|
1921
|
-
let
|
|
1944
|
+
__publicField(_x, "STALE_SESSION_THRESHOLD_MS", 1440 * 60 * 1e3);
|
|
1945
|
+
let x = _x;
|
|
1922
1946
|
function II(Q) {
|
|
1923
1947
|
let A = Q.replace(/[\u0000-\u001f]/g, "");
|
|
1924
1948
|
A = A.replace(/[/\\]/g, "_"), A = A.replace(/^\.+/, ""), A.length === 0 && (A = "unnamed");
|
|
@@ -1937,15 +1961,15 @@ async function gI(Q = "auto", A) {
|
|
|
1937
1961
|
if (typeof ((_b = (_a = globalThis.navigator) == null ? void 0 : _a.storage) == null ? void 0 : _b.getDirectory) == "function")
|
|
1938
1962
|
try {
|
|
1939
1963
|
const I = await navigator.storage.getDirectory();
|
|
1940
|
-
if (await
|
|
1941
|
-
return
|
|
1964
|
+
if (await x.probe(I))
|
|
1965
|
+
return x.create(I, A);
|
|
1942
1966
|
console.debug("OPFS probe failed (createWritable not functional), falling back to blob storage");
|
|
1943
1967
|
} catch (I) {
|
|
1944
1968
|
console.debug("OPFS unavailable, falling back to blob storage:", I);
|
|
1945
1969
|
}
|
|
1946
1970
|
return new YA();
|
|
1947
1971
|
}
|
|
1948
|
-
const
|
|
1972
|
+
const _U = class _U {
|
|
1949
1973
|
constructor(A) {
|
|
1950
1974
|
__publicField(this, "session");
|
|
1951
1975
|
__publicField(this, "chunkSize");
|
|
@@ -2033,7 +2057,7 @@ const _c = class _c {
|
|
|
2033
2057
|
// with invokeExtension() to keep the Session interface protocol-agnostic.
|
|
2034
2058
|
sendRequestFileContents(A, I, g, B, E, D) {
|
|
2035
2059
|
this.ensureSession().invokeExtension(
|
|
2036
|
-
|
|
2060
|
+
eA({
|
|
2037
2061
|
stream_id: A,
|
|
2038
2062
|
file_index: I,
|
|
2039
2063
|
flags: g,
|
|
@@ -2045,7 +2069,7 @@ const _c = class _c {
|
|
|
2045
2069
|
}
|
|
2046
2070
|
sendSubmitFileContents(A, I, g) {
|
|
2047
2071
|
var _a;
|
|
2048
|
-
(_a = this.session) == null ? void 0 : _a.invokeExtension(
|
|
2072
|
+
(_a = this.session) == null ? void 0 : _a.invokeExtension(uA({ stream_id: A, is_error: I, data: g }));
|
|
2049
2073
|
}
|
|
2050
2074
|
sendInitiateFileCopy(A) {
|
|
2051
2075
|
this.ensureSession().invokeExtension(_A(A));
|
|
@@ -2056,15 +2080,15 @@ const _c = class _c {
|
|
|
2056
2080
|
*/
|
|
2057
2081
|
getBuilderExtensions() {
|
|
2058
2082
|
return [
|
|
2059
|
-
|
|
2083
|
+
fA(
|
|
2060
2084
|
(A, I) => this.handleFilesAvailable(A, I)
|
|
2061
2085
|
),
|
|
2062
|
-
|
|
2086
|
+
TA((A) => this.handleFileContentsRequest(A)),
|
|
2063
2087
|
nA((A) => this.handleFileContentsResponse(A)),
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2088
|
+
rA((A) => this.handleLock(A)),
|
|
2089
|
+
PA((A) => this.handleUnlock(A)),
|
|
2090
|
+
vA((A) => this.handleLocksExpired(A)),
|
|
2091
|
+
zA((A) => this.handleFormatListResponse(A))
|
|
2068
2092
|
];
|
|
2069
2093
|
}
|
|
2070
2094
|
/**
|
|
@@ -2199,19 +2223,19 @@ const _c = class _c {
|
|
|
2199
2223
|
* ```
|
|
2200
2224
|
*/
|
|
2201
2225
|
async downloadFilesConcurrent(A, I = {}) {
|
|
2202
|
-
const g = I.maxConcurrent ?? 3, B = /* @__PURE__ */ new Map(), E = [], D = A.map((w,
|
|
2226
|
+
const g = I.maxConcurrent ?? 3, B = /* @__PURE__ */ new Map(), E = [], D = A.map((w, F) => async () => {
|
|
2203
2227
|
try {
|
|
2204
|
-
const { completion: a } = this.downloadFile(w,
|
|
2205
|
-
B.set(
|
|
2228
|
+
const { completion: a } = this.downloadFile(w, F), J = await a;
|
|
2229
|
+
B.set(F, J);
|
|
2206
2230
|
} catch (a) {
|
|
2207
|
-
E.push({ index:
|
|
2231
|
+
E.push({ index: F, error: a });
|
|
2208
2232
|
}
|
|
2209
2233
|
}), i = [];
|
|
2210
2234
|
for (const w of D) {
|
|
2211
|
-
const
|
|
2212
|
-
i.splice(i.indexOf(
|
|
2235
|
+
const F = w().finally(() => {
|
|
2236
|
+
i.splice(i.indexOf(F), 1);
|
|
2213
2237
|
});
|
|
2214
|
-
i.push(
|
|
2238
|
+
i.push(F), i.length >= g && await Promise.race(i);
|
|
2215
2239
|
}
|
|
2216
2240
|
if (await Promise.all(i), E.length > 0)
|
|
2217
2241
|
throw new Error(
|
|
@@ -2239,7 +2263,7 @@ const _c = class _c {
|
|
|
2239
2263
|
*/
|
|
2240
2264
|
uploadFiles(A) {
|
|
2241
2265
|
this.uploadState !== void 0 && this.supersedeUpload(), this.retainedFiles = void 0;
|
|
2242
|
-
const I =
|
|
2266
|
+
const I = _U.normalizeToDroppedFiles(A), g = /* @__PURE__ */ new Map();
|
|
2243
2267
|
for (let w = 0; w < I.length; w++)
|
|
2244
2268
|
g.set(w, this.generateStreamId());
|
|
2245
2269
|
const B = I.map((w) => ({
|
|
@@ -2248,7 +2272,7 @@ const _c = class _c {
|
|
|
2248
2272
|
lastModified: w.lastModified,
|
|
2249
2273
|
path: w.path,
|
|
2250
2274
|
isDirectory: w.isDirectory
|
|
2251
|
-
})), E = I.filter((w) => w.isDirectory !== true).length, D = I.map((w) => w.file), i = new Promise((w,
|
|
2275
|
+
})), E = I.filter((w) => w.isDirectory !== true).length, D = I.map((w) => w.file), i = new Promise((w, F) => {
|
|
2252
2276
|
this.uploadState = {
|
|
2253
2277
|
files: D,
|
|
2254
2278
|
droppedFiles: I,
|
|
@@ -2260,7 +2284,7 @@ const _c = class _c {
|
|
|
2260
2284
|
readerTimeouts: /* @__PURE__ */ new Map(),
|
|
2261
2285
|
transferIds: g,
|
|
2262
2286
|
resolve: w,
|
|
2263
|
-
reject:
|
|
2287
|
+
reject: F
|
|
2264
2288
|
}, this.suppressUploadMonitoring();
|
|
2265
2289
|
try {
|
|
2266
2290
|
this.sendInitiateFileCopy(B), this.emit("upload-batch-started", g, I);
|
|
@@ -2271,7 +2295,7 @@ const _c = class _c {
|
|
|
2271
2295
|
direction: "upload",
|
|
2272
2296
|
cause: a
|
|
2273
2297
|
};
|
|
2274
|
-
this.emit("error", J),
|
|
2298
|
+
this.emit("error", J), F(new Error(J.message, { cause: a }));
|
|
2275
2299
|
return;
|
|
2276
2300
|
}
|
|
2277
2301
|
this.armPasteAckWatchdog();
|
|
@@ -2315,7 +2339,7 @@ const _c = class _c {
|
|
|
2315
2339
|
this.pasteAckTimeout = void 0;
|
|
2316
2340
|
const A = this.uploadState;
|
|
2317
2341
|
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();
|
|
2318
|
-
},
|
|
2342
|
+
}, _U.PASTE_ACK_TIMEOUT_MS);
|
|
2319
2343
|
}
|
|
2320
2344
|
/** Disarm the paste-acknowledgment watchdog, if armed. */
|
|
2321
2345
|
clearPasteAckWatchdog() {
|
|
@@ -2333,7 +2357,7 @@ const _c = class _c {
|
|
|
2333
2357
|
this.uploadInactivityTimeout = void 0;
|
|
2334
2358
|
const A = this.uploadState;
|
|
2335
2359
|
A !== void 0 && A.isRePaste !== true && this.failPendingUpload("The remote stopped requesting the files, so the paste did not complete");
|
|
2336
|
-
},
|
|
2360
|
+
}, _U.UPLOAD_INACTIVITY_TIMEOUT_MS);
|
|
2337
2361
|
}
|
|
2338
2362
|
/** Disarm the upload inactivity watchdog, if armed. */
|
|
2339
2363
|
clearUploadInactivityWatchdog() {
|
|
@@ -2470,7 +2494,7 @@ const _c = class _c {
|
|
|
2470
2494
|
* ```
|
|
2471
2495
|
*/
|
|
2472
2496
|
async handleDrop(A) {
|
|
2473
|
-
var _a, _b,
|
|
2497
|
+
var _a, _b, _c;
|
|
2474
2498
|
A.preventDefault();
|
|
2475
2499
|
const I = [];
|
|
2476
2500
|
if ((_a = A.dataTransfer) == null ? void 0 : _a.items) {
|
|
@@ -2494,7 +2518,7 @@ const _c = class _c {
|
|
|
2494
2518
|
size: E.size,
|
|
2495
2519
|
lastModified: E.lastModified
|
|
2496
2520
|
});
|
|
2497
|
-
} else if ((
|
|
2521
|
+
} else if ((_c = A.dataTransfer) == null ? void 0 : _c.files)
|
|
2498
2522
|
for (const g of Array.from(A.dataTransfer.files))
|
|
2499
2523
|
I.push({
|
|
2500
2524
|
file: g,
|
|
@@ -2521,10 +2545,10 @@ const _c = class _c {
|
|
|
2521
2545
|
* entries into `results`.
|
|
2522
2546
|
*/
|
|
2523
2547
|
async traverseEntry(A, I, g, B) {
|
|
2524
|
-
if (!(g.length >=
|
|
2525
|
-
if (B >
|
|
2548
|
+
if (!(g.length >= _U.MAX_DIRECTORY_ENTRIES)) {
|
|
2549
|
+
if (B > _U.MAX_DIRECTORY_DEPTH) {
|
|
2526
2550
|
console.warn(
|
|
2527
|
-
`Skipping "${A.name}": directory depth exceeds ${
|
|
2551
|
+
`Skipping "${A.name}": directory depth exceeds ${_U.MAX_DIRECTORY_DEPTH}`
|
|
2528
2552
|
);
|
|
2529
2553
|
return;
|
|
2530
2554
|
}
|
|
@@ -2549,7 +2573,7 @@ const _c = class _c {
|
|
|
2549
2573
|
path: I,
|
|
2550
2574
|
isDirectory: true
|
|
2551
2575
|
});
|
|
2552
|
-
const D = A.createReader(), i = await
|
|
2576
|
+
const D = A.createReader(), i = await _U.readAllDirectoryEntries(D);
|
|
2553
2577
|
for (const w of i)
|
|
2554
2578
|
await this.traverseEntry(w, E, g, B + 1);
|
|
2555
2579
|
}
|
|
@@ -2601,8 +2625,8 @@ const _c = class _c {
|
|
|
2601
2625
|
this.failPendingUpload("Upload interrupted: the remote clipboard changed");
|
|
2602
2626
|
const g = A.map((B) => ({
|
|
2603
2627
|
...B,
|
|
2604
|
-
name:
|
|
2605
|
-
path: B.path !== void 0 ?
|
|
2628
|
+
name: _U.sanitizeFileName(B.name),
|
|
2629
|
+
path: B.path !== void 0 ? _U.sanitizePath(B.path) : void 0
|
|
2606
2630
|
}));
|
|
2607
2631
|
this.availableFiles = g, this.clipDataId = I, this.emit("files-available", g);
|
|
2608
2632
|
}
|
|
@@ -2665,46 +2689,46 @@ const _c = class _c {
|
|
|
2665
2689
|
const w = new Uint8Array(8);
|
|
2666
2690
|
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);
|
|
2667
2691
|
} else if ((A.flags & j.RANGE) !== 0) {
|
|
2668
|
-
const w = i.slice(A.position, A.position + A.size),
|
|
2669
|
-
I.activeReaders.set(A.streamId,
|
|
2692
|
+
const w = i.slice(A.position, A.position + A.size), F = new FileReader();
|
|
2693
|
+
I.activeReaders.set(A.streamId, F);
|
|
2670
2694
|
const a = setTimeout(() => {
|
|
2671
2695
|
var _a;
|
|
2672
|
-
|
|
2696
|
+
F.abort(), this.uploadState !== void 0 && (this.uploadState.activeReaders.delete(A.streamId), this.uploadState.readerTimeouts.delete(A.streamId)), this.sendSubmitFileContents(A.streamId, true, new Uint8Array());
|
|
2673
2697
|
const J = {
|
|
2674
|
-
message: `File read timeout after ${
|
|
2698
|
+
message: `File read timeout after ${_U.FILE_READER_TIMEOUT_MS / 1e3}s`,
|
|
2675
2699
|
transferId: (_a = this.uploadState) == null ? void 0 : _a.transferIds.get(A.index),
|
|
2676
2700
|
fileIndex: A.index,
|
|
2677
2701
|
fileName: D.name,
|
|
2678
2702
|
direction: "upload"
|
|
2679
2703
|
};
|
|
2680
2704
|
this.emit("error", J), 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));
|
|
2681
|
-
},
|
|
2682
|
-
I.readerTimeouts.set(A.streamId, a),
|
|
2705
|
+
}, _U.FILE_READER_TIMEOUT_MS);
|
|
2706
|
+
I.readerTimeouts.set(A.streamId, a), F.onload = () => {
|
|
2683
2707
|
if (this.uploadState !== void 0) {
|
|
2684
2708
|
this.uploadState.activeReaders.delete(A.streamId);
|
|
2685
|
-
const
|
|
2686
|
-
|
|
2709
|
+
const Y = this.uploadState.readerTimeouts.get(A.streamId);
|
|
2710
|
+
Y !== void 0 && (clearTimeout(Y), this.uploadState.readerTimeouts.delete(A.streamId));
|
|
2687
2711
|
}
|
|
2688
|
-
const J = new Uint8Array(
|
|
2712
|
+
const J = new Uint8Array(F.result);
|
|
2689
2713
|
if (this.sendSubmitFileContents(A.streamId, false, J), this.uploadState !== void 0) {
|
|
2690
|
-
const
|
|
2691
|
-
this.uploadState.bytesServed.set(A.index,
|
|
2692
|
-
const
|
|
2693
|
-
transferId:
|
|
2714
|
+
const Y = (this.uploadState.bytesServed.get(A.index) ?? 0) + J.length;
|
|
2715
|
+
this.uploadState.bytesServed.set(A.index, Y);
|
|
2716
|
+
const l = this.uploadState.transferIds.get(A.index) ?? -1, v = {
|
|
2717
|
+
transferId: l,
|
|
2694
2718
|
fileIndex: A.index,
|
|
2695
2719
|
fileName: D.name,
|
|
2696
|
-
bytesTransferred:
|
|
2720
|
+
bytesTransferred: Y,
|
|
2697
2721
|
totalBytes: i.size,
|
|
2698
|
-
percentage: i.size === 0 ? 100 : Math.min(
|
|
2722
|
+
percentage: i.size === 0 ? 100 : Math.min(Y / i.size * 100, 100)
|
|
2699
2723
|
};
|
|
2700
|
-
this.emit("upload-progress",
|
|
2724
|
+
this.emit("upload-progress", v), Y >= i.size && this.markUploadFileComplete(A.index, i, l);
|
|
2701
2725
|
}
|
|
2702
|
-
},
|
|
2726
|
+
}, F.onerror = () => {
|
|
2703
2727
|
var _a, _b;
|
|
2704
2728
|
if (this.uploadState !== void 0) {
|
|
2705
2729
|
this.uploadState.activeReaders.delete(A.streamId);
|
|
2706
|
-
const
|
|
2707
|
-
|
|
2730
|
+
const Y = this.uploadState.readerTimeouts.get(A.streamId);
|
|
2731
|
+
Y !== void 0 && (clearTimeout(Y), this.uploadState.readerTimeouts.delete(A.streamId));
|
|
2708
2732
|
}
|
|
2709
2733
|
if (((_a = this.uploadState) == null ? void 0 : _a.failedFiles.has(A.index)) === true)
|
|
2710
2734
|
return;
|
|
@@ -2715,10 +2739,10 @@ const _c = class _c {
|
|
|
2715
2739
|
fileIndex: A.index,
|
|
2716
2740
|
fileName: D.name,
|
|
2717
2741
|
direction: "upload",
|
|
2718
|
-
cause:
|
|
2742
|
+
cause: F.error
|
|
2719
2743
|
};
|
|
2720
2744
|
this.emit("error", J), 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));
|
|
2721
|
-
},
|
|
2745
|
+
}, F.readAsArrayBuffer(w);
|
|
2722
2746
|
}
|
|
2723
2747
|
}
|
|
2724
2748
|
/**
|
|
@@ -2790,7 +2814,7 @@ const _c = class _c {
|
|
|
2790
2814
|
return;
|
|
2791
2815
|
}
|
|
2792
2816
|
const g = new DataView(A.data.buffer, A.data.byteOffset, A.data.byteLength), B = Number(g.getBigUint64(0, true));
|
|
2793
|
-
if (B >
|
|
2817
|
+
if (B > _U.MAX_FILE_SIZE) {
|
|
2794
2818
|
this.activeDownloads.delete(A.streamId), this.abortWriteHandle(I);
|
|
2795
2819
|
const E = {
|
|
2796
2820
|
message: `File size ${(B / (1024 * 1024 * 1024)).toFixed(2)}GB exceeds maximum download limit of 2GB`,
|
|
@@ -2823,7 +2847,7 @@ const _c = class _c {
|
|
|
2823
2847
|
initWriteHandleAndRequestFirstChunk(A) {
|
|
2824
2848
|
A.writeHandleReady = (async () => {
|
|
2825
2849
|
try {
|
|
2826
|
-
const I = (async () => (await this.ensureStorageBackend()).createWriteHandle(A.fileInfo.name, A.expectedSize ?? 0))(), g =
|
|
2850
|
+
const I = (async () => (await this.ensureStorageBackend()).createWriteHandle(A.fileInfo.name, A.expectedSize ?? 0))(), g = _U.WRITE_HANDLE_INIT_TIMEOUT_MS, B = await Promise.race([
|
|
2827
2851
|
I,
|
|
2828
2852
|
new Promise(
|
|
2829
2853
|
(E, D) => setTimeout(() => D(new Error(`Storage init timed out after ${g / 1e3}s`)), g)
|
|
@@ -3009,9 +3033,9 @@ const _c = class _c {
|
|
|
3009
3033
|
}
|
|
3010
3034
|
};
|
|
3011
3035
|
/** Maximum file size for downloads (2GB) to prevent browser out-of-memory errors */
|
|
3012
|
-
__publicField(
|
|
3036
|
+
__publicField(_U, "MAX_FILE_SIZE", 2 * 1024 * 1024 * 1024);
|
|
3013
3037
|
/** Timeout for FileReader operations (60 seconds) to prevent stalled uploads */
|
|
3014
|
-
__publicField(
|
|
3038
|
+
__publicField(_U, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
|
|
3015
3039
|
/**
|
|
3016
3040
|
* How long to keep clipboard monitoring suppressed after advertising an upload
|
|
3017
3041
|
* while waiting for the remote to pull the files (first FileContentsRequest),
|
|
@@ -3021,7 +3045,7 @@ __publicField(_c, "FILE_READER_TIMEOUT_MS", 60 * 1e3);
|
|
|
3021
3045
|
* clobbered), the watchdog resumes monitoring and fails the upload so its state
|
|
3022
3046
|
* cannot wedge later uploads.
|
|
3023
3047
|
*/
|
|
3024
|
-
__publicField(
|
|
3048
|
+
__publicField(_U, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
|
|
3025
3049
|
/**
|
|
3026
3050
|
* Upload inactivity window. After the remote starts pulling, each FileContentsRequest
|
|
3027
3051
|
* resets this; if pulls then stop for this long -- e.g. the remote grabbed the
|
|
@@ -3029,103 +3053,107 @@ __publicField(_c, "PASTE_ACK_TIMEOUT_MS", 60 * 1e3);
|
|
|
3029
3053
|
* upload is failed so `uploadState` is released and later uploads aren't wedged. A
|
|
3030
3054
|
* slow-but-progressing transfer keeps resetting it, so it is never killed.
|
|
3031
3055
|
*/
|
|
3032
|
-
__publicField(
|
|
3056
|
+
__publicField(_U, "UPLOAD_INACTIVITY_TIMEOUT_MS", 60 * 1e3);
|
|
3033
3057
|
/** Timeout for storage backend write handle initialization (30 seconds). */
|
|
3034
|
-
__publicField(
|
|
3058
|
+
__publicField(_U, "WRITE_HANDLE_INIT_TIMEOUT_MS", 30 * 1e3);
|
|
3035
3059
|
/** Maximum recursion depth when traversing dropped directories. */
|
|
3036
|
-
__publicField(
|
|
3060
|
+
__publicField(_U, "MAX_DIRECTORY_DEPTH", 32);
|
|
3037
3061
|
/** Maximum total entries (files + directories) collected from a single drop. */
|
|
3038
|
-
__publicField(
|
|
3039
|
-
let
|
|
3040
|
-
async function
|
|
3041
|
-
await
|
|
3062
|
+
__publicField(_U, "MAX_DIRECTORY_ENTRIES", 1e3);
|
|
3063
|
+
let U = _U;
|
|
3064
|
+
async function wI(Q, A) {
|
|
3065
|
+
await OA(A === void 0 ? void 0 : { module_or_path: A }), JA(Q);
|
|
3042
3066
|
}
|
|
3043
|
-
const
|
|
3067
|
+
const GI = {
|
|
3044
3068
|
DesktopSize: p,
|
|
3045
|
-
InputTransaction:
|
|
3046
|
-
SessionBuilder:
|
|
3069
|
+
InputTransaction: e,
|
|
3070
|
+
SessionBuilder: c,
|
|
3047
3071
|
ClipboardData: Z,
|
|
3048
3072
|
DeviceEvent: K
|
|
3049
3073
|
};
|
|
3050
|
-
function
|
|
3051
|
-
return new
|
|
3074
|
+
function oI(Q) {
|
|
3075
|
+
return new N("pcb", Q);
|
|
3052
3076
|
}
|
|
3053
|
-
function
|
|
3077
|
+
function NI(Q, A = "enhanced") {
|
|
3054
3078
|
if (Q.trim() === "")
|
|
3055
3079
|
throw new Error("vmconnect requires a VM ID");
|
|
3056
3080
|
const I = A === "enhanced" ? `${Q};EnhancedMode=1` : Q;
|
|
3057
|
-
return new
|
|
3081
|
+
return new N("vmconnect", I);
|
|
3082
|
+
}
|
|
3083
|
+
function kI(Q) {
|
|
3084
|
+
return new N("display_control", Q);
|
|
3058
3085
|
}
|
|
3059
3086
|
function FI(Q) {
|
|
3060
|
-
return new
|
|
3087
|
+
return new N("graphics_pipeline", Q);
|
|
3061
3088
|
}
|
|
3062
3089
|
function RI(Q) {
|
|
3063
|
-
return new
|
|
3064
|
-
}
|
|
3065
|
-
function MI(Q) {
|
|
3066
|
-
return new o("h264_decoder", Q);
|
|
3090
|
+
return new N("h264_decoder", Q);
|
|
3067
3091
|
}
|
|
3068
3092
|
function yI(Q) {
|
|
3069
|
-
return new
|
|
3093
|
+
return new N("audio_playback", Q);
|
|
3070
3094
|
}
|
|
3071
3095
|
function YI(Q) {
|
|
3072
|
-
return new
|
|
3096
|
+
return new N("drive_redirection", Q);
|
|
3073
3097
|
}
|
|
3074
|
-
function
|
|
3098
|
+
function MI(Q) {
|
|
3099
|
+
return new N("audio_input", Q);
|
|
3100
|
+
}
|
|
3101
|
+
function cI(Q) {
|
|
3075
3102
|
const A = Q instanceof Uint8Array ? Q : new Uint8Array(Q.buffer, Q.byteOffset, Q.byteLength);
|
|
3076
|
-
return new
|
|
3103
|
+
return new N("audio_input_data", A);
|
|
3077
3104
|
}
|
|
3078
3105
|
function JI(Q) {
|
|
3079
|
-
return new
|
|
3106
|
+
return new N("kdc_proxy_url", Q);
|
|
3080
3107
|
}
|
|
3081
|
-
function
|
|
3082
|
-
return new
|
|
3108
|
+
function UI(Q) {
|
|
3109
|
+
return new N("outbound_message_size_limit", Q);
|
|
3083
3110
|
}
|
|
3084
3111
|
function KI(Q) {
|
|
3085
|
-
return new
|
|
3112
|
+
return new N("enable_credssp", Q);
|
|
3086
3113
|
}
|
|
3087
3114
|
function hI(Q) {
|
|
3088
|
-
return new
|
|
3115
|
+
return new N("enable_server_pointer", Q);
|
|
3089
3116
|
}
|
|
3090
3117
|
function aI(Q) {
|
|
3091
|
-
return new
|
|
3118
|
+
return new N("legacy_graphics", Q);
|
|
3092
3119
|
}
|
|
3093
3120
|
export {
|
|
3094
|
-
|
|
3121
|
+
GI as Backend,
|
|
3095
3122
|
YA as BlobStorageBackend,
|
|
3096
3123
|
j as FileContentsFlags,
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3124
|
+
x as OpfsStorageBackend,
|
|
3125
|
+
QI as PrinterDriverName,
|
|
3126
|
+
QA as RdpFile,
|
|
3127
|
+
U as RdpFileTransferProvider,
|
|
3128
|
+
cA as WebCodecsH264Decoder,
|
|
3129
|
+
MI as audioInput,
|
|
3130
|
+
cI as audioInputData,
|
|
3104
3131
|
yI as audioPlayback,
|
|
3105
3132
|
gI as detectStorageBackend,
|
|
3106
|
-
|
|
3133
|
+
kI as displayControl,
|
|
3134
|
+
YI as driveRedirection,
|
|
3107
3135
|
KI as enableCredssp,
|
|
3108
3136
|
hI as enableServerPointer,
|
|
3109
|
-
|
|
3137
|
+
TA as fileContentsRequestCallback,
|
|
3110
3138
|
nA as fileContentsResponseCallback,
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3139
|
+
fA as filesAvailableCallback,
|
|
3140
|
+
FI as graphicsPipeline,
|
|
3141
|
+
RI as h264Decoder,
|
|
3114
3142
|
BI as h264Supported,
|
|
3115
|
-
|
|
3143
|
+
wI as init,
|
|
3116
3144
|
_A as initiateFileCopy,
|
|
3117
3145
|
JI as kdcProxyUrl,
|
|
3118
3146
|
aI as legacyGraphics,
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3147
|
+
rA as lockCallback,
|
|
3148
|
+
vA as locksExpiredCallback,
|
|
3149
|
+
UI as outboundMessageSizeLimit,
|
|
3150
|
+
oI as preConnectionBlob,
|
|
3151
|
+
CI as printJobStreamCallbacks,
|
|
3152
|
+
DI as printerDeviceId,
|
|
3153
|
+
iI as printerDriverName,
|
|
3154
|
+
EI as printerName,
|
|
3155
|
+
eA as requestFileContents,
|
|
3156
|
+
uA as submitFileContents,
|
|
3157
|
+
PA as unlockCallback,
|
|
3158
|
+
NI as vmConnect
|
|
3131
3159
|
};
|