@simprints/simface-sdk 0.8.1 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -28
- package/dist/components/simface-capture.js +84 -24
- package/dist/components/simface-capture.js.map +1 -1
- package/dist/shared/capture-flow.d.ts +2 -0
- package/dist/shared/capture-flow.js +2 -2
- package/dist/shared/capture-flow.js.map +1 -1
- package/dist/simface-sdk.js +519 -461
- package/dist/simface-sdk.umd.cjs +94 -37
- package/package.json +1 -2
package/dist/simface-sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class vo {
|
|
2
2
|
constructor(t) {
|
|
3
3
|
this.apiUrl = t.apiUrl.replace(/\/$/, ""), this.projectId = t.projectId, this.apiKey = t.apiKey;
|
|
4
4
|
}
|
|
@@ -66,11 +66,11 @@ function Jn(e, t) {
|
|
|
66
66
|
return t = String.fromCharCode.apply(null, t), e == null ? t : e + t;
|
|
67
67
|
}
|
|
68
68
|
let Sr, fs;
|
|
69
|
-
const
|
|
70
|
-
let
|
|
71
|
-
const
|
|
69
|
+
const Dc = typeof TextDecoder < "u";
|
|
70
|
+
let jc;
|
|
71
|
+
const Vc = typeof TextEncoder < "u";
|
|
72
72
|
function _o(e) {
|
|
73
|
-
if (
|
|
73
|
+
if (Vc) e = (jc || (jc = new TextEncoder())).encode(e);
|
|
74
74
|
else {
|
|
75
75
|
let r = 0;
|
|
76
76
|
const s = new Uint8Array(3 * e.length);
|
|
@@ -105,7 +105,7 @@ function wo(e) {
|
|
|
105
105
|
throw e;
|
|
106
106
|
}), 0);
|
|
107
107
|
}
|
|
108
|
-
var Cs,
|
|
108
|
+
var Cs, Gc = cr(610401301, !1), Zn = cr(748402147, !0), Ys = cr(824648567, !0), Qs = cr(824656860, cr(1, !0));
|
|
109
109
|
function ei() {
|
|
110
110
|
var e = kt.navigator;
|
|
111
111
|
return e && (e = e.userAgent) ? e : "";
|
|
@@ -118,7 +118,7 @@ Cs = ti && ti.userAgentData || null, jr[" "] = function() {
|
|
|
118
118
|
};
|
|
119
119
|
const Ao = {};
|
|
120
120
|
let er = null;
|
|
121
|
-
function
|
|
121
|
+
function Hc(e) {
|
|
122
122
|
const t = e.length;
|
|
123
123
|
let r = 3 * t / 4;
|
|
124
124
|
r % 3 ? r = Math.floor(r) : "=.".indexOf(e[t - 1]) != -1 && (r = "=.".indexOf(e[t - 2]) != -1 ? r - 2 : r - 1);
|
|
@@ -158,31 +158,31 @@ function Eo() {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
var
|
|
162
|
-
const ri = /[-_.]/g,
|
|
163
|
-
function
|
|
164
|
-
return
|
|
161
|
+
var zc = typeof Uint8Array < "u", ko = !(!(Gc && Cs && Cs.brands.length > 0) && (ei().indexOf("Trident") != -1 || ei().indexOf("MSIE") != -1)) && typeof btoa == "function";
|
|
162
|
+
const ri = /[-_.]/g, Wc = { "-": "+", _: "/", ".": "=" };
|
|
163
|
+
function Kc(e) {
|
|
164
|
+
return Wc[e] || "";
|
|
165
165
|
}
|
|
166
166
|
function So(e) {
|
|
167
|
-
if (!ko) return
|
|
168
|
-
e = ri.test(e) ? e.replace(ri,
|
|
167
|
+
if (!ko) return Hc(e);
|
|
168
|
+
e = ri.test(e) ? e.replace(ri, Kc) : e, e = atob(e);
|
|
169
169
|
const t = new Uint8Array(e.length);
|
|
170
170
|
for (let r = 0; r < e.length; r++) t[r] = e.charCodeAt(r);
|
|
171
171
|
return t;
|
|
172
172
|
}
|
|
173
173
|
function Js(e) {
|
|
174
|
-
return
|
|
174
|
+
return zc && e != null && e instanceof Uint8Array;
|
|
175
175
|
}
|
|
176
176
|
var St = {};
|
|
177
177
|
function ht() {
|
|
178
|
-
return
|
|
178
|
+
return qc || (qc = new Ce(null, St));
|
|
179
179
|
}
|
|
180
180
|
function Zs(e) {
|
|
181
181
|
To(St);
|
|
182
182
|
var t = e.g;
|
|
183
183
|
return (t = t == null || Js(t) ? t : typeof t == "string" ? So(t) : null) == null ? t : e.g = t;
|
|
184
184
|
}
|
|
185
|
-
var
|
|
185
|
+
var Ce = class {
|
|
186
186
|
h() {
|
|
187
187
|
return new Uint8Array(Zs(this) || 0);
|
|
188
188
|
}
|
|
@@ -190,7 +190,7 @@ var Te = class {
|
|
|
190
190
|
if (To(r), this.g = t, t != null && t.length === 0) throw Error("ByteString should be constructed with non-empty values");
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
-
let
|
|
193
|
+
let qc, Xc;
|
|
194
194
|
function To(e) {
|
|
195
195
|
if (e !== St) throw Error("illegal external caller");
|
|
196
196
|
}
|
|
@@ -202,7 +202,7 @@ function Ps(e) {
|
|
|
202
202
|
}
|
|
203
203
|
function Tt(e, t) {
|
|
204
204
|
if (e != null) {
|
|
205
|
-
var r =
|
|
205
|
+
var r = Xc ?? (Xc = {}), s = r[e] || 0;
|
|
206
206
|
s >= t || (r[e] = s + 1, Co(e = Error(), "incident"), wo(e));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -210,11 +210,11 @@ function Ut() {
|
|
|
210
210
|
return typeof BigInt == "function";
|
|
211
211
|
}
|
|
212
212
|
var Bt = typeof Symbol == "function" && typeof Symbol() == "symbol";
|
|
213
|
-
function
|
|
213
|
+
function Pe(e, t, r = !1) {
|
|
214
214
|
return typeof Symbol == "function" && typeof Symbol() == "symbol" ? r && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
const Po = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Mo = Object.defineProperties, p = Bt ?
|
|
216
|
+
var Yc = Pe("jas", void 0, !0), si = Pe(void 0, "0di"), Qt = Pe(void 0, "1oa"), oe = Pe(void 0, Symbol()), Qc = Pe(void 0, "0ub"), Jc = Pe(void 0, "0ubs"), Ms = Pe(void 0, "0ubsb"), Zc = Pe(void 0, "0actk"), Ct = Pe("m_m", "Pa", !0), ni = Pe();
|
|
217
|
+
const Po = { Ga: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Mo = Object.defineProperties, p = Bt ? Yc : "Ga";
|
|
218
218
|
var ft;
|
|
219
219
|
const ii = [];
|
|
220
220
|
function gr(e, t) {
|
|
@@ -237,8 +237,8 @@ function ce(e, t) {
|
|
|
237
237
|
const ut = {};
|
|
238
238
|
function en(e, t) {
|
|
239
239
|
if (e != null) {
|
|
240
|
-
if (typeof e == "string") e = e ? new
|
|
241
|
-
else if (e.constructor !==
|
|
240
|
+
if (typeof e == "string") e = e ? new Ce(e, St) : ht();
|
|
241
|
+
else if (e.constructor !== Ce) if (Js(e)) e = e.length ? new Ce(new Uint8Array(e), St) : ht();
|
|
242
242
|
else {
|
|
243
243
|
if (!t) throw Error();
|
|
244
244
|
e = void 0;
|
|
@@ -258,7 +258,7 @@ class oi {
|
|
|
258
258
|
return this;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
var
|
|
261
|
+
var eh = Object.freeze({});
|
|
262
262
|
function Lo(e, t, r) {
|
|
263
263
|
const s = 128 & t ? 0 : -1, n = e.length;
|
|
264
264
|
var i;
|
|
@@ -270,23 +270,23 @@ function Lo(e, t, r) {
|
|
|
270
270
|
for (const a in e) !isNaN(a) && r(+a, e[a]);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
var
|
|
273
|
+
var xo = {};
|
|
274
274
|
function Dt(e) {
|
|
275
|
-
return 128 & e ?
|
|
275
|
+
return 128 & e ? xo : void 0;
|
|
276
276
|
}
|
|
277
277
|
function Vr(e) {
|
|
278
278
|
return e.Na = !0, e;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
280
|
+
var th = Vr(((e) => typeof e == "number")), ai = Vr(((e) => typeof e == "string")), rh = Vr(((e) => typeof e == "boolean")), Gr = typeof kt.BigInt == "function" && typeof kt.BigInt(0) == "bigint";
|
|
281
281
|
function ae(e) {
|
|
282
282
|
var t = e;
|
|
283
283
|
if (ai(t)) {
|
|
284
284
|
if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t)) throw Error(String(t));
|
|
285
|
-
} else if (
|
|
286
|
-
return Gr ? BigInt(e) : e =
|
|
285
|
+
} else if (th(t) && !Number.isSafeInteger(t)) throw Error(String(t));
|
|
286
|
+
return Gr ? BigInt(e) : e = rh(e) ? e ? "1" : "0" : ai(e) ? e.trim() || "0" : String(e);
|
|
287
287
|
}
|
|
288
|
-
var Ls = Vr(((e) => Gr ? e >=
|
|
289
|
-
const
|
|
288
|
+
var Ls = Vr(((e) => Gr ? e >= nh && e <= oh : e[0] === "-" ? ci(e, sh) : ci(e, ih)));
|
|
289
|
+
const sh = Number.MIN_SAFE_INTEGER.toString(), nh = Gr ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, ih = Number.MAX_SAFE_INTEGER.toString(), oh = Gr ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
|
|
290
290
|
function ci(e, t) {
|
|
291
291
|
if (e.length > t.length) return !1;
|
|
292
292
|
if (e.length < t.length || e === t) return !0;
|
|
@@ -296,8 +296,8 @@ function ci(e, t) {
|
|
|
296
296
|
if (s < n) return !0;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
let
|
|
299
|
+
const ah = typeof Uint8Array.prototype.slice == "function";
|
|
300
|
+
let ch, L = 0, N = 0;
|
|
301
301
|
function hi(e) {
|
|
302
302
|
const t = e >>> 0;
|
|
303
303
|
L = t, N = (e - t) / 4294967296 >>> 0;
|
|
@@ -310,21 +310,21 @@ function Mt(e) {
|
|
|
310
310
|
} else hi(e);
|
|
311
311
|
}
|
|
312
312
|
function tn(e) {
|
|
313
|
-
const t =
|
|
313
|
+
const t = ch || (ch = new DataView(new ArrayBuffer(8)));
|
|
314
314
|
t.setFloat32(0, +e, !0), N = 0, L = t.getUint32(0, !0);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function xs(e, t) {
|
|
317
317
|
const r = 4294967296 * t + (e >>> 0);
|
|
318
318
|
return Number.isSafeInteger(r) ? r : ur(e, t);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function hh(e, t) {
|
|
321
321
|
return ae(Ut() ? BigInt.asUintN(64, (BigInt(t >>> 0) << BigInt(32)) + BigInt(e >>> 0)) : ur(e, t));
|
|
322
322
|
}
|
|
323
323
|
function rn(e, t) {
|
|
324
324
|
const r = 2147483648 & t;
|
|
325
|
-
return r && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e =
|
|
325
|
+
return r && (t = ~t >>> 0, (e = 1 + ~e >>> 0) == 0 && (t = t + 1 >>> 0)), typeof (e = xs(e, t)) == "number" ? r ? -e : e : r ? "-" + e : e;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Fo(e, t) {
|
|
328
328
|
return Ut() ? ae(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(t)) << BigInt(32)) + BigInt.asUintN(32, BigInt(e)))) : ae(sn(e, t));
|
|
329
329
|
}
|
|
330
330
|
function ur(e, t) {
|
|
@@ -364,15 +364,15 @@ function Hr(e) {
|
|
|
364
364
|
function nn(e, t) {
|
|
365
365
|
return t = ~t, e ? e = 1 + ~e : t += 1, [e, t];
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function ve(e) {
|
|
368
368
|
return Array.prototype.slice.call(e);
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const br = typeof BigInt == "function" ? BigInt.asIntN : void 0, uh = typeof BigInt == "function" ? BigInt.asUintN : void 0, lt = Number.isSafeInteger, zr = Number.isFinite, Lt = Math.trunc, lh = ae(0);
|
|
371
371
|
function tr(e) {
|
|
372
372
|
if (e != null && typeof e != "number") throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);
|
|
373
373
|
return e;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Te(e) {
|
|
376
376
|
return e == null || typeof e == "number" ? e : e === "NaN" || e === "Infinity" || e === "-Infinity" ? Number(e) : void 0;
|
|
377
377
|
}
|
|
378
378
|
function lr(e) {
|
|
@@ -385,15 +385,15 @@ function lr(e) {
|
|
|
385
385
|
function $o(e) {
|
|
386
386
|
return e == null || typeof e == "boolean" ? e : typeof e == "number" ? !!e : void 0;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const dh = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
|
|
389
|
+
function vr(e) {
|
|
390
390
|
switch (typeof e) {
|
|
391
391
|
case "bigint":
|
|
392
392
|
return !0;
|
|
393
393
|
case "number":
|
|
394
394
|
return zr(e);
|
|
395
395
|
case "string":
|
|
396
|
-
return
|
|
396
|
+
return dh.test(e);
|
|
397
397
|
default:
|
|
398
398
|
return !1;
|
|
399
399
|
}
|
|
@@ -423,17 +423,17 @@ function Ro(e) {
|
|
|
423
423
|
}
|
|
424
424
|
function No(e) {
|
|
425
425
|
var t = Lt(Number(e));
|
|
426
|
-
return lt(t) ? ae(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Ut() ? ae(
|
|
426
|
+
return lt(t) ? ae(t) : ((t = e.indexOf(".")) !== -1 && (e = e.substring(0, t)), Ut() ? ae(br(64, BigInt(e))) : ae(Io(e)));
|
|
427
427
|
}
|
|
428
428
|
function Uo(e) {
|
|
429
429
|
return lt(e) ? e = ae(on(e)) : (e = Lt(e), lt(e) ? e = String(e) : (Mt(e), e = sn(L, N)), e = ae(e)), e;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return e == null ? e : typeof e == "bigint" ? (Ls(e) ? e = Number(e) : (e =
|
|
431
|
+
function fh(e) {
|
|
432
|
+
return e == null ? e : typeof e == "bigint" ? (Ls(e) ? e = Number(e) : (e = br(64, e), e = Ls(e) ? Number(e) : String(e)), e) : vr(e) ? typeof e == "number" ? on(e) : Ro(e) : void 0;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Fr(e) {
|
|
435
435
|
const t = typeof e;
|
|
436
|
-
return e == null ? e : t === "bigint" ? ae(
|
|
436
|
+
return e == null ? e : t === "bigint" ? ae(br(64, e)) : vr(e) ? t === "string" ? No(e) : Uo(e) : void 0;
|
|
437
437
|
}
|
|
438
438
|
function Bo(e) {
|
|
439
439
|
if (typeof e != "string") throw Error();
|
|
@@ -449,25 +449,25 @@ function X(e) {
|
|
|
449
449
|
function an(e, t, r, s) {
|
|
450
450
|
return e != null && e[Ct] === Pt ? e : Array.isArray(e) ? ((s = (r = 0 | e[p]) | 32 & s | 2 & s) !== r && V(e, s), new t(e)) : (r ? 2 & s ? ((e = t[si]) || (yr((e = new t()).v), e = t[si] = e), t = e) : t = new t() : t = void 0, t);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function ph(e, t, r) {
|
|
453
453
|
if (t) e: {
|
|
454
|
-
if (!
|
|
454
|
+
if (!vr(t = e)) throw Ps("int64");
|
|
455
455
|
switch (typeof t) {
|
|
456
456
|
case "string":
|
|
457
457
|
t = No(t);
|
|
458
458
|
break e;
|
|
459
459
|
case "bigint":
|
|
460
|
-
t = ae(
|
|
460
|
+
t = ae(br(64, t));
|
|
461
461
|
break e;
|
|
462
462
|
default:
|
|
463
463
|
t = Uo(t);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
else t =
|
|
467
|
-
return (e = t) == null ? r ?
|
|
466
|
+
else t = Fr(e);
|
|
467
|
+
return (e = t) == null ? r ? lh : void 0 : e;
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
let
|
|
469
|
+
const mh = {};
|
|
470
|
+
let gh = (function() {
|
|
471
471
|
try {
|
|
472
472
|
return jr(new class extends Map {
|
|
473
473
|
constructor() {
|
|
@@ -513,7 +513,7 @@ class ps {
|
|
|
513
513
|
return this.entries();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const yh = gh ? (Object.setPrototypeOf(ps.prototype, Map.prototype), Object.defineProperties(ps.prototype, { size: { value: 0, configurable: !0, enumerable: !0, writable: !0 } }), ps) : class extends Map {
|
|
517
517
|
constructor() {
|
|
518
518
|
super();
|
|
519
519
|
}
|
|
@@ -524,9 +524,9 @@ function li(e) {
|
|
|
524
524
|
function ms(e) {
|
|
525
525
|
if (2 & e.J) throw Error("Cannot mutate an immutable Map");
|
|
526
526
|
}
|
|
527
|
-
var Oe = class extends
|
|
527
|
+
var Oe = class extends yh {
|
|
528
528
|
constructor(e, t, r = li, s = li) {
|
|
529
|
-
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ?
|
|
529
|
+
super(), this.J = 0 | e[p], this.K = t, this.S = r, this.fa = this.K ? bh : s;
|
|
530
530
|
for (let n = 0; n < e.length; n++) {
|
|
531
531
|
const i = e[n], o = r(i[0], !1, !0);
|
|
532
532
|
let a = i[1];
|
|
@@ -545,7 +545,7 @@ var Oe = class extends mh {
|
|
|
545
545
|
entries() {
|
|
546
546
|
if (this.K) {
|
|
547
547
|
var e = super.keys();
|
|
548
|
-
e = new oi(e,
|
|
548
|
+
e = new oi(e, vh, this);
|
|
549
549
|
} else e = super.entries();
|
|
550
550
|
return e;
|
|
551
551
|
}
|
|
@@ -583,15 +583,15 @@ var Oe = class extends mh {
|
|
|
583
583
|
return this.entries();
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function bh(e, t, r, s, n, i) {
|
|
587
587
|
return e = an(e, s, r, i), n && (e = hn(e)), e;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function vh(e) {
|
|
590
590
|
return [e, this.get(e)];
|
|
591
591
|
}
|
|
592
|
-
let
|
|
592
|
+
let _h;
|
|
593
593
|
function di() {
|
|
594
|
-
return
|
|
594
|
+
return _h || (_h = new Oe(yr([]), void 0, void 0, void 0, mh));
|
|
595
595
|
}
|
|
596
596
|
function Wr(e) {
|
|
597
597
|
return oe ? e[oe] : void 0;
|
|
@@ -600,17 +600,17 @@ function $r(e, t) {
|
|
|
600
600
|
for (const r in e) !isNaN(r) && t(e, +r, e[r]);
|
|
601
601
|
}
|
|
602
602
|
Oe.prototype.toJSON = void 0;
|
|
603
|
-
var
|
|
603
|
+
var Fs = class {
|
|
604
604
|
};
|
|
605
|
-
const
|
|
606
|
-
function
|
|
607
|
-
t < 100 || Tt(
|
|
605
|
+
const wh = { Ka: !0 };
|
|
606
|
+
function Ah(e, t) {
|
|
607
|
+
t < 100 || Tt(Jc, 1);
|
|
608
608
|
}
|
|
609
609
|
function Kr(e, t, r, s) {
|
|
610
610
|
const n = s !== void 0;
|
|
611
611
|
s = !!s;
|
|
612
612
|
var i, o = oe;
|
|
613
|
-
!n && Bt && o && (i = e[o]) && $r(i,
|
|
613
|
+
!n && Bt && o && (i = e[o]) && $r(i, Ah), o = [];
|
|
614
614
|
var a = e.length;
|
|
615
615
|
let c;
|
|
616
616
|
i = 4294967295;
|
|
@@ -618,25 +618,25 @@ function Kr(e, t, r, s) {
|
|
|
618
618
|
const h = !!(64 & t), l = h ? 128 & t ? 0 : -1 : void 0;
|
|
619
619
|
1 & t || (c = a && e[a - 1], c != null && typeof c == "object" && c.constructor === Object ? i = --a : c = void 0, !h || 128 & t || n || (u = !0, i = i - l + l)), t = void 0;
|
|
620
620
|
for (var f = 0; f < a; f++) {
|
|
621
|
-
let
|
|
622
|
-
if (
|
|
621
|
+
let v = e[f];
|
|
622
|
+
if (v != null && (v = r(v, s)) != null) if (h && f >= i) {
|
|
623
623
|
const M = f - l;
|
|
624
|
-
(t ?? (t = {}))[M] =
|
|
625
|
-
} else o[f] =
|
|
624
|
+
(t ?? (t = {}))[M] = v;
|
|
625
|
+
} else o[f] = v;
|
|
626
626
|
}
|
|
627
|
-
if (c) for (let
|
|
628
|
-
if ((a = c[
|
|
627
|
+
if (c) for (let v in c) {
|
|
628
|
+
if ((a = c[v]) == null || (a = r(a, s)) == null) continue;
|
|
629
629
|
let M;
|
|
630
|
-
f = +
|
|
630
|
+
f = +v, h && !Number.isNaN(f) && (M = f + l) < i ? o[M] = a : (t ?? (t = {}))[v] = a;
|
|
631
631
|
}
|
|
632
|
-
return t && (u ? o.push(t) : o[i] = t), n && oe && (e = Wr(e)) && e instanceof
|
|
633
|
-
const M = new
|
|
634
|
-
return $r(
|
|
635
|
-
M[yt] =
|
|
636
|
-
})), M.da =
|
|
632
|
+
return t && (u ? o.push(t) : o[i] = t), n && oe && (e = Wr(e)) && e instanceof Fs && (o[oe] = (function(v) {
|
|
633
|
+
const M = new Fs();
|
|
634
|
+
return $r(v, ((ls, yt, Yt) => {
|
|
635
|
+
M[yt] = ve(Yt);
|
|
636
|
+
})), M.da = v.da, M;
|
|
637
637
|
})(e)), o;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Eh(e) {
|
|
640
640
|
return e[0] = dr(e[0]), e[1] = dr(e[1]), e;
|
|
641
641
|
}
|
|
642
642
|
function dr(e) {
|
|
@@ -653,7 +653,7 @@ function dr(e) {
|
|
|
653
653
|
return e.length === 0 && 1 & t ? void 0 : Kr(e, t, dr);
|
|
654
654
|
}
|
|
655
655
|
if (e != null && e[Ct] === Pt) return Do(e);
|
|
656
|
-
if (e instanceof
|
|
656
|
+
if (e instanceof Ce) {
|
|
657
657
|
if ((t = e.g) == null) e = "";
|
|
658
658
|
else if (typeof t == "string") e = t;
|
|
659
659
|
else {
|
|
@@ -679,14 +679,14 @@ function dr(e) {
|
|
|
679
679
|
}
|
|
680
680
|
return e;
|
|
681
681
|
}
|
|
682
|
-
return e instanceof Oe ? e = e.size !== 0 ? e.V(
|
|
682
|
+
return e instanceof Oe ? e = e.size !== 0 ? e.V(Eh) : void 0 : void 0;
|
|
683
683
|
}
|
|
684
684
|
return e;
|
|
685
685
|
}
|
|
686
686
|
function Do(e) {
|
|
687
687
|
return Kr(e = e.v, 0 | e[p], dr);
|
|
688
688
|
}
|
|
689
|
-
let
|
|
689
|
+
let kh, Sh;
|
|
690
690
|
function st(e, t) {
|
|
691
691
|
return jo(e, t[0], t[1]);
|
|
692
692
|
}
|
|
@@ -699,7 +699,7 @@ function jo(e, t, r, s = 0) {
|
|
|
699
699
|
if (n = 0 | e[p], Zn && 1 & n) throw Error("rfarr");
|
|
700
700
|
if (2048 & n && !(2 & n) && (function() {
|
|
701
701
|
if (Zn) throw Error("carr");
|
|
702
|
-
Tt(
|
|
702
|
+
Tt(Zc, 5);
|
|
703
703
|
})(), 256 & n) throw Error("farr");
|
|
704
704
|
if (64 & n) return (n | s) !== n && V(e, n | s), e;
|
|
705
705
|
if (r && (n |= 128, r !== e[0])) throw Error("mid");
|
|
@@ -724,7 +724,7 @@ function jo(e, t, r, s = 0) {
|
|
|
724
724
|
}
|
|
725
725
|
return V(e, 64 | n | s), e;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Th(e, t) {
|
|
728
728
|
if (typeof e != "object") return e;
|
|
729
729
|
if (Array.isArray(e)) {
|
|
730
730
|
var r = 0 | e[p];
|
|
@@ -741,7 +741,7 @@ function kh(e, t) {
|
|
|
741
741
|
}
|
|
742
742
|
return r;
|
|
743
743
|
}
|
|
744
|
-
return e instanceof
|
|
744
|
+
return e instanceof Ce ? e : void 0;
|
|
745
745
|
}
|
|
746
746
|
function fi(e, t, r) {
|
|
747
747
|
return 2 & t || (!r || 4096 & t || 16 & t ? e = Vt(e, t, !1, r && !(16 & t)) : (gr(e, 34), 4 & t && Object.freeze(e))), e;
|
|
@@ -754,7 +754,7 @@ function pi(e) {
|
|
|
754
754
|
return ce(e, r) ? e : un(e, t, r) ? cn(e, t) : Vt(t, r);
|
|
755
755
|
}
|
|
756
756
|
function Vt(e, t, r, s) {
|
|
757
|
-
return s ?? (s = !!(34 & t)), e = Kr(e, t,
|
|
757
|
+
return s ?? (s = !!(34 & t)), e = Kr(e, t, Th, s), s = 32, r && (s |= 2), V(e, t = 16769217 & t | s), e;
|
|
758
758
|
}
|
|
759
759
|
function hn(e) {
|
|
760
760
|
const t = e.v, r = 0 | t[p];
|
|
@@ -774,7 +774,7 @@ function pt(e, t) {
|
|
|
774
774
|
function un(e, t, r) {
|
|
775
775
|
return !!(2 & r) || !(!(32 & r) || 4096 & r) && (V(t, 2 | r), e.h = ut, !0);
|
|
776
776
|
}
|
|
777
|
-
const
|
|
777
|
+
const Ch = ae(0), Be = {};
|
|
778
778
|
function C(e, t, r, s, n) {
|
|
779
779
|
if ((t = Ie(e.v, t, r, n)) !== null || s && e.m !== ut) return t;
|
|
780
780
|
}
|
|
@@ -809,7 +809,7 @@ function D(e, t, r, s, n) {
|
|
|
809
809
|
return i <= o ? (e[i] = s, t) : (s !== void 0 && (r >= (o = (t ?? (t = 0 | e[p])) >> 14 & 1023 || 536870912) ? s != null && (e[o + (n ? 0 : -1)] = { [r]: s }) : e[i] = s), t);
|
|
810
810
|
}
|
|
811
811
|
function et() {
|
|
812
|
-
return
|
|
812
|
+
return eh === void 0 ? 2 : 4;
|
|
813
813
|
}
|
|
814
814
|
function tt(e, t, r, s, n) {
|
|
815
815
|
let i = e.v, o = 0 | i[p];
|
|
@@ -817,7 +817,7 @@ function tt(e, t, r, s, n) {
|
|
|
817
817
|
let a = (e = ln(i, t)) === ft ? 7 : 0 | e[p], c = dn(a, o);
|
|
818
818
|
var u = !(4 & c);
|
|
819
819
|
if (u) {
|
|
820
|
-
4 & c && (e =
|
|
820
|
+
4 & c && (e = ve(e), a = 0, c = it(c, o), o = D(i, o, t, e));
|
|
821
821
|
let h = 0, l = 0;
|
|
822
822
|
for (; h < e.length; h++) {
|
|
823
823
|
const f = r(e[h]);
|
|
@@ -829,7 +829,7 @@ function tt(e, t, r, s, n) {
|
|
|
829
829
|
}
|
|
830
830
|
function Vo(e, t, r, s, n, i, o, a) {
|
|
831
831
|
let c = t;
|
|
832
|
-
return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & s) ? nt(t) || ((t |= !e.length || o && !(4096 & t) || 32 & s && !(4096 & t || 16 & t) ? 2 : 256) !== c && V(e, t), Object.freeze(e)) : (i === 2 && nt(t) && (e =
|
|
832
|
+
return i === 1 || i === 4 && (2 & t || !(16 & t) && 32 & s) ? nt(t) || ((t |= !e.length || o && !(4096 & t) || 32 & s && !(4096 & t || 16 & t) ? 2 : 256) !== c && V(e, t), Object.freeze(e)) : (i === 2 && nt(t) && (e = ve(e), c = 0, t = it(t, s), s = D(r, s, n, e)), nt(t) || (a || (t |= 16), t !== c && V(e, t))), 2 & t || !(4096 & t || 16 & t) || pt(r, s), e;
|
|
833
833
|
}
|
|
834
834
|
function ln(e, t, r) {
|
|
835
835
|
return e = Ie(e, t, r), Array.isArray(e) ? e : ft;
|
|
@@ -844,9 +844,9 @@ function Go(e) {
|
|
|
844
844
|
return en(e, !0);
|
|
845
845
|
}
|
|
846
846
|
function Ho(e) {
|
|
847
|
-
e =
|
|
847
|
+
e = ve(e);
|
|
848
848
|
for (let t = 0; t < e.length; t++) {
|
|
849
|
-
const r = e[t] =
|
|
849
|
+
const r = e[t] = ve(e[t]);
|
|
850
850
|
Array.isArray(r[1]) && (r[1] = yr(r[1]));
|
|
851
851
|
}
|
|
852
852
|
return hr(e);
|
|
@@ -858,7 +858,7 @@ function zt(e, t, r) {
|
|
|
858
858
|
if (2 & t) throw Error();
|
|
859
859
|
const s = Dt(t);
|
|
860
860
|
let n = ln(e, r, s), i = n === ft ? 7 : 0 | n[p], o = dn(i, t);
|
|
861
|
-
return (2 & o || nt(o) || 16 & o) && (o === i || nt(o) || V(n, o), n =
|
|
861
|
+
return (2 & o || nt(o) || 16 & o) && (o === i || nt(o) || V(n, o), n = ve(n), i = 0, o = it(o, t), D(e, t, r, n, s)), o &= -13, o !== i && V(n, o), n;
|
|
862
862
|
}
|
|
863
863
|
function gs(e, t) {
|
|
864
864
|
var r = Ra;
|
|
@@ -920,13 +920,13 @@ function Ko(e, t, r, s, n, i, o, a) {
|
|
|
920
920
|
var u = (e = ln(t, n)) === ft ? 7 : 0 | e[p], h = dn(u, r);
|
|
921
921
|
if (a = !(4 & h)) {
|
|
922
922
|
var l = e, f = r;
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
let M = !
|
|
923
|
+
const v = !!(2 & h);
|
|
924
|
+
v && (f |= 2);
|
|
925
|
+
let M = !v, ls = !0, yt = 0, Yt = 0;
|
|
926
926
|
for (; yt < l.length; yt++) {
|
|
927
927
|
const ds = an(l[yt], s, !1, f);
|
|
928
928
|
if (ds instanceof s) {
|
|
929
|
-
if (!
|
|
929
|
+
if (!v) {
|
|
930
930
|
const Qn = ce(ds);
|
|
931
931
|
M && (M = !Qn), ls && (ls = Qn);
|
|
932
932
|
}
|
|
@@ -936,7 +936,7 @@ function Ko(e, t, r, s, n, i, o, a) {
|
|
|
936
936
|
Yt < yt && (l.length = Yt), h |= 4, h = ls ? -4097 & h : 4096 | h, h = M ? 8 | h : -9 & h;
|
|
937
937
|
}
|
|
938
938
|
if (h !== u && (V(e, h), 2 & h && Object.freeze(e)), c && !(8 & h || !e.length && (i === 1 || i === 4 && (2 & h || !(16 & h) && 32 & r)))) {
|
|
939
|
-
for (nt(h) && (e =
|
|
939
|
+
for (nt(h) && (e = ve(e), h = it(h, r), r = D(t, r, n, e)), s = e, c = h, u = 0; u < s.length; u++) (l = s[u]) !== (h = hn(l)) && (s[u] = h);
|
|
940
940
|
c |= 8, V(e, h = c = s.length ? 4096 | c : -4097 & c);
|
|
941
941
|
}
|
|
942
942
|
return Vo(e, h, t, r, n, i, a, o);
|
|
@@ -948,7 +948,7 @@ function Re(e, t, r) {
|
|
|
948
948
|
function qo(e) {
|
|
949
949
|
return e == null && (e = void 0), e;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function b(e, t, r, s, n) {
|
|
952
952
|
return k(e, r, s = qo(s), n), s && !ce(s) && pt(e.v), e;
|
|
953
953
|
}
|
|
954
954
|
function rr(e, t, r, s) {
|
|
@@ -977,10 +977,10 @@ function ge(e, t, r) {
|
|
|
977
977
|
return jt(C(e, t, void 0, r));
|
|
978
978
|
}
|
|
979
979
|
function Xo(e) {
|
|
980
|
-
return (Qs ? C(e, 2, void 0, void 0,
|
|
980
|
+
return (Qs ? C(e, 2, void 0, void 0, Fr) : Fr(C(e, 2))) ?? Ch;
|
|
981
981
|
}
|
|
982
982
|
function I(e, t) {
|
|
983
|
-
return C(e, t, void 0, void 0,
|
|
983
|
+
return C(e, t, void 0, void 0, Te) ?? 0;
|
|
984
984
|
}
|
|
985
985
|
function Ne(e, t, r) {
|
|
986
986
|
if (r != null) {
|
|
@@ -1003,33 +1003,33 @@ function Or(e, t, r) {
|
|
|
1003
1003
|
if (r == null) D(o, a, t);
|
|
1004
1004
|
else {
|
|
1005
1005
|
var s = e = r === ft ? 7 : 0 | r[p], n = nt(e), i = n || Object.isFrozen(r);
|
|
1006
|
-
for (n || (e = 0), i || (r =
|
|
1006
|
+
for (n || (e = 0), i || (r = ve(r), s = 0, e = it(e, a), i = !1), e |= 5, e |= (4 & e ? 512 & e ? 512 : 1024 & e ? 1024 : 0 : void 0) ?? (Qs ? 1024 : 0), n = 0; n < r.length; n++) {
|
|
1007
1007
|
const c = r[n], u = Bo(c);
|
|
1008
|
-
Object.is(c, u) || (i && (r =
|
|
1008
|
+
Object.is(c, u) || (i && (r = ve(r), s = 0, e = it(e, a), i = !1), r[n] = u);
|
|
1009
1009
|
}
|
|
1010
|
-
e !== s && (i && (r =
|
|
1010
|
+
e !== s && (i && (r = ve(r), e = it(e, a)), V(r, e)), D(o, a, t, r);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
function qr(e, t, r) {
|
|
1015
1015
|
Ht(e), tt(e, t, X, 2, !0).push(Bo(r));
|
|
1016
1016
|
}
|
|
1017
|
-
var
|
|
1017
|
+
var bt = class {
|
|
1018
1018
|
constructor(e, t, r) {
|
|
1019
1019
|
if (this.buffer = e, r && !t) throw Error();
|
|
1020
1020
|
this.g = t;
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
1023
|
function yn(e, t) {
|
|
1024
|
-
if (typeof e == "string") return new
|
|
1025
|
-
if (Array.isArray(e)) return new
|
|
1026
|
-
if (e.constructor === Uint8Array) return new
|
|
1027
|
-
if (e.constructor === ArrayBuffer) return e = new Uint8Array(e), new
|
|
1028
|
-
if (e.constructor ===
|
|
1029
|
-
if (e instanceof Uint8Array) return e = e.constructor === Uint8Array ? e : new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new
|
|
1024
|
+
if (typeof e == "string") return new bt(So(e), t);
|
|
1025
|
+
if (Array.isArray(e)) return new bt(new Uint8Array(e), t);
|
|
1026
|
+
if (e.constructor === Uint8Array) return new bt(e, !1);
|
|
1027
|
+
if (e.constructor === ArrayBuffer) return e = new Uint8Array(e), new bt(e, !1);
|
|
1028
|
+
if (e.constructor === Ce) return t = Zs(e) || new Uint8Array(0), new bt(t, !0, e);
|
|
1029
|
+
if (e instanceof Uint8Array) return e = e.constructor === Uint8Array ? e : new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new bt(e, !1);
|
|
1030
1030
|
throw Error();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function xt(e, t) {
|
|
1033
1033
|
let r, s = 0, n = 0, i = 0;
|
|
1034
1034
|
const o = e.h;
|
|
1035
1035
|
let a = e.g;
|
|
@@ -1040,7 +1040,7 @@ function Ft(e, t) {
|
|
|
1040
1040
|
if (ot(e, a), !(128 & r)) return t(s >>> 0, n >>> 0);
|
|
1041
1041
|
throw Error();
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function bn(e) {
|
|
1044
1044
|
let t = 0, r = e.g;
|
|
1045
1045
|
const s = r + 10, n = e.h;
|
|
1046
1046
|
for (; r < s; ) {
|
|
@@ -1065,7 +1065,7 @@ function Ir(e) {
|
|
|
1065
1065
|
const i = t[r + 2];
|
|
1066
1066
|
return t = t[r + 3], ot(e, e.g + 4), e = 2 * ((n = (s << 0 | n << 8 | i << 16 | t << 24) >>> 0) >> 31) + 1, s = n >>> 23 & 255, n &= 8388607, s == 255 ? n ? NaN : e * (1 / 0) : s == 0 ? 1401298464324817e-60 * e * n : e * Math.pow(2, s - 150) * (n + 8388608);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Ph(e) {
|
|
1069
1069
|
return We(e);
|
|
1070
1070
|
}
|
|
1071
1071
|
function ot(e, t) {
|
|
@@ -1080,7 +1080,7 @@ function Yo(e, t) {
|
|
|
1080
1080
|
function Qo(e, t) {
|
|
1081
1081
|
if (t == 0) return ht();
|
|
1082
1082
|
var r = Yo(e, t);
|
|
1083
|
-
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) :
|
|
1083
|
+
return e.Y && e.j ? r = e.h.subarray(r, r + t) : (e = e.h, r = r === (t = r + t) ? new Uint8Array(0) : ah ? e.slice(r, t) : new Uint8Array(e.subarray(r, t))), r.length == 0 ? ht() : new Ce(r, St);
|
|
1084
1084
|
}
|
|
1085
1085
|
var mi = [];
|
|
1086
1086
|
function Jo(e, t, r, s) {
|
|
@@ -1088,7 +1088,7 @@ function Jo(e, t, r, s) {
|
|
|
1088
1088
|
const n = Rr.pop();
|
|
1089
1089
|
return n.o(s), n.g.init(e, t, r, s), n;
|
|
1090
1090
|
}
|
|
1091
|
-
return new
|
|
1091
|
+
return new Mh(e, t, r, s);
|
|
1092
1092
|
}
|
|
1093
1093
|
function Zo(e) {
|
|
1094
1094
|
e.g.clear(), e.l = -1, e.h = -1, Rr.length < 100 && Rr.push(e);
|
|
@@ -1104,7 +1104,7 @@ function ea(e) {
|
|
|
1104
1104
|
function Mr(e) {
|
|
1105
1105
|
switch (e.h) {
|
|
1106
1106
|
case 0:
|
|
1107
|
-
e.h != 0 ? Mr(e) :
|
|
1107
|
+
e.h != 0 ? Mr(e) : bn(e.g);
|
|
1108
1108
|
break;
|
|
1109
1109
|
case 1:
|
|
1110
1110
|
ot(e = e.g, e.g + 8);
|
|
@@ -1140,9 +1140,9 @@ function wr(e, t, r) {
|
|
|
1140
1140
|
if (i <= 0 && (e.g.l = n, r(t, e, void 0, void 0, void 0), i = n - e.g.g), i) throw Error();
|
|
1141
1141
|
return e.g.g = n, e.g.l = s, t;
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function vn(e) {
|
|
1144
1144
|
var t = Ue(e.g), r = Yo(e = e.g, t);
|
|
1145
|
-
if (e = e.h,
|
|
1145
|
+
if (e = e.h, Dc) {
|
|
1146
1146
|
var s, n = e;
|
|
1147
1147
|
(s = fs) || (s = fs = new TextDecoder("utf-8", { fatal: !0 })), t = r + t, n = r === 0 && t === n.length ? n : n.subarray(r, t);
|
|
1148
1148
|
try {
|
|
@@ -1180,7 +1180,7 @@ function Xr(e, t, r) {
|
|
|
1180
1180
|
var s = Ue(e.g);
|
|
1181
1181
|
for (s = e.g.g + s; e.g.g < s; ) r.push(t(e.g));
|
|
1182
1182
|
}
|
|
1183
|
-
var
|
|
1183
|
+
var Mh = class {
|
|
1184
1184
|
constructor(e, t, r, s) {
|
|
1185
1185
|
if (mi.length) {
|
|
1186
1186
|
const n = mi.pop();
|
|
@@ -1203,23 +1203,23 @@ var Ch = class {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}, Rr = [];
|
|
1205
1205
|
function gi(e) {
|
|
1206
|
-
return e ? /^\d+$/.test(e) ? (Hr(e), new $s(L, N)) : null :
|
|
1206
|
+
return e ? /^\d+$/.test(e) ? (Hr(e), new $s(L, N)) : null : Lh || (Lh = new $s(0, 0));
|
|
1207
1207
|
}
|
|
1208
1208
|
var $s = class {
|
|
1209
1209
|
constructor(e, t) {
|
|
1210
1210
|
this.h = e >>> 0, this.g = t >>> 0;
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
let
|
|
1213
|
+
let Lh;
|
|
1214
1214
|
function yi(e) {
|
|
1215
|
-
return e ? /^-?\d+$/.test(e) ? (Hr(e), new Os(L, N)) : null :
|
|
1215
|
+
return e ? /^-?\d+$/.test(e) ? (Hr(e), new Os(L, N)) : null : xh || (xh = new Os(0, 0));
|
|
1216
1216
|
}
|
|
1217
1217
|
var Os = class {
|
|
1218
1218
|
constructor(e, t) {
|
|
1219
1219
|
this.h = e >>> 0, this.g = t >>> 0;
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
|
-
let
|
|
1222
|
+
let xh;
|
|
1223
1223
|
function At(e, t, r) {
|
|
1224
1224
|
for (; r > 0 || t > 127; ) e.g.push(127 & t | 128), t = (t >>> 7 | r << 25) >>> 0, r >>>= 7;
|
|
1225
1225
|
e.g.push(t);
|
|
@@ -1239,14 +1239,14 @@ function _n(e) {
|
|
|
1239
1239
|
var t = L;
|
|
1240
1240
|
e.g.push(t >>> 0 & 255), e.g.push(t >>> 8 & 255), e.g.push(t >>> 16 & 255), e.g.push(t >>> 24 & 255);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Ft(e, t) {
|
|
1243
1243
|
t.length !== 0 && (e.l.push(t), e.h += t.length);
|
|
1244
1244
|
}
|
|
1245
1245
|
function ye(e, t, r) {
|
|
1246
1246
|
Wt(e.g, 8 * t + r);
|
|
1247
1247
|
}
|
|
1248
1248
|
function wn(e, t) {
|
|
1249
|
-
return ye(e, t, 2), t = e.g.end(),
|
|
1249
|
+
return ye(e, t, 2), t = e.g.end(), Ft(e, t), t.push(e.h), t;
|
|
1250
1250
|
}
|
|
1251
1251
|
function An(e, t) {
|
|
1252
1252
|
var r = t.pop();
|
|
@@ -1254,12 +1254,12 @@ function An(e, t) {
|
|
|
1254
1254
|
t.push(r), e.h++;
|
|
1255
1255
|
}
|
|
1256
1256
|
function Qr(e, t, r) {
|
|
1257
|
-
ye(e, t, 2), Wt(e.g, r.length),
|
|
1257
|
+
ye(e, t, 2), Wt(e.g, r.length), Ft(e, e.g.end()), Ft(e, r);
|
|
1258
1258
|
}
|
|
1259
1259
|
function Nr(e, t, r, s) {
|
|
1260
1260
|
r != null && (t = wn(e, t), s(r, e), An(e, t));
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Me() {
|
|
1263
1263
|
const e = class {
|
|
1264
1264
|
constructor() {
|
|
1265
1265
|
throw Error();
|
|
@@ -1267,8 +1267,8 @@ function Pe() {
|
|
|
1267
1267
|
};
|
|
1268
1268
|
return Object.setPrototypeOf(e, e.prototype), e;
|
|
1269
1269
|
}
|
|
1270
|
-
var En =
|
|
1271
|
-
function
|
|
1270
|
+
var En = Me(), ra = Me(), kn = Me(), Sn = Me(), sa = Me(), na = Me(), Fh = Me(), Jr = Me(), ia = Me(), oa = Me();
|
|
1271
|
+
function Le(e, t, r) {
|
|
1272
1272
|
var s = e.v;
|
|
1273
1273
|
oe && oe in s && (s = s[oe]) && delete s[t.g], t.h ? t.j(e, t.h, t.g, r, t.l) : t.j(e, t.g, r, t.l);
|
|
1274
1274
|
}
|
|
@@ -1281,9 +1281,9 @@ var m = class {
|
|
|
1281
1281
|
}
|
|
1282
1282
|
j() {
|
|
1283
1283
|
var n;
|
|
1284
|
-
var e =
|
|
1285
|
-
if (Bt && s && ((n = t[s]) == null ? void 0 : n[r]) != null && Tt(
|
|
1286
|
-
s(r, t,
|
|
1284
|
+
var e = pu, t = this.v, r = e.g, s = oe;
|
|
1285
|
+
if (Bt && s && ((n = t[s]) == null ? void 0 : n[r]) != null && Tt(Qc, 3), t = e.g, ni && oe && ni === void 0 && (s = (r = this.v)[oe]) && (s = s.da)) try {
|
|
1286
|
+
s(r, t, wh);
|
|
1287
1287
|
} catch (i) {
|
|
1288
1288
|
wo(i);
|
|
1289
1289
|
}
|
|
@@ -1308,12 +1308,12 @@ function Zr(e, t) {
|
|
|
1308
1308
|
function aa(e, t, r, s, n) {
|
|
1309
1309
|
Nr(e, r, la(t, s), n);
|
|
1310
1310
|
}
|
|
1311
|
-
const
|
|
1311
|
+
const $h = Zr((function(e, t, r, s, n) {
|
|
1312
1312
|
return e.h === 2 && (wr(e, mn(t, s, r), n), !0);
|
|
1313
|
-
}), aa),
|
|
1313
|
+
}), aa), Oh = Zr((function(e, t, r, s, n) {
|
|
1314
1314
|
return e.h === 2 && (wr(e, mn(t, s, r), n), !0);
|
|
1315
1315
|
}), aa);
|
|
1316
|
-
var es = Symbol(), ts = Symbol(), Is = Symbol(),
|
|
1316
|
+
var es = Symbol(), ts = Symbol(), Is = Symbol(), bi = Symbol(), vi = Symbol();
|
|
1317
1317
|
let ca, ha;
|
|
1318
1318
|
function mt(e, t, r, s) {
|
|
1319
1319
|
var n = s[e];
|
|
@@ -1321,9 +1321,9 @@ function mt(e, t, r, s) {
|
|
|
1321
1321
|
(n = {}).qa = s, n.T = (function(l) {
|
|
1322
1322
|
switch (typeof l) {
|
|
1323
1323
|
case "boolean":
|
|
1324
|
-
return
|
|
1324
|
+
return kh || (kh = [0, void 0, !0]);
|
|
1325
1325
|
case "number":
|
|
1326
|
-
return l > 0 ? void 0 : l === 0 ?
|
|
1326
|
+
return l > 0 ? void 0 : l === 0 ? Sh || (Sh = [0, void 0]) : [-l, void 0];
|
|
1327
1327
|
case "string":
|
|
1328
1328
|
return [0, l];
|
|
1329
1329
|
case "object":
|
|
@@ -1342,7 +1342,7 @@ function mt(e, t, r, s) {
|
|
|
1342
1342
|
let l;
|
|
1343
1343
|
typeof i == "number" && (c += i, i = s[++o]);
|
|
1344
1344
|
var u = void 0;
|
|
1345
|
-
if (i instanceof Kt ? l = i : (l =
|
|
1345
|
+
if (i instanceof Kt ? l = i : (l = $h, o--), l == null ? void 0 : l.l) {
|
|
1346
1346
|
i = s[++o], u = s;
|
|
1347
1347
|
var h = o;
|
|
1348
1348
|
typeof i == "function" && (i = i(), u[h] = i), u = i;
|
|
@@ -1355,7 +1355,7 @@ function mt(e, t, r, s) {
|
|
|
1355
1355
|
return s[e] = n;
|
|
1356
1356
|
}
|
|
1357
1357
|
function ua(e) {
|
|
1358
|
-
return Array.isArray(e) ? e[0] instanceof Kt ? e : [
|
|
1358
|
+
return Array.isArray(e) ? e[0] instanceof Kt ? e : [Oh, e] : [e, void 0];
|
|
1359
1359
|
}
|
|
1360
1360
|
function la(e, t) {
|
|
1361
1361
|
return e instanceof m ? e.v : Array.isArray(e) ? st(e, t) : void 0;
|
|
@@ -1378,26 +1378,26 @@ function Pn(e) {
|
|
|
1378
1378
|
var i = n.l, o = r[i];
|
|
1379
1379
|
if (o == null) {
|
|
1380
1380
|
var a = r.ba;
|
|
1381
|
-
a && (a = a[i]) && (a =
|
|
1381
|
+
a && (a = a[i]) && (a = Rh(a)) != null && (o = r[i] = a);
|
|
1382
1382
|
}
|
|
1383
1383
|
if (o == null || !o(n, s, i)) {
|
|
1384
1384
|
if (o = (a = n).m, Mr(a), a.ha) var c = void 0;
|
|
1385
1385
|
else c = a.g.g - o, a.g.g = o, c = Qo(a.g, c);
|
|
1386
|
-
o = void 0, a = s, c && ((o = a[oe] ?? (a[oe] = new
|
|
1386
|
+
o = void 0, a = s, c && ((o = a[oe] ?? (a[oe] = new Fs()))[i] ?? (o[i] = [])).push(c);
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
return (s = Wr(s)) && (s.da = r.qa[
|
|
1390
|
-
}, e[Is] = t, e[
|
|
1389
|
+
return (s = Wr(s)) && (s.da = r.qa[vi]), !0;
|
|
1390
|
+
}, e[Is] = t, e[vi] = Ih.bind(e), t;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Ih(e, t, r, s) {
|
|
1393
1393
|
var n = this[ts];
|
|
1394
1394
|
const i = this[Is], o = st(void 0, n.T), a = Wr(e);
|
|
1395
1395
|
if (a) {
|
|
1396
1396
|
var c = !1, u = n.ba;
|
|
1397
1397
|
if (u) {
|
|
1398
1398
|
if (n = (h, l, f) => {
|
|
1399
|
-
if (f.length !== 0) if (u[l]) for (const
|
|
1400
|
-
h = Jo(
|
|
1399
|
+
if (f.length !== 0) if (u[l]) for (const v of f) {
|
|
1400
|
+
h = Jo(v);
|
|
1401
1401
|
try {
|
|
1402
1402
|
c = !0, i(o, h);
|
|
1403
1403
|
} finally {
|
|
@@ -1413,21 +1413,21 @@ function $h(e, t, r, s) {
|
|
|
1413
1413
|
if (c) {
|
|
1414
1414
|
let h = 0 | e[p];
|
|
1415
1415
|
if (2 & h && 2048 & h && !(r != null && r.Ka)) throw Error();
|
|
1416
|
-
const l = Dt(h), f = (
|
|
1417
|
-
if (Ie(e,
|
|
1416
|
+
const l = Dt(h), f = (v, M) => {
|
|
1417
|
+
if (Ie(e, v, l) != null) {
|
|
1418
1418
|
if ((r == null ? void 0 : r.Qa) === 1) return;
|
|
1419
1419
|
throw Error();
|
|
1420
1420
|
}
|
|
1421
|
-
M != null && (h = D(e, h,
|
|
1421
|
+
M != null && (h = D(e, h, v, M, l)), delete a[v];
|
|
1422
1422
|
};
|
|
1423
|
-
t == null ? Lo(o, 0 | o[p], ((
|
|
1424
|
-
f(
|
|
1423
|
+
t == null ? Lo(o, 0 | o[p], ((v, M) => {
|
|
1424
|
+
f(v, M);
|
|
1425
1425
|
})) : f(t, Ie(o, t, l));
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Rh(e) {
|
|
1431
1431
|
const t = (e = ua(e))[0].g;
|
|
1432
1432
|
if (e = e[1]) {
|
|
1433
1433
|
const r = Pn(e), s = mt(ts, Tn, Cn, e).T;
|
|
@@ -1444,10 +1444,10 @@ function ss(e, t, r, s) {
|
|
|
1444
1444
|
e[t] = (a, c, u) => o(a, c, u, i || (i = mt(es, rs, ss, s).T), n || (n = da(s)));
|
|
1445
1445
|
}
|
|
1446
1446
|
function da(e) {
|
|
1447
|
-
let t = e[
|
|
1447
|
+
let t = e[bi];
|
|
1448
1448
|
if (!t) {
|
|
1449
1449
|
const r = mt(es, rs, ss, e);
|
|
1450
|
-
t = (s, n) => fa(s, n, r), e[
|
|
1450
|
+
t = (s, n) => fa(s, n, r), e[bi] = t;
|
|
1451
1451
|
}
|
|
1452
1452
|
return t;
|
|
1453
1453
|
}
|
|
@@ -1461,7 +1461,7 @@ function fa(e, t, r) {
|
|
|
1461
1461
|
var u = (c = ua(c))[0].h;
|
|
1462
1462
|
if (c = c[1]) {
|
|
1463
1463
|
const h = da(c), l = mt(es, rs, ss, c).T;
|
|
1464
|
-
c = o.ma ? ha(l, h) : (f,
|
|
1464
|
+
c = o.ma ? ha(l, h) : (f, v, M) => u(f, v, M, l, h);
|
|
1465
1465
|
} else c = u;
|
|
1466
1466
|
return o[a] = c;
|
|
1467
1467
|
}
|
|
@@ -1469,10 +1469,10 @@ function fa(e, t, r) {
|
|
|
1469
1469
|
i ? i(t, n, s) : s < 500 || Tt(Ms, 3);
|
|
1470
1470
|
}
|
|
1471
1471
|
})), (e = Wr(e)) && $r(e, ((s, n, i) => {
|
|
1472
|
-
for (
|
|
1472
|
+
for (Ft(t, t.g.end()), s = 0; s < i.length; s++) Ft(t, Zs(i[s]) || new Uint8Array(0));
|
|
1473
1473
|
}));
|
|
1474
1474
|
}
|
|
1475
|
-
const
|
|
1475
|
+
const Nh = ae(0);
|
|
1476
1476
|
function qt(e, t) {
|
|
1477
1477
|
if (Array.isArray(t)) {
|
|
1478
1478
|
var r = 0 | t[p];
|
|
@@ -1493,9 +1493,9 @@ function Xt(e, t, r) {
|
|
|
1493
1493
|
function q(e, t, r) {
|
|
1494
1494
|
D(e, 0 | e[p], t, r, Dt(0 | e[p]));
|
|
1495
1495
|
}
|
|
1496
|
-
var
|
|
1496
|
+
var Uh = Zr((function(e, t, r, s, n) {
|
|
1497
1497
|
if (e.h !== 2) return !1;
|
|
1498
|
-
if (e =
|
|
1498
|
+
if (e = ve(e = wr(e, st([void 0, void 0], s), n)), n = Dt(s = 0 | t[p]), 2 & s) throw Error();
|
|
1499
1499
|
let i = Ie(t, r, n);
|
|
1500
1500
|
if (i instanceof Oe) (2 & i.J) != 0 ? (i = i.V(), i.push(e), D(t, s, r, i, n)) : i.Ma(e);
|
|
1501
1501
|
else if (Array.isArray(i)) {
|
|
@@ -1516,14 +1516,14 @@ var Rh = Zr((function(e, t, r, s, n) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
}));
|
|
1518
1518
|
function pa(e, t, r) {
|
|
1519
|
-
(t =
|
|
1519
|
+
(t = Te(t)) != null && (ye(e, r, 5), e = e.g, tn(t), _n(e));
|
|
1520
1520
|
}
|
|
1521
1521
|
function ma(e, t, r) {
|
|
1522
1522
|
if (t = (function(s) {
|
|
1523
1523
|
if (s == null) return s;
|
|
1524
1524
|
const n = typeof s;
|
|
1525
|
-
if (n === "bigint") return String(
|
|
1526
|
-
if (
|
|
1525
|
+
if (n === "bigint") return String(br(64, s));
|
|
1526
|
+
if (vr(s)) {
|
|
1527
1527
|
if (n === "string") return Ro(s);
|
|
1528
1528
|
if (n === "number") return on(s);
|
|
1529
1529
|
}
|
|
@@ -1545,46 +1545,46 @@ function ga(e, t, r) {
|
|
|
1545
1545
|
function ya(e, t, r) {
|
|
1546
1546
|
(t = $o(t)) != null && (ye(e, r, 0), e.g.g.push(t ? 1 : 0));
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function ba(e, t, r) {
|
|
1549
1549
|
(t = X(t)) != null && Qr(e, r, _o(t));
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function va(e, t, r, s, n) {
|
|
1552
1552
|
Nr(e, r, la(t, s), n);
|
|
1553
1553
|
}
|
|
1554
1554
|
function _a(e, t, r) {
|
|
1555
|
-
(t = t == null || typeof t == "string" || t instanceof
|
|
1555
|
+
(t = t == null || typeof t == "string" || t instanceof Ce ? t : void 0) != null && Qr(e, r, yn(t, !0).buffer);
|
|
1556
1556
|
}
|
|
1557
1557
|
function wa(e, t, r) {
|
|
1558
1558
|
return (e.h === 5 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ir, t) : t.push(Ir(e.g)), !0);
|
|
1559
1559
|
}
|
|
1560
1560
|
var U = J((function(e, t, r) {
|
|
1561
1561
|
return e.h === 5 && (q(t, r, Ir(e.g)), !0);
|
|
1562
|
-
}), pa, Jr),
|
|
1563
|
-
if ((t = qt(
|
|
1562
|
+
}), pa, Jr), Bh = Xt(wa, (function(e, t, r) {
|
|
1563
|
+
if ((t = qt(Te, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1564
1564
|
var s = e, n = r, i = t[o];
|
|
1565
1565
|
i != null && (ye(s, n, 5), s = s.g, tn(i), _n(s));
|
|
1566
1566
|
}
|
|
1567
1567
|
}), Jr), Mn = Xt(wa, (function(e, t, r) {
|
|
1568
|
-
if ((t = qt(
|
|
1568
|
+
if ((t = qt(Te, t)) != null && t.length) {
|
|
1569
1569
|
ye(e, r, 2), Wt(e.g, 4 * t.length);
|
|
1570
1570
|
for (let s = 0; s < t.length; s++) r = e.g, tn(t[s]), _n(r);
|
|
1571
1571
|
}
|
|
1572
|
-
}), Jr),
|
|
1572
|
+
}), Jr), Dh = J((function(e, t, r) {
|
|
1573
1573
|
return e.h === 5 && (q(t, r, (e = Ir(e.g)) === 0 ? void 0 : e), !0);
|
|
1574
1574
|
}), pa, Jr), Ke = J((function(e, t, r) {
|
|
1575
|
-
return Ys ? (e.h !== 0 ? e = !1 : (q(t, r,
|
|
1575
|
+
return Ys ? (e.h !== 0 ? e = !1 : (q(t, r, xt(e.g, Fo)), e = !0), e) : e.h === 0 && (q(t, r, xt(e.g, rn)), !0);
|
|
1576
1576
|
}), ma, na), ys = J((function(e, t, r) {
|
|
1577
|
-
return Ys ? (e.h !== 0 ? t = !1 : (q(t, r, (e =
|
|
1578
|
-
}), ma, na),
|
|
1579
|
-
return Ys ? (e.h !== 0 ? e = !1 : (q(t, r,
|
|
1577
|
+
return Ys ? (e.h !== 0 ? t = !1 : (q(t, r, (e = xt(e.g, Fo)) === Nh ? void 0 : e), t = !0), t) : e.h === 0 && (q(t, r, (e = xt(e.g, rn)) === 0 ? void 0 : e), !0);
|
|
1578
|
+
}), ma, na), jh = J((function(e, t, r) {
|
|
1579
|
+
return Ys ? (e.h !== 0 ? e = !1 : (q(t, r, xt(e.g, hh)), e = !0), e) : e.h === 0 && (q(t, r, xt(e.g, xs)), !0);
|
|
1580
1580
|
}), (function(e, t, r) {
|
|
1581
1581
|
if (t = (function(s) {
|
|
1582
1582
|
if (s == null) return s;
|
|
1583
1583
|
var n = typeof s;
|
|
1584
|
-
if (n === "bigint") return String(
|
|
1585
|
-
if (
|
|
1584
|
+
if (n === "bigint") return String(uh(64, s));
|
|
1585
|
+
if (vr(s)) {
|
|
1586
1586
|
if (n === "string") return n = Lt(Number(s)), lt(n) && n >= 0 ? s = String(n) : ((n = s.indexOf(".")) !== -1 && (s = s.substring(0, n)), (n = s[0] !== "-" && ((n = s.length) < 20 || n === 20 && s <= "18446744073709551615")) || (Hr(s), s = ur(L, N))), s;
|
|
1587
|
-
if (n === "number") return (s = Lt(s)) >= 0 && lt(s) || (Mt(s), s =
|
|
1587
|
+
if (n === "number") return (s = Lt(s)) >= 0 && lt(s) || (Mt(s), s = xs(L, N)), s;
|
|
1588
1588
|
}
|
|
1589
1589
|
})(t), t != null && (typeof t == "string" && gi(t), t != null))
|
|
1590
1590
|
switch (ye(e, r, 0), typeof t) {
|
|
@@ -1597,7 +1597,7 @@ var U = J((function(e, t, r) {
|
|
|
1597
1597
|
default:
|
|
1598
1598
|
r = gi(t), At(e.g, r.h, r.g);
|
|
1599
1599
|
}
|
|
1600
|
-
}),
|
|
1600
|
+
}), Fh), K = J((function(e, t, r) {
|
|
1601
1601
|
return e.h === 0 && (q(t, r, We(e.g)), !0);
|
|
1602
1602
|
}), ga, Sn), Ar = Xt((function(e, t, r) {
|
|
1603
1603
|
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, We, t) : t.push(We(e.g)), !0);
|
|
@@ -1610,43 +1610,43 @@ var U = J((function(e, t, r) {
|
|
|
1610
1610
|
}), Sn), wt = J((function(e, t, r) {
|
|
1611
1611
|
return e.h === 0 && (q(t, r, (e = We(e.g)) === 0 ? void 0 : e), !0);
|
|
1612
1612
|
}), ga, Sn), R = J((function(e, t, r) {
|
|
1613
|
-
return e.h === 0 && (q(t, r,
|
|
1613
|
+
return e.h === 0 && (q(t, r, bn(e.g)), !0);
|
|
1614
1614
|
}), ya, ra), at = J((function(e, t, r) {
|
|
1615
|
-
return e.h === 0 && (q(t, r, (e =
|
|
1615
|
+
return e.h === 0 && (q(t, r, (e = bn(e.g)) === !1 ? void 0 : e), !0);
|
|
1616
1616
|
}), ya, ra), Y = Xt((function(e, t, r) {
|
|
1617
|
-
return e.h === 2 && (e =
|
|
1617
|
+
return e.h === 2 && (e = vn(e), zt(t, 0 | t[p], r).push(e), !0);
|
|
1618
1618
|
}), (function(e, t, r) {
|
|
1619
1619
|
if ((t = qt(X, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1620
1620
|
var s = e, n = r, i = t[o];
|
|
1621
1621
|
i != null && Qr(s, n, _o(i));
|
|
1622
1622
|
}
|
|
1623
1623
|
}), kn), Ve = J((function(e, t, r) {
|
|
1624
|
-
return e.h === 2 && (q(t, r, (e =
|
|
1625
|
-
}),
|
|
1626
|
-
return e.h === 2 && (q(t, r,
|
|
1627
|
-
}),
|
|
1624
|
+
return e.h === 2 && (q(t, r, (e = vn(e)) === "" ? void 0 : e), !0);
|
|
1625
|
+
}), ba, kn), S = J((function(e, t, r) {
|
|
1626
|
+
return e.h === 2 && (q(t, r, vn(e)), !0);
|
|
1627
|
+
}), ba, kn), z = (function(e, t, r = En) {
|
|
1628
1628
|
return new Kt(e, t, r);
|
|
1629
1629
|
})((function(e, t, r, s, n) {
|
|
1630
1630
|
return e.h === 2 && (s = st(void 0, s), zt(t, 0 | t[p], r).push(s), wr(e, s, n), !0);
|
|
1631
1631
|
}), (function(e, t, r, s, n) {
|
|
1632
1632
|
if (Array.isArray(t)) {
|
|
1633
|
-
for (let i = 0; i < t.length; i++)
|
|
1633
|
+
for (let i = 0; i < t.length; i++) va(e, t[i], r, s, n);
|
|
1634
1634
|
1 & (e = 0 | t[p]) || V(t, 1 | e);
|
|
1635
1635
|
}
|
|
1636
1636
|
})), O = Zr((function(e, t, r, s, n, i) {
|
|
1637
1637
|
if (e.h !== 2) return !1;
|
|
1638
1638
|
let o = 0 | t[p];
|
|
1639
1639
|
return zo(t, o, i, r, Dt(o)), wr(e, t = mn(t, s, r), n), !0;
|
|
1640
|
-
}),
|
|
1640
|
+
}), va), Aa = J((function(e, t, r) {
|
|
1641
1641
|
return e.h === 2 && (q(t, r, ta(e)), !0);
|
|
1642
|
-
}), _a, ia),
|
|
1642
|
+
}), _a, ia), Vh = Xt((function(e, t, r) {
|
|
1643
1643
|
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ue, t) : t.push(Ue(e.g)), !0);
|
|
1644
1644
|
}), (function(e, t, r) {
|
|
1645
1645
|
if ((t = qt(Oo, t)) != null) for (let o = 0; o < t.length; o++) {
|
|
1646
1646
|
var s = e, n = r, i = t[o];
|
|
1647
1647
|
i != null && (ye(s, n, 0), Wt(s.g, i));
|
|
1648
1648
|
}
|
|
1649
|
-
}), sa),
|
|
1649
|
+
}), sa), Gh = J((function(e, t, r) {
|
|
1650
1650
|
return e.h === 0 && (q(t, r, (e = Ue(e.g)) === 0 ? void 0 : e), !0);
|
|
1651
1651
|
}), (function(e, t, r) {
|
|
1652
1652
|
(t = Oo(t)) != null && t != null && (ye(e, r, 0), Wt(e.g, t));
|
|
@@ -1655,17 +1655,17 @@ var U = J((function(e, t, r) {
|
|
|
1655
1655
|
}), (function(e, t, r) {
|
|
1656
1656
|
(t = jt(t)) != null && (t = parseInt(t, 10), ye(e, r, 0), Yr(e.g, t));
|
|
1657
1657
|
}), oa);
|
|
1658
|
-
class
|
|
1658
|
+
class Hh {
|
|
1659
1659
|
constructor(t, r) {
|
|
1660
1660
|
var s = de;
|
|
1661
|
-
this.g = t, this.h = r, this.m = A, this.j =
|
|
1661
|
+
this.g = t, this.h = r, this.m = A, this.j = b, this.defaultValue = void 0, this.l = s.Oa != null ? xo : void 0;
|
|
1662
1662
|
}
|
|
1663
1663
|
register() {
|
|
1664
1664
|
jr(this);
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
return new
|
|
1667
|
+
function xe(e, t) {
|
|
1668
|
+
return new Hh(e, t);
|
|
1669
1669
|
}
|
|
1670
1670
|
function qe(e, t) {
|
|
1671
1671
|
return (r, s) => {
|
|
@@ -1701,7 +1701,7 @@ function ns(e) {
|
|
|
1701
1701
|
}();
|
|
1702
1702
|
}
|
|
1703
1703
|
}();
|
|
1704
|
-
fa(this.v, t, mt(es, rs, ss, e)),
|
|
1704
|
+
fa(this.v, t, mt(es, rs, ss, e)), Ft(t, t.g.end());
|
|
1705
1705
|
const r = new Uint8Array(t.h), s = t.l, n = s.length;
|
|
1706
1706
|
let i = 0;
|
|
1707
1707
|
for (let o = 0; o < n; o++) {
|
|
@@ -1727,10 +1727,10 @@ var _i = class extends m {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
_a(e, t, r);
|
|
1729
1729
|
}), ia)];
|
|
1730
|
-
let
|
|
1730
|
+
let bs, Ai = globalThis.trustedTypes;
|
|
1731
1731
|
function Ei(e) {
|
|
1732
1732
|
var t;
|
|
1733
|
-
return
|
|
1733
|
+
return bs === void 0 && (bs = (function() {
|
|
1734
1734
|
let r = null;
|
|
1735
1735
|
if (!Ai) return r;
|
|
1736
1736
|
try {
|
|
@@ -1739,7 +1739,7 @@ function Ei(e) {
|
|
|
1739
1739
|
} catch {
|
|
1740
1740
|
}
|
|
1741
1741
|
return r;
|
|
1742
|
-
})()), e = (t =
|
|
1742
|
+
})()), e = (t = bs) ? t.createScriptURL(e) : e, new class {
|
|
1743
1743
|
constructor(r) {
|
|
1744
1744
|
this.g = r;
|
|
1745
1745
|
}
|
|
@@ -1748,18 +1748,18 @@ function Ei(e) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
}(e);
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function zh(e, ...t) {
|
|
1752
1752
|
if (t.length === 0) return Ei(e[0]);
|
|
1753
1753
|
let r = e[0];
|
|
1754
1754
|
for (let s = 0; s < t.length; s++) r += encodeURIComponent(t[s]) + e[s + 1];
|
|
1755
1755
|
return Ei(r);
|
|
1756
1756
|
}
|
|
1757
|
-
var Ea = [0, K, ue, R, -1, Ar, ue, -1, R],
|
|
1757
|
+
var Ea = [0, K, ue, R, -1, Ar, ue, -1, R], Wh = class extends m {
|
|
1758
1758
|
constructor(e) {
|
|
1759
1759
|
super(e);
|
|
1760
1760
|
}
|
|
1761
1761
|
}, ka = [0, R, S, R, ue, -1, Xt((function(e, t, r) {
|
|
1762
|
-
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e,
|
|
1762
|
+
return (e.h === 0 || e.h === 2) && (t = zt(t, 0 | t[p], r), e.h == 2 ? Xr(e, Ph, t) : t.push(We(e.g)), !0);
|
|
1763
1763
|
}), (function(e, t, r) {
|
|
1764
1764
|
if ((t = qt(jt, t)) != null && t.length) {
|
|
1765
1765
|
r = wn(e, r);
|
|
@@ -1788,13 +1788,13 @@ var ee = class extends m {
|
|
|
1788
1788
|
super(e, 500);
|
|
1789
1789
|
}
|
|
1790
1790
|
o(e) {
|
|
1791
|
-
return
|
|
1791
|
+
return b(this, 0, 7, e);
|
|
1792
1792
|
}
|
|
1793
1793
|
}, sr = [-1, {}], Ti = [0, S, 1, sr], Ci = [0, S, Y, sr];
|
|
1794
|
-
function
|
|
1794
|
+
function be(e, t) {
|
|
1795
1795
|
gn(e, 1, ee, t);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function x(e, t) {
|
|
1798
1798
|
qr(e, 10, t);
|
|
1799
1799
|
}
|
|
1800
1800
|
function E(e, t) {
|
|
@@ -1805,11 +1805,11 @@ var fe = class extends m {
|
|
|
1805
1805
|
super(e, 500);
|
|
1806
1806
|
}
|
|
1807
1807
|
o(e) {
|
|
1808
|
-
return
|
|
1808
|
+
return b(this, 0, 1001, e);
|
|
1809
1809
|
}
|
|
1810
|
-
}, Ma = [-500, z, [-500, Ve, -1, Y, -3, [-2, j, R], z, wi, wt, -1, Ti, Ci, z, [0, Ve, at], Ve, Si, wt, Y, 987, Y], 4, z, [-500, S, -1, [-1, {}], 998, S], z, [-500, S, Y, -1, [-2, {}, R], 997, Y, -1], wt, z, [-500, S, Y, sr, 998, Y], Y, wt, Ti, Ci, z, [0, Ve, -1, sr], Y, -2, Si, Ve, -1, at, [0, at,
|
|
1810
|
+
}, Ma = [-500, z, [-500, Ve, -1, Y, -3, [-2, j, R], z, wi, wt, -1, Ti, Ci, z, [0, Ve, at], Ve, Si, wt, Y, 987, Y], 4, z, [-500, S, -1, [-1, {}], 998, S], z, [-500, S, Y, -1, [-2, {}, R], 997, Y, -1], wt, z, [-500, S, Y, sr, 998, Y], Y, wt, Ti, Ci, z, [0, Ve, -1, sr], Y, -2, Si, Ve, -1, at, [0, at, Gh], 978, sr, z, wi];
|
|
1811
1811
|
fe.prototype.g = ns(Ma);
|
|
1812
|
-
var
|
|
1812
|
+
var Kh = qe(fe, Ma), qh = class extends m {
|
|
1813
1813
|
constructor(e) {
|
|
1814
1814
|
super(e);
|
|
1815
1815
|
}
|
|
@@ -1818,27 +1818,27 @@ var zh = qe(fe, Ma), Wh = class extends m {
|
|
|
1818
1818
|
super(e);
|
|
1819
1819
|
}
|
|
1820
1820
|
g() {
|
|
1821
|
-
return Re(this,
|
|
1821
|
+
return Re(this, qh, 1);
|
|
1822
1822
|
}
|
|
1823
|
-
},
|
|
1823
|
+
}, xa = [0, z, [0, K, U, S, -1]], is = qe(La, xa), Xh = class extends m {
|
|
1824
1824
|
constructor(e) {
|
|
1825
1825
|
super(e);
|
|
1826
1826
|
}
|
|
1827
|
-
},
|
|
1827
|
+
}, Yh = class extends m {
|
|
1828
1828
|
constructor(e) {
|
|
1829
1829
|
super(e);
|
|
1830
1830
|
}
|
|
1831
|
-
},
|
|
1831
|
+
}, vs = class extends m {
|
|
1832
1832
|
constructor(e) {
|
|
1833
1833
|
super(e);
|
|
1834
1834
|
}
|
|
1835
1835
|
l() {
|
|
1836
|
-
return A(this,
|
|
1836
|
+
return A(this, Xh, 2);
|
|
1837
1837
|
}
|
|
1838
1838
|
g() {
|
|
1839
|
-
return Re(this,
|
|
1839
|
+
return Re(this, Yh, 5);
|
|
1840
1840
|
}
|
|
1841
|
-
},
|
|
1841
|
+
}, Fa = qe(class extends m {
|
|
1842
1842
|
constructor(e) {
|
|
1843
1843
|
super(e);
|
|
1844
1844
|
}
|
|
@@ -1858,29 +1858,29 @@ var zh = qe(fe, Ma), Wh = class extends m {
|
|
|
1858
1858
|
constructor(e) {
|
|
1859
1859
|
super(e);
|
|
1860
1860
|
}
|
|
1861
|
-
}, [0, z, [0, U, -4]]),
|
|
1861
|
+
}, [0, z, [0, U, -4]]), Qh = class extends m {
|
|
1862
1862
|
constructor(e) {
|
|
1863
1863
|
super(e);
|
|
1864
1864
|
}
|
|
1865
|
-
},
|
|
1865
|
+
}, Jh = [0, K, -1, Mn, ue], Ia = class extends m {
|
|
1866
1866
|
constructor(e) {
|
|
1867
1867
|
super(e);
|
|
1868
1868
|
}
|
|
1869
1869
|
};
|
|
1870
1870
|
Ia.prototype.g = ns([0, U, -4, Ke]);
|
|
1871
|
-
var
|
|
1871
|
+
var Zh = class extends m {
|
|
1872
1872
|
constructor(e) {
|
|
1873
1873
|
super(e);
|
|
1874
1874
|
}
|
|
1875
|
-
},
|
|
1875
|
+
}, eu = qe(class extends m {
|
|
1876
1876
|
constructor(e) {
|
|
1877
1877
|
super(e);
|
|
1878
1878
|
}
|
|
1879
|
-
}, [0, z, [0, 1, K, S,
|
|
1879
|
+
}, [0, z, [0, 1, K, S, xa], Ke]), Pi = class extends m {
|
|
1880
1880
|
constructor(e) {
|
|
1881
1881
|
super(e);
|
|
1882
1882
|
}
|
|
1883
|
-
},
|
|
1883
|
+
}, tu = class extends m {
|
|
1884
1884
|
constructor(e) {
|
|
1885
1885
|
super(e);
|
|
1886
1886
|
}
|
|
@@ -1888,11 +1888,11 @@ var Qh = class extends m {
|
|
|
1888
1888
|
const e = C(this, 1, void 0, void 0, Go);
|
|
1889
1889
|
return e ?? ht();
|
|
1890
1890
|
}
|
|
1891
|
-
},
|
|
1891
|
+
}, ru = class extends m {
|
|
1892
1892
|
constructor(e) {
|
|
1893
1893
|
super(e);
|
|
1894
1894
|
}
|
|
1895
|
-
}, Ra = [1, 2],
|
|
1895
|
+
}, Ra = [1, 2], su = qe(class extends m {
|
|
1896
1896
|
constructor(e) {
|
|
1897
1897
|
super(e);
|
|
1898
1898
|
}
|
|
@@ -1904,7 +1904,7 @@ var Qh = class extends m {
|
|
|
1904
1904
|
constructor(e) {
|
|
1905
1905
|
super(e);
|
|
1906
1906
|
}
|
|
1907
|
-
},
|
|
1907
|
+
}, nu = [0, R, -1], Li = class extends m {
|
|
1908
1908
|
constructor(e) {
|
|
1909
1909
|
super(e);
|
|
1910
1910
|
}
|
|
@@ -1925,17 +1925,17 @@ var Qh = class extends m {
|
|
|
1925
1925
|
g() {
|
|
1926
1926
|
return $o(C(this, 2)) ?? !1;
|
|
1927
1927
|
}
|
|
1928
|
-
}, Ua = [0, Aa, S, [0, K, Ke, -1], [0,
|
|
1928
|
+
}, Ua = [0, Aa, S, [0, K, Ke, -1], [0, jh, Ke]], B = [0, Ua, R, [0, Lr, O, Pa, O, ka, O, Ea, O, Ca, O, Ta, O, Sa], ue], os = class extends m {
|
|
1929
1929
|
constructor(e) {
|
|
1930
1930
|
super(e);
|
|
1931
1931
|
}
|
|
1932
|
-
},
|
|
1933
|
-
j[502141897] =
|
|
1934
|
-
var
|
|
1932
|
+
}, xn = [0, B, U, -1, K], iu = xe(502141897, os);
|
|
1933
|
+
j[502141897] = xn;
|
|
1934
|
+
var ou = qe(class extends m {
|
|
1935
1935
|
constructor(e) {
|
|
1936
1936
|
super(e);
|
|
1937
1937
|
}
|
|
1938
|
-
}, [0, [0, ue, -1,
|
|
1938
|
+
}, [0, [0, ue, -1, Bh, Vh], Jh]), Ba = class extends m {
|
|
1939
1939
|
constructor(e) {
|
|
1940
1940
|
super(e);
|
|
1941
1941
|
}
|
|
@@ -1943,9 +1943,9 @@ var nu = qe(class extends m {
|
|
|
1943
1943
|
constructor(e) {
|
|
1944
1944
|
super(e);
|
|
1945
1945
|
}
|
|
1946
|
-
}, Rs = [0, B, U, [0, B], R],
|
|
1947
|
-
j[508968150] = [0, B,
|
|
1948
|
-
var
|
|
1946
|
+
}, Rs = [0, B, U, [0, B], R], au = xe(508968150, Da);
|
|
1947
|
+
j[508968150] = [0, B, xn, Rs, U, [0, [0, Ua]]], j[508968149] = Rs;
|
|
1948
|
+
var vt = class extends m {
|
|
1949
1949
|
constructor(e) {
|
|
1950
1950
|
super(e);
|
|
1951
1951
|
}
|
|
@@ -1957,7 +1957,7 @@ var bt = class extends m {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
}, ja = [0, B, Na];
|
|
1959
1959
|
j[478825465] = ja;
|
|
1960
|
-
var
|
|
1960
|
+
var cu = class extends m {
|
|
1961
1961
|
constructor(e) {
|
|
1962
1962
|
super(e);
|
|
1963
1963
|
}
|
|
@@ -1965,7 +1965,7 @@ var ou = class extends m {
|
|
|
1965
1965
|
constructor(e) {
|
|
1966
1966
|
super(e);
|
|
1967
1967
|
}
|
|
1968
|
-
},
|
|
1968
|
+
}, Fn = class extends m {
|
|
1969
1969
|
constructor(e) {
|
|
1970
1970
|
super(e);
|
|
1971
1971
|
}
|
|
@@ -1977,11 +1977,11 @@ var ou = class extends m {
|
|
|
1977
1977
|
constructor(e) {
|
|
1978
1978
|
super(e);
|
|
1979
1979
|
}
|
|
1980
|
-
},
|
|
1981
|
-
j[479097054] = [0, B, za,
|
|
1982
|
-
var
|
|
1980
|
+
}, xi = [0, B, [0, B], ja, -1], Ha = [0, B, U, K], On = [0, B, U], za = [0, B, Ha, On, U], hu = xe(479097054, Ga);
|
|
1981
|
+
j[479097054] = [0, B, za, xi], j[463370452] = xi, j[464864288] = Ha;
|
|
1982
|
+
var uu = xe(462713202, $n);
|
|
1983
1983
|
j[462713202] = za, j[474472470] = On;
|
|
1984
|
-
var
|
|
1984
|
+
var lu = class extends m {
|
|
1985
1985
|
constructor(e) {
|
|
1986
1986
|
super(e);
|
|
1987
1987
|
}
|
|
@@ -1998,28 +1998,28 @@ var hu = class extends m {
|
|
|
1998
1998
|
super(e);
|
|
1999
1999
|
}
|
|
2000
2000
|
}, In = [0, B, U, -1, K], Ns = [0, B, U, R];
|
|
2001
|
-
qa.prototype.g = ns([0, B, On, [0, B],
|
|
2001
|
+
qa.prototype.g = ns([0, B, On, [0, B], xn, Rs, In, Ns]);
|
|
2002
2002
|
var Xa = class extends m {
|
|
2003
2003
|
constructor(e) {
|
|
2004
2004
|
super(e);
|
|
2005
2005
|
}
|
|
2006
|
-
},
|
|
2006
|
+
}, du = xe(456383383, Xa);
|
|
2007
2007
|
j[456383383] = [0, B, Na];
|
|
2008
2008
|
var Ya = class extends m {
|
|
2009
2009
|
constructor(e) {
|
|
2010
2010
|
super(e);
|
|
2011
2011
|
}
|
|
2012
|
-
},
|
|
2013
|
-
j[476348187] = [0, B,
|
|
2012
|
+
}, fu = xe(476348187, Ya);
|
|
2013
|
+
j[476348187] = [0, B, nu];
|
|
2014
2014
|
var Qa = class extends m {
|
|
2015
2015
|
constructor(e) {
|
|
2016
2016
|
super(e);
|
|
2017
2017
|
}
|
|
2018
|
-
},
|
|
2018
|
+
}, Fi = class extends m {
|
|
2019
2019
|
constructor(e) {
|
|
2020
2020
|
super(e);
|
|
2021
2021
|
}
|
|
2022
|
-
}, Ja = [0, ue, -1],
|
|
2022
|
+
}, Ja = [0, ue, -1], pu = xe(458105876, class extends m {
|
|
2023
2023
|
constructor(e) {
|
|
2024
2024
|
super(e);
|
|
2025
2025
|
}
|
|
@@ -2028,7 +2028,7 @@ var Qa = class extends m {
|
|
|
2028
2028
|
var t = this.v;
|
|
2029
2029
|
const r = 0 | t[p];
|
|
2030
2030
|
return e = ce(this, r), t = (function(s, n, i, o) {
|
|
2031
|
-
var a =
|
|
2031
|
+
var a = Fi;
|
|
2032
2032
|
!o && Gt(s) && (i = 0 | (n = s.v)[p]);
|
|
2033
2033
|
var c = Ie(n, 2);
|
|
2034
2034
|
if (s = !1, c == null) {
|
|
@@ -2042,22 +2042,22 @@ var Qa = class extends m {
|
|
|
2042
2042
|
if (!c.length) return di();
|
|
2043
2043
|
s || (s = !0, yr(c));
|
|
2044
2044
|
} else s && (s = !1, hr(c), c = Ho(c));
|
|
2045
|
-
return !s && 32 & i && gr(c, 32), i = D(n, i, 2, o = new Oe(c, a,
|
|
2046
|
-
})(this, t, r, e), !e &&
|
|
2045
|
+
return !s && 32 & i && gr(c, 32), i = D(n, i, 2, o = new Oe(c, a, ph, void 0)), s || pt(n, i), o;
|
|
2046
|
+
})(this, t, r, e), !e && Fi && (t.ra = !0), t;
|
|
2047
2047
|
}
|
|
2048
2048
|
});
|
|
2049
|
-
j[458105876] = [0, Ja,
|
|
2049
|
+
j[458105876] = [0, Ja, Uh, [!0, Ke, [0, S, -1, Y]], [0, Ar, R, ue]];
|
|
2050
2050
|
var Rn = class extends m {
|
|
2051
2051
|
constructor(e) {
|
|
2052
2052
|
super(e);
|
|
2053
2053
|
}
|
|
2054
|
-
}, Za =
|
|
2054
|
+
}, Za = xe(458105758, Rn);
|
|
2055
2055
|
j[458105758] = [0, B, S, Ja];
|
|
2056
2056
|
var _s = class extends m {
|
|
2057
2057
|
constructor(e) {
|
|
2058
2058
|
super(e);
|
|
2059
2059
|
}
|
|
2060
|
-
}, $i = [0,
|
|
2060
|
+
}, $i = [0, Dh, -1, at], mu = class extends m {
|
|
2061
2061
|
constructor(e) {
|
|
2062
2062
|
super(e);
|
|
2063
2063
|
}
|
|
@@ -2071,13 +2071,13 @@ var tc = class extends m {
|
|
|
2071
2071
|
constructor(e) {
|
|
2072
2072
|
super(e);
|
|
2073
2073
|
}
|
|
2074
|
-
},
|
|
2074
|
+
}, gu = xe(443442058, tc);
|
|
2075
2075
|
j[443442058] = [0, B, S, K, U, Y, -1, R, U], j[514774813] = In;
|
|
2076
2076
|
var rc = class extends m {
|
|
2077
2077
|
constructor(e) {
|
|
2078
2078
|
super(e);
|
|
2079
2079
|
}
|
|
2080
|
-
},
|
|
2080
|
+
}, yu = xe(516587230, rc);
|
|
2081
2081
|
function Bs(e, t) {
|
|
2082
2082
|
return t = t ? t.clone() : new Ln(), e.displayNamesLocale !== void 0 ? k(t, 1, _r(e.displayNamesLocale)) : e.displayNamesLocale === void 0 && k(t, 1), e.maxResults !== void 0 ? Ne(t, 2, e.maxResults) : "maxResults" in e && k(t, 2), e.scoreThreshold !== void 0 ? y(t, 3, e.scoreThreshold) : "scoreThreshold" in e && k(t, 3), e.categoryAllowlist !== void 0 ? Or(t, 4, e.categoryAllowlist) : "categoryAllowlist" in e && k(t, 4), e.categoryDenylist !== void 0 ? Or(t, 5, e.categoryDenylist) : "categoryDenylist" in e && k(t, 5), t;
|
|
2083
2083
|
}
|
|
@@ -2088,21 +2088,21 @@ function sc(e) {
|
|
|
2088
2088
|
function Nn(e, t = -1, r = "") {
|
|
2089
2089
|
return { categories: e.map(((s) => ({ index: ge(s, 1) ?? 0 ?? -1, score: I(s, 2) ?? 0, categoryName: X(C(s, 3)) ?? "" ?? "", displayName: X(C(s, 4)) ?? "" ?? "" }))), headIndex: t, headName: r };
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2092
|
-
const t = { classifications: Re(e,
|
|
2091
|
+
function bu(e) {
|
|
2092
|
+
const t = { classifications: Re(e, Zh, 1).map(((r) => {
|
|
2093
2093
|
var s;
|
|
2094
2094
|
return Nn(((s = A(r, La, 4)) == null ? void 0 : s.g()) ?? [], ge(r, 2) ?? 0, X(C(r, 3)) ?? "");
|
|
2095
2095
|
})) };
|
|
2096
2096
|
return (function(r) {
|
|
2097
|
-
return
|
|
2097
|
+
return fh(Qs ? C(r, 2, void 0, void 0, Fr) : C(r, 2));
|
|
2098
2098
|
})(e) != null && (t.timestampMs = sc(Xo(e))), t;
|
|
2099
2099
|
}
|
|
2100
2100
|
function nc(e) {
|
|
2101
2101
|
var o, a;
|
|
2102
|
-
var t = tt(e, 3,
|
|
2102
|
+
var t = tt(e, 3, Te, et()), r = tt(e, 2, jt, et()), s = tt(e, 1, X, et()), n = tt(e, 9, X, et());
|
|
2103
2103
|
const i = { categories: [], keypoints: [] };
|
|
2104
2104
|
for (let c = 0; c < t.length; c++) i.categories.push({ score: t[c], index: r[c] ?? -1, categoryName: s[c] ?? "", displayName: n[c] ?? "" });
|
|
2105
|
-
if ((t = (o = A(e,
|
|
2105
|
+
if ((t = (o = A(e, vs, 4)) == null ? void 0 : o.l()) && (i.boundingBox = { originX: ge(t, 1, Be) ?? 0, originY: ge(t, 2, Be) ?? 0, width: ge(t, 3, Be) ?? 0, height: ge(t, 4, Be) ?? 0, angle: 0 }), (a = A(e, vs, 4)) == null ? void 0 : a.g().length) for (const c of A(e, vs, 4).g()) i.keypoints.push({ x: C(c, 1, void 0, Be, Te) ?? 0, y: C(c, 2, void 0, Be, Te) ?? 0, score: C(c, 4, void 0, Be, Te) ?? 0, label: X(C(c, 3, void 0, Be)) ?? "" });
|
|
2106
2106
|
return i;
|
|
2107
2107
|
}
|
|
2108
2108
|
function as(e) {
|
|
@@ -2127,16 +2127,16 @@ function Ii(e, t) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
let Tr;
|
|
2129
2129
|
j[516587230] = [0, B, In, Ns, U], j[518928384] = Ns;
|
|
2130
|
-
const
|
|
2130
|
+
const vu = 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]);
|
|
2131
2131
|
async function ic() {
|
|
2132
2132
|
if (Tr === void 0) try {
|
|
2133
|
-
await WebAssembly.instantiate(
|
|
2133
|
+
await WebAssembly.instantiate(vu), Tr = !0;
|
|
2134
2134
|
} catch {
|
|
2135
2135
|
Tr = !1;
|
|
2136
2136
|
}
|
|
2137
2137
|
return Tr;
|
|
2138
2138
|
}
|
|
2139
|
-
async function Jt(e, t =
|
|
2139
|
+
async function Jt(e, t = zh``) {
|
|
2140
2140
|
const r = await ic() ? "wasm_internal" : "wasm_nosimd_internal";
|
|
2141
2141
|
return { wasmLoaderPath: `${t}/${e}_${r}.js`, wasmBinaryPath: `${t}/${e}_${r}.wasm` };
|
|
2142
2142
|
}
|
|
@@ -2209,7 +2209,7 @@ Ze.forVisionTasks = function(e) {
|
|
|
2209
2209
|
}, Ze.isSimdSupported = function() {
|
|
2210
2210
|
return ic();
|
|
2211
2211
|
};
|
|
2212
|
-
async function
|
|
2212
|
+
async function _u(e, t, r, s) {
|
|
2213
2213
|
return e = await (async (n, i, o, a, c) => {
|
|
2214
2214
|
if (i && await Ri(i), !self.ModuleFactory || o && (await Ri(o), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
2215
2215
|
return self.Module && c && ((i = self.Module).locateFile = c.locateFile, c.mainScriptUrlOrBlob && (i.mainScriptUrlOrBlob = c.mainScriptUrlOrBlob)), c = await self.ModuleFactory(self.Module || c), self.ModuleFactory = self.Module = void 0, new n(c, a);
|
|
@@ -2217,7 +2217,7 @@ async function vu(e, t, r, s) {
|
|
|
2217
2217
|
}
|
|
2218
2218
|
function ws(e, t) {
|
|
2219
2219
|
const r = A(e.baseOptions, Ur, 1) || new Ur();
|
|
2220
|
-
typeof t == "string" ? (k(r, 2, _r(t)), k(r, 1)) : t instanceof Uint8Array && (k(r, 1, en(t, !1)), k(r, 2)),
|
|
2220
|
+
typeof t == "string" ? (k(r, 2, _r(t)), k(r, 1)) : t instanceof Uint8Array && (k(r, 1, en(t, !1)), k(r, 2)), b(e.baseOptions, 0, 1, r);
|
|
2221
2221
|
}
|
|
2222
2222
|
function Bi(e) {
|
|
2223
2223
|
try {
|
|
@@ -2232,7 +2232,7 @@ function d(e, t) {
|
|
|
2232
2232
|
e.C = Math.max(e.C, t);
|
|
2233
2233
|
}
|
|
2234
2234
|
function cs(e, t) {
|
|
2235
|
-
e.B = new ee(), he(e.B, 2, "PassThroughCalculator"), P(e.B, "free_memory"), _(e.B, "free_memory_unused_out"),
|
|
2235
|
+
e.B = new ee(), he(e.B, 2, "PassThroughCalculator"), P(e.B, "free_memory"), _(e.B, "free_memory_unused_out"), x(t, "free_memory"), be(t, e.B);
|
|
2236
2236
|
}
|
|
2237
2237
|
function $t(e, t) {
|
|
2238
2238
|
P(e.B, t), _(e.B, t + "_unused_out");
|
|
@@ -2253,10 +2253,10 @@ var Ds = class {
|
|
|
2253
2253
|
if ((function(u, h) {
|
|
2254
2254
|
let l = A(u.baseOptions, Li, 3);
|
|
2255
2255
|
if (!l) {
|
|
2256
|
-
var f = l = new Li(),
|
|
2257
|
-
rr(f, 4, Lr,
|
|
2256
|
+
var f = l = new Li(), v = new ki();
|
|
2257
|
+
rr(f, 4, Lr, v);
|
|
2258
2258
|
}
|
|
2259
|
-
"delegate" in h && (h.delegate === "GPU" ? (h = l, f = new
|
|
2259
|
+
"delegate" in h && (h.delegate === "GPU" ? (h = l, f = new Wh(), rr(h, 2, Lr, f)) : (h = l, f = new ki(), rr(h, 4, Lr, f))), b(u.baseOptions, 0, 3, l);
|
|
2260
2260
|
})(this, c), c.modelAssetPath) return fetch(c.modelAssetPath.toString()).then(((u) => {
|
|
2261
2261
|
if (u.ok) return u.arrayBuffer();
|
|
2262
2262
|
throw Error(`Failed to fetch model: ${c.modelAssetPath} (${u.status})`);
|
|
@@ -2271,9 +2271,9 @@ var Ds = class {
|
|
|
2271
2271
|
else if (c.modelAssetBuffer) return (async function(u) {
|
|
2272
2272
|
const h = [];
|
|
2273
2273
|
for (var l = 0; ; ) {
|
|
2274
|
-
const { done: f, value:
|
|
2274
|
+
const { done: f, value: v } = await u.read();
|
|
2275
2275
|
if (f) break;
|
|
2276
|
-
h.push(
|
|
2276
|
+
h.push(v), l += v.length;
|
|
2277
2277
|
}
|
|
2278
2278
|
if (h.length === 0) return new Uint8Array(0);
|
|
2279
2279
|
if (h.length === 1) return h[0];
|
|
@@ -2291,7 +2291,7 @@ var Ds = class {
|
|
|
2291
2291
|
ca() {
|
|
2292
2292
|
let e;
|
|
2293
2293
|
if (this.g.ca(((t) => {
|
|
2294
|
-
e =
|
|
2294
|
+
e = Kh(t);
|
|
2295
2295
|
})), !e) throw Error("Failed to retrieve CalculatorGraphConfig");
|
|
2296
2296
|
return e;
|
|
2297
2297
|
}
|
|
@@ -2312,7 +2312,7 @@ function He(e, t) {
|
|
|
2312
2312
|
return e;
|
|
2313
2313
|
}
|
|
2314
2314
|
Ds.prototype.close = Ds.prototype.close;
|
|
2315
|
-
class
|
|
2315
|
+
class wu {
|
|
2316
2316
|
constructor(t, r, s, n) {
|
|
2317
2317
|
this.g = t, this.h = r, this.m = s, this.l = n;
|
|
2318
2318
|
}
|
|
@@ -2334,14 +2334,14 @@ function ji(e, t) {
|
|
|
2334
2334
|
const n = He(r.createBuffer(), "Failed to create buffer");
|
|
2335
2335
|
r.bindBuffer(r.ARRAY_BUFFER, n), r.enableVertexAttribArray(e.O), r.vertexAttribPointer(e.O, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), r.STATIC_DRAW);
|
|
2336
2336
|
const i = He(r.createBuffer(), "Failed to create buffer");
|
|
2337
|
-
return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new
|
|
2337
|
+
return r.bindBuffer(r.ARRAY_BUFFER, i), r.enableVertexAttribArray(e.L), r.vertexAttribPointer(e.L, 2, r.FLOAT, !1, 0, 0), r.bufferData(r.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r.STATIC_DRAW), r.bindBuffer(r.ARRAY_BUFFER, null), r.bindVertexArray(null), new wu(r, s, n, i);
|
|
2338
2338
|
}
|
|
2339
2339
|
function Un(e, t) {
|
|
2340
2340
|
if (e.g) {
|
|
2341
2341
|
if (t !== e.g) throw Error("Cannot change GL context once initialized");
|
|
2342
2342
|
} else e.g = t;
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function Au(e, t, r, s) {
|
|
2345
2345
|
return Un(e, t), e.h || (e.m(), e.D()), r ? (e.u || (e.u = ji(e, !0)), r = e.u) : (e.A || (e.A = ji(e, !1)), r = e.A), t.useProgram(e.h), r.bind(), e.l(), e = s(), r.g.bindVertexArray(null), e;
|
|
2346
2346
|
}
|
|
2347
2347
|
function cc(e, t, r) {
|
|
@@ -2350,7 +2350,7 @@ function cc(e, t, r) {
|
|
|
2350
2350
|
function hc(e, t, r) {
|
|
2351
2351
|
Un(e, t), e.B || (e.B = He(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, r, 0);
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Eu(e) {
|
|
2354
2354
|
var t;
|
|
2355
2355
|
(t = e.g) == null || t.bindFramebuffer(e.g.FRAMEBUFFER, null);
|
|
2356
2356
|
}
|
|
@@ -2487,9 +2487,9 @@ var Cr, H = class {
|
|
|
2487
2487
|
const s = Ot(this), n = Bn(this);
|
|
2488
2488
|
s.activeTexture(s.TEXTURE1), r = cc(n, s, this.m ? s.LINEAR : s.NEAREST), s.bindTexture(s.TEXTURE_2D, r);
|
|
2489
2489
|
const i = dc(this);
|
|
2490
|
-
s.texImage2D(s.TEXTURE_2D, 0, i, this.width, this.height, 0, s.RED, s.FLOAT, null), s.bindTexture(s.TEXTURE_2D, null), hc(n, s, r),
|
|
2490
|
+
s.texImage2D(s.TEXTURE_2D, 0, i, this.width, this.height, 0, s.RED, s.FLOAT, null), s.bindTexture(s.TEXTURE_2D, null), hc(n, s, r), Au(n, s, !1, (() => {
|
|
2491
2491
|
fc(this), s.clearColor(0, 0, 0, 0), s.clear(s.COLOR_BUFFER_BIT), s.drawArrays(s.TRIANGLE_FAN, 0, 4), Vs(this);
|
|
2492
|
-
})),
|
|
2492
|
+
})), Eu(n), Vs(this);
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
2495
|
e.push(r);
|
|
@@ -2505,7 +2505,7 @@ var Vi = 250;
|
|
|
2505
2505
|
function _e(...e) {
|
|
2506
2506
|
return e.map((([t, r]) => ({ start: t, end: r })));
|
|
2507
2507
|
}
|
|
2508
|
-
const
|
|
2508
|
+
const ku = /* @__PURE__ */ (function(e) {
|
|
2509
2509
|
return class extends e {
|
|
2510
2510
|
Ja() {
|
|
2511
2511
|
this.i._registerModelResourcesGraphService();
|
|
@@ -2868,11 +2868,11 @@ const Au = /* @__PURE__ */ (function(e) {
|
|
|
2868
2868
|
}));
|
|
2869
2869
|
}
|
|
2870
2870
|
}));
|
|
2871
|
-
var Gi, we = class extends
|
|
2871
|
+
var Gi, we = class extends ku {
|
|
2872
2872
|
};
|
|
2873
2873
|
async function w(e, t, r) {
|
|
2874
2874
|
return (async function(s, n, i, o) {
|
|
2875
|
-
return
|
|
2875
|
+
return _u(s, n, i, o);
|
|
2876
2876
|
})(e, r.canvas ?? (oc() ? void 0 : document.createElement("canvas")), t, r);
|
|
2877
2877
|
}
|
|
2878
2878
|
function pc(e, t, r, s) {
|
|
@@ -2927,13 +2927,13 @@ var le = class extends Ds {
|
|
|
2927
2927
|
le.prototype.close = le.prototype.close;
|
|
2928
2928
|
var ie = class extends le {
|
|
2929
2929
|
constructor(e, t) {
|
|
2930
|
-
super(new we(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] },
|
|
2930
|
+
super(new we(e, t), "image_in", "norm_rect_in", !1), this.j = { detections: [] }, b(e = this.h = new os(), 0, 1, t = new $()), y(this.h, 2, 0.5), y(this.h, 3, 0.3);
|
|
2931
2931
|
}
|
|
2932
2932
|
get baseOptions() {
|
|
2933
2933
|
return A(this.h, $, 1);
|
|
2934
2934
|
}
|
|
2935
2935
|
set baseOptions(e) {
|
|
2936
|
-
|
|
2936
|
+
b(this.h, 0, 1, e);
|
|
2937
2937
|
}
|
|
2938
2938
|
o(e) {
|
|
2939
2939
|
return "minDetectionConfidence" in e && y(this.h, 2, e.minDetectionConfidence ?? 0.5), "minSuppressionThreshold" in e && y(this.h, 3, e.minSuppressionThreshold ?? 0.3), this.l(e);
|
|
@@ -2946,12 +2946,12 @@ var ie = class extends le {
|
|
|
2946
2946
|
}
|
|
2947
2947
|
m() {
|
|
2948
2948
|
var e = new fe();
|
|
2949
|
-
|
|
2949
|
+
x(e, "image_in"), x(e, "norm_rect_in"), E(e, "detections");
|
|
2950
2950
|
const t = new de();
|
|
2951
|
-
|
|
2951
|
+
Le(t, iu, this.h);
|
|
2952
2952
|
const r = new ee();
|
|
2953
|
-
he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect_in"), _(r, "DETECTIONS:detections"), r.o(t),
|
|
2954
|
-
for (const i of s) s =
|
|
2953
|
+
he(r, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect_in"), _(r, "DETECTIONS:detections"), r.o(t), be(e, r), this.g.attachProtoVectorListener("detections", ((s, n) => {
|
|
2954
|
+
for (const i of s) s = Fa(i), this.j.detections.push(nc(s));
|
|
2955
2955
|
d(this, n);
|
|
2956
2956
|
})), this.g.attachEmptyPacketListener("detections", ((s) => {
|
|
2957
2957
|
d(this, s);
|
|
@@ -2965,19 +2965,19 @@ ie.prototype.detectForVideo = ie.prototype.G, ie.prototype.detect = ie.prototype
|
|
|
2965
2965
|
}, ie.createFromOptions = function(e, t) {
|
|
2966
2966
|
return w(ie, e, t);
|
|
2967
2967
|
};
|
|
2968
|
-
var Dn = _e([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), jn = _e([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Vn = _e([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), mc = _e([474, 475], [475, 476], [476, 477], [477, 474]), Gn = _e([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), Hn = _e([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), gc = _e([469, 470], [470, 471], [471, 472], [472, 469]), zn = _e([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), yc = [...Dn, ...jn, ...Vn, ...Gn, ...Hn, ...zn], vc = _e([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2968
|
+
var Dn = _e([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), jn = _e([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), Vn = _e([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), mc = _e([474, 475], [475, 476], [476, 477], [477, 474]), Gn = _e([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), Hn = _e([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), gc = _e([469, 470], [470, 471], [471, 472], [472, 469]), zn = _e([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), yc = [...Dn, ...jn, ...Vn, ...Gn, ...Hn, ...zn], bc = _e([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
2969
2969
|
function Hi(e) {
|
|
2970
2970
|
e.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
|
|
2971
2971
|
}
|
|
2972
|
-
var
|
|
2972
|
+
var F = class extends le {
|
|
2973
2973
|
constructor(e, t) {
|
|
2974
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1,
|
|
2974
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.j = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = !1, b(e = this.h = new Da(), 0, 1, t = new $()), this.A = new Ba(), b(this.h, 0, 3, this.A), this.u = new os(), b(this.h, 0, 2, this.u), Ne(this.u, 4, 1), y(this.u, 2, 0.5), y(this.A, 2, 0.5), y(this.h, 4, 0.5);
|
|
2975
2975
|
}
|
|
2976
2976
|
get baseOptions() {
|
|
2977
2977
|
return A(this.h, $, 1);
|
|
2978
2978
|
}
|
|
2979
2979
|
set baseOptions(e) {
|
|
2980
|
-
|
|
2980
|
+
b(this.h, 0, 1, e);
|
|
2981
2981
|
}
|
|
2982
2982
|
o(e) {
|
|
2983
2983
|
return "numFaces" in e && Ne(this.u, 4, e.numFaces ?? 1), "minFaceDetectionConfidence" in e && y(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in e && y(this.A, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in e && (this.outputFacialTransformationMatrixes = !!e.outputFacialTransformationMatrixes), this.l(e);
|
|
@@ -2990,11 +2990,11 @@ var x = class extends le {
|
|
|
2990
2990
|
}
|
|
2991
2991
|
m() {
|
|
2992
2992
|
var e = new fe();
|
|
2993
|
-
|
|
2993
|
+
x(e, "image_in"), x(e, "norm_rect"), E(e, "face_landmarks");
|
|
2994
2994
|
const t = new de();
|
|
2995
|
-
|
|
2995
|
+
Le(t, au, this.h);
|
|
2996
2996
|
const r = new ee();
|
|
2997
|
-
he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:face_landmarks"), r.o(t),
|
|
2997
|
+
he(r, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:face_landmarks"), r.o(t), be(e, r), this.g.attachProtoVectorListener("face_landmarks", ((s, n) => {
|
|
2998
2998
|
for (const i of s) s = Er(i), this.j.faceLandmarks.push(as(s));
|
|
2999
2999
|
d(this, n);
|
|
3000
3000
|
})), this.g.attachEmptyPacketListener("face_landmarks", ((s) => {
|
|
@@ -3005,20 +3005,20 @@ var x = class extends le {
|
|
|
3005
3005
|
})), this.g.attachEmptyPacketListener("blendshapes", ((s) => {
|
|
3006
3006
|
d(this, s);
|
|
3007
3007
|
}))), this.outputFacialTransformationMatrixes && (E(e, "face_geometry"), _(r, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", ((s, n) => {
|
|
3008
|
-
if (this.outputFacialTransformationMatrixes) for (const i of s) (s = A(s =
|
|
3008
|
+
if (this.outputFacialTransformationMatrixes) for (const i of s) (s = A(s = ou(i), Qh, 2)) && this.j.facialTransformationMatrixes.push({ rows: ge(s, 1) ?? 0 ?? 0, columns: ge(s, 2) ?? 0 ?? 0, data: tt(s, 3, Te, et()).slice() ?? [] });
|
|
3009
3009
|
d(this, n);
|
|
3010
3010
|
})), this.g.attachEmptyPacketListener("face_geometry", ((s) => {
|
|
3011
3011
|
d(this, s);
|
|
3012
3012
|
}))), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
3015
|
-
|
|
3016
|
-
return w(
|
|
3017
|
-
},
|
|
3018
|
-
return w(
|
|
3019
|
-
},
|
|
3020
|
-
return w(
|
|
3021
|
-
},
|
|
3015
|
+
F.prototype.detectForVideo = F.prototype.G, F.prototype.detect = F.prototype.F, F.prototype.setOptions = F.prototype.o, F.createFromModelPath = function(e, t) {
|
|
3016
|
+
return w(F, e, { baseOptions: { modelAssetPath: t } });
|
|
3017
|
+
}, F.createFromModelBuffer = function(e, t) {
|
|
3018
|
+
return w(F, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3019
|
+
}, F.createFromOptions = function(e, t) {
|
|
3020
|
+
return w(F, e, t);
|
|
3021
|
+
}, F.FACE_LANDMARKS_LIPS = Dn, F.FACE_LANDMARKS_LEFT_EYE = jn, F.FACE_LANDMARKS_LEFT_EYEBROW = Vn, F.FACE_LANDMARKS_LEFT_IRIS = mc, F.FACE_LANDMARKS_RIGHT_EYE = Gn, F.FACE_LANDMARKS_RIGHT_EYEBROW = Hn, F.FACE_LANDMARKS_RIGHT_IRIS = gc, F.FACE_LANDMARKS_FACE_OVAL = zn, F.FACE_LANDMARKS_CONTOURS = yc, F.FACE_LANDMARKS_TESSELATION = bc;
|
|
3022
3022
|
var Wn = _e([0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [5, 9], [9, 10], [10, 11], [11, 12], [9, 13], [13, 14], [14, 15], [15, 16], [13, 17], [0, 17], [17, 18], [18, 19], [19, 20]);
|
|
3023
3023
|
function zi(e) {
|
|
3024
3024
|
e.gestures = [], e.landmarks = [], e.worldLandmarks = [], e.handedness = [];
|
|
@@ -3038,21 +3038,21 @@ function Ki(e, t = !0) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
var te = class extends le {
|
|
3040
3040
|
constructor(e, t) {
|
|
3041
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
3041
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], b(e = this.j = new Ga(), 0, 1, t = new $()), this.u = new $n(), b(this.j, 0, 2, this.u), this.D = new Fn(), b(this.u, 0, 3, this.D), this.A = new Va(), b(this.u, 0, 2, this.A), this.h = new cu(), b(this.j, 0, 3, this.h), y(this.A, 2, 0.5), y(this.u, 4, 0.5), y(this.D, 2, 0.5);
|
|
3042
3042
|
}
|
|
3043
3043
|
get baseOptions() {
|
|
3044
3044
|
return A(this.j, $, 1);
|
|
3045
3045
|
}
|
|
3046
3046
|
set baseOptions(e) {
|
|
3047
|
-
|
|
3047
|
+
b(this.j, 0, 1, e);
|
|
3048
3048
|
}
|
|
3049
3049
|
o(e) {
|
|
3050
3050
|
var n, i, o, a;
|
|
3051
3051
|
if (Ne(this.A, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && y(this.A, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.u, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && y(this.D, 2, e.minHandPresenceConfidence ?? 0.5), e.cannedGesturesClassifierOptions) {
|
|
3052
|
-
var t = new
|
|
3053
|
-
|
|
3054
|
-
} else e.cannedGesturesClassifierOptions === void 0 && ((i = A(this.h,
|
|
3055
|
-
return e.customGesturesClassifierOptions ? (
|
|
3052
|
+
var t = new vt(), r = t, s = Bs(e.cannedGesturesClassifierOptions, (n = A(this.h, vt, 3)) == null ? void 0 : n.l());
|
|
3053
|
+
b(r, 0, 2, s), b(this.h, 0, 3, t);
|
|
3054
|
+
} else e.cannedGesturesClassifierOptions === void 0 && ((i = A(this.h, vt, 3)) == null || i.g());
|
|
3055
|
+
return e.customGesturesClassifierOptions ? (b(r = t = new vt(), 0, 2, s = Bs(e.customGesturesClassifierOptions, (o = A(this.h, vt, 4)) == null ? void 0 : o.l())), b(this.h, 0, 4, t)) : e.customGesturesClassifierOptions === void 0 && ((a = A(this.h, vt, 4)) == null || a.g()), this.l(e);
|
|
3056
3056
|
}
|
|
3057
3057
|
Ha(e, t) {
|
|
3058
3058
|
return zi(this), Ae(this, e, t), Wi(this);
|
|
@@ -3062,11 +3062,11 @@ var te = class extends le {
|
|
|
3062
3062
|
}
|
|
3063
3063
|
m() {
|
|
3064
3064
|
var e = new fe();
|
|
3065
|
-
|
|
3065
|
+
x(e, "image_in"), x(e, "norm_rect"), E(e, "hand_gestures"), E(e, "hand_landmarks"), E(e, "world_hand_landmarks"), E(e, "handedness");
|
|
3066
3066
|
const t = new de();
|
|
3067
|
-
|
|
3067
|
+
Le(t, hu, this.j);
|
|
3068
3068
|
const r = new ee();
|
|
3069
|
-
he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "HAND_GESTURES:hand_gestures"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t),
|
|
3069
|
+
he(r, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "HAND_GESTURES:hand_gestures"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t), be(e, r), this.g.attachProtoVectorListener("hand_landmarks", ((s, n) => {
|
|
3070
3070
|
for (const i of s) {
|
|
3071
3071
|
s = Er(i);
|
|
3072
3072
|
const o = [];
|
|
@@ -3109,13 +3109,13 @@ te.prototype.recognizeForVideo = te.prototype.Ia, te.prototype.recognize = te.pr
|
|
|
3109
3109
|
}, te.HAND_CONNECTIONS = Wn;
|
|
3110
3110
|
var re = class extends le {
|
|
3111
3111
|
constructor(e, t) {
|
|
3112
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [],
|
|
3112
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], b(e = this.h = new $n(), 0, 1, t = new $()), this.u = new Fn(), b(this.h, 0, 3, this.u), this.j = new Va(), b(this.h, 0, 2, this.j), Ne(this.j, 3, 1), y(this.j, 2, 0.5), y(this.u, 2, 0.5), y(this.h, 4, 0.5);
|
|
3113
3113
|
}
|
|
3114
3114
|
get baseOptions() {
|
|
3115
3115
|
return A(this.h, $, 1);
|
|
3116
3116
|
}
|
|
3117
3117
|
set baseOptions(e) {
|
|
3118
|
-
|
|
3118
|
+
b(this.h, 0, 1, e);
|
|
3119
3119
|
}
|
|
3120
3120
|
o(e) {
|
|
3121
3121
|
return "numHands" in e && Ne(this.j, 3, e.numHands ?? 1), "minHandDetectionConfidence" in e && y(this.j, 2, e.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in e && y(this.u, 2, e.minHandPresenceConfidence ?? 0.5), this.l(e);
|
|
@@ -3128,11 +3128,11 @@ var re = class extends le {
|
|
|
3128
3128
|
}
|
|
3129
3129
|
m() {
|
|
3130
3130
|
var e = new fe();
|
|
3131
|
-
|
|
3131
|
+
x(e, "image_in"), x(e, "norm_rect"), E(e, "hand_landmarks"), E(e, "world_hand_landmarks"), E(e, "handedness");
|
|
3132
3132
|
const t = new de();
|
|
3133
|
-
|
|
3133
|
+
Le(t, uu, this.h);
|
|
3134
3134
|
const r = new ee();
|
|
3135
|
-
he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t),
|
|
3135
|
+
he(r, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "LANDMARKS:hand_landmarks"), _(r, "WORLD_LANDMARKS:world_hand_landmarks"), _(r, "HANDEDNESS:handedness"), r.o(t), be(e, r), this.g.attachProtoVectorListener("hand_landmarks", ((s, n) => {
|
|
3136
3136
|
for (const i of s) s = Er(i), this.landmarks.push(as(s));
|
|
3137
3137
|
d(this, n);
|
|
3138
3138
|
})), this.g.attachEmptyPacketListener("hand_landmarks", ((s) => {
|
|
@@ -3164,7 +3164,7 @@ re.prototype.detectForVideo = re.prototype.G, re.prototype.detect = re.prototype
|
|
|
3164
3164
|
}, re.createFromOptions = function(e, t) {
|
|
3165
3165
|
return w(re, e, t);
|
|
3166
3166
|
}, re.HAND_CONNECTIONS = Wn;
|
|
3167
|
-
var
|
|
3167
|
+
var vc = _e([0, 1], [1, 2], [2, 3], [3, 7], [0, 4], [4, 5], [5, 6], [6, 8], [9, 10], [11, 12], [11, 13], [13, 15], [15, 17], [15, 19], [15, 21], [17, 19], [12, 14], [14, 16], [16, 18], [16, 20], [16, 22], [18, 20], [11, 23], [12, 24], [23, 24], [23, 25], [24, 26], [25, 27], [26, 28], [27, 29], [28, 30], [29, 31], [30, 32], [27, 31], [28, 32]);
|
|
3168
3168
|
function Xi(e) {
|
|
3169
3169
|
e.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
|
|
3170
3170
|
}
|
|
@@ -3181,13 +3181,13 @@ function Pr(e, t) {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
var T = class extends le {
|
|
3183
3183
|
constructor(e, t) {
|
|
3184
|
-
super(new we(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1,
|
|
3184
|
+
super(new we(e, t), "input_frames_image", null, !1), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = !1, b(e = this.j = new qa(), 0, 1, t = new $()), this.I = new Fn(), b(this.j, 0, 2, this.I), this.W = new lu(), b(this.j, 0, 3, this.W), this.u = new os(), b(this.j, 0, 4, this.u), this.O = new Ba(), b(this.j, 0, 5, this.O), this.A = new Wa(), b(this.j, 0, 6, this.A), this.M = new Ka(), b(this.j, 0, 7, this.M), y(this.u, 2, 0.5), y(this.u, 3, 0.3), y(this.O, 2, 0.5), y(this.A, 2, 0.5), y(this.A, 3, 0.3), y(this.M, 2, 0.5), y(this.I, 2, 0.5);
|
|
3185
3185
|
}
|
|
3186
3186
|
get baseOptions() {
|
|
3187
3187
|
return A(this.j, $, 1);
|
|
3188
3188
|
}
|
|
3189
3189
|
set baseOptions(e) {
|
|
3190
|
-
|
|
3190
|
+
b(this.j, 0, 1, e);
|
|
3191
3191
|
}
|
|
3192
3192
|
o(e) {
|
|
3193
3193
|
return "minFaceDetectionConfidence" in e && y(this.u, 2, e.minFaceDetectionConfidence ?? 0.5), "minFaceSuppressionThreshold" in e && y(this.u, 3, e.minFaceSuppressionThreshold ?? 0.3), "minFacePresenceConfidence" in e && y(this.O, 2, e.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in e && (this.outputFaceBlendshapes = !!e.outputFaceBlendshapes), "minPoseDetectionConfidence" in e && y(this.A, 2, e.minPoseDetectionConfidence ?? 0.5), "minPoseSuppressionThreshold" in e && y(this.A, 3, e.minPoseSuppressionThreshold ?? 0.3), "minPosePresenceConfidence" in e && y(this.M, 2, e.minPosePresenceConfidence ?? 0.5), "outputPoseSegmentationMasks" in e && (this.outputPoseSegmentationMasks = !!e.outputPoseSegmentationMasks), "minHandLandmarksConfidence" in e && y(this.I, 2, e.minHandLandmarksConfidence ?? 0.5), this.l(e);
|
|
@@ -3202,17 +3202,17 @@ var T = class extends le {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
m() {
|
|
3204
3204
|
var e = new fe();
|
|
3205
|
-
|
|
3205
|
+
x(e, "input_frames_image"), E(e, "pose_landmarks"), E(e, "pose_world_landmarks"), E(e, "face_landmarks"), E(e, "left_hand_landmarks"), E(e, "left_hand_world_landmarks"), E(e, "right_hand_landmarks"), E(e, "right_hand_world_landmarks");
|
|
3206
3206
|
const t = new de(), r = new _i();
|
|
3207
3207
|
he(r, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), (function(n, i) {
|
|
3208
3208
|
if (i != null) if (Array.isArray(i)) k(n, 2, Kr(i, 0, dr));
|
|
3209
3209
|
else {
|
|
3210
|
-
if (!(typeof i == "string" || i instanceof
|
|
3210
|
+
if (!(typeof i == "string" || i instanceof Ce || Js(i))) throw Error("invalid value in Any.value field: " + i + " expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");
|
|
3211
3211
|
je(n, 2, en(i, !1), ht());
|
|
3212
3212
|
}
|
|
3213
3213
|
})(r, this.j.g());
|
|
3214
3214
|
const s = new ee();
|
|
3215
|
-
he(s, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), gn(s, 8, _i, r), P(s, "IMAGE:input_frames_image"), _(s, "POSE_LANDMARKS:pose_landmarks"), _(s, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), _(s, "FACE_LANDMARKS:face_landmarks"), _(s, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), _(s, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), _(s, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), _(s, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), s.o(t),
|
|
3215
|
+
he(s, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), gn(s, 8, _i, r), P(s, "IMAGE:input_frames_image"), _(s, "POSE_LANDMARKS:pose_landmarks"), _(s, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), _(s, "FACE_LANDMARKS:face_landmarks"), _(s, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), _(s, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), _(s, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), _(s, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), s.o(t), be(e, s), cs(this, e), this.g.attachProtoListener("pose_landmarks", ((n, i) => {
|
|
3216
3216
|
Pr(n, this.h.poseLandmarks), d(this, i);
|
|
3217
3217
|
})), this.g.attachEmptyPacketListener("pose_landmarks", ((n) => {
|
|
3218
3218
|
d(this, n);
|
|
@@ -3261,19 +3261,19 @@ T.prototype.detectForVideo = T.prototype.G, T.prototype.detect = T.prototype.F,
|
|
|
3261
3261
|
return w(T, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3262
3262
|
}, T.createFromOptions = function(e, t) {
|
|
3263
3263
|
return w(T, e, t);
|
|
3264
|
-
}, T.HAND_CONNECTIONS = Wn, T.POSE_CONNECTIONS =
|
|
3264
|
+
}, T.HAND_CONNECTIONS = Wn, T.POSE_CONNECTIONS = vc, T.FACE_LANDMARKS_LIPS = Dn, T.FACE_LANDMARKS_LEFT_EYE = jn, T.FACE_LANDMARKS_LEFT_EYEBROW = Vn, T.FACE_LANDMARKS_LEFT_IRIS = mc, T.FACE_LANDMARKS_RIGHT_EYE = Gn, T.FACE_LANDMARKS_RIGHT_EYEBROW = Hn, T.FACE_LANDMARKS_RIGHT_IRIS = gc, T.FACE_LANDMARKS_FACE_OVAL = zn, T.FACE_LANDMARKS_CONTOURS = yc, T.FACE_LANDMARKS_TESSELATION = bc;
|
|
3265
3265
|
var pe = class extends le {
|
|
3266
3266
|
constructor(e, t) {
|
|
3267
|
-
super(new we(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] },
|
|
3267
|
+
super(new we(e, t), "input_image", "norm_rect", !0), this.j = { classifications: [] }, b(e = this.h = new Xa(), 0, 1, t = new $());
|
|
3268
3268
|
}
|
|
3269
3269
|
get baseOptions() {
|
|
3270
3270
|
return A(this.h, $, 1);
|
|
3271
3271
|
}
|
|
3272
3272
|
set baseOptions(e) {
|
|
3273
|
-
|
|
3273
|
+
b(this.h, 0, 1, e);
|
|
3274
3274
|
}
|
|
3275
3275
|
o(e) {
|
|
3276
|
-
return
|
|
3276
|
+
return b(this.h, 0, 2, Bs(e, A(this.h, Ln, 2))), this.l(e);
|
|
3277
3277
|
}
|
|
3278
3278
|
sa(e, t) {
|
|
3279
3279
|
return this.j = { classifications: [] }, Ae(this, e, t), this.j;
|
|
@@ -3283,12 +3283,12 @@ var pe = class extends le {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
m() {
|
|
3285
3285
|
var e = new fe();
|
|
3286
|
-
|
|
3286
|
+
x(e, "input_image"), x(e, "norm_rect"), E(e, "classifications");
|
|
3287
3287
|
const t = new de();
|
|
3288
|
-
|
|
3288
|
+
Le(t, du, this.h);
|
|
3289
3289
|
const r = new ee();
|
|
3290
|
-
he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), P(r, "IMAGE:input_image"), P(r, "NORM_RECT:norm_rect"), _(r, "CLASSIFICATIONS:classifications"), r.o(t),
|
|
3291
|
-
this.j =
|
|
3290
|
+
he(r, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), P(r, "IMAGE:input_image"), P(r, "NORM_RECT:norm_rect"), _(r, "CLASSIFICATIONS:classifications"), r.o(t), be(e, r), this.g.attachProtoListener("classifications", ((s, n) => {
|
|
3291
|
+
this.j = bu(eu(s)), d(this, n);
|
|
3292
3292
|
})), this.g.attachEmptyPacketListener("classifications", ((s) => {
|
|
3293
3293
|
d(this, s);
|
|
3294
3294
|
})), e = e.g(), this.setGraph(new Uint8Array(e), !0);
|
|
@@ -3303,17 +3303,17 @@ pe.prototype.classifyForVideo = pe.prototype.ta, pe.prototype.classify = pe.prot
|
|
|
3303
3303
|
};
|
|
3304
3304
|
var se = class extends le {
|
|
3305
3305
|
constructor(e, t) {
|
|
3306
|
-
super(new we(e, t), "image_in", "norm_rect", !0), this.h = new Ya(), this.embeddings = { embeddings: [] },
|
|
3306
|
+
super(new we(e, t), "image_in", "norm_rect", !0), this.h = new Ya(), this.embeddings = { embeddings: [] }, b(e = this.h, 0, 1, t = new $());
|
|
3307
3307
|
}
|
|
3308
3308
|
get baseOptions() {
|
|
3309
3309
|
return A(this.h, $, 1);
|
|
3310
3310
|
}
|
|
3311
3311
|
set baseOptions(e) {
|
|
3312
|
-
|
|
3312
|
+
b(this.h, 0, 1, e);
|
|
3313
3313
|
}
|
|
3314
3314
|
o(e) {
|
|
3315
3315
|
var t = this.h, r = A(this.h, Mi, 2);
|
|
3316
|
-
return r = r ? r.clone() : new Mi(), e.l2Normalize !== void 0 ? k(r, 1, lr(e.l2Normalize)) : "l2Normalize" in e && k(r, 1), e.quantize !== void 0 ? k(r, 2, lr(e.quantize)) : "quantize" in e && k(r, 2),
|
|
3316
|
+
return r = r ? r.clone() : new Mi(), e.l2Normalize !== void 0 ? k(r, 1, lr(e.l2Normalize)) : "l2Normalize" in e && k(r, 1), e.quantize !== void 0 ? k(r, 2, lr(e.quantize)) : "quantize" in e && k(r, 2), b(t, 0, 2, r), this.l(e);
|
|
3317
3317
|
}
|
|
3318
3318
|
za(e, t) {
|
|
3319
3319
|
return Ae(this, e, t), this.embeddings;
|
|
@@ -3323,17 +3323,17 @@ var se = class extends le {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
m() {
|
|
3325
3325
|
var e = new fe();
|
|
3326
|
-
|
|
3326
|
+
x(e, "image_in"), x(e, "norm_rect"), E(e, "embeddings_out");
|
|
3327
3327
|
const t = new de();
|
|
3328
|
-
|
|
3328
|
+
Le(t, fu, this.h);
|
|
3329
3329
|
const r = new ee();
|
|
3330
|
-
he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "EMBEDDINGS:embeddings_out"), r.o(t),
|
|
3331
|
-
s =
|
|
3332
|
-
return { embeddings: Re(i,
|
|
3330
|
+
he(r, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "EMBEDDINGS:embeddings_out"), r.o(t), be(e, r), this.g.attachProtoListener("embeddings_out", ((s, n) => {
|
|
3331
|
+
s = su(s), this.embeddings = (function(i) {
|
|
3332
|
+
return { embeddings: Re(i, ru, 1).map(((o) => {
|
|
3333
3333
|
var u, h;
|
|
3334
3334
|
const a = { headIndex: ge(o, 3) ?? 0 ?? -1, headName: X(C(o, 4)) ?? "" ?? "" };
|
|
3335
3335
|
var c = o.v;
|
|
3336
|
-
return Wo(c, 0 | c[p], Pi, gs(o, 1)) !== void 0 ? (o = tt(o = A(o, Pi, gs(o, 1), void 0), 1,
|
|
3336
|
+
return Wo(c, 0 | c[p], Pi, gs(o, 1)) !== void 0 ? (o = tt(o = A(o, Pi, gs(o, 1), void 0), 1, Te, et()), a.floatEmbedding = o.slice()) : (c = new Uint8Array(0), a.quantizedEmbedding = ((h = (u = A(o, tu, gs(o, 2), void 0)) == null ? void 0 : u.na()) == null ? void 0 : h.h()) ?? c), a;
|
|
3337
3337
|
})), timestampMs: sc(Xo(i)) };
|
|
3338
3338
|
})(s), d(this, n);
|
|
3339
3339
|
})), this.g.attachEmptyPacketListener("embeddings_out", ((s) => {
|
|
@@ -3366,7 +3366,7 @@ var Gs = class {
|
|
|
3366
3366
|
})), (t = this.categoryMask) == null || t.close();
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
3369
|
-
function
|
|
3369
|
+
function Su(e) {
|
|
3370
3370
|
var r, s;
|
|
3371
3371
|
const t = (function(n) {
|
|
3372
3372
|
return Re(n, ee, 1);
|
|
@@ -3391,19 +3391,19 @@ function Ji(e) {
|
|
|
3391
3391
|
Gs.prototype.close = Gs.prototype.close;
|
|
3392
3392
|
var Z = class extends le {
|
|
3393
3393
|
constructor(e, t) {
|
|
3394
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Rn(), this.A = new Qa(),
|
|
3394
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.u = [], this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Rn(), this.A = new Qa(), b(this.h, 0, 3, this.A), b(e = this.h, 0, 1, t = new $());
|
|
3395
3395
|
}
|
|
3396
3396
|
get baseOptions() {
|
|
3397
3397
|
return A(this.h, $, 1);
|
|
3398
3398
|
}
|
|
3399
3399
|
set baseOptions(e) {
|
|
3400
|
-
|
|
3400
|
+
b(this.h, 0, 1, e);
|
|
3401
3401
|
}
|
|
3402
3402
|
o(e) {
|
|
3403
3403
|
return e.displayNamesLocale !== void 0 ? k(this.h, 2, _r(e.displayNamesLocale)) : "displayNamesLocale" in e && k(this.h, 2), "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
3404
3404
|
}
|
|
3405
3405
|
L() {
|
|
3406
|
-
|
|
3406
|
+
Su(this);
|
|
3407
3407
|
}
|
|
3408
3408
|
segment(e, t, r) {
|
|
3409
3409
|
const s = typeof t != "function" ? t : {};
|
|
@@ -3418,11 +3418,11 @@ var Z = class extends le {
|
|
|
3418
3418
|
}
|
|
3419
3419
|
m() {
|
|
3420
3420
|
var e = new fe();
|
|
3421
|
-
|
|
3421
|
+
x(e, "image_in"), x(e, "norm_rect");
|
|
3422
3422
|
const t = new de();
|
|
3423
|
-
|
|
3423
|
+
Le(t, Za, this.h);
|
|
3424
3424
|
const r = new ee();
|
|
3425
|
-
he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), r.o(t),
|
|
3425
|
+
he(r, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), r.o(t), be(e, r), cs(this, e), this.outputConfidenceMasks && (E(e, "confidence_masks"), _(r, "CONFIDENCE_MASKS:confidence_masks"), $t(this, "confidence_masks"), this.g.aa("confidence_masks", ((s, n) => {
|
|
3426
3426
|
this.confidenceMasks = s.map(((i) => It(this, i, !0, !this.j))), d(this, n);
|
|
3427
3427
|
})), this.g.attachEmptyPacketListener("confidence_masks", ((s) => {
|
|
3428
3428
|
this.confidenceMasks = [], d(this, s);
|
|
@@ -3458,13 +3458,13 @@ var Hs = class {
|
|
|
3458
3458
|
Hs.prototype.close = Hs.prototype.close;
|
|
3459
3459
|
var ke = class extends le {
|
|
3460
3460
|
constructor(e, t) {
|
|
3461
|
-
super(new we(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Rn(), this.u = new Qa(),
|
|
3461
|
+
super(new we(e, t), "image_in", "norm_rect_in", !1), this.outputCategoryMask = !1, this.outputConfidenceMasks = !0, this.h = new Rn(), this.u = new Qa(), b(this.h, 0, 3, this.u), b(e = this.h, 0, 1, t = new $());
|
|
3462
3462
|
}
|
|
3463
3463
|
get baseOptions() {
|
|
3464
3464
|
return A(this.h, $, 1);
|
|
3465
3465
|
}
|
|
3466
3466
|
set baseOptions(e) {
|
|
3467
|
-
|
|
3467
|
+
b(this.h, 0, 1, e);
|
|
3468
3468
|
}
|
|
3469
3469
|
o(e) {
|
|
3470
3470
|
return "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
@@ -3478,7 +3478,7 @@ var ke = class extends le {
|
|
|
3478
3478
|
} else {
|
|
3479
3479
|
if (!t.scribble) throw Error("Must provide either a keypoint or a scribble.");
|
|
3480
3480
|
{
|
|
3481
|
-
const a = new
|
|
3481
|
+
const a = new mu();
|
|
3482
3482
|
for (i of t.scribble) je(t = new _s(), 3, lr(!0), !1), je(t, 1, tr(i.x), 0), je(t, 2, tr(i.y), 0), gn(a, 1, _s, t);
|
|
3483
3483
|
rr(s, 2, Us, a);
|
|
3484
3484
|
}
|
|
@@ -3501,11 +3501,11 @@ var ke = class extends le {
|
|
|
3501
3501
|
}
|
|
3502
3502
|
m() {
|
|
3503
3503
|
var e = new fe();
|
|
3504
|
-
|
|
3504
|
+
x(e, "image_in"), x(e, "roi_in"), x(e, "norm_rect_in");
|
|
3505
3505
|
const t = new de();
|
|
3506
|
-
|
|
3506
|
+
Le(t, Za, this.h);
|
|
3507
3507
|
const r = new ee();
|
|
3508
|
-
he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), P(r, "IMAGE:image_in"), P(r, "ROI:roi_in"), P(r, "NORM_RECT:norm_rect_in"), r.o(t),
|
|
3508
|
+
he(r, 2, "mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"), P(r, "IMAGE:image_in"), P(r, "ROI:roi_in"), P(r, "NORM_RECT:norm_rect_in"), r.o(t), be(e, r), cs(this, e), this.outputConfidenceMasks && (E(e, "confidence_masks"), _(r, "CONFIDENCE_MASKS:confidence_masks"), $t(this, "confidence_masks"), this.g.aa("confidence_masks", ((s, n) => {
|
|
3509
3509
|
this.confidenceMasks = s.map(((i) => It(this, i, !0, !this.j))), d(this, n);
|
|
3510
3510
|
})), this.g.attachEmptyPacketListener("confidence_masks", ((s) => {
|
|
3511
3511
|
this.confidenceMasks = [], d(this, s);
|
|
@@ -3529,13 +3529,13 @@ ke.prototype.segment = ke.prototype.segment, ke.prototype.setOptions = ke.protot
|
|
|
3529
3529
|
};
|
|
3530
3530
|
var me = class extends le {
|
|
3531
3531
|
constructor(e, t) {
|
|
3532
|
-
super(new we(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] },
|
|
3532
|
+
super(new we(e, t), "input_frame_gpu", "norm_rect", !1), this.j = { detections: [] }, b(e = this.h = new tc(), 0, 1, t = new $());
|
|
3533
3533
|
}
|
|
3534
3534
|
get baseOptions() {
|
|
3535
3535
|
return A(this.h, $, 1);
|
|
3536
3536
|
}
|
|
3537
3537
|
set baseOptions(e) {
|
|
3538
|
-
|
|
3538
|
+
b(this.h, 0, 1, e);
|
|
3539
3539
|
}
|
|
3540
3540
|
o(e) {
|
|
3541
3541
|
return e.displayNamesLocale !== void 0 ? k(this.h, 2, _r(e.displayNamesLocale)) : "displayNamesLocale" in e && k(this.h, 2), e.maxResults !== void 0 ? Ne(this.h, 3, e.maxResults) : "maxResults" in e && k(this.h, 3), e.scoreThreshold !== void 0 ? y(this.h, 4, e.scoreThreshold) : "scoreThreshold" in e && k(this.h, 4), e.categoryAllowlist !== void 0 ? Or(this.h, 5, e.categoryAllowlist) : "categoryAllowlist" in e && k(this.h, 5), e.categoryDenylist !== void 0 ? Or(this.h, 6, e.categoryDenylist) : "categoryDenylist" in e && k(this.h, 6), this.l(e);
|
|
@@ -3548,12 +3548,12 @@ var me = class extends le {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
m() {
|
|
3550
3550
|
var e = new fe();
|
|
3551
|
-
|
|
3551
|
+
x(e, "input_frame_gpu"), x(e, "norm_rect"), E(e, "detections");
|
|
3552
3552
|
const t = new de();
|
|
3553
|
-
|
|
3553
|
+
Le(t, gu, this.h);
|
|
3554
3554
|
const r = new ee();
|
|
3555
|
-
he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), P(r, "IMAGE:input_frame_gpu"), P(r, "NORM_RECT:norm_rect"), _(r, "DETECTIONS:detections"), r.o(t),
|
|
3556
|
-
for (const i of s) s =
|
|
3555
|
+
he(r, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), P(r, "IMAGE:input_frame_gpu"), P(r, "NORM_RECT:norm_rect"), _(r, "DETECTIONS:detections"), r.o(t), be(e, r), this.g.attachProtoVectorListener("detections", ((s, n) => {
|
|
3556
|
+
for (const i of s) s = Fa(i), this.j.detections.push(nc(s));
|
|
3557
3557
|
d(this, n);
|
|
3558
3558
|
})), this.g.attachEmptyPacketListener("detections", ((s) => {
|
|
3559
3559
|
d(this, s);
|
|
@@ -3593,13 +3593,13 @@ function eo(e) {
|
|
|
3593
3593
|
zs.prototype.close = zs.prototype.close;
|
|
3594
3594
|
var ne = class extends le {
|
|
3595
3595
|
constructor(e, t) {
|
|
3596
|
-
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1,
|
|
3596
|
+
super(new we(e, t), "image_in", "norm_rect", !1), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = !1, b(e = this.h = new rc(), 0, 1, t = new $()), this.A = new Ka(), b(this.h, 0, 3, this.A), this.j = new Wa(), b(this.h, 0, 2, this.j), Ne(this.j, 4, 1), y(this.j, 2, 0.5), y(this.A, 2, 0.5), y(this.h, 4, 0.5);
|
|
3597
3597
|
}
|
|
3598
3598
|
get baseOptions() {
|
|
3599
3599
|
return A(this.h, $, 1);
|
|
3600
3600
|
}
|
|
3601
3601
|
set baseOptions(e) {
|
|
3602
|
-
|
|
3602
|
+
b(this.h, 0, 1, e);
|
|
3603
3603
|
}
|
|
3604
3604
|
o(e) {
|
|
3605
3605
|
return "numPoses" in e && Ne(this.j, 4, e.numPoses ?? 1), "minPoseDetectionConfidence" in e && y(this.j, 2, e.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in e && y(this.h, 4, e.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in e && y(this.A, 2, e.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in e && (this.outputSegmentationMasks = e.outputSegmentationMasks ?? !1), this.l(e);
|
|
@@ -3614,11 +3614,11 @@ var ne = class extends le {
|
|
|
3614
3614
|
}
|
|
3615
3615
|
m() {
|
|
3616
3616
|
var e = new fe();
|
|
3617
|
-
|
|
3617
|
+
x(e, "image_in"), x(e, "norm_rect"), E(e, "normalized_landmarks"), E(e, "world_landmarks"), E(e, "segmentation_masks");
|
|
3618
3618
|
const t = new de();
|
|
3619
|
-
|
|
3619
|
+
Le(t, yu, this.h);
|
|
3620
3620
|
const r = new ee();
|
|
3621
|
-
he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:normalized_landmarks"), _(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t),
|
|
3621
|
+
he(r, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), P(r, "IMAGE:image_in"), P(r, "NORM_RECT:norm_rect"), _(r, "NORM_LANDMARKS:normalized_landmarks"), _(r, "WORLD_LANDMARKS:world_landmarks"), r.o(t), be(e, r), cs(this, e), this.g.attachProtoVectorListener("normalized_landmarks", ((s, n) => {
|
|
3622
3622
|
this.landmarks = [];
|
|
3623
3623
|
for (const i of s) s = Er(i), this.landmarks.push(as(s));
|
|
3624
3624
|
d(this, n);
|
|
@@ -3643,8 +3643,8 @@ ne.prototype.detectForVideo = ne.prototype.G, ne.prototype.detect = ne.prototype
|
|
|
3643
3643
|
return w(ne, e, { baseOptions: { modelAssetBuffer: t } });
|
|
3644
3644
|
}, ne.createFromOptions = function(e, t) {
|
|
3645
3645
|
return w(ne, e, t);
|
|
3646
|
-
}, ne.POSE_CONNECTIONS =
|
|
3647
|
-
const _c = 0.1, wc = 0.42, As = 0.24, Ws = 0.14, Ks = 0.18, to = 0.12,
|
|
3646
|
+
}, ne.POSE_CONNECTIONS = vc;
|
|
3647
|
+
const _c = 0.1, wc = 0.42, As = 0.24, Ws = 0.14, Ks = 0.18, to = 0.12, Tu = 0, Cu = 1, Pu = 2;
|
|
3648
3648
|
function Ac(e) {
|
|
3649
3649
|
var h;
|
|
3650
3650
|
const { detections: t, width: r, height: s } = e;
|
|
@@ -3696,20 +3696,20 @@ function Ac(e) {
|
|
|
3696
3696
|
return Qe(n.confidence, "move-down", "Move your face slightly down.");
|
|
3697
3697
|
if (c > 0.5 + Ks)
|
|
3698
3698
|
return Qe(n.confidence, "move-up", "Move your face slightly up.");
|
|
3699
|
-
const u =
|
|
3699
|
+
const u = Mu(n.keypoints);
|
|
3700
3700
|
return u ? Qe(n.confidence, u.feedback, u.message) : {
|
|
3701
3701
|
hasFace: !0,
|
|
3702
3702
|
faceCount: 1,
|
|
3703
3703
|
confidence: n.confidence,
|
|
3704
|
-
captureScore:
|
|
3704
|
+
captureScore: Lu(n.confidence, a, c, o),
|
|
3705
3705
|
isCentered: !0,
|
|
3706
3706
|
passesQualityChecks: !0,
|
|
3707
3707
|
feedback: "good",
|
|
3708
3708
|
message: "Hold still. Capturing automatically..."
|
|
3709
3709
|
};
|
|
3710
3710
|
}
|
|
3711
|
-
function
|
|
3712
|
-
const t = e[
|
|
3711
|
+
function Mu(e) {
|
|
3712
|
+
const t = e[Tu], r = e[Cu], s = e[Pu];
|
|
3713
3713
|
if (!t || !r || !s)
|
|
3714
3714
|
return null;
|
|
3715
3715
|
const n = (t.x + r.x) / 2, i = Math.abs(r.x - t.x);
|
|
@@ -3736,41 +3736,41 @@ function Qe(e, t, r) {
|
|
|
3736
3736
|
message: r
|
|
3737
3737
|
};
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function Lu(e, t, r, s) {
|
|
3740
3740
|
const n = Math.abs(t - 0.5) / Ws, i = Math.abs(r - 0.5) / Ks, o = 1 - Math.min((n + i) / 2, 1), a = Math.max(
|
|
3741
3741
|
Math.abs(As - _c),
|
|
3742
3742
|
Math.abs(wc - As)
|
|
3743
3743
|
), c = 1 - Math.min(Math.abs(s - As) / a, 1);
|
|
3744
3744
|
return Number((e * 0.55 + o * 0.3 + c * 0.15).toFixed(4));
|
|
3745
3745
|
}
|
|
3746
|
-
const
|
|
3746
|
+
const xu = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm", Fu = "https://storage.googleapis.com/mediapipe-models/face_detector/blaze_face_short_range/float16/1/blaze_face_short_range.tflite", $u = 0.7;
|
|
3747
3747
|
let ro = null, so = null, no = null;
|
|
3748
|
-
function
|
|
3749
|
-
return ro ?? (ro = Ze.forVisionTasks(
|
|
3748
|
+
function Ou() {
|
|
3749
|
+
return ro ?? (ro = Ze.forVisionTasks(xu)), ro;
|
|
3750
3750
|
}
|
|
3751
|
-
function
|
|
3751
|
+
function Iu() {
|
|
3752
3752
|
return so ?? (so = kc("IMAGE")), so;
|
|
3753
3753
|
}
|
|
3754
3754
|
function Ec() {
|
|
3755
3755
|
return no ?? (no = kc("VIDEO")), no;
|
|
3756
3756
|
}
|
|
3757
3757
|
async function kc(e) {
|
|
3758
|
-
const t = await
|
|
3758
|
+
const t = await Ou();
|
|
3759
3759
|
return ie.createFromOptions(t, {
|
|
3760
|
-
baseOptions: { modelAssetPath:
|
|
3760
|
+
baseOptions: { modelAssetPath: Fu },
|
|
3761
3761
|
runningMode: e,
|
|
3762
|
-
minDetectionConfidence:
|
|
3762
|
+
minDetectionConfidence: $u
|
|
3763
3763
|
});
|
|
3764
3764
|
}
|
|
3765
3765
|
async function Sc(e) {
|
|
3766
|
-
const r = (await
|
|
3766
|
+
const r = (await Iu()).detect(e);
|
|
3767
3767
|
return Ac({
|
|
3768
3768
|
detections: Tc(r.detections),
|
|
3769
3769
|
width: e.naturalWidth,
|
|
3770
3770
|
height: e.naturalHeight
|
|
3771
3771
|
});
|
|
3772
3772
|
}
|
|
3773
|
-
async function
|
|
3773
|
+
async function Ru(e, t) {
|
|
3774
3774
|
const s = (await Ec()).detectForVideo(e, t);
|
|
3775
3775
|
return Ac({
|
|
3776
3776
|
detections: Tc(s.detections),
|
|
@@ -3796,15 +3796,15 @@ function Tc(e) {
|
|
|
3796
3796
|
};
|
|
3797
3797
|
});
|
|
3798
3798
|
}
|
|
3799
|
-
const
|
|
3800
|
-
function
|
|
3799
|
+
const Cc = "Capturing Face", Pc = "Accept";
|
|
3800
|
+
function Mc(e) {
|
|
3801
3801
|
return {
|
|
3802
3802
|
presentation: (e == null ? void 0 : e.presentation) ?? "popup",
|
|
3803
3803
|
capturePreference: (e == null ? void 0 : e.capturePreference) ?? "auto-preferred",
|
|
3804
3804
|
allowMediaPickerFallback: (e == null ? void 0 : e.allowMediaPickerFallback) ?? !0,
|
|
3805
3805
|
container: e == null ? void 0 : e.container,
|
|
3806
|
-
label: (e == null ? void 0 : e.label) ??
|
|
3807
|
-
confirmLabel: (e == null ? void 0 : e.confirmLabel) ??
|
|
3806
|
+
label: (e == null ? void 0 : e.label) ?? Cc,
|
|
3807
|
+
confirmLabel: (e == null ? void 0 : e.confirmLabel) ?? Pc
|
|
3808
3808
|
};
|
|
3809
3809
|
}
|
|
3810
3810
|
async function Nu(e) {
|
|
@@ -3908,7 +3908,7 @@ function Gu() {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
};
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function Lc() {
|
|
3912
3912
|
return new Promise((e) => {
|
|
3913
3913
|
const t = document.createElement("input");
|
|
3914
3914
|
t.type = "file", t.accept = "image/*", t.capture = "user", t.style.display = "none", t.addEventListener("change", () => {
|
|
@@ -3929,7 +3929,7 @@ function Pc() {
|
|
|
3929
3929
|
document.body.appendChild(t), t.click();
|
|
3930
3930
|
});
|
|
3931
3931
|
}
|
|
3932
|
-
function
|
|
3932
|
+
function xc(e) {
|
|
3933
3933
|
return new Promise((t, r) => {
|
|
3934
3934
|
const s = URL.createObjectURL(e), n = new Image();
|
|
3935
3935
|
n.onload = () => {
|
|
@@ -3939,7 +3939,7 @@ function Mc(e) {
|
|
|
3939
3939
|
}, n.src = s;
|
|
3940
3940
|
});
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function x2(e) {
|
|
3943
3943
|
return new Promise((t, r) => {
|
|
3944
3944
|
const s = new FileReader();
|
|
3945
3945
|
s.onload = () => t(s.result), s.onerror = () => r(new Error("Failed to read image")), s.readAsDataURL(e);
|
|
@@ -3974,18 +3974,18 @@ function io(e) {
|
|
|
3974
3974
|
const zu = "2147483647";
|
|
3975
3975
|
async function Wu(e) {
|
|
3976
3976
|
var s;
|
|
3977
|
-
const t =
|
|
3977
|
+
const t = Mc(e);
|
|
3978
3978
|
if (t.presentation === "embedded")
|
|
3979
3979
|
return Ku(t);
|
|
3980
3980
|
if (!(typeof ((s = navigator.mediaDevices) == null ? void 0 : s.getUserMedia) == "function")) {
|
|
3981
3981
|
if (t.allowMediaPickerFallback)
|
|
3982
|
-
return
|
|
3982
|
+
return Lc();
|
|
3983
3983
|
throw new Error("No supported capture strategy is available in this environment.");
|
|
3984
3984
|
}
|
|
3985
3985
|
return Xu(t);
|
|
3986
3986
|
}
|
|
3987
3987
|
async function Ku(e) {
|
|
3988
|
-
await Promise.resolve().then(() =>
|
|
3988
|
+
await Promise.resolve().then(() => Uc);
|
|
3989
3989
|
const t = qu(e.container), r = t.tagName.toLowerCase() === "simface-capture", s = r ? t : document.createElement("simface-capture");
|
|
3990
3990
|
return r || t.appendChild(s), s.embedded = !0, s.label = e.label, s.confirmLabel = e.confirmLabel, s.capturePreference = e.capturePreference, s.allowMediaPickerFallback = e.allowMediaPickerFallback, new Promise((n, i) => {
|
|
3991
3991
|
const o = () => {
|
|
@@ -4013,7 +4013,7 @@ function qu(e) {
|
|
|
4013
4013
|
return t;
|
|
4014
4014
|
}
|
|
4015
4015
|
async function Xu(e) {
|
|
4016
|
-
return await Promise.resolve().then(() =>
|
|
4016
|
+
return await Promise.resolve().then(() => Uc), new Promise((t, r) => {
|
|
4017
4017
|
let s = !1, n = null;
|
|
4018
4018
|
const i = document.createElement("div");
|
|
4019
4019
|
i.setAttribute("data-simface-camera-overlay", "true"), i.setAttribute("role", "dialog"), i.setAttribute("aria-modal", "true"), Yu(i, {
|
|
@@ -4031,10 +4031,10 @@ async function Xu(e) {
|
|
|
4031
4031
|
o.label = e.label, o.confirmLabel = e.confirmLabel, o.capturePreference = e.capturePreference, o.allowMediaPickerFallback = e.allowMediaPickerFallback, i.appendChild(o), document.body.appendChild(i);
|
|
4032
4032
|
const a = () => {
|
|
4033
4033
|
n && window.removeEventListener("keydown", n), o.removeEventListener("simface-captured", u), o.removeEventListener("simface-cancelled", h), o.removeEventListener("simface-error", l), o.active = !1, i.remove();
|
|
4034
|
-
}, c = (f,
|
|
4034
|
+
}, c = (f, v) => {
|
|
4035
4035
|
if (!s) {
|
|
4036
|
-
if (s = !0, a(),
|
|
4037
|
-
r(
|
|
4036
|
+
if (s = !0, a(), v) {
|
|
4037
|
+
r(v);
|
|
4038
4038
|
return;
|
|
4039
4039
|
}
|
|
4040
4040
|
t(f);
|
|
@@ -4061,8 +4061,8 @@ function Yu(e, t) {
|
|
|
4061
4061
|
* Copyright 2019 Google LLC
|
|
4062
4062
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4063
4063
|
*/
|
|
4064
|
-
const
|
|
4065
|
-
let
|
|
4064
|
+
const xr = globalThis, Kn = xr.ShadowRoot && (xr.ShadyCSS === void 0 || xr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, qn = Symbol(), oo = /* @__PURE__ */ new WeakMap();
|
|
4065
|
+
let Fc = class {
|
|
4066
4066
|
constructor(t, r, s) {
|
|
4067
4067
|
if (this._$cssResult$ = !0, s !== qn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
4068
4068
|
this.cssText = t, this.t = r;
|
|
@@ -4080,17 +4080,17 @@ let Lc = class {
|
|
|
4080
4080
|
return this.cssText;
|
|
4081
4081
|
}
|
|
4082
4082
|
};
|
|
4083
|
-
const Qu = (e) => new
|
|
4083
|
+
const Qu = (e) => new Fc(typeof e == "string" ? e : e + "", void 0, qn), Ju = (e, ...t) => {
|
|
4084
4084
|
const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
|
|
4085
4085
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
4086
4086
|
if (typeof o == "number") return o;
|
|
4087
4087
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
4088
4088
|
})(n) + e[i + 1], e[0]);
|
|
4089
|
-
return new
|
|
4089
|
+
return new Fc(r, e, qn);
|
|
4090
4090
|
}, Zu = (e, t) => {
|
|
4091
4091
|
if (Kn) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
4092
4092
|
else for (const r of t) {
|
|
4093
|
-
const s = document.createElement("style"), n =
|
|
4093
|
+
const s = document.createElement("style"), n = xr.litNonce;
|
|
4094
4094
|
n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
|
|
4095
4095
|
}
|
|
4096
4096
|
}, ao = Kn ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -4342,10 +4342,10 @@ _t.elementStyles = [], _t.shadowRootOptions = { mode: "open" }, _t[ir("elementPr
|
|
|
4342
4342
|
* Copyright 2017 Google LLC
|
|
4343
4343
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4344
4344
|
*/
|
|
4345
|
-
const or = globalThis, uo = (e) => e, Dr = or.trustedTypes, lo = Dr ? Dr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0,
|
|
4345
|
+
const or = globalThis, uo = (e) => e, Dr = or.trustedTypes, lo = Dr ? Dr.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $c = "$lit$", Ge = `lit$${Math.random().toFixed(9).slice(2)}$`, Oc = "?" + Ge, a2 = `<${Oc}>`, dt = document, fr = () => dt.createComment(""), pr = (e) => e === null || typeof e != "object" && typeof e != "function", Yn = Array.isArray, c2 = (e) => Yn(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", ks = `[
|
|
4346
4346
|
\f\r]`, Zt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, fo = /-->/g, po = />/g, Je = RegExp(`>|${ks}(?:([^\\s"'>=/]+)(${ks}*=${ks}*(?:[^
|
|
4347
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), mo = /'/g, go = /"/g,
|
|
4348
|
-
function
|
|
4347
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), mo = /'/g, go = /"/g, Ic = /^(?:script|style|textarea|title)$/i, h2 = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), Se = h2(1), Rt = Symbol.for("lit-noChange"), W = Symbol.for("lit-nothing"), yo = /* @__PURE__ */ new WeakMap(), rt = dt.createTreeWalker(dt, 129);
|
|
4348
|
+
function Rc(e, t) {
|
|
4349
4349
|
if (!Yn(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
4350
4350
|
return lo !== void 0 ? lo.createHTML(t) : t;
|
|
4351
4351
|
}
|
|
@@ -4355,11 +4355,11 @@ const u2 = (e, t) => {
|
|
|
4355
4355
|
for (let a = 0; a < r; a++) {
|
|
4356
4356
|
const c = e[a];
|
|
4357
4357
|
let u, h, l = -1, f = 0;
|
|
4358
|
-
for (; f < c.length && (o.lastIndex = f, h = o.exec(c), h !== null); ) f = o.lastIndex, o === Zt ? h[1] === "!--" ? o = fo : h[1] !== void 0 ? o = po : h[2] !== void 0 ? (
|
|
4359
|
-
const
|
|
4360
|
-
i += o === Zt ? c + a2 : l >= 0 ? (s.push(u), c.slice(0, l) +
|
|
4358
|
+
for (; f < c.length && (o.lastIndex = f, h = o.exec(c), h !== null); ) f = o.lastIndex, o === Zt ? h[1] === "!--" ? o = fo : h[1] !== void 0 ? o = po : h[2] !== void 0 ? (Ic.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = Je) : h[3] !== void 0 && (o = Je) : o === Je ? h[0] === ">" ? (o = n ?? Zt, l = -1) : h[1] === void 0 ? l = -2 : (l = o.lastIndex - h[2].length, u = h[1], o = h[3] === void 0 ? Je : h[3] === '"' ? go : mo) : o === go || o === mo ? o = Je : o === fo || o === po ? o = Zt : (o = Je, n = void 0);
|
|
4359
|
+
const v = o === Je && e[a + 1].startsWith("/>") ? " " : "";
|
|
4360
|
+
i += o === Zt ? c + a2 : l >= 0 ? (s.push(u), c.slice(0, l) + $c + c.slice(l) + Ge + v) : c + Ge + (l === -2 ? a : v);
|
|
4361
4361
|
}
|
|
4362
|
-
return [
|
|
4362
|
+
return [Rc(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
4363
4363
|
};
|
|
4364
4364
|
class mr {
|
|
4365
4365
|
constructor({ strings: t, _$litType$: r }, s) {
|
|
@@ -4373,19 +4373,19 @@ class mr {
|
|
|
4373
4373
|
}
|
|
4374
4374
|
for (; (n = rt.nextNode()) !== null && c.length < a; ) {
|
|
4375
4375
|
if (n.nodeType === 1) {
|
|
4376
|
-
if (n.hasAttributes()) for (const l of n.getAttributeNames()) if (l.endsWith(
|
|
4377
|
-
const f = h[o++],
|
|
4378
|
-
c.push({ type: 1, index: i, name: M[2], strings:
|
|
4376
|
+
if (n.hasAttributes()) for (const l of n.getAttributeNames()) if (l.endsWith($c)) {
|
|
4377
|
+
const f = h[o++], v = n.getAttribute(l).split(Ge), M = /([.?@])?(.*)/.exec(f);
|
|
4378
|
+
c.push({ type: 1, index: i, name: M[2], strings: v, ctor: M[1] === "." ? d2 : M[1] === "?" ? f2 : M[1] === "@" ? p2 : us }), n.removeAttribute(l);
|
|
4379
4379
|
} else l.startsWith(Ge) && (c.push({ type: 6, index: i }), n.removeAttribute(l));
|
|
4380
|
-
if (
|
|
4380
|
+
if (Ic.test(n.tagName)) {
|
|
4381
4381
|
const l = n.textContent.split(Ge), f = l.length - 1;
|
|
4382
4382
|
if (f > 0) {
|
|
4383
4383
|
n.textContent = Dr ? Dr.emptyScript : "";
|
|
4384
|
-
for (let
|
|
4384
|
+
for (let v = 0; v < f; v++) n.append(l[v], fr()), rt.nextNode(), c.push({ type: 2, index: ++i });
|
|
4385
4385
|
n.append(l[f], fr());
|
|
4386
4386
|
}
|
|
4387
4387
|
}
|
|
4388
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
4388
|
+
} else if (n.nodeType === 8) if (n.data === Oc) c.push({ type: 2, index: i });
|
|
4389
4389
|
else {
|
|
4390
4390
|
let l = -1;
|
|
4391
4391
|
for (; (l = n.data.indexOf(Ge, l + 1)) !== -1; ) c.push({ type: 7, index: i }), l += Ge.length - 1;
|
|
@@ -4466,7 +4466,7 @@ class kr {
|
|
|
4466
4466
|
}
|
|
4467
4467
|
$(t) {
|
|
4468
4468
|
var i;
|
|
4469
|
-
const { values: r, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = mr.createElement(
|
|
4469
|
+
const { values: r, _$litType$: s } = t, n = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = mr.createElement(Rc(s.h, s.h[0]), this.options)), s);
|
|
4470
4470
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === n) this._$AH.p(r);
|
|
4471
4471
|
else {
|
|
4472
4472
|
const o = new l2(n, this), a = o.u(this.options);
|
|
@@ -4604,8 +4604,8 @@ class ar extends _t {
|
|
|
4604
4604
|
return Rt;
|
|
4605
4605
|
}
|
|
4606
4606
|
}
|
|
4607
|
-
var
|
|
4608
|
-
ar._$litElement$ = !0, ar.finalized = !0, (
|
|
4607
|
+
var bo;
|
|
4608
|
+
ar._$litElement$ = !0, ar.finalized = !0, (bo = ct.litElementHydrateSupport) == null || bo.call(ct, { LitElement: ar });
|
|
4609
4609
|
const Ts = ct.litElementPolyfillSupport;
|
|
4610
4610
|
Ts == null || Ts({ LitElement: ar });
|
|
4611
4611
|
(ct.litElementVersions ?? (ct.litElementVersions = [])).push("4.2.2");
|
|
@@ -4624,7 +4624,7 @@ const y2 = (e) => (t, r) => {
|
|
|
4624
4624
|
* Copyright 2017 Google LLC
|
|
4625
4625
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4626
4626
|
*/
|
|
4627
|
-
const
|
|
4627
|
+
const b2 = { attribute: !0, type: String, converter: Br, reflect: !1, hasChanged: Xn }, v2 = (e = b2, t, r) => {
|
|
4628
4628
|
const { kind: s, metadata: n } = r;
|
|
4629
4629
|
let i = globalThis.litPropertyMetadata.get(n);
|
|
4630
4630
|
if (i === void 0 && globalThis.litPropertyMetadata.set(n, i = /* @__PURE__ */ new Map()), s === "setter" && ((e = Object.create(e)).wrapped = !0), i.set(r.name, e), s === "accessor") {
|
|
@@ -4646,7 +4646,7 @@ const v2 = { attribute: !0, type: String, converter: Br, reflect: !1, hasChanged
|
|
|
4646
4646
|
throw Error("Unsupported decorator location: " + s);
|
|
4647
4647
|
};
|
|
4648
4648
|
function gt(e) {
|
|
4649
|
-
return (t, r) => typeof r == "object" ?
|
|
4649
|
+
return (t, r) => typeof r == "object" ? v2(e, t, r) : ((s, n, i) => {
|
|
4650
4650
|
const o = n.hasOwnProperty(i);
|
|
4651
4651
|
return n.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(n, i) : void 0;
|
|
4652
4652
|
})(e, t, r);
|
|
@@ -4681,11 +4681,11 @@ function w2(e, t) {
|
|
|
4681
4681
|
} });
|
|
4682
4682
|
};
|
|
4683
4683
|
}
|
|
4684
|
-
const A2 = 180,
|
|
4684
|
+
const A2 = 180, Nc = 5e3, Xs = "M 50 17 C 60 17 68 19.5 74 25 C 79 29.5 81.5 36.5 81.5 46.5 V 54.5 C 81.5 63.5 78.5 71 71.5 76.5 C 65 81.5 57.5 84 50 84 C 42.5 84 35 81.5 28.5 76.5 C 21.5 71 18.5 63.5 18.5 54.5 V 46.5 C 18.5 36.5 21 29.5 26 25 C 32 19.5 40 17 50 17 Z", E2 = `M 0 0 H 100 V 100 H 0 Z ${Xs}`;
|
|
4685
4685
|
function k2(e, t, r) {
|
|
4686
4686
|
if (t === null)
|
|
4687
4687
|
return "Center your face in the oval. We will capture automatically when framing looks good.";
|
|
4688
|
-
const s = Math.max(
|
|
4688
|
+
const s = Math.max(Nc - (e - t), 0), n = Math.max(Math.ceil(s / 1e3), 0);
|
|
4689
4689
|
return r.passesQualityChecks ? `Hold steady. Capturing the best frame in ${n}s.` : `${r.message} Best frame selection finishes in ${n}s.`;
|
|
4690
4690
|
}
|
|
4691
4691
|
function S2(e) {
|
|
@@ -4694,7 +4694,7 @@ function S2(e) {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
class T2 {
|
|
4696
4696
|
constructor(t) {
|
|
4697
|
-
this.frameCapture = Gu(), this.stopped = !1, this.animationFrameId = null, this.analysisTimerId = null, this.analysisInFlight = !1, this.lastAnalysisTimestamp = 0, this.countdownStartedAt = null, this.bestCaptureScore = -1, this.bestQualityResult = null, this.videoElement = t.videoElement, this.copy = t.copy, this.onStateChange = t.onStateChange, this.waitForReady = t.waitForReady ?? ((r) => ju(r)), this.assessLiveQuality = t.assessLiveQuality ??
|
|
4697
|
+
this.frameCapture = Gu(), this.stopped = !1, this.animationFrameId = null, this.analysisTimerId = null, this.analysisInFlight = !1, this.lastAnalysisTimestamp = 0, this.countdownStartedAt = null, this.bestCaptureScore = -1, this.bestQualityResult = null, this.videoElement = t.videoElement, this.copy = t.copy, this.onStateChange = t.onStateChange, this.waitForReady = t.waitForReady ?? ((r) => ju(r)), this.assessLiveQuality = t.assessLiveQuality ?? Ru, this.assessPreviewBlob = t.assessPreviewBlob ?? C2, this.mode = t.initialMode, this.state = this.createStartingState(), this.emit(this.state);
|
|
4698
4698
|
}
|
|
4699
4699
|
getState() {
|
|
4700
4700
|
return this.state;
|
|
@@ -4813,7 +4813,7 @@ class T2 {
|
|
|
4813
4813
|
if (this.stopped || this.mode !== "auto" || this.state.phase !== "live") return;
|
|
4814
4814
|
if (r.passesQualityChecks && (this.countdownStartedAt === null && (this.countdownStartedAt = t), r.captureScore > this.bestCaptureScore && (this.frameCapture.storeBestFrame(this.videoElement), this.bestCaptureScore = r.captureScore, this.bestQualityResult = r)), this.countdownStartedAt !== null) {
|
|
4815
4815
|
const s = Math.min(
|
|
4816
|
-
(t - this.countdownStartedAt) /
|
|
4816
|
+
(t - this.countdownStartedAt) / Nc,
|
|
4817
4817
|
1
|
|
4818
4818
|
);
|
|
4819
4819
|
if (s >= 1) {
|
|
@@ -4870,7 +4870,7 @@ class T2 {
|
|
|
4870
4870
|
}
|
|
4871
4871
|
async function C2(e) {
|
|
4872
4872
|
try {
|
|
4873
|
-
const t = await
|
|
4873
|
+
const t = await xc(e);
|
|
4874
4874
|
return await Sc(t);
|
|
4875
4875
|
} catch {
|
|
4876
4876
|
return null;
|
|
@@ -4883,7 +4883,7 @@ var P2 = Object.defineProperty, M2 = Object.getOwnPropertyDescriptor, Q = (e, t,
|
|
|
4883
4883
|
};
|
|
4884
4884
|
let G = class extends ar {
|
|
4885
4885
|
constructor() {
|
|
4886
|
-
super(...arguments), this.label =
|
|
4886
|
+
super(...arguments), this.label = Cc, this.embedded = !1, this.active = !1, this.confirmLabel = Pc, this.capturePreference = "auto-preferred", this.allowMediaPickerFallback = !0, this.captureState = "idle", this.errorMessage = "", this.feedbackMessage = "Start a capture to see camera guidance here.", this.feedbackTone = "neutral", this.previewUrl = "", this.qualityResult = null, this.canTakePhoto = !0, this.captureMode = "auto", this.stream = null, this.sessionController = null, this.currentCaptureStep = null, this.capturedBlob = null, this.pendingActiveSync = !1;
|
|
4887
4887
|
}
|
|
4888
4888
|
disconnectedCallback() {
|
|
4889
4889
|
super.disconnectedCallback(), this.stopSession();
|
|
@@ -4900,7 +4900,7 @@ let G = class extends ar {
|
|
|
4900
4900
|
}));
|
|
4901
4901
|
}
|
|
4902
4902
|
render() {
|
|
4903
|
-
return
|
|
4903
|
+
return Se`
|
|
4904
4904
|
<div class="container capture-shell">
|
|
4905
4905
|
${this.renderCaptureState()}
|
|
4906
4906
|
</div>
|
|
@@ -4910,11 +4910,19 @@ let G = class extends ar {
|
|
|
4910
4910
|
this.active = !0, await this.updateComplete, await this.beginCapture();
|
|
4911
4911
|
}
|
|
4912
4912
|
renderCaptureState() {
|
|
4913
|
-
var
|
|
4914
|
-
|
|
4913
|
+
var t;
|
|
4914
|
+
const e = this.captureState !== "idle";
|
|
4915
|
+
return Se`
|
|
4916
|
+
${e ? Se`<button class="close-btn" data-simface-action="cancel" @click=${this.handleCancel} aria-label="Close">
|
|
4917
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
4918
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
4919
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
4920
|
+
</svg>
|
|
4921
|
+
</button>` : ""}
|
|
4922
|
+
|
|
4915
4923
|
<p class="capture-copy">${this.label}</p>
|
|
4916
4924
|
|
|
4917
|
-
${this.captureState === "idle" ?
|
|
4925
|
+
${this.captureState === "idle" ? Se`<p class="capture-copy">Waiting for the host page to start capture.</p>` : Se`
|
|
4918
4926
|
<div class="stage">
|
|
4919
4927
|
<video
|
|
4920
4928
|
id="embedded-video"
|
|
@@ -4945,18 +4953,15 @@ let G = class extends ar {
|
|
|
4945
4953
|
</div>
|
|
4946
4954
|
|
|
4947
4955
|
<div class="btn-row">
|
|
4948
|
-
${this.captureState === "live" ?
|
|
4949
|
-
${this.captureMode === "manual" ?
|
|
4950
|
-
<button class="btn btn-ghost" data-simface-action="cancel" @click=${this.handleCancel}>Cancel</button>
|
|
4956
|
+
${this.captureState === "live" ? Se`
|
|
4957
|
+
${this.captureMode === "manual" ? Se`<button class="btn btn-primary" data-simface-action="capture" ?disabled=${!this.canTakePhoto} @click=${this.handleManualCapture}>Take photo</button>` : ""}
|
|
4951
4958
|
` : ""}
|
|
4952
|
-
${this.captureState === "preview" ?
|
|
4953
|
-
<button class="btn btn-
|
|
4954
|
-
${((
|
|
4955
|
-
<button class="btn btn-ghost" data-simface-action="cancel" @click=${this.handleCancel}>Cancel</button>
|
|
4959
|
+
${this.captureState === "preview" ? Se`
|
|
4960
|
+
<button class="btn btn-retake" data-simface-action="retake" @click=${this.handleRetake}>Retake</button>
|
|
4961
|
+
${((t = this.qualityResult) == null ? void 0 : t.passesQualityChecks) === !1 ? "" : Se`<button class="btn btn-confirm" data-simface-action="confirm" @click=${this.handleConfirm}>${this.confirmLabel}</button>`}
|
|
4956
4962
|
` : ""}
|
|
4957
|
-
${this.captureState === "error" ?
|
|
4963
|
+
${this.captureState === "error" ? Se`
|
|
4958
4964
|
<button class="btn btn-primary" data-simface-action="retry" @click=${this.beginCapture}>Try again</button>
|
|
4959
|
-
<button class="btn btn-ghost" data-simface-action="cancel" @click=${this.handleCancel}>Cancel</button>
|
|
4960
4965
|
` : ""}
|
|
4961
4966
|
</div>
|
|
4962
4967
|
`;
|
|
@@ -4965,7 +4970,7 @@ let G = class extends ar {
|
|
|
4965
4970
|
if (!this.active || this.captureState === "starting" || this.captureState === "live")
|
|
4966
4971
|
return;
|
|
4967
4972
|
this.stopSession(), this.resetState(), this.captureState = "starting", this.feedbackMessage = "Requesting camera access...", this.feedbackTone = "neutral";
|
|
4968
|
-
const e =
|
|
4973
|
+
const e = Mc({
|
|
4969
4974
|
presentation: "embedded",
|
|
4970
4975
|
capturePreference: this.capturePreference,
|
|
4971
4976
|
allowMediaPickerFallback: this.allowMediaPickerFallback,
|
|
@@ -5017,7 +5022,7 @@ let G = class extends ar {
|
|
|
5017
5022
|
async startMediaPicker() {
|
|
5018
5023
|
this.stopSession(), this.currentCaptureStep = "media-picker", this.captureState = "starting", this.feedbackMessage = "Opening media picker...", this.feedbackTone = "neutral";
|
|
5019
5024
|
try {
|
|
5020
|
-
const e = await
|
|
5025
|
+
const e = await Lc();
|
|
5021
5026
|
if (!e) {
|
|
5022
5027
|
this.handleCancel();
|
|
5023
5028
|
return;
|
|
@@ -5112,7 +5117,7 @@ let G = class extends ar {
|
|
|
5112
5117
|
}
|
|
5113
5118
|
async assessPickedBlob(e) {
|
|
5114
5119
|
try {
|
|
5115
|
-
const t = await
|
|
5120
|
+
const t = await xc(e);
|
|
5116
5121
|
return await Sc(t);
|
|
5117
5122
|
} catch {
|
|
5118
5123
|
return null;
|
|
@@ -5132,25 +5137,56 @@ G.styles = Ju`
|
|
|
5132
5137
|
:host([embedded]) {
|
|
5133
5138
|
max-width: none;
|
|
5134
5139
|
margin: 0;
|
|
5135
|
-
text-align: left;
|
|
5136
5140
|
}
|
|
5137
5141
|
|
|
5138
5142
|
.container {
|
|
5143
|
+
position: relative;
|
|
5139
5144
|
padding: 16px;
|
|
5140
5145
|
border: 1px solid #e0e0e0;
|
|
5141
|
-
border-radius:
|
|
5146
|
+
border-radius: 16px;
|
|
5142
5147
|
background: #fafafa;
|
|
5143
5148
|
}
|
|
5144
5149
|
|
|
5150
|
+
.close-btn {
|
|
5151
|
+
position: absolute;
|
|
5152
|
+
top: 12px;
|
|
5153
|
+
left: 12px;
|
|
5154
|
+
z-index: 10;
|
|
5155
|
+
display: inline-flex;
|
|
5156
|
+
align-items: center;
|
|
5157
|
+
justify-content: center;
|
|
5158
|
+
width: 40px;
|
|
5159
|
+
height: 40px;
|
|
5160
|
+
padding: 0;
|
|
5161
|
+
border: none;
|
|
5162
|
+
border-radius: 50%;
|
|
5163
|
+
background: rgba(0, 0, 0, 0.06);
|
|
5164
|
+
color: #49454f;
|
|
5165
|
+
cursor: pointer;
|
|
5166
|
+
transition: background-color 0.15s;
|
|
5167
|
+
}
|
|
5168
|
+
|
|
5169
|
+
.close-btn:hover {
|
|
5170
|
+
background: rgba(0, 0, 0, 0.12);
|
|
5171
|
+
}
|
|
5172
|
+
|
|
5173
|
+
.close-btn svg {
|
|
5174
|
+
width: 20px;
|
|
5175
|
+
height: 20px;
|
|
5176
|
+
}
|
|
5177
|
+
|
|
5145
5178
|
.capture-shell {
|
|
5146
5179
|
display: flex;
|
|
5147
5180
|
flex-direction: column;
|
|
5181
|
+
align-items: center;
|
|
5148
5182
|
gap: 16px;
|
|
5149
5183
|
}
|
|
5150
5184
|
|
|
5151
5185
|
.capture-copy {
|
|
5152
5186
|
margin: 0;
|
|
5153
5187
|
color: #334155;
|
|
5188
|
+
text-align: center;
|
|
5189
|
+
width: 100%;
|
|
5154
5190
|
}
|
|
5155
5191
|
|
|
5156
5192
|
.stage {
|
|
@@ -5163,7 +5199,6 @@ G.styles = Ju`
|
|
|
5163
5199
|
radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 30%),
|
|
5164
5200
|
linear-gradient(180deg, #0f172a, #020617);
|
|
5165
5201
|
box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
|
|
5166
|
-
align-self: center;
|
|
5167
5202
|
}
|
|
5168
5203
|
|
|
5169
5204
|
.video,
|
|
@@ -5219,22 +5254,23 @@ G.styles = Ju`
|
|
|
5219
5254
|
|
|
5220
5255
|
.btn-row {
|
|
5221
5256
|
display: flex;
|
|
5222
|
-
flex-wrap: wrap;
|
|
5223
5257
|
gap: 12px;
|
|
5258
|
+
width: min(100%, 420px);
|
|
5224
5259
|
}
|
|
5225
5260
|
|
|
5226
5261
|
.btn {
|
|
5227
5262
|
display: inline-flex;
|
|
5228
5263
|
align-items: center;
|
|
5229
5264
|
justify-content: center;
|
|
5230
|
-
|
|
5231
|
-
|
|
5265
|
+
flex: 1;
|
|
5266
|
+
padding: 14px 24px;
|
|
5232
5267
|
border: none;
|
|
5233
|
-
border-radius:
|
|
5234
|
-
font-size:
|
|
5268
|
+
border-radius: 100px;
|
|
5269
|
+
font-size: 15px;
|
|
5235
5270
|
font-weight: 600;
|
|
5271
|
+
letter-spacing: 0.02em;
|
|
5236
5272
|
cursor: pointer;
|
|
5237
|
-
transition: background-color 0.
|
|
5273
|
+
transition: background-color 0.15s, box-shadow 0.15s;
|
|
5238
5274
|
}
|
|
5239
5275
|
|
|
5240
5276
|
.btn-primary {
|
|
@@ -5244,11 +5280,33 @@ G.styles = Ju`
|
|
|
5244
5280
|
|
|
5245
5281
|
.btn-primary:hover {
|
|
5246
5282
|
background: #1d4ed8;
|
|
5283
|
+
box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
|
|
5247
5284
|
}
|
|
5248
5285
|
|
|
5249
5286
|
.btn-primary:disabled {
|
|
5250
5287
|
background: #93c5fd;
|
|
5251
5288
|
cursor: not-allowed;
|
|
5289
|
+
box-shadow: none;
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
.btn-confirm {
|
|
5293
|
+
background: #16a34a;
|
|
5294
|
+
color: white;
|
|
5295
|
+
}
|
|
5296
|
+
|
|
5297
|
+
.btn-confirm:hover {
|
|
5298
|
+
background: #15803d;
|
|
5299
|
+
box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
|
|
5300
|
+
}
|
|
5301
|
+
|
|
5302
|
+
.btn-retake {
|
|
5303
|
+
background: #dc2626;
|
|
5304
|
+
color: white;
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
.btn-retake:hover {
|
|
5308
|
+
background: #b91c1c;
|
|
5309
|
+
box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
|
|
5252
5310
|
}
|
|
5253
5311
|
|
|
5254
5312
|
.btn-secondary {
|
|
@@ -5260,17 +5318,17 @@ G.styles = Ju`
|
|
|
5260
5318
|
background: #d1d5db;
|
|
5261
5319
|
}
|
|
5262
5320
|
|
|
5263
|
-
.btn-ghost {
|
|
5264
|
-
background: #e2e8f0;
|
|
5265
|
-
color: #0f172a;
|
|
5266
|
-
}
|
|
5267
|
-
|
|
5268
5321
|
.quality-msg {
|
|
5269
5322
|
padding: 10px 14px;
|
|
5270
5323
|
border-radius: 14px;
|
|
5271
|
-
margin: 8px 0 0;
|
|
5272
5324
|
font-size: 14px;
|
|
5273
5325
|
font-weight: 600;
|
|
5326
|
+
width: min(100%, 420px);
|
|
5327
|
+
min-height: 44px;
|
|
5328
|
+
display: flex;
|
|
5329
|
+
align-items: center;
|
|
5330
|
+
justify-content: center;
|
|
5331
|
+
text-align: center;
|
|
5274
5332
|
}
|
|
5275
5333
|
|
|
5276
5334
|
.quality-good {
|
|
@@ -5362,37 +5420,37 @@ Q([
|
|
|
5362
5420
|
G = Q([
|
|
5363
5421
|
y2("simface-capture")
|
|
5364
5422
|
], G);
|
|
5365
|
-
const
|
|
5423
|
+
const Uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5366
5424
|
__proto__: null,
|
|
5367
5425
|
get SimFaceCapture() {
|
|
5368
5426
|
return G;
|
|
5369
5427
|
}
|
|
5370
5428
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5371
5429
|
async function O2(e, t, r) {
|
|
5372
|
-
const s = new
|
|
5430
|
+
const s = new vo(e);
|
|
5373
5431
|
await s.validateAPIKey();
|
|
5374
|
-
const n = await
|
|
5432
|
+
const n = await Bc(r);
|
|
5375
5433
|
if (!n)
|
|
5376
5434
|
return { success: !1, clientId: t, message: "Capture cancelled by user" };
|
|
5377
5435
|
const i = await s.enroll(t, n);
|
|
5378
5436
|
return i.alreadyEnrolled, i;
|
|
5379
5437
|
}
|
|
5380
5438
|
async function I2(e, t, r) {
|
|
5381
|
-
const s = new
|
|
5439
|
+
const s = new vo(e);
|
|
5382
5440
|
await s.validateAPIKey();
|
|
5383
|
-
const n = await
|
|
5441
|
+
const n = await Bc(r);
|
|
5384
5442
|
return n ? s.verify(t, n) : { match: !1, score: 0, threshold: 0, message: "Capture cancelled by user" };
|
|
5385
5443
|
}
|
|
5386
|
-
async function
|
|
5444
|
+
async function Bc(e) {
|
|
5387
5445
|
return Wu(e);
|
|
5388
5446
|
}
|
|
5389
5447
|
export {
|
|
5390
|
-
|
|
5448
|
+
vo as SimFaceAPIClient,
|
|
5391
5449
|
G as SimFaceCapture,
|
|
5392
5450
|
Sc as assessFaceQuality,
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5451
|
+
Ru as assessFaceQualityForVideo,
|
|
5452
|
+
x2 as blobToDataURL,
|
|
5453
|
+
xc as blobToImage,
|
|
5396
5454
|
Wu as captureFromCamera,
|
|
5397
5455
|
O2 as enroll,
|
|
5398
5456
|
I2 as verify
|