@tsocial/tvweb-sdk.msb 0.0.0-beta.20251215-170414 → 0.0.0-beta.20251217-142321
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/build/tvweb-sdk.cjs.min.js +757 -757
- package/build/tvweb-sdk.esm.min.js +757 -757
- package/build/tvweb-sdk.msb.standalone.js +566 -548
- package/build/tvweb-sdk.msb.standalone.min.js +757 -757
- package/build/types/index.d.ts +2 -0
- package/package.json +5 -5
|
@@ -33783,7 +33783,7 @@
|
|
|
33783
33783
|
}, nS$1;
|
|
33784
33784
|
}();
|
|
33785
33785
|
function nB$1() {
|
|
33786
|
-
return "0.0.0-beta.
|
|
33786
|
+
return "0.0.0-beta.20251217-142321";
|
|
33787
33787
|
}
|
|
33788
33788
|
function nI$1() {
|
|
33789
33789
|
return {
|
|
@@ -41260,52 +41260,49 @@
|
|
|
41260
41260
|
}(), uG);
|
|
41261
41261
|
}();
|
|
41262
41262
|
function dm(e, t) {
|
|
41263
|
-
let r =
|
|
41263
|
+
let r = dv();
|
|
41264
41264
|
return (dm = function(e, t) {
|
|
41265
|
-
return r[e -=
|
|
41265
|
+
return r[e -= 360];
|
|
41266
41266
|
})(e, t);
|
|
41267
41267
|
}
|
|
41268
|
-
let dg = dm;
|
|
41269
|
-
|
|
41268
|
+
let dg = dm, dy = dm, db = dv();
|
|
41269
|
+
for(;;)try {
|
|
41270
|
+
if (parseInt(dy(360)) / 1 + parseInt(dy(376)) / 2 * (parseInt(dy(364)) / 3) + parseInt(dy(377)) / 4 * (parseInt(dy(367)) / 5) + -parseInt(dy(380)) / 6 + parseInt(dy(374)) / 7 * (parseInt(dy(369)) / 8) + -parseInt(dy(373)) / 9 * (parseInt(dy(378)) / 10) + parseInt(dy(365)) / 11 === 431675) break;
|
|
41271
|
+
db.push(db.shift());
|
|
41272
|
+
} catch (e) {
|
|
41273
|
+
db.push(db.shift());
|
|
41274
|
+
}
|
|
41275
|
+
function dv() {
|
|
41270
41276
|
let e = [
|
|
41271
|
-
"
|
|
41272
|
-
"
|
|
41273
|
-
"DepBO8t60S",
|
|
41274
|
-
"+faHkP3QC3",
|
|
41275
|
-
"D9EKOWS+U4",
|
|
41276
|
-
"KA==",
|
|
41277
|
-
"000",
|
|
41278
|
-
"KoZIzj0DAQ",
|
|
41279
|
-
"ssRdXLZEX8",
|
|
41280
|
-
"78pJsmjA",
|
|
41281
|
-
"23755112qixOGK",
|
|
41282
|
-
"ytJdcsPxrD",
|
|
41277
|
+
"431298HdIesc",
|
|
41278
|
+
"28QBzsDj",
|
|
41283
41279
|
"MfPrcYTM70",
|
|
41284
|
-
"
|
|
41285
|
-
"
|
|
41280
|
+
"278jLdKKf",
|
|
41281
|
+
"69524PqGfjj",
|
|
41282
|
+
"40oyrDAO",
|
|
41283
|
+
"Mjci1ul8mm",
|
|
41284
|
+
"4090686MGSzKL",
|
|
41285
|
+
"ssRdXLZEX8",
|
|
41286
41286
|
"44P0rKKsZK",
|
|
41287
|
-
"
|
|
41288
|
-
"
|
|
41289
|
-
"
|
|
41290
|
-
"653601YIYffL",
|
|
41291
|
-
"2315541rITdMg",
|
|
41287
|
+
"388265omPOkm",
|
|
41288
|
+
"D9EKOWS+U4",
|
|
41289
|
+
"KA==",
|
|
41292
41290
|
"2a8648ce3d",
|
|
41293
|
-
"
|
|
41294
|
-
"
|
|
41295
|
-
"
|
|
41291
|
+
"1131IWqIwd",
|
|
41292
|
+
"3490498FdsWqz",
|
|
41293
|
+
"MFkwEwYHKo",
|
|
41294
|
+
"130pWIRuI",
|
|
41295
|
+
"KoZIzj0DAQ",
|
|
41296
|
+
"190504tfNTkt",
|
|
41297
|
+
"ZIzj0CAQYI",
|
|
41298
|
+
"3d02010608",
|
|
41299
|
+
"DepBO8t60S"
|
|
41296
41300
|
];
|
|
41297
|
-
return (
|
|
41301
|
+
return (dv = function() {
|
|
41298
41302
|
return e;
|
|
41299
41303
|
})();
|
|
41300
41304
|
}
|
|
41301
|
-
let
|
|
41302
|
-
for(;;)try {
|
|
41303
|
-
if (parseInt(db(350)) / 1 + parseInt(db(353)) / 2 + parseInt(db(351)) / 3 + parseInt(db(349)) / 4 + parseInt(db(345)) / 5 * (parseInt(db(340)) / 6) + parseInt(db(348)) / 7 + -parseInt(db(341)) / 8 === 573683) break;
|
|
41304
|
-
dv.push(dv.shift());
|
|
41305
|
-
} catch (e) {
|
|
41306
|
-
dv.push(dv.shift());
|
|
41307
|
-
}
|
|
41308
|
-
let d_ = dg(355) + dg(357) + "3d02010608" + dg(352) + dg(356) + dg(337), dx = dg(344) + "ZIzj0CAQYI" + dg(338) + dg(347) + dg(358) + dg(342) + dg(334) + dg(346) + dg(354) + dg(335) + dg(343) + dg(339) + dg(336);
|
|
41305
|
+
let d_ = "3059301306072a8648ce" + dg(371) + dg(363) + "0301070342000", dx = dg(366) + dg(370) + dg(368) + "cDQgAE9h6Z" + dg(372) + "ytJdcsPxrD+faHkP3QC3" + dg(382) + dg(379) + dg(361) + dg(375) + dg(381) + dg(362);
|
|
41309
41306
|
async function dC(e) {
|
|
41310
41307
|
let t = new TextEncoder().encode(e);
|
|
41311
41308
|
return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
|
|
@@ -53107,7 +53104,7 @@
|
|
|
53107
53104
|
});
|
|
53108
53105
|
};
|
|
53109
53106
|
|
|
53110
|
-
var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu,
|
|
53107
|
+
var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu, ep, ef, eh, em, eg, eb, ev, ew, ek, ey, eC, eB, e_, ex, eP, eS, eE, eT, eD, e$, ej, eI, eO, eM, eA, eR, eL, eF, eN, ez, eV, eW, eU, eq, eQ, eX, eH, eG, eZ, eK, eY, eJ, e3, e2, e5, e0, e1, e8, e9, e4, e7, e6, te, tt, tr, to, tn, ti, ta, ts, tc, tl, td, tu, tp, tf, th, tm, tg, tb, tv, tw, tk, ty, tC, tB, t_, tx, tP, tS, tE, tT, tD, t$, tj, tI, tO, tM, tA, tR, tL, tF, tN, tz, tV, tW, tU, tq, tQ, tX, tH, tG, tZ, tK, tY, tJ, t3, t2, t5, t0, t1, t8, t9, t4, t7, t6, re, rt, rr, ro, rn, ri, ra, rs, rc, rl, rd, ru, rp, rf, rh, rm, rg, rb, rv, rw, rk, ry, rC, rB, r_, rx, rP, rS, rE, rT, rD, r$, rj, rI, rO, rM, rA, rR, rL, rF, rN, rz, rV, rW, rU, rq, rQ, rX, rH, rG, rZ, rK, rY, rJ, r3, r2, r5, r0, r1, r8, r9, r4, r7, r6, oe, ot, or, oo, on, oi, oa, os, oc, ol, od, ou, op, of, oh, om, og, ob, ov, ow, ok, oy, oC, oB, o_, ox, oP, oS, oE, oT, oD, o$, oj, oI, oO, oM, oA, oR, oL, oF, oN, oz, oV, oW, oq, oQ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
|
|
53111
53108
|
function oX(t) {
|
|
53112
53109
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53113
53110
|
}
|
|
@@ -53186,7 +53183,7 @@
|
|
|
53186
53183
|
};
|
|
53187
53184
|
}
|
|
53188
53185
|
function o5() {
|
|
53189
|
-
return
|
|
53186
|
+
return ef ? ep : (ef = 1, ep = function(t) {
|
|
53190
53187
|
return null != t && "object" == typeof t;
|
|
53191
53188
|
});
|
|
53192
53189
|
}
|
|
@@ -53418,10 +53415,10 @@
|
|
|
53418
53415
|
return t(this, r).get(r);
|
|
53419
53416
|
};
|
|
53420
53417
|
}(), n = function() {
|
|
53421
|
-
if (
|
|
53422
|
-
|
|
53418
|
+
if (tf) return tp;
|
|
53419
|
+
tf = 1;
|
|
53423
53420
|
var t = nr();
|
|
53424
|
-
return
|
|
53421
|
+
return tp = function(r) {
|
|
53425
53422
|
return t(this, r).has(r);
|
|
53426
53423
|
};
|
|
53427
53424
|
}(), i = function() {
|
|
@@ -53564,16 +53561,16 @@
|
|
|
53564
53561
|
function nc(t, r) {
|
|
53565
53562
|
return t.replace(RegExp("(^|\\s)" + r + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
53566
53563
|
}
|
|
53567
|
-
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted",
|
|
53564
|
+
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted", np = "exited", nf = "entering", nh = "entered", nm = "exiting", ng = function(r) {
|
|
53568
53565
|
function o(t, o) {
|
|
53569
53566
|
var n, i = r.call(this, t, o) || this, a = o && !o.isMounting ? t.enter : t.appear;
|
|
53570
|
-
return i.appearStatus = null, t.in ? a ? (n =
|
|
53567
|
+
return i.appearStatus = null, t.in ? a ? (n = np, i.appearStatus = nf) : n = nh : n = t.unmountOnExit || t.mountOnEnter ? nu : np, i.state = {
|
|
53571
53568
|
status: n
|
|
53572
53569
|
}, i.nextCallback = null, i;
|
|
53573
53570
|
}
|
|
53574
53571
|
ns(o, r), o.getDerivedStateFromProps = function(t, r) {
|
|
53575
53572
|
return t.in && r.status === nu ? {
|
|
53576
|
-
status:
|
|
53573
|
+
status: np
|
|
53577
53574
|
} : null;
|
|
53578
53575
|
};
|
|
53579
53576
|
var n = o.prototype;
|
|
@@ -53583,7 +53580,7 @@
|
|
|
53583
53580
|
var r = null;
|
|
53584
53581
|
if (t !== this.props) {
|
|
53585
53582
|
var o = this.state.status;
|
|
53586
|
-
this.props.in ? o !==
|
|
53583
|
+
this.props.in ? o !== nf && o !== nh && (r = nf) : (o === nf || o === nh) && (r = nm);
|
|
53587
53584
|
}
|
|
53588
53585
|
this.updateStatus(!1, r);
|
|
53589
53586
|
}, n.componentWillUnmount = function() {
|
|
@@ -53596,7 +53593,7 @@
|
|
|
53596
53593
|
appear: o
|
|
53597
53594
|
};
|
|
53598
53595
|
}, n.updateStatus = function(t, r) {
|
|
53599
|
-
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r ===
|
|
53596
|
+
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r === nf ? this.performEnter(t) : this.performExit()) : this.props.unmountOnExit && this.state.status === np && this.setState({
|
|
53600
53597
|
status: nu
|
|
53601
53598
|
});
|
|
53602
53599
|
}, n.performEnter = function(t) {
|
|
@@ -53607,7 +53604,7 @@
|
|
|
53607
53604
|
n
|
|
53608
53605
|
], a = i[0], s = i[1], c = this.getTimeouts(), l = n ? c.appear : c.enter;
|
|
53609
53606
|
(t || o) && !nl ? (this.props.onEnter(a, s), this.safeSetState({
|
|
53610
|
-
status:
|
|
53607
|
+
status: nf
|
|
53611
53608
|
}, function() {
|
|
53612
53609
|
r.props.onEntering(a, s), r.onTransitionEnd(l, function() {
|
|
53613
53610
|
r.safeSetState({
|
|
@@ -53624,7 +53621,7 @@
|
|
|
53624
53621
|
}, n.performExit = function() {
|
|
53625
53622
|
var t = this, r = this.props.exit, o = this.getTimeouts(), n = this.props.nodeRef ? void 0 : ReactDOM.findDOMNode(this);
|
|
53626
53623
|
!r || nl ? this.safeSetState({
|
|
53627
|
-
status:
|
|
53624
|
+
status: np
|
|
53628
53625
|
}, function() {
|
|
53629
53626
|
t.props.onExited(n);
|
|
53630
53627
|
}) : (this.props.onExit(n), this.safeSetState({
|
|
@@ -53632,7 +53629,7 @@
|
|
|
53632
53629
|
}, function() {
|
|
53633
53630
|
t.props.onExiting(n), t.onTransitionEnd(o.exit, function() {
|
|
53634
53631
|
t.safeSetState({
|
|
53635
|
-
status:
|
|
53632
|
+
status: np
|
|
53636
53633
|
}, function() {
|
|
53637
53634
|
t.props.onExited(n);
|
|
53638
53635
|
});
|
|
@@ -53705,7 +53702,7 @@
|
|
|
53705
53702
|
onExit: nb,
|
|
53706
53703
|
onExiting: nb,
|
|
53707
53704
|
onExited: nb
|
|
53708
|
-
}, ng.UNMOUNTED = nu, ng.EXITED =
|
|
53705
|
+
}, ng.UNMOUNTED = nu, ng.EXITED = np, ng.ENTERING = nf, ng.ENTERED = nh, ng.EXITING = nm;
|
|
53709
53706
|
var nv = function(t, r) {
|
|
53710
53707
|
return t && r && r.split(" ").forEach(function(r) {
|
|
53711
53708
|
var o, n;
|
|
@@ -53800,7 +53797,7 @@
|
|
|
53800
53797
|
return /*#__PURE__*/ React.cloneElement(o, {
|
|
53801
53798
|
in: !1,
|
|
53802
53799
|
onExited: nC(o, "onExited", function() {
|
|
53803
|
-
n(
|
|
53800
|
+
n(nf, null);
|
|
53804
53801
|
})
|
|
53805
53802
|
});
|
|
53806
53803
|
}, tL[ny] = function(r) {
|
|
@@ -53810,7 +53807,7 @@
|
|
|
53810
53807
|
/*#__PURE__*/ React.cloneElement(i, {
|
|
53811
53808
|
in: !0,
|
|
53812
53809
|
onEntered: nC(i, "onEntered", function() {
|
|
53813
|
-
n(
|
|
53810
|
+
n(nf);
|
|
53814
53811
|
})
|
|
53815
53812
|
})
|
|
53816
53813
|
];
|
|
@@ -53863,8 +53860,8 @@
|
|
|
53863
53860
|
if (null == r.children) return {
|
|
53864
53861
|
current: null
|
|
53865
53862
|
};
|
|
53866
|
-
if (o.status ===
|
|
53867
|
-
status:
|
|
53863
|
+
if (o.status === nf && r.mode === ny) return {
|
|
53864
|
+
status: nf
|
|
53868
53865
|
};
|
|
53869
53866
|
return o.current && (n = o.current, !(n === (i = r.children) || /*#__PURE__*/ React.isValidElement(n) && /*#__PURE__*/ React.isValidElement(i) && null != n.key && n.key === i.key) && 1) ? {
|
|
53870
53867
|
status: nm
|
|
@@ -53881,7 +53878,7 @@
|
|
|
53881
53878
|
status: s
|
|
53882
53879
|
};
|
|
53883
53880
|
switch(s){
|
|
53884
|
-
case
|
|
53881
|
+
case nf:
|
|
53885
53882
|
r = n_[i](l);
|
|
53886
53883
|
break;
|
|
53887
53884
|
case nm:
|
|
@@ -53911,7 +53908,7 @@
|
|
|
53911
53908
|
var t, r;
|
|
53912
53909
|
if (tN) return nS.exports;
|
|
53913
53910
|
return tN = 1, t = nS, r = nS.exports, function(o, n) {
|
|
53914
|
-
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name",
|
|
53911
|
+
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name", p = "type", f = "vendor", h = "version", m = "architecture", g = "console", b = "mobile", v = "tablet", w = "smarttv", k = "wearable", y = "embedded", C = "Amazon", B = "Apple", _ = "ASUS", x = "BlackBerry", P = "Browser", S = "Chrome", E = "Firefox", T = "Google", D = "Huawei", $ = "Microsoft", j = "Motorola", I = "Opera", O = "Samsung", M = "Sharp", A = "Sony", R = "Xiaomi", L = "Zebra", F = "Facebook", N = "Chromium OS", z = "Mac OS", V = function(t, r) {
|
|
53915
53912
|
var o = {};
|
|
53916
53913
|
for(var n in t)r[n] && r[n].length % 2 == 0 ? o[n] = r[n].concat(t[n]) : o[n] = t[n];
|
|
53917
53914
|
return o;
|
|
@@ -53926,9 +53923,9 @@
|
|
|
53926
53923
|
if (typeof t === c) return t = t.replace(/^\s\s*/, ""), typeof r === a ? t : t.substring(0, 500);
|
|
53927
53924
|
}, X = function(t, r) {
|
|
53928
53925
|
for(var o, n, a, c, l, d, u = 0; u < r.length && !l;){
|
|
53929
|
-
var
|
|
53930
|
-
for(o = n = 0; o <
|
|
53931
|
-
if (l =
|
|
53926
|
+
var p = r[u], f = r[u + 1];
|
|
53927
|
+
for(o = n = 0; o < p.length && !l && p[o];){
|
|
53928
|
+
if (l = p[o++].exec(t)) for(a = 0; a < f.length; a++)d = l[++n], typeof (c = f[a]) === s && c.length > 0 ? 2 === c.length ? typeof c[1] == i ? this[c[0]] = c[1].call(this, d) : this[c[0]] = c[1] : 3 === c.length ? typeof c[1] !== i || c[1].exec && c[1].test ? this[c[0]] = d ? d.replace(c[1], c[2]) : void 0 : this[c[0]] = d ? c[1].call(this, d, c[2]) : void 0 : 4 === c.length && (this[c[0]] = d ? c[3].call(this, d.replace(c[1], c[2])) : void 0) : this[c] = d || void 0;
|
|
53932
53929
|
}
|
|
53933
53930
|
u += 2;
|
|
53934
53931
|
}
|
|
@@ -54512,11 +54509,11 @@
|
|
|
54512
54509
|
[
|
|
54513
54510
|
d,
|
|
54514
54511
|
[
|
|
54515
|
-
|
|
54512
|
+
f,
|
|
54516
54513
|
O
|
|
54517
54514
|
],
|
|
54518
54515
|
[
|
|
54519
|
-
|
|
54516
|
+
p,
|
|
54520
54517
|
v
|
|
54521
54518
|
]
|
|
54522
54519
|
],
|
|
@@ -54528,11 +54525,11 @@
|
|
|
54528
54525
|
[
|
|
54529
54526
|
d,
|
|
54530
54527
|
[
|
|
54531
|
-
|
|
54528
|
+
f,
|
|
54532
54529
|
O
|
|
54533
54530
|
],
|
|
54534
54531
|
[
|
|
54535
|
-
|
|
54532
|
+
p,
|
|
54536
54533
|
b
|
|
54537
54534
|
]
|
|
54538
54535
|
],
|
|
@@ -54542,11 +54539,11 @@
|
|
|
54542
54539
|
[
|
|
54543
54540
|
d,
|
|
54544
54541
|
[
|
|
54545
|
-
|
|
54542
|
+
f,
|
|
54546
54543
|
B
|
|
54547
54544
|
],
|
|
54548
54545
|
[
|
|
54549
|
-
|
|
54546
|
+
p,
|
|
54550
54547
|
b
|
|
54551
54548
|
]
|
|
54552
54549
|
],
|
|
@@ -54558,11 +54555,11 @@
|
|
|
54558
54555
|
[
|
|
54559
54556
|
d,
|
|
54560
54557
|
[
|
|
54561
|
-
|
|
54558
|
+
f,
|
|
54562
54559
|
B
|
|
54563
54560
|
],
|
|
54564
54561
|
[
|
|
54565
|
-
|
|
54562
|
+
p,
|
|
54566
54563
|
v
|
|
54567
54564
|
]
|
|
54568
54565
|
],
|
|
@@ -54572,7 +54569,7 @@
|
|
|
54572
54569
|
[
|
|
54573
54570
|
d,
|
|
54574
54571
|
[
|
|
54575
|
-
|
|
54572
|
+
f,
|
|
54576
54573
|
B
|
|
54577
54574
|
]
|
|
54578
54575
|
],
|
|
@@ -54582,11 +54579,11 @@
|
|
|
54582
54579
|
[
|
|
54583
54580
|
d,
|
|
54584
54581
|
[
|
|
54585
|
-
|
|
54582
|
+
f,
|
|
54586
54583
|
M
|
|
54587
54584
|
],
|
|
54588
54585
|
[
|
|
54589
|
-
|
|
54586
|
+
p,
|
|
54590
54587
|
b
|
|
54591
54588
|
]
|
|
54592
54589
|
],
|
|
@@ -54596,11 +54593,11 @@
|
|
|
54596
54593
|
[
|
|
54597
54594
|
d,
|
|
54598
54595
|
[
|
|
54599
|
-
|
|
54596
|
+
f,
|
|
54600
54597
|
D
|
|
54601
54598
|
],
|
|
54602
54599
|
[
|
|
54603
|
-
|
|
54600
|
+
p,
|
|
54604
54601
|
v
|
|
54605
54602
|
]
|
|
54606
54603
|
],
|
|
@@ -54611,11 +54608,11 @@
|
|
|
54611
54608
|
[
|
|
54612
54609
|
d,
|
|
54613
54610
|
[
|
|
54614
|
-
|
|
54611
|
+
f,
|
|
54615
54612
|
D
|
|
54616
54613
|
],
|
|
54617
54614
|
[
|
|
54618
|
-
|
|
54615
|
+
p,
|
|
54619
54616
|
b
|
|
54620
54617
|
]
|
|
54621
54618
|
],
|
|
@@ -54634,11 +54631,11 @@
|
|
|
54634
54631
|
" "
|
|
54635
54632
|
],
|
|
54636
54633
|
[
|
|
54637
|
-
|
|
54634
|
+
f,
|
|
54638
54635
|
R
|
|
54639
54636
|
],
|
|
54640
54637
|
[
|
|
54641
|
-
|
|
54638
|
+
p,
|
|
54642
54639
|
b
|
|
54643
54640
|
]
|
|
54644
54641
|
],
|
|
@@ -54653,11 +54650,11 @@
|
|
|
54653
54650
|
" "
|
|
54654
54651
|
],
|
|
54655
54652
|
[
|
|
54656
|
-
|
|
54653
|
+
f,
|
|
54657
54654
|
R
|
|
54658
54655
|
],
|
|
54659
54656
|
[
|
|
54660
|
-
|
|
54657
|
+
p,
|
|
54661
54658
|
v
|
|
54662
54659
|
]
|
|
54663
54660
|
],
|
|
@@ -54668,11 +54665,11 @@
|
|
|
54668
54665
|
[
|
|
54669
54666
|
d,
|
|
54670
54667
|
[
|
|
54671
|
-
|
|
54668
|
+
f,
|
|
54672
54669
|
"OPPO"
|
|
54673
54670
|
],
|
|
54674
54671
|
[
|
|
54675
|
-
|
|
54672
|
+
p,
|
|
54676
54673
|
b
|
|
54677
54674
|
]
|
|
54678
54675
|
],
|
|
@@ -54683,11 +54680,11 @@
|
|
|
54683
54680
|
[
|
|
54684
54681
|
d,
|
|
54685
54682
|
[
|
|
54686
|
-
|
|
54683
|
+
f,
|
|
54687
54684
|
"Vivo"
|
|
54688
54685
|
],
|
|
54689
54686
|
[
|
|
54690
|
-
|
|
54687
|
+
p,
|
|
54691
54688
|
b
|
|
54692
54689
|
]
|
|
54693
54690
|
],
|
|
@@ -54697,11 +54694,11 @@
|
|
|
54697
54694
|
[
|
|
54698
54695
|
d,
|
|
54699
54696
|
[
|
|
54700
|
-
|
|
54697
|
+
f,
|
|
54701
54698
|
"Realme"
|
|
54702
54699
|
],
|
|
54703
54700
|
[
|
|
54704
|
-
|
|
54701
|
+
p,
|
|
54705
54702
|
b
|
|
54706
54703
|
]
|
|
54707
54704
|
],
|
|
@@ -54713,11 +54710,11 @@
|
|
|
54713
54710
|
[
|
|
54714
54711
|
d,
|
|
54715
54712
|
[
|
|
54716
|
-
|
|
54713
|
+
f,
|
|
54717
54714
|
j
|
|
54718
54715
|
],
|
|
54719
54716
|
[
|
|
54720
|
-
|
|
54717
|
+
p,
|
|
54721
54718
|
b
|
|
54722
54719
|
]
|
|
54723
54720
|
],
|
|
@@ -54727,11 +54724,11 @@
|
|
|
54727
54724
|
[
|
|
54728
54725
|
d,
|
|
54729
54726
|
[
|
|
54730
|
-
|
|
54727
|
+
f,
|
|
54731
54728
|
j
|
|
54732
54729
|
],
|
|
54733
54730
|
[
|
|
54734
|
-
|
|
54731
|
+
p,
|
|
54735
54732
|
v
|
|
54736
54733
|
]
|
|
54737
54734
|
],
|
|
@@ -54741,11 +54738,11 @@
|
|
|
54741
54738
|
[
|
|
54742
54739
|
d,
|
|
54743
54740
|
[
|
|
54744
|
-
|
|
54741
|
+
f,
|
|
54745
54742
|
"LG"
|
|
54746
54743
|
],
|
|
54747
54744
|
[
|
|
54748
|
-
|
|
54745
|
+
p,
|
|
54749
54746
|
v
|
|
54750
54747
|
]
|
|
54751
54748
|
],
|
|
@@ -54757,11 +54754,11 @@
|
|
|
54757
54754
|
[
|
|
54758
54755
|
d,
|
|
54759
54756
|
[
|
|
54760
|
-
|
|
54757
|
+
f,
|
|
54761
54758
|
"LG"
|
|
54762
54759
|
],
|
|
54763
54760
|
[
|
|
54764
|
-
|
|
54761
|
+
p,
|
|
54765
54762
|
b
|
|
54766
54763
|
]
|
|
54767
54764
|
],
|
|
@@ -54772,11 +54769,11 @@
|
|
|
54772
54769
|
[
|
|
54773
54770
|
d,
|
|
54774
54771
|
[
|
|
54775
|
-
|
|
54772
|
+
f,
|
|
54776
54773
|
"Lenovo"
|
|
54777
54774
|
],
|
|
54778
54775
|
[
|
|
54779
|
-
|
|
54776
|
+
p,
|
|
54780
54777
|
v
|
|
54781
54778
|
]
|
|
54782
54779
|
],
|
|
@@ -54791,11 +54788,11 @@
|
|
|
54791
54788
|
" "
|
|
54792
54789
|
],
|
|
54793
54790
|
[
|
|
54794
|
-
|
|
54791
|
+
f,
|
|
54795
54792
|
"Nokia"
|
|
54796
54793
|
],
|
|
54797
54794
|
[
|
|
54798
|
-
|
|
54795
|
+
p,
|
|
54799
54796
|
b
|
|
54800
54797
|
]
|
|
54801
54798
|
],
|
|
@@ -54805,11 +54802,11 @@
|
|
|
54805
54802
|
[
|
|
54806
54803
|
d,
|
|
54807
54804
|
[
|
|
54808
|
-
|
|
54805
|
+
f,
|
|
54809
54806
|
T
|
|
54810
54807
|
],
|
|
54811
54808
|
[
|
|
54812
|
-
|
|
54809
|
+
p,
|
|
54813
54810
|
v
|
|
54814
54811
|
]
|
|
54815
54812
|
],
|
|
@@ -54819,11 +54816,11 @@
|
|
|
54819
54816
|
[
|
|
54820
54817
|
d,
|
|
54821
54818
|
[
|
|
54822
|
-
|
|
54819
|
+
f,
|
|
54823
54820
|
T
|
|
54824
54821
|
],
|
|
54825
54822
|
[
|
|
54826
|
-
|
|
54823
|
+
p,
|
|
54827
54824
|
b
|
|
54828
54825
|
]
|
|
54829
54826
|
],
|
|
@@ -54833,11 +54830,11 @@
|
|
|
54833
54830
|
[
|
|
54834
54831
|
d,
|
|
54835
54832
|
[
|
|
54836
|
-
|
|
54833
|
+
f,
|
|
54837
54834
|
A
|
|
54838
54835
|
],
|
|
54839
54836
|
[
|
|
54840
|
-
|
|
54837
|
+
p,
|
|
54841
54838
|
b
|
|
54842
54839
|
]
|
|
54843
54840
|
],
|
|
@@ -54851,11 +54848,11 @@
|
|
|
54851
54848
|
"Xperia Tablet"
|
|
54852
54849
|
],
|
|
54853
54850
|
[
|
|
54854
|
-
|
|
54851
|
+
f,
|
|
54855
54852
|
A
|
|
54856
54853
|
],
|
|
54857
54854
|
[
|
|
54858
|
-
|
|
54855
|
+
p,
|
|
54859
54856
|
v
|
|
54860
54857
|
]
|
|
54861
54858
|
],
|
|
@@ -54866,11 +54863,11 @@
|
|
|
54866
54863
|
[
|
|
54867
54864
|
d,
|
|
54868
54865
|
[
|
|
54869
|
-
|
|
54866
|
+
f,
|
|
54870
54867
|
"OnePlus"
|
|
54871
54868
|
],
|
|
54872
54869
|
[
|
|
54873
|
-
|
|
54870
|
+
p,
|
|
54874
54871
|
b
|
|
54875
54872
|
]
|
|
54876
54873
|
],
|
|
@@ -54882,11 +54879,11 @@
|
|
|
54882
54879
|
[
|
|
54883
54880
|
d,
|
|
54884
54881
|
[
|
|
54885
|
-
|
|
54882
|
+
f,
|
|
54886
54883
|
C
|
|
54887
54884
|
],
|
|
54888
54885
|
[
|
|
54889
|
-
|
|
54886
|
+
p,
|
|
54890
54887
|
v
|
|
54891
54888
|
]
|
|
54892
54889
|
],
|
|
@@ -54900,11 +54897,11 @@
|
|
|
54900
54897
|
"Fire Phone $1"
|
|
54901
54898
|
],
|
|
54902
54899
|
[
|
|
54903
|
-
|
|
54900
|
+
f,
|
|
54904
54901
|
C
|
|
54905
54902
|
],
|
|
54906
54903
|
[
|
|
54907
|
-
|
|
54904
|
+
p,
|
|
54908
54905
|
b
|
|
54909
54906
|
]
|
|
54910
54907
|
],
|
|
@@ -54913,9 +54910,9 @@
|
|
|
54913
54910
|
],
|
|
54914
54911
|
[
|
|
54915
54912
|
d,
|
|
54916
|
-
|
|
54913
|
+
f,
|
|
54917
54914
|
[
|
|
54918
|
-
|
|
54915
|
+
p,
|
|
54919
54916
|
v
|
|
54920
54917
|
]
|
|
54921
54918
|
],
|
|
@@ -54926,11 +54923,11 @@
|
|
|
54926
54923
|
[
|
|
54927
54924
|
d,
|
|
54928
54925
|
[
|
|
54929
|
-
|
|
54926
|
+
f,
|
|
54930
54927
|
x
|
|
54931
54928
|
],
|
|
54932
54929
|
[
|
|
54933
|
-
|
|
54930
|
+
p,
|
|
54934
54931
|
b
|
|
54935
54932
|
]
|
|
54936
54933
|
],
|
|
@@ -54940,11 +54937,11 @@
|
|
|
54940
54937
|
[
|
|
54941
54938
|
d,
|
|
54942
54939
|
[
|
|
54943
|
-
|
|
54940
|
+
f,
|
|
54944
54941
|
_
|
|
54945
54942
|
],
|
|
54946
54943
|
[
|
|
54947
|
-
|
|
54944
|
+
p,
|
|
54948
54945
|
v
|
|
54949
54946
|
]
|
|
54950
54947
|
],
|
|
@@ -54954,11 +54951,11 @@
|
|
|
54954
54951
|
[
|
|
54955
54952
|
d,
|
|
54956
54953
|
[
|
|
54957
|
-
|
|
54954
|
+
f,
|
|
54958
54955
|
_
|
|
54959
54956
|
],
|
|
54960
54957
|
[
|
|
54961
|
-
|
|
54958
|
+
p,
|
|
54962
54959
|
b
|
|
54963
54960
|
]
|
|
54964
54961
|
],
|
|
@@ -54968,11 +54965,11 @@
|
|
|
54968
54965
|
[
|
|
54969
54966
|
d,
|
|
54970
54967
|
[
|
|
54971
|
-
|
|
54968
|
+
f,
|
|
54972
54969
|
"HTC"
|
|
54973
54970
|
],
|
|
54974
54971
|
[
|
|
54975
|
-
|
|
54972
|
+
p,
|
|
54976
54973
|
v
|
|
54977
54974
|
]
|
|
54978
54975
|
],
|
|
@@ -54982,14 +54979,14 @@
|
|
|
54982
54979
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
54983
54980
|
],
|
|
54984
54981
|
[
|
|
54985
|
-
|
|
54982
|
+
f,
|
|
54986
54983
|
[
|
|
54987
54984
|
d,
|
|
54988
54985
|
/_/g,
|
|
54989
54986
|
" "
|
|
54990
54987
|
],
|
|
54991
54988
|
[
|
|
54992
|
-
|
|
54989
|
+
p,
|
|
54993
54990
|
b
|
|
54994
54991
|
]
|
|
54995
54992
|
],
|
|
@@ -54999,11 +54996,11 @@
|
|
|
54999
54996
|
[
|
|
55000
54997
|
d,
|
|
55001
54998
|
[
|
|
55002
|
-
|
|
54999
|
+
f,
|
|
55003
55000
|
"Acer"
|
|
55004
55001
|
],
|
|
55005
55002
|
[
|
|
55006
|
-
|
|
55003
|
+
p,
|
|
55007
55004
|
v
|
|
55008
55005
|
]
|
|
55009
55006
|
],
|
|
@@ -55014,11 +55011,11 @@
|
|
|
55014
55011
|
[
|
|
55015
55012
|
d,
|
|
55016
55013
|
[
|
|
55017
|
-
|
|
55014
|
+
f,
|
|
55018
55015
|
"Meizu"
|
|
55019
55016
|
],
|
|
55020
55017
|
[
|
|
55021
|
-
|
|
55018
|
+
p,
|
|
55022
55019
|
b
|
|
55023
55020
|
]
|
|
55024
55021
|
],
|
|
@@ -55028,11 +55025,11 @@
|
|
|
55028
55025
|
[
|
|
55029
55026
|
d,
|
|
55030
55027
|
[
|
|
55031
|
-
|
|
55028
|
+
f,
|
|
55032
55029
|
"Ulefone"
|
|
55033
55030
|
],
|
|
55034
55031
|
[
|
|
55035
|
-
|
|
55032
|
+
p,
|
|
55036
55033
|
b
|
|
55037
55034
|
]
|
|
55038
55035
|
],
|
|
@@ -55046,10 +55043,10 @@
|
|
|
55046
55043
|
/(oppo) ?([\w ]+) bui/i
|
|
55047
55044
|
],
|
|
55048
55045
|
[
|
|
55049
|
-
|
|
55046
|
+
f,
|
|
55050
55047
|
d,
|
|
55051
55048
|
[
|
|
55052
|
-
|
|
55049
|
+
p,
|
|
55053
55050
|
b
|
|
55054
55051
|
]
|
|
55055
55052
|
],
|
|
@@ -55066,10 +55063,10 @@
|
|
|
55066
55063
|
/(vodafone) ([\w ]+)(?:\)| bui)/i
|
|
55067
55064
|
],
|
|
55068
55065
|
[
|
|
55069
|
-
|
|
55066
|
+
f,
|
|
55070
55067
|
d,
|
|
55071
55068
|
[
|
|
55072
|
-
|
|
55069
|
+
p,
|
|
55073
55070
|
v
|
|
55074
55071
|
]
|
|
55075
55072
|
],
|
|
@@ -55079,11 +55076,11 @@
|
|
|
55079
55076
|
[
|
|
55080
55077
|
d,
|
|
55081
55078
|
[
|
|
55082
|
-
|
|
55079
|
+
f,
|
|
55083
55080
|
$
|
|
55084
55081
|
],
|
|
55085
55082
|
[
|
|
55086
|
-
|
|
55083
|
+
p,
|
|
55087
55084
|
v
|
|
55088
55085
|
]
|
|
55089
55086
|
],
|
|
@@ -55093,11 +55090,11 @@
|
|
|
55093
55090
|
[
|
|
55094
55091
|
d,
|
|
55095
55092
|
[
|
|
55096
|
-
|
|
55093
|
+
f,
|
|
55097
55094
|
"Fairphone"
|
|
55098
55095
|
],
|
|
55099
55096
|
[
|
|
55100
|
-
|
|
55097
|
+
p,
|
|
55101
55098
|
b
|
|
55102
55099
|
]
|
|
55103
55100
|
],
|
|
@@ -55107,11 +55104,11 @@
|
|
|
55107
55104
|
[
|
|
55108
55105
|
d,
|
|
55109
55106
|
[
|
|
55110
|
-
|
|
55107
|
+
f,
|
|
55111
55108
|
"AT&T"
|
|
55112
55109
|
],
|
|
55113
55110
|
[
|
|
55114
|
-
|
|
55111
|
+
p,
|
|
55115
55112
|
b
|
|
55116
55113
|
]
|
|
55117
55114
|
],
|
|
@@ -55121,11 +55118,11 @@
|
|
|
55121
55118
|
[
|
|
55122
55119
|
d,
|
|
55123
55120
|
[
|
|
55124
|
-
|
|
55121
|
+
f,
|
|
55125
55122
|
"Siemens"
|
|
55126
55123
|
],
|
|
55127
55124
|
[
|
|
55128
|
-
|
|
55125
|
+
p,
|
|
55129
55126
|
b
|
|
55130
55127
|
]
|
|
55131
55128
|
],
|
|
@@ -55135,11 +55132,11 @@
|
|
|
55135
55132
|
[
|
|
55136
55133
|
d,
|
|
55137
55134
|
[
|
|
55138
|
-
|
|
55135
|
+
f,
|
|
55139
55136
|
"RCA"
|
|
55140
55137
|
],
|
|
55141
55138
|
[
|
|
55142
|
-
|
|
55139
|
+
p,
|
|
55143
55140
|
v
|
|
55144
55141
|
]
|
|
55145
55142
|
],
|
|
@@ -55149,11 +55146,11 @@
|
|
|
55149
55146
|
[
|
|
55150
55147
|
d,
|
|
55151
55148
|
[
|
|
55152
|
-
|
|
55149
|
+
f,
|
|
55153
55150
|
"Dell"
|
|
55154
55151
|
],
|
|
55155
55152
|
[
|
|
55156
|
-
|
|
55153
|
+
p,
|
|
55157
55154
|
v
|
|
55158
55155
|
]
|
|
55159
55156
|
],
|
|
@@ -55163,11 +55160,11 @@
|
|
|
55163
55160
|
[
|
|
55164
55161
|
d,
|
|
55165
55162
|
[
|
|
55166
|
-
|
|
55163
|
+
f,
|
|
55167
55164
|
"Verizon"
|
|
55168
55165
|
],
|
|
55169
55166
|
[
|
|
55170
|
-
|
|
55167
|
+
p,
|
|
55171
55168
|
v
|
|
55172
55169
|
]
|
|
55173
55170
|
],
|
|
@@ -55177,11 +55174,11 @@
|
|
|
55177
55174
|
[
|
|
55178
55175
|
d,
|
|
55179
55176
|
[
|
|
55180
|
-
|
|
55177
|
+
f,
|
|
55181
55178
|
"Barnes & Noble"
|
|
55182
55179
|
],
|
|
55183
55180
|
[
|
|
55184
|
-
|
|
55181
|
+
p,
|
|
55185
55182
|
v
|
|
55186
55183
|
]
|
|
55187
55184
|
],
|
|
@@ -55191,11 +55188,11 @@
|
|
|
55191
55188
|
[
|
|
55192
55189
|
d,
|
|
55193
55190
|
[
|
|
55194
|
-
|
|
55191
|
+
f,
|
|
55195
55192
|
"NuVision"
|
|
55196
55193
|
],
|
|
55197
55194
|
[
|
|
55198
|
-
|
|
55195
|
+
p,
|
|
55199
55196
|
v
|
|
55200
55197
|
]
|
|
55201
55198
|
],
|
|
@@ -55205,11 +55202,11 @@
|
|
|
55205
55202
|
[
|
|
55206
55203
|
d,
|
|
55207
55204
|
[
|
|
55208
|
-
|
|
55205
|
+
f,
|
|
55209
55206
|
"ZTE"
|
|
55210
55207
|
],
|
|
55211
55208
|
[
|
|
55212
|
-
|
|
55209
|
+
p,
|
|
55213
55210
|
v
|
|
55214
55211
|
]
|
|
55215
55212
|
],
|
|
@@ -55219,11 +55216,11 @@
|
|
|
55219
55216
|
[
|
|
55220
55217
|
d,
|
|
55221
55218
|
[
|
|
55222
|
-
|
|
55219
|
+
f,
|
|
55223
55220
|
"ZTE"
|
|
55224
55221
|
],
|
|
55225
55222
|
[
|
|
55226
|
-
|
|
55223
|
+
p,
|
|
55227
55224
|
b
|
|
55228
55225
|
]
|
|
55229
55226
|
],
|
|
@@ -55233,11 +55230,11 @@
|
|
|
55233
55230
|
[
|
|
55234
55231
|
d,
|
|
55235
55232
|
[
|
|
55236
|
-
|
|
55233
|
+
f,
|
|
55237
55234
|
"Swiss"
|
|
55238
55235
|
],
|
|
55239
55236
|
[
|
|
55240
|
-
|
|
55237
|
+
p,
|
|
55241
55238
|
b
|
|
55242
55239
|
]
|
|
55243
55240
|
],
|
|
@@ -55247,11 +55244,11 @@
|
|
|
55247
55244
|
[
|
|
55248
55245
|
d,
|
|
55249
55246
|
[
|
|
55250
|
-
|
|
55247
|
+
f,
|
|
55251
55248
|
"Swiss"
|
|
55252
55249
|
],
|
|
55253
55250
|
[
|
|
55254
|
-
|
|
55251
|
+
p,
|
|
55255
55252
|
v
|
|
55256
55253
|
]
|
|
55257
55254
|
],
|
|
@@ -55261,11 +55258,11 @@
|
|
|
55261
55258
|
[
|
|
55262
55259
|
d,
|
|
55263
55260
|
[
|
|
55264
|
-
|
|
55261
|
+
f,
|
|
55265
55262
|
"Zeki"
|
|
55266
55263
|
],
|
|
55267
55264
|
[
|
|
55268
|
-
|
|
55265
|
+
p,
|
|
55269
55266
|
v
|
|
55270
55267
|
]
|
|
55271
55268
|
],
|
|
@@ -55275,12 +55272,12 @@
|
|
|
55275
55272
|
],
|
|
55276
55273
|
[
|
|
55277
55274
|
[
|
|
55278
|
-
|
|
55275
|
+
f,
|
|
55279
55276
|
"Dragon Touch"
|
|
55280
55277
|
],
|
|
55281
55278
|
d,
|
|
55282
55279
|
[
|
|
55283
|
-
|
|
55280
|
+
p,
|
|
55284
55281
|
v
|
|
55285
55282
|
]
|
|
55286
55283
|
],
|
|
@@ -55290,11 +55287,11 @@
|
|
|
55290
55287
|
[
|
|
55291
55288
|
d,
|
|
55292
55289
|
[
|
|
55293
|
-
|
|
55290
|
+
f,
|
|
55294
55291
|
"Insignia"
|
|
55295
55292
|
],
|
|
55296
55293
|
[
|
|
55297
|
-
|
|
55294
|
+
p,
|
|
55298
55295
|
v
|
|
55299
55296
|
]
|
|
55300
55297
|
],
|
|
@@ -55304,11 +55301,11 @@
|
|
|
55304
55301
|
[
|
|
55305
55302
|
d,
|
|
55306
55303
|
[
|
|
55307
|
-
|
|
55304
|
+
f,
|
|
55308
55305
|
"NextBook"
|
|
55309
55306
|
],
|
|
55310
55307
|
[
|
|
55311
|
-
|
|
55308
|
+
p,
|
|
55312
55309
|
v
|
|
55313
55310
|
]
|
|
55314
55311
|
],
|
|
@@ -55317,12 +55314,12 @@
|
|
|
55317
55314
|
],
|
|
55318
55315
|
[
|
|
55319
55316
|
[
|
|
55320
|
-
|
|
55317
|
+
f,
|
|
55321
55318
|
"Voice"
|
|
55322
55319
|
],
|
|
55323
55320
|
d,
|
|
55324
55321
|
[
|
|
55325
|
-
|
|
55322
|
+
p,
|
|
55326
55323
|
b
|
|
55327
55324
|
]
|
|
55328
55325
|
],
|
|
@@ -55331,12 +55328,12 @@
|
|
|
55331
55328
|
],
|
|
55332
55329
|
[
|
|
55333
55330
|
[
|
|
55334
|
-
|
|
55331
|
+
f,
|
|
55335
55332
|
"LvTel"
|
|
55336
55333
|
],
|
|
55337
55334
|
d,
|
|
55338
55335
|
[
|
|
55339
|
-
|
|
55336
|
+
p,
|
|
55340
55337
|
b
|
|
55341
55338
|
]
|
|
55342
55339
|
],
|
|
@@ -55346,11 +55343,11 @@
|
|
|
55346
55343
|
[
|
|
55347
55344
|
d,
|
|
55348
55345
|
[
|
|
55349
|
-
|
|
55346
|
+
f,
|
|
55350
55347
|
"Essential"
|
|
55351
55348
|
],
|
|
55352
55349
|
[
|
|
55353
|
-
|
|
55350
|
+
p,
|
|
55354
55351
|
b
|
|
55355
55352
|
]
|
|
55356
55353
|
],
|
|
@@ -55360,11 +55357,11 @@
|
|
|
55360
55357
|
[
|
|
55361
55358
|
d,
|
|
55362
55359
|
[
|
|
55363
|
-
|
|
55360
|
+
f,
|
|
55364
55361
|
"Envizen"
|
|
55365
55362
|
],
|
|
55366
55363
|
[
|
|
55367
|
-
|
|
55364
|
+
p,
|
|
55368
55365
|
v
|
|
55369
55366
|
]
|
|
55370
55367
|
],
|
|
@@ -55374,11 +55371,11 @@
|
|
|
55374
55371
|
[
|
|
55375
55372
|
d,
|
|
55376
55373
|
[
|
|
55377
|
-
|
|
55374
|
+
f,
|
|
55378
55375
|
"MachSpeed"
|
|
55379
55376
|
],
|
|
55380
55377
|
[
|
|
55381
|
-
|
|
55378
|
+
p,
|
|
55382
55379
|
v
|
|
55383
55380
|
]
|
|
55384
55381
|
],
|
|
@@ -55388,11 +55385,11 @@
|
|
|
55388
55385
|
[
|
|
55389
55386
|
d,
|
|
55390
55387
|
[
|
|
55391
|
-
|
|
55388
|
+
f,
|
|
55392
55389
|
"Rotor"
|
|
55393
55390
|
],
|
|
55394
55391
|
[
|
|
55395
|
-
|
|
55392
|
+
p,
|
|
55396
55393
|
v
|
|
55397
55394
|
]
|
|
55398
55395
|
],
|
|
@@ -55402,11 +55399,11 @@
|
|
|
55402
55399
|
[
|
|
55403
55400
|
d,
|
|
55404
55401
|
[
|
|
55405
|
-
|
|
55402
|
+
f,
|
|
55406
55403
|
"Nvidia"
|
|
55407
55404
|
],
|
|
55408
55405
|
[
|
|
55409
|
-
|
|
55406
|
+
p,
|
|
55410
55407
|
v
|
|
55411
55408
|
]
|
|
55412
55409
|
],
|
|
@@ -55414,10 +55411,10 @@
|
|
|
55414
55411
|
/(sprint) (\w+)/i
|
|
55415
55412
|
],
|
|
55416
55413
|
[
|
|
55417
|
-
|
|
55414
|
+
f,
|
|
55418
55415
|
d,
|
|
55419
55416
|
[
|
|
55420
|
-
|
|
55417
|
+
p,
|
|
55421
55418
|
b
|
|
55422
55419
|
]
|
|
55423
55420
|
],
|
|
@@ -55431,11 +55428,11 @@
|
|
|
55431
55428
|
" "
|
|
55432
55429
|
],
|
|
55433
55430
|
[
|
|
55434
|
-
|
|
55431
|
+
f,
|
|
55435
55432
|
$
|
|
55436
55433
|
],
|
|
55437
55434
|
[
|
|
55438
|
-
|
|
55435
|
+
p,
|
|
55439
55436
|
b
|
|
55440
55437
|
]
|
|
55441
55438
|
],
|
|
@@ -55445,11 +55442,11 @@
|
|
|
55445
55442
|
[
|
|
55446
55443
|
d,
|
|
55447
55444
|
[
|
|
55448
|
-
|
|
55445
|
+
f,
|
|
55449
55446
|
L
|
|
55450
55447
|
],
|
|
55451
55448
|
[
|
|
55452
|
-
|
|
55449
|
+
p,
|
|
55453
55450
|
v
|
|
55454
55451
|
]
|
|
55455
55452
|
],
|
|
@@ -55459,11 +55456,11 @@
|
|
|
55459
55456
|
[
|
|
55460
55457
|
d,
|
|
55461
55458
|
[
|
|
55462
|
-
|
|
55459
|
+
f,
|
|
55463
55460
|
L
|
|
55464
55461
|
],
|
|
55465
55462
|
[
|
|
55466
|
-
|
|
55463
|
+
p,
|
|
55467
55464
|
b
|
|
55468
55465
|
]
|
|
55469
55466
|
],
|
|
@@ -55471,9 +55468,9 @@
|
|
|
55471
55468
|
/smart-tv.+(samsung)/i
|
|
55472
55469
|
],
|
|
55473
55470
|
[
|
|
55474
|
-
|
|
55471
|
+
f,
|
|
55475
55472
|
[
|
|
55476
|
-
|
|
55473
|
+
p,
|
|
55477
55474
|
w
|
|
55478
55475
|
]
|
|
55479
55476
|
],
|
|
@@ -55487,11 +55484,11 @@
|
|
|
55487
55484
|
"SmartTV"
|
|
55488
55485
|
],
|
|
55489
55486
|
[
|
|
55490
|
-
|
|
55487
|
+
f,
|
|
55491
55488
|
O
|
|
55492
55489
|
],
|
|
55493
55490
|
[
|
|
55494
|
-
|
|
55491
|
+
p,
|
|
55495
55492
|
w
|
|
55496
55493
|
]
|
|
55497
55494
|
],
|
|
@@ -55500,11 +55497,11 @@
|
|
|
55500
55497
|
],
|
|
55501
55498
|
[
|
|
55502
55499
|
[
|
|
55503
|
-
|
|
55500
|
+
f,
|
|
55504
55501
|
"LG"
|
|
55505
55502
|
],
|
|
55506
55503
|
[
|
|
55507
|
-
|
|
55504
|
+
p,
|
|
55508
55505
|
w
|
|
55509
55506
|
]
|
|
55510
55507
|
],
|
|
@@ -55512,13 +55509,13 @@
|
|
|
55512
55509
|
/(apple) ?tv/i
|
|
55513
55510
|
],
|
|
55514
55511
|
[
|
|
55515
|
-
|
|
55512
|
+
f,
|
|
55516
55513
|
[
|
|
55517
55514
|
d,
|
|
55518
55515
|
B + " TV"
|
|
55519
55516
|
],
|
|
55520
55517
|
[
|
|
55521
|
-
|
|
55518
|
+
p,
|
|
55522
55519
|
w
|
|
55523
55520
|
]
|
|
55524
55521
|
],
|
|
@@ -55531,11 +55528,11 @@
|
|
|
55531
55528
|
S + "cast"
|
|
55532
55529
|
],
|
|
55533
55530
|
[
|
|
55534
|
-
|
|
55531
|
+
f,
|
|
55535
55532
|
T
|
|
55536
55533
|
],
|
|
55537
55534
|
[
|
|
55538
|
-
|
|
55535
|
+
p,
|
|
55539
55536
|
w
|
|
55540
55537
|
]
|
|
55541
55538
|
],
|
|
@@ -55545,11 +55542,11 @@
|
|
|
55545
55542
|
[
|
|
55546
55543
|
d,
|
|
55547
55544
|
[
|
|
55548
|
-
|
|
55545
|
+
f,
|
|
55549
55546
|
C
|
|
55550
55547
|
],
|
|
55551
55548
|
[
|
|
55552
|
-
|
|
55549
|
+
p,
|
|
55553
55550
|
w
|
|
55554
55551
|
]
|
|
55555
55552
|
],
|
|
@@ -55560,11 +55557,11 @@
|
|
|
55560
55557
|
[
|
|
55561
55558
|
d,
|
|
55562
55559
|
[
|
|
55563
|
-
|
|
55560
|
+
f,
|
|
55564
55561
|
M
|
|
55565
55562
|
],
|
|
55566
55563
|
[
|
|
55567
|
-
|
|
55564
|
+
p,
|
|
55568
55565
|
w
|
|
55569
55566
|
]
|
|
55570
55567
|
],
|
|
@@ -55574,11 +55571,11 @@
|
|
|
55574
55571
|
[
|
|
55575
55572
|
d,
|
|
55576
55573
|
[
|
|
55577
|
-
|
|
55574
|
+
f,
|
|
55578
55575
|
A
|
|
55579
55576
|
],
|
|
55580
55577
|
[
|
|
55581
|
-
|
|
55578
|
+
p,
|
|
55582
55579
|
w
|
|
55583
55580
|
]
|
|
55584
55581
|
],
|
|
@@ -55588,11 +55585,11 @@
|
|
|
55588
55585
|
[
|
|
55589
55586
|
d,
|
|
55590
55587
|
[
|
|
55591
|
-
|
|
55588
|
+
f,
|
|
55592
55589
|
R
|
|
55593
55590
|
],
|
|
55594
55591
|
[
|
|
55595
|
-
|
|
55592
|
+
p,
|
|
55596
55593
|
w
|
|
55597
55594
|
]
|
|
55598
55595
|
],
|
|
@@ -55600,10 +55597,10 @@
|
|
|
55600
55597
|
/Hbbtv.*(technisat) (.*);/i
|
|
55601
55598
|
],
|
|
55602
55599
|
[
|
|
55603
|
-
|
|
55600
|
+
f,
|
|
55604
55601
|
d,
|
|
55605
55602
|
[
|
|
55606
|
-
|
|
55603
|
+
p,
|
|
55607
55604
|
w
|
|
55608
55605
|
]
|
|
55609
55606
|
],
|
|
@@ -55613,7 +55610,7 @@
|
|
|
55613
55610
|
],
|
|
55614
55611
|
[
|
|
55615
55612
|
[
|
|
55616
|
-
|
|
55613
|
+
f,
|
|
55617
55614
|
Q
|
|
55618
55615
|
],
|
|
55619
55616
|
[
|
|
@@ -55621,7 +55618,7 @@
|
|
|
55621
55618
|
Q
|
|
55622
55619
|
],
|
|
55623
55620
|
[
|
|
55624
|
-
|
|
55621
|
+
p,
|
|
55625
55622
|
w
|
|
55626
55623
|
]
|
|
55627
55624
|
],
|
|
@@ -55630,7 +55627,7 @@
|
|
|
55630
55627
|
],
|
|
55631
55628
|
[
|
|
55632
55629
|
[
|
|
55633
|
-
|
|
55630
|
+
p,
|
|
55634
55631
|
w
|
|
55635
55632
|
]
|
|
55636
55633
|
],
|
|
@@ -55639,10 +55636,10 @@
|
|
|
55639
55636
|
/(nintendo) ([wids3utch]+)/i
|
|
55640
55637
|
],
|
|
55641
55638
|
[
|
|
55642
|
-
|
|
55639
|
+
f,
|
|
55643
55640
|
d,
|
|
55644
55641
|
[
|
|
55645
|
-
|
|
55642
|
+
p,
|
|
55646
55643
|
g
|
|
55647
55644
|
]
|
|
55648
55645
|
],
|
|
@@ -55652,11 +55649,11 @@
|
|
|
55652
55649
|
[
|
|
55653
55650
|
d,
|
|
55654
55651
|
[
|
|
55655
|
-
|
|
55652
|
+
f,
|
|
55656
55653
|
"Nvidia"
|
|
55657
55654
|
],
|
|
55658
55655
|
[
|
|
55659
|
-
|
|
55656
|
+
p,
|
|
55660
55657
|
g
|
|
55661
55658
|
]
|
|
55662
55659
|
],
|
|
@@ -55666,11 +55663,11 @@
|
|
|
55666
55663
|
[
|
|
55667
55664
|
d,
|
|
55668
55665
|
[
|
|
55669
|
-
|
|
55666
|
+
f,
|
|
55670
55667
|
A
|
|
55671
55668
|
],
|
|
55672
55669
|
[
|
|
55673
|
-
|
|
55670
|
+
p,
|
|
55674
55671
|
g
|
|
55675
55672
|
]
|
|
55676
55673
|
],
|
|
@@ -55680,11 +55677,11 @@
|
|
|
55680
55677
|
[
|
|
55681
55678
|
d,
|
|
55682
55679
|
[
|
|
55683
|
-
|
|
55680
|
+
f,
|
|
55684
55681
|
$
|
|
55685
55682
|
],
|
|
55686
55683
|
[
|
|
55687
|
-
|
|
55684
|
+
p,
|
|
55688
55685
|
g
|
|
55689
55686
|
]
|
|
55690
55687
|
],
|
|
@@ -55692,10 +55689,10 @@
|
|
|
55692
55689
|
/((pebble))app/i
|
|
55693
55690
|
],
|
|
55694
55691
|
[
|
|
55695
|
-
|
|
55692
|
+
f,
|
|
55696
55693
|
d,
|
|
55697
55694
|
[
|
|
55698
|
-
|
|
55695
|
+
p,
|
|
55699
55696
|
k
|
|
55700
55697
|
]
|
|
55701
55698
|
],
|
|
@@ -55705,11 +55702,11 @@
|
|
|
55705
55702
|
[
|
|
55706
55703
|
d,
|
|
55707
55704
|
[
|
|
55708
|
-
|
|
55705
|
+
f,
|
|
55709
55706
|
B
|
|
55710
55707
|
],
|
|
55711
55708
|
[
|
|
55712
|
-
|
|
55709
|
+
p,
|
|
55713
55710
|
k
|
|
55714
55711
|
]
|
|
55715
55712
|
],
|
|
@@ -55719,11 +55716,11 @@
|
|
|
55719
55716
|
[
|
|
55720
55717
|
d,
|
|
55721
55718
|
[
|
|
55722
|
-
|
|
55719
|
+
f,
|
|
55723
55720
|
T
|
|
55724
55721
|
],
|
|
55725
55722
|
[
|
|
55726
|
-
|
|
55723
|
+
p,
|
|
55727
55724
|
k
|
|
55728
55725
|
]
|
|
55729
55726
|
],
|
|
@@ -55733,11 +55730,11 @@
|
|
|
55733
55730
|
[
|
|
55734
55731
|
d,
|
|
55735
55732
|
[
|
|
55736
|
-
|
|
55733
|
+
f,
|
|
55737
55734
|
L
|
|
55738
55735
|
],
|
|
55739
55736
|
[
|
|
55740
|
-
|
|
55737
|
+
p,
|
|
55741
55738
|
k
|
|
55742
55739
|
]
|
|
55743
55740
|
],
|
|
@@ -55747,11 +55744,11 @@
|
|
|
55747
55744
|
[
|
|
55748
55745
|
d,
|
|
55749
55746
|
[
|
|
55750
|
-
|
|
55747
|
+
f,
|
|
55751
55748
|
F
|
|
55752
55749
|
],
|
|
55753
55750
|
[
|
|
55754
|
-
|
|
55751
|
+
p,
|
|
55755
55752
|
k
|
|
55756
55753
|
]
|
|
55757
55754
|
],
|
|
@@ -55759,9 +55756,9 @@
|
|
|
55759
55756
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
55760
55757
|
],
|
|
55761
55758
|
[
|
|
55762
|
-
|
|
55759
|
+
f,
|
|
55763
55760
|
[
|
|
55764
|
-
|
|
55761
|
+
p,
|
|
55765
55762
|
y
|
|
55766
55763
|
]
|
|
55767
55764
|
],
|
|
@@ -55771,11 +55768,11 @@
|
|
|
55771
55768
|
[
|
|
55772
55769
|
d,
|
|
55773
55770
|
[
|
|
55774
|
-
|
|
55771
|
+
f,
|
|
55775
55772
|
C
|
|
55776
55773
|
],
|
|
55777
55774
|
[
|
|
55778
|
-
|
|
55775
|
+
p,
|
|
55779
55776
|
y
|
|
55780
55777
|
]
|
|
55781
55778
|
],
|
|
@@ -55785,7 +55782,7 @@
|
|
|
55785
55782
|
[
|
|
55786
55783
|
d,
|
|
55787
55784
|
[
|
|
55788
|
-
|
|
55785
|
+
p,
|
|
55789
55786
|
b
|
|
55790
55787
|
]
|
|
55791
55788
|
],
|
|
@@ -55795,7 +55792,7 @@
|
|
|
55795
55792
|
[
|
|
55796
55793
|
d,
|
|
55797
55794
|
[
|
|
55798
|
-
|
|
55795
|
+
p,
|
|
55799
55796
|
v
|
|
55800
55797
|
]
|
|
55801
55798
|
],
|
|
@@ -55804,7 +55801,7 @@
|
|
|
55804
55801
|
],
|
|
55805
55802
|
[
|
|
55806
55803
|
[
|
|
55807
|
-
|
|
55804
|
+
p,
|
|
55808
55805
|
v
|
|
55809
55806
|
]
|
|
55810
55807
|
],
|
|
@@ -55813,7 +55810,7 @@
|
|
|
55813
55810
|
],
|
|
55814
55811
|
[
|
|
55815
55812
|
[
|
|
55816
|
-
|
|
55813
|
+
p,
|
|
55817
55814
|
b
|
|
55818
55815
|
]
|
|
55819
55816
|
],
|
|
@@ -55823,7 +55820,7 @@
|
|
|
55823
55820
|
[
|
|
55824
55821
|
d,
|
|
55825
55822
|
[
|
|
55826
|
-
|
|
55823
|
+
f,
|
|
55827
55824
|
"Generic"
|
|
55828
55825
|
]
|
|
55829
55826
|
]
|
|
@@ -56074,7 +56071,7 @@
|
|
|
56074
56071
|
return t[m] = void 0, X.call(t, g, k.cpu), t;
|
|
56075
56072
|
}, this.getDevice = function() {
|
|
56076
56073
|
var t = {};
|
|
56077
|
-
return t[
|
|
56074
|
+
return t[f] = void 0, t[d] = void 0, t[p] = void 0, X.call(t, g, k.device), y && !t[p] && w && w.mobile && (t[p] = b), y && "Macintosh" == t[d] && n && typeof n.standalone !== a && n.maxTouchPoints && n.maxTouchPoints > 2 && (t[d] = "iPad", t[p] = v), t;
|
|
56078
56075
|
}, this.getEngine = function() {
|
|
56079
56076
|
var t = {};
|
|
56080
56077
|
return t[u] = void 0, t[h] = void 0, X.call(t, g, k.engine), t;
|
|
@@ -56104,8 +56101,8 @@
|
|
|
56104
56101
|
m
|
|
56105
56102
|
]), K.DEVICE = W([
|
|
56106
56103
|
d,
|
|
56107
|
-
p,
|
|
56108
56104
|
f,
|
|
56105
|
+
p,
|
|
56109
56106
|
g,
|
|
56110
56107
|
b,
|
|
56111
56108
|
w,
|
|
@@ -56128,9 +56125,9 @@
|
|
|
56128
56125
|
};
|
|
56129
56126
|
}
|
|
56130
56127
|
}("object" == typeof window ? window : nE), nS.exports;
|
|
56131
|
-
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(),
|
|
56128
|
+
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(), p = function(t) {
|
|
56132
56129
|
return i.setUA(t);
|
|
56133
|
-
},
|
|
56130
|
+
}, f = function(t) {
|
|
56134
56131
|
if (!t) return void console.error("No userAgent string was provided");
|
|
56135
56132
|
var r = new n(t);
|
|
56136
56133
|
return {
|
|
@@ -56153,8 +56150,8 @@
|
|
|
56153
56150
|
engine: l,
|
|
56154
56151
|
os: d,
|
|
56155
56152
|
ua: u,
|
|
56156
|
-
setUa:
|
|
56157
|
-
parseUserAgent:
|
|
56153
|
+
setUa: p,
|
|
56154
|
+
parseUserAgent: f
|
|
56158
56155
|
});
|
|
56159
56156
|
function m(t, r) {
|
|
56160
56157
|
var o = Object.keys(t);
|
|
@@ -56373,9 +56370,9 @@
|
|
|
56373
56370
|
}, eu = function(t) {
|
|
56374
56371
|
var r = t.name;
|
|
56375
56372
|
return r === $.InternetExplorer || r === $.Ie;
|
|
56376
|
-
}, ef = function(t) {
|
|
56377
|
-
return t.name === $.MIUI;
|
|
56378
56373
|
}, ep = function(t) {
|
|
56374
|
+
return t.name === $.MIUI;
|
|
56375
|
+
}, ef = function(t) {
|
|
56379
56376
|
return t.name === $.SamsungBrowser;
|
|
56380
56377
|
}, eh = function(t) {
|
|
56381
56378
|
return M(t.version);
|
|
@@ -56448,13 +56445,13 @@
|
|
|
56448
56445
|
isLegacyEdge: ea(n) && !ek(s),
|
|
56449
56446
|
isWindows: K(i),
|
|
56450
56447
|
isMacOs: Y(i),
|
|
56451
|
-
isMIUI:
|
|
56452
|
-
isSamsungBrowser:
|
|
56448
|
+
isMIUI: ep(n),
|
|
56449
|
+
isSamsungBrowser: ef(n)
|
|
56453
56450
|
};
|
|
56454
56451
|
}
|
|
56455
|
-
var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), ej = ei(a), eI = z(c) || eC(), eO = F(c), eM = N(c) || eC(), eA = W(c), eR = W(c), eL = Z(d), eF = J(d), eN = ee(d) || eC(), ez = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e7 = e_(), e6 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn =
|
|
56452
|
+
var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), ej = ei(a), eI = z(c) || eC(), eO = F(c), eM = N(c) || eC(), eA = W(c), eR = W(c), eL = Z(d), eF = J(d), eN = ee(d) || eC(), ez = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e7 = e_(), e6 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn = ep(a), ti = ef(a);
|
|
56456
56453
|
function ta(t) {
|
|
56457
|
-
return
|
|
56454
|
+
return f(t || window.navigator.userAgent);
|
|
56458
56455
|
}
|
|
56459
56456
|
return nP.AndroidView = function(r) {
|
|
56460
56457
|
var n = r.renderWithFragment, i = r.children, a = y(r, [
|
|
@@ -56538,7 +56535,7 @@
|
|
|
56538
56535
|
]);
|
|
56539
56536
|
return eF ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
|
|
56540
56537
|
}, nP.browserName = eZ, nP.browserVersion = eG, nP.deviceDetect = function(t) {
|
|
56541
|
-
var r, o, n, i, a, s, c, l, d, u,
|
|
56538
|
+
var r, o, n, i, a, s, c, l, d, u, p, m, g, b, v, w, k, y, C, B, _, x, P = t ? f(t) : h, S = P.device, E = P.browser, T = P.engine, D = P.os, $ = P.ua, j = O(S.type), I = j.isBrowser, A = j.isMobile, R = j.isTablet, F = j.isSmartTV, N = j.isConsole, z = j.isWearable, V = j.isEmbedded;
|
|
56542
56539
|
if (I) {
|
|
56543
56540
|
return r = I, o = E, n = T, i = D, a = $, {
|
|
56544
56541
|
isBrowser: r,
|
|
@@ -56563,10 +56560,10 @@
|
|
|
56563
56560
|
};
|
|
56564
56561
|
}
|
|
56565
56562
|
if (N) {
|
|
56566
|
-
return u = N,
|
|
56563
|
+
return u = N, p = T, m = D, g = $, {
|
|
56567
56564
|
isConsole: u,
|
|
56568
|
-
engineName: M(
|
|
56569
|
-
engineVersion: M(
|
|
56565
|
+
engineName: M(p.name),
|
|
56566
|
+
engineVersion: M(p.version),
|
|
56570
56567
|
osName: M(m.name),
|
|
56571
56568
|
osVersion: M(m.version),
|
|
56572
56569
|
userAgent: M(g)
|
|
@@ -56597,7 +56594,7 @@
|
|
|
56597
56594
|
}
|
|
56598
56595
|
}, nP.deviceType = e1, nP.engineName = eJ, nP.engineVersion = e3, nP.fullBrowserVersion = eH, nP.getSelectorsByUserAgent = function(t) {
|
|
56599
56596
|
if (!t || "string" != typeof t) return void console.error("No valid user agent string was provided");
|
|
56600
|
-
var r =
|
|
56597
|
+
var r = f(t);
|
|
56601
56598
|
return eP({
|
|
56602
56599
|
device: r.device,
|
|
56603
56600
|
browser: r.browser,
|
|
@@ -56605,8 +56602,8 @@
|
|
|
56605
56602
|
engine: r.engine,
|
|
56606
56603
|
ua: r.ua
|
|
56607
56604
|
});
|
|
56608
|
-
}, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eA, nP.isChrome = ez, nP.isChromium = ej, nP.isConsole = eE, nP.isDesktop = eR, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e6, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = eN, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e7, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = eI, nP.isMobileOnly = eO, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eM, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent =
|
|
56609
|
-
return
|
|
56605
|
+
}, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eA, nP.isChrome = ez, nP.isChromium = ej, nP.isConsole = eE, nP.isDesktop = eR, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e6, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = eN, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e7, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = eI, nP.isMobileOnly = eO, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eM, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent = f, nP.setUserAgent = function(t) {
|
|
56606
|
+
return p(t);
|
|
56610
56607
|
}, nP.useDeviceData = ta, nP.useDeviceSelectors = function(t) {
|
|
56611
56608
|
var r = ta(t || window.navigator.userAgent);
|
|
56612
56609
|
return [
|
|
@@ -56812,7 +56809,7 @@
|
|
|
56812
56809
|
var nM = oX(function() {
|
|
56813
56810
|
if (tW) return tV;
|
|
56814
56811
|
tW = 1;
|
|
56815
|
-
var t = 0 / 0, r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, i = /^0o[0-7]+$/i, a = parseInt, s = "object" == typeof oQ && oQ && oQ.Object === Object && oQ, c = "object" == typeof self && self && self.Object === Object && self, l = s || c || Function("return this")(), d = Object.prototype.toString, u = Math.max,
|
|
56812
|
+
var t = 0 / 0, r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, i = /^0o[0-7]+$/i, a = parseInt, s = "object" == typeof oQ && oQ && oQ.Object === Object && oQ, c = "object" == typeof self && self && self.Object === Object && self, l = s || c || Function("return this")(), d = Object.prototype.toString, u = Math.max, p = Math.min, f = function() {
|
|
56816
56813
|
return l.Date.now();
|
|
56817
56814
|
};
|
|
56818
56815
|
function h(t) {
|
|
@@ -56828,8 +56825,8 @@
|
|
|
56828
56825
|
}
|
|
56829
56826
|
if ("string" != typeof s) return 0 === s ? s : +s;
|
|
56830
56827
|
s = s.replace(r, "");
|
|
56831
|
-
var
|
|
56832
|
-
return
|
|
56828
|
+
var p = n.test(s);
|
|
56829
|
+
return p || i.test(s) ? a(s.slice(2), p ? 2 : 8) : o.test(s) ? t : +s;
|
|
56833
56830
|
}
|
|
56834
56831
|
return tV = function(t, r, o) {
|
|
56835
56832
|
var n, i, a, s, c, l, d = 0, g = !1, b = !1, v = !0;
|
|
@@ -56844,15 +56841,15 @@
|
|
|
56844
56841
|
return void 0 === l || o >= r || o < 0 || b && n >= a;
|
|
56845
56842
|
}
|
|
56846
56843
|
function y() {
|
|
56847
|
-
var t, o, n, i, s =
|
|
56844
|
+
var t, o, n, i, s = f();
|
|
56848
56845
|
if (k(s)) return C(s);
|
|
56849
|
-
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ?
|
|
56846
|
+
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ? p(i, a - n) : i));
|
|
56850
56847
|
}
|
|
56851
56848
|
function C(t) {
|
|
56852
56849
|
return (c = void 0, v && n) ? w(t) : (n = i = void 0, s);
|
|
56853
56850
|
}
|
|
56854
56851
|
function B() {
|
|
56855
|
-
var t, o =
|
|
56852
|
+
var t, o = f(), a = k(o);
|
|
56856
56853
|
if (n = arguments, i = this, l = o, a) {
|
|
56857
56854
|
if (void 0 === c) {
|
|
56858
56855
|
return d = t = l, c = setTimeout(y, r), g ? w(t) : s;
|
|
@@ -56864,7 +56861,7 @@
|
|
|
56864
56861
|
return B.cancel = function() {
|
|
56865
56862
|
void 0 !== c && clearTimeout(c), d = 0, n = l = i = c = void 0;
|
|
56866
56863
|
}, B.flush = function() {
|
|
56867
|
-
return void 0 === c ? s : C(
|
|
56864
|
+
return void 0 === c ? s : C(f());
|
|
56868
56865
|
}, B;
|
|
56869
56866
|
};
|
|
56870
56867
|
}()), nA = {
|
|
@@ -56875,11 +56872,11 @@
|
|
|
56875
56872
|
var t = tq ? nA.exports : (tq = 1, nA.exports = function() {
|
|
56876
56873
|
if (tU) return nR;
|
|
56877
56874
|
tU = 1;
|
|
56878
|
-
var t = "function" == typeof Symbol && Symbol.for, r = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112,
|
|
56875
|
+
var t = "function" == typeof Symbol && Symbol.for, r = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
56879
56876
|
function k(t) {
|
|
56880
56877
|
if ("object" == typeof t && null !== t) {
|
|
56881
|
-
var
|
|
56882
|
-
switch(
|
|
56878
|
+
var f = t.$$typeof;
|
|
56879
|
+
switch(f){
|
|
56883
56880
|
case r:
|
|
56884
56881
|
switch(t = t.type){
|
|
56885
56882
|
case l:
|
|
@@ -56887,7 +56884,7 @@
|
|
|
56887
56884
|
case n:
|
|
56888
56885
|
case a:
|
|
56889
56886
|
case i:
|
|
56890
|
-
case
|
|
56887
|
+
case p:
|
|
56891
56888
|
return t;
|
|
56892
56889
|
default:
|
|
56893
56890
|
switch(t = t && t.$$typeof){
|
|
@@ -56898,18 +56895,18 @@
|
|
|
56898
56895
|
case s:
|
|
56899
56896
|
return t;
|
|
56900
56897
|
default:
|
|
56901
|
-
return
|
|
56898
|
+
return f;
|
|
56902
56899
|
}
|
|
56903
56900
|
}
|
|
56904
56901
|
case o:
|
|
56905
|
-
return
|
|
56902
|
+
return f;
|
|
56906
56903
|
}
|
|
56907
56904
|
}
|
|
56908
56905
|
}
|
|
56909
56906
|
function y(t) {
|
|
56910
56907
|
return k(t) === d;
|
|
56911
56908
|
}
|
|
56912
|
-
return nR.AsyncMode = l, nR.ConcurrentMode = d, nR.ContextConsumer = c, nR.ContextProvider = s, nR.Element = r, nR.ForwardRef = u, nR.Fragment = n, nR.Lazy = m, nR.Memo = h, nR.Portal = o, nR.Profiler = a, nR.StrictMode = i, nR.Suspense =
|
|
56909
|
+
return nR.AsyncMode = l, nR.ConcurrentMode = d, nR.ContextConsumer = c, nR.ContextProvider = s, nR.Element = r, nR.ForwardRef = u, nR.Fragment = n, nR.Lazy = m, nR.Memo = h, nR.Portal = o, nR.Profiler = a, nR.StrictMode = i, nR.Suspense = p, nR.isAsyncMode = function(t) {
|
|
56913
56910
|
return y(t) || k(t) === l;
|
|
56914
56911
|
}, nR.isConcurrentMode = y, nR.isContextConsumer = function(t) {
|
|
56915
56912
|
return k(t) === c;
|
|
@@ -56932,9 +56929,9 @@
|
|
|
56932
56929
|
}, nR.isStrictMode = function(t) {
|
|
56933
56930
|
return k(t) === i;
|
|
56934
56931
|
}, nR.isSuspense = function(t) {
|
|
56935
|
-
return k(t) ===
|
|
56932
|
+
return k(t) === p;
|
|
56936
56933
|
}, nR.isValidElementType = function(t) {
|
|
56937
|
-
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t ===
|
|
56934
|
+
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t === p || t === f || "object" == typeof t && null !== t && (t.$$typeof === m || t.$$typeof === h || t.$$typeof === s || t.$$typeof === c || t.$$typeof === u || t.$$typeof === b || t.$$typeof === v || t.$$typeof === w || t.$$typeof === g);
|
|
56938
56935
|
}, nR.typeOf = k, nR;
|
|
56939
56936
|
}(), nA.exports), r = {
|
|
56940
56937
|
childContextTypes: !0,
|
|
@@ -56974,12 +56971,12 @@
|
|
|
56974
56971
|
displayName: !0,
|
|
56975
56972
|
propTypes: !0
|
|
56976
56973
|
}, i[t.Memo] = n;
|
|
56977
|
-
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf,
|
|
56974
|
+
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf, p = Object.prototype;
|
|
56978
56975
|
return tQ = function t(r, n, i) {
|
|
56979
56976
|
if ("string" != typeof n) {
|
|
56980
|
-
if (
|
|
56981
|
-
var
|
|
56982
|
-
|
|
56977
|
+
if (p) {
|
|
56978
|
+
var f = u(n);
|
|
56979
|
+
f && f !== p && t(r, f, i);
|
|
56983
56980
|
}
|
|
56984
56981
|
var h = c(n);
|
|
56985
56982
|
l && (h = h.concat(l(n)));
|
|
@@ -57136,7 +57133,7 @@
|
|
|
57136
57133
|
else console.warn("Flashlight is not supported or not initialized.");
|
|
57137
57134
|
}, [
|
|
57138
57135
|
c
|
|
57139
|
-
]),
|
|
57136
|
+
]), p = reactExports.useCallback(async ()=>{
|
|
57140
57137
|
if (c && c.isSupported()) try {
|
|
57141
57138
|
await c.turnOff(), d.current = !1;
|
|
57142
57139
|
} catch (t) {
|
|
@@ -57144,15 +57141,15 @@
|
|
|
57144
57141
|
}
|
|
57145
57142
|
}, [
|
|
57146
57143
|
c
|
|
57147
|
-
]),
|
|
57144
|
+
]), f = React.useMemo(()=>({
|
|
57148
57145
|
turnOnFlashlight: u,
|
|
57149
|
-
turnOffFlashlight:
|
|
57146
|
+
turnOffFlashlight: p
|
|
57150
57147
|
}), [
|
|
57151
57148
|
u,
|
|
57152
|
-
|
|
57149
|
+
p
|
|
57153
57150
|
]);
|
|
57154
57151
|
return oZ.jsx(nU.Provider, {
|
|
57155
|
-
value:
|
|
57152
|
+
value: f,
|
|
57156
57153
|
children: s
|
|
57157
57154
|
});
|
|
57158
57155
|
}, { Errors: nQ } = ra$1, nX = dt$1.div`
|
|
@@ -57198,7 +57195,7 @@
|
|
|
57198
57195
|
`;
|
|
57199
57196
|
function nJ(r) {
|
|
57200
57197
|
var s, c;
|
|
57201
|
-
let l, { checkCameraMode: d, frontCamera: u, onClose:
|
|
57198
|
+
let l, { checkCameraMode: d, frontCamera: u, onClose: p, children: f, onVideoPlayed: w, flipHorizontal: k, videoSettings: y, refVideo: C, onError: B, closeButton: _, videoClassName: x, scale: P, defaultCameraId: S, onWarning: E } = r, T = reactExports.useRef(), { lang: D } = no$1.useSDKSettings(), { sendEvent: $ } = iN$1.useSDKTracking(), j = nz("closeButton.src", "ic_close.svg"), [I, O] = reactExports.useState(""), M = reactExports.useRef(!1), A = reactExports.useRef(!1), R = reactExports.useRef(!1), L = reactExports.useRef(), F = reactExports.useRef([]), N = reactExports.useRef(""), z = gB(), V = reactExports.useCallback((t)=>{
|
|
57202
57199
|
B && B(t);
|
|
57203
57200
|
}, [
|
|
57204
57201
|
B
|
|
@@ -57274,8 +57271,8 @@
|
|
|
57274
57271
|
},
|
|
57275
57272
|
...o
|
|
57276
57273
|
}
|
|
57277
|
-
},
|
|
57278
|
-
if (await U(), q(), !
|
|
57274
|
+
}, p = await navigator.mediaDevices.getUserMedia(n);
|
|
57275
|
+
if (await U(), q(), !p) return O(z("not_supported")), V(nQ.not_supported), null;
|
|
57279
57276
|
a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? $({
|
|
57280
57277
|
tag: "cam_permission",
|
|
57281
57278
|
event: "user_activity.cam",
|
|
@@ -57288,13 +57285,13 @@
|
|
|
57288
57285
|
log: {}
|
|
57289
57286
|
});
|
|
57290
57287
|
try {
|
|
57291
|
-
let t =
|
|
57292
|
-
if (h7.addExifData("device_info.camera_label_dimension.got", `${t.width}x${t.height}`), h7.addExifData("camera_res_selected", `${t.width}x${t.height}`), "function" == typeof
|
|
57293
|
-
let t =
|
|
57288
|
+
let t = p.getVideoTracks()[0].getSettings();
|
|
57289
|
+
if (h7.addExifData("device_info.camera_label_dimension.got", `${t.width}x${t.height}`), h7.addExifData("camera_res_selected", `${t.width}x${t.height}`), "function" == typeof p.getVideoTracks()[0].getCapabilities) {
|
|
57290
|
+
let t = p.getVideoTracks()[0].getCapabilities();
|
|
57294
57291
|
h7.addExifData("device_info.camera_capabilities", JSON.stringify(t));
|
|
57295
57292
|
}
|
|
57296
57293
|
} catch (t) {}
|
|
57297
|
-
return
|
|
57294
|
+
return p;
|
|
57298
57295
|
} catch (t) {
|
|
57299
57296
|
a(performance.now(), "end"), "NotAllowedError" === t.name ? (O(z("no_permission")), V(nQ.no_permission), A.current = !0, $({
|
|
57300
57297
|
tag: "cam_permission",
|
|
@@ -57405,13 +57402,13 @@
|
|
|
57405
57402
|
z
|
|
57406
57403
|
]);
|
|
57407
57404
|
let H = reactExports.useCallback(()=>{
|
|
57408
|
-
W(),
|
|
57405
|
+
W(), p && p(), $({
|
|
57409
57406
|
tag: "result",
|
|
57410
57407
|
event: "user_activity.cancel",
|
|
57411
57408
|
log: {}
|
|
57412
57409
|
});
|
|
57413
57410
|
}, [
|
|
57414
|
-
|
|
57411
|
+
p,
|
|
57415
57412
|
W,
|
|
57416
57413
|
$
|
|
57417
57414
|
]);
|
|
@@ -57474,7 +57471,7 @@
|
|
|
57474
57471
|
className: x,
|
|
57475
57472
|
scale: P
|
|
57476
57473
|
}),
|
|
57477
|
-
|
|
57474
|
+
f,
|
|
57478
57475
|
_ ? /*#__PURE__*/ React.cloneElement(_, {
|
|
57479
57476
|
onClick: H,
|
|
57480
57477
|
"data-testid": "close-camera"
|
|
@@ -57674,32 +57671,32 @@
|
|
|
57674
57671
|
"left center",
|
|
57675
57672
|
"left bottom"
|
|
57676
57673
|
], io = function(t, r, o, n, i) {
|
|
57677
|
-
var a = i.offsetX, s = i.offsetY, c = 8 * !!n, l = o.split(" "), d = t.top + t.height / 2, u = t.left + t.width / 2,
|
|
57674
|
+
var a = i.offsetX, s = i.offsetY, c = 8 * !!n, l = o.split(" "), d = t.top + t.height / 2, u = t.left + t.width / 2, p = r.height, f = r.width, h = d - p / 2, m = u - f / 2, g = "", b = "0%", v = "0%";
|
|
57678
57675
|
switch(l[0]){
|
|
57679
57676
|
case "top":
|
|
57680
|
-
h -=
|
|
57677
|
+
h -= p / 2 + t.height / 2 + c, g = "rotate(180deg) translateX(50%)", b = "100%", v = "50%";
|
|
57681
57678
|
break;
|
|
57682
57679
|
case "bottom":
|
|
57683
|
-
h +=
|
|
57680
|
+
h += p / 2 + t.height / 2 + c, g = "rotate(0deg) translateY(-100%) translateX(-50%)", v = "50%";
|
|
57684
57681
|
break;
|
|
57685
57682
|
case "left":
|
|
57686
|
-
m -=
|
|
57683
|
+
m -= f / 2 + t.width / 2 + c, g = " rotate(90deg) translateY(50%) translateX(-25%)", v = "100%", b = "50%";
|
|
57687
57684
|
break;
|
|
57688
57685
|
case "right":
|
|
57689
|
-
m +=
|
|
57686
|
+
m += f / 2 + t.width / 2 + c, g = "rotate(-90deg) translateY(-150%) translateX(25%)", b = "50%";
|
|
57690
57687
|
}
|
|
57691
57688
|
switch(l[1]){
|
|
57692
57689
|
case "top":
|
|
57693
57690
|
h = t.top, b = t.height / 2 + "px";
|
|
57694
57691
|
break;
|
|
57695
57692
|
case "bottom":
|
|
57696
|
-
h = t.top -
|
|
57693
|
+
h = t.top - p + t.height, b = p - t.height / 2 + "px";
|
|
57697
57694
|
break;
|
|
57698
57695
|
case "left":
|
|
57699
57696
|
m = t.left, v = t.width / 2 + "px";
|
|
57700
57697
|
break;
|
|
57701
57698
|
case "right":
|
|
57702
|
-
m = t.left -
|
|
57699
|
+
m = t.left - f + t.width, v = f - t.width / 2 + "px";
|
|
57703
57700
|
}
|
|
57704
57701
|
return h = "top" === l[0] ? h - s : h + s, {
|
|
57705
57702
|
top: h,
|
|
@@ -57727,12 +57724,12 @@
|
|
|
57727
57724
|
left: 0,
|
|
57728
57725
|
top: 0,
|
|
57729
57726
|
transform: "rotate(135deg)"
|
|
57730
|
-
}, d = 0, u = ii(a),
|
|
57727
|
+
}, d = 0, u = ii(a), p = Array.isArray(o) ? o : [
|
|
57731
57728
|
o
|
|
57732
57729
|
];
|
|
57733
|
-
for((a || Array.isArray(o)) && (
|
|
57734
|
-
var
|
|
57735
|
-
top: (l = io(t, r,
|
|
57730
|
+
for((a || Array.isArray(o)) && (p = [].concat(p, ir)); d < p.length;){
|
|
57731
|
+
var f = {
|
|
57732
|
+
top: (l = io(t, r, p[d], n, {
|
|
57736
57733
|
offsetX: s,
|
|
57737
57734
|
offsetY: c
|
|
57738
57735
|
})).top,
|
|
@@ -57740,7 +57737,7 @@
|
|
|
57740
57737
|
width: r.width,
|
|
57741
57738
|
height: r.height
|
|
57742
57739
|
};
|
|
57743
|
-
if (
|
|
57740
|
+
if (f.top <= u.top || f.left <= u.left || f.top + f.height >= u.top + u.height || f.left + f.width >= u.left + u.width) d++;
|
|
57744
57741
|
else break;
|
|
57745
57742
|
}
|
|
57746
57743
|
return l;
|
|
@@ -57748,7 +57745,7 @@
|
|
|
57748
57745
|
var t = document.getElementById("popup-root");
|
|
57749
57746
|
return null === t && ((t = document.createElement("div")).setAttribute("id", "popup-root"), document.body.appendChild(t)), t;
|
|
57750
57747
|
}, il = /*#__PURE__*/ reactExports.forwardRef(function(r, a) {
|
|
57751
|
-
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l,
|
|
57748
|
+
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l, p = r.onClose, f = void 0 === p ? function() {} : p, h = r.defaultOpen, m = r.open, g = void 0 === m ? void 0 : m, b = r.disabled, v = void 0 !== b && b, w = r.nested, k = void 0 !== w && w, y = r.closeOnDocumentClick, C = void 0 === y || y, B = r.repositionOnResize, _ = r.closeOnEscape, x = r.on, P = void 0 === x ? [
|
|
57752
57749
|
"click"
|
|
57753
57750
|
] : x, S = r.contentStyle, E = void 0 === S ? {} : S, T = r.arrowStyle, D = void 0 === T ? {} : T, $ = r.overlayStyle, j = r.className, I = void 0 === j ? "" : j, O = r.position, M = void 0 === O ? "bottom center" : O, A = r.modal, R = void 0 !== A && A, L = r.lockScroll, F = void 0 !== L && L, N = r.arrow, z = void 0 === N || N, V = r.offsetX, W = void 0 === V ? 0 : V, U = r.offsetY, q = void 0 === U ? 0 : U, Q = r.mouseEnterDelay, X = void 0 === Q ? 100 : Q, H = r.mouseLeaveDelay, Z = void 0 === H ? 100 : H, K = r.keepTooltipInside, Y = void 0 !== K && K, J = r.children, ee = reactExports.useState(g || void 0 !== h && h), et = ee[0], er = ee[1], eo = reactExports.useRef(null), en = reactExports.useRef(null), ei = reactExports.useRef(null), ea = reactExports.useRef(null), es = reactExports.useRef("popup-" + ++is), ec = !!R || !c, el = reactExports.useRef(0);
|
|
57754
57751
|
n7(function() {
|
|
@@ -57770,16 +57767,16 @@
|
|
|
57770
57767
|
}, eu = function(t) {
|
|
57771
57768
|
var r;
|
|
57772
57769
|
et && !v && (er(!1), ec && (null == (r = ea.current) || r.focus()), setTimeout(function() {
|
|
57773
|
-
return
|
|
57770
|
+
return f(t);
|
|
57774
57771
|
}, 0));
|
|
57775
|
-
}, ef = function(t) {
|
|
57776
|
-
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57777
57772
|
}, ep = function(t) {
|
|
57773
|
+
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57774
|
+
}, ef = function(t) {
|
|
57778
57775
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57779
57776
|
return ed(t);
|
|
57780
57777
|
}, X);
|
|
57781
57778
|
}, eh = function(t) {
|
|
57782
|
-
null == t || t.preventDefault(),
|
|
57779
|
+
null == t || t.preventDefault(), ep();
|
|
57783
57780
|
}, em = function(t) {
|
|
57784
57781
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57785
57782
|
return eu(t);
|
|
@@ -57801,7 +57798,7 @@
|
|
|
57801
57798
|
eu();
|
|
57802
57799
|
},
|
|
57803
57800
|
toggle: function() {
|
|
57804
|
-
|
|
57801
|
+
ep();
|
|
57805
57802
|
}
|
|
57806
57803
|
};
|
|
57807
57804
|
});
|
|
@@ -57835,7 +57832,7 @@
|
|
|
57835
57832
|
t.stopPropagation();
|
|
57836
57833
|
}
|
|
57837
57834
|
};
|
|
57838
|
-
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter =
|
|
57835
|
+
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter = ef, r.onMouseLeave = em), r;
|
|
57839
57836
|
}, ey = function() {
|
|
57840
57837
|
return /*#__PURE__*/ React.createElement("div", Object.assign({}, ek(), {
|
|
57841
57838
|
key: "C",
|
|
@@ -57882,16 +57879,16 @@
|
|
|
57882
57879
|
P
|
|
57883
57880
|
], n = 0, i = o.length; n < i; n++)switch(o[n]){
|
|
57884
57881
|
case "click":
|
|
57885
|
-
r.onClick =
|
|
57882
|
+
r.onClick = ep;
|
|
57886
57883
|
break;
|
|
57887
57884
|
case "right-click":
|
|
57888
57885
|
r.onContextMenu = eh;
|
|
57889
57886
|
break;
|
|
57890
57887
|
case "hover":
|
|
57891
|
-
r.onMouseEnter =
|
|
57888
|
+
r.onMouseEnter = ef, r.onMouseLeave = em;
|
|
57892
57889
|
break;
|
|
57893
57890
|
case "focus":
|
|
57894
|
-
r.onFocus =
|
|
57891
|
+
r.onFocus = ef, r.onBlur = em;
|
|
57895
57892
|
}
|
|
57896
57893
|
if ("function" == typeof c) {
|
|
57897
57894
|
var a = c(et);
|
|
@@ -58157,8 +58154,8 @@
|
|
|
58157
58154
|
}
|
|
58158
58155
|
}
|
|
58159
58156
|
}, im = "default", ig = "error";
|
|
58160
|
-
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d }) {
|
|
58161
|
-
let
|
|
58157
|
+
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d, paddingCornerMultiplier: u = 1.5 }) {
|
|
58158
|
+
let f = reactExports.useMemo(()=>({
|
|
58162
58159
|
[im]: l,
|
|
58163
58160
|
[ig]: d,
|
|
58164
58161
|
...i
|
|
@@ -58166,7 +58163,7 @@
|
|
|
58166
58163
|
l,
|
|
58167
58164
|
d,
|
|
58168
58165
|
i
|
|
58169
|
-
]),
|
|
58166
|
+
]), h = s + a * u, m = f[n];
|
|
58170
58167
|
return oZ.jsxs("svg", {
|
|
58171
58168
|
width: r,
|
|
58172
58169
|
height: o,
|
|
@@ -58179,22 +58176,22 @@
|
|
|
58179
58176
|
ry: s,
|
|
58180
58177
|
width: r - a,
|
|
58181
58178
|
height: o - a,
|
|
58182
|
-
style:
|
|
58179
|
+
style: m
|
|
58183
58180
|
}),
|
|
58184
58181
|
oZ.jsx("path", {
|
|
58185
|
-
d: `M0,${
|
|
58182
|
+
d: `M0,${h} Q0,0 ${h},0 L0,0 Z`,
|
|
58186
58183
|
style: c
|
|
58187
58184
|
}),
|
|
58188
58185
|
oZ.jsx("path", {
|
|
58189
|
-
d: `M0,${o -
|
|
58186
|
+
d: `M0,${o - h} Q0,${o} ${h},${o} L0,${o} Z`,
|
|
58190
58187
|
style: c
|
|
58191
58188
|
}),
|
|
58192
58189
|
oZ.jsx("path", {
|
|
58193
|
-
d: `M${r -
|
|
58190
|
+
d: `M${r - h},${o} Q${r},${o} ${r},${o - h} L${r},${o} Z`,
|
|
58194
58191
|
style: c
|
|
58195
58192
|
}),
|
|
58196
58193
|
oZ.jsx("path", {
|
|
58197
|
-
d: `M${r -
|
|
58194
|
+
d: `M${r - h},0 Q${r},0 ${r},${h} L${r},0 Z`,
|
|
58198
58195
|
style: c
|
|
58199
58196
|
})
|
|
58200
58197
|
]
|
|
@@ -58213,7 +58210,8 @@
|
|
|
58213
58210
|
radius: PropTypes.number,
|
|
58214
58211
|
paddingStyle: PropTypes.shape({}),
|
|
58215
58212
|
defaultRectStyles: PropTypes.shape({}),
|
|
58216
|
-
errorRectStyles: PropTypes.shape({})
|
|
58213
|
+
errorRectStyles: PropTypes.shape({}),
|
|
58214
|
+
paddingCornerMultiplier: PropTypes.number
|
|
58217
58215
|
}, ib.defaultProps = {
|
|
58218
58216
|
className: "",
|
|
58219
58217
|
width: ih.IDCapturing.rectangleMask.width,
|
|
@@ -58224,7 +58222,8 @@
|
|
|
58224
58222
|
radius: ih.IDCapturing.rectangleMask.radius,
|
|
58225
58223
|
paddingStyle: ih.IDCapturing.rectangleMask.paddingStyle,
|
|
58226
58224
|
defaultRectStyles: ih.IDCapturing.rectangleMask.default,
|
|
58227
|
-
errorRectStyles: ih.IDCapturing.rectangleMask.error
|
|
58225
|
+
errorRectStyles: ih.IDCapturing.rectangleMask.error,
|
|
58226
|
+
paddingCornerMultiplier: 1.5
|
|
58228
58227
|
};
|
|
58229
58228
|
let iv = mt$1`
|
|
58230
58229
|
from {
|
|
@@ -58383,8 +58382,8 @@
|
|
|
58383
58382
|
if (o && !a || !o && !s) return null;
|
|
58384
58383
|
let { width: c, height: l } = r, d = document.createElement("canvas"), u = document.createElement("canvas");
|
|
58385
58384
|
d.width = c / 2, u.width = c / 2, d.height = l, u.height = l;
|
|
58386
|
-
let
|
|
58387
|
-
|
|
58385
|
+
let p = d.getContext("2d"), f = u.getContext("2d");
|
|
58386
|
+
p.drawImage(r, 0, 0, c / 2, l, 0, 0, c / 2, l), f.drawImage(r, c / 2, 0, c / 2, l, 0, 0, c / 2, l);
|
|
58388
58387
|
let [h, m] = await Promise.all([
|
|
58389
58388
|
fb.getModelPredictions({
|
|
58390
58389
|
model: t,
|
|
@@ -58425,13 +58424,13 @@
|
|
|
58425
58424
|
return i;
|
|
58426
58425
|
}, iz = (t, r)=>parseFloat(t.toFixed(r)), iV = ({ currentFrameBlurScore: t, incomingFrameBlurScore: r, currentFrameGlareScore: o, incomingFrameGlareScore: n, settings: i, blurLargeThreshold: a, blurSmallThreshold: s })=>{
|
|
58427
58426
|
if (null === t) return !0;
|
|
58428
|
-
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large,
|
|
58429
|
-
return (!c || !(
|
|
58427
|
+
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large, p = r?.small, f = r?.large;
|
|
58428
|
+
return (!c || !(p < s) && !(f < a)) && (Math.abs(p - d) > Number.EPSILON ? p > d : Math.abs(f - u) > Number.EPSILON ? f > u : !!(l && Math.abs(n - o) > Number.EPSILON) && n > o);
|
|
58430
58429
|
};
|
|
58431
58430
|
function iW(t, r, o, n, i) {
|
|
58432
58431
|
o && (o.strokeStyle = r, o.lineWidth = 2, t.forEach((t)=>{
|
|
58433
|
-
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n,
|
|
58434
|
-
o.strokeRect(l, d, u - l,
|
|
58432
|
+
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n, p = (c + i.y) * n;
|
|
58433
|
+
o.strokeRect(l, d, u - l, p - d);
|
|
58435
58434
|
}));
|
|
58436
58435
|
}
|
|
58437
58436
|
function iU(t) {
|
|
@@ -59237,14 +59236,14 @@
|
|
|
59237
59236
|
_drawToCanvas(t, r, o, n, i, a) {
|
|
59238
59237
|
if (this._animationFrameId && cancelAnimationFrame(this._animationFrameId), !t || !a || this._stopDrawing) return;
|
|
59239
59238
|
this._lastFrameTime = 0;
|
|
59240
|
-
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i,
|
|
59239
|
+
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i, p = (i)=>{
|
|
59241
59240
|
if (this._stopDrawing) {
|
|
59242
59241
|
this._animationFrameId = null;
|
|
59243
59242
|
return;
|
|
59244
59243
|
}
|
|
59245
|
-
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(
|
|
59244
|
+
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(p);
|
|
59246
59245
|
};
|
|
59247
|
-
this._animationFrameId = requestAnimationFrame(
|
|
59246
|
+
this._animationFrameId = requestAnimationFrame(p);
|
|
59248
59247
|
}
|
|
59249
59248
|
stopDrawing() {
|
|
59250
59249
|
this._stopDrawing = !0, this._animationFrameId && (cancelAnimationFrame(this._animationFrameId), this._animationFrameId = null);
|
|
@@ -59254,10 +59253,10 @@
|
|
|
59254
59253
|
this.clearVideoChunks(), this._stopDrawing = !1;
|
|
59255
59254
|
let { videoFrameWidth: a, videoFrameHeight: s, videoBitrate: c, fps: l } = o, d = l || this.DEFAULT_VIDEO_FPS, u = r.cropWidth / r.cropHeight;
|
|
59256
59255
|
aE(a) ? (n = a, i = a / u) : aE(s) ? (n = s * u, i = s) : (n = 400, i = 800);
|
|
59257
|
-
let
|
|
59258
|
-
|
|
59259
|
-
let
|
|
59260
|
-
if (!
|
|
59256
|
+
let p = document.createElement("canvas");
|
|
59257
|
+
p.width = n, p.height = i;
|
|
59258
|
+
let f = p.getContext("2d");
|
|
59259
|
+
if (!f) return console.error("Could not get canvas context."), {
|
|
59261
59260
|
mediaRecorder: null
|
|
59262
59261
|
};
|
|
59263
59262
|
try {
|
|
@@ -59265,7 +59264,7 @@
|
|
|
59265
59264
|
mimeType: "video/webm",
|
|
59266
59265
|
videoBitsPerSecond: c
|
|
59267
59266
|
}, i = nT.isIOS ? "video/mp4" : "video/webm";
|
|
59268
|
-
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(
|
|
59267
|
+
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(f, t, n, n / u, d, r), this._stream = p.captureStream(), o = {
|
|
59269
59268
|
mimeType: i,
|
|
59270
59269
|
videoBitsPerSecond: Math.min(c, this.MAX_VIDEO_BITRATE)
|
|
59271
59270
|
}), !this._stream) throw Error("Failed to create a media stream for recording.");
|
|
@@ -59320,7 +59319,7 @@
|
|
|
59320
59319
|
}
|
|
59321
59320
|
}, [
|
|
59322
59321
|
i
|
|
59323
|
-
]),
|
|
59322
|
+
]), f = reactExports.useCallback(()=>{
|
|
59324
59323
|
if (s.current && r.current) try {
|
|
59325
59324
|
s.current.discardRecording(), r.current = !1;
|
|
59326
59325
|
} catch (t) {
|
|
@@ -59329,19 +59328,19 @@
|
|
|
59329
59328
|
}, []);
|
|
59330
59329
|
return reactExports.useEffect(()=>{
|
|
59331
59330
|
let t = ()=>{
|
|
59332
|
-
"hidden" === document.visibilityState ?
|
|
59331
|
+
"hidden" === document.visibilityState ? f() : "visible" === document.visibilityState && c.current && l(c.current);
|
|
59333
59332
|
};
|
|
59334
59333
|
return document.addEventListener("visibilitychange", t), ()=>{
|
|
59335
59334
|
document.removeEventListener("visibilitychange", t);
|
|
59336
59335
|
};
|
|
59337
59336
|
}, [
|
|
59338
59337
|
l,
|
|
59339
|
-
|
|
59338
|
+
f
|
|
59340
59339
|
]), {
|
|
59341
59340
|
startRecording: l,
|
|
59342
59341
|
stopRecording: d,
|
|
59343
59342
|
resetRecording: u,
|
|
59344
|
-
discardRecording:
|
|
59343
|
+
discardRecording: f
|
|
59345
59344
|
};
|
|
59346
59345
|
}, { Errors: a$ } = ra$1, aj = ()=>({
|
|
59347
59346
|
imageBlob: null,
|
|
@@ -59554,22 +59553,22 @@
|
|
|
59554
59553
|
});
|
|
59555
59554
|
}
|
|
59556
59555
|
let aU = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
|
|
59557
|
-
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo:
|
|
59556
|
+
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo: f, frontSide: k, allowedCardTypes: y, settings: C, onCaptureDone: B, onUISpacingChange: x, outputEncryptionSettings: S, isShowingSpinner: E } = t, T = nt$2(), [D, F] = reactExports.useState({}), { yMessage: N, yCaptureButton: z, yToggleButton: V, yInstruction: U, yCountdown: q } = D, Q = nz("IDCapturing.captureIcon.src", "ic_camera.svg"), X = nz("IDCapturing.captureIcon.disabled.src", "ic_camera.svg"), H = nN("IDCapturing.countdown.color")({
|
|
59558
59557
|
theme: T
|
|
59559
|
-
}), G = nz("IDCapturing.loadingIcon.src", "ic_loading.gif"), [Z, K] = reactExports.useState(""), Y = gB(), [J, ee] = reactExports.useState(null), [et, er] = reactExports.useState(""), [eo, en] = reactExports.useState(null), { showPopup: ei, popupShown: ea, popupType: es } = ad(), ec = reactExports.useContext(aO), [el, ed] = reactExports.useState(!1), eu = reactExports.useRef(()=>{}),
|
|
59558
|
+
}), G = nz("IDCapturing.loadingIcon.src", "ic_loading.gif"), [Z, K] = reactExports.useState(""), Y = gB(), [J, ee] = reactExports.useState(null), [et, er] = reactExports.useState(""), [eo, en] = reactExports.useState(null), { showPopup: ei, popupShown: ea, popupType: es } = ad(), ec = reactExports.useContext(aO), [el, ed] = reactExports.useState(!1), eu = reactExports.useRef(()=>{}), ep = reactExports.useCallback((t)=>{
|
|
59560
59559
|
null === t ? er("") : er(Y(t?.code, {
|
|
59561
59560
|
side: k ? Y("front") : Y("back")
|
|
59562
59561
|
}));
|
|
59563
59562
|
}, [
|
|
59564
59563
|
Y,
|
|
59565
59564
|
k
|
|
59566
|
-
]),
|
|
59565
|
+
]), ef = reactExports.useCallback(()=>{
|
|
59567
59566
|
ee(""), eu.current();
|
|
59568
59567
|
}, []), eh = reactExports.useCallback((...t)=>{
|
|
59569
59568
|
ee(""), B(...t);
|
|
59570
59569
|
}, [
|
|
59571
59570
|
B
|
|
59572
|
-
]), { warmupDone: em, isPostProcessing: eg, isAutoCapturing: eb, takePictureManually: ev, restartSession: ew, resetIsProcessingImageBlobTaken: ek, isAutoCaptureModeOn: ey, onToggleAutoCaptureMode: eC, autoCaptureDuration: eB } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange:
|
|
59571
|
+
]), { warmupDone: em, isPostProcessing: eg, isAutoCapturing: eb, takePictureManually: ev, restartSession: ew, resetIsProcessingImageBlobTaken: ek, isAutoCaptureModeOn: ey, onToggleAutoCaptureMode: eC, autoCaptureDuration: eB } = (({ shouldStart: t, refVideo: r, cropArea: s, settings: l, onModelErrorChange: d, frontSide: u, onDebugInfoChange: f, onAboutToTimeout: g, onSessionTimeout: k, onCaptureDone: y, outputEncryptionSettings: C, quality: B })=>{
|
|
59573
59572
|
let x = reactExports.useRef(!1), [S, E] = reactExports.useState(!1), T = reactExports.useRef(()=>{}), { sendEvent: D } = iN$1.useSDKTracking(), L = reactExports.useRef(), F = reactExports.useRef(), N = reactExports.useRef(), z = reactExports.useContext(aO), { enableAntiDebug: V } = no$1.useSDKSettings(), { onErrorCallback: W } = aS(), { playVoice: U } = iJ$1.useVoicePlayer(), [q, Q] = reactExports.useState(nn(l, "enableAutoCapture")), X = reactExports.useCallback(()=>{
|
|
59574
59573
|
Q((t)=>!t);
|
|
59575
59574
|
}, []), { autoCaptureWaitForBestImageTimeMs: H, manualCaptureWaitForBestImageTimeMs: G } = l, Z = q ? H : G;
|
|
@@ -59610,30 +59609,30 @@
|
|
|
59610
59609
|
l.blurLargeThresholdAuto,
|
|
59611
59610
|
l.blurLargeThresholdManual,
|
|
59612
59611
|
l.enableAutoCapture
|
|
59613
|
-
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState:
|
|
59612
|
+
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState: ep, resetRecordVideo: ef } = function({ isAutoCapture: t, blurSmallThreshold: r, blurLargeThreshold: s, refVideo: l, shouldStart: d, cropArea: u, settings: f, onError: m, frontSide: g, onAutoCaptureSuccess: b, quality: k, debug: y }) {
|
|
59614
59613
|
let C = reactExports.useRef(null);
|
|
59615
59614
|
null === C.current && (C.current = document.createElement("canvas"));
|
|
59616
|
-
let B = reactExports.useRef([]), x = reactExports.useRef({}), S = reactExports.useRef(!1), E = reactExports.useRef([]), T = reactExports.useRef(!1), D = reactExports.useRef(null), [I, O] = reactExports.useState(!1), M = reactExports.useRef(aj()), A = reactExports.useRef(aI()), R = reactExports.useRef(null), L = reactExports.useRef(!1), F = reactExports.useRef(!1), N = reactExports.useRef(null), z = reactExports.useRef(!1), V = reactExports.useRef({}), { customUrls: W } = no$1.useSDKSettings(), { onErrorCallback: U } = aS(), [q, Q] = reactExports.useState(!0), X = reactExports.useRef([]), H = reactExports.useRef([]), G = reactExports.useRef(t), { allowedCards: Z } =
|
|
59617
|
-
videoFrameWidth:
|
|
59618
|
-
videoFrameHeight:
|
|
59619
|
-
videoBitrate:
|
|
59620
|
-
fps:
|
|
59615
|
+
let B = reactExports.useRef([]), x = reactExports.useRef({}), S = reactExports.useRef(!1), E = reactExports.useRef([]), T = reactExports.useRef(!1), D = reactExports.useRef(null), [I, O] = reactExports.useState(!1), M = reactExports.useRef(aj()), A = reactExports.useRef(aI()), R = reactExports.useRef(null), L = reactExports.useRef(!1), F = reactExports.useRef(!1), N = reactExports.useRef(null), z = reactExports.useRef(!1), V = reactExports.useRef({}), { customUrls: W } = no$1.useSDKSettings(), { onErrorCallback: U } = aS(), [q, Q] = reactExports.useState(!0), X = reactExports.useRef([]), H = reactExports.useRef([]), G = reactExports.useRef(t), { allowedCards: Z } = f, K = reactExports.useRef(null), [Y, J] = reactExports.useState(!1), ee = reactExports.useRef(!1), et = reactExports.useMemo(()=>({
|
|
59616
|
+
videoFrameWidth: f.recordVideoFrameWidth,
|
|
59617
|
+
videoFrameHeight: f.recordVideoFrameHeight,
|
|
59618
|
+
videoBitrate: f.recordVideoBitrate,
|
|
59619
|
+
fps: f.recordVideoFps
|
|
59621
59620
|
}), [
|
|
59622
|
-
|
|
59623
|
-
|
|
59624
|
-
|
|
59625
|
-
|
|
59621
|
+
f.recordVideoBitrate,
|
|
59622
|
+
f.recordVideoFps,
|
|
59623
|
+
f.recordVideoFrameHeight,
|
|
59624
|
+
f.recordVideoFrameWidth
|
|
59626
59625
|
]), { startRecording: er, stopRecording: eo, resetRecording: en } = aD({
|
|
59627
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59626
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordCapturingFront : f.enableRecordCapturingBack, [
|
|
59628
59627
|
g,
|
|
59629
|
-
|
|
59630
|
-
|
|
59628
|
+
f.enableRecordCapturingBack,
|
|
59629
|
+
f.enableRecordCapturingFront
|
|
59631
59630
|
])
|
|
59632
59631
|
}), { startRecording: ei, stopRecording: ea, resetRecording: es } = aD({
|
|
59633
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59632
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordFullSessionFront : f.enableRecordFullSessionBack, [
|
|
59634
59633
|
g,
|
|
59635
|
-
|
|
59636
|
-
|
|
59634
|
+
f.enableRecordFullSessionBack,
|
|
59635
|
+
f.enableRecordFullSessionFront
|
|
59637
59636
|
])
|
|
59638
59637
|
}), { turnOnFlashlight: ec, turnOffFlashlight: el } = (()=>{
|
|
59639
59638
|
let t = reactExports.useContext(nU);
|
|
@@ -59647,8 +59646,8 @@
|
|
|
59647
59646
|
]), reactExports.useEffect(()=>{
|
|
59648
59647
|
let t = !1;
|
|
59649
59648
|
return async function r() {
|
|
59650
|
-
if (
|
|
59651
|
-
if (
|
|
59649
|
+
if (f && !I) {
|
|
59650
|
+
if (f.enableIdDetection) {
|
|
59652
59651
|
let t = ((t, r)=>{
|
|
59653
59652
|
if (0 === t.length) return {
|
|
59654
59653
|
isValid: !1
|
|
@@ -59669,7 +59668,7 @@
|
|
|
59669
59668
|
} : {
|
|
59670
59669
|
isValid: !1
|
|
59671
59670
|
};
|
|
59672
|
-
})(Z.map((t)=>t.code),
|
|
59671
|
+
})(Z.map((t)=>t.code), f?.cardTypeModelMapping);
|
|
59673
59672
|
if (!t.isValid) {
|
|
59674
59673
|
U(a$.invalid_card_type_config), Q(!1), O(!0);
|
|
59675
59674
|
return;
|
|
@@ -59678,7 +59677,7 @@
|
|
|
59678
59677
|
V.current = await a_({
|
|
59679
59678
|
...W,
|
|
59680
59679
|
idCardModelUrl: r
|
|
59681
|
-
}, t.cardModel), await fY.initTensorFlow(), N.current =
|
|
59680
|
+
}, t.cardModel), await fY.initTensorFlow(), N.current = f.enableBlurCheck && V.current.ableToUseModel, Q(!t.forceOffDetection);
|
|
59682
59681
|
} else Q(!1), N.current = !1;
|
|
59683
59682
|
t || O(!0);
|
|
59684
59683
|
}
|
|
@@ -59687,7 +59686,7 @@
|
|
|
59687
59686
|
};
|
|
59688
59687
|
}, [
|
|
59689
59688
|
I,
|
|
59690
|
-
|
|
59689
|
+
f,
|
|
59691
59690
|
W,
|
|
59692
59691
|
Z,
|
|
59693
59692
|
U
|
|
@@ -59704,13 +59703,13 @@
|
|
|
59704
59703
|
});
|
|
59705
59704
|
}, [
|
|
59706
59705
|
k
|
|
59707
|
-
]),
|
|
59706
|
+
]), ep = reactExports.useCallback(()=>{
|
|
59708
59707
|
Y || (en(), es());
|
|
59709
59708
|
}, [
|
|
59710
59709
|
Y,
|
|
59711
59710
|
en,
|
|
59712
59711
|
es
|
|
59713
|
-
]),
|
|
59712
|
+
]), ef = reactExports.useCallback(async ()=>{
|
|
59714
59713
|
let t = {
|
|
59715
59714
|
capturingVideo: {
|
|
59716
59715
|
blob: null
|
|
@@ -59725,18 +59724,18 @@
|
|
|
59725
59724
|
}, [
|
|
59726
59725
|
eo,
|
|
59727
59726
|
ea
|
|
59728
|
-
]), eh = reactExports.useMemo(()=>g ?
|
|
59727
|
+
]), eh = reactExports.useMemo(()=>g ? f.enableFlashlightFront : f.enableFlashlightBack, [
|
|
59729
59728
|
g,
|
|
59730
|
-
|
|
59731
|
-
|
|
59732
|
-
]), em = reactExports.useMemo(()=>g ?
|
|
59729
|
+
f.enableFlashlightBack,
|
|
59730
|
+
f.enableFlashlightFront
|
|
59731
|
+
]), em = reactExports.useMemo(()=>g ? f.flashlightActivationDelayFront : f.flashlightActivationDelayBack, [
|
|
59733
59732
|
g,
|
|
59734
|
-
|
|
59735
|
-
|
|
59736
|
-
]), eg = reactExports.useMemo(()=>g ?
|
|
59733
|
+
f.flashlightActivationDelayBack,
|
|
59734
|
+
f.flashlightActivationDelayFront
|
|
59735
|
+
]), eg = reactExports.useMemo(()=>g ? f.flashlightDurationFront : f.flashlightDurationBack, [
|
|
59737
59736
|
g,
|
|
59738
|
-
|
|
59739
|
-
|
|
59737
|
+
f.flashlightDurationBack,
|
|
59738
|
+
f.flashlightDurationFront
|
|
59740
59739
|
]), eb = reactExports.useCallback(()=>{
|
|
59741
59740
|
!ed.current && eh && (ed.current = !0, setTimeout(()=>{
|
|
59742
59741
|
ec(eg);
|
|
@@ -59753,9 +59752,9 @@
|
|
|
59753
59752
|
]), ew = reactExports.useCallback(()=>{
|
|
59754
59753
|
!0 === T.current && (T.current = !1);
|
|
59755
59754
|
}, []), ek = reactExports.useCallback(()=>{
|
|
59756
|
-
|
|
59755
|
+
ep(), X.current = [], H.current = [], R.current = null, z.current = !1, ee.current = !1;
|
|
59757
59756
|
}, [
|
|
59758
|
-
|
|
59757
|
+
ep
|
|
59759
59758
|
]), ey = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59760
59759
|
await er({
|
|
59761
59760
|
videoEl: l.current,
|
|
@@ -59768,7 +59767,7 @@
|
|
|
59768
59767
|
incomingFrameBlurScore: t,
|
|
59769
59768
|
currentFrameGlareScore: i.glareScore,
|
|
59770
59769
|
incomingFrameGlareScore: n,
|
|
59771
|
-
settings:
|
|
59770
|
+
settings: f,
|
|
59772
59771
|
blurLargeThreshold: s,
|
|
59773
59772
|
blurSmallThreshold: r
|
|
59774
59773
|
})) {
|
|
@@ -59786,25 +59785,25 @@
|
|
|
59786
59785
|
}
|
|
59787
59786
|
i.takenAt = new Date().getTime(), i.blurScore = t, i.glareScore = n, i.detectedCard = o, i.captureType = "auto";
|
|
59788
59787
|
}
|
|
59789
|
-
|
|
59788
|
+
f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n);
|
|
59790
59789
|
}, [
|
|
59791
59790
|
er,
|
|
59792
59791
|
l,
|
|
59793
59792
|
et,
|
|
59794
59793
|
eb,
|
|
59795
|
-
|
|
59794
|
+
f,
|
|
59796
59795
|
s,
|
|
59797
59796
|
r,
|
|
59798
59797
|
k
|
|
59799
59798
|
]), eC = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59800
59799
|
F.current = !0;
|
|
59801
59800
|
let i = A.current;
|
|
59802
|
-
if (
|
|
59801
|
+
if (f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n), iV({
|
|
59803
59802
|
currentFrameBlurScore: i.blurScore,
|
|
59804
59803
|
currentFrameGlareScore: i.glareScore,
|
|
59805
59804
|
incomingFrameBlurScore: t,
|
|
59806
59805
|
incomingFrameGlareScore: n,
|
|
59807
|
-
settings:
|
|
59806
|
+
settings: f,
|
|
59808
59807
|
blurLargeThreshold: s,
|
|
59809
59808
|
blurSmallThreshold: r
|
|
59810
59809
|
})) {
|
|
@@ -59823,19 +59822,19 @@
|
|
|
59823
59822
|
s,
|
|
59824
59823
|
r,
|
|
59825
59824
|
k,
|
|
59826
|
-
|
|
59825
|
+
f
|
|
59827
59826
|
]), eB = reactExports.useCallback(async ()=>{
|
|
59828
|
-
let { autoCaptureWaitForBestImageTimeMs: t } =
|
|
59827
|
+
let { autoCaptureWaitForBestImageTimeMs: t } = f, r = M.current;
|
|
59829
59828
|
if (null !== r.imageBlob && new Date().getTime() - R.current > t) {
|
|
59830
|
-
let t = await
|
|
59829
|
+
let t = await ef();
|
|
59831
59830
|
await ev(), await b({
|
|
59832
59831
|
...r,
|
|
59833
59832
|
...t
|
|
59834
59833
|
}), J(!1), R.current = null;
|
|
59835
59834
|
}
|
|
59836
59835
|
}, [
|
|
59837
|
-
|
|
59838
|
-
|
|
59836
|
+
f,
|
|
59837
|
+
ef,
|
|
59839
59838
|
ev,
|
|
59840
59839
|
b
|
|
59841
59840
|
]), e_ = reactExports.useCallback(()=>{
|
|
@@ -59850,7 +59849,7 @@
|
|
|
59850
59849
|
resultAnalyzeVideoAndWindowSizes: D.current,
|
|
59851
59850
|
recordVideoSettings: et
|
|
59852
59851
|
}), eb(), new Promise((t)=>{
|
|
59853
|
-
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } =
|
|
59852
|
+
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } = f, i = A.current;
|
|
59854
59853
|
if (i.captureTime = Date.now(), N.current) J(!0), e_(), setTimeout(()=>{
|
|
59855
59854
|
ex().then(async ()=>{
|
|
59856
59855
|
await ev(), (i.blurScore?.small <= r || i.blurScore?.large <= s) && (i.error = a$.id_detector_error_blur);
|
|
@@ -59865,7 +59864,7 @@
|
|
|
59865
59864
|
quality: k
|
|
59866
59865
|
}).then(async (n)=>{
|
|
59867
59866
|
i.imageBlob = n, i.captureTime = Date.now(), i.hash = r, o && await eu(i.detectedCard);
|
|
59868
|
-
let a = await
|
|
59867
|
+
let a = await ef();
|
|
59869
59868
|
t({
|
|
59870
59869
|
...i,
|
|
59871
59870
|
...a
|
|
@@ -59873,7 +59872,7 @@
|
|
|
59873
59872
|
});
|
|
59874
59873
|
} else {
|
|
59875
59874
|
o && await eu(i.detectedCard);
|
|
59876
|
-
let r = await
|
|
59875
|
+
let r = await ef();
|
|
59877
59876
|
t({
|
|
59878
59877
|
...i,
|
|
59879
59878
|
...r
|
|
@@ -59900,10 +59899,10 @@
|
|
|
59900
59899
|
l,
|
|
59901
59900
|
et,
|
|
59902
59901
|
eb,
|
|
59903
|
-
|
|
59902
|
+
f,
|
|
59904
59903
|
e_,
|
|
59905
59904
|
ex,
|
|
59906
|
-
|
|
59905
|
+
ef,
|
|
59907
59906
|
ev,
|
|
59908
59907
|
r,
|
|
59909
59908
|
s,
|
|
@@ -59937,10 +59936,10 @@
|
|
|
59937
59936
|
portraitTopLeft: c,
|
|
59938
59937
|
portraitBottomRight: l
|
|
59939
59938
|
};
|
|
59940
|
-
}(t,
|
|
59939
|
+
}(t, f.blurFullFaceImageRatio, r), a = function(t, r) {
|
|
59941
59940
|
let { cv: o } = window;
|
|
59942
59941
|
if (!o) throw Error("Opencv not found!");
|
|
59943
|
-
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t,
|
|
59942
|
+
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t, p = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59944
59943
|
n.x,
|
|
59945
59944
|
n.y,
|
|
59946
59945
|
i.x,
|
|
@@ -59949,7 +59948,7 @@
|
|
|
59949
59948
|
a.y,
|
|
59950
59949
|
s.x,
|
|
59951
59950
|
s.y
|
|
59952
|
-
]),
|
|
59951
|
+
]), f = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59953
59952
|
0,
|
|
59954
59953
|
0,
|
|
59955
59954
|
c - 1,
|
|
@@ -59958,7 +59957,7 @@
|
|
|
59958
59957
|
l - 1,
|
|
59959
59958
|
0,
|
|
59960
59959
|
l - 1
|
|
59961
|
-
]), h = o.getPerspectiveTransform(
|
|
59960
|
+
]), h = o.getPerspectiveTransform(p, f), m = (t)=>{
|
|
59962
59961
|
let r = o.matFromArray(1, 1, o.CV_32FC2, [
|
|
59963
59962
|
t[0],
|
|
59964
59963
|
t[1]
|
|
@@ -59972,7 +59971,7 @@
|
|
|
59972
59971
|
Math.max(0, Math.min(i[1] * (ra$1.RESIZE_IMAGE_HEIGHT / l), l))
|
|
59973
59972
|
];
|
|
59974
59973
|
}, g = m(d), b = m(u);
|
|
59975
|
-
return
|
|
59974
|
+
return p.delete(), f.delete(), h.delete(), [
|
|
59976
59975
|
parseInt(g[0], 10),
|
|
59977
59976
|
parseInt(g[1], 10),
|
|
59978
59977
|
parseInt(b[0], 10),
|
|
@@ -60050,9 +60049,9 @@
|
|
|
60050
60049
|
};
|
|
60051
60050
|
}
|
|
60052
60051
|
}, [
|
|
60053
|
-
|
|
60052
|
+
f
|
|
60054
60053
|
]), e$ = reactExports.useCallback(async ({ result: t, workingCanvas: o })=>{
|
|
60055
|
-
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding:
|
|
60054
|
+
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding: p, cropHeightWithoutPadding: h } = D.current, { enableBlurCheck: m, enableGlareCheck: b, glareThreshold: v, isVietnameseCardFlow: k, hasFrontFace: C, hasBackFace: B, genericEnableCheckFrontFace: x, genericEnableCheckBackFace: P } = f, { blazefaceModel: S, blurDetector: E } = V.current, T = {
|
|
60056
60055
|
error: null
|
|
60057
60056
|
};
|
|
60058
60057
|
try {
|
|
@@ -60069,12 +60068,12 @@
|
|
|
60069
60068
|
area: c.width * c.height
|
|
60070
60069
|
},
|
|
60071
60070
|
big: {
|
|
60072
|
-
area:
|
|
60071
|
+
area: p * h
|
|
60073
60072
|
}
|
|
60074
60073
|
});
|
|
60075
60074
|
if (l < .5) throw Error("id_detector_card_too_small");
|
|
60076
60075
|
if (l > .95) throw Error("id_detector_error_incomplete");
|
|
60077
|
-
if (k && nn(
|
|
60076
|
+
if (k && nn(f, "enableCardTypeCheck")) {
|
|
60078
60077
|
let r = nn(t, "card.label", ""), { isAllowed: o, cardType: n } = ((t, r)=>{
|
|
60079
60078
|
let o = t.split(".")?.[0];
|
|
60080
60079
|
if (o !== r[0].split(".")?.[0]) return {
|
|
@@ -60148,8 +60147,8 @@
|
|
|
60148
60147
|
smallThreshold: r,
|
|
60149
60148
|
largeThreshold: s
|
|
60150
60149
|
}), u = {
|
|
60151
|
-
small: iz(d?.[0],
|
|
60152
|
-
large: iz(d?.[1],
|
|
60150
|
+
small: iz(d?.[0], f.blurSmallDecimal),
|
|
60151
|
+
large: iz(d?.[1], f.blurLargeDecimal)
|
|
60153
60152
|
};
|
|
60154
60153
|
if (eT.current = {
|
|
60155
60154
|
...eT.current,
|
|
@@ -60165,10 +60164,10 @@
|
|
|
60165
60164
|
}
|
|
60166
60165
|
if (y) {
|
|
60167
60166
|
var I, O, M, A, R, L, F, N;
|
|
60168
|
-
let r, s,
|
|
60167
|
+
let r, s, p, f = nn(t, "card.label"), h = nn(t, "card.corners");
|
|
60169
60168
|
eT.current = {
|
|
60170
60169
|
...eT.current,
|
|
60171
|
-
label:
|
|
60170
|
+
label: f,
|
|
60172
60171
|
corner_size: h?.length
|
|
60173
60172
|
}, p_.drawDebugCanvas(eE.current, eT.current);
|
|
60174
60173
|
let m = i$ / o.width, g = eS.current.getContext("2d");
|
|
@@ -60180,7 +60179,7 @@
|
|
|
60180
60179
|
o.strokeRect(s, c, l - s, d - c);
|
|
60181
60180
|
}(O[0], "black", I, R), s = M.filter((t)=>"small" === t.lapType), s.length > 0 && s.forEach((t)=>{
|
|
60182
60181
|
iW(t.bboxes, "blue", I, R, r);
|
|
60183
|
-
}),
|
|
60182
|
+
}), p = M.filter((t)=>"large" === t.lapType), p.length > 0 && p.forEach((t)=>{
|
|
60184
60183
|
iW(t.bboxes, "green", I, R, r);
|
|
60185
60184
|
}), L = A.map((t)=>t.location), F = I, N = R, F && (F.strokeStyle = "red", F.lineWidth = 2, L.forEach((t)=>{
|
|
60186
60185
|
let r = t.x * N, o = t.y * N;
|
|
@@ -60189,7 +60188,7 @@
|
|
|
60189
60188
|
}
|
|
60190
60189
|
return T;
|
|
60191
60190
|
}, [
|
|
60192
|
-
|
|
60191
|
+
f,
|
|
60193
60192
|
y,
|
|
60194
60193
|
l,
|
|
60195
60194
|
Z,
|
|
@@ -60198,13 +60197,13 @@
|
|
|
60198
60197
|
s,
|
|
60199
60198
|
eD
|
|
60200
60199
|
]), ej = reactExports.useCallback(async ()=>{
|
|
60201
|
-
if (!
|
|
60200
|
+
if (!f || !I || T.current) return;
|
|
60202
60201
|
M.current = aj(), A.current = aI();
|
|
60203
|
-
let { enableVirtualCamHashes: t } =
|
|
60202
|
+
let { enableVirtualCamHashes: t } = f, { idCardModel: r, ableToUseModel: o } = V.current, n = D.current, i = l.current;
|
|
60204
60203
|
T.current = !0;
|
|
60205
60204
|
let { cropX: a, cropY: s, cropWidth: c, cropHeight: d } = n, u = C.current;
|
|
60206
60205
|
u.width = c, u.height = d;
|
|
60207
|
-
let
|
|
60206
|
+
let p = u.getContext("2d"), h = async ()=>{
|
|
60208
60207
|
if (!1 === T.current) return;
|
|
60209
60208
|
await ei({
|
|
60210
60209
|
videoEl: l.current,
|
|
@@ -60212,11 +60211,11 @@
|
|
|
60212
60211
|
recordVideoSettings: et
|
|
60213
60212
|
});
|
|
60214
60213
|
let n = K.current;
|
|
60215
|
-
|
|
60214
|
+
p.drawImage(i, a, s, c, d, 0, 0, c, d);
|
|
60216
60215
|
let g = performance.now();
|
|
60217
60216
|
if (z.current = !1, q && o) {
|
|
60218
60217
|
let o = await r.predict(u);
|
|
60219
|
-
!
|
|
60218
|
+
!f?.trackCardCoordinates || A.current.imageBlob || M.current.imageBlob || E.current.push(((t)=>{
|
|
60220
60219
|
let r = nn(t, "card.corners");
|
|
60221
60220
|
if (r && Array.isArray(r) && r.length > 0) {
|
|
60222
60221
|
let { x: t, y: o } = nn(r, "[0].location");
|
|
@@ -60245,7 +60244,7 @@
|
|
|
60245
60244
|
};
|
|
60246
60245
|
K.current = window.requestAnimationFrame(h);
|
|
60247
60246
|
}, [
|
|
60248
|
-
|
|
60247
|
+
f,
|
|
60249
60248
|
I,
|
|
60250
60249
|
l,
|
|
60251
60250
|
ei,
|
|
@@ -60298,7 +60297,7 @@
|
|
|
60298
60297
|
refBlurScores: X,
|
|
60299
60298
|
refGlareScores: H,
|
|
60300
60299
|
resetState: ek,
|
|
60301
|
-
resetRecordVideo:
|
|
60300
|
+
resetRecordVideo: ep
|
|
60302
60301
|
};
|
|
60303
60302
|
}({
|
|
60304
60303
|
isAutoCapture: q,
|
|
@@ -60316,17 +60315,17 @@
|
|
|
60316
60315
|
});
|
|
60317
60316
|
reactExports.useContext(aO);
|
|
60318
60317
|
let eh = reactExports.useCallback(()=>{
|
|
60319
|
-
|
|
60318
|
+
ef(), eo(), k();
|
|
60320
60319
|
}, [
|
|
60321
60320
|
eo,
|
|
60322
|
-
|
|
60321
|
+
ef,
|
|
60323
60322
|
k
|
|
60324
60323
|
]), { resumeTimer: em, pauseTimer: eg } = ((t)=>{
|
|
60325
|
-
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t,
|
|
60324
|
+
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t, p = reactExports.useRef(new pT({
|
|
60326
60325
|
totalTime: i,
|
|
60327
60326
|
interruptible: r
|
|
60328
60327
|
}));
|
|
60329
|
-
reactExports.useEffect(()=>
|
|
60328
|
+
reactExports.useEffect(()=>p.current.on("tick", ({ remainTime: t })=>{
|
|
60330
60329
|
t >= 0 && t <= i / 3 && "function" == typeof c && c({
|
|
60331
60330
|
curTimeLeft: t
|
|
60332
60331
|
});
|
|
@@ -60335,24 +60334,24 @@
|
|
|
60335
60334
|
c,
|
|
60336
60335
|
i,
|
|
60337
60336
|
r
|
|
60338
|
-
]), reactExports.useEffect(()=>
|
|
60339
|
-
r &&
|
|
60337
|
+
]), reactExports.useEffect(()=>p.current.on("reset", ({ attemptCount: t })=>{
|
|
60338
|
+
r && p.current.pause(), l(), s?.enable && t >= s?.total && u(ra$1.Errors.max_retry_reached);
|
|
60340
60339
|
}), [
|
|
60341
60340
|
l,
|
|
60342
60341
|
u,
|
|
60343
60342
|
s?.enable,
|
|
60344
60343
|
s?.total,
|
|
60345
60344
|
r
|
|
60346
|
-
]), reactExports.useEffect(()=>d ?
|
|
60345
|
+
]), reactExports.useEffect(()=>d ? p.current.start() : ()=>{}, [
|
|
60347
60346
|
d
|
|
60348
60347
|
]);
|
|
60349
|
-
let
|
|
60350
|
-
|
|
60348
|
+
let f = reactExports.useCallback(()=>{
|
|
60349
|
+
p.current.resume();
|
|
60351
60350
|
}, []);
|
|
60352
60351
|
return {
|
|
60353
|
-
resumeTimer:
|
|
60352
|
+
resumeTimer: f,
|
|
60354
60353
|
pauseTimer: reactExports.useCallback(()=>{
|
|
60355
|
-
|
|
60354
|
+
p.current.pause();
|
|
60356
60355
|
}, [])
|
|
60357
60356
|
};
|
|
60358
60357
|
})({
|
|
@@ -60366,24 +60365,24 @@
|
|
|
60366
60365
|
}), eb = reactExports.useCallback(()=>{
|
|
60367
60366
|
x.current = !1;
|
|
60368
60367
|
}, []), ev = reactExports.useCallback(async ()=>{
|
|
60369
|
-
eb(), em(),
|
|
60368
|
+
eb(), em(), ep(), E(!1), U(u ? "keep_front_id_fit_border" : "keep_back_id_fit_border"), await Promise.all([
|
|
60370
60369
|
en()
|
|
60371
60370
|
]);
|
|
60372
60371
|
}, [
|
|
60373
60372
|
eb,
|
|
60374
|
-
|
|
60373
|
+
ep,
|
|
60375
60374
|
U,
|
|
60376
60375
|
u,
|
|
60377
60376
|
en,
|
|
60378
60377
|
em
|
|
60379
60378
|
]), ew = reactExports.useCallback(async (t = {})=>{
|
|
60380
|
-
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash:
|
|
60379
|
+
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash: p, blurScore: f, glareScore: h, fullVideo: m, capturingVideo: g } = t;
|
|
60381
60380
|
if (x.current) return;
|
|
60382
60381
|
x.current = !0, E(!0), eo(), eg(), Y(null);
|
|
60383
60382
|
let v = l?.enableVirtualCamHashes, w = l?.enableGlareCheck, k = l?.enableBlurCheck, B = {};
|
|
60384
|
-
if (v && null !==
|
|
60383
|
+
if (v && null !== p) {
|
|
60385
60384
|
let t = [
|
|
60386
|
-
|
|
60385
|
+
p,
|
|
60387
60386
|
...ec.current
|
|
60388
60387
|
];
|
|
60389
60388
|
t.length > 0 && (B = t.reduce((t, r, o)=>(t[`hash${o + 1}`] = r, t), {}));
|
|
@@ -60392,7 +60391,7 @@
|
|
|
60392
60391
|
h7.addExifData("user_action", {
|
|
60393
60392
|
start_id_card: F.current,
|
|
60394
60393
|
end_id_card: Date.now()
|
|
60395
|
-
}), h7.addExifData("id_detection_settings.blur_check.large_threshold", ee), h7.addExifData("id_detection_settings.blur_check.small_threshold", J), h7.addExifData("capture_time", a), h7.addExifData("type", i?.label), v && h7.addExifData("v_cam", B), h7.addExifData("capture_count", s), h7.addExifData("capture_duration", c), h7.addExifData("capture_type", d), _ && h7.addExifData("card_tracking", S), k && (h7.addExifData("model_score.blurry_score",
|
|
60394
|
+
}), h7.addExifData("id_detection_settings.blur_check.large_threshold", ee), h7.addExifData("id_detection_settings.blur_check.small_threshold", J), h7.addExifData("capture_time", a), h7.addExifData("type", i?.label), v && h7.addExifData("v_cam", B), h7.addExifData("capture_count", s), h7.addExifData("capture_duration", c), h7.addExifData("capture_type", d), _ && h7.addExifData("card_tracking", S), k && (h7.addExifData("model_score.blurry_score", f), h7.addExifData("blur_score_frames", JSON.stringify(ed.current))), w && (h7.addExifData("model_score.glare_score", h), h7.addExifData("glare_score_frames", JSON.stringify(eu.current)));
|
|
60396
60395
|
let T = await h7.writeCurrentExif({
|
|
60397
60396
|
imageData: {
|
|
60398
60397
|
blob: o
|
|
@@ -60530,14 +60529,14 @@
|
|
|
60530
60529
|
};
|
|
60531
60530
|
})({
|
|
60532
60531
|
shouldStart: !0,
|
|
60533
|
-
refVideo:
|
|
60532
|
+
refVideo: f,
|
|
60534
60533
|
cropArea: eo,
|
|
60535
60534
|
settings: C,
|
|
60536
|
-
onModelErrorChange:
|
|
60535
|
+
onModelErrorChange: ep,
|
|
60537
60536
|
frontSide: k,
|
|
60538
60537
|
allowedCardTypes: y,
|
|
60539
60538
|
onDebugInfoChange: K,
|
|
60540
|
-
onSessionTimeout:
|
|
60539
|
+
onSessionTimeout: ef,
|
|
60541
60540
|
onCaptureDone: eh,
|
|
60542
60541
|
onAboutToTimeout: reactExports.useCallback(({ curTimeLeft: t })=>{
|
|
60543
60542
|
ee(Y("remaining_time", {
|
|
@@ -60566,9 +60565,9 @@
|
|
|
60566
60565
|
}), { showCaptureButtonInAuto: eS = !0, showHoldStillProgress: eE = !1, showAutoCaptureToggle: eT } = C ?? {};
|
|
60567
60566
|
reactExports.useEffect(()=>{
|
|
60568
60567
|
if (u) {
|
|
60569
|
-
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX:
|
|
60570
|
-
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 *
|
|
60571
|
-
x: Math.floor((c - i) / 2) +
|
|
60568
|
+
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX: p, lostY: f, clientHeight: h } = u;
|
|
60569
|
+
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 * f - 80 - 100)), n = (t = (s = f + 140) - 70) + 30, o = eT ? s + a + 20 : s + a, r = s + a + 135, en({
|
|
60570
|
+
x: Math.floor((c - i) / 2) + p,
|
|
60572
60571
|
y: s,
|
|
60573
60572
|
width: i,
|
|
60574
60573
|
height: a,
|
|
@@ -61038,8 +61037,8 @@
|
|
|
61038
61037
|
Object.keys(l || {}).forEach(function(t) {
|
|
61039
61038
|
l[t] = i[t] || l[t];
|
|
61040
61039
|
});
|
|
61041
|
-
var a = "attemptBoth" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, s = "onlyInvert" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, d = n.binarize(t, r, o, a), u = d.binarized,
|
|
61042
|
-
return
|
|
61040
|
+
var a = "attemptBoth" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, s = "onlyInvert" === l.inversionAttempts || "invertFirst" === l.inversionAttempts, d = n.binarize(t, r, o, a), u = d.binarized, p = d.inverted, f = c(s ? p : u);
|
|
61041
|
+
return f || "attemptBoth" !== l.inversionAttempts && "invertFirst" !== l.inversionAttempts || (f = c(s ? u : p)), f;
|
|
61043
61042
|
}
|
|
61044
61043
|
d.default = d, r.default = d;
|
|
61045
61044
|
},
|
|
@@ -61060,10 +61059,10 @@
|
|
|
61060
61059
|
r.binarize = function(t, r, o, a) {
|
|
61061
61060
|
if (t.length !== r * o * 4) throw Error("Malformed data passed to binarizer.");
|
|
61062
61061
|
for(var s = new i(r, o), c = 0; c < r; c++)for(var l = 0; l < o; l++){
|
|
61063
|
-
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1],
|
|
61064
|
-
s.set(c, l, .2126 * d + .7152 * u + .0722 *
|
|
61062
|
+
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1], p = t[(l * r + c) * 4 + 2];
|
|
61063
|
+
s.set(c, l, .2126 * d + .7152 * u + .0722 * p);
|
|
61065
61064
|
}
|
|
61066
|
-
for(var
|
|
61065
|
+
for(var f = Math.ceil(r / 8), h = Math.ceil(o / 8), m = new i(f, h), g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61067
61066
|
for(var v = 0, w = 1 / 0, k = 0, l = 0; l < 8; l++)for(var c = 0; c < 8; c++){
|
|
61068
61067
|
var y = s.get(8 * b + c, 8 * g + l);
|
|
61069
61068
|
v += y, w = Math.min(w, y), k = Math.max(k, y);
|
|
@@ -61077,8 +61076,8 @@
|
|
|
61077
61076
|
}
|
|
61078
61077
|
var _ = n.BitMatrix.createEmpty(r, o), x = null;
|
|
61079
61078
|
a && (x = n.BitMatrix.createEmpty(r, o));
|
|
61080
|
-
for(var g = 0; g < h; g++)for(var b = 0; b <
|
|
61081
|
-
for(var P, S, E, T, D = (P = b, S =
|
|
61079
|
+
for(var g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61080
|
+
for(var P, S, E, T, D = (P = b, S = f - 3, P < 2 ? 2 : P > S ? S : P), $ = (E = g, T = h - 3, E < 2 ? 2 : E > T ? T : E), v = 0, j = -2; j <= 2; j++)for(var I = -2; I <= 2; I++)v += m.get(D + j, $ + I);
|
|
61082
61081
|
for(var O = v / 25, j = 0; j < 8; j++)for(var I = 0; I < 8; I++){
|
|
61083
61082
|
var c = 8 * b + j, l = 8 * g + I, M = s.get(c, l);
|
|
61084
61083
|
_.set(c, l, M <= O), a && x.set(c, l, !(M <= O));
|
|
@@ -61359,16 +61358,16 @@
|
|
|
61359
61358
|
for(var l = 0, d = 5; d >= 0; d--)for(var u = i - 9; u >= i - 11; u--){
|
|
61360
61359
|
r = t.get(u, d), l = l << 1 | r;
|
|
61361
61360
|
}
|
|
61362
|
-
for(var
|
|
61363
|
-
o = t.get(u, d),
|
|
61361
|
+
for(var p = 0, u = 5; u >= 0; u--)for(var d = i - 9; d >= i - 11; d--){
|
|
61362
|
+
o = t.get(u, d), p = p << 1 | o;
|
|
61364
61363
|
}
|
|
61365
|
-
for(var
|
|
61364
|
+
for(var f = 1 / 0, h = 0, m = s.VERSIONS; h < m.length; h++){
|
|
61366
61365
|
var g = m[h];
|
|
61367
|
-
if (g.infoBits === l || g.infoBits ===
|
|
61366
|
+
if (g.infoBits === l || g.infoBits === p) return g;
|
|
61368
61367
|
var b = c(l, g.infoBits);
|
|
61369
|
-
b <
|
|
61368
|
+
b < f && (n = g, f = b), (b = c(p, g.infoBits)) < f && (n = g, f = b);
|
|
61370
61369
|
}
|
|
61371
|
-
if (
|
|
61370
|
+
if (f <= 3) return n;
|
|
61372
61371
|
}(t);
|
|
61373
61372
|
if (!r) return null;
|
|
61374
61373
|
var o = function(t) {
|
|
@@ -61378,19 +61377,19 @@
|
|
|
61378
61377
|
for(var d = 7; d >= 0; d--){
|
|
61379
61378
|
6 !== d && (o = t.get(8, d), a = a << 1 | o);
|
|
61380
61379
|
}
|
|
61381
|
-
for(var u = t.height,
|
|
61382
|
-
n = t.get(8, d),
|
|
61380
|
+
for(var u = t.height, p = 0, d = u - 1; d >= u - 7; d--){
|
|
61381
|
+
n = t.get(8, d), p = p << 1 | n;
|
|
61383
61382
|
}
|
|
61384
61383
|
for(var s = u - 8; s < u; s++){
|
|
61385
|
-
i = t.get(s, 8),
|
|
61384
|
+
i = t.get(s, 8), p = p << 1 | i;
|
|
61386
61385
|
}
|
|
61387
|
-
for(var
|
|
61386
|
+
for(var f = 1 / 0, h = null, m = 0; m < l.length; m++){
|
|
61388
61387
|
var g = l[m], b = g.bits, v = g.formatInfo;
|
|
61389
|
-
if (b === a || b ===
|
|
61388
|
+
if (b === a || b === p) return v;
|
|
61390
61389
|
var w = c(a, b);
|
|
61391
|
-
w <
|
|
61390
|
+
w < f && (h = v, f = w), a !== p && (w = c(p, b)) < f && (h = v, f = w);
|
|
61392
61391
|
}
|
|
61393
|
-
return
|
|
61392
|
+
return f <= 3 ? h : null;
|
|
61394
61393
|
}(t);
|
|
61395
61394
|
if (!o) return null;
|
|
61396
61395
|
var u = function(t, r, o) {
|
|
@@ -61407,10 +61406,10 @@
|
|
|
61407
61406
|
d.codewords.push(t.shift());
|
|
61408
61407
|
}
|
|
61409
61408
|
if (n.ecBlocks.length > 1) {
|
|
61410
|
-
for(var u = n.ecBlocks[0].numBlocks,
|
|
61409
|
+
for(var u = n.ecBlocks[0].numBlocks, p = n.ecBlocks[1].numBlocks, c = 0; c < p; c++)i[u + c].codewords.push(t.shift());
|
|
61411
61410
|
}
|
|
61412
|
-
for(; t.length > 0;)for(var
|
|
61413
|
-
var d = i[
|
|
61411
|
+
for(; t.length > 0;)for(var f = 0; f < i.length; f++){
|
|
61412
|
+
var d = i[f];
|
|
61414
61413
|
d.codewords.push(t.shift());
|
|
61415
61414
|
}
|
|
61416
61415
|
return i;
|
|
@@ -61425,11 +61424,11 @@
|
|
|
61425
61424
|
}
|
|
61426
61425
|
}
|
|
61427
61426
|
return o.setRegion(6, 9, 1, r - 17, !0), o.setRegion(9, 6, r - 17, 1, !0), t.versionNumber > 6 && (o.setRegion(r - 11, 0, 3, 6, !0), o.setRegion(0, r - 11, 6, 3, !0)), o;
|
|
61428
|
-
}(r), c = [], l = 0, u = 0,
|
|
61429
|
-
6 ===
|
|
61427
|
+
}(r), c = [], l = 0, u = 0, p = !0, f = a - 1; f > 0; f -= 2){
|
|
61428
|
+
6 === f && f--;
|
|
61430
61429
|
for(var h = 0; h < a; h++){
|
|
61431
|
-
for(var m =
|
|
61432
|
-
var b =
|
|
61430
|
+
for(var m = p ? a - 1 - h : h, g = 0; g < 2; g++){
|
|
61431
|
+
var b = f - g;
|
|
61433
61432
|
if (!s.get(b, m)) {
|
|
61434
61433
|
u++;
|
|
61435
61434
|
var v = t.get(b, m);
|
|
@@ -61440,20 +61439,20 @@
|
|
|
61440
61439
|
}
|
|
61441
61440
|
}
|
|
61442
61441
|
}
|
|
61443
|
-
|
|
61442
|
+
p = !p;
|
|
61444
61443
|
}
|
|
61445
61444
|
return c;
|
|
61446
61445
|
}(t, r, o), r, o.errorCorrectionLevel);
|
|
61447
61446
|
if (!u) return null;
|
|
61448
|
-
for(var
|
|
61447
|
+
for(var p = new Uint8ClampedArray(u.reduce(function(t, r) {
|
|
61449
61448
|
return t + r.numDataCodewords;
|
|
61450
|
-
}, 0)),
|
|
61449
|
+
}, 0)), f = 0, h = 0; h < u.length; h++){
|
|
61451
61450
|
var m = u[h], g = a.decode(m.codewords, m.codewords.length - m.numDataCodewords);
|
|
61452
61451
|
if (!g) return null;
|
|
61453
|
-
for(var b = 0; b < m.numDataCodewords; b++)f
|
|
61452
|
+
for(var b = 0; b < m.numDataCodewords; b++)p[f++] = g[b];
|
|
61454
61453
|
}
|
|
61455
61454
|
try {
|
|
61456
|
-
return i.decode(
|
|
61455
|
+
return i.decode(p, r.versionNumber);
|
|
61457
61456
|
} catch (t) {
|
|
61458
61457
|
return null;
|
|
61459
61458
|
}
|
|
@@ -61520,23 +61519,23 @@
|
|
|
61520
61519
|
":"
|
|
61521
61520
|
];
|
|
61522
61521
|
r.decode = function(t, r) {
|
|
61523
|
-
for(var o, n, i, u,
|
|
61522
|
+
for(var o, n, i, u, p = new c.BitStream(t), f = r <= 9 ? 0 : r <= 26 ? 1 : 2, h = {
|
|
61524
61523
|
text: "",
|
|
61525
61524
|
bytes: [],
|
|
61526
61525
|
chunks: [],
|
|
61527
61526
|
version: r
|
|
61528
|
-
};
|
|
61529
|
-
var m =
|
|
61527
|
+
}; p.available() >= 4;){
|
|
61528
|
+
var m = p.readBits(4);
|
|
61530
61529
|
if (m === s.Terminator) return h;
|
|
61531
|
-
if (m === s.ECI) 0 ===
|
|
61530
|
+
if (m === s.ECI) 0 === p.readBits(1) ? h.chunks.push({
|
|
61532
61531
|
type: a.ECI,
|
|
61533
|
-
assignmentNumber:
|
|
61534
|
-
}) : 0 ===
|
|
61532
|
+
assignmentNumber: p.readBits(7)
|
|
61533
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61535
61534
|
type: a.ECI,
|
|
61536
|
-
assignmentNumber:
|
|
61537
|
-
}) : 0 ===
|
|
61535
|
+
assignmentNumber: p.readBits(14)
|
|
61536
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61538
61537
|
type: a.ECI,
|
|
61539
|
-
assignmentNumber:
|
|
61538
|
+
assignmentNumber: p.readBits(21)
|
|
61540
61539
|
}) : h.chunks.push({
|
|
61541
61540
|
type: a.ECI,
|
|
61542
61541
|
assignmentNumber: -1
|
|
@@ -61567,7 +61566,7 @@
|
|
|
61567
61566
|
bytes: o,
|
|
61568
61567
|
text: n
|
|
61569
61568
|
};
|
|
61570
|
-
}(
|
|
61569
|
+
}(p, f);
|
|
61571
61570
|
h.text += g.text, (o = h.bytes).push.apply(o, g.bytes), h.chunks.push({
|
|
61572
61571
|
type: a.Numeric,
|
|
61573
61572
|
text: g.text
|
|
@@ -61590,7 +61589,7 @@
|
|
|
61590
61589
|
bytes: o,
|
|
61591
61590
|
text: n
|
|
61592
61591
|
};
|
|
61593
|
-
}(
|
|
61592
|
+
}(p, f);
|
|
61594
61593
|
h.text += b.text, (n = h.bytes).push.apply(n, b.bytes), h.chunks.push({
|
|
61595
61594
|
type: a.Alphanumeric,
|
|
61596
61595
|
text: b.text
|
|
@@ -61614,7 +61613,7 @@
|
|
|
61614
61613
|
bytes: o,
|
|
61615
61614
|
text: n
|
|
61616
61615
|
};
|
|
61617
|
-
}(
|
|
61616
|
+
}(p, f);
|
|
61618
61617
|
h.text += v.text, (i = h.bytes).push.apply(i, v.bytes), h.chunks.push({
|
|
61619
61618
|
type: a.Byte,
|
|
61620
61619
|
bytes: v.bytes,
|
|
@@ -61634,7 +61633,7 @@
|
|
|
61634
61633
|
bytes: o,
|
|
61635
61634
|
text: n
|
|
61636
61635
|
};
|
|
61637
|
-
}(
|
|
61636
|
+
}(p, f);
|
|
61638
61637
|
h.text += w.text, (u = h.bytes).push.apply(u, w.bytes), h.chunks.push({
|
|
61639
61638
|
type: a.Kanji,
|
|
61640
61639
|
bytes: w.bytes,
|
|
@@ -61642,7 +61641,7 @@
|
|
|
61642
61641
|
});
|
|
61643
61642
|
}
|
|
61644
61643
|
}
|
|
61645
|
-
if (0 ===
|
|
61644
|
+
if (0 === p.available() || 0 === p.readBits(p.available())) return h;
|
|
61646
61645
|
};
|
|
61647
61646
|
},
|
|
61648
61647
|
function(t, r, o) {
|
|
@@ -68728,7 +68727,7 @@
|
|
|
68728
68727
|
c[c.length - 1 - d] = u, 0 !== u && (l = !0);
|
|
68729
68728
|
}
|
|
68730
68729
|
if (!l) return o;
|
|
68731
|
-
var
|
|
68730
|
+
var p = new i.default(a, c), f = function(t, r, o, n) {
|
|
68732
68731
|
r.degree() < o.degree() && (r = (i = [
|
|
68733
68732
|
o,
|
|
68734
68733
|
r
|
|
@@ -68737,11 +68736,11 @@
|
|
|
68737
68736
|
var d = a, u = c;
|
|
68738
68737
|
if (a = s, c = l, a.isZero()) return null;
|
|
68739
68738
|
s = d;
|
|
68740
|
-
for(var
|
|
68739
|
+
for(var p = t.zero, f = a.getCoefficient(a.degree()), h = t.inverse(f); s.degree() >= a.degree() && !s.isZero();){
|
|
68741
68740
|
var m = s.degree() - a.degree(), g = t.multiply(s.getCoefficient(s.degree()), h);
|
|
68742
|
-
|
|
68741
|
+
p = p.addOrSubtract(t.buildMonomial(m, g)), s = s.addOrSubtract(a.multiplyByMonomial(m, g));
|
|
68743
68742
|
}
|
|
68744
|
-
if (l =
|
|
68743
|
+
if (l = p.multiplyPoly(c).addOrSubtract(u), s.degree() >= a.degree()) return null;
|
|
68745
68744
|
}
|
|
68746
68745
|
var b = l.getCoefficient(0);
|
|
68747
68746
|
if (0 === b) return null;
|
|
@@ -68750,8 +68749,8 @@
|
|
|
68750
68749
|
l.multiply(v),
|
|
68751
68750
|
s.multiply(v)
|
|
68752
68751
|
];
|
|
68753
|
-
}(a, a.buildMonomial(r, 1),
|
|
68754
|
-
if (null ===
|
|
68752
|
+
}(a, a.buildMonomial(r, 1), p, r);
|
|
68753
|
+
if (null === f) return null;
|
|
68755
68754
|
var h = function(t, r) {
|
|
68756
68755
|
var o = r.degree();
|
|
68757
68756
|
if (1 === o) return [
|
|
@@ -68759,7 +68758,7 @@
|
|
|
68759
68758
|
];
|
|
68760
68759
|
for(var n = Array(o), i = 0, a = 1; a < t.size && i < o; a++)0 === r.evaluateAt(a) && (n[i] = t.inverse(a), i++);
|
|
68761
68760
|
return i !== o ? null : n;
|
|
68762
|
-
}(a,
|
|
68761
|
+
}(a, f[0]);
|
|
68763
68762
|
if (null == h) return null;
|
|
68764
68763
|
for(var m = function(t, r, o) {
|
|
68765
68764
|
for(var i = o.length, a = Array(i), s = 0; s < i; s++){
|
|
@@ -68767,7 +68766,7 @@
|
|
|
68767
68766
|
a[s] = t.multiply(r.evaluateAt(c), t.inverse(l)), 0 !== t.generatorBase && (a[s] = t.multiply(a[s], c));
|
|
68768
68767
|
}
|
|
68769
68768
|
return a;
|
|
68770
|
-
}(a,
|
|
68769
|
+
}(a, f[1], h), g = 0; g < h.length; g++){
|
|
68771
68770
|
var b = o.length - 1 - a.log(h[g]);
|
|
68772
68771
|
if (b < 0) return null;
|
|
68773
68772
|
o[b] = n.addOrSubtractGF(o[b], m[g]);
|
|
@@ -71248,14 +71247,14 @@
|
|
|
71248
71247
|
a32: t.y,
|
|
71249
71248
|
a33: 1
|
|
71250
71249
|
};
|
|
71251
|
-
var s = r.x - o.x, c = n.x - o.x, l = r.y - o.y, d = n.y - o.y, u = s * d - c * l,
|
|
71250
|
+
var s = r.x - o.x, c = n.x - o.x, l = r.y - o.y, d = n.y - o.y, u = s * d - c * l, p = (i * d - c * a) / u, f = (s * a - i * l) / u;
|
|
71252
71251
|
return {
|
|
71253
|
-
a11: r.x - t.x +
|
|
71254
|
-
a12: r.y - t.y +
|
|
71255
|
-
a13:
|
|
71256
|
-
a21: n.x - t.x +
|
|
71257
|
-
a22: n.y - t.y +
|
|
71258
|
-
a23:
|
|
71252
|
+
a11: r.x - t.x + p * r.x,
|
|
71253
|
+
a12: r.y - t.y + p * r.y,
|
|
71254
|
+
a13: p,
|
|
71255
|
+
a21: n.x - t.x + f * n.x,
|
|
71256
|
+
a22: n.y - t.y + f * n.y,
|
|
71257
|
+
a23: f,
|
|
71259
71258
|
a31: t.x,
|
|
71260
71259
|
a32: t.y,
|
|
71261
71260
|
a33: 1
|
|
@@ -71284,7 +71283,7 @@
|
|
|
71284
71283
|
a31: c.a21 * c.a32 - c.a22 * c.a31,
|
|
71285
71284
|
a32: c.a12 * c.a31 - c.a11 * c.a32,
|
|
71286
71285
|
a33: c.a11 * c.a22 - c.a12 * c.a21
|
|
71287
|
-
}),
|
|
71286
|
+
}), p = (l = i(r.topLeft, r.topRight, r.alignmentPattern, r.bottomLeft), d = u, {
|
|
71288
71287
|
a11: l.a11 * d.a11 + l.a21 * d.a12 + l.a31 * d.a13,
|
|
71289
71288
|
a12: l.a12 * d.a11 + l.a22 * d.a12 + l.a32 * d.a13,
|
|
71290
71289
|
a13: l.a13 * d.a11 + l.a23 * d.a12 + l.a33 * d.a13,
|
|
@@ -71294,18 +71293,18 @@
|
|
|
71294
71293
|
a31: l.a11 * d.a31 + l.a21 * d.a32 + l.a31 * d.a33,
|
|
71295
71294
|
a32: l.a12 * d.a31 + l.a22 * d.a32 + l.a32 * d.a33,
|
|
71296
71295
|
a33: l.a13 * d.a31 + l.a23 * d.a32 + l.a33 * d.a33
|
|
71297
|
-
}),
|
|
71298
|
-
var o =
|
|
71296
|
+
}), f = n.BitMatrix.createEmpty(r.dimension, r.dimension), h = function(t, r) {
|
|
71297
|
+
var o = p.a13 * t + p.a23 * r + p.a33;
|
|
71299
71298
|
return {
|
|
71300
|
-
x: (
|
|
71301
|
-
y: (
|
|
71299
|
+
x: (p.a11 * t + p.a21 * r + p.a31) / o,
|
|
71300
|
+
y: (p.a12 * t + p.a22 * r + p.a32) / o
|
|
71302
71301
|
};
|
|
71303
71302
|
}, m = 0; m < r.dimension; m++)for(var g = 0; g < r.dimension; g++){
|
|
71304
71303
|
var b = h(g + .5, m + .5);
|
|
71305
|
-
|
|
71304
|
+
f.set(g, m, t.get(Math.floor(b.x), Math.floor(b.y)));
|
|
71306
71305
|
}
|
|
71307
71306
|
return {
|
|
71308
|
-
matrix:
|
|
71307
|
+
matrix: f,
|
|
71309
71308
|
mappingFunction: h
|
|
71310
71309
|
};
|
|
71311
71310
|
};
|
|
@@ -71330,15 +71329,15 @@
|
|
|
71330
71329
|
}
|
|
71331
71330
|
], u = Math.abs(r.y - t.y) > Math.abs(r.x - t.x);
|
|
71332
71331
|
u ? (a = Math.floor(t.y), s = Math.floor(t.x), c = Math.floor(r.y), l = Math.floor(r.x)) : (a = Math.floor(t.x), s = Math.floor(t.y), c = Math.floor(r.x), l = Math.floor(r.y));
|
|
71333
|
-
for(var
|
|
71332
|
+
for(var p = Math.abs(c - a), f = Math.abs(l - s), h = Math.floor(-p / 2), m = a < c ? 1 : -1, g = s < l ? 1 : -1, b = !0, v = a, w = s; v !== c + m; v += m){
|
|
71334
71333
|
var k = u ? w : v, y = u ? v : w;
|
|
71335
71334
|
if (o.get(k, y) !== b && (b = !b, d.push({
|
|
71336
71335
|
x: k,
|
|
71337
71336
|
y: y
|
|
71338
71337
|
}), d.length === i + 1)) break;
|
|
71339
|
-
if ((h +=
|
|
71338
|
+
if ((h += f) > 0) {
|
|
71340
71339
|
if (w === l) break;
|
|
71341
|
-
w += g, h -=
|
|
71340
|
+
w += g, h -= p;
|
|
71342
71341
|
}
|
|
71343
71342
|
}
|
|
71344
71343
|
for(var C = [], B = 0; B < i; B++)d[B] && d[B + 1] ? C.push(n(d[B], d[B + 1])) : C.push(0);
|
|
@@ -71374,7 +71373,7 @@
|
|
|
71374
71373
|
}, l = s(t, a, o, r.length), d = {
|
|
71375
71374
|
x: Math.min(o.width, t.x + t.y) + 1,
|
|
71376
71375
|
y: Math.min(o.height, t.y + t.x) + 1
|
|
71377
|
-
}, u = s(t, d, o, r.length),
|
|
71376
|
+
}, u = s(t, d, o, r.length), p = c(n, r), f = c(i, r), h = c(l, r), m = c(u, r), g = Math.sqrt(p.error * p.error + f.error * f.error + h.error * h.error + m.error * m.error), b = (p.averageSize + f.averageSize + h.averageSize + m.averageSize) / 4, v = (Math.pow(p.averageSize - b, 2) + Math.pow(f.averageSize - b, 2) + Math.pow(h.averageSize - b, 2) + Math.pow(m.averageSize - b, 2)) / b;
|
|
71378
71377
|
return g + v;
|
|
71379
71378
|
} catch (t) {
|
|
71380
71379
|
return 1 / 0;
|
|
@@ -71407,16 +71406,16 @@
|
|
|
71407
71406
|
dimension: l,
|
|
71408
71407
|
moduleSize: c
|
|
71409
71408
|
};
|
|
71410
|
-
}(a, o, c, t)).dimension,
|
|
71409
|
+
}(a, o, c, t)).dimension, p = d.moduleSize;
|
|
71411
71410
|
} catch (t) {
|
|
71412
71411
|
return null;
|
|
71413
71412
|
}
|
|
71414
|
-
var d, u,
|
|
71413
|
+
var d, u, p, f = {
|
|
71415
71414
|
x: o.x - a.x + c.x,
|
|
71416
71415
|
y: o.y - a.y + c.y
|
|
71417
|
-
}, h = (n(a, c) + n(a, o)) / 2 /
|
|
71418
|
-
x: a.x + m * (
|
|
71419
|
-
y: a.y + m * (
|
|
71416
|
+
}, h = (n(a, c) + n(a, o)) / 2 / p, m = 1 - 3 / h, g = {
|
|
71417
|
+
x: a.x + m * (f.x - a.x),
|
|
71418
|
+
y: a.y + m * (f.y - a.y)
|
|
71420
71419
|
}, b = r.map(function(r) {
|
|
71421
71420
|
var o = (r.top.startX + r.top.endX + r.bottom.startX + r.bottom.endX) / 4, a = (r.top.y + r.bottom.y + 1) / 2;
|
|
71422
71421
|
if (t.get(Math.floor(o), Math.floor(a))) {
|
|
@@ -71454,7 +71453,7 @@
|
|
|
71454
71453
|
};
|
|
71455
71454
|
}
|
|
71456
71455
|
r.locate = function(t) {
|
|
71457
|
-
for(var r, o, a, s, c,
|
|
71456
|
+
for(var r, o, a, s, c, p, f, h, m, g, b, v, w, k = [], y = [], C = [], B = [], _ = function(r) {
|
|
71458
71457
|
for(var o = 0, n = !1, a = [
|
|
71459
71458
|
0,
|
|
71460
71459
|
0,
|
|
@@ -71472,21 +71471,21 @@
|
|
|
71472
71471
|
a[4],
|
|
71473
71472
|
o
|
|
71474
71473
|
], o = 1, n = c;
|
|
71475
|
-
var l = i(a) / 7, d = Math.abs(a[0] - l) < l && Math.abs(a[1] - l) < l && Math.abs(a[2] - 3 * l) < 3 * l && Math.abs(a[3] - l) < l && Math.abs(a[4] - l) < l && !c, u = i(a.slice(-3)) / 3,
|
|
71474
|
+
var l = i(a) / 7, d = Math.abs(a[0] - l) < l && Math.abs(a[1] - l) < l && Math.abs(a[2] - 3 * l) < 3 * l && Math.abs(a[3] - l) < l && Math.abs(a[4] - l) < l && !c, u = i(a.slice(-3)) / 3, p = Math.abs(a[2] - u) < u && Math.abs(a[3] - u) < u && Math.abs(a[4] - u) < u && c;
|
|
71476
71475
|
if (d) {
|
|
71477
|
-
var
|
|
71476
|
+
var f = s - a[3] - a[4], h = f - a[2], m = {
|
|
71478
71477
|
startX: h,
|
|
71479
|
-
endX:
|
|
71478
|
+
endX: f,
|
|
71480
71479
|
y: r
|
|
71481
71480
|
}, g = y.filter(function(t) {
|
|
71482
|
-
return h >= t.bottom.startX && h <= t.bottom.endX ||
|
|
71481
|
+
return h >= t.bottom.startX && h <= t.bottom.endX || f >= t.bottom.startX && h <= t.bottom.endX || h <= t.bottom.startX && f >= t.bottom.endX && a[2] / (t.bottom.endX - t.bottom.startX) < 1.5 && a[2] / (t.bottom.endX - t.bottom.startX) > .5;
|
|
71483
71482
|
});
|
|
71484
71483
|
g.length > 0 ? g[0].bottom = m : y.push({
|
|
71485
71484
|
top: m,
|
|
71486
71485
|
bottom: m
|
|
71487
71486
|
});
|
|
71488
71487
|
}
|
|
71489
|
-
if (
|
|
71488
|
+
if (p) {
|
|
71490
71489
|
var b = s - a[4], v = b - a[3], m = {
|
|
71491
71490
|
startX: v,
|
|
71492
71491
|
y: r,
|
|
@@ -71580,14 +71579,14 @@
|
|
|
71580
71579
|
r,
|
|
71581
71580
|
o,
|
|
71582
71581
|
a
|
|
71583
|
-
])[0], m = c[1], g = c[2]) : (h = (
|
|
71582
|
+
])[0], m = c[1], g = c[2]) : (h = (p = [
|
|
71584
71583
|
r,
|
|
71585
71584
|
a,
|
|
71586
71585
|
o
|
|
71587
|
-
])[0], m =
|
|
71586
|
+
])[0], m = p[1], g = p[2]), (g.x - m.x) * (h.y - m.y) - (g.y - m.y) * (h.x - m.x) < 0 && (h = (f = [
|
|
71588
71587
|
g,
|
|
71589
71588
|
h
|
|
71590
|
-
])[0], g =
|
|
71589
|
+
])[0], g = f[1]), {
|
|
71591
71590
|
bottomLeft: h,
|
|
71592
71591
|
topLeft: m,
|
|
71593
71592
|
topRight: g
|
|
@@ -71801,10 +71800,10 @@
|
|
|
71801
71800
|
}
|
|
71802
71801
|
];
|
|
71803
71802
|
function sV() {
|
|
71804
|
-
if (rh) return
|
|
71803
|
+
if (rh) return rf;
|
|
71805
71804
|
rh = 1;
|
|
71806
71805
|
var t = o9();
|
|
71807
|
-
return
|
|
71806
|
+
return rf = function() {
|
|
71808
71807
|
try {
|
|
71809
71808
|
var r = t(Object, "defineProperty");
|
|
71810
71809
|
return r({}, "", {}), r;
|
|
@@ -71951,14 +71950,14 @@
|
|
|
71951
71950
|
return n;
|
|
71952
71951
|
}), r = sH(), o = oK(), n = sY(), i = s5(), a = s3(), s = Object.prototype.hasOwnProperty;
|
|
71953
71952
|
return od = function(c, l) {
|
|
71954
|
-
var d = o(c), u = !d && r(c),
|
|
71955
|
-
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b ||
|
|
71953
|
+
var d = o(c), u = !d && r(c), p = !d && !u && n(c), f = !d && !u && !p && a(c), h = d || u || p || f, m = h ? t(c.length, String) : [], g = m.length;
|
|
71954
|
+
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b || p && ("offset" == b || "parent" == b) || f && ("buffer" == b || "byteLength" == b || "byteOffset" == b) || i(b, g))) && m.push(b);
|
|
71956
71955
|
return m;
|
|
71957
71956
|
};
|
|
71958
71957
|
}(), r = function() {
|
|
71959
71958
|
if (om) return oh;
|
|
71960
71959
|
om = 1;
|
|
71961
|
-
var t = o1(), r = sX(), o =
|
|
71960
|
+
var t = o1(), r = sX(), o = of ? op : (of = 1, op = function(t) {
|
|
71962
71961
|
var r = [];
|
|
71963
71962
|
if (null != t) for(var o in Object(t))r.push(o);
|
|
71964
71963
|
return r;
|
|
@@ -71986,8 +71985,8 @@
|
|
|
71986
71985
|
if (oB) return oC;
|
|
71987
71986
|
oB = 1;
|
|
71988
71987
|
var t = function() {
|
|
71989
|
-
if (
|
|
71990
|
-
|
|
71988
|
+
if (rp) return ru;
|
|
71989
|
+
rp = 1;
|
|
71991
71990
|
var t = ne(), r = function() {
|
|
71992
71991
|
if (rr) return rt;
|
|
71993
71992
|
rr = 1;
|
|
@@ -72091,7 +72090,7 @@
|
|
|
72091
72090
|
return rZ = function(o) {
|
|
72092
72091
|
return r(o) && t(o);
|
|
72093
72092
|
};
|
|
72094
|
-
}(), l = sY(), d = o8(), u = o1(),
|
|
72093
|
+
}(), l = sY(), d = o8(), u = o1(), p = function() {
|
|
72095
72094
|
if (r5) return r2;
|
|
72096
72095
|
r5 = 1;
|
|
72097
72096
|
var t = o2(), r = sQ(), o = o5(), n = Object.prototype, i = Function.prototype.toString, a = n.hasOwnProperty, s = i.call(Object);
|
|
@@ -72102,7 +72101,7 @@
|
|
|
72102
72101
|
var l = a.call(c, "constructor") && c.constructor;
|
|
72103
72102
|
return "function" == typeof l && l instanceof l && i.call(l) == s;
|
|
72104
72103
|
};
|
|
72105
|
-
}(),
|
|
72104
|
+
}(), f = s3(), h = s2(), m = function() {
|
|
72106
72105
|
if (ow) return ov;
|
|
72107
72106
|
ow = 1;
|
|
72108
72107
|
var t = function() {
|
|
@@ -72136,17 +72135,17 @@
|
|
|
72136
72135
|
if (x) return void t(g, v, x);
|
|
72137
72136
|
var P = y ? y(B, _, v + "", g, b, C) : void 0, S = void 0 === P;
|
|
72138
72137
|
if (S) {
|
|
72139
|
-
var E = s(_), T = !E && l(_), D = !E && !T &&
|
|
72140
|
-
P = _, E || T || D ? s(B) ? P = B : c(B) ? P = n(B) : T ? (S = !1, P = r(_, !0)) : D ? (S = !1, P = o(_, !0)) : P = [] :
|
|
72138
|
+
var E = s(_), T = !E && l(_), D = !E && !T && f(_);
|
|
72139
|
+
P = _, E || T || D ? s(B) ? P = B : c(B) ? P = n(B) : T ? (S = !1, P = r(_, !0)) : D ? (S = !1, P = o(_, !0)) : P = [] : p(_) || a(_) ? (P = B, a(B) ? P = m(B) : (!u(B) || d(B)) && (P = i(_))) : S = !1;
|
|
72141
72140
|
}
|
|
72142
72141
|
S && (C.set(_, P), k(P, _, w, y, C), C.delete(_)), t(g, v, P);
|
|
72143
72142
|
};
|
|
72144
72143
|
}(), i = o1(), a = s0(), s = s2();
|
|
72145
|
-
return oC = function c(l, d, u,
|
|
72144
|
+
return oC = function c(l, d, u, p, f) {
|
|
72146
72145
|
l !== d && o(d, function(o, a) {
|
|
72147
|
-
if (
|
|
72146
|
+
if (f || (f = new t), i(o)) n(l, d, a, u, c, p, f);
|
|
72148
72147
|
else {
|
|
72149
|
-
var h =
|
|
72148
|
+
var h = p ? p(s(l, a), o, a + "", l, d, f) : void 0;
|
|
72150
72149
|
void 0 === h && (h = o), r(l, a, h);
|
|
72151
72150
|
}
|
|
72152
72151
|
}, a);
|
|
@@ -90655,6 +90654,7 @@
|
|
|
90655
90654
|
const DefaultFlashLivenessBody = FlashLivenessBody;
|
|
90656
90655
|
const DefaultFlashLivenessOverlay = FlashLivenessOverlay;
|
|
90657
90656
|
const DefaultFlashLivenessError = FlashLivenessError;
|
|
90657
|
+
const DefaultFlashLivenessCloseIcon = CloseIcon;
|
|
90658
90658
|
function FlashLivenessImpl(props) {
|
|
90659
90659
|
const { onReset, onFlashDone: onFlashDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig, onImageCaptured } = props;
|
|
90660
90660
|
const { onCloseCallback, onErrorCallback } = useSDKCallback();
|
|
@@ -90662,6 +90662,7 @@
|
|
|
90662
90662
|
const FlashLivenessBodyComponent = customComponent?.FlashLivenessBody ?? DefaultFlashLivenessBody;
|
|
90663
90663
|
const FlashLivenessOverlayComponent = customComponent?.FlashLivenessOverlay ?? DefaultFlashLivenessOverlay;
|
|
90664
90664
|
const FlashLivenessErrorComponent = customComponent?.FlashLivenessError ?? DefaultFlashLivenessError;
|
|
90665
|
+
const FlashLivenessCloseIconComponent = customComponent?.FlashLivenessCloseIcon ?? DefaultFlashLivenessCloseIcon;
|
|
90665
90666
|
const { maskSettings, flashSettings, faceSettings, livenessSettings, captureFrameSettings, imageSettings, timeoutSettings, blurCheckFarSettings, blurCheckCloseSettings, exifSettings, autoGenFrameIds } = flashLivenessSettings;
|
|
90666
90667
|
if (maskSettings.smallScale > maskSettings.largeScale) {
|
|
90667
90668
|
throw new Error('smallScale must be smaller than largeScale');
|
|
@@ -91388,7 +91389,7 @@
|
|
|
91388
91389
|
ref: videoRef,
|
|
91389
91390
|
onError: onErrorCallback,
|
|
91390
91391
|
videoSettings: videoSettings$7,
|
|
91391
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
91392
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(FlashLivenessCloseIconComponent, {}),
|
|
91392
91393
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
91393
91394
|
overlay: !warmupDone || !isPlaying,
|
|
91394
91395
|
loadingComponent: Loading,
|
|
@@ -92670,12 +92671,14 @@
|
|
|
92670
92671
|
};
|
|
92671
92672
|
const DefaultPassiveLivenessBody = PassiveLivenessBody;
|
|
92672
92673
|
const DefaultPassiveLivenessError = PassiveLivenessError;
|
|
92674
|
+
const DefaultPassiveLivenessCloseIcon = CloseIcon;
|
|
92673
92675
|
function PassiveLivenessUI(props) {
|
|
92674
92676
|
const { onReset, onDone: onDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig } = props;
|
|
92675
92677
|
const { onErrorCallback, onCloseCallback } = useSDKCallback();
|
|
92676
92678
|
const passiveLivenessSettings = usePassiveLivenessV2Settings();
|
|
92677
92679
|
const PassiveLivenessBodyComponent = customComponent?.PassiveLivenessBody ?? DefaultPassiveLivenessBody;
|
|
92678
92680
|
const PassiveLivenessErrorComponent = customComponent?.PassiveLivenessError ?? DefaultPassiveLivenessError;
|
|
92681
|
+
const PassiveLivenessCloseIconComponent = customComponent?.PassiveLivenessCloseIcon ?? DefaultPassiveLivenessCloseIcon;
|
|
92679
92682
|
const { maskSettings, faceSettings, captureFrameSettings, exifSettings, imageSettings, timeoutSettings, blurCheckFarSettings, outputImageSettings, autoGenFrameIds } = passiveLivenessSettings;
|
|
92680
92683
|
const farFaceTimeRef = reactExports.useRef();
|
|
92681
92684
|
const logEvent = useEventLogging();
|
|
@@ -93161,7 +93164,7 @@
|
|
|
93161
93164
|
ref: videoRef,
|
|
93162
93165
|
onError: onErrorCallback,
|
|
93163
93166
|
videoSettings: videoSettings$5,
|
|
93164
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
93167
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(PassiveLivenessCloseIconComponent, {}),
|
|
93165
93168
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
93166
93169
|
overlay: !warmupDone || !isPlaying,
|
|
93167
93170
|
loadingComponent: Loading,
|
|
@@ -94821,7 +94824,7 @@
|
|
|
94821
94824
|
DEFAULT: 'default',
|
|
94822
94825
|
ERROR: 'error'
|
|
94823
94826
|
};
|
|
94824
|
-
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles }) {
|
|
94827
|
+
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles, paddingCornerMultiplier = 1.5 }) {
|
|
94825
94828
|
const styleMapping = reactExports.useMemo(()=>{
|
|
94826
94829
|
return {
|
|
94827
94830
|
[Type.DEFAULT]: defaultRectStyles,
|
|
@@ -94833,7 +94836,7 @@
|
|
|
94833
94836
|
errorRectStyles,
|
|
94834
94837
|
strokeStyles
|
|
94835
94838
|
]);
|
|
94836
|
-
const paddingCornerSize = radius + strokeWidth *
|
|
94839
|
+
const paddingCornerSize = radius + strokeWidth * paddingCornerMultiplier;
|
|
94837
94840
|
const rectStyle = styleMapping[type];
|
|
94838
94841
|
return /*#__PURE__*/ jsxRuntimeExports.jsxs("svg", {
|
|
94839
94842
|
width: width,
|
|
@@ -94881,7 +94884,8 @@
|
|
|
94881
94884
|
radius: PropTypes.number,
|
|
94882
94885
|
paddingStyle: PropTypes.shape({}),
|
|
94883
94886
|
defaultRectStyles: PropTypes.shape({}),
|
|
94884
|
-
errorRectStyles: PropTypes.shape({})
|
|
94887
|
+
errorRectStyles: PropTypes.shape({}),
|
|
94888
|
+
paddingCornerMultiplier: PropTypes.number
|
|
94885
94889
|
};
|
|
94886
94890
|
RectangleMask.defaultProps = {
|
|
94887
94891
|
className: '',
|
|
@@ -94893,7 +94897,8 @@
|
|
|
94893
94897
|
radius: defaultIDThemeV2$1.IDCapturing.rectangleMask.radius,
|
|
94894
94898
|
paddingStyle: defaultIDThemeV2$1.IDCapturing.rectangleMask.paddingStyle,
|
|
94895
94899
|
defaultRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.default,
|
|
94896
|
-
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error
|
|
94900
|
+
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error,
|
|
94901
|
+
paddingCornerMultiplier: 1.5
|
|
94897
94902
|
};
|
|
94898
94903
|
|
|
94899
94904
|
const StyledRectangleMask = dt$1(RectangleMask)``;
|
|
@@ -113255,6 +113260,17 @@
|
|
|
113255
113260
|
});
|
|
113256
113261
|
};
|
|
113257
113262
|
};
|
|
113263
|
+
const withLocale = (Component)=>{
|
|
113264
|
+
return function WrappedComponent(props) {
|
|
113265
|
+
const { customTexts } = props;
|
|
113266
|
+
return /*#__PURE__*/ jsxRuntimeExports.jsx(SDKLocaleProvider, {
|
|
113267
|
+
customTexts: customTexts,
|
|
113268
|
+
children: /*#__PURE__*/ jsxRuntimeExports.jsx(Component, {
|
|
113269
|
+
...props
|
|
113270
|
+
})
|
|
113271
|
+
});
|
|
113272
|
+
};
|
|
113273
|
+
};
|
|
113258
113274
|
// eslint-disable-next-line react/require-default-props
|
|
113259
113275
|
function FaceAuthenticationContainer(props) {
|
|
113260
113276
|
const { apiCheck, mode, authType, authMethod, apiCredentials, onDone: onDoneFromProp, onError: onErrorFromProp, onClose: onCloseFromProp, onReset, captureFrameSettings, onFramesCaptured, clientSettings: clientSettingsFromProp, outputEncryptionSettings, logCredentials, flowId, serviceSettings, cameraScale, offsetFaceY, frontalMinSize, customTheme, livenessDetectionComponent: LivenessDetectionComponent, customComponent, customTexts, extraConfig } = props;
|
|
@@ -113506,7 +113522,7 @@
|
|
|
113506
113522
|
onFramesCaptured: ()=>{},
|
|
113507
113523
|
customTexts: {}
|
|
113508
113524
|
};
|
|
113509
|
-
var FaceAuthenticationContainer$1 = withClientSettings(FaceAuthenticationContainer);
|
|
113525
|
+
var FaceAuthenticationContainer$1 = withClientSettings(withLocale(FaceAuthenticationContainer));
|
|
113510
113526
|
|
|
113511
113527
|
// eslint-disable-next-line react/require-default-props
|
|
113512
113528
|
function FaceAuthentication(props) {
|
|
@@ -113539,6 +113555,8 @@
|
|
|
113539
113555
|
FlashLivenessOverlay,
|
|
113540
113556
|
FlashLivenessLoading,
|
|
113541
113557
|
FlashLivenessError,
|
|
113558
|
+
FlashLivenessCloseIcon: CloseIcon,
|
|
113559
|
+
PassiveLivenessCloseIcon: CloseIcon,
|
|
113542
113560
|
PassiveLivenessBody,
|
|
113543
113561
|
PassiveLivenessError
|
|
113544
113562
|
}
|
|
@@ -114359,7 +114377,7 @@
|
|
|
114359
114377
|
});
|
|
114360
114378
|
}
|
|
114361
114379
|
|
|
114362
|
-
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.msb/0.0.0-beta.
|
|
114380
|
+
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.msb/0.0.0-beta.20251217-142321/assets";
|
|
114363
114381
|
class TVWebSDK extends gU {
|
|
114364
114382
|
constructor(props){
|
|
114365
114383
|
super({
|