|
4 | 4 | else if ('undefined' != typeof exports) b(module); |
5 | 5 | else { |
6 | 6 | var c = { exports: {} }; |
7 | | - b(c), (a.browser = c.exports); |
| 7 | + (b(c), (a.browser = c.exports)); |
8 | 8 | } |
9 | 9 | })( |
10 | 10 | 'undefined' == typeof globalThis |
|
235 | 235 | ); |
236 | 236 | class c extends WeakMap { |
237 | 237 | constructor(a, b = void 0) { |
238 | | - super(b), (this.createItem = a); |
| 238 | + (super(b), (this.createItem = a)); |
239 | 239 | } |
240 | 240 | get(a) { |
241 | | - return this.has(a) || this.set(a, this.createItem(a)), super.get(a); |
| 241 | + return ( |
| 242 | + this.has(a) || this.set(a, this.createItem(a)), |
| 243 | + super.get(a) |
| 244 | + ); |
242 | 245 | } |
243 | 246 | } |
244 | 247 | const d = (a) => |
|
249 | 252 | a.runtime.lastError |
250 | 253 | ? b.reject(new Error(a.runtime.lastError.message)) |
251 | 254 | : c.singleCallbackArg || |
252 | | - (1 >= d.length && !1 !== c.singleCallbackArg) |
253 | | - ? b.resolve(d[0]) |
254 | | - : b.resolve(d); |
| 255 | + (1 >= d.length && !1 !== c.singleCallbackArg) |
| 256 | + ? b.resolve(d[0]) |
| 257 | + : b.resolve(d); |
255 | 258 | }, |
256 | 259 | f = (a) => (1 == a ? 'argument' : 'arguments'), |
257 | 260 | g = (a, b) => |
|
273 | 276 | try { |
274 | 277 | c[a](...d, e({ resolve: f, reject: g }, b)); |
275 | 278 | } catch (e) { |
276 | | - console.warn( |
| 279 | + (console.warn( |
277 | 280 | `${a} API method doesn't seem to support the callback parameter, ` + |
278 | 281 | 'falling back to call it without a callback: ', |
279 | 282 | e |
280 | 283 | ), |
281 | 284 | c[a](...d), |
282 | 285 | (b.fallbackToNoCallback = !1), |
283 | 286 | (b.noCallback = !0), |
284 | | - f(); |
| 287 | + f()); |
285 | 288 | } |
286 | 289 | else |
287 | 290 | b.noCallback |
|
334 | 337 | }), |
335 | 338 | k |
336 | 339 | ); |
337 | | - return (d[f] = k), k; |
| 340 | + return ((d[f] = k), k); |
338 | 341 | }, |
339 | 342 | set(b, c, e) { |
340 | | - return c in d ? (d[c] = e) : (a[c] = e), !0; |
| 343 | + return (c in d ? (d[c] = e) : (a[c] = e), !0); |
341 | 344 | }, |
342 | 345 | defineProperty(a, b, c) { |
343 | 346 | return Reflect.defineProperty(d, b, c); |
|
378 | 381 | h = !1, |
379 | 382 | i = new Promise((a) => { |
380 | 383 | f = function (b) { |
381 | | - (h = !0), a(b); |
| 384 | + ((h = !0), a(b)); |
382 | 385 | }; |
383 | 386 | }); |
384 | 387 | try { |
|
395 | 398 | }, |
396 | 399 | (a) => { |
397 | 400 | let b; |
398 | | - (b = |
| 401 | + ((b = |
399 | 402 | a && |
400 | 403 | (a instanceof Error || 'string' == typeof a.message) |
401 | 404 | ? a.message |
402 | 405 | : 'An unexpected error occurred'), |
403 | 406 | e({ |
404 | 407 | __mozWebExtensionPolyfillReject__: !0, |
405 | 408 | message: b, |
406 | | - }); |
| 409 | + })); |
407 | 410 | } |
408 | 411 | ).catch((a) => { |
409 | 412 | console.error( |
|
412 | 415 | ); |
413 | 416 | }); |
414 | 417 | }; |
415 | | - return j ? k(g) : k(i), !0; |
| 418 | + return (j ? k(g) : k(i), !0); |
416 | 419 | } |
417 | 420 | : a |
418 | 421 | ), |
|
423 | 426 | ? c() |
424 | 427 | : b(new Error(a.runtime.lastError.message)) |
425 | 428 | : d && d.__mozWebExtensionPolyfillReject__ |
426 | | - ? b(new Error(d.message)) |
427 | | - : c(d); |
| 429 | + ? b(new Error(d.message)) |
| 430 | + : c(d); |
428 | 431 | }, |
429 | 432 | o = (a, b, c, ...d) => { |
430 | 433 | if (d.length < b.minArgs) |
|
441 | 444 | ); |
442 | 445 | return new Promise((a, b) => { |
443 | 446 | const e = n.bind(null, { resolve: a, reject: b }); |
444 | | - d.push(e), c.sendMessage(...d); |
| 447 | + (d.push(e), c.sendMessage(...d)); |
445 | 448 | }); |
446 | 449 | }, |
447 | 450 | p = { |
|
0 commit comments