@microblink/capture 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/capture.js +440 -440
- package/dist/capture.umd.cjs +26 -26
- package/dist/resources/advanced/capture-wasm.js +2 -2
- package/dist/resources/advanced/capture-wasm.wasm +0 -0
- package/dist/resources/advanced-threads/capture-wasm.js +2 -2
- package/dist/resources/advanced-threads/capture-wasm.wasm +0 -0
- package/dist/resources/basic/capture-wasm.wasm +0 -0
- package/dist/resources/capture-worker.js +2 -2
- package/package.json +7 -11
package/dist/capture.js
CHANGED
|
@@ -243,8 +243,8 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
243
243
|
* SPDX-License-Identifier: Apache-2.0
|
|
244
244
|
*/
|
|
245
245
|
const e = Symbol("Comlink.proxy"), n = Symbol("Comlink.endpoint"), r = Symbol("Comlink.releaseProxy"), i = Symbol("Comlink.finalizer"), o = Symbol("Comlink.thrown"), a = (L) => typeof L == "object" && L !== null || typeof L == "function", s = { canHandle: (L) => a(L) && L[e], serialize(L) {
|
|
246
|
-
const { port1: A, port2:
|
|
247
|
-
return M(L, A), [
|
|
246
|
+
const { port1: A, port2: G } = new MessageChannel();
|
|
247
|
+
return M(L, A), [G, [G]];
|
|
248
248
|
}, deserialize(L) {
|
|
249
249
|
return L.start(), d(L);
|
|
250
250
|
} }, u = { canHandle: (L) => a(L) && o in L, serialize({ value: L }) {
|
|
@@ -254,43 +254,43 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
254
254
|
throw L.isError ? Object.assign(new Error(L.value.message), L.value) : L.value;
|
|
255
255
|
} }, l = /* @__PURE__ */ new Map([["proxy", s], ["throw", u]]);
|
|
256
256
|
function g(L, A) {
|
|
257
|
-
for (const
|
|
258
|
-
if (A ===
|
|
257
|
+
for (const G of L)
|
|
258
|
+
if (A === G || G === "*" || G instanceof RegExp && G.test(A))
|
|
259
259
|
return !0;
|
|
260
260
|
return !1;
|
|
261
261
|
}
|
|
262
|
-
function M(L, A = globalThis,
|
|
263
|
-
A.addEventListener("message", function
|
|
264
|
-
if (!
|
|
262
|
+
function M(L, A = globalThis, G = ["*"]) {
|
|
263
|
+
A.addEventListener("message", function it(W) {
|
|
264
|
+
if (!W || !W.data)
|
|
265
265
|
return;
|
|
266
|
-
if (!g(
|
|
267
|
-
console.warn(`Invalid origin '${
|
|
266
|
+
if (!g(G, W.origin)) {
|
|
267
|
+
console.warn(`Invalid origin '${W.origin}' for comlink proxy`);
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
const { id: At, type:
|
|
270
|
+
const { id: At, type: X, path: ht } = Object.assign({ path: [] }, W.data), Tt = (W.data.argumentList || []).map(C);
|
|
271
271
|
let ct;
|
|
272
272
|
try {
|
|
273
|
-
const ft = ht.slice(0, -1).reduce((
|
|
274
|
-
switch (
|
|
273
|
+
const ft = ht.slice(0, -1).reduce((at, xt) => at[xt], L), tt = ht.reduce((at, xt) => at[xt], L);
|
|
274
|
+
switch (X) {
|
|
275
275
|
case "GET":
|
|
276
|
-
ct =
|
|
276
|
+
ct = tt;
|
|
277
277
|
break;
|
|
278
278
|
case "SET":
|
|
279
|
-
ft[ht.slice(-1)[0]] = C(
|
|
279
|
+
ft[ht.slice(-1)[0]] = C(W.data.value), ct = !0;
|
|
280
280
|
break;
|
|
281
281
|
case "APPLY":
|
|
282
|
-
ct =
|
|
282
|
+
ct = tt.apply(ft, Tt);
|
|
283
283
|
break;
|
|
284
284
|
case "CONSTRUCT":
|
|
285
285
|
{
|
|
286
|
-
const
|
|
287
|
-
ct = Y(
|
|
286
|
+
const at = new tt(...Tt);
|
|
287
|
+
ct = Y(at);
|
|
288
288
|
}
|
|
289
289
|
break;
|
|
290
290
|
case "ENDPOINT":
|
|
291
291
|
{
|
|
292
|
-
const { port1:
|
|
293
|
-
M(L, xt), ct = F(
|
|
292
|
+
const { port1: at, port2: xt } = new MessageChannel();
|
|
293
|
+
M(L, xt), ct = F(at, [at]);
|
|
294
294
|
}
|
|
295
295
|
break;
|
|
296
296
|
case "RELEASE":
|
|
@@ -303,11 +303,11 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
303
303
|
ct = { value: ft, [o]: 0 };
|
|
304
304
|
}
|
|
305
305
|
Promise.resolve(ct).catch((ft) => ({ value: ft, [o]: 0 })).then((ft) => {
|
|
306
|
-
const [
|
|
307
|
-
A.postMessage(Object.assign(Object.assign({},
|
|
306
|
+
const [tt, at] = U(ft);
|
|
307
|
+
A.postMessage(Object.assign(Object.assign({}, tt), { id: At }), at), X === "RELEASE" && (A.removeEventListener("message", it), f(A), i in L && typeof L[i] == "function" && L[i]());
|
|
308
308
|
}).catch((ft) => {
|
|
309
|
-
const [
|
|
310
|
-
A.postMessage(Object.assign(Object.assign({},
|
|
309
|
+
const [tt, at] = U({ value: new TypeError("Unserializable return value"), [o]: 0 });
|
|
310
|
+
A.postMessage(Object.assign(Object.assign({}, tt), { id: At }), at);
|
|
311
311
|
});
|
|
312
312
|
}), A.start && A.start();
|
|
313
313
|
}
|
|
@@ -334,53 +334,53 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
334
334
|
p.set(L, A), A === 0 && y(L);
|
|
335
335
|
});
|
|
336
336
|
function m(L, A) {
|
|
337
|
-
const
|
|
338
|
-
p.set(A,
|
|
337
|
+
const G = (p.get(A) || 0) + 1;
|
|
338
|
+
p.set(A, G), w && w.register(L, A, L);
|
|
339
339
|
}
|
|
340
340
|
function N(L) {
|
|
341
341
|
w && w.unregister(L);
|
|
342
342
|
}
|
|
343
|
-
function j(L, A = [],
|
|
343
|
+
function j(L, A = [], G = function() {
|
|
344
344
|
}) {
|
|
345
|
-
let
|
|
346
|
-
const
|
|
347
|
-
if (h(
|
|
345
|
+
let it = !1;
|
|
346
|
+
const W = new Proxy(G, { get(At, X) {
|
|
347
|
+
if (h(it), X === r)
|
|
348
348
|
return () => {
|
|
349
|
-
N(
|
|
349
|
+
N(W), y(L), it = !0;
|
|
350
350
|
};
|
|
351
|
-
if (
|
|
351
|
+
if (X === "then") {
|
|
352
352
|
if (A.length === 0)
|
|
353
|
-
return { then: () =>
|
|
353
|
+
return { then: () => W };
|
|
354
354
|
const ht = I(L, { type: "GET", path: A.map((Tt) => Tt.toString()) }).then(C);
|
|
355
355
|
return ht.then.bind(ht);
|
|
356
356
|
}
|
|
357
|
-
return j(L, [...A,
|
|
358
|
-
}, set(At,
|
|
359
|
-
h(
|
|
357
|
+
return j(L, [...A, X]);
|
|
358
|
+
}, set(At, X, ht) {
|
|
359
|
+
h(it);
|
|
360
360
|
const [Tt, ct] = U(ht);
|
|
361
|
-
return I(L, { type: "SET", path: [...A,
|
|
362
|
-
}, apply(At,
|
|
363
|
-
h(
|
|
361
|
+
return I(L, { type: "SET", path: [...A, X].map((ft) => ft.toString()), value: Tt }, ct).then(C);
|
|
362
|
+
}, apply(At, X, ht) {
|
|
363
|
+
h(it);
|
|
364
364
|
const Tt = A[A.length - 1];
|
|
365
365
|
if (Tt === n)
|
|
366
366
|
return I(L, { type: "ENDPOINT" }).then(C);
|
|
367
367
|
if (Tt === "bind")
|
|
368
368
|
return j(L, A.slice(0, -1));
|
|
369
369
|
const [ct, ft] = E(ht);
|
|
370
|
-
return I(L, { type: "APPLY", path: A.map((
|
|
371
|
-
}, construct(At,
|
|
372
|
-
h(
|
|
373
|
-
const [ht, Tt] = E(
|
|
370
|
+
return I(L, { type: "APPLY", path: A.map((tt) => tt.toString()), argumentList: ct }, ft).then(C);
|
|
371
|
+
}, construct(At, X) {
|
|
372
|
+
h(it);
|
|
373
|
+
const [ht, Tt] = E(X);
|
|
374
374
|
return I(L, { type: "CONSTRUCT", path: A.map((ct) => ct.toString()), argumentList: ht }, Tt).then(C);
|
|
375
375
|
} });
|
|
376
|
-
return m(
|
|
376
|
+
return m(W, L), W;
|
|
377
377
|
}
|
|
378
378
|
function b(L) {
|
|
379
379
|
return Array.prototype.concat.apply([], L);
|
|
380
380
|
}
|
|
381
381
|
function E(L) {
|
|
382
382
|
const A = L.map(U);
|
|
383
|
-
return [A.map((
|
|
383
|
+
return [A.map((G) => G[0]), b(A.map((G) => G[1]))];
|
|
384
384
|
}
|
|
385
385
|
const v = /* @__PURE__ */ new WeakMap();
|
|
386
386
|
function F(L, A) {
|
|
@@ -390,10 +390,10 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
390
390
|
return Object.assign(L, { [e]: !0 });
|
|
391
391
|
}
|
|
392
392
|
function U(L) {
|
|
393
|
-
for (const [A,
|
|
394
|
-
if (
|
|
395
|
-
const [
|
|
396
|
-
return [{ type: "HANDLER", name: A, value:
|
|
393
|
+
for (const [A, G] of l)
|
|
394
|
+
if (G.canHandle(L)) {
|
|
395
|
+
const [it, W] = G.serialize(L);
|
|
396
|
+
return [{ type: "HANDLER", name: A, value: it }, W];
|
|
397
397
|
}
|
|
398
398
|
return [{ type: "RAW", value: L }, v.get(L) || []];
|
|
399
399
|
}
|
|
@@ -405,51 +405,51 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
405
405
|
return L.value;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function I(L, A,
|
|
409
|
-
return new Promise((
|
|
410
|
-
const
|
|
411
|
-
L.addEventListener("message", function At(
|
|
412
|
-
!
|
|
413
|
-
}), L.start && L.start(), L.postMessage(Object.assign({ id:
|
|
408
|
+
function I(L, A, G) {
|
|
409
|
+
return new Promise((it) => {
|
|
410
|
+
const W = x();
|
|
411
|
+
L.addEventListener("message", function At(X) {
|
|
412
|
+
!X.data || !X.data.id || X.data.id !== W || (L.removeEventListener("message", At), it(X.data));
|
|
413
|
+
}), L.start && L.start(), L.postMessage(Object.assign({ id: W }, A), G);
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
function x() {
|
|
417
417
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
|
418
418
|
}
|
|
419
|
-
const k = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11])), D = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 2, 8, 1, 1, 97, 1, 98, 3, 127, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 5, 1, 1, 97, 3, 1])), P = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 7, 1, 5, 0, 208, 112, 26, 11])), R = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 12, 1, 10, 0, 67, 0, 0, 0, 0, 252, 0, 26, 11])), H = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 65, 0, 192, 26, 11])),
|
|
419
|
+
const k = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11])), D = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 2, 8, 1, 1, 97, 1, 98, 3, 127, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 5, 1, 1, 97, 3, 1])), P = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 7, 1, 5, 0, 208, 112, 26, 11])), R = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 12, 1, 10, 0, 67, 0, 0, 0, 0, 252, 0, 26, 11])), H = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 65, 0, 192, 26, 11])), q = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11])), J = () => (async (L) => {
|
|
420
420
|
try {
|
|
421
421
|
return typeof MessageChannel < "u" && new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)), WebAssembly.validate(L);
|
|
422
422
|
} catch {
|
|
423
423
|
return !1;
|
|
424
424
|
}
|
|
425
425
|
})(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 4, 1, 3, 1, 1, 10, 11, 1, 9, 0, 65, 0, 254, 16, 2, 0, 26, 11]));
|
|
426
|
-
function
|
|
426
|
+
function st() {
|
|
427
427
|
return /iOS|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
428
428
|
}
|
|
429
429
|
async function Et() {
|
|
430
|
-
if (!await
|
|
430
|
+
if (!await J())
|
|
431
431
|
return !1;
|
|
432
432
|
if (!("importScripts" in self))
|
|
433
433
|
throw Error("Not implemented");
|
|
434
|
-
return
|
|
434
|
+
return st() ? !1 : "Worker" in self;
|
|
435
435
|
}
|
|
436
436
|
async function _t() {
|
|
437
437
|
const L = [D(), P(), k(), R(), H()];
|
|
438
438
|
if (!(await Promise.all(L)).every(Boolean))
|
|
439
439
|
throw new Error("Browser doesn't meet minimum requirements!");
|
|
440
|
-
return await
|
|
440
|
+
return await q() ? await Et() ? "advanced-threads" : "advanced" : "basic";
|
|
441
441
|
}
|
|
442
442
|
let Lt, B;
|
|
443
|
-
async function
|
|
443
|
+
async function ut() {
|
|
444
444
|
const L = await _t();
|
|
445
445
|
console.log(`Requesting ${L} Wasm build`);
|
|
446
|
-
const A =
|
|
446
|
+
const A = self.location.href, G = A.substring(0, A.lastIndexOf("/")), it = `${G}/${L}/capture-wasm.js`;
|
|
447
447
|
try {
|
|
448
|
-
importScripts(
|
|
449
|
-
} catch (
|
|
450
|
-
console.error("loading scripts failed",
|
|
448
|
+
importScripts(it);
|
|
449
|
+
} catch (W) {
|
|
450
|
+
console.error("loading scripts failed", W);
|
|
451
451
|
}
|
|
452
|
-
return Lt = await self.createModule({ locateFile: (
|
|
452
|
+
return Lt = await self.createModule({ locateFile: (W) => `${G}/${L}/${W}`, mainScriptUrlOrBlob: it.toString(), setStatus: (W) => {
|
|
453
453
|
} }), Lt[i] = () => {
|
|
454
454
|
console.log("finalizer wasmModule");
|
|
455
455
|
}, Y(Lt);
|
|
@@ -463,7 +463,7 @@ var Au = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
463
463
|
const A = B.analyze(L);
|
|
464
464
|
return self.postMessage({}, [L.data.buffer]), L = null, A;
|
|
465
465
|
}
|
|
466
|
-
const Zt = { createAnalyzer: Nt, loadWasm:
|
|
466
|
+
const Zt = { createAnalyzer: Nt, loadWasm: ut, analyze: fe, terminate: () => self.close(), [i]: () => {
|
|
467
467
|
console.log("Comlink.finalizer called on proxyWorker");
|
|
468
468
|
} };
|
|
469
469
|
return M(Zt), t.proxyWorker = Zt, Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), t;
|
|
@@ -880,7 +880,7 @@ function wg(t) {
|
|
|
880
880
|
var co = { exports: {} };
|
|
881
881
|
(function(t, e) {
|
|
882
882
|
(function(n, r) {
|
|
883
|
-
var i = "1.0.35", o = "", a = "?", s = "function", u = "undefined", l = "object", g = "string", M = "major", c = "model", f = "name", d = "type", h = "vendor", y = "version", p = "architecture", w = "console", m = "mobile", N = "tablet", j = "smarttv", b = "wearable", E = "embedded", v = 350, F = "Amazon", Y = "Apple", U = "ASUS", C = "BlackBerry", I = "Browser", x = "Chrome", k = "Edge", D = "Firefox", P = "Google", R = "Huawei", H = "LG",
|
|
883
|
+
var i = "1.0.35", o = "", a = "?", s = "function", u = "undefined", l = "object", g = "string", M = "major", c = "model", f = "name", d = "type", h = "vendor", y = "version", p = "architecture", w = "console", m = "mobile", N = "tablet", j = "smarttv", b = "wearable", E = "embedded", v = 350, F = "Amazon", Y = "Apple", U = "ASUS", C = "BlackBerry", I = "Browser", x = "Chrome", k = "Edge", D = "Firefox", P = "Google", R = "Huawei", H = "LG", q = "Microsoft", J = "Motorola", st = "Opera", Et = "Samsung", _t = "Sharp", Lt = "Sony", B = "Xiaomi", ut = "Zebra", Nt = "Facebook", fe = "Chromium OS", Zt = "Mac OS", L = function(_, K) {
|
|
884
884
|
var z = {};
|
|
885
885
|
for (var $ in _)
|
|
886
886
|
K[$] && K[$].length % 2 === 0 ? z[$] = K[$].concat(_[$]) : z[$] = _[$];
|
|
@@ -889,31 +889,31 @@ var co = { exports: {} };
|
|
|
889
889
|
for (var K = {}, z = 0; z < _.length; z++)
|
|
890
890
|
K[_[z].toUpperCase()] = _[z];
|
|
891
891
|
return K;
|
|
892
|
-
},
|
|
893
|
-
return typeof _ === g ?
|
|
894
|
-
}, ut = function(_) {
|
|
895
|
-
return _.toLowerCase();
|
|
892
|
+
}, G = function(_, K) {
|
|
893
|
+
return typeof _ === g ? it(K).indexOf(it(_)) !== -1 : !1;
|
|
896
894
|
}, it = function(_) {
|
|
895
|
+
return _.toLowerCase();
|
|
896
|
+
}, W = function(_) {
|
|
897
897
|
return typeof _ === g ? _.replace(/[^\d\.]/g, o).split(".")[0] : r;
|
|
898
898
|
}, At = function(_, K) {
|
|
899
899
|
if (typeof _ === g)
|
|
900
900
|
return _ = _.replace(/^\s\s*/, o), typeof K === u ? _ : _.substring(0, v);
|
|
901
|
-
},
|
|
902
|
-
for (var z = 0, $, Rt, Ot,
|
|
901
|
+
}, X = function(_, K) {
|
|
902
|
+
for (var z = 0, $, Rt, Ot, Q, O, Ut; z < K.length && !O; ) {
|
|
903
903
|
var an = K[z], nr = K[z + 1];
|
|
904
904
|
for ($ = Rt = 0; $ < an.length && !O && an[$]; )
|
|
905
905
|
if (O = an[$++].exec(_), O)
|
|
906
906
|
for (Ot = 0; Ot < nr.length; Ot++)
|
|
907
|
-
Ut = O[++Rt],
|
|
907
|
+
Ut = O[++Rt], Q = nr[Ot], typeof Q === l && Q.length > 0 ? Q.length === 2 ? typeof Q[1] == s ? this[Q[0]] = Q[1].call(this, Ut) : this[Q[0]] = Q[1] : Q.length === 3 ? typeof Q[1] === s && !(Q[1].exec && Q[1].test) ? this[Q[0]] = Ut ? Q[1].call(this, Ut, Q[2]) : r : this[Q[0]] = Ut ? Ut.replace(Q[1], Q[2]) : r : Q.length === 4 && (this[Q[0]] = Ut ? Q[3].call(this, Ut.replace(Q[1], Q[2])) : r) : this[Q] = Ut || r;
|
|
908
908
|
z += 2;
|
|
909
909
|
}
|
|
910
910
|
}, ht = function(_, K) {
|
|
911
911
|
for (var z in K)
|
|
912
912
|
if (typeof K[z] === l && K[z].length > 0) {
|
|
913
913
|
for (var $ = 0; $ < K[z].length; $++)
|
|
914
|
-
if (
|
|
914
|
+
if (G(K[z][$], _))
|
|
915
915
|
return z === a ? r : z;
|
|
916
|
-
} else if (
|
|
916
|
+
} else if (G(K[z], _))
|
|
917
917
|
return z === a ? r : z;
|
|
918
918
|
return _;
|
|
919
919
|
}, Tt = {
|
|
@@ -963,12 +963,12 @@ var co = { exports: {} };
|
|
|
963
963
|
/opios[\/ ]+([\w\.]+)/i
|
|
964
964
|
// Opera mini on iphone >= 8.0
|
|
965
965
|
],
|
|
966
|
-
[y, [f,
|
|
966
|
+
[y, [f, st + " Mini"]],
|
|
967
967
|
[
|
|
968
968
|
/\bopr\/([\w\.]+)/i
|
|
969
969
|
// Opera Webkit
|
|
970
970
|
],
|
|
971
|
-
[y, [f,
|
|
971
|
+
[y, [f, st]],
|
|
972
972
|
[
|
|
973
973
|
// Mixed
|
|
974
974
|
/(kindle)\/([\w\.]+)/i,
|
|
@@ -1036,7 +1036,7 @@ var co = { exports: {} };
|
|
|
1036
1036
|
/\bopt\/([\w\.]+)/i
|
|
1037
1037
|
// Opera Touch
|
|
1038
1038
|
],
|
|
1039
|
-
[y, [f,
|
|
1039
|
+
[y, [f, st + " Touch"]],
|
|
1040
1040
|
[
|
|
1041
1041
|
/coc_coc\w+\/([\w\.]+)/i
|
|
1042
1042
|
// Coc Coc Browser
|
|
@@ -1051,7 +1051,7 @@ var co = { exports: {} };
|
|
|
1051
1051
|
/coast\/([\w\.]+)/i
|
|
1052
1052
|
// Opera Coast
|
|
1053
1053
|
],
|
|
1054
|
-
[y, [f,
|
|
1054
|
+
[y, [f, st + " Coast"]],
|
|
1055
1055
|
[
|
|
1056
1056
|
/miuibrowser\/([\w\.]+)/i
|
|
1057
1057
|
// MIUI Browser
|
|
@@ -1212,7 +1212,7 @@ var co = { exports: {} };
|
|
|
1212
1212
|
/(ia32(?=;))/i
|
|
1213
1213
|
// IA32 (quicktime)
|
|
1214
1214
|
],
|
|
1215
|
-
[[p,
|
|
1215
|
+
[[p, it]],
|
|
1216
1216
|
[
|
|
1217
1217
|
/((?:i[346]|x)86)[;\)]/i
|
|
1218
1218
|
// IA32 (x86)
|
|
@@ -1237,7 +1237,7 @@ var co = { exports: {} };
|
|
|
1237
1237
|
/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i
|
|
1238
1238
|
// PowerPC
|
|
1239
1239
|
],
|
|
1240
|
-
[[p, /ower/, o,
|
|
1240
|
+
[[p, /ower/, o, it]],
|
|
1241
1241
|
[
|
|
1242
1242
|
/(sun4\w)[;\)]/i
|
|
1243
1243
|
// SPARC
|
|
@@ -1247,7 +1247,7 @@ var co = { exports: {} };
|
|
|
1247
1247
|
/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i
|
|
1248
1248
|
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
1249
1249
|
],
|
|
1250
|
-
[[p,
|
|
1250
|
+
[[p, it]]
|
|
1251
1251
|
],
|
|
1252
1252
|
device: [
|
|
1253
1253
|
[
|
|
@@ -1338,11 +1338,11 @@ var co = { exports: {} };
|
|
|
1338
1338
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
1339
1339
|
/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
1340
1340
|
],
|
|
1341
|
-
[c, [h,
|
|
1341
|
+
[c, [h, J], [d, m]],
|
|
1342
1342
|
[
|
|
1343
1343
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
1344
1344
|
],
|
|
1345
|
-
[c, [h,
|
|
1345
|
+
[c, [h, J], [d, N]],
|
|
1346
1346
|
[
|
|
1347
1347
|
// LG
|
|
1348
1348
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
@@ -1499,7 +1499,7 @@ var co = { exports: {} };
|
|
|
1499
1499
|
/(surface duo)/i
|
|
1500
1500
|
// Surface Duo
|
|
1501
1501
|
],
|
|
1502
|
-
[c, [h,
|
|
1502
|
+
[c, [h, q], [d, N]],
|
|
1503
1503
|
[
|
|
1504
1504
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
1505
1505
|
// Fairphone
|
|
@@ -1624,16 +1624,16 @@ var co = { exports: {} };
|
|
|
1624
1624
|
/(kin\.[onetw]{3})/i
|
|
1625
1625
|
// Microsoft Kin
|
|
1626
1626
|
],
|
|
1627
|
-
[[c, /\./g, " "], [h,
|
|
1627
|
+
[[c, /\./g, " "], [h, q], [d, m]],
|
|
1628
1628
|
[
|
|
1629
1629
|
/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
1630
1630
|
// Zebra
|
|
1631
1631
|
],
|
|
1632
|
-
[c, [h,
|
|
1632
|
+
[c, [h, ut], [d, N]],
|
|
1633
1633
|
[
|
|
1634
1634
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
1635
1635
|
],
|
|
1636
|
-
[c, [h,
|
|
1636
|
+
[c, [h, ut], [d, m]],
|
|
1637
1637
|
[
|
|
1638
1638
|
///////////////////
|
|
1639
1639
|
// SMARTTVS
|
|
@@ -1723,7 +1723,7 @@ var co = { exports: {} };
|
|
|
1723
1723
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
1724
1724
|
// Microsoft Xbox
|
|
1725
1725
|
],
|
|
1726
|
-
[c, [h,
|
|
1726
|
+
[c, [h, q], [d, w]],
|
|
1727
1727
|
[
|
|
1728
1728
|
///////////////////
|
|
1729
1729
|
// WEARABLES
|
|
@@ -1745,7 +1745,7 @@ var co = { exports: {} };
|
|
|
1745
1745
|
[
|
|
1746
1746
|
/droid.+; (wt63?0{2,3})\)/i
|
|
1747
1747
|
],
|
|
1748
|
-
[c, [h,
|
|
1748
|
+
[c, [h, ut], [d, b]],
|
|
1749
1749
|
[
|
|
1750
1750
|
/(quest( 2| pro)?)/i
|
|
1751
1751
|
// Oculus Quest
|
|
@@ -1960,25 +1960,25 @@ var co = { exports: {} };
|
|
|
1960
1960
|
],
|
|
1961
1961
|
[f, y]
|
|
1962
1962
|
]
|
|
1963
|
-
},
|
|
1964
|
-
if (typeof _ === l && (K = _, _ = r), !(this instanceof
|
|
1965
|
-
return new
|
|
1966
|
-
var z = typeof n !== u && n.navigator ? n.navigator : r, $ = _ || (z && z.userAgent ? z.userAgent : o), Rt = z && z.userAgentData ? z.userAgentData : r, Ot = K ? L(ft, K) : ft,
|
|
1963
|
+
}, tt = function(_, K) {
|
|
1964
|
+
if (typeof _ === l && (K = _, _ = r), !(this instanceof tt))
|
|
1965
|
+
return new tt(_, K).getResult();
|
|
1966
|
+
var z = typeof n !== u && n.navigator ? n.navigator : r, $ = _ || (z && z.userAgent ? z.userAgent : o), Rt = z && z.userAgentData ? z.userAgentData : r, Ot = K ? L(ft, K) : ft, Q = z && z.userAgent == $;
|
|
1967
1967
|
return this.getBrowser = function() {
|
|
1968
1968
|
var O = {};
|
|
1969
|
-
return O[f] = r, O[y] = r,
|
|
1969
|
+
return O[f] = r, O[y] = r, X.call(O, $, Ot.browser), O[M] = W(O[y]), Q && z && z.brave && typeof z.brave.isBrave == s && (O[f] = "Brave"), O;
|
|
1970
1970
|
}, this.getCPU = function() {
|
|
1971
1971
|
var O = {};
|
|
1972
|
-
return O[p] = r,
|
|
1972
|
+
return O[p] = r, X.call(O, $, Ot.cpu), O;
|
|
1973
1973
|
}, this.getDevice = function() {
|
|
1974
1974
|
var O = {};
|
|
1975
|
-
return O[h] = r, O[c] = r, O[d] = r,
|
|
1975
|
+
return O[h] = r, O[c] = r, O[d] = r, X.call(O, $, Ot.device), Q && !O[d] && Rt && Rt.mobile && (O[d] = m), Q && O[c] == "Macintosh" && z && typeof z.standalone !== u && z.maxTouchPoints && z.maxTouchPoints > 2 && (O[c] = "iPad", O[d] = N), O;
|
|
1976
1976
|
}, this.getEngine = function() {
|
|
1977
1977
|
var O = {};
|
|
1978
|
-
return O[f] = r, O[y] = r,
|
|
1978
|
+
return O[f] = r, O[y] = r, X.call(O, $, Ot.engine), O;
|
|
1979
1979
|
}, this.getOS = function() {
|
|
1980
1980
|
var O = {};
|
|
1981
|
-
return O[f] = r, O[y] = r,
|
|
1981
|
+
return O[f] = r, O[y] = r, X.call(O, $, Ot.os), Q && !O[f] && Rt && Rt.platform != "Unknown" && (O[f] = Rt.platform.replace(/chrome os/i, fe).replace(/macos/i, Zt)), O;
|
|
1982
1982
|
}, this.getResult = function() {
|
|
1983
1983
|
return {
|
|
1984
1984
|
ua: this.getUA(),
|
|
@@ -1994,17 +1994,17 @@ var co = { exports: {} };
|
|
|
1994
1994
|
return $ = typeof O === g && O.length > v ? At(O, v) : O, this;
|
|
1995
1995
|
}, this.setUA($), this;
|
|
1996
1996
|
};
|
|
1997
|
-
|
|
1998
|
-
var
|
|
1999
|
-
if (
|
|
2000
|
-
var xt = new
|
|
2001
|
-
|
|
1997
|
+
tt.VERSION = i, tt.BROWSER = A([f, y, M]), tt.CPU = A([p]), tt.DEVICE = A([c, h, d, w, m, j, N, b, E]), tt.ENGINE = tt.OS = A([f, y]), t.exports && (e = t.exports = tt), e.UAParser = tt;
|
|
1998
|
+
var at = typeof n !== u && (n.jQuery || n.Zepto);
|
|
1999
|
+
if (at && !at.ua) {
|
|
2000
|
+
var xt = new tt();
|
|
2001
|
+
at.ua = xt.getResult(), at.ua.get = function() {
|
|
2002
2002
|
return xt.getUA();
|
|
2003
|
-
},
|
|
2003
|
+
}, at.ua.set = function(_) {
|
|
2004
2004
|
xt.setUA(_);
|
|
2005
2005
|
var K = xt.getResult();
|
|
2006
2006
|
for (var z in K)
|
|
2007
|
-
|
|
2007
|
+
at.ua[z] = K[z];
|
|
2008
2008
|
};
|
|
2009
2009
|
}
|
|
2010
2010
|
})(typeof window == "object" ? window : Ng);
|
|
@@ -2734,11 +2734,11 @@ const Xg = (t) => (e, n, r) => {
|
|
|
2734
2734
|
errorState: null,
|
|
2735
2735
|
// We know (hope?) this will be prefilled
|
|
2736
2736
|
analyzerSettings: {}
|
|
2737
|
-
},
|
|
2737
|
+
}, nt = th()(
|
|
2738
2738
|
// this is important! Otherwise solid-zustand will start mutating the initial state
|
|
2739
2739
|
Jg(() => structuredClone(ec))
|
|
2740
2740
|
);
|
|
2741
|
-
|
|
2741
|
+
nt.subscribe(
|
|
2742
2742
|
(t) => t.videoElement,
|
|
2743
2743
|
// On videoElement set, it will be [videoElement, null]
|
|
2744
2744
|
// If the videoElement disappears, it will become [null, videoElement]
|
|
@@ -2747,28 +2747,28 @@ et.subscribe(
|
|
|
2747
2747
|
}
|
|
2748
2748
|
);
|
|
2749
2749
|
const nc = () => {
|
|
2750
|
-
console.log("resetting zustand store"),
|
|
2750
|
+
console.log("resetting zustand store"), nt.getState().cameras.forEach((t) => {
|
|
2751
2751
|
t.stopStream();
|
|
2752
|
-
}),
|
|
2752
|
+
}), nt.setState(structuredClone(ec));
|
|
2753
2753
|
};
|
|
2754
2754
|
let fi, ra, fr, pn, ki;
|
|
2755
2755
|
async function eh(t, e = !0) {
|
|
2756
|
-
if (
|
|
2756
|
+
if (nt.getState().isPlaying) {
|
|
2757
2757
|
console.warn("Already streaming");
|
|
2758
2758
|
return;
|
|
2759
2759
|
}
|
|
2760
|
-
if (
|
|
2760
|
+
if (nt.getState().selectedCamera)
|
|
2761
2761
|
console.log("Reusing previous device");
|
|
2762
2762
|
else
|
|
2763
2763
|
try {
|
|
2764
2764
|
await sc();
|
|
2765
2765
|
} catch (o) {
|
|
2766
|
-
|
|
2766
|
+
nt.setState({
|
|
2767
2767
|
errorState: zu(o)
|
|
2768
2768
|
});
|
|
2769
2769
|
return;
|
|
2770
2770
|
}
|
|
2771
|
-
const n =
|
|
2771
|
+
const n = nt.getState();
|
|
2772
2772
|
if (!n.selectedCamera) {
|
|
2773
2773
|
console.warn("No selected camera!");
|
|
2774
2774
|
return;
|
|
@@ -2778,7 +2778,7 @@ async function eh(t, e = !0) {
|
|
|
2778
2778
|
throw new Error("Video doesn't have dimensions!");
|
|
2779
2779
|
if (!t.isConnected)
|
|
2780
2780
|
throw new Error("Video element needs to be in the document!");
|
|
2781
|
-
|
|
2781
|
+
nt.getState().videoElement || nh(t), t.srcObject = r, t.width = i.width, t.height = i.height, nt.setState({
|
|
2782
2782
|
videoElement: t
|
|
2783
2783
|
}), e && await oa();
|
|
2784
2784
|
}
|
|
@@ -2791,20 +2791,20 @@ function nh(t) {
|
|
|
2791
2791
|
}).observe(t), t.playsInline = !0, t.setAttribute("muted", "");
|
|
2792
2792
|
}
|
|
2793
2793
|
async function rh(t) {
|
|
2794
|
-
if (
|
|
2794
|
+
if (nt.getState().isCapturing) {
|
|
2795
2795
|
console.warn(
|
|
2796
2796
|
"Cancel the capture process using `cancelCapture()` before updating settings"
|
|
2797
2797
|
);
|
|
2798
2798
|
return;
|
|
2799
2799
|
}
|
|
2800
2800
|
const e = {
|
|
2801
|
-
...
|
|
2801
|
+
...nt.getState().analyzerSettings,
|
|
2802
2802
|
...t
|
|
2803
2803
|
};
|
|
2804
2804
|
await pn.updateSettings(e), fi.updateSettings(e);
|
|
2805
2805
|
}
|
|
2806
2806
|
async function ih(t) {
|
|
2807
|
-
const e =
|
|
2807
|
+
const e = nt.getState();
|
|
2808
2808
|
if (e.selectedCamera === t) {
|
|
2809
2809
|
console.warn("Already selected");
|
|
2810
2810
|
return;
|
|
@@ -2812,12 +2812,12 @@ async function ih(t) {
|
|
|
2812
2812
|
if (e.isSwappingCamera)
|
|
2813
2813
|
return;
|
|
2814
2814
|
const n = e.selectedCamera;
|
|
2815
|
-
|
|
2815
|
+
nt.setState({
|
|
2816
2816
|
isSwappingCamera: !0
|
|
2817
2817
|
}), n && n.stopStream(), e.videoElement && (e.videoElement.srcObject = null);
|
|
2818
2818
|
try {
|
|
2819
2819
|
const r = await t.startStream();
|
|
2820
|
-
e.videoElement && (e.videoElement.srcObject = r, e.isPlaying && await e.videoElement.play()),
|
|
2820
|
+
e.videoElement && (e.videoElement.srcObject = r, e.isPlaying && await e.videoElement.play()), nt.setState({
|
|
2821
2821
|
selectedCamera: t,
|
|
2822
2822
|
isSwappingCamera: !1
|
|
2823
2823
|
});
|
|
@@ -2827,7 +2827,7 @@ async function ih(t) {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
async function oh() {
|
|
2829
2829
|
console.log("stopStream called");
|
|
2830
|
-
const t =
|
|
2830
|
+
const t = nt.getState();
|
|
2831
2831
|
if (t.selectedCamera?.stopStream(), !t.videoElement) {
|
|
2832
2832
|
console.log("no video element");
|
|
2833
2833
|
return;
|
|
@@ -2835,7 +2835,7 @@ async function oh() {
|
|
|
2835
2835
|
t.videoElement.srcObject = null, await oc(), aa();
|
|
2836
2836
|
}
|
|
2837
2837
|
async function ia() {
|
|
2838
|
-
const t =
|
|
2838
|
+
const t = nt.getState();
|
|
2839
2839
|
if (!t.isCapturing || !t.isPlaying)
|
|
2840
2840
|
return;
|
|
2841
2841
|
if (!t.videoElement) {
|
|
@@ -2851,7 +2851,7 @@ async function ia() {
|
|
|
2851
2851
|
const i = await fr.analyze(
|
|
2852
2852
|
bu(r, [r.data.buffer])
|
|
2853
2853
|
), o = fi.getUiState(i);
|
|
2854
|
-
if (
|
|
2854
|
+
if (nt.setState({
|
|
2855
2855
|
uiState: o
|
|
2856
2856
|
}), n)
|
|
2857
2857
|
try {
|
|
@@ -2860,17 +2860,17 @@ async function ia() {
|
|
|
2860
2860
|
throw console.warn("onFrameAnalysis callback exception"), a;
|
|
2861
2861
|
}
|
|
2862
2862
|
if (n && window.setTimeout(() => ki = null, 0), o.key === "SIDE_CAPTURED") {
|
|
2863
|
-
Mi(),
|
|
2863
|
+
Mi(), nt.setState({
|
|
2864
2864
|
uiState: je.SIDE_CAPTURED
|
|
2865
2865
|
}), await new Promise(
|
|
2866
2866
|
(a) => setTimeout(a, je.SIDE_CAPTURED.minDuration)
|
|
2867
|
-
),
|
|
2867
|
+
), nt.setState({
|
|
2868
2868
|
uiState: je.FLIP_CARD
|
|
2869
2869
|
}), await new Promise((a) => setTimeout(a, je.FLIP_CARD.minDuration)), await ic();
|
|
2870
2870
|
return;
|
|
2871
2871
|
}
|
|
2872
2872
|
if (o.key === "DOCUMENT_CAPTURED") {
|
|
2873
|
-
aa(),
|
|
2873
|
+
aa(), nt.setState({
|
|
2874
2874
|
uiState: je.DOCUMENT_CAPTURED
|
|
2875
2875
|
}), await new Promise(
|
|
2876
2876
|
(s) => setTimeout(s, je.DOCUMENT_CAPTURED.minDuration)
|
|
@@ -2889,7 +2889,7 @@ async function ia() {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
async function ic() {
|
|
2891
2891
|
console.log("startCapture called");
|
|
2892
|
-
const t =
|
|
2892
|
+
const t = nt.getState();
|
|
2893
2893
|
if (!t.isCapturing) {
|
|
2894
2894
|
if (!t.videoElement) {
|
|
2895
2895
|
console.warn("Missing video element");
|
|
@@ -2899,7 +2899,7 @@ async function ic() {
|
|
|
2899
2899
|
console.warn("No active camera!");
|
|
2900
2900
|
return;
|
|
2901
2901
|
}
|
|
2902
|
-
await oa(),
|
|
2902
|
+
await oa(), nt.getState().isPlaying && (nt.setState({
|
|
2903
2903
|
isCapturing: !0
|
|
2904
2904
|
}), ra = t.videoElement.requestVideoFrameCallback(
|
|
2905
2905
|
() => void ia()
|
|
@@ -2908,13 +2908,13 @@ async function ic() {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
function Mi() {
|
|
2910
2910
|
console.log("pauseCapture called");
|
|
2911
|
-
const t =
|
|
2912
|
-
t && t.cancelVideoFrameCallback(ra),
|
|
2911
|
+
const t = nt.getState().videoElement;
|
|
2912
|
+
t && t.cancelVideoFrameCallback(ra), nt.setState({
|
|
2913
2913
|
isCapturing: !1
|
|
2914
2914
|
});
|
|
2915
2915
|
}
|
|
2916
2916
|
async function oc() {
|
|
2917
|
-
console.log("cancelCapture called"), await ac(), fi.reset(), Mi(),
|
|
2917
|
+
console.log("cancelCapture called"), await ac(), fi.reset(), Mi(), nt.setState({
|
|
2918
2918
|
uiState: je.SENSING_FRONT
|
|
2919
2919
|
});
|
|
2920
2920
|
}
|
|
@@ -2925,9 +2925,9 @@ async function ah() {
|
|
|
2925
2925
|
await pn.finishSideCapture();
|
|
2926
2926
|
}
|
|
2927
2927
|
async function sc() {
|
|
2928
|
-
if (
|
|
2928
|
+
if (nt.getState().isQueryingCameras || nt.getState().isSwappingCamera)
|
|
2929
2929
|
return;
|
|
2930
|
-
|
|
2930
|
+
nt.setState({
|
|
2931
2931
|
isQueryingCameras: !0
|
|
2932
2932
|
});
|
|
2933
2933
|
const t = await Ig();
|
|
@@ -2939,14 +2939,14 @@ async function sc() {
|
|
|
2939
2939
|
const e = vg(t), n = t.find(
|
|
2940
2940
|
(r) => r.deviceInfo.deviceId === e
|
|
2941
2941
|
);
|
|
2942
|
-
|
|
2942
|
+
nt.setState({
|
|
2943
2943
|
cameras: t,
|
|
2944
2944
|
selectedCamera: n,
|
|
2945
2945
|
isQueryingCameras: !1
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
2948
2948
|
async function oa() {
|
|
2949
|
-
const t =
|
|
2949
|
+
const t = nt.getState();
|
|
2950
2950
|
if (!t.isPlaying) {
|
|
2951
2951
|
if (!t.videoElement) {
|
|
2952
2952
|
console.warn("No video element present.");
|
|
@@ -2960,20 +2960,20 @@ async function oa() {
|
|
|
2960
2960
|
console.warn("No selected camera");
|
|
2961
2961
|
return;
|
|
2962
2962
|
}
|
|
2963
|
-
await t.selectedCamera.startStream(), await t.videoElement.play(),
|
|
2963
|
+
await t.selectedCamera.startStream(), await t.videoElement.play(), nt.setState({ isPlaying: !0 }), t.isCapturing === !0 && t.videoElement.requestVideoFrameCallback(() => void ia());
|
|
2964
2964
|
}
|
|
2965
2965
|
}
|
|
2966
2966
|
function aa() {
|
|
2967
2967
|
console.log("pausePlayback called");
|
|
2968
|
-
const t =
|
|
2968
|
+
const t = nt.getState();
|
|
2969
2969
|
if (!t.videoElement) {
|
|
2970
|
-
|
|
2970
|
+
nt.setState({ isPlaying: !1 });
|
|
2971
2971
|
return;
|
|
2972
2972
|
}
|
|
2973
|
-
Mi(), t.videoElement.pause(),
|
|
2973
|
+
Mi(), t.videoElement.pause(), nt.setState({ isPlaying: !1 });
|
|
2974
2974
|
}
|
|
2975
2975
|
function uc(t) {
|
|
2976
|
-
|
|
2976
|
+
nt.setState({
|
|
2977
2977
|
callbacks: t
|
|
2978
2978
|
});
|
|
2979
2979
|
}
|
|
@@ -2984,7 +2984,7 @@ async function fN(t) {
|
|
|
2984
2984
|
Can't load the SDK outside a secure context:
|
|
2985
2985
|
https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
|
|
2986
2986
|
`);
|
|
2987
|
-
if (
|
|
2987
|
+
if (nt.getState().initialized)
|
|
2988
2988
|
return console.warn("Already initialized"), Za;
|
|
2989
2989
|
fr = xg(t.resourceUrl);
|
|
2990
2990
|
const e = Cg(), n = await fr.loadWasm(), r = await n.initializeWithLicenseKey(
|
|
@@ -3007,13 +3007,13 @@ async function fN(t) {
|
|
|
3007
3007
|
minimumDocumentDpi: 200,
|
|
3008
3008
|
...t.analyzerSettings
|
|
3009
3009
|
};
|
|
3010
|
-
return fi = new Wg(i), t.analyzerSettings && await pn.updateSettings(i),
|
|
3010
|
+
return fi = new Wg(i), t.analyzerSettings && await pn.updateSettings(i), nt.setState({
|
|
3011
3011
|
analyzerSettings: i
|
|
3012
|
-
}), t.callbacks && uc(t.callbacks),
|
|
3012
|
+
}), t.callbacks && uc(t.callbacks), nt.setState({
|
|
3013
3013
|
initialized: !0
|
|
3014
3014
|
}), Za;
|
|
3015
3015
|
} catch (e) {
|
|
3016
|
-
throw
|
|
3016
|
+
throw nt.setState({
|
|
3017
3017
|
errorState: zu(e)
|
|
3018
3018
|
}), e;
|
|
3019
3019
|
}
|
|
@@ -3089,11 +3089,11 @@ const Za = {
|
|
|
3089
3089
|
* Allows the user to subscribe to state changes inside the Capture SDK. Implemented using Zustand.
|
|
3090
3090
|
* For usage information, see {@link https://github.com/pmndrs/zustand#using-subscribe-with-selector}
|
|
3091
3091
|
*/
|
|
3092
|
-
subscribe:
|
|
3092
|
+
subscribe: nt.subscribe,
|
|
3093
3093
|
/**
|
|
3094
3094
|
* Gets the current internal state of the Capture SDK.
|
|
3095
3095
|
*/
|
|
3096
|
-
getState:
|
|
3096
|
+
getState: nt.getState,
|
|
3097
3097
|
/**
|
|
3098
3098
|
* Resets the SDK core and terminates the workers and the Wasm runtime.
|
|
3099
3099
|
*/
|
|
@@ -3120,7 +3120,7 @@ const Fe = 1, qr = 2, dc = {
|
|
|
3120
3120
|
};
|
|
3121
3121
|
var St = null;
|
|
3122
3122
|
let Ui = null, jt = null, Kt = null, Ye = null, yi = 0;
|
|
3123
|
-
const [ch, pN] = /* @__PURE__ */
|
|
3123
|
+
const [ch, pN] = /* @__PURE__ */ Z(!1);
|
|
3124
3124
|
function mn(t, e) {
|
|
3125
3125
|
const n = jt, r = St, i = t.length === 0, o = i ? dc : {
|
|
3126
3126
|
owned: null,
|
|
@@ -3135,7 +3135,7 @@ function mn(t, e) {
|
|
|
3135
3135
|
jt = n, St = r;
|
|
3136
3136
|
}
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function Z(t, e) {
|
|
3139
3139
|
e = e ? Object.assign({}, Zr, e) : Zr;
|
|
3140
3140
|
const n = {
|
|
3141
3141
|
value: t,
|
|
@@ -3153,7 +3153,7 @@ function Le(t, e, n) {
|
|
|
3153
3153
|
const r = mi(t, e, !1, Fe);
|
|
3154
3154
|
$n(r);
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function rt(t, e, n) {
|
|
3157
3157
|
lc = yh;
|
|
3158
3158
|
const r = mi(t, e, !1, Fe);
|
|
3159
3159
|
(!n || !n.render) && (r.user = !0), Ye ? Ye.push(r) : $n(r);
|
|
@@ -3197,7 +3197,7 @@ function be(t, e, n) {
|
|
|
3197
3197
|
};
|
|
3198
3198
|
}
|
|
3199
3199
|
function Je(t) {
|
|
3200
|
-
|
|
3200
|
+
rt(() => Yt(t));
|
|
3201
3201
|
}
|
|
3202
3202
|
function dt(t) {
|
|
3203
3203
|
return St === null || (St.cleanups === null ? St.cleanups = [t] : St.cleanups.push(t)), t;
|
|
@@ -3459,7 +3459,7 @@ function wh(t, e, n = {}) {
|
|
|
3459
3459
|
});
|
|
3460
3460
|
function M(c) {
|
|
3461
3461
|
if (o[g] = c, s) {
|
|
3462
|
-
const [f, d] =
|
|
3462
|
+
const [f, d] = Z(g);
|
|
3463
3463
|
return s[g] = d, e(u[g], f);
|
|
3464
3464
|
}
|
|
3465
3465
|
return e(u[g]);
|
|
@@ -3814,7 +3814,7 @@ const Xa = "_$DX_DELEGATE";
|
|
|
3814
3814
|
function Ch(t, e, n, r = {}) {
|
|
3815
3815
|
let i;
|
|
3816
3816
|
return mn((o) => {
|
|
3817
|
-
i = o, e === document ? t() :
|
|
3817
|
+
i = o, e === document ? t() : ot(e, t(), e.firstChild ? null : void 0, n);
|
|
3818
3818
|
}, r.owner), () => {
|
|
3819
3819
|
i(), e.textContent = "";
|
|
3820
3820
|
};
|
|
@@ -3886,7 +3886,7 @@ function ee(t, e = {}, n, r) {
|
|
|
3886
3886
|
function Lc(t, e, n) {
|
|
3887
3887
|
return Yt(() => t(e, n));
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function ot(t, e, n, r) {
|
|
3890
3890
|
if (n !== void 0 && !r && (r = []), typeof e != "function")
|
|
3891
3891
|
return Yn(t, e, r, n);
|
|
3892
3892
|
Le((i) => Yn(t, e(), i, n), r);
|
|
@@ -4069,12 +4069,12 @@ function ca(t) {
|
|
|
4069
4069
|
useShadow: e
|
|
4070
4070
|
} = t, n = document.createTextNode(""), r = () => t.mount || document.body, i = lh();
|
|
4071
4071
|
let o, a = !!cc.context;
|
|
4072
|
-
return
|
|
4072
|
+
return rt(() => {
|
|
4073
4073
|
o || (o = dh(i, () => V(() => t.children)));
|
|
4074
4074
|
const s = r();
|
|
4075
4075
|
if (s instanceof HTMLHeadElement) {
|
|
4076
|
-
const [u, l] =
|
|
4077
|
-
mn((M) =>
|
|
4076
|
+
const [u, l] = Z(!1), g = () => l(!0);
|
|
4077
|
+
mn((M) => ot(s, () => u() ? M() : o(), null)), dt(g);
|
|
4078
4078
|
} else {
|
|
4079
4079
|
const u = Tc(t.isSVG ? "g" : "div", t.isSVG), l = e && u.attachShadow ? u.attachShadow({
|
|
4080
4080
|
mode: "open"
|
|
@@ -4084,7 +4084,7 @@ function ca(t) {
|
|
|
4084
4084
|
return n.parentNode;
|
|
4085
4085
|
},
|
|
4086
4086
|
configurable: !0
|
|
4087
|
-
}),
|
|
4087
|
+
}), ot(l, o), s.appendChild(u), t.ref && t.ref(u), dt(() => s.removeChild(u));
|
|
4088
4088
|
}
|
|
4089
4089
|
}, void 0, {
|
|
4090
4090
|
render: !a
|
|
@@ -4167,7 +4167,7 @@ function Qh(t) {
|
|
|
4167
4167
|
return Ec(t), Reflect.ownKeys(t);
|
|
4168
4168
|
}
|
|
4169
4169
|
function Sc(t) {
|
|
4170
|
-
const [e, n] =
|
|
4170
|
+
const [e, n] = Z(t, {
|
|
4171
4171
|
equals: !1,
|
|
4172
4172
|
internal: !0
|
|
4173
4173
|
});
|
|
@@ -4425,7 +4425,7 @@ function tf(t, e, n, r) {
|
|
|
4425
4425
|
o && ns(S(e)).forEach((a) => Jh(o, a, n, r));
|
|
4426
4426
|
});
|
|
4427
4427
|
};
|
|
4428
|
-
typeof t == "function" ?
|
|
4428
|
+
typeof t == "function" ? rt(i) : Le(i);
|
|
4429
4429
|
}
|
|
4430
4430
|
var Pi = Symbol("fallback");
|
|
4431
4431
|
function rs(t) {
|
|
@@ -4462,9 +4462,9 @@ function ef(t, e, n, r = {}) {
|
|
|
4462
4462
|
};
|
|
4463
4463
|
function o(a, s, u, l) {
|
|
4464
4464
|
mn((g) => {
|
|
4465
|
-
const [M, c] =
|
|
4465
|
+
const [M, c] = Z(s), f = { setItem: c, dispose: g };
|
|
4466
4466
|
if (n.length > 1) {
|
|
4467
|
-
const [d, h] =
|
|
4467
|
+
const [d, h] = Z(u);
|
|
4468
4468
|
f.setIndex = h, f.mapped = n(M, d);
|
|
4469
4469
|
} else
|
|
4470
4470
|
f.mapped = n(M);
|
|
@@ -4973,8 +4973,8 @@ function xf(t, e = []) {
|
|
|
4973
4973
|
getTextValue: S(t.getTextValue),
|
|
4974
4974
|
getDisabled: S(t.getDisabled),
|
|
4975
4975
|
getSectionChildren: S(t.getSectionChildren)
|
|
4976
|
-
}), [r, i] =
|
|
4977
|
-
return
|
|
4976
|
+
}), [r, i] = Z(t.factory(n));
|
|
4977
|
+
return rt(be([
|
|
4978
4978
|
() => S(t.dataSource),
|
|
4979
4979
|
() => S(t.getKey),
|
|
4980
4980
|
() => S(t.getTextValue),
|
|
@@ -5013,7 +5013,7 @@ function Of(t) {
|
|
|
5013
5013
|
return gs.set(t, e), e;
|
|
5014
5014
|
}
|
|
5015
5015
|
function Uc(t) {
|
|
5016
|
-
const [e, n] =
|
|
5016
|
+
const [e, n] = Z(t.defaultValue?.()), r = V(() => t.value?.() !== void 0), i = V(() => r() ? t.value?.() : e());
|
|
5017
5017
|
return [i, (o) => {
|
|
5018
5018
|
Yt(() => {
|
|
5019
5019
|
const a = qh(o, i());
|
|
@@ -5049,7 +5049,7 @@ function zf(t) {
|
|
|
5049
5049
|
const e = (n) => {
|
|
5050
5050
|
n.key === Ic.Escape && t.onEscapeKeyDown?.(n);
|
|
5051
5051
|
};
|
|
5052
|
-
|
|
5052
|
+
rt(() => {
|
|
5053
5053
|
if (S(t.isDisabled))
|
|
5054
5054
|
return;
|
|
5055
5055
|
const n = t.ownerDocument?.() ?? de();
|
|
@@ -5166,7 +5166,7 @@ const Ri = "focusScope.autoFocusOnMount", Fi = "focusScope.autoFocusOnUnmount",
|
|
|
5166
5166
|
}
|
|
5167
5167
|
};
|
|
5168
5168
|
function Rc(t, e) {
|
|
5169
|
-
const [n, r] =
|
|
5169
|
+
const [n, r] = Z(!1), i = {
|
|
5170
5170
|
pause() {
|
|
5171
5171
|
r(!0);
|
|
5172
5172
|
},
|
|
@@ -5194,7 +5194,7 @@ function Rc(t, e) {
|
|
|
5194
5194
|
const h = cr(d);
|
|
5195
5195
|
return !h || we(d, h) ? !1 : kc(h);
|
|
5196
5196
|
};
|
|
5197
|
-
|
|
5197
|
+
rt(() => {
|
|
5198
5198
|
const d = e();
|
|
5199
5199
|
if (!d)
|
|
5200
5200
|
return;
|
|
@@ -5212,7 +5212,7 @@ function Rc(t, e) {
|
|
|
5212
5212
|
f() && y.preventDefault(), d.addEventListener(Fi, s), d.dispatchEvent(y), y.defaultPrevented || Ht(h ?? u().body), d.removeEventListener(Fi, s), fs.remove(i);
|
|
5213
5213
|
}, 0);
|
|
5214
5214
|
});
|
|
5215
|
-
}),
|
|
5215
|
+
}), rt(() => {
|
|
5216
5216
|
const d = e();
|
|
5217
5217
|
if (!d || !S(t.trapFocus) || n())
|
|
5218
5218
|
return;
|
|
@@ -5226,7 +5226,7 @@ function Rc(t, e) {
|
|
|
5226
5226
|
u().addEventListener("focusin", h), u().addEventListener("focusout", y), dt(() => {
|
|
5227
5227
|
u().removeEventListener("focusin", h), u().removeEventListener("focusout", y);
|
|
5228
5228
|
});
|
|
5229
|
-
}),
|
|
5229
|
+
}), rt(() => {
|
|
5230
5230
|
const d = e();
|
|
5231
5231
|
if (!d || !S(t.trapFocus) || n())
|
|
5232
5232
|
return;
|
|
@@ -5259,7 +5259,7 @@ function Rc(t, e) {
|
|
|
5259
5259
|
* https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
|
|
5260
5260
|
*/
|
|
5261
5261
|
function Hf(t, e) {
|
|
5262
|
-
|
|
5262
|
+
rt(be(t, (n) => {
|
|
5263
5263
|
if (n == null)
|
|
5264
5264
|
return;
|
|
5265
5265
|
const r = Qf(n);
|
|
@@ -5290,7 +5290,7 @@ const Kf = "data-live-announcer";
|
|
|
5290
5290
|
* https://github.com/adobe/react-spectrum/blob/810579b671791f1593108f62cdc1893de3a220e3/packages/@react-aria/overlays/src/ariaHideOutside.ts
|
|
5291
5291
|
*/
|
|
5292
5292
|
function Fc(t) {
|
|
5293
|
-
|
|
5293
|
+
rt(() => {
|
|
5294
5294
|
S(t.isDisabled) || dt($f(S(t.targets), S(t.root)));
|
|
5295
5295
|
});
|
|
5296
5296
|
}
|
|
@@ -5402,7 +5402,7 @@ function Vf(t, e) {
|
|
|
5402
5402
|
});
|
|
5403
5403
|
f.dispatchEvent(h);
|
|
5404
5404
|
};
|
|
5405
|
-
|
|
5405
|
+
rt(() => {
|
|
5406
5406
|
S(t.isDisabled) || (n = window.setTimeout(() => {
|
|
5407
5407
|
i().addEventListener("pointerdown", l, !0);
|
|
5408
5408
|
}, 0), i().addEventListener("focusin", g, !0), dt(() => {
|
|
@@ -5419,7 +5419,7 @@ function Vf(t, e) {
|
|
|
5419
5419
|
* https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/useStateMachine.tsx
|
|
5420
5420
|
*/
|
|
5421
5421
|
function ni(t) {
|
|
5422
|
-
const [e, n] =
|
|
5422
|
+
const [e, n] = Z();
|
|
5423
5423
|
let r = {}, i = t(), o = "none";
|
|
5424
5424
|
const [a, s] = Wf(t() ? "mounted" : "unmounted", {
|
|
5425
5425
|
mounted: {
|
|
@@ -5434,15 +5434,15 @@ function ni(t) {
|
|
|
5434
5434
|
MOUNT: "mounted"
|
|
5435
5435
|
}
|
|
5436
5436
|
});
|
|
5437
|
-
return
|
|
5437
|
+
return rt(be(a, (u) => {
|
|
5438
5438
|
const l = zr(r);
|
|
5439
5439
|
o = u === "mounted" ? l : "none";
|
|
5440
|
-
})),
|
|
5440
|
+
})), rt(be(t, (u) => {
|
|
5441
5441
|
if (i === u)
|
|
5442
5442
|
return;
|
|
5443
5443
|
const l = zr(r);
|
|
5444
5444
|
u ? s("MOUNT") : r?.display === "none" ? s("UNMOUNT") : s(i && o !== l ? "ANIMATION_OUT" : "UNMOUNT"), i = u;
|
|
5445
|
-
})),
|
|
5445
|
+
})), rt(be(e, (u) => {
|
|
5446
5446
|
if (u) {
|
|
5447
5447
|
const l = (M) => {
|
|
5448
5448
|
const c = zr(r).includes(M.animationName);
|
|
@@ -5466,7 +5466,7 @@ function zr(t) {
|
|
|
5466
5466
|
return t?.animationName || "none";
|
|
5467
5467
|
}
|
|
5468
5468
|
function Wf(t, e) {
|
|
5469
|
-
const n = (o, a) => e[o][a] ?? o, [r, i] =
|
|
5469
|
+
const n = (o, a) => e[o][a] ?? o, [r, i] = Z(t);
|
|
5470
5470
|
return [r, (o) => {
|
|
5471
5471
|
i((a) => n(a, o));
|
|
5472
5472
|
}];
|
|
@@ -5508,7 +5508,7 @@ function qf(t) {
|
|
|
5508
5508
|
return Math.round(e) + t.scrollLeft ? "paddingLeft" : "paddingRight";
|
|
5509
5509
|
}
|
|
5510
5510
|
function Bc(t) {
|
|
5511
|
-
|
|
5511
|
+
rt(() => {
|
|
5512
5512
|
if (!S(t.ownerRef) || S(t.isDisabled))
|
|
5513
5513
|
return;
|
|
5514
5514
|
const e = de(S(t.ownerRef)), n = ha(S(t.ownerRef)), { documentElement: r, body: i } = e;
|
|
@@ -5547,8 +5547,8 @@ function ue(t) {
|
|
|
5547
5547
|
* https://github.com/ariakit/ariakit/blob/8a13899ff807bbf39f3d89d2d5964042ba4d5287/packages/ariakit-react-utils/src/hooks.ts
|
|
5548
5548
|
*/
|
|
5549
5549
|
function Xf(t, e) {
|
|
5550
|
-
const [n, r] =
|
|
5551
|
-
return
|
|
5550
|
+
const [n, r] = Z(ms(e?.()));
|
|
5551
|
+
return rt(() => {
|
|
5552
5552
|
r(t()?.tagName.toLowerCase() || ms(e?.()));
|
|
5553
5553
|
}), n;
|
|
5554
5554
|
}
|
|
@@ -5568,7 +5568,7 @@ function tM(t) {
|
|
|
5568
5568
|
t = zt({
|
|
5569
5569
|
id: e
|
|
5570
5570
|
}, t);
|
|
5571
|
-
const [n, r] =
|
|
5571
|
+
const [n, r] = Z(), [i, o] = Z(), [a, s] = Z(), [u, l] = Z(), g = (f, d, h) => {
|
|
5572
5572
|
const y = h != null || n() != null;
|
|
5573
5573
|
return [
|
|
5574
5574
|
h,
|
|
@@ -5623,7 +5623,7 @@ function nM(t) {
|
|
|
5623
5623
|
const e = Na();
|
|
5624
5624
|
return t = zt({
|
|
5625
5625
|
id: e.generateId("field")
|
|
5626
|
-
}, t),
|
|
5626
|
+
}, t), rt(() => dt(e.registerField(S(t.id)))), {
|
|
5627
5627
|
fieldProps: {
|
|
5628
5628
|
id: () => S(t.id),
|
|
5629
5629
|
ariaLabel: () => S(t["aria-label"]),
|
|
@@ -5798,7 +5798,7 @@ function Ls() {
|
|
|
5798
5798
|
t(bo);
|
|
5799
5799
|
}
|
|
5800
5800
|
function cM() {
|
|
5801
|
-
const [t, e] =
|
|
5801
|
+
const [t, e] = Z(bo), n = V(() => t());
|
|
5802
5802
|
return Je(() => {
|
|
5803
5803
|
lr.size === 0 && window.addEventListener("languagechange", Ls), lr.add(e), dt(() => {
|
|
5804
5804
|
lr.delete(e), lr.size === 0 && window.removeEventListener("languagechange", Ls);
|
|
@@ -8654,7 +8654,7 @@ function c0(t) {
|
|
|
8654
8654
|
selectionMode: "none",
|
|
8655
8655
|
selectionBehavior: "toggle"
|
|
8656
8656
|
}, t);
|
|
8657
|
-
const [e, n] =
|
|
8657
|
+
const [e, n] = Z(!1), [r, i] = Z(), o = V(() => {
|
|
8658
8658
|
const d = S(t.selectedKeys);
|
|
8659
8659
|
if (d)
|
|
8660
8660
|
return xs(d);
|
|
@@ -8665,13 +8665,13 @@ function c0(t) {
|
|
|
8665
8665
|
value: o,
|
|
8666
8666
|
defaultValue: a,
|
|
8667
8667
|
onChange: (d) => t.onSelectionChange?.(d)
|
|
8668
|
-
}), [l, g] =
|
|
8668
|
+
}), [l, g] = Z(S(t.selectionBehavior)), M = () => S(t.selectionMode), c = () => S(t.disallowEmptySelection) ?? !1, f = (d) => {
|
|
8669
8669
|
(S(t.allowDuplicateSelectionEvents) || !u0(d, s())) && u(d);
|
|
8670
8670
|
};
|
|
8671
|
-
return
|
|
8671
|
+
return rt(() => {
|
|
8672
8672
|
const d = s();
|
|
8673
8673
|
S(t.selectionBehavior) === "replace" && l() === "toggle" && typeof d == "object" && d.size === 0 && g("replace");
|
|
8674
|
-
}),
|
|
8674
|
+
}), rt(() => {
|
|
8675
8675
|
g(S(t.selectionBehavior) ?? "toggle");
|
|
8676
8676
|
}), {
|
|
8677
8677
|
selectionMode: M,
|
|
@@ -8694,7 +8694,7 @@ function c0(t) {
|
|
|
8694
8694
|
* https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useTypeSelect.ts
|
|
8695
8695
|
*/
|
|
8696
8696
|
function cl(t) {
|
|
8697
|
-
const [e, n] =
|
|
8697
|
+
const [e, n] = Z(""), [r, i] = Z(-1);
|
|
8698
8698
|
return {
|
|
8699
8699
|
typeSelectHandlers: {
|
|
8700
8700
|
onKeyDown: (o) => {
|
|
@@ -8875,7 +8875,7 @@ function g0(t, e, n) {
|
|
|
8875
8875
|
};
|
|
8876
8876
|
return Je(() => {
|
|
8877
8877
|
t.deferAutoFocus ? setTimeout(M, 0) : M();
|
|
8878
|
-
}),
|
|
8878
|
+
}), rt(be([
|
|
8879
8879
|
r,
|
|
8880
8880
|
() => S(t.isVirtualized),
|
|
8881
8881
|
() => S(t.selectionManager).focusedKey()
|
|
@@ -8927,7 +8927,7 @@ function h0(t, e) {
|
|
|
8927
8927
|
if (!(i() || s()))
|
|
8928
8928
|
return r() === n().focusedKey() ? 0 : -1;
|
|
8929
8929
|
}), p = V(() => S(t.virtualized) ? void 0 : r());
|
|
8930
|
-
return
|
|
8930
|
+
return rt(be([e, r, i, () => n().focusedKey(), () => n().isFocused()], ([w, m, N, j, b]) => {
|
|
8931
8931
|
w && m === j && b && !N && document.activeElement !== w && (t.focus ? t.focus() : Ht(w));
|
|
8932
8932
|
})), {
|
|
8933
8933
|
isSelected: a,
|
|
@@ -9458,7 +9458,7 @@ function Ea(t) {
|
|
|
9458
9458
|
oe.assignPointerEventToLayers(), oe.disableBodyPointerEvents(e), dt(() => {
|
|
9459
9459
|
e && (oe.removeLayer(e), u?.(), oe.assignPointerEventToLayers(), oe.restoreBodyPointerEvents(e));
|
|
9460
9460
|
});
|
|
9461
|
-
}),
|
|
9461
|
+
}), rt(be([() => e, () => r.disableOutsidePointerEvents], ([u, l]) => {
|
|
9462
9462
|
if (!u)
|
|
9463
9463
|
return;
|
|
9464
9464
|
const g = oe.find(u);
|
|
@@ -9511,7 +9511,7 @@ function Ei(t) {
|
|
|
9511
9511
|
trapFocus: () => n.isOpen() && n.modal(),
|
|
9512
9512
|
onMountAutoFocus: r.onOpenAutoFocus,
|
|
9513
9513
|
onUnmountAutoFocus: g
|
|
9514
|
-
}, () => e),
|
|
9514
|
+
}, () => e), rt(() => dt(n.registerContentId(i.id))), T(kt, {
|
|
9515
9515
|
get when() {
|
|
9516
9516
|
return n.contentPresence.isPresent();
|
|
9517
9517
|
},
|
|
@@ -9559,7 +9559,7 @@ function N0(t) {
|
|
|
9559
9559
|
id: e.generateId("description")
|
|
9560
9560
|
}, t);
|
|
9561
9561
|
const [n, r] = bt(t, ["id"]);
|
|
9562
|
-
return
|
|
9562
|
+
return rt(() => dt(e.registerDescriptionId(n.id))), T(ne, Mt({
|
|
9563
9563
|
as: "p",
|
|
9564
9564
|
get id() {
|
|
9565
9565
|
return n.id;
|
|
@@ -9616,7 +9616,7 @@ function bi(t) {
|
|
|
9616
9616
|
modal: !0,
|
|
9617
9617
|
preventScroll: !1
|
|
9618
9618
|
}, t);
|
|
9619
|
-
const [n, r] =
|
|
9619
|
+
const [n, r] = Z(), [i, o] = Z(), [a, s] = Z(), [u, l] = Z(), g = pa({
|
|
9620
9620
|
open: () => t.open,
|
|
9621
9621
|
defaultOpen: () => t.defaultOpen,
|
|
9622
9622
|
onOpenChange: (h) => t.onOpenChange?.(h)
|
|
@@ -9651,7 +9651,7 @@ function w0(t) {
|
|
|
9651
9651
|
id: e.generateId("title")
|
|
9652
9652
|
}, t);
|
|
9653
9653
|
const [n, r] = bt(t, ["id"]);
|
|
9654
|
-
return
|
|
9654
|
+
return rt(() => dt(e.registerTitleId(n.id))), T(ne, Mt({
|
|
9655
9655
|
as: "h2",
|
|
9656
9656
|
get id() {
|
|
9657
9657
|
return n.id;
|
|
@@ -9711,8 +9711,8 @@ function E0(t) {
|
|
|
9711
9711
|
}));
|
|
9712
9712
|
}
|
|
9713
9713
|
function S0(t) {
|
|
9714
|
-
const [e, n] =
|
|
9715
|
-
return
|
|
9714
|
+
const [e, n] = Z();
|
|
9715
|
+
return rt(() => {
|
|
9716
9716
|
const r = t();
|
|
9717
9717
|
r && n(ha(r).getComputedStyle(r));
|
|
9718
9718
|
}), e;
|
|
@@ -9843,14 +9843,14 @@ const x0 = function(t) {
|
|
|
9843
9843
|
M || f === "none" || m.push(...function(U, C, I, x) {
|
|
9844
9844
|
const k = qn(U);
|
|
9845
9845
|
let D = function(P, R, H) {
|
|
9846
|
-
const
|
|
9846
|
+
const q = ["left", "right"], J = ["right", "left"], st = ["top", "bottom"], Et = ["bottom", "top"];
|
|
9847
9847
|
switch (P) {
|
|
9848
9848
|
case "top":
|
|
9849
9849
|
case "bottom":
|
|
9850
|
-
return H ? R ?
|
|
9850
|
+
return H ? R ? J : q : R ? q : J;
|
|
9851
9851
|
case "left":
|
|
9852
9852
|
case "right":
|
|
9853
|
-
return R ?
|
|
9853
|
+
return R ? st : Et;
|
|
9854
9854
|
default:
|
|
9855
9855
|
return [];
|
|
9856
9856
|
}
|
|
@@ -10292,7 +10292,7 @@ function bl(t) {
|
|
|
10292
10292
|
arrowPadding: 4,
|
|
10293
10293
|
overflowPadding: 8
|
|
10294
10294
|
}, t);
|
|
10295
|
-
const [e, n] =
|
|
10295
|
+
const [e, n] = Z(), [r, i] = Z(), [o, a] = Z(t.placement), s = () => B0(t.anchorRef(), t.getAnchorRect), {
|
|
10296
10296
|
direction: u
|
|
10297
10297
|
} = wi();
|
|
10298
10298
|
async function l() {
|
|
@@ -10374,7 +10374,7 @@ function bl(t) {
|
|
|
10374
10374
|
});
|
|
10375
10375
|
}
|
|
10376
10376
|
}
|
|
10377
|
-
|
|
10377
|
+
rt(() => {
|
|
10378
10378
|
const M = s(), c = e();
|
|
10379
10379
|
if (!M || !c)
|
|
10380
10380
|
return;
|
|
@@ -10383,7 +10383,7 @@ function bl(t) {
|
|
|
10383
10383
|
elementResize: typeof ResizeObserver == "function"
|
|
10384
10384
|
});
|
|
10385
10385
|
dt(f);
|
|
10386
|
-
}),
|
|
10386
|
+
}), rt(() => {
|
|
10387
10387
|
const M = e(), c = t.contentRef();
|
|
10388
10388
|
!M || !c || queueMicrotask(() => {
|
|
10389
10389
|
M.style.zIndex = getComputedStyle(c).zIndex;
|
|
@@ -10422,7 +10422,7 @@ function $0(t) {
|
|
|
10422
10422
|
t = zt({
|
|
10423
10423
|
id: r
|
|
10424
10424
|
}, t);
|
|
10425
|
-
const [i, o] = bt(t, ["ref", "item", "aria-label", "aria-labelledby", "aria-describedby", "onPointerMove", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, s] =
|
|
10425
|
+
const [i, o] = bt(t, ["ref", "item", "aria-label", "aria-labelledby", "aria-describedby", "onPointerMove", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, s] = Z(), [u, l] = Z(), g = () => n.listState().selectionManager(), M = () => g().focusedKey() === i.item.key, c = h0({
|
|
10426
10426
|
key: () => i.item.key,
|
|
10427
10427
|
selectionManager: g,
|
|
10428
10428
|
shouldSelectOnPressUp: n.shouldSelectOnPressUp,
|
|
@@ -10537,7 +10537,7 @@ function W0(t) {
|
|
|
10537
10537
|
id: e.generateId("label")
|
|
10538
10538
|
}, t);
|
|
10539
10539
|
const [n, r] = bt(t, ["id"]);
|
|
10540
|
-
return
|
|
10540
|
+
return rt(() => dt(e.registerLabelId(n.id))), T(ne, Mt({
|
|
10541
10541
|
as: "div",
|
|
10542
10542
|
get id() {
|
|
10543
10543
|
return n.id;
|
|
@@ -10737,7 +10737,7 @@ function J0(t) {
|
|
|
10737
10737
|
id: e.generateId("listbox")
|
|
10738
10738
|
}, t);
|
|
10739
10739
|
const [n, r] = bt(t, ["ref", "id", "onKeyDown"]);
|
|
10740
|
-
return
|
|
10740
|
+
return rt(() => dt(e.registerListboxId(n.id))), T(Z0, Mt({
|
|
10741
10741
|
ref(i) {
|
|
10742
10742
|
const o = he(e.setListboxRef, n.ref);
|
|
10743
10743
|
typeof o == "function" && o(i);
|
|
@@ -10799,13 +10799,13 @@ function ey(t) {
|
|
|
10799
10799
|
modal: !1,
|
|
10800
10800
|
preventScroll: !1
|
|
10801
10801
|
}, t);
|
|
10802
|
-
const [n, r, i, o] = bt(t, ["itemComponent", "sectionComponent", "open", "defaultOpen", "onOpenChange", "value", "defaultValue", "onChange", "placeholder", "options", "optionValue", "optionTextValue", "optionDisabled", "optionGroupChildren", "keyboardDelegate", "allowDuplicateSelectionEvents", "disallowEmptySelection", "disallowTypeAhead", "shouldFocusWrap", "selectionBehavior", "selectionMode", "virtualized", "modal", "preventScroll", "forceMount"], ["getAnchorRect", "placement", "gutter", "shift", "flip", "slide", "overlap", "sameWidth", "fitViewport", "hideWhenDetached", "detachedPadding", "arrowPadding", "overflowPadding"], Jf), [a, s] =
|
|
10803
|
-
const
|
|
10804
|
-
return
|
|
10802
|
+
const [n, r, i, o] = bt(t, ["itemComponent", "sectionComponent", "open", "defaultOpen", "onOpenChange", "value", "defaultValue", "onChange", "placeholder", "options", "optionValue", "optionTextValue", "optionDisabled", "optionGroupChildren", "keyboardDelegate", "allowDuplicateSelectionEvents", "disallowEmptySelection", "disallowTypeAhead", "shouldFocusWrap", "selectionBehavior", "selectionMode", "virtualized", "modal", "preventScroll", "forceMount"], ["getAnchorRect", "placement", "gutter", "shift", "flip", "slide", "overlap", "sameWidth", "fitViewport", "hideWhenDetached", "detachedPadding", "arrowPadding", "overflowPadding"], Jf), [a, s] = Z(), [u, l] = Z(), [g, M] = Z(), [c, f] = Z(), [d, h] = Z(), [y, p] = Z(), [w, m] = Z(), [N, j] = Z(!0), b = (B) => {
|
|
10803
|
+
const ut = n.optionValue;
|
|
10804
|
+
return ut == null ? String(B) : String(ti(ut) ? ut(B) : B[ut]);
|
|
10805
10805
|
}, E = V(() => {
|
|
10806
10806
|
const B = n.optionGroupChildren;
|
|
10807
|
-
return B == null ? n.options : ti(B) ? n.options.flatMap((
|
|
10808
|
-
}), v = V(() => E().map((B) => b(B))), F = (B) => [...B].map((
|
|
10807
|
+
return B == null ? n.options : ti(B) ? n.options.flatMap((ut) => B(ut) ?? ut) : n.options.flatMap((ut) => ut[B] ?? ut);
|
|
10808
|
+
}), v = V(() => E().map((B) => b(B))), F = (B) => [...B].map((ut) => E().find((Nt) => b(Nt) === ut)).filter((ut) => ut != null), Y = pa({
|
|
10809
10809
|
open: () => n.open,
|
|
10810
10810
|
defaultOpen: () => n.defaultOpen,
|
|
10811
10811
|
onOpenChange: (B) => n.onOpenChange?.(B)
|
|
@@ -10833,8 +10833,8 @@ function ey(t) {
|
|
|
10833
10833
|
if (n.options.length <= 0)
|
|
10834
10834
|
return;
|
|
10835
10835
|
j(B), Y.open();
|
|
10836
|
-
let
|
|
10837
|
-
|
|
10836
|
+
let ut = U.selectionManager().firstSelectedKey();
|
|
10837
|
+
ut == null && (B === "first" ? ut = U.collection().getFirstKey() : B === "last" && (ut = U.collection().getLastKey())), k(), U.selectionManager().setFocused(!0), U.selectionManager().setFocusedKey(ut);
|
|
10838
10838
|
}, P = () => {
|
|
10839
10839
|
Y.close(), U.selectionManager().setFocused(!1), U.selectionManager().setFocusedKey(void 0);
|
|
10840
10840
|
}, R = (B) => {
|
|
@@ -10846,17 +10846,17 @@ function ey(t) {
|
|
|
10846
10846
|
const B = n.defaultValue ? [...n.defaultValue].map(b) : new Ne();
|
|
10847
10847
|
U.selectionManager().setSelectedKeys(B);
|
|
10848
10848
|
});
|
|
10849
|
-
const
|
|
10849
|
+
const q = Gc({
|
|
10850
10850
|
usage: "search",
|
|
10851
10851
|
sensitivity: "base"
|
|
10852
|
-
}),
|
|
10852
|
+
}), J = V(() => S(n.keyboardDelegate) || new dl(U.collection, void 0, q)), st = (B) => n.itemComponent?.({
|
|
10853
10853
|
item: B
|
|
10854
10854
|
}), Et = (B) => n.sectionComponent?.({
|
|
10855
10855
|
section: B
|
|
10856
10856
|
});
|
|
10857
|
-
|
|
10858
|
-
const
|
|
10859
|
-
U.selectionManager().setSelectedKeys(
|
|
10857
|
+
rt(be([v], ([B]) => {
|
|
10858
|
+
const ut = [...U.selectionManager().selectedKeys()].filter((Nt) => B.includes(Nt));
|
|
10859
|
+
U.selectionManager().setSelectedKeys(ut);
|
|
10860
10860
|
}, {
|
|
10861
10861
|
defer: !0
|
|
10862
10862
|
}));
|
|
@@ -10878,7 +10878,7 @@ function ey(t) {
|
|
|
10878
10878
|
autoFocus: N,
|
|
10879
10879
|
triggerRef: c,
|
|
10880
10880
|
listState: () => U,
|
|
10881
|
-
keyboardDelegate:
|
|
10881
|
+
keyboardDelegate: J,
|
|
10882
10882
|
triggerId: a,
|
|
10883
10883
|
valueId: u,
|
|
10884
10884
|
listboxId: g,
|
|
@@ -10891,7 +10891,7 @@ function ey(t) {
|
|
|
10891
10891
|
close: P,
|
|
10892
10892
|
toggle: R,
|
|
10893
10893
|
placeholder: () => n.placeholder,
|
|
10894
|
-
renderItem:
|
|
10894
|
+
renderItem: st,
|
|
10895
10895
|
renderSection: Et,
|
|
10896
10896
|
removeOptionFromSelection: I,
|
|
10897
10897
|
generateId: Wn(() => S(i.id)),
|
|
@@ -10998,7 +10998,7 @@ function ry(t) {
|
|
|
10998
10998
|
}, y = (p) => {
|
|
10999
10999
|
Pt(p, r.onBlur), !n.isOpen() && a().setFocused(!1);
|
|
11000
11000
|
};
|
|
11001
|
-
return
|
|
11001
|
+
return rt(() => dt(n.registerTriggerId(l.id()))), rt(() => {
|
|
11002
11002
|
n.setListboxAriaLabelledBy([l.ariaLabelledBy(), l.ariaLabel() && !l.ariaLabelledBy() ? l.id() : null].filter(Boolean).join(" ") || void 0);
|
|
11003
11003
|
}), T(ji, Mt({
|
|
11004
11004
|
ref(p) {
|
|
@@ -11044,7 +11044,7 @@ function oy(t) {
|
|
|
11044
11044
|
const s = o().selectedKeys();
|
|
11045
11045
|
return s.size === 1 && s.has("") ? !0 : o().isEmpty();
|
|
11046
11046
|
};
|
|
11047
|
-
return
|
|
11047
|
+
return rt(() => dt(n.registerValueId(r.id))), (() => {
|
|
11048
11048
|
const s = iy();
|
|
11049
11049
|
return ee(s, Mt({
|
|
11050
11050
|
get id() {
|
|
@@ -11053,7 +11053,7 @@ function oy(t) {
|
|
|
11053
11053
|
get "data-placeholder-shown"() {
|
|
11054
11054
|
return a() ? "" : void 0;
|
|
11055
11055
|
}
|
|
11056
|
-
}, () => e.dataset(), i), !1, !0),
|
|
11056
|
+
}, () => e.dataset(), i), !1, !0), ot(s, T(kt, {
|
|
11057
11057
|
get when() {
|
|
11058
11058
|
return !a();
|
|
11059
11059
|
},
|
|
@@ -11096,7 +11096,7 @@ function sy(t) {
|
|
|
11096
11096
|
id: e.generateId("content")
|
|
11097
11097
|
}, t);
|
|
11098
11098
|
const [n, r] = bt(t, ["ref", "style"]);
|
|
11099
|
-
return
|
|
11099
|
+
return rt(() => dt(e.registerContentId(r.id))), T(kt, {
|
|
11100
11100
|
get when() {
|
|
11101
11101
|
return e.contentPresence.isPresent();
|
|
11102
11102
|
},
|
|
@@ -11175,7 +11175,7 @@ function dy(t) {
|
|
|
11175
11175
|
}, t);
|
|
11176
11176
|
const [r, i] = bt(t, ["id", "open", "defaultOpen", "onOpenChange", "disabled", "triggerOnFocusOnly", "openDelay", "closeDelay", "ignoreSafeArea", "forceMount"]);
|
|
11177
11177
|
let o;
|
|
11178
|
-
const [a, s] =
|
|
11178
|
+
const [a, s] = Z(), [u, l] = Z(), [g, M] = Z(), [c, f] = Z(i.placement), d = pa({
|
|
11179
11179
|
open: () => r.open,
|
|
11180
11180
|
defaultOpen: () => r.defaultOpen,
|
|
11181
11181
|
onOpenChange: (C) => r.onOpenChange?.(C)
|
|
@@ -11221,14 +11221,14 @@ function dy(t) {
|
|
|
11221
11221
|
}
|
|
11222
11222
|
o || w();
|
|
11223
11223
|
};
|
|
11224
|
-
|
|
11224
|
+
rt(() => {
|
|
11225
11225
|
if (!d.isOpen())
|
|
11226
11226
|
return;
|
|
11227
11227
|
const C = de();
|
|
11228
11228
|
C.addEventListener("pointermove", Y, !0), dt(() => {
|
|
11229
11229
|
C.removeEventListener("pointermove", Y, !0);
|
|
11230
11230
|
});
|
|
11231
|
-
}),
|
|
11231
|
+
}), rt(() => {
|
|
11232
11232
|
const C = u();
|
|
11233
11233
|
if (!C || !d.isOpen())
|
|
11234
11234
|
return;
|
|
@@ -11569,8 +11569,8 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11569
11569
|
* SPDX-License-Identifier: Apache-2.0
|
|
11570
11570
|
*/
|
|
11571
11571
|
const e = Symbol("Comlink.proxy"), n = Symbol("Comlink.endpoint"), r = Symbol("Comlink.releaseProxy"), i = Symbol("Comlink.finalizer"), o = Symbol("Comlink.thrown"), a = (L) => typeof L == "object" && L !== null || typeof L == "function", s = { canHandle: (L) => a(L) && L[e], serialize(L) {
|
|
11572
|
-
const { port1: A, port2:
|
|
11573
|
-
return M(L, A), [
|
|
11572
|
+
const { port1: A, port2: G } = new MessageChannel();
|
|
11573
|
+
return M(L, A), [G, [G]];
|
|
11574
11574
|
}, deserialize(L) {
|
|
11575
11575
|
return L.start(), d(L);
|
|
11576
11576
|
} }, u = { canHandle: (L) => a(L) && o in L, serialize({ value: L }) {
|
|
@@ -11580,43 +11580,43 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11580
11580
|
throw L.isError ? Object.assign(new Error(L.value.message), L.value) : L.value;
|
|
11581
11581
|
} }, l = /* @__PURE__ */ new Map([["proxy", s], ["throw", u]]);
|
|
11582
11582
|
function g(L, A) {
|
|
11583
|
-
for (const
|
|
11584
|
-
if (A ===
|
|
11583
|
+
for (const G of L)
|
|
11584
|
+
if (A === G || G === "*" || G instanceof RegExp && G.test(A))
|
|
11585
11585
|
return !0;
|
|
11586
11586
|
return !1;
|
|
11587
11587
|
}
|
|
11588
|
-
function M(L, A = globalThis,
|
|
11589
|
-
A.addEventListener("message", function
|
|
11590
|
-
if (!
|
|
11588
|
+
function M(L, A = globalThis, G = ["*"]) {
|
|
11589
|
+
A.addEventListener("message", function it(W) {
|
|
11590
|
+
if (!W || !W.data)
|
|
11591
11591
|
return;
|
|
11592
|
-
if (!g(
|
|
11593
|
-
console.warn(`Invalid origin '${
|
|
11592
|
+
if (!g(G, W.origin)) {
|
|
11593
|
+
console.warn(`Invalid origin '${W.origin}' for comlink proxy`);
|
|
11594
11594
|
return;
|
|
11595
11595
|
}
|
|
11596
|
-
const { id: At, type:
|
|
11596
|
+
const { id: At, type: X, path: ht } = Object.assign({ path: [] }, W.data), Tt = (W.data.argumentList || []).map(C);
|
|
11597
11597
|
let ct;
|
|
11598
11598
|
try {
|
|
11599
|
-
const ft = ht.slice(0, -1).reduce((
|
|
11600
|
-
switch (
|
|
11599
|
+
const ft = ht.slice(0, -1).reduce((at, xt) => at[xt], L), tt = ht.reduce((at, xt) => at[xt], L);
|
|
11600
|
+
switch (X) {
|
|
11601
11601
|
case "GET":
|
|
11602
|
-
ct =
|
|
11602
|
+
ct = tt;
|
|
11603
11603
|
break;
|
|
11604
11604
|
case "SET":
|
|
11605
|
-
ft[ht.slice(-1)[0]] = C(
|
|
11605
|
+
ft[ht.slice(-1)[0]] = C(W.data.value), ct = !0;
|
|
11606
11606
|
break;
|
|
11607
11607
|
case "APPLY":
|
|
11608
|
-
ct =
|
|
11608
|
+
ct = tt.apply(ft, Tt);
|
|
11609
11609
|
break;
|
|
11610
11610
|
case "CONSTRUCT":
|
|
11611
11611
|
{
|
|
11612
|
-
const
|
|
11613
|
-
ct = Y(
|
|
11612
|
+
const at = new tt(...Tt);
|
|
11613
|
+
ct = Y(at);
|
|
11614
11614
|
}
|
|
11615
11615
|
break;
|
|
11616
11616
|
case "ENDPOINT":
|
|
11617
11617
|
{
|
|
11618
|
-
const { port1:
|
|
11619
|
-
M(L, xt), ct = F(
|
|
11618
|
+
const { port1: at, port2: xt } = new MessageChannel();
|
|
11619
|
+
M(L, xt), ct = F(at, [at]);
|
|
11620
11620
|
}
|
|
11621
11621
|
break;
|
|
11622
11622
|
case "RELEASE":
|
|
@@ -11629,11 +11629,11 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11629
11629
|
ct = { value: ft, [o]: 0 };
|
|
11630
11630
|
}
|
|
11631
11631
|
Promise.resolve(ct).catch((ft) => ({ value: ft, [o]: 0 })).then((ft) => {
|
|
11632
|
-
const [
|
|
11633
|
-
A.postMessage(Object.assign(Object.assign({},
|
|
11632
|
+
const [tt, at] = U(ft);
|
|
11633
|
+
A.postMessage(Object.assign(Object.assign({}, tt), { id: At }), at), X === "RELEASE" && (A.removeEventListener("message", it), f(A), i in L && typeof L[i] == "function" && L[i]());
|
|
11634
11634
|
}).catch((ft) => {
|
|
11635
|
-
const [
|
|
11636
|
-
A.postMessage(Object.assign(Object.assign({},
|
|
11635
|
+
const [tt, at] = U({ value: new TypeError("Unserializable return value"), [o]: 0 });
|
|
11636
|
+
A.postMessage(Object.assign(Object.assign({}, tt), { id: At }), at);
|
|
11637
11637
|
});
|
|
11638
11638
|
}), A.start && A.start();
|
|
11639
11639
|
}
|
|
@@ -11660,53 +11660,53 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11660
11660
|
p.set(L, A), A === 0 && y(L);
|
|
11661
11661
|
});
|
|
11662
11662
|
function m(L, A) {
|
|
11663
|
-
const
|
|
11664
|
-
p.set(A,
|
|
11663
|
+
const G = (p.get(A) || 0) + 1;
|
|
11664
|
+
p.set(A, G), w && w.register(L, A, L);
|
|
11665
11665
|
}
|
|
11666
11666
|
function N(L) {
|
|
11667
11667
|
w && w.unregister(L);
|
|
11668
11668
|
}
|
|
11669
|
-
function j(L, A = [],
|
|
11669
|
+
function j(L, A = [], G = function() {
|
|
11670
11670
|
}) {
|
|
11671
|
-
let
|
|
11672
|
-
const
|
|
11673
|
-
if (h(
|
|
11671
|
+
let it = !1;
|
|
11672
|
+
const W = new Proxy(G, { get(At, X) {
|
|
11673
|
+
if (h(it), X === r)
|
|
11674
11674
|
return () => {
|
|
11675
|
-
N(
|
|
11675
|
+
N(W), y(L), it = !0;
|
|
11676
11676
|
};
|
|
11677
|
-
if (
|
|
11677
|
+
if (X === "then") {
|
|
11678
11678
|
if (A.length === 0)
|
|
11679
|
-
return { then: () =>
|
|
11679
|
+
return { then: () => W };
|
|
11680
11680
|
const ht = I(L, { type: "GET", path: A.map((Tt) => Tt.toString()) }).then(C);
|
|
11681
11681
|
return ht.then.bind(ht);
|
|
11682
11682
|
}
|
|
11683
|
-
return j(L, [...A,
|
|
11684
|
-
}, set(At,
|
|
11685
|
-
h(
|
|
11683
|
+
return j(L, [...A, X]);
|
|
11684
|
+
}, set(At, X, ht) {
|
|
11685
|
+
h(it);
|
|
11686
11686
|
const [Tt, ct] = U(ht);
|
|
11687
|
-
return I(L, { type: "SET", path: [...A,
|
|
11688
|
-
}, apply(At,
|
|
11689
|
-
h(
|
|
11687
|
+
return I(L, { type: "SET", path: [...A, X].map((ft) => ft.toString()), value: Tt }, ct).then(C);
|
|
11688
|
+
}, apply(At, X, ht) {
|
|
11689
|
+
h(it);
|
|
11690
11690
|
const Tt = A[A.length - 1];
|
|
11691
11691
|
if (Tt === n)
|
|
11692
11692
|
return I(L, { type: "ENDPOINT" }).then(C);
|
|
11693
11693
|
if (Tt === "bind")
|
|
11694
11694
|
return j(L, A.slice(0, -1));
|
|
11695
11695
|
const [ct, ft] = E(ht);
|
|
11696
|
-
return I(L, { type: "APPLY", path: A.map((
|
|
11697
|
-
}, construct(At,
|
|
11698
|
-
h(
|
|
11699
|
-
const [ht, Tt] = E(
|
|
11696
|
+
return I(L, { type: "APPLY", path: A.map((tt) => tt.toString()), argumentList: ct }, ft).then(C);
|
|
11697
|
+
}, construct(At, X) {
|
|
11698
|
+
h(it);
|
|
11699
|
+
const [ht, Tt] = E(X);
|
|
11700
11700
|
return I(L, { type: "CONSTRUCT", path: A.map((ct) => ct.toString()), argumentList: ht }, Tt).then(C);
|
|
11701
11701
|
} });
|
|
11702
|
-
return m(
|
|
11702
|
+
return m(W, L), W;
|
|
11703
11703
|
}
|
|
11704
11704
|
function b(L) {
|
|
11705
11705
|
return Array.prototype.concat.apply([], L);
|
|
11706
11706
|
}
|
|
11707
11707
|
function E(L) {
|
|
11708
11708
|
const A = L.map(U);
|
|
11709
|
-
return [A.map((
|
|
11709
|
+
return [A.map((G) => G[0]), b(A.map((G) => G[1]))];
|
|
11710
11710
|
}
|
|
11711
11711
|
const v = /* @__PURE__ */ new WeakMap();
|
|
11712
11712
|
function F(L, A) {
|
|
@@ -11716,10 +11716,10 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11716
11716
|
return Object.assign(L, { [e]: !0 });
|
|
11717
11717
|
}
|
|
11718
11718
|
function U(L) {
|
|
11719
|
-
for (const [A,
|
|
11720
|
-
if (
|
|
11721
|
-
const [
|
|
11722
|
-
return [{ type: "HANDLER", name: A, value:
|
|
11719
|
+
for (const [A, G] of l)
|
|
11720
|
+
if (G.canHandle(L)) {
|
|
11721
|
+
const [it, W] = G.serialize(L);
|
|
11722
|
+
return [{ type: "HANDLER", name: A, value: it }, W];
|
|
11723
11723
|
}
|
|
11724
11724
|
return [{ type: "RAW", value: L }, v.get(L) || []];
|
|
11725
11725
|
}
|
|
@@ -11731,51 +11731,51 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11731
11731
|
return L.value;
|
|
11732
11732
|
}
|
|
11733
11733
|
}
|
|
11734
|
-
function I(L, A,
|
|
11735
|
-
return new Promise((
|
|
11736
|
-
const
|
|
11737
|
-
L.addEventListener("message", function At(
|
|
11738
|
-
!
|
|
11739
|
-
}), L.start && L.start(), L.postMessage(Object.assign({ id:
|
|
11734
|
+
function I(L, A, G) {
|
|
11735
|
+
return new Promise((it) => {
|
|
11736
|
+
const W = x();
|
|
11737
|
+
L.addEventListener("message", function At(X) {
|
|
11738
|
+
!X.data || !X.data.id || X.data.id !== W || (L.removeEventListener("message", At), it(X.data));
|
|
11739
|
+
}), L.start && L.start(), L.postMessage(Object.assign({ id: W }, A), G);
|
|
11740
11740
|
});
|
|
11741
11741
|
}
|
|
11742
11742
|
function x() {
|
|
11743
11743
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
|
11744
11744
|
}
|
|
11745
|
-
const k = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11])), D = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 2, 8, 1, 1, 97, 1, 98, 3, 127, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 5, 1, 1, 97, 3, 1])), P = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 7, 1, 5, 0, 208, 112, 26, 11])), R = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 12, 1, 10, 0, 67, 0, 0, 0, 0, 252, 0, 26, 11])), H = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 65, 0, 192, 26, 11])),
|
|
11745
|
+
const k = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11])), D = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 2, 8, 1, 1, 97, 1, 98, 3, 127, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 5, 1, 1, 97, 3, 1])), P = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 7, 1, 5, 0, 208, 112, 26, 11])), R = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 12, 1, 10, 0, 67, 0, 0, 0, 0, 252, 0, 26, 11])), H = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 65, 0, 192, 26, 11])), q = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11])), J = () => (async (L) => {
|
|
11746
11746
|
try {
|
|
11747
11747
|
return typeof MessageChannel < "u" && new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)), WebAssembly.validate(L);
|
|
11748
11748
|
} catch {
|
|
11749
11749
|
return !1;
|
|
11750
11750
|
}
|
|
11751
11751
|
})(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 4, 1, 3, 1, 1, 10, 11, 1, 9, 0, 65, 0, 254, 16, 2, 0, 26, 11]));
|
|
11752
|
-
function
|
|
11752
|
+
function st() {
|
|
11753
11753
|
return /iOS|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
11754
11754
|
}
|
|
11755
11755
|
async function Et() {
|
|
11756
|
-
if (!await
|
|
11756
|
+
if (!await J())
|
|
11757
11757
|
return !1;
|
|
11758
11758
|
if (!("importScripts" in self))
|
|
11759
11759
|
throw Error("Not implemented");
|
|
11760
|
-
return
|
|
11760
|
+
return st() ? !1 : "Worker" in self;
|
|
11761
11761
|
}
|
|
11762
11762
|
async function _t() {
|
|
11763
11763
|
const L = [D(), P(), k(), R(), H()];
|
|
11764
11764
|
if (!(await Promise.all(L)).every(Boolean))
|
|
11765
11765
|
throw new Error("Browser doesn't meet minimum requirements!");
|
|
11766
|
-
return await
|
|
11766
|
+
return await q() ? await Et() ? "advanced-threads" : "advanced" : "basic";
|
|
11767
11767
|
}
|
|
11768
11768
|
let Lt, B;
|
|
11769
|
-
async function
|
|
11769
|
+
async function ut() {
|
|
11770
11770
|
const L = await _t();
|
|
11771
11771
|
console.log(`Requesting ${L} Wasm build`);
|
|
11772
|
-
const A =
|
|
11772
|
+
const A = self.location.href, G = A.substring(0, A.lastIndexOf("/")), it = `${G}/${L}/capture-wasm.js`;
|
|
11773
11773
|
try {
|
|
11774
|
-
importScripts(
|
|
11775
|
-
} catch (
|
|
11776
|
-
console.error("loading scripts failed",
|
|
11774
|
+
importScripts(it);
|
|
11775
|
+
} catch (W) {
|
|
11776
|
+
console.error("loading scripts failed", W);
|
|
11777
11777
|
}
|
|
11778
|
-
return Lt = await self.createModule({ locateFile: (
|
|
11778
|
+
return Lt = await self.createModule({ locateFile: (W) => `${G}/${L}/${W}`, mainScriptUrlOrBlob: it.toString(), setStatus: (W) => {
|
|
11779
11779
|
} }), Lt[i] = () => {
|
|
11780
11780
|
console.log("finalizer wasmModule");
|
|
11781
11781
|
}, Y(Lt);
|
|
@@ -11789,7 +11789,7 @@ var Fl = /* @__PURE__ */ ((t) => (t[t.Invalid = 0] = "Invalid", t[t.RequiresServ
|
|
|
11789
11789
|
const A = B.analyze(L);
|
|
11790
11790
|
return self.postMessage({}, [L.data.buffer]), L = null, A;
|
|
11791
11791
|
}
|
|
11792
|
-
const Zt = { createAnalyzer: Nt, loadWasm:
|
|
11792
|
+
const Zt = { createAnalyzer: Nt, loadWasm: ut, analyze: fe, terminate: () => self.close(), [i]: () => {
|
|
11793
11793
|
console.log("Comlink.finalizer called on proxyWorker");
|
|
11794
11794
|
} };
|
|
11795
11795
|
return M(Zt), t.proxyWorker = Zt, Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), t;
|
|
@@ -12206,7 +12206,7 @@ function Hy(t) {
|
|
|
12206
12206
|
var Fo = { exports: {} };
|
|
12207
12207
|
(function(t, e) {
|
|
12208
12208
|
(function(n, r) {
|
|
12209
|
-
var i = "1.0.35", o = "", a = "?", s = "function", u = "undefined", l = "object", g = "string", M = "major", c = "model", f = "name", d = "type", h = "vendor", y = "version", p = "architecture", w = "console", m = "mobile", N = "tablet", j = "smarttv", b = "wearable", E = "embedded", v = 350, F = "Amazon", Y = "Apple", U = "ASUS", C = "BlackBerry", I = "Browser", x = "Chrome", k = "Edge", D = "Firefox", P = "Google", R = "Huawei", H = "LG",
|
|
12209
|
+
var i = "1.0.35", o = "", a = "?", s = "function", u = "undefined", l = "object", g = "string", M = "major", c = "model", f = "name", d = "type", h = "vendor", y = "version", p = "architecture", w = "console", m = "mobile", N = "tablet", j = "smarttv", b = "wearable", E = "embedded", v = 350, F = "Amazon", Y = "Apple", U = "ASUS", C = "BlackBerry", I = "Browser", x = "Chrome", k = "Edge", D = "Firefox", P = "Google", R = "Huawei", H = "LG", q = "Microsoft", J = "Motorola", st = "Opera", Et = "Samsung", _t = "Sharp", Lt = "Sony", B = "Xiaomi", ut = "Zebra", Nt = "Facebook", fe = "Chromium OS", Zt = "Mac OS", L = function(_, K) {
|
|
12210
12210
|
var z = {};
|
|
12211
12211
|
for (var $ in _)
|
|
12212
12212
|
K[$] && K[$].length % 2 === 0 ? z[$] = K[$].concat(_[$]) : z[$] = _[$];
|
|
@@ -12215,31 +12215,31 @@ var Fo = { exports: {} };
|
|
|
12215
12215
|
for (var K = {}, z = 0; z < _.length; z++)
|
|
12216
12216
|
K[_[z].toUpperCase()] = _[z];
|
|
12217
12217
|
return K;
|
|
12218
|
-
},
|
|
12219
|
-
return typeof _ === g ?
|
|
12220
|
-
}, ut = function(_) {
|
|
12221
|
-
return _.toLowerCase();
|
|
12218
|
+
}, G = function(_, K) {
|
|
12219
|
+
return typeof _ === g ? it(K).indexOf(it(_)) !== -1 : !1;
|
|
12222
12220
|
}, it = function(_) {
|
|
12221
|
+
return _.toLowerCase();
|
|
12222
|
+
}, W = function(_) {
|
|
12223
12223
|
return typeof _ === g ? _.replace(/[^\d\.]/g, o).split(".")[0] : r;
|
|
12224
12224
|
}, At = function(_, K) {
|
|
12225
12225
|
if (typeof _ === g)
|
|
12226
12226
|
return _ = _.replace(/^\s\s*/, o), typeof K === u ? _ : _.substring(0, v);
|
|
12227
|
-
},
|
|
12228
|
-
for (var z = 0, $, Rt, Ot,
|
|
12227
|
+
}, X = function(_, K) {
|
|
12228
|
+
for (var z = 0, $, Rt, Ot, Q, O, Ut; z < K.length && !O; ) {
|
|
12229
12229
|
var an = K[z], nr = K[z + 1];
|
|
12230
12230
|
for ($ = Rt = 0; $ < an.length && !O && an[$]; )
|
|
12231
12231
|
if (O = an[$++].exec(_), O)
|
|
12232
12232
|
for (Ot = 0; Ot < nr.length; Ot++)
|
|
12233
|
-
Ut = O[++Rt],
|
|
12233
|
+
Ut = O[++Rt], Q = nr[Ot], typeof Q === l && Q.length > 0 ? Q.length === 2 ? typeof Q[1] == s ? this[Q[0]] = Q[1].call(this, Ut) : this[Q[0]] = Q[1] : Q.length === 3 ? typeof Q[1] === s && !(Q[1].exec && Q[1].test) ? this[Q[0]] = Ut ? Q[1].call(this, Ut, Q[2]) : r : this[Q[0]] = Ut ? Ut.replace(Q[1], Q[2]) : r : Q.length === 4 && (this[Q[0]] = Ut ? Q[3].call(this, Ut.replace(Q[1], Q[2])) : r) : this[Q] = Ut || r;
|
|
12234
12234
|
z += 2;
|
|
12235
12235
|
}
|
|
12236
12236
|
}, ht = function(_, K) {
|
|
12237
12237
|
for (var z in K)
|
|
12238
12238
|
if (typeof K[z] === l && K[z].length > 0) {
|
|
12239
12239
|
for (var $ = 0; $ < K[z].length; $++)
|
|
12240
|
-
if (
|
|
12240
|
+
if (G(K[z][$], _))
|
|
12241
12241
|
return z === a ? r : z;
|
|
12242
|
-
} else if (
|
|
12242
|
+
} else if (G(K[z], _))
|
|
12243
12243
|
return z === a ? r : z;
|
|
12244
12244
|
return _;
|
|
12245
12245
|
}, Tt = {
|
|
@@ -12289,12 +12289,12 @@ var Fo = { exports: {} };
|
|
|
12289
12289
|
/opios[\/ ]+([\w\.]+)/i
|
|
12290
12290
|
// Opera mini on iphone >= 8.0
|
|
12291
12291
|
],
|
|
12292
|
-
[y, [f,
|
|
12292
|
+
[y, [f, st + " Mini"]],
|
|
12293
12293
|
[
|
|
12294
12294
|
/\bopr\/([\w\.]+)/i
|
|
12295
12295
|
// Opera Webkit
|
|
12296
12296
|
],
|
|
12297
|
-
[y, [f,
|
|
12297
|
+
[y, [f, st]],
|
|
12298
12298
|
[
|
|
12299
12299
|
// Mixed
|
|
12300
12300
|
/(kindle)\/([\w\.]+)/i,
|
|
@@ -12362,7 +12362,7 @@ var Fo = { exports: {} };
|
|
|
12362
12362
|
/\bopt\/([\w\.]+)/i
|
|
12363
12363
|
// Opera Touch
|
|
12364
12364
|
],
|
|
12365
|
-
[y, [f,
|
|
12365
|
+
[y, [f, st + " Touch"]],
|
|
12366
12366
|
[
|
|
12367
12367
|
/coc_coc\w+\/([\w\.]+)/i
|
|
12368
12368
|
// Coc Coc Browser
|
|
@@ -12377,7 +12377,7 @@ var Fo = { exports: {} };
|
|
|
12377
12377
|
/coast\/([\w\.]+)/i
|
|
12378
12378
|
// Opera Coast
|
|
12379
12379
|
],
|
|
12380
|
-
[y, [f,
|
|
12380
|
+
[y, [f, st + " Coast"]],
|
|
12381
12381
|
[
|
|
12382
12382
|
/miuibrowser\/([\w\.]+)/i
|
|
12383
12383
|
// MIUI Browser
|
|
@@ -12538,7 +12538,7 @@ var Fo = { exports: {} };
|
|
|
12538
12538
|
/(ia32(?=;))/i
|
|
12539
12539
|
// IA32 (quicktime)
|
|
12540
12540
|
],
|
|
12541
|
-
[[p,
|
|
12541
|
+
[[p, it]],
|
|
12542
12542
|
[
|
|
12543
12543
|
/((?:i[346]|x)86)[;\)]/i
|
|
12544
12544
|
// IA32 (x86)
|
|
@@ -12563,7 +12563,7 @@ var Fo = { exports: {} };
|
|
|
12563
12563
|
/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i
|
|
12564
12564
|
// PowerPC
|
|
12565
12565
|
],
|
|
12566
|
-
[[p, /ower/, o,
|
|
12566
|
+
[[p, /ower/, o, it]],
|
|
12567
12567
|
[
|
|
12568
12568
|
/(sun4\w)[;\)]/i
|
|
12569
12569
|
// SPARC
|
|
@@ -12573,7 +12573,7 @@ var Fo = { exports: {} };
|
|
|
12573
12573
|
/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i
|
|
12574
12574
|
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
12575
12575
|
],
|
|
12576
|
-
[[p,
|
|
12576
|
+
[[p, it]]
|
|
12577
12577
|
],
|
|
12578
12578
|
device: [
|
|
12579
12579
|
[
|
|
@@ -12664,11 +12664,11 @@ var Fo = { exports: {} };
|
|
|
12664
12664
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
12665
12665
|
/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
12666
12666
|
],
|
|
12667
|
-
[c, [h,
|
|
12667
|
+
[c, [h, J], [d, m]],
|
|
12668
12668
|
[
|
|
12669
12669
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
12670
12670
|
],
|
|
12671
|
-
[c, [h,
|
|
12671
|
+
[c, [h, J], [d, N]],
|
|
12672
12672
|
[
|
|
12673
12673
|
// LG
|
|
12674
12674
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
@@ -12825,7 +12825,7 @@ var Fo = { exports: {} };
|
|
|
12825
12825
|
/(surface duo)/i
|
|
12826
12826
|
// Surface Duo
|
|
12827
12827
|
],
|
|
12828
|
-
[c, [h,
|
|
12828
|
+
[c, [h, q], [d, N]],
|
|
12829
12829
|
[
|
|
12830
12830
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
12831
12831
|
// Fairphone
|
|
@@ -12950,16 +12950,16 @@ var Fo = { exports: {} };
|
|
|
12950
12950
|
/(kin\.[onetw]{3})/i
|
|
12951
12951
|
// Microsoft Kin
|
|
12952
12952
|
],
|
|
12953
|
-
[[c, /\./g, " "], [h,
|
|
12953
|
+
[[c, /\./g, " "], [h, q], [d, m]],
|
|
12954
12954
|
[
|
|
12955
12955
|
/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
12956
12956
|
// Zebra
|
|
12957
12957
|
],
|
|
12958
|
-
[c, [h,
|
|
12958
|
+
[c, [h, ut], [d, N]],
|
|
12959
12959
|
[
|
|
12960
12960
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
12961
12961
|
],
|
|
12962
|
-
[c, [h,
|
|
12962
|
+
[c, [h, ut], [d, m]],
|
|
12963
12963
|
[
|
|
12964
12964
|
///////////////////
|
|
12965
12965
|
// SMARTTVS
|
|
@@ -13049,7 +13049,7 @@ var Fo = { exports: {} };
|
|
|
13049
13049
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
13050
13050
|
// Microsoft Xbox
|
|
13051
13051
|
],
|
|
13052
|
-
[c, [h,
|
|
13052
|
+
[c, [h, q], [d, w]],
|
|
13053
13053
|
[
|
|
13054
13054
|
///////////////////
|
|
13055
13055
|
// WEARABLES
|
|
@@ -13071,7 +13071,7 @@ var Fo = { exports: {} };
|
|
|
13071
13071
|
[
|
|
13072
13072
|
/droid.+; (wt63?0{2,3})\)/i
|
|
13073
13073
|
],
|
|
13074
|
-
[c, [h,
|
|
13074
|
+
[c, [h, ut], [d, b]],
|
|
13075
13075
|
[
|
|
13076
13076
|
/(quest( 2| pro)?)/i
|
|
13077
13077
|
// Oculus Quest
|
|
@@ -13286,25 +13286,25 @@ var Fo = { exports: {} };
|
|
|
13286
13286
|
],
|
|
13287
13287
|
[f, y]
|
|
13288
13288
|
]
|
|
13289
|
-
},
|
|
13290
|
-
if (typeof _ === l && (K = _, _ = r), !(this instanceof
|
|
13291
|
-
return new
|
|
13292
|
-
var z = typeof n !== u && n.navigator ? n.navigator : r, $ = _ || (z && z.userAgent ? z.userAgent : o), Rt = z && z.userAgentData ? z.userAgentData : r, Ot = K ? L(ft, K) : ft,
|
|
13289
|
+
}, tt = function(_, K) {
|
|
13290
|
+
if (typeof _ === l && (K = _, _ = r), !(this instanceof tt))
|
|
13291
|
+
return new tt(_, K).getResult();
|
|
13292
|
+
var z = typeof n !== u && n.navigator ? n.navigator : r, $ = _ || (z && z.userAgent ? z.userAgent : o), Rt = z && z.userAgentData ? z.userAgentData : r, Ot = K ? L(ft, K) : ft, Q = z && z.userAgent == $;
|
|
13293
13293
|
return this.getBrowser = function() {
|
|
13294
13294
|
var O = {};
|
|
13295
|
-
return O[f] = r, O[y] = r,
|
|
13295
|
+
return O[f] = r, O[y] = r, X.call(O, $, Ot.browser), O[M] = W(O[y]), Q && z && z.brave && typeof z.brave.isBrave == s && (O[f] = "Brave"), O;
|
|
13296
13296
|
}, this.getCPU = function() {
|
|
13297
13297
|
var O = {};
|
|
13298
|
-
return O[p] = r,
|
|
13298
|
+
return O[p] = r, X.call(O, $, Ot.cpu), O;
|
|
13299
13299
|
}, this.getDevice = function() {
|
|
13300
13300
|
var O = {};
|
|
13301
|
-
return O[h] = r, O[c] = r, O[d] = r,
|
|
13301
|
+
return O[h] = r, O[c] = r, O[d] = r, X.call(O, $, Ot.device), Q && !O[d] && Rt && Rt.mobile && (O[d] = m), Q && O[c] == "Macintosh" && z && typeof z.standalone !== u && z.maxTouchPoints && z.maxTouchPoints > 2 && (O[c] = "iPad", O[d] = N), O;
|
|
13302
13302
|
}, this.getEngine = function() {
|
|
13303
13303
|
var O = {};
|
|
13304
|
-
return O[f] = r, O[y] = r,
|
|
13304
|
+
return O[f] = r, O[y] = r, X.call(O, $, Ot.engine), O;
|
|
13305
13305
|
}, this.getOS = function() {
|
|
13306
13306
|
var O = {};
|
|
13307
|
-
return O[f] = r, O[y] = r,
|
|
13307
|
+
return O[f] = r, O[y] = r, X.call(O, $, Ot.os), Q && !O[f] && Rt && Rt.platform != "Unknown" && (O[f] = Rt.platform.replace(/chrome os/i, fe).replace(/macos/i, Zt)), O;
|
|
13308
13308
|
}, this.getResult = function() {
|
|
13309
13309
|
return {
|
|
13310
13310
|
ua: this.getUA(),
|
|
@@ -13320,17 +13320,17 @@ var Fo = { exports: {} };
|
|
|
13320
13320
|
return $ = typeof O === g && O.length > v ? At(O, v) : O, this;
|
|
13321
13321
|
}, this.setUA($), this;
|
|
13322
13322
|
};
|
|
13323
|
-
|
|
13324
|
-
var
|
|
13325
|
-
if (
|
|
13326
|
-
var xt = new
|
|
13327
|
-
|
|
13323
|
+
tt.VERSION = i, tt.BROWSER = A([f, y, M]), tt.CPU = A([p]), tt.DEVICE = A([c, h, d, w, m, j, N, b, E]), tt.ENGINE = tt.OS = A([f, y]), t.exports && (e = t.exports = tt), e.UAParser = tt;
|
|
13324
|
+
var at = typeof n !== u && (n.jQuery || n.Zepto);
|
|
13325
|
+
if (at && !at.ua) {
|
|
13326
|
+
var xt = new tt();
|
|
13327
|
+
at.ua = xt.getResult(), at.ua.get = function() {
|
|
13328
13328
|
return xt.getUA();
|
|
13329
|
-
},
|
|
13329
|
+
}, at.ua.set = function(_) {
|
|
13330
13330
|
xt.setUA(_);
|
|
13331
13331
|
var K = xt.getResult();
|
|
13332
13332
|
for (var z in K)
|
|
13333
|
-
|
|
13333
|
+
at.ua[z] = K[z];
|
|
13334
13334
|
};
|
|
13335
13335
|
}
|
|
13336
13336
|
})(typeof window == "object" ? window : By);
|
|
@@ -14060,11 +14060,11 @@ const wp = (t) => (e, n, r) => {
|
|
|
14060
14060
|
errorState: null,
|
|
14061
14061
|
// We know (hope?) this will be prefilled
|
|
14062
14062
|
analyzerSettings: {}
|
|
14063
|
-
},
|
|
14063
|
+
}, et = Tp()(
|
|
14064
14064
|
// this is important! Otherwise solid-zustand will start mutating the initial state
|
|
14065
14065
|
Lp(() => structuredClone(Md))
|
|
14066
14066
|
);
|
|
14067
|
-
|
|
14067
|
+
et.subscribe(
|
|
14068
14068
|
(t) => t.videoElement,
|
|
14069
14069
|
// On videoElement set, it will be [videoElement, null]
|
|
14070
14070
|
// If the videoElement disappears, it will become [null, videoElement]
|
|
@@ -14073,28 +14073,28 @@ tt.subscribe(
|
|
|
14073
14073
|
}
|
|
14074
14074
|
);
|
|
14075
14075
|
const yd = () => {
|
|
14076
|
-
console.log("resetting zustand store"),
|
|
14076
|
+
console.log("resetting zustand store"), et.getState().cameras.forEach((t) => {
|
|
14077
14077
|
t.stopStream();
|
|
14078
|
-
}),
|
|
14078
|
+
}), et.setState(structuredClone(Md));
|
|
14079
14079
|
};
|
|
14080
14080
|
let Di, za, pr, Nn, Ji;
|
|
14081
14081
|
async function jp(t, e = !0) {
|
|
14082
|
-
if (
|
|
14082
|
+
if (et.getState().isPlaying) {
|
|
14083
14083
|
console.warn("Already streaming");
|
|
14084
14084
|
return;
|
|
14085
14085
|
}
|
|
14086
|
-
if (
|
|
14086
|
+
if (et.getState().selectedCamera)
|
|
14087
14087
|
console.log("Reusing previous device");
|
|
14088
14088
|
else
|
|
14089
14089
|
try {
|
|
14090
14090
|
await Ld();
|
|
14091
14091
|
} catch (o) {
|
|
14092
|
-
|
|
14092
|
+
et.setState({
|
|
14093
14093
|
errorState: Vl(o)
|
|
14094
14094
|
});
|
|
14095
14095
|
return;
|
|
14096
14096
|
}
|
|
14097
|
-
const n =
|
|
14097
|
+
const n = et.getState();
|
|
14098
14098
|
if (!n.selectedCamera) {
|
|
14099
14099
|
console.warn("No selected camera!");
|
|
14100
14100
|
return;
|
|
@@ -14104,7 +14104,7 @@ async function jp(t, e = !0) {
|
|
|
14104
14104
|
throw new Error("Video doesn't have dimensions!");
|
|
14105
14105
|
if (!t.isConnected)
|
|
14106
14106
|
throw new Error("Video element needs to be in the document!");
|
|
14107
|
-
|
|
14107
|
+
et.getState().videoElement || Ep(t), t.srcObject = r, t.width = i.width, t.height = i.height, et.setState({
|
|
14108
14108
|
videoElement: t
|
|
14109
14109
|
}), e && await Ua();
|
|
14110
14110
|
}
|
|
@@ -14117,20 +14117,20 @@ function Ep(t) {
|
|
|
14117
14117
|
}).observe(t), t.playsInline = !0, t.setAttribute("muted", "");
|
|
14118
14118
|
}
|
|
14119
14119
|
async function Sp(t) {
|
|
14120
|
-
if (
|
|
14120
|
+
if (et.getState().isCapturing) {
|
|
14121
14121
|
console.warn(
|
|
14122
14122
|
"Cancel the capture process using `cancelCapture()` before updating settings"
|
|
14123
14123
|
);
|
|
14124
14124
|
return;
|
|
14125
14125
|
}
|
|
14126
14126
|
const e = {
|
|
14127
|
-
...
|
|
14127
|
+
...et.getState().analyzerSettings,
|
|
14128
14128
|
...t
|
|
14129
14129
|
};
|
|
14130
14130
|
await Nn.updateSettings(e), Di.updateSettings(e);
|
|
14131
14131
|
}
|
|
14132
14132
|
async function bp(t) {
|
|
14133
|
-
const e =
|
|
14133
|
+
const e = et.getState();
|
|
14134
14134
|
if (e.selectedCamera === t) {
|
|
14135
14135
|
console.warn("Already selected");
|
|
14136
14136
|
return;
|
|
@@ -14138,12 +14138,12 @@ async function bp(t) {
|
|
|
14138
14138
|
if (e.isSwappingCamera)
|
|
14139
14139
|
return;
|
|
14140
14140
|
const n = e.selectedCamera;
|
|
14141
|
-
|
|
14141
|
+
et.setState({
|
|
14142
14142
|
isSwappingCamera: !0
|
|
14143
14143
|
}), n && n.stopStream(), e.videoElement && (e.videoElement.srcObject = null);
|
|
14144
14144
|
try {
|
|
14145
14145
|
const r = await t.startStream();
|
|
14146
|
-
e.videoElement && (e.videoElement.srcObject = r, e.isPlaying && await e.videoElement.play()),
|
|
14146
|
+
e.videoElement && (e.videoElement.srcObject = r, e.isPlaying && await e.videoElement.play()), et.setState({
|
|
14147
14147
|
selectedCamera: t,
|
|
14148
14148
|
isSwappingCamera: !1
|
|
14149
14149
|
});
|
|
@@ -14153,7 +14153,7 @@ async function bp(t) {
|
|
|
14153
14153
|
}
|
|
14154
14154
|
async function Ap() {
|
|
14155
14155
|
console.log("stopStream called");
|
|
14156
|
-
const t =
|
|
14156
|
+
const t = et.getState();
|
|
14157
14157
|
if (t.selectedCamera?.stopStream(), !t.videoElement) {
|
|
14158
14158
|
console.log("no video element");
|
|
14159
14159
|
return;
|
|
@@ -14161,7 +14161,7 @@ async function Ap() {
|
|
|
14161
14161
|
t.videoElement.srcObject = null, await Nd(), Ya();
|
|
14162
14162
|
}
|
|
14163
14163
|
async function ka() {
|
|
14164
|
-
const t =
|
|
14164
|
+
const t = et.getState();
|
|
14165
14165
|
if (!t.isCapturing || !t.isPlaying)
|
|
14166
14166
|
return;
|
|
14167
14167
|
if (!t.videoElement) {
|
|
@@ -14177,7 +14177,7 @@ async function ka() {
|
|
|
14177
14177
|
const i = await pr.analyze(
|
|
14178
14178
|
Rl(r, [r.data.buffer])
|
|
14179
14179
|
), o = Di.getUiState(i);
|
|
14180
|
-
if (
|
|
14180
|
+
if (et.setState({
|
|
14181
14181
|
uiState: o
|
|
14182
14182
|
}), n)
|
|
14183
14183
|
try {
|
|
@@ -14186,17 +14186,17 @@ async function ka() {
|
|
|
14186
14186
|
throw console.warn("onFrameAnalysis callback exception"), a;
|
|
14187
14187
|
}
|
|
14188
14188
|
if (n && window.setTimeout(() => Ji = null, 0), o.key === "SIDE_CAPTURED") {
|
|
14189
|
-
Ii(),
|
|
14189
|
+
Ii(), et.setState({
|
|
14190
14190
|
uiState: Wt.SIDE_CAPTURED
|
|
14191
14191
|
}), await new Promise(
|
|
14192
14192
|
(a) => setTimeout(a, Wt.SIDE_CAPTURED.minDuration)
|
|
14193
|
-
),
|
|
14193
|
+
), et.setState({
|
|
14194
14194
|
uiState: Wt.FLIP_CARD
|
|
14195
14195
|
}), await new Promise((a) => setTimeout(a, Wt.FLIP_CARD.minDuration)), await md();
|
|
14196
14196
|
return;
|
|
14197
14197
|
}
|
|
14198
14198
|
if (o.key === "DOCUMENT_CAPTURED") {
|
|
14199
|
-
Ya(),
|
|
14199
|
+
Ya(), et.setState({
|
|
14200
14200
|
uiState: Wt.DOCUMENT_CAPTURED
|
|
14201
14201
|
}), await new Promise(
|
|
14202
14202
|
(s) => setTimeout(s, Wt.DOCUMENT_CAPTURED.minDuration)
|
|
@@ -14215,7 +14215,7 @@ async function ka() {
|
|
|
14215
14215
|
}
|
|
14216
14216
|
async function md() {
|
|
14217
14217
|
console.log("startCapture called");
|
|
14218
|
-
const t =
|
|
14218
|
+
const t = et.getState();
|
|
14219
14219
|
if (!t.isCapturing) {
|
|
14220
14220
|
if (!t.videoElement) {
|
|
14221
14221
|
console.warn("Missing video element");
|
|
@@ -14225,7 +14225,7 @@ async function md() {
|
|
|
14225
14225
|
console.warn("No active camera!");
|
|
14226
14226
|
return;
|
|
14227
14227
|
}
|
|
14228
|
-
await Ua(),
|
|
14228
|
+
await Ua(), et.getState().isPlaying && (et.setState({
|
|
14229
14229
|
isCapturing: !0
|
|
14230
14230
|
}), za = t.videoElement.requestVideoFrameCallback(
|
|
14231
14231
|
() => void ka()
|
|
@@ -14234,13 +14234,13 @@ async function md() {
|
|
|
14234
14234
|
}
|
|
14235
14235
|
function Ii() {
|
|
14236
14236
|
console.log("pauseCapture called");
|
|
14237
|
-
const t =
|
|
14238
|
-
t && t.cancelVideoFrameCallback(za),
|
|
14237
|
+
const t = et.getState().videoElement;
|
|
14238
|
+
t && t.cancelVideoFrameCallback(za), et.setState({
|
|
14239
14239
|
isCapturing: !1
|
|
14240
14240
|
});
|
|
14241
14241
|
}
|
|
14242
14242
|
async function Nd() {
|
|
14243
|
-
console.log("cancelCapture called"), await wd(), Di.reset(), Ii(),
|
|
14243
|
+
console.log("cancelCapture called"), await wd(), Di.reset(), Ii(), et.setState({
|
|
14244
14244
|
uiState: Wt.SENSING_FRONT
|
|
14245
14245
|
});
|
|
14246
14246
|
}
|
|
@@ -14251,9 +14251,9 @@ async function vp() {
|
|
|
14251
14251
|
await Nn.finishSideCapture();
|
|
14252
14252
|
}
|
|
14253
14253
|
async function Ld() {
|
|
14254
|
-
if (
|
|
14254
|
+
if (et.getState().isQueryingCameras || et.getState().isSwappingCamera)
|
|
14255
14255
|
return;
|
|
14256
|
-
|
|
14256
|
+
et.setState({
|
|
14257
14257
|
isQueryingCameras: !0
|
|
14258
14258
|
});
|
|
14259
14259
|
const t = await Jy();
|
|
@@ -14265,14 +14265,14 @@ async function Ld() {
|
|
|
14265
14265
|
const e = qy(t), n = t.find(
|
|
14266
14266
|
(r) => r.deviceInfo.deviceId === e
|
|
14267
14267
|
);
|
|
14268
|
-
|
|
14268
|
+
et.setState({
|
|
14269
14269
|
cameras: t,
|
|
14270
14270
|
selectedCamera: n,
|
|
14271
14271
|
isQueryingCameras: !1
|
|
14272
14272
|
});
|
|
14273
14273
|
}
|
|
14274
14274
|
async function Ua() {
|
|
14275
|
-
const t =
|
|
14275
|
+
const t = et.getState();
|
|
14276
14276
|
if (!t.isPlaying) {
|
|
14277
14277
|
if (!t.videoElement) {
|
|
14278
14278
|
console.warn("No video element present.");
|
|
@@ -14286,20 +14286,20 @@ async function Ua() {
|
|
|
14286
14286
|
console.warn("No selected camera");
|
|
14287
14287
|
return;
|
|
14288
14288
|
}
|
|
14289
|
-
await t.selectedCamera.startStream(), await t.videoElement.play(),
|
|
14289
|
+
await t.selectedCamera.startStream(), await t.videoElement.play(), et.setState({ isPlaying: !0 }), t.isCapturing === !0 && t.videoElement.requestVideoFrameCallback(() => void ka());
|
|
14290
14290
|
}
|
|
14291
14291
|
}
|
|
14292
14292
|
function Ya() {
|
|
14293
14293
|
console.log("pausePlayback called");
|
|
14294
|
-
const t =
|
|
14294
|
+
const t = et.getState();
|
|
14295
14295
|
if (!t.videoElement) {
|
|
14296
|
-
|
|
14296
|
+
et.setState({ isPlaying: !1 });
|
|
14297
14297
|
return;
|
|
14298
14298
|
}
|
|
14299
|
-
Ii(), t.videoElement.pause(),
|
|
14299
|
+
Ii(), t.videoElement.pause(), et.setState({ isPlaying: !1 });
|
|
14300
14300
|
}
|
|
14301
14301
|
function Td(t) {
|
|
14302
|
-
|
|
14302
|
+
et.setState({
|
|
14303
14303
|
callbacks: t
|
|
14304
14304
|
});
|
|
14305
14305
|
}
|
|
@@ -14310,7 +14310,7 @@ async function Dp(t) {
|
|
|
14310
14310
|
Can't load the SDK outside a secure context:
|
|
14311
14311
|
https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
|
|
14312
14312
|
`);
|
|
14313
|
-
if (
|
|
14313
|
+
if (et.getState().initialized)
|
|
14314
14314
|
return console.warn("Already initialized"), Ws;
|
|
14315
14315
|
pr = tp(t.resourceUrl);
|
|
14316
14316
|
const e = np(), n = await pr.loadWasm(), r = await n.initializeWithLicenseKey(
|
|
@@ -14333,13 +14333,13 @@ async function Dp(t) {
|
|
|
14333
14333
|
minimumDocumentDpi: 200,
|
|
14334
14334
|
...t.analyzerSettings
|
|
14335
14335
|
};
|
|
14336
|
-
return Di = new pp(i), t.analyzerSettings && await Nn.updateSettings(i),
|
|
14336
|
+
return Di = new pp(i), t.analyzerSettings && await Nn.updateSettings(i), et.setState({
|
|
14337
14337
|
analyzerSettings: i
|
|
14338
|
-
}), t.callbacks && Td(t.callbacks),
|
|
14338
|
+
}), t.callbacks && Td(t.callbacks), et.setState({
|
|
14339
14339
|
initialized: !0
|
|
14340
14340
|
}), Ws;
|
|
14341
14341
|
} catch (e) {
|
|
14342
|
-
throw
|
|
14342
|
+
throw et.setState({
|
|
14343
14343
|
errorState: Vl(e)
|
|
14344
14344
|
}), e;
|
|
14345
14345
|
}
|
|
@@ -14415,11 +14415,11 @@ const Ws = {
|
|
|
14415
14415
|
* Allows the user to subscribe to state changes inside the Capture SDK. Implemented using Zustand.
|
|
14416
14416
|
* For usage information, see {@link https://github.com/pmndrs/zustand#using-subscribe-with-selector}
|
|
14417
14417
|
*/
|
|
14418
|
-
subscribe:
|
|
14418
|
+
subscribe: et.subscribe,
|
|
14419
14419
|
/**
|
|
14420
14420
|
* Gets the current internal state of the Capture SDK.
|
|
14421
14421
|
*/
|
|
14422
|
-
getState:
|
|
14422
|
+
getState: et.getState,
|
|
14423
14423
|
/**
|
|
14424
14424
|
* Resets the SDK core and terminates the workers and the Wasm runtime.
|
|
14425
14425
|
*/
|
|
@@ -14466,7 +14466,7 @@ const Ed = ge(), Yp = (t) => {
|
|
|
14466
14466
|
// the original initial state - take care to use a new object
|
|
14467
14467
|
// eslint-disable-next-line solid/reactivity
|
|
14468
14468
|
t.mergedDefaults
|
|
14469
|
-
), r = Up(
|
|
14469
|
+
), r = Up(et);
|
|
14470
14470
|
Je(() => {
|
|
14471
14471
|
(async () => {
|
|
14472
14472
|
const o = await Dp(t.sdkSettings);
|
|
@@ -14474,7 +14474,7 @@ const Ed = ge(), Yp = (t) => {
|
|
|
14474
14474
|
captureSdk: o
|
|
14475
14475
|
});
|
|
14476
14476
|
})();
|
|
14477
|
-
}),
|
|
14477
|
+
}), rt(() => {
|
|
14478
14478
|
const o = t.mergedDefaults.dismountFn;
|
|
14479
14479
|
if (e.captureSdk) {
|
|
14480
14480
|
const a = e.captureSdk.subscribe(
|
|
@@ -14527,7 +14527,7 @@ const Pp = () => {
|
|
|
14527
14527
|
return;
|
|
14528
14528
|
}
|
|
14529
14529
|
await t.captureSdk.selectCamera(u), a(!1);
|
|
14530
|
-
}, [o, a] =
|
|
14530
|
+
}, [o, a] = Z(!1);
|
|
14531
14531
|
return T(ny, {
|
|
14532
14532
|
get options() {
|
|
14533
14533
|
return n();
|
|
@@ -14611,15 +14611,15 @@ const Pp = () => {
|
|
|
14611
14611
|
} = Ln();
|
|
14612
14612
|
return (() => {
|
|
14613
14613
|
const r = Fp(), i = r.firstChild;
|
|
14614
|
-
return
|
|
14614
|
+
return ot(r, T(kt, {
|
|
14615
14615
|
get when() {
|
|
14616
14616
|
return t.cameras.length > 1;
|
|
14617
14617
|
},
|
|
14618
14618
|
get children() {
|
|
14619
14619
|
const o = Rp();
|
|
14620
|
-
return Ct(o, "mb-15a7aro"),
|
|
14620
|
+
return Ct(o, "mb-15a7aro"), ot(o, T(Pp, {})), o;
|
|
14621
14621
|
}
|
|
14622
|
-
}), i), Ct(i, "mb-1fovbrr"),
|
|
14622
|
+
}), i), Ct(i, "mb-1fovbrr"), ot(i, T(ji, {
|
|
14623
14623
|
get "aria-label"() {
|
|
14624
14624
|
return n.dismiss;
|
|
14625
14625
|
},
|
|
@@ -15180,7 +15180,7 @@ function Um(t) {
|
|
|
15180
15180
|
var Ym = () => {
|
|
15181
15181
|
}, uu = (t, e) => e();
|
|
15182
15182
|
function Pm(t, e) {
|
|
15183
|
-
const n = Yt(t), r = n ? [n] : [], { onEnter: i = uu, onExit: o = uu } = e, [a, s] =
|
|
15183
|
+
const n = Yt(t), r = n ? [n] : [], { onEnter: i = uu, onExit: o = uu } = e, [a, s] = Z(
|
|
15184
15184
|
e.appear ? [] : r
|
|
15185
15185
|
), [u] = hh();
|
|
15186
15186
|
let l, g = !1;
|
|
@@ -15247,7 +15247,7 @@ function Rm(t, e, n, r) {
|
|
|
15247
15247
|
const o = i.mount(t());
|
|
15248
15248
|
dt(() => {
|
|
15249
15249
|
n && e().exit ? (i.setActive("exit", !0), Ud(t(), o)) : o();
|
|
15250
|
-
}), Bn(e) &&
|
|
15250
|
+
}), Bn(e) && rt(() => i.update(e()));
|
|
15251
15251
|
}), [i, Um(i.getTarget())];
|
|
15252
15252
|
}
|
|
15253
15253
|
const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "variants", "transition", "exit"], Bm = ["tag", "ref", "style", "onMotionStart", "onMotionComplete", "onHoverStart", "onHoverEnd", "onPressStart", "onPressEnd", "onViewEnter", "onViewLeave"], qo = ge(), cu = (t) => {
|
|
@@ -15340,7 +15340,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15340
15340
|
} = on();
|
|
15341
15341
|
return (() => {
|
|
15342
15342
|
const e = e1(), n = e.firstChild, r = n.firstChild, i = r.firstChild;
|
|
15343
|
-
return Ct(e, "mb-79tnxm"), Ct(r, "mb-1kst2vr"), Ct(i, "mb-qaqzbh"),
|
|
15343
|
+
return Ct(e, "mb-79tnxm"), Ct(r, "mb-1kst2vr"), Ct(i, "mb-qaqzbh"), ot(i, T(ua, {
|
|
15344
15344
|
get children() {
|
|
15345
15345
|
return [T(Ue, {
|
|
15346
15346
|
get when() {
|
|
@@ -15379,7 +15379,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15379
15379
|
}
|
|
15380
15380
|
})];
|
|
15381
15381
|
}
|
|
15382
|
-
})),
|
|
15382
|
+
})), ot(n, T(u1, {
|
|
15383
15383
|
get uiState() {
|
|
15384
15384
|
return t.uiState;
|
|
15385
15385
|
}
|
|
@@ -15409,7 +15409,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15409
15409
|
}
|
|
15410
15410
|
}), i1 = () => (() => {
|
|
15411
15411
|
const t = Xo();
|
|
15412
|
-
return Ct(t, "mb-ah9it3"),
|
|
15412
|
+
return Ct(t, "mb-ah9it3"), ot(t, T(er, {
|
|
15413
15413
|
class: "mb-pcpdyq",
|
|
15414
15414
|
initial: {
|
|
15415
15415
|
opacity: 0
|
|
@@ -15522,7 +15522,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15522
15522
|
};
|
|
15523
15523
|
return (() => {
|
|
15524
15524
|
const r = Xo();
|
|
15525
|
-
return Ct(r, "mb-dcm5x3"),
|
|
15525
|
+
return Ct(r, "mb-dcm5x3"), ot(r, T(_m, {
|
|
15526
15526
|
exitBeforeEnter: !0,
|
|
15527
15527
|
get children() {
|
|
15528
15528
|
return T(rf, {
|
|
@@ -15555,7 +15555,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15555
15555
|
class: "mb-j1awg8",
|
|
15556
15556
|
get children() {
|
|
15557
15557
|
const i = Xo();
|
|
15558
|
-
return
|
|
15558
|
+
return ot(i, () => e[n()]), i;
|
|
15559
15559
|
}
|
|
15560
15560
|
});
|
|
15561
15561
|
}
|
|
@@ -15576,7 +15576,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15576
15576
|
} = Ln();
|
|
15577
15577
|
return (() => {
|
|
15578
15578
|
const n = g1();
|
|
15579
|
-
return
|
|
15579
|
+
return ot(n, T(dy, {
|
|
15580
15580
|
overflowPadding: 32,
|
|
15581
15581
|
get children() {
|
|
15582
15582
|
return [T(gy, {
|
|
@@ -15598,7 +15598,7 @@ const Fm = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "
|
|
|
15598
15598
|
get children() {
|
|
15599
15599
|
return [T(E0, {}), (() => {
|
|
15600
15600
|
const r = d1();
|
|
15601
|
-
return
|
|
15601
|
+
return ot(r, () => e.need_help_tooltip), r;
|
|
15602
15602
|
})()];
|
|
15603
15603
|
}
|
|
15604
15604
|
});
|
|
@@ -15733,8 +15733,8 @@ function m1(t) {
|
|
|
15733
15733
|
function j(x) {
|
|
15734
15734
|
var k = Math.floor(Math.abs(ye(x / n))), D = ye((x % n + n) % n);
|
|
15735
15735
|
D === n && (D = 0);
|
|
15736
|
-
var P = Ee(x), R = s.indexOf(Yd([], s, !0).reduce(function(
|
|
15737
|
-
return Math.abs(
|
|
15736
|
+
var P = Ee(x), R = s.indexOf(Yd([], s, !0).reduce(function(q, J) {
|
|
15737
|
+
return Math.abs(J - D) < Math.abs(q - D) ? J : q;
|
|
15738
15738
|
})), H = R;
|
|
15739
15739
|
return P < 0 && k++, R === a && (H = 0, k += P > 0 ? 1 : -1), { abs: H + k * a * P, origin: R, rel: H };
|
|
15740
15740
|
}
|
|
@@ -15744,17 +15744,17 @@ function m1(t) {
|
|
|
15744
15744
|
return E(x, D);
|
|
15745
15745
|
if (!v(x))
|
|
15746
15746
|
return null;
|
|
15747
|
-
var R = j(D ?? w), H = R.abs,
|
|
15748
|
-
P = E(
|
|
15749
|
-
var
|
|
15750
|
-
return (
|
|
15747
|
+
var R = j(D ?? w), H = R.abs, q = x - R.rel, J = H + q;
|
|
15748
|
+
P = E(J);
|
|
15749
|
+
var st = E(J - a * Ee(q));
|
|
15750
|
+
return (st !== null && Math.abs(st) < Math.abs(P) || P === null) && (P = st), ye(P);
|
|
15751
15751
|
}
|
|
15752
15752
|
function E(x, k) {
|
|
15753
15753
|
if (k == null && (k = ye(w)), !v(x) || x === null)
|
|
15754
15754
|
return null;
|
|
15755
15755
|
x = Math.round(x);
|
|
15756
|
-
var D = j(k), P = D.abs, R = D.rel, H = D.origin,
|
|
15757
|
-
return ye(
|
|
15756
|
+
var D = j(k), P = D.abs, R = D.rel, H = D.origin, q = U(x), J = (k % n + n) % n, st = s[H], Et = Math.floor((x - (P - R)) / a) * n;
|
|
15757
|
+
return ye(st - J - st + s[q] + Et + (H === a ? n : 0));
|
|
15758
15758
|
}
|
|
15759
15759
|
function v(x) {
|
|
15760
15760
|
return F(x) === x;
|
|
@@ -15780,15 +15780,15 @@ function m1(t) {
|
|
|
15780
15780
|
function I(x) {
|
|
15781
15781
|
var k = x ? null : function() {
|
|
15782
15782
|
if (a) {
|
|
15783
|
-
var D = Y(), P = D ? (w % n + n) % n : w, R = (D ? w % n : w) - o[0][2], H = 0 - (R < 0 && D ? n - Math.abs(R) : R),
|
|
15784
|
-
var Nt = H +
|
|
15783
|
+
var D = Y(), P = D ? (w % n + n) % n : w, R = (D ? w % n : w) - o[0][2], H = 0 - (R < 0 && D ? n - Math.abs(R) : R), q = 0, J = j(w), st = J.abs, Et = J.rel, _t = o[Et][2], Lt = o.map(function(B, ut) {
|
|
15784
|
+
var Nt = H + q;
|
|
15785
15785
|
(Nt < 0 - B[0] || Nt > 1) && (Nt += (Math.abs(Nt) > n - 1 && D ? n : 0) * Ee(-Nt));
|
|
15786
|
-
var fe =
|
|
15786
|
+
var fe = ut - Et, Zt = Ee(fe), L = fe + st;
|
|
15787
15787
|
D && (Zt === -1 && Nt > _t && (L += a), Zt === 1 && Nt < _t && (L -= a), M !== null && L < M && (Nt += n), c !== null && L > c && (Nt -= n));
|
|
15788
|
-
var A = Nt + B[0] + B[1],
|
|
15789
|
-
return
|
|
15788
|
+
var A = Nt + B[0] + B[1], G = Math.max(Nt >= 0 && A <= 1 ? 1 : A < 0 || Nt > 1 ? 0 : Nt < 0 ? Math.min(1, (B[0] + Nt) / B[0]) : (1 - Nt) / B[0], 0);
|
|
15789
|
+
return q += B[0] + B[1], { abs: L, distance: i.rtl ? -1 * Nt + 1 - B[0] : Nt, portion: G, size: B[0] };
|
|
15790
15790
|
});
|
|
15791
|
-
return
|
|
15791
|
+
return st = F(st), Et = U(st), { abs: F(st), length: r, max: d, maxIdx: g, min: f, minIdx: l, position: w, progress: D ? P / n : w / r, rel: Et, slides: Lt, slidesLength: n };
|
|
15792
15792
|
}
|
|
15793
15793
|
}();
|
|
15794
15794
|
return e.details = k, t.emit("detailsChanged"), k;
|
|
@@ -15805,8 +15805,8 @@ function m1(t) {
|
|
|
15805
15805
|
r = ye(n + o[0][2] - o[P][0] - o[P][2] - o[P][1]), s = o.reduce(function(R, H) {
|
|
15806
15806
|
if (!R)
|
|
15807
15807
|
return [0];
|
|
15808
|
-
var
|
|
15809
|
-
return
|
|
15808
|
+
var q = o[R.length - 1], J = R[R.length - 1] + (q[0] + q[2]) + q[1];
|
|
15809
|
+
return J -= H[2], R[R.length - 1] > J && (J = R[R.length - 1]), J = ye(J), R.push(J), (!D || D < J) && (u = R.length - 1), D = J, R;
|
|
15810
15810
|
}, null), r === 0 && (u = 0), s.push(ye(n));
|
|
15811
15811
|
}
|
|
15812
15812
|
}(), !a)
|
|
@@ -15919,14 +15919,14 @@ function w1(t) {
|
|
|
15919
15919
|
var k = function(P) {
|
|
15920
15920
|
if (p === -1 / 0 && w === 1 / 0)
|
|
15921
15921
|
return P;
|
|
15922
|
-
var R = t.track.details, H = R.length,
|
|
15922
|
+
var R = t.track.details, H = R.length, q = R.position, J = Ba(P, p - q, w - q);
|
|
15923
15923
|
if (H === 0)
|
|
15924
15924
|
return 0;
|
|
15925
15925
|
if (!t.options.rubberband)
|
|
15926
|
-
return
|
|
15927
|
-
if (
|
|
15926
|
+
return J;
|
|
15927
|
+
if (q <= w && q >= p || q < p && n > 0 || q > w && n < 0)
|
|
15928
15928
|
return P;
|
|
15929
|
-
var
|
|
15929
|
+
var st = (q < p ? q - p : q - w) / H, Et = i * H, _t = Math.abs(st * Et), Lt = Math.max(0, 1 - _t / o * 2);
|
|
15930
15930
|
return Lt * Lt * P;
|
|
15931
15931
|
}(s(g - x) / i * r);
|
|
15932
15932
|
n = Ee(k);
|
|
@@ -15980,8 +15980,8 @@ function w1(t) {
|
|
|
15980
15980
|
m.input(D, "touchstart", function(R) {
|
|
15981
15981
|
P = v(R), y = !0, h = !0;
|
|
15982
15982
|
}, { passive: !0 }), m.input(D, "touchmove", function(R) {
|
|
15983
|
-
var H = F(),
|
|
15984
|
-
if (P = v(R), (
|
|
15983
|
+
var H = F(), q = H ? D.scrollHeight - D.clientHeight : D.scrollWidth - D.clientWidth, J = P - v(R), st = H ? D.scrollTop : D.scrollLeft, Et = H && D.style.overflowY === "scroll" || !H && D.style.overflowX === "scroll";
|
|
15984
|
+
if (P = v(R), (J < 0 && st > 0 || J > 0 && st < q) && h && Et)
|
|
15985
15985
|
return y = !0;
|
|
15986
15986
|
h = !1, ar(R), y = !1;
|
|
15987
15987
|
}), m.input(D, "touchend", function() {
|
|
@@ -16105,10 +16105,10 @@ function T1(t, e) {
|
|
|
16105
16105
|
U.push({ origin: H, size: R, spacing: I }), D += R;
|
|
16106
16106
|
}
|
|
16107
16107
|
if (D += I * (Y - 1), k === "auto" && !n.options.loop && C !== 1) {
|
|
16108
|
-
var
|
|
16109
|
-
U.map(function(
|
|
16110
|
-
var
|
|
16111
|
-
return
|
|
16108
|
+
var q = 0;
|
|
16109
|
+
U.map(function(J) {
|
|
16110
|
+
var st = D - q;
|
|
16111
|
+
return q += J.size + I, st >= 1 || (J.origin = 1 - st - (D > 1 ? 0 : 1 - D)), J;
|
|
16112
16112
|
});
|
|
16113
16113
|
}
|
|
16114
16114
|
n.options.trackConfig = U;
|
|
@@ -16172,7 +16172,7 @@ var j1 = function(t, e, n) {
|
|
|
16172
16172
|
};
|
|
16173
16173
|
const E1 = (t, ...e) => {
|
|
16174
16174
|
let n, r;
|
|
16175
|
-
const i = () => y1(t), [o, a] =
|
|
16175
|
+
const i = () => y1(t), [o, a] = Z(i()?.initial || 0), s = () => n && n.destroy(), u = (g = {}) => ({
|
|
16176
16176
|
selector: r.childNodes,
|
|
16177
16177
|
...i(),
|
|
16178
16178
|
...g
|
|
@@ -16181,7 +16181,7 @@ const E1 = (t, ...e) => {
|
|
|
16181
16181
|
(g) => {
|
|
16182
16182
|
r = g, r.classList.add("keen-slider"), Je(() => {
|
|
16183
16183
|
n = new j1(r, u(), e), n.on("slideChanged", () => a(n.track.details.rel));
|
|
16184
|
-
}), dt(s), typeof t == "function" &&
|
|
16184
|
+
}), dt(s), typeof t == "function" && rt(be(() => t, l));
|
|
16185
16185
|
},
|
|
16186
16186
|
{
|
|
16187
16187
|
current: o,
|
|
@@ -16236,7 +16236,7 @@ const E1 = (t, ...e) => {
|
|
|
16236
16236
|
class: Rd
|
|
16237
16237
|
}), (() => {
|
|
16238
16238
|
const l = yu();
|
|
16239
|
-
return Ct(l, _d),
|
|
16239
|
+
return Ct(l, _d), ot(l, T(Ei, {
|
|
16240
16240
|
onEscapeKeyDown: s,
|
|
16241
16241
|
onPointerDownOutside: s,
|
|
16242
16242
|
onOpenAutoFocus: (g) => g.preventDefault(),
|
|
@@ -16254,7 +16254,7 @@ const E1 = (t, ...e) => {
|
|
|
16254
16254
|
const g = v1(), M = g.firstChild, c = M.firstChild, f = c.firstChild, d = f.firstChild, h = f.nextSibling, y = h.firstChild, p = y.nextSibling, w = c.nextSibling, m = w.firstChild, N = m.firstChild, j = m.nextSibling, b = j.firstChild, E = b.nextSibling, v = w.nextSibling, F = v.firstChild, Y = F.firstChild, U = F.nextSibling, C = U.firstChild, I = C.nextSibling, x = M.nextSibling, k = x.nextSibling;
|
|
16255
16255
|
Ct(g, "mb-d1kpoi");
|
|
16256
16256
|
const D = t;
|
|
16257
|
-
return typeof D == "function" ? Lc(D, M) : t = M, Qe(d, "src", S1),
|
|
16257
|
+
return typeof D == "function" ? Lc(D, M) : t = M, Qe(d, "src", S1), ot(y, () => u.tutorial_fields_visible_title), ot(p, () => u.tutorial_fields_visible_details), Qe(N, "src", b1), ot(b, () => u.tutorial_harsh_light_title), ot(E, () => u.tutorial_harsh_light_details), Qe(Y, "src", A1), ot(C, () => u.tutorial_keep_still_title), ot(I, () => u.tutorial_keep_still_details), Ct(x, "mb-slxsc0"), ot(x, T(wc, {
|
|
16258
16258
|
get each() {
|
|
16259
16259
|
return new Array(3).fill(null);
|
|
16260
16260
|
},
|
|
@@ -16262,7 +16262,7 @@ const E1 = (t, ...e) => {
|
|
|
16262
16262
|
const H = yu();
|
|
16263
16263
|
return Le(() => Ct(H, rn("mb-1777uja", R() === i() && "mb-rp0tll"))), H;
|
|
16264
16264
|
})()
|
|
16265
|
-
})), Ct(k, "mb-4sy7j9"),
|
|
16265
|
+
})), Ct(k, "mb-4sy7j9"), ot(k, T(Qr, {
|
|
16266
16266
|
get disabled() {
|
|
16267
16267
|
return i() === 0;
|
|
16268
16268
|
},
|
|
@@ -16271,7 +16271,7 @@ const E1 = (t, ...e) => {
|
|
|
16271
16271
|
get children() {
|
|
16272
16272
|
return u.back;
|
|
16273
16273
|
}
|
|
16274
|
-
}), null),
|
|
16274
|
+
}), null), ot(k, T(ua, {
|
|
16275
16275
|
get children() {
|
|
16276
16276
|
return [T(Ue, {
|
|
16277
16277
|
get when() {
|
|
@@ -16309,7 +16309,7 @@ const E1 = (t, ...e) => {
|
|
|
16309
16309
|
}
|
|
16310
16310
|
});
|
|
16311
16311
|
}, I1 = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyODAiIGhlaWdodD0iMjA2IiBmaWxsPSJub25lIj4KICA8cGF0aCBmaWxsPSIjMTQyNjQxIiBkPSJNMjI3LjA4NCAzNC4zNjlINDcuNTQ4Yy01LjAyMyAwLTkuMDk1IDQuMDU4LTkuMDk1IDkuMDYzdjk1LjY1OGMwIDUuMDA1IDQuMDcyIDkuMDYzIDkuMDk1IDkuMDYzaDE3OS41MzZjNS4wMjQgMCA5LjA5Ni00LjA1OCA5LjA5Ni05LjA2M1Y0My40MzJjMC01LjAwNS00LjA3Mi05LjA2My05LjA5Ni05LjA2M1oiIG9wYWNpdHk9Ii4zIi8+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTIzMS4yODUgMjguNzg5SDUxLjc0OWMtNS4wMjQgMC05LjA5NiA0LjA1Ny05LjA5NiA5LjA2M3Y5NS42NTdjMCA1LjAwNiA0LjA3MiA5LjA2MyA5LjA5NiA5LjA2M2gxNzkuNTM2YzUuMDIzIDAgOS4wOTUtNC4wNTcgOS4wOTUtOS4wNjNWMzcuODUyYzAtNS4wMDUtNC4wNzItOS4wNjMtOS4wOTUtOS4wNjNaIi8+CiAgPHBhdGggZmlsbD0iIzE0MjY0MSIgZD0iTTIzMS4yODUgMTQzLjczSDUxLjc0OWMtNS42NTYgMC0xMC4yNjItNC41ODUtMTAuMjYyLTEwLjIyNVYzNy44NDdjMC01LjYzNiA0LjYwMS0xMC4yMjUgMTAuMjYyLTEwLjIyNWgxNzkuNTM2YzUuNjU2IDAgMTAuMjYyIDQuNTg1IDEwLjI2MiAxMC4yMjV2OTUuNjU4YzAgNS42MzYtNC42MDIgMTAuMjI1LTEwLjI2MiAxMC4yMjVaTTUxLjc0OSAyOS45NTFjLTQuMzczIDAtNy45MjkgMy41NDQtNy45MjkgNy45MDF2OTUuNjU3YzAgNC4zNTggMy41NTYgNy45MDEgNy45MjkgNy45MDFoMTc5LjUzNmM0LjM3MiAwIDcuOTI4LTMuNTQzIDcuOTI4LTcuOTAxVjM3Ljg0N2MwLTQuMzU3LTMuNTU2LTcuOS03LjkyOC03LjlINTEuNzQ5di4wMDRaIi8+CiAgPHBhdGggZmlsbD0iIzE0MjY0MSIgZD0iTTgzLjY4MyA4Ny4wODdjLTguODIgMC0xNS45OTgtNy4xNTEtMTUuOTk4LTE1Ljk0czcuMTc4LTE1Ljk0IDE1Ljk5OC0xNS45NCAxNS45OTcgNy4xNTEgMTUuOTk3IDE1Ljk0YzAgOC43ODgtNy4xNzcgMTUuOTQtMTUuOTk3IDE1Ljk0Wm0wLTI5LjU1MWMtNy41MzIgMC0xMy42NjQgNi4xMDUtMTMuNjY0IDEzLjYxNXM2LjEyNyAxMy42MTYgMTMuNjY0IDEzLjYxNmM3LjUzNiAwIDEzLjY2NC02LjEwNiAxMy42NjQtMTMuNjE2UzkxLjIyIDU3LjUzNiA4My42ODMgNTcuNTM2WiIvPgogIDxwYXRoIGZpbGw9IiMxNDI2NDEiIGQ9Ik0xMDkuMzg3IDEwNy4wMzZjLS42NDQgMC0xLjE2Ny0uNTItMS4xNjctMS4xNjIgMC0xMC4zNi0xMC44OTctMTguNzg3LTI0LjI5LTE4Ljc4Ny0xMy4zOTMgMC0yNC4yOSA4LjQyNi0yNC4yOSAxOC43ODcgMCAuNjQyLS41MjMgMS4xNjItMS4xNjcgMS4xNjJzLTEuMTY2LS41Mi0xLjE2Ni0xLjE2MmMwLTExLjY0IDExLjk0Mi0yMS4xMTIgMjYuNjIzLTIxLjExMiAxNC42ODEgMCAyNi42MjMgOS40NzMgMjYuNjIzIDIxLjExMiAwIC42NDItLjUyMiAxLjE2Mi0xLjE2NiAxLjE2MlpNMjEwLjc4OSA2My45NGgtODYuMDc2YTEuMTY2IDEuMTY2IDAgMCAxLTEuMTY3LTEuMTYzYzAtLjY0Mi41MjMtMS4xNjMgMS4xNjctMS4xNjNoODYuMDc2Yy42NDQgMCAxLjE2Ny41MiAxLjE2NyAxLjE2MyAwIC42NDEtLjUyMyAxLjE2Mi0xLjE2NyAxLjE2MlptLjE3NyAxNi4zOWgtODYuMDc3Yy0uNjQ0IDAtMS4xNjYtLjUyLTEuMTY2LTEuMTYyIDAtLjY0Mi41MjItMS4xNjIgMS4xNjYtMS4xNjJoODYuMDc3Yy42NDQgMCAxLjE2Ny41MiAxLjE2NyAxLjE2MiAwIC42NDItLjUyMyAxLjE2My0xLjE2NyAxLjE2M1ptLTIzLjcyNSAxNi4yNTNoLTYyLjMzM2MtLjY0NCAwLTEuMTY3LS41Mi0xLjE2Ny0xLjE2MyAwLS42NDEuNTIzLTEuMTYyIDEuMTY3LTEuMTYyaDYyLjMzM2MuNjQ0IDAgMS4xNjYuNTIgMS4xNjYgMS4xNjIgMCAuNjQyLS41MjIgMS4xNjMtMS4xNjYgMS4xNjNabS4wMjggMzAuNTMzYy0uNDcyIDAtLjkyLS4yODktMS4wOTItLjc1OC0uMjI0LS42LjA4NC0xLjI3LjY4Ni0xLjQ5OGExNS4xMTUgMTUuMTE1IDAgMCAwIDUuNDUtMy41MjVjLS43NTYtLjIwNC0xLjU0LS41NjctMi4xNDItMS4xOS0uNzE0LS43NDQtMS4wNS0xLjczLS45NjEtMi44NS4wNjUtLjg4NC40MzQtMS43NzcgMS4wNTktMi41ODEuMTIyLS4xNTguMjQzLS4zMTYuMzY0LS40NzkuNTkzLS43OTUgMS4yNy0xLjY5OCAyLjI1OS0yLjMwMiAxLjAzNi0uNjMyIDIuMjQ5LS43ODEgMy4yNTMtLjM5NS45MjguMzUzIDEuNjE5IDEuMTM5IDEuOTQxIDIuMjE4LjI4LjkzLjIzOCAxLjk1My0uMTI2IDIuOTUzLS4yOC43ODEtLjYyMSAxLjUzNC0xLjAxMyAyLjI2NGExMy44MzYgMTMuODM2IDAgMCAwIDQuMjM4LTEuNjgzIDEuMzg0IDEuMzg0IDAgMCAxIDEuNjcuMTgxYy40NDguNDI4LjU1NiAxLjExMi4yNTIgMS42NTYtLjI1Ni40NjUtLjQ5OSAxLjA4OC0uMiAxLjQyNy4yMjQuMjU2LjY2Mi4yNTEuOTc1LjExNy42MTYtLjI3IDEuMDY0LS44MTkgMS41NDktMS44OTNhMS43MDcgMS43MDcgMCAwIDEgMS4yMDQtLjk2MyAxLjc1IDEuNzUgMCAwIDEgMS41MTcuNDFjMS4xODUgMS4wNjQgMi44MzMgMS42MjcgNC4zOTEgMS41MTEgMS44MDItLjEzIDMuNTMzLTEuMTU4IDQuNTEzLTIuNjY5YTEuMTcgMS4xNyAwIDAgMSAxLjYxNS0uMzQ5Yy41NDEuMzQ5LjcgMS4wNjUuMzUgMS42MDktMS4zNjggMi4xMTYtMy43OCAzLjU0OC02LjMgMy43MjlhOC4zMjEgOC4zMjEgMCAwIDEtNS41MTItMS42MDRjLS40OS45MDItMS4yMDggMS44MzItMi4zOCAyLjM0OC0xLjMyLjU4Mi0yLjc5NS4yOTMtMy42NzctLjcxNmEyLjg1IDIuODUgMCAwIDEtLjcwOS0xLjc5IDE2LjEyMiAxNi4xMjIgMCAwIDEtNS4yMDQgMS4yNzQgMTcuNTg2IDE3LjU4NiAwIDAgMS03LjU1NSA1LjQ4NyAxLjE0MiAxLjE0MiAwIDAgMS0uNDA2LjA3NWwtLjAwOS0uMDE0Wm03LjcxNC0xMy40NjdjLS4yNzYgMC0uNTkzLjA5My0uODczLjI2NS0uNjA3LjM2Ny0xLjA5MiAxLjAxOC0xLjYwNSAxLjcwNi0uMTMxLjE3Ny0uMjYyLjM0OS0uMzkyLjUxNy0uMjQzLjMxMS0uNTM3Ljc5NS0uNTc5IDEuMzM0LS4wNDcuNjA5LjE1OS45MDIuMzE3IDEuMDY1LjQwMi40MTkgMS4yMTQuNjg0IDIuMTg0LjcyNmExNC44IDE0LjggMCAwIDAgMS43MzItMy4zNDRjLjE4Ni0uNTIxLjIxOS0xLjA1NS4wODQtMS40OTctLjE3My0uNTcyLS40NDgtLjY3OS0uNTQyLS43MTZhLjkwOC45MDggMCAwIDAtLjMyNi0uMDU2Wm0zMC40NTQtNzAuNjk2SDU4LjQ3M2MtLjY0NCAwLTEuMTY2LS41Mi0xLjE2Ni0xLjE2MiAwLS42NDIuNTIyLTEuMTYzIDEuMTY2LTEuMTYzaDE2Ni45NjRjLjY0NCAwIDEuMTY3LjUyIDEuMTY3IDEuMTYzIDAgLjY0MS0uNTIzIDEuMTYyLTEuMTY3IDEuMTYyWm0tMTE2LjA1IDgxLjQxSDU4LjQ3M2ExLjE2NSAxLjE2NSAwIDAgMS0xLjE2Ni0xLjE2M2MwLS42NDIuNTIyLTEuMTYyIDEuMTY2LTEuMTYyaDUwLjkxNGMuNjQ0IDAgMS4xNjYuNTIgMS4xNjYgMS4xNjIgMCAuNjQyLS41MjIgMS4xNjMtMS4xNjYgMS4xNjNaIi8+CiAgPHBhdGggZmlsbD0iIzEwQjk4MSIgZD0iTTI0MS41MDUgMTU5LjA1N0gzOC40OTVjLTUuNjU2IDAtMTAuMjYyLTQuNTg1LTEwLjI2Mi0xMC4yMjVWMjYuOTM4YzAtNS42MzYgNC42MDItMTAuMjI2IDEwLjI2Mi0xMC4yMjZIMjQxLjUxYzUuNjU2IDAgMTAuMjYyIDQuNTg1IDEwLjI2MiAxMC4yMjZ2MTIxLjg5OGMwIDUuNjM2LTQuNjAxIDEwLjIyNi0xMC4yNjIgMTAuMjI2bC0uMDA0LS4wMDVaTTM4LjQ5NSAxOS4wNDJjLTQuMzcyIDAtNy45MjggMy41NDQtNy45MjggNy45djEyMS44OTRjMCA0LjM1NyAzLjU1NiA3LjkwMSA3LjkyOCA3LjkwMUgyNDEuNTFjNC4zNzMgMCA3LjkyOS0zLjU0NCA3LjkyOS03LjkwMVYyNi45MzhjMC00LjM1Ny0zLjU1Ni03LjktNy45MjktNy45SDM4LjQ5NXYuMDA0Wk0xMzguNiAxOTQuODRjNy42MDMgMCAxMy43NjYtNi4xNDIgMTMuNzY2LTEzLjcxOHMtNi4xNjMtMTMuNzE4LTEzLjc2Ni0xMy43MTgtMTMuNzY3IDYuMTQyLTEzLjc2NyAxMy43MTggNi4xNjQgMTMuNzE4IDEzLjc2NyAxMy43MThaIi8+CiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE0NC43NTUgMTc3LjA4MWExLjE2OCAxLjE2OCAwIDAgMC0xLjY1MiAwbC02LjE0MSA2LjExOS0yLjY3NC0yLjY2NGExLjE2OCAxLjE2OCAwIDAgMC0xLjY1MiAwIDEuMTYgMS4xNiAwIDAgMCAwIDEuNjQ2bDMuNDYzIDMuNDU1Yy4yMjguMjI4LjUyNy4zNC44MjYuMzRoLjA3NGMuMjk5IDAgLjU5OC0uMTEyLjgyNi0uMzRsNi45My02LjkwNWExLjE1OCAxLjE1OCAwIDAgMCAwLTEuNjQ2di0uMDA1WiIvPgo8L3N2Zz4=", x1 = /* @__PURE__ */ wt('<div><img alt="" srcset=""><h2></h2><p>'), O1 = /* @__PURE__ */ wt("<div>"), C1 = () => {
|
|
16312
|
-
const [t, e] =
|
|
16312
|
+
const [t, e] = Z(!0), {
|
|
16313
16313
|
solidStore: n
|
|
16314
16314
|
} = on(), r = () => {
|
|
16315
16315
|
e(!1), n.captureSdk?.startCapture();
|
|
@@ -16331,7 +16331,7 @@ const E1 = (t, ...e) => {
|
|
|
16331
16331
|
class: Rd
|
|
16332
16332
|
}), (() => {
|
|
16333
16333
|
const o = O1();
|
|
16334
|
-
return Ct(o, _d),
|
|
16334
|
+
return Ct(o, _d), ot(o, T(Ei, {
|
|
16335
16335
|
onEscapeKeyDown: r,
|
|
16336
16336
|
onPointerDownOutside: r,
|
|
16337
16337
|
class: Fd,
|
|
@@ -16346,7 +16346,7 @@ const E1 = (t, ...e) => {
|
|
|
16346
16346
|
}
|
|
16347
16347
|
}), (() => {
|
|
16348
16348
|
const a = x1(), s = a.firstChild, u = s.nextSibling, l = u.nextSibling;
|
|
16349
|
-
return Ct(a, "mb-zjp32o"), Qe(s, "src", I1), Ct(s, "mb-zgw7tn"),
|
|
16349
|
+
return Ct(a, "mb-zjp32o"), Qe(s, "src", I1), Ct(s, "mb-zgw7tn"), ot(u, () => i.tutorial_fields_visible_title), ot(l, () => i.tutorial_fields_visible_details), ot(a, T(Qr, {
|
|
16350
16350
|
onClick: r,
|
|
16351
16351
|
class: "mb-1r8ti85",
|
|
16352
16352
|
get children() {
|
|
@@ -16372,41 +16372,41 @@ const E1 = (t, ...e) => {
|
|
|
16372
16372
|
} = on(), {
|
|
16373
16373
|
t: r
|
|
16374
16374
|
} = Ln();
|
|
16375
|
-
return
|
|
16375
|
+
return rt(() => {
|
|
16376
16376
|
const i = e.captureSdk;
|
|
16377
16377
|
!n || !i || i.startCameraStream(t).then(async () => {
|
|
16378
16378
|
e.uiSettings.showTutorial || await i.startCapture();
|
|
16379
16379
|
});
|
|
16380
16380
|
}), (() => {
|
|
16381
16381
|
const i = U1(), o = i.firstChild, a = o.nextSibling;
|
|
16382
|
-
|
|
16382
|
+
ot(i, T(kt, {
|
|
16383
16383
|
get when() {
|
|
16384
16384
|
return !n.isQueryingCameras;
|
|
16385
16385
|
},
|
|
16386
16386
|
get fallback() {
|
|
16387
16387
|
return (() => {
|
|
16388
16388
|
const u = Y1();
|
|
16389
|
-
return
|
|
16389
|
+
return ot(u, () => r.camera_query_in_progress), u;
|
|
16390
16390
|
})();
|
|
16391
16391
|
},
|
|
16392
16392
|
get children() {
|
|
16393
16393
|
return T(Bp, {});
|
|
16394
16394
|
}
|
|
16395
|
-
}), o),
|
|
16395
|
+
}), o), ot(i, T(kt, {
|
|
16396
16396
|
get when() {
|
|
16397
16397
|
return n.isPlaying && e.uiSettings.showTutorial;
|
|
16398
16398
|
},
|
|
16399
16399
|
get children() {
|
|
16400
16400
|
return T(C1, {});
|
|
16401
16401
|
}
|
|
16402
|
-
}), o),
|
|
16402
|
+
}), o), ot(i, T(kt, {
|
|
16403
16403
|
get when() {
|
|
16404
16404
|
return e.helpVisible;
|
|
16405
16405
|
},
|
|
16406
16406
|
get children() {
|
|
16407
16407
|
return T(D1, {});
|
|
16408
16408
|
}
|
|
16409
|
-
}), o),
|
|
16409
|
+
}), o), ot(i, T(kt, {
|
|
16410
16410
|
get when() {
|
|
16411
16411
|
return n.isCapturing || // TODO: check why we can't simply compare `uiState`. This is a pervasive problem
|
|
16412
16412
|
//transient states which aren't strictly "not capturing"
|
|
@@ -16415,9 +16415,9 @@ const E1 = (t, ...e) => {
|
|
|
16415
16415
|
get children() {
|
|
16416
16416
|
return T(n1, {});
|
|
16417
16417
|
}
|
|
16418
|
-
}), o), Ct(o, B1),
|
|
16418
|
+
}), o), Ct(o, B1), ot(o, T(k1, {
|
|
16419
16419
|
class: F1
|
|
16420
|
-
})),
|
|
16420
|
+
})), ot(i, T(h1, {}), a);
|
|
16421
16421
|
const s = t;
|
|
16422
16422
|
return typeof s == "function" ? Lc(s, a) : t = a, Ct(a, H1), Le(() => Ct(i, rn("mb-style-scope", _1, "mb-video-screen"))), i;
|
|
16423
16423
|
})();
|
|
@@ -16447,17 +16447,17 @@ const E1 = (t, ...e) => {
|
|
|
16447
16447
|
class: "alert-dialog__overlay"
|
|
16448
16448
|
}), (() => {
|
|
16449
16449
|
const e = K1();
|
|
16450
|
-
return
|
|
16450
|
+
return ot(e, T(L0, {
|
|
16451
16451
|
class: "alert-dialog__content",
|
|
16452
16452
|
get children() {
|
|
16453
16453
|
return [(() => {
|
|
16454
16454
|
const n = Q1();
|
|
16455
|
-
return
|
|
16455
|
+
return ot(n, T(w0, {
|
|
16456
16456
|
class: "alert-dialog__title",
|
|
16457
16457
|
get children() {
|
|
16458
16458
|
return ["Caught error: ", V(() => t.error.name)];
|
|
16459
16459
|
}
|
|
16460
|
-
}), null),
|
|
16460
|
+
}), null), ot(n, T(ja, {
|
|
16461
16461
|
class: "alert-dialog__close-button",
|
|
16462
16462
|
children: "Close"
|
|
16463
16463
|
}), null), n;
|
|
@@ -16466,14 +16466,14 @@ const E1 = (t, ...e) => {
|
|
|
16466
16466
|
get children() {
|
|
16467
16467
|
return [(() => {
|
|
16468
16468
|
const n = G1();
|
|
16469
|
-
return
|
|
16469
|
+
return ot(n, () => t.error.message), n;
|
|
16470
16470
|
})(), T(kt, {
|
|
16471
16471
|
get when() {
|
|
16472
16472
|
return t.error.stack;
|
|
16473
16473
|
},
|
|
16474
16474
|
children: (n) => (() => {
|
|
16475
16475
|
const r = $1();
|
|
16476
|
-
return Ct(r, "mb-rjcpop"),
|
|
16476
|
+
return Ct(r, "mb-rjcpop"), ot(r, n), r;
|
|
16477
16477
|
})()
|
|
16478
16478
|
})];
|
|
16479
16479
|
}
|
|
@@ -16491,7 +16491,7 @@ const E1 = (t, ...e) => {
|
|
|
16491
16491
|
} = on(), {
|
|
16492
16492
|
updateLocalization: r
|
|
16493
16493
|
} = Ln();
|
|
16494
|
-
return
|
|
16494
|
+
return rt(() => {
|
|
16495
16495
|
e.captureSdk && t.exposeApiOnLoad({
|
|
16496
16496
|
updateLocalization: r,
|
|
16497
16497
|
captureSdk: e.captureSdk
|
|
@@ -16643,5 +16643,5 @@ export {
|
|
|
16643
16643
|
MN as imageDataToUrl,
|
|
16644
16644
|
nc as resetCoreStore,
|
|
16645
16645
|
je as uiStateMap,
|
|
16646
|
-
|
|
16646
|
+
nt as zustandStore
|
|
16647
16647
|
};
|