@tsocial/tvweb-sdk.nbcci 0.0.0-beta.20251215-165409 → 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.nbcci.cjs.min.js +719 -719
- package/build/tvweb-sdk.nbcci.esm.min.js +719 -719
- package/build/tvweb-sdk.nbcci.standalone.js +567 -552
- package/build/tvweb-sdk.nbcci.standalone.min.js +719 -719
- 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 {
|
|
@@ -41259,56 +41259,50 @@
|
|
|
41259
41259
|
}, uz;
|
|
41260
41260
|
}(), uG);
|
|
41261
41261
|
}();
|
|
41262
|
-
|
|
41262
|
+
function dm(e, t) {
|
|
41263
|
+
let r = dv();
|
|
41264
|
+
return (dm = function(e, t) {
|
|
41265
|
+
return r[e -= 360];
|
|
41266
|
+
})(e, t);
|
|
41267
|
+
}
|
|
41268
|
+
let dg = dm, dy = dm, db = dv();
|
|
41263
41269
|
for(;;)try {
|
|
41264
|
-
if (parseInt(
|
|
41265
|
-
|
|
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());
|
|
41266
41272
|
} catch (e) {
|
|
41267
|
-
|
|
41273
|
+
db.push(db.shift());
|
|
41268
41274
|
}
|
|
41269
|
-
function
|
|
41275
|
+
function dv() {
|
|
41270
41276
|
let e = [
|
|
41271
|
-
"
|
|
41272
|
-
"
|
|
41273
|
-
"
|
|
41274
|
-
"
|
|
41275
|
-
"
|
|
41276
|
-
"
|
|
41277
|
+
"431298HdIesc",
|
|
41278
|
+
"28QBzsDj",
|
|
41279
|
+
"MfPrcYTM70",
|
|
41280
|
+
"278jLdKKf",
|
|
41281
|
+
"69524PqGfjj",
|
|
41282
|
+
"40oyrDAO",
|
|
41283
|
+
"Mjci1ul8mm",
|
|
41284
|
+
"4090686MGSzKL",
|
|
41285
|
+
"ssRdXLZEX8",
|
|
41277
41286
|
"44P0rKKsZK",
|
|
41278
|
-
"
|
|
41279
|
-
"ytJdcsPxrD",
|
|
41287
|
+
"388265omPOkm",
|
|
41280
41288
|
"D9EKOWS+U4",
|
|
41281
|
-
"
|
|
41282
|
-
"
|
|
41283
|
-
"
|
|
41284
|
-
"
|
|
41285
|
-
"
|
|
41286
|
-
"
|
|
41287
|
-
"532kymtpA",
|
|
41288
|
-
"45uWuFYC",
|
|
41289
|
-
"MfPrcYTM70",
|
|
41290
|
-
"6ocbIJZ",
|
|
41291
|
-
"000",
|
|
41292
|
-
"0301070342",
|
|
41289
|
+
"KA==",
|
|
41290
|
+
"2a8648ce3d",
|
|
41291
|
+
"1131IWqIwd",
|
|
41292
|
+
"3490498FdsWqz",
|
|
41293
|
+
"MFkwEwYHKo",
|
|
41294
|
+
"130pWIRuI",
|
|
41293
41295
|
"KoZIzj0DAQ",
|
|
41296
|
+
"190504tfNTkt",
|
|
41294
41297
|
"ZIzj0CAQYI",
|
|
41295
|
-
"
|
|
41296
|
-
"
|
|
41297
|
-
"cDQgAE9h6Z",
|
|
41298
|
-
"KA=="
|
|
41298
|
+
"3d02010608",
|
|
41299
|
+
"DepBO8t60S"
|
|
41299
41300
|
];
|
|
41300
|
-
return (
|
|
41301
|
+
return (dv = function() {
|
|
41301
41302
|
return e;
|
|
41302
41303
|
})();
|
|
41303
41304
|
}
|
|
41304
|
-
let
|
|
41305
|
-
function d_(e, t) {
|
|
41306
|
-
let r = db();
|
|
41307
|
-
return (d_ = function(e, t) {
|
|
41308
|
-
return r[e -= 366];
|
|
41309
|
-
})(e, t);
|
|
41310
|
-
}
|
|
41311
|
-
let dx = dm(369) + dm(390) + dm(389) + dm(393) + dm(368) + dm(375) + dm(371) + dm(373) + "Mjci1ul8mm" + dm(376) + dm(385) + "ssRdXLZEX8" + dm(366);
|
|
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);
|
|
41312
41306
|
async function dC(e) {
|
|
41313
41307
|
let t = new TextEncoder().encode(e);
|
|
41314
41308
|
return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
|
|
@@ -41413,7 +41407,7 @@
|
|
|
41413
41407
|
isValid: !1,
|
|
41414
41408
|
error: i0$1.invalid_license
|
|
41415
41409
|
};
|
|
41416
|
-
let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || dx, n = i4$1(r).replace(
|
|
41410
|
+
let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || dx, n = i4$1(r).replace(d_, ""), i = new dp.ec("p256").keyFromPublic(n, "hex"), {
|
|
41417
41411
|
verifySignature: async (e, t)=>{
|
|
41418
41412
|
try {
|
|
41419
41413
|
let r = await dC(e), n = i4$1(t);
|
|
@@ -53099,7 +53093,7 @@
|
|
|
53099
53093
|
});
|
|
53100
53094
|
};
|
|
53101
53095
|
|
|
53102
|
-
var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu,
|
|
53096
|
+
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 : {};
|
|
53103
53097
|
function oX(t) {
|
|
53104
53098
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53105
53099
|
}
|
|
@@ -53178,7 +53172,7 @@
|
|
|
53178
53172
|
};
|
|
53179
53173
|
}
|
|
53180
53174
|
function o5() {
|
|
53181
|
-
return
|
|
53175
|
+
return ef ? ep : (ef = 1, ep = function(t) {
|
|
53182
53176
|
return null != t && "object" == typeof t;
|
|
53183
53177
|
});
|
|
53184
53178
|
}
|
|
@@ -53410,10 +53404,10 @@
|
|
|
53410
53404
|
return t(this, r).get(r);
|
|
53411
53405
|
};
|
|
53412
53406
|
}(), n = function() {
|
|
53413
|
-
if (
|
|
53414
|
-
|
|
53407
|
+
if (tf) return tp;
|
|
53408
|
+
tf = 1;
|
|
53415
53409
|
var t = nr();
|
|
53416
|
-
return
|
|
53410
|
+
return tp = function(r) {
|
|
53417
53411
|
return t(this, r).has(r);
|
|
53418
53412
|
};
|
|
53419
53413
|
}(), i = function() {
|
|
@@ -53556,16 +53550,16 @@
|
|
|
53556
53550
|
function nc(t, r) {
|
|
53557
53551
|
return t.replace(RegExp("(^|\\s)" + r + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
53558
53552
|
}
|
|
53559
|
-
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted",
|
|
53553
|
+
var nl = !1, nd = /*#__PURE__*/ React.createContext(null), nu = "unmounted", np = "exited", nf = "entering", nh = "entered", nm = "exiting", ng = function(r) {
|
|
53560
53554
|
function o(t, o) {
|
|
53561
53555
|
var n, i = r.call(this, t, o) || this, a = o && !o.isMounting ? t.enter : t.appear;
|
|
53562
|
-
return i.appearStatus = null, t.in ? a ? (n =
|
|
53556
|
+
return i.appearStatus = null, t.in ? a ? (n = np, i.appearStatus = nf) : n = nh : n = t.unmountOnExit || t.mountOnEnter ? nu : np, i.state = {
|
|
53563
53557
|
status: n
|
|
53564
53558
|
}, i.nextCallback = null, i;
|
|
53565
53559
|
}
|
|
53566
53560
|
ns(o, r), o.getDerivedStateFromProps = function(t, r) {
|
|
53567
53561
|
return t.in && r.status === nu ? {
|
|
53568
|
-
status:
|
|
53562
|
+
status: np
|
|
53569
53563
|
} : null;
|
|
53570
53564
|
};
|
|
53571
53565
|
var n = o.prototype;
|
|
@@ -53575,7 +53569,7 @@
|
|
|
53575
53569
|
var r = null;
|
|
53576
53570
|
if (t !== this.props) {
|
|
53577
53571
|
var o = this.state.status;
|
|
53578
|
-
this.props.in ? o !==
|
|
53572
|
+
this.props.in ? o !== nf && o !== nh && (r = nf) : (o === nf || o === nh) && (r = nm);
|
|
53579
53573
|
}
|
|
53580
53574
|
this.updateStatus(!1, r);
|
|
53581
53575
|
}, n.componentWillUnmount = function() {
|
|
@@ -53588,7 +53582,7 @@
|
|
|
53588
53582
|
appear: o
|
|
53589
53583
|
};
|
|
53590
53584
|
}, n.updateStatus = function(t, r) {
|
|
53591
|
-
void 0 === t && (t = !1), null !== r ? (this.cancelNextCallback(), r ===
|
|
53585
|
+
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({
|
|
53592
53586
|
status: nu
|
|
53593
53587
|
});
|
|
53594
53588
|
}, n.performEnter = function(t) {
|
|
@@ -53599,7 +53593,7 @@
|
|
|
53599
53593
|
n
|
|
53600
53594
|
], a = i[0], s = i[1], c = this.getTimeouts(), l = n ? c.appear : c.enter;
|
|
53601
53595
|
(t || o) && !nl ? (this.props.onEnter(a, s), this.safeSetState({
|
|
53602
|
-
status:
|
|
53596
|
+
status: nf
|
|
53603
53597
|
}, function() {
|
|
53604
53598
|
r.props.onEntering(a, s), r.onTransitionEnd(l, function() {
|
|
53605
53599
|
r.safeSetState({
|
|
@@ -53616,7 +53610,7 @@
|
|
|
53616
53610
|
}, n.performExit = function() {
|
|
53617
53611
|
var t = this, r = this.props.exit, o = this.getTimeouts(), n = this.props.nodeRef ? void 0 : ReactDOM.findDOMNode(this);
|
|
53618
53612
|
!r || nl ? this.safeSetState({
|
|
53619
|
-
status:
|
|
53613
|
+
status: np
|
|
53620
53614
|
}, function() {
|
|
53621
53615
|
t.props.onExited(n);
|
|
53622
53616
|
}) : (this.props.onExit(n), this.safeSetState({
|
|
@@ -53624,7 +53618,7 @@
|
|
|
53624
53618
|
}, function() {
|
|
53625
53619
|
t.props.onExiting(n), t.onTransitionEnd(o.exit, function() {
|
|
53626
53620
|
t.safeSetState({
|
|
53627
|
-
status:
|
|
53621
|
+
status: np
|
|
53628
53622
|
}, function() {
|
|
53629
53623
|
t.props.onExited(n);
|
|
53630
53624
|
});
|
|
@@ -53697,7 +53691,7 @@
|
|
|
53697
53691
|
onExit: nb,
|
|
53698
53692
|
onExiting: nb,
|
|
53699
53693
|
onExited: nb
|
|
53700
|
-
}, ng.UNMOUNTED = nu, ng.EXITED =
|
|
53694
|
+
}, ng.UNMOUNTED = nu, ng.EXITED = np, ng.ENTERING = nf, ng.ENTERED = nh, ng.EXITING = nm;
|
|
53701
53695
|
var nv = function(t, r) {
|
|
53702
53696
|
return t && r && r.split(" ").forEach(function(r) {
|
|
53703
53697
|
var o, n;
|
|
@@ -53792,7 +53786,7 @@
|
|
|
53792
53786
|
return /*#__PURE__*/ React.cloneElement(o, {
|
|
53793
53787
|
in: !1,
|
|
53794
53788
|
onExited: nC(o, "onExited", function() {
|
|
53795
|
-
n(
|
|
53789
|
+
n(nf, null);
|
|
53796
53790
|
})
|
|
53797
53791
|
});
|
|
53798
53792
|
}, tL[ny] = function(r) {
|
|
@@ -53802,7 +53796,7 @@
|
|
|
53802
53796
|
/*#__PURE__*/ React.cloneElement(i, {
|
|
53803
53797
|
in: !0,
|
|
53804
53798
|
onEntered: nC(i, "onEntered", function() {
|
|
53805
|
-
n(
|
|
53799
|
+
n(nf);
|
|
53806
53800
|
})
|
|
53807
53801
|
})
|
|
53808
53802
|
];
|
|
@@ -53855,8 +53849,8 @@
|
|
|
53855
53849
|
if (null == r.children) return {
|
|
53856
53850
|
current: null
|
|
53857
53851
|
};
|
|
53858
|
-
if (o.status ===
|
|
53859
|
-
status:
|
|
53852
|
+
if (o.status === nf && r.mode === ny) return {
|
|
53853
|
+
status: nf
|
|
53860
53854
|
};
|
|
53861
53855
|
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) ? {
|
|
53862
53856
|
status: nm
|
|
@@ -53873,7 +53867,7 @@
|
|
|
53873
53867
|
status: s
|
|
53874
53868
|
};
|
|
53875
53869
|
switch(s){
|
|
53876
|
-
case
|
|
53870
|
+
case nf:
|
|
53877
53871
|
r = n_[i](l);
|
|
53878
53872
|
break;
|
|
53879
53873
|
case nm:
|
|
@@ -53903,7 +53897,7 @@
|
|
|
53903
53897
|
var t, r;
|
|
53904
53898
|
if (tN) return nS.exports;
|
|
53905
53899
|
return tN = 1, t = nS, r = nS.exports, function(o, n) {
|
|
53906
|
-
var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name",
|
|
53900
|
+
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) {
|
|
53907
53901
|
var o = {};
|
|
53908
53902
|
for(var n in t)r[n] && r[n].length % 2 == 0 ? o[n] = r[n].concat(t[n]) : o[n] = t[n];
|
|
53909
53903
|
return o;
|
|
@@ -53918,9 +53912,9 @@
|
|
|
53918
53912
|
if (typeof t === c) return t = t.replace(/^\s\s*/, ""), typeof r === a ? t : t.substring(0, 500);
|
|
53919
53913
|
}, X = function(t, r) {
|
|
53920
53914
|
for(var o, n, a, c, l, d, u = 0; u < r.length && !l;){
|
|
53921
|
-
var
|
|
53922
|
-
for(o = n = 0; o <
|
|
53923
|
-
if (l =
|
|
53915
|
+
var p = r[u], f = r[u + 1];
|
|
53916
|
+
for(o = n = 0; o < p.length && !l && p[o];){
|
|
53917
|
+
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;
|
|
53924
53918
|
}
|
|
53925
53919
|
u += 2;
|
|
53926
53920
|
}
|
|
@@ -54504,11 +54498,11 @@
|
|
|
54504
54498
|
[
|
|
54505
54499
|
d,
|
|
54506
54500
|
[
|
|
54507
|
-
|
|
54501
|
+
f,
|
|
54508
54502
|
O
|
|
54509
54503
|
],
|
|
54510
54504
|
[
|
|
54511
|
-
|
|
54505
|
+
p,
|
|
54512
54506
|
v
|
|
54513
54507
|
]
|
|
54514
54508
|
],
|
|
@@ -54520,11 +54514,11 @@
|
|
|
54520
54514
|
[
|
|
54521
54515
|
d,
|
|
54522
54516
|
[
|
|
54523
|
-
|
|
54517
|
+
f,
|
|
54524
54518
|
O
|
|
54525
54519
|
],
|
|
54526
54520
|
[
|
|
54527
|
-
|
|
54521
|
+
p,
|
|
54528
54522
|
b
|
|
54529
54523
|
]
|
|
54530
54524
|
],
|
|
@@ -54534,11 +54528,11 @@
|
|
|
54534
54528
|
[
|
|
54535
54529
|
d,
|
|
54536
54530
|
[
|
|
54537
|
-
|
|
54531
|
+
f,
|
|
54538
54532
|
B
|
|
54539
54533
|
],
|
|
54540
54534
|
[
|
|
54541
|
-
|
|
54535
|
+
p,
|
|
54542
54536
|
b
|
|
54543
54537
|
]
|
|
54544
54538
|
],
|
|
@@ -54550,11 +54544,11 @@
|
|
|
54550
54544
|
[
|
|
54551
54545
|
d,
|
|
54552
54546
|
[
|
|
54553
|
-
|
|
54547
|
+
f,
|
|
54554
54548
|
B
|
|
54555
54549
|
],
|
|
54556
54550
|
[
|
|
54557
|
-
|
|
54551
|
+
p,
|
|
54558
54552
|
v
|
|
54559
54553
|
]
|
|
54560
54554
|
],
|
|
@@ -54564,7 +54558,7 @@
|
|
|
54564
54558
|
[
|
|
54565
54559
|
d,
|
|
54566
54560
|
[
|
|
54567
|
-
|
|
54561
|
+
f,
|
|
54568
54562
|
B
|
|
54569
54563
|
]
|
|
54570
54564
|
],
|
|
@@ -54574,11 +54568,11 @@
|
|
|
54574
54568
|
[
|
|
54575
54569
|
d,
|
|
54576
54570
|
[
|
|
54577
|
-
|
|
54571
|
+
f,
|
|
54578
54572
|
M
|
|
54579
54573
|
],
|
|
54580
54574
|
[
|
|
54581
|
-
|
|
54575
|
+
p,
|
|
54582
54576
|
b
|
|
54583
54577
|
]
|
|
54584
54578
|
],
|
|
@@ -54588,11 +54582,11 @@
|
|
|
54588
54582
|
[
|
|
54589
54583
|
d,
|
|
54590
54584
|
[
|
|
54591
|
-
|
|
54585
|
+
f,
|
|
54592
54586
|
D
|
|
54593
54587
|
],
|
|
54594
54588
|
[
|
|
54595
|
-
|
|
54589
|
+
p,
|
|
54596
54590
|
v
|
|
54597
54591
|
]
|
|
54598
54592
|
],
|
|
@@ -54603,11 +54597,11 @@
|
|
|
54603
54597
|
[
|
|
54604
54598
|
d,
|
|
54605
54599
|
[
|
|
54606
|
-
|
|
54600
|
+
f,
|
|
54607
54601
|
D
|
|
54608
54602
|
],
|
|
54609
54603
|
[
|
|
54610
|
-
|
|
54604
|
+
p,
|
|
54611
54605
|
b
|
|
54612
54606
|
]
|
|
54613
54607
|
],
|
|
@@ -54626,11 +54620,11 @@
|
|
|
54626
54620
|
" "
|
|
54627
54621
|
],
|
|
54628
54622
|
[
|
|
54629
|
-
|
|
54623
|
+
f,
|
|
54630
54624
|
R
|
|
54631
54625
|
],
|
|
54632
54626
|
[
|
|
54633
|
-
|
|
54627
|
+
p,
|
|
54634
54628
|
b
|
|
54635
54629
|
]
|
|
54636
54630
|
],
|
|
@@ -54645,11 +54639,11 @@
|
|
|
54645
54639
|
" "
|
|
54646
54640
|
],
|
|
54647
54641
|
[
|
|
54648
|
-
|
|
54642
|
+
f,
|
|
54649
54643
|
R
|
|
54650
54644
|
],
|
|
54651
54645
|
[
|
|
54652
|
-
|
|
54646
|
+
p,
|
|
54653
54647
|
v
|
|
54654
54648
|
]
|
|
54655
54649
|
],
|
|
@@ -54660,11 +54654,11 @@
|
|
|
54660
54654
|
[
|
|
54661
54655
|
d,
|
|
54662
54656
|
[
|
|
54663
|
-
|
|
54657
|
+
f,
|
|
54664
54658
|
"OPPO"
|
|
54665
54659
|
],
|
|
54666
54660
|
[
|
|
54667
|
-
|
|
54661
|
+
p,
|
|
54668
54662
|
b
|
|
54669
54663
|
]
|
|
54670
54664
|
],
|
|
@@ -54675,11 +54669,11 @@
|
|
|
54675
54669
|
[
|
|
54676
54670
|
d,
|
|
54677
54671
|
[
|
|
54678
|
-
|
|
54672
|
+
f,
|
|
54679
54673
|
"Vivo"
|
|
54680
54674
|
],
|
|
54681
54675
|
[
|
|
54682
|
-
|
|
54676
|
+
p,
|
|
54683
54677
|
b
|
|
54684
54678
|
]
|
|
54685
54679
|
],
|
|
@@ -54689,11 +54683,11 @@
|
|
|
54689
54683
|
[
|
|
54690
54684
|
d,
|
|
54691
54685
|
[
|
|
54692
|
-
|
|
54686
|
+
f,
|
|
54693
54687
|
"Realme"
|
|
54694
54688
|
],
|
|
54695
54689
|
[
|
|
54696
|
-
|
|
54690
|
+
p,
|
|
54697
54691
|
b
|
|
54698
54692
|
]
|
|
54699
54693
|
],
|
|
@@ -54705,11 +54699,11 @@
|
|
|
54705
54699
|
[
|
|
54706
54700
|
d,
|
|
54707
54701
|
[
|
|
54708
|
-
|
|
54702
|
+
f,
|
|
54709
54703
|
j
|
|
54710
54704
|
],
|
|
54711
54705
|
[
|
|
54712
|
-
|
|
54706
|
+
p,
|
|
54713
54707
|
b
|
|
54714
54708
|
]
|
|
54715
54709
|
],
|
|
@@ -54719,11 +54713,11 @@
|
|
|
54719
54713
|
[
|
|
54720
54714
|
d,
|
|
54721
54715
|
[
|
|
54722
|
-
|
|
54716
|
+
f,
|
|
54723
54717
|
j
|
|
54724
54718
|
],
|
|
54725
54719
|
[
|
|
54726
|
-
|
|
54720
|
+
p,
|
|
54727
54721
|
v
|
|
54728
54722
|
]
|
|
54729
54723
|
],
|
|
@@ -54733,11 +54727,11 @@
|
|
|
54733
54727
|
[
|
|
54734
54728
|
d,
|
|
54735
54729
|
[
|
|
54736
|
-
|
|
54730
|
+
f,
|
|
54737
54731
|
"LG"
|
|
54738
54732
|
],
|
|
54739
54733
|
[
|
|
54740
|
-
|
|
54734
|
+
p,
|
|
54741
54735
|
v
|
|
54742
54736
|
]
|
|
54743
54737
|
],
|
|
@@ -54749,11 +54743,11 @@
|
|
|
54749
54743
|
[
|
|
54750
54744
|
d,
|
|
54751
54745
|
[
|
|
54752
|
-
|
|
54746
|
+
f,
|
|
54753
54747
|
"LG"
|
|
54754
54748
|
],
|
|
54755
54749
|
[
|
|
54756
|
-
|
|
54750
|
+
p,
|
|
54757
54751
|
b
|
|
54758
54752
|
]
|
|
54759
54753
|
],
|
|
@@ -54764,11 +54758,11 @@
|
|
|
54764
54758
|
[
|
|
54765
54759
|
d,
|
|
54766
54760
|
[
|
|
54767
|
-
|
|
54761
|
+
f,
|
|
54768
54762
|
"Lenovo"
|
|
54769
54763
|
],
|
|
54770
54764
|
[
|
|
54771
|
-
|
|
54765
|
+
p,
|
|
54772
54766
|
v
|
|
54773
54767
|
]
|
|
54774
54768
|
],
|
|
@@ -54783,11 +54777,11 @@
|
|
|
54783
54777
|
" "
|
|
54784
54778
|
],
|
|
54785
54779
|
[
|
|
54786
|
-
|
|
54780
|
+
f,
|
|
54787
54781
|
"Nokia"
|
|
54788
54782
|
],
|
|
54789
54783
|
[
|
|
54790
|
-
|
|
54784
|
+
p,
|
|
54791
54785
|
b
|
|
54792
54786
|
]
|
|
54793
54787
|
],
|
|
@@ -54797,11 +54791,11 @@
|
|
|
54797
54791
|
[
|
|
54798
54792
|
d,
|
|
54799
54793
|
[
|
|
54800
|
-
|
|
54794
|
+
f,
|
|
54801
54795
|
T
|
|
54802
54796
|
],
|
|
54803
54797
|
[
|
|
54804
|
-
|
|
54798
|
+
p,
|
|
54805
54799
|
v
|
|
54806
54800
|
]
|
|
54807
54801
|
],
|
|
@@ -54811,11 +54805,11 @@
|
|
|
54811
54805
|
[
|
|
54812
54806
|
d,
|
|
54813
54807
|
[
|
|
54814
|
-
|
|
54808
|
+
f,
|
|
54815
54809
|
T
|
|
54816
54810
|
],
|
|
54817
54811
|
[
|
|
54818
|
-
|
|
54812
|
+
p,
|
|
54819
54813
|
b
|
|
54820
54814
|
]
|
|
54821
54815
|
],
|
|
@@ -54825,11 +54819,11 @@
|
|
|
54825
54819
|
[
|
|
54826
54820
|
d,
|
|
54827
54821
|
[
|
|
54828
|
-
|
|
54822
|
+
f,
|
|
54829
54823
|
A
|
|
54830
54824
|
],
|
|
54831
54825
|
[
|
|
54832
|
-
|
|
54826
|
+
p,
|
|
54833
54827
|
b
|
|
54834
54828
|
]
|
|
54835
54829
|
],
|
|
@@ -54843,11 +54837,11 @@
|
|
|
54843
54837
|
"Xperia Tablet"
|
|
54844
54838
|
],
|
|
54845
54839
|
[
|
|
54846
|
-
|
|
54840
|
+
f,
|
|
54847
54841
|
A
|
|
54848
54842
|
],
|
|
54849
54843
|
[
|
|
54850
|
-
|
|
54844
|
+
p,
|
|
54851
54845
|
v
|
|
54852
54846
|
]
|
|
54853
54847
|
],
|
|
@@ -54858,11 +54852,11 @@
|
|
|
54858
54852
|
[
|
|
54859
54853
|
d,
|
|
54860
54854
|
[
|
|
54861
|
-
|
|
54855
|
+
f,
|
|
54862
54856
|
"OnePlus"
|
|
54863
54857
|
],
|
|
54864
54858
|
[
|
|
54865
|
-
|
|
54859
|
+
p,
|
|
54866
54860
|
b
|
|
54867
54861
|
]
|
|
54868
54862
|
],
|
|
@@ -54874,11 +54868,11 @@
|
|
|
54874
54868
|
[
|
|
54875
54869
|
d,
|
|
54876
54870
|
[
|
|
54877
|
-
|
|
54871
|
+
f,
|
|
54878
54872
|
C
|
|
54879
54873
|
],
|
|
54880
54874
|
[
|
|
54881
|
-
|
|
54875
|
+
p,
|
|
54882
54876
|
v
|
|
54883
54877
|
]
|
|
54884
54878
|
],
|
|
@@ -54892,11 +54886,11 @@
|
|
|
54892
54886
|
"Fire Phone $1"
|
|
54893
54887
|
],
|
|
54894
54888
|
[
|
|
54895
|
-
|
|
54889
|
+
f,
|
|
54896
54890
|
C
|
|
54897
54891
|
],
|
|
54898
54892
|
[
|
|
54899
|
-
|
|
54893
|
+
p,
|
|
54900
54894
|
b
|
|
54901
54895
|
]
|
|
54902
54896
|
],
|
|
@@ -54905,9 +54899,9 @@
|
|
|
54905
54899
|
],
|
|
54906
54900
|
[
|
|
54907
54901
|
d,
|
|
54908
|
-
|
|
54902
|
+
f,
|
|
54909
54903
|
[
|
|
54910
|
-
|
|
54904
|
+
p,
|
|
54911
54905
|
v
|
|
54912
54906
|
]
|
|
54913
54907
|
],
|
|
@@ -54918,11 +54912,11 @@
|
|
|
54918
54912
|
[
|
|
54919
54913
|
d,
|
|
54920
54914
|
[
|
|
54921
|
-
|
|
54915
|
+
f,
|
|
54922
54916
|
x
|
|
54923
54917
|
],
|
|
54924
54918
|
[
|
|
54925
|
-
|
|
54919
|
+
p,
|
|
54926
54920
|
b
|
|
54927
54921
|
]
|
|
54928
54922
|
],
|
|
@@ -54932,11 +54926,11 @@
|
|
|
54932
54926
|
[
|
|
54933
54927
|
d,
|
|
54934
54928
|
[
|
|
54935
|
-
|
|
54929
|
+
f,
|
|
54936
54930
|
_
|
|
54937
54931
|
],
|
|
54938
54932
|
[
|
|
54939
|
-
|
|
54933
|
+
p,
|
|
54940
54934
|
v
|
|
54941
54935
|
]
|
|
54942
54936
|
],
|
|
@@ -54946,11 +54940,11 @@
|
|
|
54946
54940
|
[
|
|
54947
54941
|
d,
|
|
54948
54942
|
[
|
|
54949
|
-
|
|
54943
|
+
f,
|
|
54950
54944
|
_
|
|
54951
54945
|
],
|
|
54952
54946
|
[
|
|
54953
|
-
|
|
54947
|
+
p,
|
|
54954
54948
|
b
|
|
54955
54949
|
]
|
|
54956
54950
|
],
|
|
@@ -54960,11 +54954,11 @@
|
|
|
54960
54954
|
[
|
|
54961
54955
|
d,
|
|
54962
54956
|
[
|
|
54963
|
-
|
|
54957
|
+
f,
|
|
54964
54958
|
"HTC"
|
|
54965
54959
|
],
|
|
54966
54960
|
[
|
|
54967
|
-
|
|
54961
|
+
p,
|
|
54968
54962
|
v
|
|
54969
54963
|
]
|
|
54970
54964
|
],
|
|
@@ -54974,14 +54968,14 @@
|
|
|
54974
54968
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
54975
54969
|
],
|
|
54976
54970
|
[
|
|
54977
|
-
|
|
54971
|
+
f,
|
|
54978
54972
|
[
|
|
54979
54973
|
d,
|
|
54980
54974
|
/_/g,
|
|
54981
54975
|
" "
|
|
54982
54976
|
],
|
|
54983
54977
|
[
|
|
54984
|
-
|
|
54978
|
+
p,
|
|
54985
54979
|
b
|
|
54986
54980
|
]
|
|
54987
54981
|
],
|
|
@@ -54991,11 +54985,11 @@
|
|
|
54991
54985
|
[
|
|
54992
54986
|
d,
|
|
54993
54987
|
[
|
|
54994
|
-
|
|
54988
|
+
f,
|
|
54995
54989
|
"Acer"
|
|
54996
54990
|
],
|
|
54997
54991
|
[
|
|
54998
|
-
|
|
54992
|
+
p,
|
|
54999
54993
|
v
|
|
55000
54994
|
]
|
|
55001
54995
|
],
|
|
@@ -55006,11 +55000,11 @@
|
|
|
55006
55000
|
[
|
|
55007
55001
|
d,
|
|
55008
55002
|
[
|
|
55009
|
-
|
|
55003
|
+
f,
|
|
55010
55004
|
"Meizu"
|
|
55011
55005
|
],
|
|
55012
55006
|
[
|
|
55013
|
-
|
|
55007
|
+
p,
|
|
55014
55008
|
b
|
|
55015
55009
|
]
|
|
55016
55010
|
],
|
|
@@ -55020,11 +55014,11 @@
|
|
|
55020
55014
|
[
|
|
55021
55015
|
d,
|
|
55022
55016
|
[
|
|
55023
|
-
|
|
55017
|
+
f,
|
|
55024
55018
|
"Ulefone"
|
|
55025
55019
|
],
|
|
55026
55020
|
[
|
|
55027
|
-
|
|
55021
|
+
p,
|
|
55028
55022
|
b
|
|
55029
55023
|
]
|
|
55030
55024
|
],
|
|
@@ -55038,10 +55032,10 @@
|
|
|
55038
55032
|
/(oppo) ?([\w ]+) bui/i
|
|
55039
55033
|
],
|
|
55040
55034
|
[
|
|
55041
|
-
|
|
55035
|
+
f,
|
|
55042
55036
|
d,
|
|
55043
55037
|
[
|
|
55044
|
-
|
|
55038
|
+
p,
|
|
55045
55039
|
b
|
|
55046
55040
|
]
|
|
55047
55041
|
],
|
|
@@ -55058,10 +55052,10 @@
|
|
|
55058
55052
|
/(vodafone) ([\w ]+)(?:\)| bui)/i
|
|
55059
55053
|
],
|
|
55060
55054
|
[
|
|
55061
|
-
|
|
55055
|
+
f,
|
|
55062
55056
|
d,
|
|
55063
55057
|
[
|
|
55064
|
-
|
|
55058
|
+
p,
|
|
55065
55059
|
v
|
|
55066
55060
|
]
|
|
55067
55061
|
],
|
|
@@ -55071,11 +55065,11 @@
|
|
|
55071
55065
|
[
|
|
55072
55066
|
d,
|
|
55073
55067
|
[
|
|
55074
|
-
|
|
55068
|
+
f,
|
|
55075
55069
|
$
|
|
55076
55070
|
],
|
|
55077
55071
|
[
|
|
55078
|
-
|
|
55072
|
+
p,
|
|
55079
55073
|
v
|
|
55080
55074
|
]
|
|
55081
55075
|
],
|
|
@@ -55085,11 +55079,11 @@
|
|
|
55085
55079
|
[
|
|
55086
55080
|
d,
|
|
55087
55081
|
[
|
|
55088
|
-
|
|
55082
|
+
f,
|
|
55089
55083
|
"Fairphone"
|
|
55090
55084
|
],
|
|
55091
55085
|
[
|
|
55092
|
-
|
|
55086
|
+
p,
|
|
55093
55087
|
b
|
|
55094
55088
|
]
|
|
55095
55089
|
],
|
|
@@ -55099,11 +55093,11 @@
|
|
|
55099
55093
|
[
|
|
55100
55094
|
d,
|
|
55101
55095
|
[
|
|
55102
|
-
|
|
55096
|
+
f,
|
|
55103
55097
|
"AT&T"
|
|
55104
55098
|
],
|
|
55105
55099
|
[
|
|
55106
|
-
|
|
55100
|
+
p,
|
|
55107
55101
|
b
|
|
55108
55102
|
]
|
|
55109
55103
|
],
|
|
@@ -55113,11 +55107,11 @@
|
|
|
55113
55107
|
[
|
|
55114
55108
|
d,
|
|
55115
55109
|
[
|
|
55116
|
-
|
|
55110
|
+
f,
|
|
55117
55111
|
"Siemens"
|
|
55118
55112
|
],
|
|
55119
55113
|
[
|
|
55120
|
-
|
|
55114
|
+
p,
|
|
55121
55115
|
b
|
|
55122
55116
|
]
|
|
55123
55117
|
],
|
|
@@ -55127,11 +55121,11 @@
|
|
|
55127
55121
|
[
|
|
55128
55122
|
d,
|
|
55129
55123
|
[
|
|
55130
|
-
|
|
55124
|
+
f,
|
|
55131
55125
|
"RCA"
|
|
55132
55126
|
],
|
|
55133
55127
|
[
|
|
55134
|
-
|
|
55128
|
+
p,
|
|
55135
55129
|
v
|
|
55136
55130
|
]
|
|
55137
55131
|
],
|
|
@@ -55141,11 +55135,11 @@
|
|
|
55141
55135
|
[
|
|
55142
55136
|
d,
|
|
55143
55137
|
[
|
|
55144
|
-
|
|
55138
|
+
f,
|
|
55145
55139
|
"Dell"
|
|
55146
55140
|
],
|
|
55147
55141
|
[
|
|
55148
|
-
|
|
55142
|
+
p,
|
|
55149
55143
|
v
|
|
55150
55144
|
]
|
|
55151
55145
|
],
|
|
@@ -55155,11 +55149,11 @@
|
|
|
55155
55149
|
[
|
|
55156
55150
|
d,
|
|
55157
55151
|
[
|
|
55158
|
-
|
|
55152
|
+
f,
|
|
55159
55153
|
"Verizon"
|
|
55160
55154
|
],
|
|
55161
55155
|
[
|
|
55162
|
-
|
|
55156
|
+
p,
|
|
55163
55157
|
v
|
|
55164
55158
|
]
|
|
55165
55159
|
],
|
|
@@ -55169,11 +55163,11 @@
|
|
|
55169
55163
|
[
|
|
55170
55164
|
d,
|
|
55171
55165
|
[
|
|
55172
|
-
|
|
55166
|
+
f,
|
|
55173
55167
|
"Barnes & Noble"
|
|
55174
55168
|
],
|
|
55175
55169
|
[
|
|
55176
|
-
|
|
55170
|
+
p,
|
|
55177
55171
|
v
|
|
55178
55172
|
]
|
|
55179
55173
|
],
|
|
@@ -55183,11 +55177,11 @@
|
|
|
55183
55177
|
[
|
|
55184
55178
|
d,
|
|
55185
55179
|
[
|
|
55186
|
-
|
|
55180
|
+
f,
|
|
55187
55181
|
"NuVision"
|
|
55188
55182
|
],
|
|
55189
55183
|
[
|
|
55190
|
-
|
|
55184
|
+
p,
|
|
55191
55185
|
v
|
|
55192
55186
|
]
|
|
55193
55187
|
],
|
|
@@ -55197,11 +55191,11 @@
|
|
|
55197
55191
|
[
|
|
55198
55192
|
d,
|
|
55199
55193
|
[
|
|
55200
|
-
|
|
55194
|
+
f,
|
|
55201
55195
|
"ZTE"
|
|
55202
55196
|
],
|
|
55203
55197
|
[
|
|
55204
|
-
|
|
55198
|
+
p,
|
|
55205
55199
|
v
|
|
55206
55200
|
]
|
|
55207
55201
|
],
|
|
@@ -55211,11 +55205,11 @@
|
|
|
55211
55205
|
[
|
|
55212
55206
|
d,
|
|
55213
55207
|
[
|
|
55214
|
-
|
|
55208
|
+
f,
|
|
55215
55209
|
"ZTE"
|
|
55216
55210
|
],
|
|
55217
55211
|
[
|
|
55218
|
-
|
|
55212
|
+
p,
|
|
55219
55213
|
b
|
|
55220
55214
|
]
|
|
55221
55215
|
],
|
|
@@ -55225,11 +55219,11 @@
|
|
|
55225
55219
|
[
|
|
55226
55220
|
d,
|
|
55227
55221
|
[
|
|
55228
|
-
|
|
55222
|
+
f,
|
|
55229
55223
|
"Swiss"
|
|
55230
55224
|
],
|
|
55231
55225
|
[
|
|
55232
|
-
|
|
55226
|
+
p,
|
|
55233
55227
|
b
|
|
55234
55228
|
]
|
|
55235
55229
|
],
|
|
@@ -55239,11 +55233,11 @@
|
|
|
55239
55233
|
[
|
|
55240
55234
|
d,
|
|
55241
55235
|
[
|
|
55242
|
-
|
|
55236
|
+
f,
|
|
55243
55237
|
"Swiss"
|
|
55244
55238
|
],
|
|
55245
55239
|
[
|
|
55246
|
-
|
|
55240
|
+
p,
|
|
55247
55241
|
v
|
|
55248
55242
|
]
|
|
55249
55243
|
],
|
|
@@ -55253,11 +55247,11 @@
|
|
|
55253
55247
|
[
|
|
55254
55248
|
d,
|
|
55255
55249
|
[
|
|
55256
|
-
|
|
55250
|
+
f,
|
|
55257
55251
|
"Zeki"
|
|
55258
55252
|
],
|
|
55259
55253
|
[
|
|
55260
|
-
|
|
55254
|
+
p,
|
|
55261
55255
|
v
|
|
55262
55256
|
]
|
|
55263
55257
|
],
|
|
@@ -55267,12 +55261,12 @@
|
|
|
55267
55261
|
],
|
|
55268
55262
|
[
|
|
55269
55263
|
[
|
|
55270
|
-
|
|
55264
|
+
f,
|
|
55271
55265
|
"Dragon Touch"
|
|
55272
55266
|
],
|
|
55273
55267
|
d,
|
|
55274
55268
|
[
|
|
55275
|
-
|
|
55269
|
+
p,
|
|
55276
55270
|
v
|
|
55277
55271
|
]
|
|
55278
55272
|
],
|
|
@@ -55282,11 +55276,11 @@
|
|
|
55282
55276
|
[
|
|
55283
55277
|
d,
|
|
55284
55278
|
[
|
|
55285
|
-
|
|
55279
|
+
f,
|
|
55286
55280
|
"Insignia"
|
|
55287
55281
|
],
|
|
55288
55282
|
[
|
|
55289
|
-
|
|
55283
|
+
p,
|
|
55290
55284
|
v
|
|
55291
55285
|
]
|
|
55292
55286
|
],
|
|
@@ -55296,11 +55290,11 @@
|
|
|
55296
55290
|
[
|
|
55297
55291
|
d,
|
|
55298
55292
|
[
|
|
55299
|
-
|
|
55293
|
+
f,
|
|
55300
55294
|
"NextBook"
|
|
55301
55295
|
],
|
|
55302
55296
|
[
|
|
55303
|
-
|
|
55297
|
+
p,
|
|
55304
55298
|
v
|
|
55305
55299
|
]
|
|
55306
55300
|
],
|
|
@@ -55309,12 +55303,12 @@
|
|
|
55309
55303
|
],
|
|
55310
55304
|
[
|
|
55311
55305
|
[
|
|
55312
|
-
|
|
55306
|
+
f,
|
|
55313
55307
|
"Voice"
|
|
55314
55308
|
],
|
|
55315
55309
|
d,
|
|
55316
55310
|
[
|
|
55317
|
-
|
|
55311
|
+
p,
|
|
55318
55312
|
b
|
|
55319
55313
|
]
|
|
55320
55314
|
],
|
|
@@ -55323,12 +55317,12 @@
|
|
|
55323
55317
|
],
|
|
55324
55318
|
[
|
|
55325
55319
|
[
|
|
55326
|
-
|
|
55320
|
+
f,
|
|
55327
55321
|
"LvTel"
|
|
55328
55322
|
],
|
|
55329
55323
|
d,
|
|
55330
55324
|
[
|
|
55331
|
-
|
|
55325
|
+
p,
|
|
55332
55326
|
b
|
|
55333
55327
|
]
|
|
55334
55328
|
],
|
|
@@ -55338,11 +55332,11 @@
|
|
|
55338
55332
|
[
|
|
55339
55333
|
d,
|
|
55340
55334
|
[
|
|
55341
|
-
|
|
55335
|
+
f,
|
|
55342
55336
|
"Essential"
|
|
55343
55337
|
],
|
|
55344
55338
|
[
|
|
55345
|
-
|
|
55339
|
+
p,
|
|
55346
55340
|
b
|
|
55347
55341
|
]
|
|
55348
55342
|
],
|
|
@@ -55352,11 +55346,11 @@
|
|
|
55352
55346
|
[
|
|
55353
55347
|
d,
|
|
55354
55348
|
[
|
|
55355
|
-
|
|
55349
|
+
f,
|
|
55356
55350
|
"Envizen"
|
|
55357
55351
|
],
|
|
55358
55352
|
[
|
|
55359
|
-
|
|
55353
|
+
p,
|
|
55360
55354
|
v
|
|
55361
55355
|
]
|
|
55362
55356
|
],
|
|
@@ -55366,11 +55360,11 @@
|
|
|
55366
55360
|
[
|
|
55367
55361
|
d,
|
|
55368
55362
|
[
|
|
55369
|
-
|
|
55363
|
+
f,
|
|
55370
55364
|
"MachSpeed"
|
|
55371
55365
|
],
|
|
55372
55366
|
[
|
|
55373
|
-
|
|
55367
|
+
p,
|
|
55374
55368
|
v
|
|
55375
55369
|
]
|
|
55376
55370
|
],
|
|
@@ -55380,11 +55374,11 @@
|
|
|
55380
55374
|
[
|
|
55381
55375
|
d,
|
|
55382
55376
|
[
|
|
55383
|
-
|
|
55377
|
+
f,
|
|
55384
55378
|
"Rotor"
|
|
55385
55379
|
],
|
|
55386
55380
|
[
|
|
55387
|
-
|
|
55381
|
+
p,
|
|
55388
55382
|
v
|
|
55389
55383
|
]
|
|
55390
55384
|
],
|
|
@@ -55394,11 +55388,11 @@
|
|
|
55394
55388
|
[
|
|
55395
55389
|
d,
|
|
55396
55390
|
[
|
|
55397
|
-
|
|
55391
|
+
f,
|
|
55398
55392
|
"Nvidia"
|
|
55399
55393
|
],
|
|
55400
55394
|
[
|
|
55401
|
-
|
|
55395
|
+
p,
|
|
55402
55396
|
v
|
|
55403
55397
|
]
|
|
55404
55398
|
],
|
|
@@ -55406,10 +55400,10 @@
|
|
|
55406
55400
|
/(sprint) (\w+)/i
|
|
55407
55401
|
],
|
|
55408
55402
|
[
|
|
55409
|
-
|
|
55403
|
+
f,
|
|
55410
55404
|
d,
|
|
55411
55405
|
[
|
|
55412
|
-
|
|
55406
|
+
p,
|
|
55413
55407
|
b
|
|
55414
55408
|
]
|
|
55415
55409
|
],
|
|
@@ -55423,11 +55417,11 @@
|
|
|
55423
55417
|
" "
|
|
55424
55418
|
],
|
|
55425
55419
|
[
|
|
55426
|
-
|
|
55420
|
+
f,
|
|
55427
55421
|
$
|
|
55428
55422
|
],
|
|
55429
55423
|
[
|
|
55430
|
-
|
|
55424
|
+
p,
|
|
55431
55425
|
b
|
|
55432
55426
|
]
|
|
55433
55427
|
],
|
|
@@ -55437,11 +55431,11 @@
|
|
|
55437
55431
|
[
|
|
55438
55432
|
d,
|
|
55439
55433
|
[
|
|
55440
|
-
|
|
55434
|
+
f,
|
|
55441
55435
|
L
|
|
55442
55436
|
],
|
|
55443
55437
|
[
|
|
55444
|
-
|
|
55438
|
+
p,
|
|
55445
55439
|
v
|
|
55446
55440
|
]
|
|
55447
55441
|
],
|
|
@@ -55451,11 +55445,11 @@
|
|
|
55451
55445
|
[
|
|
55452
55446
|
d,
|
|
55453
55447
|
[
|
|
55454
|
-
|
|
55448
|
+
f,
|
|
55455
55449
|
L
|
|
55456
55450
|
],
|
|
55457
55451
|
[
|
|
55458
|
-
|
|
55452
|
+
p,
|
|
55459
55453
|
b
|
|
55460
55454
|
]
|
|
55461
55455
|
],
|
|
@@ -55463,9 +55457,9 @@
|
|
|
55463
55457
|
/smart-tv.+(samsung)/i
|
|
55464
55458
|
],
|
|
55465
55459
|
[
|
|
55466
|
-
|
|
55460
|
+
f,
|
|
55467
55461
|
[
|
|
55468
|
-
|
|
55462
|
+
p,
|
|
55469
55463
|
w
|
|
55470
55464
|
]
|
|
55471
55465
|
],
|
|
@@ -55479,11 +55473,11 @@
|
|
|
55479
55473
|
"SmartTV"
|
|
55480
55474
|
],
|
|
55481
55475
|
[
|
|
55482
|
-
|
|
55476
|
+
f,
|
|
55483
55477
|
O
|
|
55484
55478
|
],
|
|
55485
55479
|
[
|
|
55486
|
-
|
|
55480
|
+
p,
|
|
55487
55481
|
w
|
|
55488
55482
|
]
|
|
55489
55483
|
],
|
|
@@ -55492,11 +55486,11 @@
|
|
|
55492
55486
|
],
|
|
55493
55487
|
[
|
|
55494
55488
|
[
|
|
55495
|
-
|
|
55489
|
+
f,
|
|
55496
55490
|
"LG"
|
|
55497
55491
|
],
|
|
55498
55492
|
[
|
|
55499
|
-
|
|
55493
|
+
p,
|
|
55500
55494
|
w
|
|
55501
55495
|
]
|
|
55502
55496
|
],
|
|
@@ -55504,13 +55498,13 @@
|
|
|
55504
55498
|
/(apple) ?tv/i
|
|
55505
55499
|
],
|
|
55506
55500
|
[
|
|
55507
|
-
|
|
55501
|
+
f,
|
|
55508
55502
|
[
|
|
55509
55503
|
d,
|
|
55510
55504
|
B + " TV"
|
|
55511
55505
|
],
|
|
55512
55506
|
[
|
|
55513
|
-
|
|
55507
|
+
p,
|
|
55514
55508
|
w
|
|
55515
55509
|
]
|
|
55516
55510
|
],
|
|
@@ -55523,11 +55517,11 @@
|
|
|
55523
55517
|
S + "cast"
|
|
55524
55518
|
],
|
|
55525
55519
|
[
|
|
55526
|
-
|
|
55520
|
+
f,
|
|
55527
55521
|
T
|
|
55528
55522
|
],
|
|
55529
55523
|
[
|
|
55530
|
-
|
|
55524
|
+
p,
|
|
55531
55525
|
w
|
|
55532
55526
|
]
|
|
55533
55527
|
],
|
|
@@ -55537,11 +55531,11 @@
|
|
|
55537
55531
|
[
|
|
55538
55532
|
d,
|
|
55539
55533
|
[
|
|
55540
|
-
|
|
55534
|
+
f,
|
|
55541
55535
|
C
|
|
55542
55536
|
],
|
|
55543
55537
|
[
|
|
55544
|
-
|
|
55538
|
+
p,
|
|
55545
55539
|
w
|
|
55546
55540
|
]
|
|
55547
55541
|
],
|
|
@@ -55552,11 +55546,11 @@
|
|
|
55552
55546
|
[
|
|
55553
55547
|
d,
|
|
55554
55548
|
[
|
|
55555
|
-
|
|
55549
|
+
f,
|
|
55556
55550
|
M
|
|
55557
55551
|
],
|
|
55558
55552
|
[
|
|
55559
|
-
|
|
55553
|
+
p,
|
|
55560
55554
|
w
|
|
55561
55555
|
]
|
|
55562
55556
|
],
|
|
@@ -55566,11 +55560,11 @@
|
|
|
55566
55560
|
[
|
|
55567
55561
|
d,
|
|
55568
55562
|
[
|
|
55569
|
-
|
|
55563
|
+
f,
|
|
55570
55564
|
A
|
|
55571
55565
|
],
|
|
55572
55566
|
[
|
|
55573
|
-
|
|
55567
|
+
p,
|
|
55574
55568
|
w
|
|
55575
55569
|
]
|
|
55576
55570
|
],
|
|
@@ -55580,11 +55574,11 @@
|
|
|
55580
55574
|
[
|
|
55581
55575
|
d,
|
|
55582
55576
|
[
|
|
55583
|
-
|
|
55577
|
+
f,
|
|
55584
55578
|
R
|
|
55585
55579
|
],
|
|
55586
55580
|
[
|
|
55587
|
-
|
|
55581
|
+
p,
|
|
55588
55582
|
w
|
|
55589
55583
|
]
|
|
55590
55584
|
],
|
|
@@ -55592,10 +55586,10 @@
|
|
|
55592
55586
|
/Hbbtv.*(technisat) (.*);/i
|
|
55593
55587
|
],
|
|
55594
55588
|
[
|
|
55595
|
-
|
|
55589
|
+
f,
|
|
55596
55590
|
d,
|
|
55597
55591
|
[
|
|
55598
|
-
|
|
55592
|
+
p,
|
|
55599
55593
|
w
|
|
55600
55594
|
]
|
|
55601
55595
|
],
|
|
@@ -55605,7 +55599,7 @@
|
|
|
55605
55599
|
],
|
|
55606
55600
|
[
|
|
55607
55601
|
[
|
|
55608
|
-
|
|
55602
|
+
f,
|
|
55609
55603
|
Q
|
|
55610
55604
|
],
|
|
55611
55605
|
[
|
|
@@ -55613,7 +55607,7 @@
|
|
|
55613
55607
|
Q
|
|
55614
55608
|
],
|
|
55615
55609
|
[
|
|
55616
|
-
|
|
55610
|
+
p,
|
|
55617
55611
|
w
|
|
55618
55612
|
]
|
|
55619
55613
|
],
|
|
@@ -55622,7 +55616,7 @@
|
|
|
55622
55616
|
],
|
|
55623
55617
|
[
|
|
55624
55618
|
[
|
|
55625
|
-
|
|
55619
|
+
p,
|
|
55626
55620
|
w
|
|
55627
55621
|
]
|
|
55628
55622
|
],
|
|
@@ -55631,10 +55625,10 @@
|
|
|
55631
55625
|
/(nintendo) ([wids3utch]+)/i
|
|
55632
55626
|
],
|
|
55633
55627
|
[
|
|
55634
|
-
|
|
55628
|
+
f,
|
|
55635
55629
|
d,
|
|
55636
55630
|
[
|
|
55637
|
-
|
|
55631
|
+
p,
|
|
55638
55632
|
g
|
|
55639
55633
|
]
|
|
55640
55634
|
],
|
|
@@ -55644,11 +55638,11 @@
|
|
|
55644
55638
|
[
|
|
55645
55639
|
d,
|
|
55646
55640
|
[
|
|
55647
|
-
|
|
55641
|
+
f,
|
|
55648
55642
|
"Nvidia"
|
|
55649
55643
|
],
|
|
55650
55644
|
[
|
|
55651
|
-
|
|
55645
|
+
p,
|
|
55652
55646
|
g
|
|
55653
55647
|
]
|
|
55654
55648
|
],
|
|
@@ -55658,11 +55652,11 @@
|
|
|
55658
55652
|
[
|
|
55659
55653
|
d,
|
|
55660
55654
|
[
|
|
55661
|
-
|
|
55655
|
+
f,
|
|
55662
55656
|
A
|
|
55663
55657
|
],
|
|
55664
55658
|
[
|
|
55665
|
-
|
|
55659
|
+
p,
|
|
55666
55660
|
g
|
|
55667
55661
|
]
|
|
55668
55662
|
],
|
|
@@ -55672,11 +55666,11 @@
|
|
|
55672
55666
|
[
|
|
55673
55667
|
d,
|
|
55674
55668
|
[
|
|
55675
|
-
|
|
55669
|
+
f,
|
|
55676
55670
|
$
|
|
55677
55671
|
],
|
|
55678
55672
|
[
|
|
55679
|
-
|
|
55673
|
+
p,
|
|
55680
55674
|
g
|
|
55681
55675
|
]
|
|
55682
55676
|
],
|
|
@@ -55684,10 +55678,10 @@
|
|
|
55684
55678
|
/((pebble))app/i
|
|
55685
55679
|
],
|
|
55686
55680
|
[
|
|
55687
|
-
|
|
55681
|
+
f,
|
|
55688
55682
|
d,
|
|
55689
55683
|
[
|
|
55690
|
-
|
|
55684
|
+
p,
|
|
55691
55685
|
k
|
|
55692
55686
|
]
|
|
55693
55687
|
],
|
|
@@ -55697,11 +55691,11 @@
|
|
|
55697
55691
|
[
|
|
55698
55692
|
d,
|
|
55699
55693
|
[
|
|
55700
|
-
|
|
55694
|
+
f,
|
|
55701
55695
|
B
|
|
55702
55696
|
],
|
|
55703
55697
|
[
|
|
55704
|
-
|
|
55698
|
+
p,
|
|
55705
55699
|
k
|
|
55706
55700
|
]
|
|
55707
55701
|
],
|
|
@@ -55711,11 +55705,11 @@
|
|
|
55711
55705
|
[
|
|
55712
55706
|
d,
|
|
55713
55707
|
[
|
|
55714
|
-
|
|
55708
|
+
f,
|
|
55715
55709
|
T
|
|
55716
55710
|
],
|
|
55717
55711
|
[
|
|
55718
|
-
|
|
55712
|
+
p,
|
|
55719
55713
|
k
|
|
55720
55714
|
]
|
|
55721
55715
|
],
|
|
@@ -55725,11 +55719,11 @@
|
|
|
55725
55719
|
[
|
|
55726
55720
|
d,
|
|
55727
55721
|
[
|
|
55728
|
-
|
|
55722
|
+
f,
|
|
55729
55723
|
L
|
|
55730
55724
|
],
|
|
55731
55725
|
[
|
|
55732
|
-
|
|
55726
|
+
p,
|
|
55733
55727
|
k
|
|
55734
55728
|
]
|
|
55735
55729
|
],
|
|
@@ -55739,11 +55733,11 @@
|
|
|
55739
55733
|
[
|
|
55740
55734
|
d,
|
|
55741
55735
|
[
|
|
55742
|
-
|
|
55736
|
+
f,
|
|
55743
55737
|
F
|
|
55744
55738
|
],
|
|
55745
55739
|
[
|
|
55746
|
-
|
|
55740
|
+
p,
|
|
55747
55741
|
k
|
|
55748
55742
|
]
|
|
55749
55743
|
],
|
|
@@ -55751,9 +55745,9 @@
|
|
|
55751
55745
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
55752
55746
|
],
|
|
55753
55747
|
[
|
|
55754
|
-
|
|
55748
|
+
f,
|
|
55755
55749
|
[
|
|
55756
|
-
|
|
55750
|
+
p,
|
|
55757
55751
|
y
|
|
55758
55752
|
]
|
|
55759
55753
|
],
|
|
@@ -55763,11 +55757,11 @@
|
|
|
55763
55757
|
[
|
|
55764
55758
|
d,
|
|
55765
55759
|
[
|
|
55766
|
-
|
|
55760
|
+
f,
|
|
55767
55761
|
C
|
|
55768
55762
|
],
|
|
55769
55763
|
[
|
|
55770
|
-
|
|
55764
|
+
p,
|
|
55771
55765
|
y
|
|
55772
55766
|
]
|
|
55773
55767
|
],
|
|
@@ -55777,7 +55771,7 @@
|
|
|
55777
55771
|
[
|
|
55778
55772
|
d,
|
|
55779
55773
|
[
|
|
55780
|
-
|
|
55774
|
+
p,
|
|
55781
55775
|
b
|
|
55782
55776
|
]
|
|
55783
55777
|
],
|
|
@@ -55787,7 +55781,7 @@
|
|
|
55787
55781
|
[
|
|
55788
55782
|
d,
|
|
55789
55783
|
[
|
|
55790
|
-
|
|
55784
|
+
p,
|
|
55791
55785
|
v
|
|
55792
55786
|
]
|
|
55793
55787
|
],
|
|
@@ -55796,7 +55790,7 @@
|
|
|
55796
55790
|
],
|
|
55797
55791
|
[
|
|
55798
55792
|
[
|
|
55799
|
-
|
|
55793
|
+
p,
|
|
55800
55794
|
v
|
|
55801
55795
|
]
|
|
55802
55796
|
],
|
|
@@ -55805,7 +55799,7 @@
|
|
|
55805
55799
|
],
|
|
55806
55800
|
[
|
|
55807
55801
|
[
|
|
55808
|
-
|
|
55802
|
+
p,
|
|
55809
55803
|
b
|
|
55810
55804
|
]
|
|
55811
55805
|
],
|
|
@@ -55815,7 +55809,7 @@
|
|
|
55815
55809
|
[
|
|
55816
55810
|
d,
|
|
55817
55811
|
[
|
|
55818
|
-
|
|
55812
|
+
f,
|
|
55819
55813
|
"Generic"
|
|
55820
55814
|
]
|
|
55821
55815
|
]
|
|
@@ -56066,7 +56060,7 @@
|
|
|
56066
56060
|
return t[m] = void 0, X.call(t, g, k.cpu), t;
|
|
56067
56061
|
}, this.getDevice = function() {
|
|
56068
56062
|
var t = {};
|
|
56069
|
-
return t[
|
|
56063
|
+
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;
|
|
56070
56064
|
}, this.getEngine = function() {
|
|
56071
56065
|
var t = {};
|
|
56072
56066
|
return t[u] = void 0, t[h] = void 0, X.call(t, g, k.engine), t;
|
|
@@ -56096,8 +56090,8 @@
|
|
|
56096
56090
|
m
|
|
56097
56091
|
]), K.DEVICE = W([
|
|
56098
56092
|
d,
|
|
56099
|
-
p,
|
|
56100
56093
|
f,
|
|
56094
|
+
p,
|
|
56101
56095
|
g,
|
|
56102
56096
|
b,
|
|
56103
56097
|
w,
|
|
@@ -56120,9 +56114,9 @@
|
|
|
56120
56114
|
};
|
|
56121
56115
|
}
|
|
56122
56116
|
}("object" == typeof window ? window : nE), nS.exports;
|
|
56123
|
-
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(),
|
|
56117
|
+
}(), i = new n, a = i.getBrowser(), s = i.getCPU(), c = i.getDevice(), l = i.getEngine(), d = i.getOS(), u = i.getUA(), p = function(t) {
|
|
56124
56118
|
return i.setUA(t);
|
|
56125
|
-
},
|
|
56119
|
+
}, f = function(t) {
|
|
56126
56120
|
if (!t) return void console.error("No userAgent string was provided");
|
|
56127
56121
|
var r = new n(t);
|
|
56128
56122
|
return {
|
|
@@ -56145,8 +56139,8 @@
|
|
|
56145
56139
|
engine: l,
|
|
56146
56140
|
os: d,
|
|
56147
56141
|
ua: u,
|
|
56148
|
-
setUa:
|
|
56149
|
-
parseUserAgent:
|
|
56142
|
+
setUa: p,
|
|
56143
|
+
parseUserAgent: f
|
|
56150
56144
|
});
|
|
56151
56145
|
function m(t, r) {
|
|
56152
56146
|
var o = Object.keys(t);
|
|
@@ -56365,9 +56359,9 @@
|
|
|
56365
56359
|
}, eu = function(t) {
|
|
56366
56360
|
var r = t.name;
|
|
56367
56361
|
return r === $.InternetExplorer || r === $.Ie;
|
|
56368
|
-
}, ef = function(t) {
|
|
56369
|
-
return t.name === $.MIUI;
|
|
56370
56362
|
}, ep = function(t) {
|
|
56363
|
+
return t.name === $.MIUI;
|
|
56364
|
+
}, ef = function(t) {
|
|
56371
56365
|
return t.name === $.SamsungBrowser;
|
|
56372
56366
|
}, eh = function(t) {
|
|
56373
56367
|
return M(t.version);
|
|
@@ -56440,13 +56434,13 @@
|
|
|
56440
56434
|
isLegacyEdge: ea(n) && !ek(s),
|
|
56441
56435
|
isWindows: K(i),
|
|
56442
56436
|
isMacOs: Y(i),
|
|
56443
|
-
isMIUI:
|
|
56444
|
-
isSamsungBrowser:
|
|
56437
|
+
isMIUI: ep(n),
|
|
56438
|
+
isSamsungBrowser: ef(n)
|
|
56445
56439
|
};
|
|
56446
56440
|
}
|
|
56447
|
-
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 =
|
|
56441
|
+
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);
|
|
56448
56442
|
function ta(t) {
|
|
56449
|
-
return
|
|
56443
|
+
return f(t || window.navigator.userAgent);
|
|
56450
56444
|
}
|
|
56451
56445
|
return nP.AndroidView = function(r) {
|
|
56452
56446
|
var n = r.renderWithFragment, i = r.children, a = y(r, [
|
|
@@ -56530,7 +56524,7 @@
|
|
|
56530
56524
|
]);
|
|
56531
56525
|
return eF ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
|
|
56532
56526
|
}, nP.browserName = eZ, nP.browserVersion = eG, nP.deviceDetect = function(t) {
|
|
56533
|
-
var r, o, n, i, a, s, c, l, d, u,
|
|
56527
|
+
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;
|
|
56534
56528
|
if (I) {
|
|
56535
56529
|
return r = I, o = E, n = T, i = D, a = $, {
|
|
56536
56530
|
isBrowser: r,
|
|
@@ -56555,10 +56549,10 @@
|
|
|
56555
56549
|
};
|
|
56556
56550
|
}
|
|
56557
56551
|
if (N) {
|
|
56558
|
-
return u = N,
|
|
56552
|
+
return u = N, p = T, m = D, g = $, {
|
|
56559
56553
|
isConsole: u,
|
|
56560
|
-
engineName: M(
|
|
56561
|
-
engineVersion: M(
|
|
56554
|
+
engineName: M(p.name),
|
|
56555
|
+
engineVersion: M(p.version),
|
|
56562
56556
|
osName: M(m.name),
|
|
56563
56557
|
osVersion: M(m.version),
|
|
56564
56558
|
userAgent: M(g)
|
|
@@ -56589,7 +56583,7 @@
|
|
|
56589
56583
|
}
|
|
56590
56584
|
}, nP.deviceType = e1, nP.engineName = eJ, nP.engineVersion = e3, nP.fullBrowserVersion = eH, nP.getSelectorsByUserAgent = function(t) {
|
|
56591
56585
|
if (!t || "string" != typeof t) return void console.error("No valid user agent string was provided");
|
|
56592
|
-
var r =
|
|
56586
|
+
var r = f(t);
|
|
56593
56587
|
return eP({
|
|
56594
56588
|
device: r.device,
|
|
56595
56589
|
browser: r.browser,
|
|
@@ -56597,8 +56591,8 @@
|
|
|
56597
56591
|
engine: r.engine,
|
|
56598
56592
|
ua: r.ua
|
|
56599
56593
|
});
|
|
56600
|
-
}, 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 =
|
|
56601
|
-
return
|
|
56594
|
+
}, 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) {
|
|
56595
|
+
return p(t);
|
|
56602
56596
|
}, nP.useDeviceData = ta, nP.useDeviceSelectors = function(t) {
|
|
56603
56597
|
var r = ta(t || window.navigator.userAgent);
|
|
56604
56598
|
return [
|
|
@@ -56804,7 +56798,7 @@
|
|
|
56804
56798
|
var nM = oX(function() {
|
|
56805
56799
|
if (tW) return tV;
|
|
56806
56800
|
tW = 1;
|
|
56807
|
-
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,
|
|
56801
|
+
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() {
|
|
56808
56802
|
return l.Date.now();
|
|
56809
56803
|
};
|
|
56810
56804
|
function h(t) {
|
|
@@ -56820,8 +56814,8 @@
|
|
|
56820
56814
|
}
|
|
56821
56815
|
if ("string" != typeof s) return 0 === s ? s : +s;
|
|
56822
56816
|
s = s.replace(r, "");
|
|
56823
|
-
var
|
|
56824
|
-
return
|
|
56817
|
+
var p = n.test(s);
|
|
56818
|
+
return p || i.test(s) ? a(s.slice(2), p ? 2 : 8) : o.test(s) ? t : +s;
|
|
56825
56819
|
}
|
|
56826
56820
|
return tV = function(t, r, o) {
|
|
56827
56821
|
var n, i, a, s, c, l, d = 0, g = !1, b = !1, v = !0;
|
|
@@ -56836,15 +56830,15 @@
|
|
|
56836
56830
|
return void 0 === l || o >= r || o < 0 || b && n >= a;
|
|
56837
56831
|
}
|
|
56838
56832
|
function y() {
|
|
56839
|
-
var t, o, n, i, s =
|
|
56833
|
+
var t, o, n, i, s = f();
|
|
56840
56834
|
if (k(s)) return C(s);
|
|
56841
|
-
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ?
|
|
56835
|
+
c = setTimeout(y, (o = (t = s) - l, n = t - d, i = r - o, b ? p(i, a - n) : i));
|
|
56842
56836
|
}
|
|
56843
56837
|
function C(t) {
|
|
56844
56838
|
return (c = void 0, v && n) ? w(t) : (n = i = void 0, s);
|
|
56845
56839
|
}
|
|
56846
56840
|
function B() {
|
|
56847
|
-
var t, o =
|
|
56841
|
+
var t, o = f(), a = k(o);
|
|
56848
56842
|
if (n = arguments, i = this, l = o, a) {
|
|
56849
56843
|
if (void 0 === c) {
|
|
56850
56844
|
return d = t = l, c = setTimeout(y, r), g ? w(t) : s;
|
|
@@ -56856,7 +56850,7 @@
|
|
|
56856
56850
|
return B.cancel = function() {
|
|
56857
56851
|
void 0 !== c && clearTimeout(c), d = 0, n = l = i = c = void 0;
|
|
56858
56852
|
}, B.flush = function() {
|
|
56859
|
-
return void 0 === c ? s : C(
|
|
56853
|
+
return void 0 === c ? s : C(f());
|
|
56860
56854
|
}, B;
|
|
56861
56855
|
};
|
|
56862
56856
|
}()), nA = {
|
|
@@ -56867,11 +56861,11 @@
|
|
|
56867
56861
|
var t = tq ? nA.exports : (tq = 1, nA.exports = function() {
|
|
56868
56862
|
if (tU) return nR;
|
|
56869
56863
|
tU = 1;
|
|
56870
|
-
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,
|
|
56864
|
+
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;
|
|
56871
56865
|
function k(t) {
|
|
56872
56866
|
if ("object" == typeof t && null !== t) {
|
|
56873
|
-
var
|
|
56874
|
-
switch(
|
|
56867
|
+
var f = t.$$typeof;
|
|
56868
|
+
switch(f){
|
|
56875
56869
|
case r:
|
|
56876
56870
|
switch(t = t.type){
|
|
56877
56871
|
case l:
|
|
@@ -56879,7 +56873,7 @@
|
|
|
56879
56873
|
case n:
|
|
56880
56874
|
case a:
|
|
56881
56875
|
case i:
|
|
56882
|
-
case
|
|
56876
|
+
case p:
|
|
56883
56877
|
return t;
|
|
56884
56878
|
default:
|
|
56885
56879
|
switch(t = t && t.$$typeof){
|
|
@@ -56890,18 +56884,18 @@
|
|
|
56890
56884
|
case s:
|
|
56891
56885
|
return t;
|
|
56892
56886
|
default:
|
|
56893
|
-
return
|
|
56887
|
+
return f;
|
|
56894
56888
|
}
|
|
56895
56889
|
}
|
|
56896
56890
|
case o:
|
|
56897
|
-
return
|
|
56891
|
+
return f;
|
|
56898
56892
|
}
|
|
56899
56893
|
}
|
|
56900
56894
|
}
|
|
56901
56895
|
function y(t) {
|
|
56902
56896
|
return k(t) === d;
|
|
56903
56897
|
}
|
|
56904
|
-
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 =
|
|
56898
|
+
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) {
|
|
56905
56899
|
return y(t) || k(t) === l;
|
|
56906
56900
|
}, nR.isConcurrentMode = y, nR.isContextConsumer = function(t) {
|
|
56907
56901
|
return k(t) === c;
|
|
@@ -56924,9 +56918,9 @@
|
|
|
56924
56918
|
}, nR.isStrictMode = function(t) {
|
|
56925
56919
|
return k(t) === i;
|
|
56926
56920
|
}, nR.isSuspense = function(t) {
|
|
56927
|
-
return k(t) ===
|
|
56921
|
+
return k(t) === p;
|
|
56928
56922
|
}, nR.isValidElementType = function(t) {
|
|
56929
|
-
return "string" == typeof t || "function" == typeof t || t === n || t === d || t === a || t === i || t ===
|
|
56923
|
+
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);
|
|
56930
56924
|
}, nR.typeOf = k, nR;
|
|
56931
56925
|
}(), nA.exports), r = {
|
|
56932
56926
|
childContextTypes: !0,
|
|
@@ -56966,12 +56960,12 @@
|
|
|
56966
56960
|
displayName: !0,
|
|
56967
56961
|
propTypes: !0
|
|
56968
56962
|
}, i[t.Memo] = n;
|
|
56969
|
-
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf,
|
|
56963
|
+
var s = Object.defineProperty, c = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, u = Object.getPrototypeOf, p = Object.prototype;
|
|
56970
56964
|
return tQ = function t(r, n, i) {
|
|
56971
56965
|
if ("string" != typeof n) {
|
|
56972
|
-
if (
|
|
56973
|
-
var
|
|
56974
|
-
|
|
56966
|
+
if (p) {
|
|
56967
|
+
var f = u(n);
|
|
56968
|
+
f && f !== p && t(r, f, i);
|
|
56975
56969
|
}
|
|
56976
56970
|
var h = c(n);
|
|
56977
56971
|
l && (h = h.concat(l(n)));
|
|
@@ -57128,7 +57122,7 @@
|
|
|
57128
57122
|
else console.warn("Flashlight is not supported or not initialized.");
|
|
57129
57123
|
}, [
|
|
57130
57124
|
c
|
|
57131
|
-
]),
|
|
57125
|
+
]), p = reactExports.useCallback(async ()=>{
|
|
57132
57126
|
if (c && c.isSupported()) try {
|
|
57133
57127
|
await c.turnOff(), d.current = !1;
|
|
57134
57128
|
} catch (t) {
|
|
@@ -57136,15 +57130,15 @@
|
|
|
57136
57130
|
}
|
|
57137
57131
|
}, [
|
|
57138
57132
|
c
|
|
57139
|
-
]),
|
|
57133
|
+
]), f = React.useMemo(()=>({
|
|
57140
57134
|
turnOnFlashlight: u,
|
|
57141
|
-
turnOffFlashlight:
|
|
57135
|
+
turnOffFlashlight: p
|
|
57142
57136
|
}), [
|
|
57143
57137
|
u,
|
|
57144
|
-
|
|
57138
|
+
p
|
|
57145
57139
|
]);
|
|
57146
57140
|
return oZ.jsx(nU.Provider, {
|
|
57147
|
-
value:
|
|
57141
|
+
value: f,
|
|
57148
57142
|
children: s
|
|
57149
57143
|
});
|
|
57150
57144
|
}, { Errors: nQ } = ra$1, nX = dt$1.div`
|
|
@@ -57190,7 +57184,7 @@
|
|
|
57190
57184
|
`;
|
|
57191
57185
|
function nJ(r) {
|
|
57192
57186
|
var s, c;
|
|
57193
|
-
let l, { checkCameraMode: d, frontCamera: u, onClose:
|
|
57187
|
+
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)=>{
|
|
57194
57188
|
B && B(t);
|
|
57195
57189
|
}, [
|
|
57196
57190
|
B
|
|
@@ -57266,8 +57260,8 @@
|
|
|
57266
57260
|
},
|
|
57267
57261
|
...o
|
|
57268
57262
|
}
|
|
57269
|
-
},
|
|
57270
|
-
if (await U(), q(), !
|
|
57263
|
+
}, p = await navigator.mediaDevices.getUserMedia(n);
|
|
57264
|
+
if (await U(), q(), !p) return O(z("not_supported")), V(nQ.not_supported), null;
|
|
57271
57265
|
a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? $({
|
|
57272
57266
|
tag: "cam_permission",
|
|
57273
57267
|
event: "user_activity.cam",
|
|
@@ -57280,13 +57274,13 @@
|
|
|
57280
57274
|
log: {}
|
|
57281
57275
|
});
|
|
57282
57276
|
try {
|
|
57283
|
-
let t =
|
|
57284
|
-
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
|
|
57285
|
-
let t =
|
|
57277
|
+
let t = p.getVideoTracks()[0].getSettings();
|
|
57278
|
+
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) {
|
|
57279
|
+
let t = p.getVideoTracks()[0].getCapabilities();
|
|
57286
57280
|
h7.addExifData("device_info.camera_capabilities", JSON.stringify(t));
|
|
57287
57281
|
}
|
|
57288
57282
|
} catch (t) {}
|
|
57289
|
-
return
|
|
57283
|
+
return p;
|
|
57290
57284
|
} catch (t) {
|
|
57291
57285
|
a(performance.now(), "end"), "NotAllowedError" === t.name ? (O(z("no_permission")), V(nQ.no_permission), A.current = !0, $({
|
|
57292
57286
|
tag: "cam_permission",
|
|
@@ -57397,13 +57391,13 @@
|
|
|
57397
57391
|
z
|
|
57398
57392
|
]);
|
|
57399
57393
|
let H = reactExports.useCallback(()=>{
|
|
57400
|
-
W(),
|
|
57394
|
+
W(), p && p(), $({
|
|
57401
57395
|
tag: "result",
|
|
57402
57396
|
event: "user_activity.cancel",
|
|
57403
57397
|
log: {}
|
|
57404
57398
|
});
|
|
57405
57399
|
}, [
|
|
57406
|
-
|
|
57400
|
+
p,
|
|
57407
57401
|
W,
|
|
57408
57402
|
$
|
|
57409
57403
|
]);
|
|
@@ -57466,7 +57460,7 @@
|
|
|
57466
57460
|
className: x,
|
|
57467
57461
|
scale: P
|
|
57468
57462
|
}),
|
|
57469
|
-
|
|
57463
|
+
f,
|
|
57470
57464
|
_ ? /*#__PURE__*/ React.cloneElement(_, {
|
|
57471
57465
|
onClick: H,
|
|
57472
57466
|
"data-testid": "close-camera"
|
|
@@ -57666,32 +57660,32 @@
|
|
|
57666
57660
|
"left center",
|
|
57667
57661
|
"left bottom"
|
|
57668
57662
|
], io = function(t, r, o, n, i) {
|
|
57669
|
-
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,
|
|
57663
|
+
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%";
|
|
57670
57664
|
switch(l[0]){
|
|
57671
57665
|
case "top":
|
|
57672
|
-
h -=
|
|
57666
|
+
h -= p / 2 + t.height / 2 + c, g = "rotate(180deg) translateX(50%)", b = "100%", v = "50%";
|
|
57673
57667
|
break;
|
|
57674
57668
|
case "bottom":
|
|
57675
|
-
h +=
|
|
57669
|
+
h += p / 2 + t.height / 2 + c, g = "rotate(0deg) translateY(-100%) translateX(-50%)", v = "50%";
|
|
57676
57670
|
break;
|
|
57677
57671
|
case "left":
|
|
57678
|
-
m -=
|
|
57672
|
+
m -= f / 2 + t.width / 2 + c, g = " rotate(90deg) translateY(50%) translateX(-25%)", v = "100%", b = "50%";
|
|
57679
57673
|
break;
|
|
57680
57674
|
case "right":
|
|
57681
|
-
m +=
|
|
57675
|
+
m += f / 2 + t.width / 2 + c, g = "rotate(-90deg) translateY(-150%) translateX(25%)", b = "50%";
|
|
57682
57676
|
}
|
|
57683
57677
|
switch(l[1]){
|
|
57684
57678
|
case "top":
|
|
57685
57679
|
h = t.top, b = t.height / 2 + "px";
|
|
57686
57680
|
break;
|
|
57687
57681
|
case "bottom":
|
|
57688
|
-
h = t.top -
|
|
57682
|
+
h = t.top - p + t.height, b = p - t.height / 2 + "px";
|
|
57689
57683
|
break;
|
|
57690
57684
|
case "left":
|
|
57691
57685
|
m = t.left, v = t.width / 2 + "px";
|
|
57692
57686
|
break;
|
|
57693
57687
|
case "right":
|
|
57694
|
-
m = t.left -
|
|
57688
|
+
m = t.left - f + t.width, v = f - t.width / 2 + "px";
|
|
57695
57689
|
}
|
|
57696
57690
|
return h = "top" === l[0] ? h - s : h + s, {
|
|
57697
57691
|
top: h,
|
|
@@ -57719,12 +57713,12 @@
|
|
|
57719
57713
|
left: 0,
|
|
57720
57714
|
top: 0,
|
|
57721
57715
|
transform: "rotate(135deg)"
|
|
57722
|
-
}, d = 0, u = ii(a),
|
|
57716
|
+
}, d = 0, u = ii(a), p = Array.isArray(o) ? o : [
|
|
57723
57717
|
o
|
|
57724
57718
|
];
|
|
57725
|
-
for((a || Array.isArray(o)) && (
|
|
57726
|
-
var
|
|
57727
|
-
top: (l = io(t, r,
|
|
57719
|
+
for((a || Array.isArray(o)) && (p = [].concat(p, ir)); d < p.length;){
|
|
57720
|
+
var f = {
|
|
57721
|
+
top: (l = io(t, r, p[d], n, {
|
|
57728
57722
|
offsetX: s,
|
|
57729
57723
|
offsetY: c
|
|
57730
57724
|
})).top,
|
|
@@ -57732,7 +57726,7 @@
|
|
|
57732
57726
|
width: r.width,
|
|
57733
57727
|
height: r.height
|
|
57734
57728
|
};
|
|
57735
|
-
if (
|
|
57729
|
+
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++;
|
|
57736
57730
|
else break;
|
|
57737
57731
|
}
|
|
57738
57732
|
return l;
|
|
@@ -57740,7 +57734,7 @@
|
|
|
57740
57734
|
var t = document.getElementById("popup-root");
|
|
57741
57735
|
return null === t && ((t = document.createElement("div")).setAttribute("id", "popup-root"), document.body.appendChild(t)), t;
|
|
57742
57736
|
}, il = /*#__PURE__*/ reactExports.forwardRef(function(r, a) {
|
|
57743
|
-
var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l,
|
|
57737
|
+
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 ? [
|
|
57744
57738
|
"click"
|
|
57745
57739
|
] : 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);
|
|
57746
57740
|
n7(function() {
|
|
@@ -57762,16 +57756,16 @@
|
|
|
57762
57756
|
}, eu = function(t) {
|
|
57763
57757
|
var r;
|
|
57764
57758
|
et && !v && (er(!1), ec && (null == (r = ea.current) || r.focus()), setTimeout(function() {
|
|
57765
|
-
return
|
|
57759
|
+
return f(t);
|
|
57766
57760
|
}, 0));
|
|
57767
|
-
}, ef = function(t) {
|
|
57768
|
-
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57769
57761
|
}, ep = function(t) {
|
|
57762
|
+
null == t || t.stopPropagation(), et ? eu(t) : ed(t);
|
|
57763
|
+
}, ef = function(t) {
|
|
57770
57764
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57771
57765
|
return ed(t);
|
|
57772
57766
|
}, X);
|
|
57773
57767
|
}, eh = function(t) {
|
|
57774
|
-
null == t || t.preventDefault(),
|
|
57768
|
+
null == t || t.preventDefault(), ep();
|
|
57775
57769
|
}, em = function(t) {
|
|
57776
57770
|
clearTimeout(el.current), el.current = setTimeout(function() {
|
|
57777
57771
|
return eu(t);
|
|
@@ -57793,7 +57787,7 @@
|
|
|
57793
57787
|
eu();
|
|
57794
57788
|
},
|
|
57795
57789
|
toggle: function() {
|
|
57796
|
-
|
|
57790
|
+
ep();
|
|
57797
57791
|
}
|
|
57798
57792
|
};
|
|
57799
57793
|
});
|
|
@@ -57827,7 +57821,7 @@
|
|
|
57827
57821
|
t.stopPropagation();
|
|
57828
57822
|
}
|
|
57829
57823
|
};
|
|
57830
|
-
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter =
|
|
57824
|
+
return !R && P.indexOf("hover") >= 0 && (r.onMouseEnter = ef, r.onMouseLeave = em), r;
|
|
57831
57825
|
}, ey = function() {
|
|
57832
57826
|
return /*#__PURE__*/ React.createElement("div", Object.assign({}, ek(), {
|
|
57833
57827
|
key: "C",
|
|
@@ -57874,16 +57868,16 @@
|
|
|
57874
57868
|
P
|
|
57875
57869
|
], n = 0, i = o.length; n < i; n++)switch(o[n]){
|
|
57876
57870
|
case "click":
|
|
57877
|
-
r.onClick =
|
|
57871
|
+
r.onClick = ep;
|
|
57878
57872
|
break;
|
|
57879
57873
|
case "right-click":
|
|
57880
57874
|
r.onContextMenu = eh;
|
|
57881
57875
|
break;
|
|
57882
57876
|
case "hover":
|
|
57883
|
-
r.onMouseEnter =
|
|
57877
|
+
r.onMouseEnter = ef, r.onMouseLeave = em;
|
|
57884
57878
|
break;
|
|
57885
57879
|
case "focus":
|
|
57886
|
-
r.onFocus =
|
|
57880
|
+
r.onFocus = ef, r.onBlur = em;
|
|
57887
57881
|
}
|
|
57888
57882
|
if ("function" == typeof c) {
|
|
57889
57883
|
var a = c(et);
|
|
@@ -58149,8 +58143,8 @@
|
|
|
58149
58143
|
}
|
|
58150
58144
|
}
|
|
58151
58145
|
}, im = "default", ig = "error";
|
|
58152
|
-
function ib({ className: t, width: r, height: o, type: n, strokeStyles: i, strokeWidth: a, radius: s, paddingStyle: c, defaultRectStyles: l, errorRectStyles: d }) {
|
|
58153
|
-
let
|
|
58146
|
+
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 }) {
|
|
58147
|
+
let f = reactExports.useMemo(()=>({
|
|
58154
58148
|
[im]: l,
|
|
58155
58149
|
[ig]: d,
|
|
58156
58150
|
...i
|
|
@@ -58158,7 +58152,7 @@
|
|
|
58158
58152
|
l,
|
|
58159
58153
|
d,
|
|
58160
58154
|
i
|
|
58161
|
-
]),
|
|
58155
|
+
]), h = s + a * u, m = f[n];
|
|
58162
58156
|
return oZ.jsxs("svg", {
|
|
58163
58157
|
width: r,
|
|
58164
58158
|
height: o,
|
|
@@ -58171,22 +58165,22 @@
|
|
|
58171
58165
|
ry: s,
|
|
58172
58166
|
width: r - a,
|
|
58173
58167
|
height: o - a,
|
|
58174
|
-
style:
|
|
58168
|
+
style: m
|
|
58175
58169
|
}),
|
|
58176
58170
|
oZ.jsx("path", {
|
|
58177
|
-
d: `M0,${
|
|
58171
|
+
d: `M0,${h} Q0,0 ${h},0 L0,0 Z`,
|
|
58178
58172
|
style: c
|
|
58179
58173
|
}),
|
|
58180
58174
|
oZ.jsx("path", {
|
|
58181
|
-
d: `M0,${o -
|
|
58175
|
+
d: `M0,${o - h} Q0,${o} ${h},${o} L0,${o} Z`,
|
|
58182
58176
|
style: c
|
|
58183
58177
|
}),
|
|
58184
58178
|
oZ.jsx("path", {
|
|
58185
|
-
d: `M${r -
|
|
58179
|
+
d: `M${r - h},${o} Q${r},${o} ${r},${o - h} L${r},${o} Z`,
|
|
58186
58180
|
style: c
|
|
58187
58181
|
}),
|
|
58188
58182
|
oZ.jsx("path", {
|
|
58189
|
-
d: `M${r -
|
|
58183
|
+
d: `M${r - h},0 Q${r},0 ${r},${h} L${r},0 Z`,
|
|
58190
58184
|
style: c
|
|
58191
58185
|
})
|
|
58192
58186
|
]
|
|
@@ -58205,7 +58199,8 @@
|
|
|
58205
58199
|
radius: PropTypes.number,
|
|
58206
58200
|
paddingStyle: PropTypes.shape({}),
|
|
58207
58201
|
defaultRectStyles: PropTypes.shape({}),
|
|
58208
|
-
errorRectStyles: PropTypes.shape({})
|
|
58202
|
+
errorRectStyles: PropTypes.shape({}),
|
|
58203
|
+
paddingCornerMultiplier: PropTypes.number
|
|
58209
58204
|
}, ib.defaultProps = {
|
|
58210
58205
|
className: "",
|
|
58211
58206
|
width: ih.IDCapturing.rectangleMask.width,
|
|
@@ -58216,7 +58211,8 @@
|
|
|
58216
58211
|
radius: ih.IDCapturing.rectangleMask.radius,
|
|
58217
58212
|
paddingStyle: ih.IDCapturing.rectangleMask.paddingStyle,
|
|
58218
58213
|
defaultRectStyles: ih.IDCapturing.rectangleMask.default,
|
|
58219
|
-
errorRectStyles: ih.IDCapturing.rectangleMask.error
|
|
58214
|
+
errorRectStyles: ih.IDCapturing.rectangleMask.error,
|
|
58215
|
+
paddingCornerMultiplier: 1.5
|
|
58220
58216
|
};
|
|
58221
58217
|
let iv = mt$1`
|
|
58222
58218
|
from {
|
|
@@ -58375,8 +58371,8 @@
|
|
|
58375
58371
|
if (o && !a || !o && !s) return null;
|
|
58376
58372
|
let { width: c, height: l } = r, d = document.createElement("canvas"), u = document.createElement("canvas");
|
|
58377
58373
|
d.width = c / 2, u.width = c / 2, d.height = l, u.height = l;
|
|
58378
|
-
let
|
|
58379
|
-
|
|
58374
|
+
let p = d.getContext("2d"), f = u.getContext("2d");
|
|
58375
|
+
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);
|
|
58380
58376
|
let [h, m] = await Promise.all([
|
|
58381
58377
|
fb.getModelPredictions({
|
|
58382
58378
|
model: t,
|
|
@@ -58417,13 +58413,13 @@
|
|
|
58417
58413
|
return i;
|
|
58418
58414
|
}, iz = (t, r)=>parseFloat(t.toFixed(r)), iV = ({ currentFrameBlurScore: t, incomingFrameBlurScore: r, currentFrameGlareScore: o, incomingFrameGlareScore: n, settings: i, blurLargeThreshold: a, blurSmallThreshold: s })=>{
|
|
58419
58415
|
if (null === t) return !0;
|
|
58420
|
-
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large,
|
|
58421
|
-
return (!c || !(
|
|
58416
|
+
let { enableBlurCheck: c, enableGlareCheck: l } = i, d = t?.small, u = t?.large, p = r?.small, f = r?.large;
|
|
58417
|
+
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);
|
|
58422
58418
|
};
|
|
58423
58419
|
function iW(t, r, o, n, i) {
|
|
58424
58420
|
o && (o.strokeStyle = r, o.lineWidth = 2, t.forEach((t)=>{
|
|
58425
|
-
let [r, a, s, c] = t, l = (r + i.x) * n, d = (a + i.y) * n, u = (s + i.x) * n,
|
|
58426
|
-
o.strokeRect(l, d, u - l,
|
|
58421
|
+
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;
|
|
58422
|
+
o.strokeRect(l, d, u - l, p - d);
|
|
58427
58423
|
}));
|
|
58428
58424
|
}
|
|
58429
58425
|
function iU(t) {
|
|
@@ -59229,14 +59225,14 @@
|
|
|
59229
59225
|
_drawToCanvas(t, r, o, n, i, a) {
|
|
59230
59226
|
if (this._animationFrameId && cancelAnimationFrame(this._animationFrameId), !t || !a || this._stopDrawing) return;
|
|
59231
59227
|
this._lastFrameTime = 0;
|
|
59232
|
-
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i,
|
|
59228
|
+
let { cropX: s, cropY: c, cropWidth: l, cropHeight: d } = a, u = 1e3 / i, p = (i)=>{
|
|
59233
59229
|
if (this._stopDrawing) {
|
|
59234
59230
|
this._animationFrameId = null;
|
|
59235
59231
|
return;
|
|
59236
59232
|
}
|
|
59237
|
-
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(
|
|
59233
|
+
i - this._lastFrameTime >= u && (this._lastFrameTime = i, t.drawImage(r, s, c, l, d, 0, 0, o, n)), this._animationFrameId = requestAnimationFrame(p);
|
|
59238
59234
|
};
|
|
59239
|
-
this._animationFrameId = requestAnimationFrame(
|
|
59235
|
+
this._animationFrameId = requestAnimationFrame(p);
|
|
59240
59236
|
}
|
|
59241
59237
|
stopDrawing() {
|
|
59242
59238
|
this._stopDrawing = !0, this._animationFrameId && (cancelAnimationFrame(this._animationFrameId), this._animationFrameId = null);
|
|
@@ -59246,10 +59242,10 @@
|
|
|
59246
59242
|
this.clearVideoChunks(), this._stopDrawing = !1;
|
|
59247
59243
|
let { videoFrameWidth: a, videoFrameHeight: s, videoBitrate: c, fps: l } = o, d = l || this.DEFAULT_VIDEO_FPS, u = r.cropWidth / r.cropHeight;
|
|
59248
59244
|
aE(a) ? (n = a, i = a / u) : aE(s) ? (n = s * u, i = s) : (n = 400, i = 800);
|
|
59249
|
-
let
|
|
59250
|
-
|
|
59251
|
-
let
|
|
59252
|
-
if (!
|
|
59245
|
+
let p = document.createElement("canvas");
|
|
59246
|
+
p.width = n, p.height = i;
|
|
59247
|
+
let f = p.getContext("2d");
|
|
59248
|
+
if (!f) return console.error("Could not get canvas context."), {
|
|
59253
59249
|
mediaRecorder: null
|
|
59254
59250
|
};
|
|
59255
59251
|
try {
|
|
@@ -59257,7 +59253,7 @@
|
|
|
59257
59253
|
mimeType: "video/webm",
|
|
59258
59254
|
videoBitsPerSecond: c
|
|
59259
59255
|
}, i = nT.isIOS ? "video/mp4" : "video/webm";
|
|
59260
|
-
if (MediaRecorder.isTypeSupported(i) && (this._stream && this._stream.getTracks().forEach((t)=>t.stop()), this._stopDrawing = !1, this._drawToCanvas(
|
|
59256
|
+
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 = {
|
|
59261
59257
|
mimeType: i,
|
|
59262
59258
|
videoBitsPerSecond: Math.min(c, this.MAX_VIDEO_BITRATE)
|
|
59263
59259
|
}), !this._stream) throw Error("Failed to create a media stream for recording.");
|
|
@@ -59312,7 +59308,7 @@
|
|
|
59312
59308
|
}
|
|
59313
59309
|
}, [
|
|
59314
59310
|
i
|
|
59315
|
-
]),
|
|
59311
|
+
]), f = reactExports.useCallback(()=>{
|
|
59316
59312
|
if (s.current && r.current) try {
|
|
59317
59313
|
s.current.discardRecording(), r.current = !1;
|
|
59318
59314
|
} catch (t) {
|
|
@@ -59321,19 +59317,19 @@
|
|
|
59321
59317
|
}, []);
|
|
59322
59318
|
return reactExports.useEffect(()=>{
|
|
59323
59319
|
let t = ()=>{
|
|
59324
|
-
"hidden" === document.visibilityState ?
|
|
59320
|
+
"hidden" === document.visibilityState ? f() : "visible" === document.visibilityState && c.current && l(c.current);
|
|
59325
59321
|
};
|
|
59326
59322
|
return document.addEventListener("visibilitychange", t), ()=>{
|
|
59327
59323
|
document.removeEventListener("visibilitychange", t);
|
|
59328
59324
|
};
|
|
59329
59325
|
}, [
|
|
59330
59326
|
l,
|
|
59331
|
-
|
|
59327
|
+
f
|
|
59332
59328
|
]), {
|
|
59333
59329
|
startRecording: l,
|
|
59334
59330
|
stopRecording: d,
|
|
59335
59331
|
resetRecording: u,
|
|
59336
|
-
discardRecording:
|
|
59332
|
+
discardRecording: f
|
|
59337
59333
|
};
|
|
59338
59334
|
}, { Errors: a$ } = ra$1, aj = ()=>({
|
|
59339
59335
|
imageBlob: null,
|
|
@@ -59546,22 +59542,22 @@
|
|
|
59546
59542
|
});
|
|
59547
59543
|
}
|
|
59548
59544
|
let aU = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
|
|
59549
|
-
let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo:
|
|
59545
|
+
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")({
|
|
59550
59546
|
theme: T
|
|
59551
|
-
}), 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(()=>{}),
|
|
59547
|
+
}), 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)=>{
|
|
59552
59548
|
null === t ? er("") : er(Y(t?.code, {
|
|
59553
59549
|
side: k ? Y("front") : Y("back")
|
|
59554
59550
|
}));
|
|
59555
59551
|
}, [
|
|
59556
59552
|
Y,
|
|
59557
59553
|
k
|
|
59558
|
-
]),
|
|
59554
|
+
]), ef = reactExports.useCallback(()=>{
|
|
59559
59555
|
ee(""), eu.current();
|
|
59560
59556
|
}, []), eh = reactExports.useCallback((...t)=>{
|
|
59561
59557
|
ee(""), B(...t);
|
|
59562
59558
|
}, [
|
|
59563
59559
|
B
|
|
59564
|
-
]), { 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:
|
|
59560
|
+
]), { 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 })=>{
|
|
59565
59561
|
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(()=>{
|
|
59566
59562
|
Q((t)=>!t);
|
|
59567
59563
|
}, []), { autoCaptureWaitForBestImageTimeMs: H, manualCaptureWaitForBestImageTimeMs: G } = l, Z = q ? H : G;
|
|
@@ -59602,30 +59598,30 @@
|
|
|
59602
59598
|
l.blurLargeThresholdAuto,
|
|
59603
59599
|
l.blurLargeThresholdManual,
|
|
59604
59600
|
l.enableAutoCapture
|
|
59605
|
-
]), { isCapturing: et, refWorkingCanvas: er, stopCheckFrame: eo, checkFrame: en, warmupDone: ei, takePictureManually: ea, refAbleToRunBurstMode: es, refVirtualFrames: ec, refCardCoordinates: el, refBlurScores: ed, refGlareScores: eu, resetState:
|
|
59601
|
+
]), { 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 }) {
|
|
59606
59602
|
let C = reactExports.useRef(null);
|
|
59607
59603
|
null === C.current && (C.current = document.createElement("canvas"));
|
|
59608
|
-
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 } =
|
|
59609
|
-
videoFrameWidth:
|
|
59610
|
-
videoFrameHeight:
|
|
59611
|
-
videoBitrate:
|
|
59612
|
-
fps:
|
|
59604
|
+
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(()=>({
|
|
59605
|
+
videoFrameWidth: f.recordVideoFrameWidth,
|
|
59606
|
+
videoFrameHeight: f.recordVideoFrameHeight,
|
|
59607
|
+
videoBitrate: f.recordVideoBitrate,
|
|
59608
|
+
fps: f.recordVideoFps
|
|
59613
59609
|
}), [
|
|
59614
|
-
|
|
59615
|
-
|
|
59616
|
-
|
|
59617
|
-
|
|
59610
|
+
f.recordVideoBitrate,
|
|
59611
|
+
f.recordVideoFps,
|
|
59612
|
+
f.recordVideoFrameHeight,
|
|
59613
|
+
f.recordVideoFrameWidth
|
|
59618
59614
|
]), { startRecording: er, stopRecording: eo, resetRecording: en } = aD({
|
|
59619
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59615
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordCapturingFront : f.enableRecordCapturingBack, [
|
|
59620
59616
|
g,
|
|
59621
|
-
|
|
59622
|
-
|
|
59617
|
+
f.enableRecordCapturingBack,
|
|
59618
|
+
f.enableRecordCapturingFront
|
|
59623
59619
|
])
|
|
59624
59620
|
}), { startRecording: ei, stopRecording: ea, resetRecording: es } = aD({
|
|
59625
|
-
shouldRecord: reactExports.useMemo(()=>g ?
|
|
59621
|
+
shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordFullSessionFront : f.enableRecordFullSessionBack, [
|
|
59626
59622
|
g,
|
|
59627
|
-
|
|
59628
|
-
|
|
59623
|
+
f.enableRecordFullSessionBack,
|
|
59624
|
+
f.enableRecordFullSessionFront
|
|
59629
59625
|
])
|
|
59630
59626
|
}), { turnOnFlashlight: ec, turnOffFlashlight: el } = (()=>{
|
|
59631
59627
|
let t = reactExports.useContext(nU);
|
|
@@ -59639,8 +59635,8 @@
|
|
|
59639
59635
|
]), reactExports.useEffect(()=>{
|
|
59640
59636
|
let t = !1;
|
|
59641
59637
|
return async function r() {
|
|
59642
|
-
if (
|
|
59643
|
-
if (
|
|
59638
|
+
if (f && !I) {
|
|
59639
|
+
if (f.enableIdDetection) {
|
|
59644
59640
|
let t = ((t, r)=>{
|
|
59645
59641
|
if (0 === t.length) return {
|
|
59646
59642
|
isValid: !1
|
|
@@ -59661,7 +59657,7 @@
|
|
|
59661
59657
|
} : {
|
|
59662
59658
|
isValid: !1
|
|
59663
59659
|
};
|
|
59664
|
-
})(Z.map((t)=>t.code),
|
|
59660
|
+
})(Z.map((t)=>t.code), f?.cardTypeModelMapping);
|
|
59665
59661
|
if (!t.isValid) {
|
|
59666
59662
|
U(a$.invalid_card_type_config), Q(!1), O(!0);
|
|
59667
59663
|
return;
|
|
@@ -59670,7 +59666,7 @@
|
|
|
59670
59666
|
V.current = await a_({
|
|
59671
59667
|
...W,
|
|
59672
59668
|
idCardModelUrl: r
|
|
59673
|
-
}, t.cardModel), await fY.initTensorFlow(), N.current =
|
|
59669
|
+
}, t.cardModel), await fY.initTensorFlow(), N.current = f.enableBlurCheck && V.current.ableToUseModel, Q(!t.forceOffDetection);
|
|
59674
59670
|
} else Q(!1), N.current = !1;
|
|
59675
59671
|
t || O(!0);
|
|
59676
59672
|
}
|
|
@@ -59679,7 +59675,7 @@
|
|
|
59679
59675
|
};
|
|
59680
59676
|
}, [
|
|
59681
59677
|
I,
|
|
59682
|
-
|
|
59678
|
+
f,
|
|
59683
59679
|
W,
|
|
59684
59680
|
Z,
|
|
59685
59681
|
U
|
|
@@ -59696,13 +59692,13 @@
|
|
|
59696
59692
|
});
|
|
59697
59693
|
}, [
|
|
59698
59694
|
k
|
|
59699
|
-
]),
|
|
59695
|
+
]), ep = reactExports.useCallback(()=>{
|
|
59700
59696
|
Y || (en(), es());
|
|
59701
59697
|
}, [
|
|
59702
59698
|
Y,
|
|
59703
59699
|
en,
|
|
59704
59700
|
es
|
|
59705
|
-
]),
|
|
59701
|
+
]), ef = reactExports.useCallback(async ()=>{
|
|
59706
59702
|
let t = {
|
|
59707
59703
|
capturingVideo: {
|
|
59708
59704
|
blob: null
|
|
@@ -59717,18 +59713,18 @@
|
|
|
59717
59713
|
}, [
|
|
59718
59714
|
eo,
|
|
59719
59715
|
ea
|
|
59720
|
-
]), eh = reactExports.useMemo(()=>g ?
|
|
59716
|
+
]), eh = reactExports.useMemo(()=>g ? f.enableFlashlightFront : f.enableFlashlightBack, [
|
|
59721
59717
|
g,
|
|
59722
|
-
|
|
59723
|
-
|
|
59724
|
-
]), em = reactExports.useMemo(()=>g ?
|
|
59718
|
+
f.enableFlashlightBack,
|
|
59719
|
+
f.enableFlashlightFront
|
|
59720
|
+
]), em = reactExports.useMemo(()=>g ? f.flashlightActivationDelayFront : f.flashlightActivationDelayBack, [
|
|
59725
59721
|
g,
|
|
59726
|
-
|
|
59727
|
-
|
|
59728
|
-
]), eg = reactExports.useMemo(()=>g ?
|
|
59722
|
+
f.flashlightActivationDelayBack,
|
|
59723
|
+
f.flashlightActivationDelayFront
|
|
59724
|
+
]), eg = reactExports.useMemo(()=>g ? f.flashlightDurationFront : f.flashlightDurationBack, [
|
|
59729
59725
|
g,
|
|
59730
|
-
|
|
59731
|
-
|
|
59726
|
+
f.flashlightDurationBack,
|
|
59727
|
+
f.flashlightDurationFront
|
|
59732
59728
|
]), eb = reactExports.useCallback(()=>{
|
|
59733
59729
|
!ed.current && eh && (ed.current = !0, setTimeout(()=>{
|
|
59734
59730
|
ec(eg);
|
|
@@ -59745,9 +59741,9 @@
|
|
|
59745
59741
|
]), ew = reactExports.useCallback(()=>{
|
|
59746
59742
|
!0 === T.current && (T.current = !1);
|
|
59747
59743
|
}, []), ek = reactExports.useCallback(()=>{
|
|
59748
|
-
|
|
59744
|
+
ep(), X.current = [], H.current = [], R.current = null, z.current = !1, ee.current = !1;
|
|
59749
59745
|
}, [
|
|
59750
|
-
|
|
59746
|
+
ep
|
|
59751
59747
|
]), ey = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59752
59748
|
await er({
|
|
59753
59749
|
videoEl: l.current,
|
|
@@ -59760,7 +59756,7 @@
|
|
|
59760
59756
|
incomingFrameBlurScore: t,
|
|
59761
59757
|
currentFrameGlareScore: i.glareScore,
|
|
59762
59758
|
incomingFrameGlareScore: n,
|
|
59763
|
-
settings:
|
|
59759
|
+
settings: f,
|
|
59764
59760
|
blurLargeThreshold: s,
|
|
59765
59761
|
blurSmallThreshold: r
|
|
59766
59762
|
})) {
|
|
@@ -59778,25 +59774,25 @@
|
|
|
59778
59774
|
}
|
|
59779
59775
|
i.takenAt = new Date().getTime(), i.blurScore = t, i.glareScore = n, i.detectedCard = o, i.captureType = "auto";
|
|
59780
59776
|
}
|
|
59781
|
-
|
|
59777
|
+
f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n);
|
|
59782
59778
|
}, [
|
|
59783
59779
|
er,
|
|
59784
59780
|
l,
|
|
59785
59781
|
et,
|
|
59786
59782
|
eb,
|
|
59787
|
-
|
|
59783
|
+
f,
|
|
59788
59784
|
s,
|
|
59789
59785
|
r,
|
|
59790
59786
|
k
|
|
59791
59787
|
]), eC = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n })=>{
|
|
59792
59788
|
F.current = !0;
|
|
59793
59789
|
let i = A.current;
|
|
59794
|
-
if (
|
|
59790
|
+
if (f.enableBlurCheck && X.current.push(t), f.enableGlareCheck && H.current.push(n), iV({
|
|
59795
59791
|
currentFrameBlurScore: i.blurScore,
|
|
59796
59792
|
currentFrameGlareScore: i.glareScore,
|
|
59797
59793
|
incomingFrameBlurScore: t,
|
|
59798
59794
|
incomingFrameGlareScore: n,
|
|
59799
|
-
settings:
|
|
59795
|
+
settings: f,
|
|
59800
59796
|
blurLargeThreshold: s,
|
|
59801
59797
|
blurSmallThreshold: r
|
|
59802
59798
|
})) {
|
|
@@ -59815,19 +59811,19 @@
|
|
|
59815
59811
|
s,
|
|
59816
59812
|
r,
|
|
59817
59813
|
k,
|
|
59818
|
-
|
|
59814
|
+
f
|
|
59819
59815
|
]), eB = reactExports.useCallback(async ()=>{
|
|
59820
|
-
let { autoCaptureWaitForBestImageTimeMs: t } =
|
|
59816
|
+
let { autoCaptureWaitForBestImageTimeMs: t } = f, r = M.current;
|
|
59821
59817
|
if (null !== r.imageBlob && new Date().getTime() - R.current > t) {
|
|
59822
|
-
let t = await
|
|
59818
|
+
let t = await ef();
|
|
59823
59819
|
await ev(), await b({
|
|
59824
59820
|
...r,
|
|
59825
59821
|
...t
|
|
59826
59822
|
}), J(!1), R.current = null;
|
|
59827
59823
|
}
|
|
59828
59824
|
}, [
|
|
59829
|
-
|
|
59830
|
-
|
|
59825
|
+
f,
|
|
59826
|
+
ef,
|
|
59831
59827
|
ev,
|
|
59832
59828
|
b
|
|
59833
59829
|
]), e_ = reactExports.useCallback(()=>{
|
|
@@ -59842,7 +59838,7 @@
|
|
|
59842
59838
|
resultAnalyzeVideoAndWindowSizes: D.current,
|
|
59843
59839
|
recordVideoSettings: et
|
|
59844
59840
|
}), eb(), new Promise((t)=>{
|
|
59845
|
-
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } =
|
|
59841
|
+
let { enableVirtualCamHashes: o, manualCaptureWaitForBestImageTimeMs: n } = f, i = A.current;
|
|
59846
59842
|
if (i.captureTime = Date.now(), N.current) J(!0), e_(), setTimeout(()=>{
|
|
59847
59843
|
ex().then(async ()=>{
|
|
59848
59844
|
await ev(), (i.blurScore?.small <= r || i.blurScore?.large <= s) && (i.error = a$.id_detector_error_blur);
|
|
@@ -59857,7 +59853,7 @@
|
|
|
59857
59853
|
quality: k
|
|
59858
59854
|
}).then(async (n)=>{
|
|
59859
59855
|
i.imageBlob = n, i.captureTime = Date.now(), i.hash = r, o && await eu(i.detectedCard);
|
|
59860
|
-
let a = await
|
|
59856
|
+
let a = await ef();
|
|
59861
59857
|
t({
|
|
59862
59858
|
...i,
|
|
59863
59859
|
...a
|
|
@@ -59865,7 +59861,7 @@
|
|
|
59865
59861
|
});
|
|
59866
59862
|
} else {
|
|
59867
59863
|
o && await eu(i.detectedCard);
|
|
59868
|
-
let r = await
|
|
59864
|
+
let r = await ef();
|
|
59869
59865
|
t({
|
|
59870
59866
|
...i,
|
|
59871
59867
|
...r
|
|
@@ -59892,10 +59888,10 @@
|
|
|
59892
59888
|
l,
|
|
59893
59889
|
et,
|
|
59894
59890
|
eb,
|
|
59895
|
-
|
|
59891
|
+
f,
|
|
59896
59892
|
e_,
|
|
59897
59893
|
ex,
|
|
59898
|
-
|
|
59894
|
+
ef,
|
|
59899
59895
|
ev,
|
|
59900
59896
|
r,
|
|
59901
59897
|
s,
|
|
@@ -59929,10 +59925,10 @@
|
|
|
59929
59925
|
portraitTopLeft: c,
|
|
59930
59926
|
portraitBottomRight: l
|
|
59931
59927
|
};
|
|
59932
|
-
}(t,
|
|
59928
|
+
}(t, f.blurFullFaceImageRatio, r), a = function(t, r) {
|
|
59933
59929
|
let { cv: o } = window;
|
|
59934
59930
|
if (!o) throw Error("Opencv not found!");
|
|
59935
|
-
let { topLeft: n, topRight: i, bottomRight: a, bottomLeft: s, maxWidth: c, maxHeight: l } = r, { portraitTopLeft: d, portraitBottomRight: u } = t,
|
|
59931
|
+
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, [
|
|
59936
59932
|
n.x,
|
|
59937
59933
|
n.y,
|
|
59938
59934
|
i.x,
|
|
@@ -59941,7 +59937,7 @@
|
|
|
59941
59937
|
a.y,
|
|
59942
59938
|
s.x,
|
|
59943
59939
|
s.y
|
|
59944
|
-
]),
|
|
59940
|
+
]), f = o.matFromArray(4, 1, o.CV_32FC2, [
|
|
59945
59941
|
0,
|
|
59946
59942
|
0,
|
|
59947
59943
|
c - 1,
|
|
@@ -59950,7 +59946,7 @@
|
|
|
59950
59946
|
l - 1,
|
|
59951
59947
|
0,
|
|
59952
59948
|
l - 1
|
|
59953
|
-
]), h = o.getPerspectiveTransform(
|
|
59949
|
+
]), h = o.getPerspectiveTransform(p, f), m = (t)=>{
|
|
59954
59950
|
let r = o.matFromArray(1, 1, o.CV_32FC2, [
|
|
59955
59951
|
t[0],
|
|
59956
59952
|
t[1]
|
|
@@ -59964,7 +59960,7 @@
|
|
|
59964
59960
|
Math.max(0, Math.min(i[1] * (ra$1.RESIZE_IMAGE_HEIGHT / l), l))
|
|
59965
59961
|
];
|
|
59966
59962
|
}, g = m(d), b = m(u);
|
|
59967
|
-
return
|
|
59963
|
+
return p.delete(), f.delete(), h.delete(), [
|
|
59968
59964
|
parseInt(g[0], 10),
|
|
59969
59965
|
parseInt(g[1], 10),
|
|
59970
59966
|
parseInt(b[0], 10),
|
|
@@ -60042,9 +60038,9 @@
|
|
|
60042
60038
|
};
|
|
60043
60039
|
}
|
|
60044
60040
|
}, [
|
|
60045
|
-
|
|
60041
|
+
f
|
|
60046
60042
|
]), e$ = reactExports.useCallback(async ({ result: t, workingCanvas: o })=>{
|
|
60047
|
-
let n, i, { cropX: a, cropY: c, cropWidth: d, cropHeight: u, cropWidthWithoutPadding:
|
|
60043
|
+
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 = {
|
|
60048
60044
|
error: null
|
|
60049
60045
|
};
|
|
60050
60046
|
try {
|
|
@@ -60061,12 +60057,12 @@
|
|
|
60061
60057
|
area: c.width * c.height
|
|
60062
60058
|
},
|
|
60063
60059
|
big: {
|
|
60064
|
-
area:
|
|
60060
|
+
area: p * h
|
|
60065
60061
|
}
|
|
60066
60062
|
});
|
|
60067
60063
|
if (l < .5) throw Error("id_detector_card_too_small");
|
|
60068
60064
|
if (l > .95) throw Error("id_detector_error_incomplete");
|
|
60069
|
-
if (k && nn(
|
|
60065
|
+
if (k && nn(f, "enableCardTypeCheck")) {
|
|
60070
60066
|
let r = nn(t, "card.label", ""), { isAllowed: o, cardType: n } = ((t, r)=>{
|
|
60071
60067
|
let o = t.split(".")?.[0];
|
|
60072
60068
|
if (o !== r[0].split(".")?.[0]) return {
|
|
@@ -60140,8 +60136,8 @@
|
|
|
60140
60136
|
smallThreshold: r,
|
|
60141
60137
|
largeThreshold: s
|
|
60142
60138
|
}), u = {
|
|
60143
|
-
small: iz(d?.[0],
|
|
60144
|
-
large: iz(d?.[1],
|
|
60139
|
+
small: iz(d?.[0], f.blurSmallDecimal),
|
|
60140
|
+
large: iz(d?.[1], f.blurLargeDecimal)
|
|
60145
60141
|
};
|
|
60146
60142
|
if (eT.current = {
|
|
60147
60143
|
...eT.current,
|
|
@@ -60157,10 +60153,10 @@
|
|
|
60157
60153
|
}
|
|
60158
60154
|
if (y) {
|
|
60159
60155
|
var I, O, M, A, R, L, F, N;
|
|
60160
|
-
let r, s,
|
|
60156
|
+
let r, s, p, f = nn(t, "card.label"), h = nn(t, "card.corners");
|
|
60161
60157
|
eT.current = {
|
|
60162
60158
|
...eT.current,
|
|
60163
|
-
label:
|
|
60159
|
+
label: f,
|
|
60164
60160
|
corner_size: h?.length
|
|
60165
60161
|
}, p_.drawDebugCanvas(eE.current, eT.current);
|
|
60166
60162
|
let m = i$ / o.width, g = eS.current.getContext("2d");
|
|
@@ -60172,7 +60168,7 @@
|
|
|
60172
60168
|
o.strokeRect(s, c, l - s, d - c);
|
|
60173
60169
|
}(O[0], "black", I, R), s = M.filter((t)=>"small" === t.lapType), s.length > 0 && s.forEach((t)=>{
|
|
60174
60170
|
iW(t.bboxes, "blue", I, R, r);
|
|
60175
|
-
}),
|
|
60171
|
+
}), p = M.filter((t)=>"large" === t.lapType), p.length > 0 && p.forEach((t)=>{
|
|
60176
60172
|
iW(t.bboxes, "green", I, R, r);
|
|
60177
60173
|
}), L = A.map((t)=>t.location), F = I, N = R, F && (F.strokeStyle = "red", F.lineWidth = 2, L.forEach((t)=>{
|
|
60178
60174
|
let r = t.x * N, o = t.y * N;
|
|
@@ -60181,7 +60177,7 @@
|
|
|
60181
60177
|
}
|
|
60182
60178
|
return T;
|
|
60183
60179
|
}, [
|
|
60184
|
-
|
|
60180
|
+
f,
|
|
60185
60181
|
y,
|
|
60186
60182
|
l,
|
|
60187
60183
|
Z,
|
|
@@ -60190,13 +60186,13 @@
|
|
|
60190
60186
|
s,
|
|
60191
60187
|
eD
|
|
60192
60188
|
]), ej = reactExports.useCallback(async ()=>{
|
|
60193
|
-
if (!
|
|
60189
|
+
if (!f || !I || T.current) return;
|
|
60194
60190
|
M.current = aj(), A.current = aI();
|
|
60195
|
-
let { enableVirtualCamHashes: t } =
|
|
60191
|
+
let { enableVirtualCamHashes: t } = f, { idCardModel: r, ableToUseModel: o } = V.current, n = D.current, i = l.current;
|
|
60196
60192
|
T.current = !0;
|
|
60197
60193
|
let { cropX: a, cropY: s, cropWidth: c, cropHeight: d } = n, u = C.current;
|
|
60198
60194
|
u.width = c, u.height = d;
|
|
60199
|
-
let
|
|
60195
|
+
let p = u.getContext("2d"), h = async ()=>{
|
|
60200
60196
|
if (!1 === T.current) return;
|
|
60201
60197
|
await ei({
|
|
60202
60198
|
videoEl: l.current,
|
|
@@ -60204,11 +60200,11 @@
|
|
|
60204
60200
|
recordVideoSettings: et
|
|
60205
60201
|
});
|
|
60206
60202
|
let n = K.current;
|
|
60207
|
-
|
|
60203
|
+
p.drawImage(i, a, s, c, d, 0, 0, c, d);
|
|
60208
60204
|
let g = performance.now();
|
|
60209
60205
|
if (z.current = !1, q && o) {
|
|
60210
60206
|
let o = await r.predict(u);
|
|
60211
|
-
!
|
|
60207
|
+
!f?.trackCardCoordinates || A.current.imageBlob || M.current.imageBlob || E.current.push(((t)=>{
|
|
60212
60208
|
let r = nn(t, "card.corners");
|
|
60213
60209
|
if (r && Array.isArray(r) && r.length > 0) {
|
|
60214
60210
|
let { x: t, y: o } = nn(r, "[0].location");
|
|
@@ -60237,7 +60233,7 @@
|
|
|
60237
60233
|
};
|
|
60238
60234
|
K.current = window.requestAnimationFrame(h);
|
|
60239
60235
|
}, [
|
|
60240
|
-
|
|
60236
|
+
f,
|
|
60241
60237
|
I,
|
|
60242
60238
|
l,
|
|
60243
60239
|
ei,
|
|
@@ -60290,7 +60286,7 @@
|
|
|
60290
60286
|
refBlurScores: X,
|
|
60291
60287
|
refGlareScores: H,
|
|
60292
60288
|
resetState: ek,
|
|
60293
|
-
resetRecordVideo:
|
|
60289
|
+
resetRecordVideo: ep
|
|
60294
60290
|
};
|
|
60295
60291
|
}({
|
|
60296
60292
|
isAutoCapture: q,
|
|
@@ -60308,17 +60304,17 @@
|
|
|
60308
60304
|
});
|
|
60309
60305
|
reactExports.useContext(aO);
|
|
60310
60306
|
let eh = reactExports.useCallback(()=>{
|
|
60311
|
-
|
|
60307
|
+
ef(), eo(), k();
|
|
60312
60308
|
}, [
|
|
60313
60309
|
eo,
|
|
60314
|
-
|
|
60310
|
+
ef,
|
|
60315
60311
|
k
|
|
60316
60312
|
]), { resumeTimer: em, pauseTimer: eg } = ((t)=>{
|
|
60317
|
-
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t,
|
|
60313
|
+
let { interruptible: r = !0, totalTime: i, maxRetriesSettings: s, onAboutToTimeout: c, onTimeout: l, shouldStart: d, onError: u } = t, p = reactExports.useRef(new pT({
|
|
60318
60314
|
totalTime: i,
|
|
60319
60315
|
interruptible: r
|
|
60320
60316
|
}));
|
|
60321
|
-
reactExports.useEffect(()=>
|
|
60317
|
+
reactExports.useEffect(()=>p.current.on("tick", ({ remainTime: t })=>{
|
|
60322
60318
|
t >= 0 && t <= i / 3 && "function" == typeof c && c({
|
|
60323
60319
|
curTimeLeft: t
|
|
60324
60320
|
});
|
|
@@ -60327,24 +60323,24 @@
|
|
|
60327
60323
|
c,
|
|
60328
60324
|
i,
|
|
60329
60325
|
r
|
|
60330
|
-
]), reactExports.useEffect(()=>
|
|
60331
|
-
r &&
|
|
60326
|
+
]), reactExports.useEffect(()=>p.current.on("reset", ({ attemptCount: t })=>{
|
|
60327
|
+
r && p.current.pause(), l(), s?.enable && t >= s?.total && u(ra$1.Errors.max_retry_reached);
|
|
60332
60328
|
}), [
|
|
60333
60329
|
l,
|
|
60334
60330
|
u,
|
|
60335
60331
|
s?.enable,
|
|
60336
60332
|
s?.total,
|
|
60337
60333
|
r
|
|
60338
|
-
]), reactExports.useEffect(()=>d ?
|
|
60334
|
+
]), reactExports.useEffect(()=>d ? p.current.start() : ()=>{}, [
|
|
60339
60335
|
d
|
|
60340
60336
|
]);
|
|
60341
|
-
let
|
|
60342
|
-
|
|
60337
|
+
let f = reactExports.useCallback(()=>{
|
|
60338
|
+
p.current.resume();
|
|
60343
60339
|
}, []);
|
|
60344
60340
|
return {
|
|
60345
|
-
resumeTimer:
|
|
60341
|
+
resumeTimer: f,
|
|
60346
60342
|
pauseTimer: reactExports.useCallback(()=>{
|
|
60347
|
-
|
|
60343
|
+
p.current.pause();
|
|
60348
60344
|
}, [])
|
|
60349
60345
|
};
|
|
60350
60346
|
})({
|
|
@@ -60358,24 +60354,24 @@
|
|
|
60358
60354
|
}), eb = reactExports.useCallback(()=>{
|
|
60359
60355
|
x.current = !1;
|
|
60360
60356
|
}, []), ev = reactExports.useCallback(async ()=>{
|
|
60361
|
-
eb(), em(),
|
|
60357
|
+
eb(), em(), ep(), E(!1), U(u ? "keep_front_id_fit_border" : "keep_back_id_fit_border"), await Promise.all([
|
|
60362
60358
|
en()
|
|
60363
60359
|
]);
|
|
60364
60360
|
}, [
|
|
60365
60361
|
eb,
|
|
60366
|
-
|
|
60362
|
+
ep,
|
|
60367
60363
|
U,
|
|
60368
60364
|
u,
|
|
60369
60365
|
en,
|
|
60370
60366
|
em
|
|
60371
60367
|
]), ew = reactExports.useCallback(async (t = {})=>{
|
|
60372
|
-
let r, { imageBlob: o, error: n, detectedCard: i, captureTime: a, captureCount: s, captureDuration: c, captureType: d, hash:
|
|
60368
|
+
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;
|
|
60373
60369
|
if (x.current) return;
|
|
60374
60370
|
x.current = !0, E(!0), eo(), eg(), Y(null);
|
|
60375
60371
|
let v = l?.enableVirtualCamHashes, w = l?.enableGlareCheck, k = l?.enableBlurCheck, B = {};
|
|
60376
|
-
if (v && null !==
|
|
60372
|
+
if (v && null !== p) {
|
|
60377
60373
|
let t = [
|
|
60378
|
-
|
|
60374
|
+
p,
|
|
60379
60375
|
...ec.current
|
|
60380
60376
|
];
|
|
60381
60377
|
t.length > 0 && (B = t.reduce((t, r, o)=>(t[`hash${o + 1}`] = r, t), {}));
|
|
@@ -60384,7 +60380,7 @@
|
|
|
60384
60380
|
h7.addExifData("user_action", {
|
|
60385
60381
|
start_id_card: F.current,
|
|
60386
60382
|
end_id_card: Date.now()
|
|
60387
|
-
}), 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",
|
|
60383
|
+
}), 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)));
|
|
60388
60384
|
let T = await h7.writeCurrentExif({
|
|
60389
60385
|
imageData: {
|
|
60390
60386
|
blob: o
|
|
@@ -60522,14 +60518,14 @@
|
|
|
60522
60518
|
};
|
|
60523
60519
|
})({
|
|
60524
60520
|
shouldStart: !0,
|
|
60525
|
-
refVideo:
|
|
60521
|
+
refVideo: f,
|
|
60526
60522
|
cropArea: eo,
|
|
60527
60523
|
settings: C,
|
|
60528
|
-
onModelErrorChange:
|
|
60524
|
+
onModelErrorChange: ep,
|
|
60529
60525
|
frontSide: k,
|
|
60530
60526
|
allowedCardTypes: y,
|
|
60531
60527
|
onDebugInfoChange: K,
|
|
60532
|
-
onSessionTimeout:
|
|
60528
|
+
onSessionTimeout: ef,
|
|
60533
60529
|
onCaptureDone: eh,
|
|
60534
60530
|
onAboutToTimeout: reactExports.useCallback(({ curTimeLeft: t })=>{
|
|
60535
60531
|
ee(Y("remaining_time", {
|
|
@@ -60558,9 +60554,9 @@
|
|
|
60558
60554
|
}), { showCaptureButtonInAuto: eS = !0, showHoldStillProgress: eE = !1, showAutoCaptureToggle: eT } = C ?? {};
|
|
60559
60555
|
reactExports.useEffect(()=>{
|
|
60560
60556
|
if (u) {
|
|
60561
|
-
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX:
|
|
60562
|
-
l ? i = .7 * (a = d - 165) : a = Math.floor(Math.min((i = nT.isMobile ? c - 40 : Math.floor(.4 * c)) / 1.5, h - 2 *
|
|
60563
|
-
x: Math.floor((c - i) / 2) +
|
|
60557
|
+
let t, r, o, n, i, a, s, { videoAreaWidth: c, videoAreaHeight: d, lostX: p, lostY: f, clientHeight: h } = u;
|
|
60558
|
+
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({
|
|
60559
|
+
x: Math.floor((c - i) / 2) + p,
|
|
60564
60560
|
y: s,
|
|
60565
60561
|
width: i,
|
|
60566
60562
|
height: a,
|
|
@@ -61030,8 +61026,8 @@
|
|
|
61030
61026
|
Object.keys(l || {}).forEach(function(t) {
|
|
61031
61027
|
l[t] = i[t] || l[t];
|
|
61032
61028
|
});
|
|
61033
|
-
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,
|
|
61034
|
-
return
|
|
61029
|
+
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);
|
|
61030
|
+
return f || "attemptBoth" !== l.inversionAttempts && "invertFirst" !== l.inversionAttempts || (f = c(s ? u : p)), f;
|
|
61035
61031
|
}
|
|
61036
61032
|
d.default = d, r.default = d;
|
|
61037
61033
|
},
|
|
@@ -61052,10 +61048,10 @@
|
|
|
61052
61048
|
r.binarize = function(t, r, o, a) {
|
|
61053
61049
|
if (t.length !== r * o * 4) throw Error("Malformed data passed to binarizer.");
|
|
61054
61050
|
for(var s = new i(r, o), c = 0; c < r; c++)for(var l = 0; l < o; l++){
|
|
61055
|
-
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1],
|
|
61056
|
-
s.set(c, l, .2126 * d + .7152 * u + .0722 *
|
|
61051
|
+
var d = t[(l * r + c) * 4 + 0], u = t[(l * r + c) * 4 + 1], p = t[(l * r + c) * 4 + 2];
|
|
61052
|
+
s.set(c, l, .2126 * d + .7152 * u + .0722 * p);
|
|
61057
61053
|
}
|
|
61058
|
-
for(var
|
|
61054
|
+
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++){
|
|
61059
61055
|
for(var v = 0, w = 1 / 0, k = 0, l = 0; l < 8; l++)for(var c = 0; c < 8; c++){
|
|
61060
61056
|
var y = s.get(8 * b + c, 8 * g + l);
|
|
61061
61057
|
v += y, w = Math.min(w, y), k = Math.max(k, y);
|
|
@@ -61069,8 +61065,8 @@
|
|
|
61069
61065
|
}
|
|
61070
61066
|
var _ = n.BitMatrix.createEmpty(r, o), x = null;
|
|
61071
61067
|
a && (x = n.BitMatrix.createEmpty(r, o));
|
|
61072
|
-
for(var g = 0; g < h; g++)for(var b = 0; b <
|
|
61073
|
-
for(var P, S, E, T, D = (P = b, S =
|
|
61068
|
+
for(var g = 0; g < h; g++)for(var b = 0; b < f; b++){
|
|
61069
|
+
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);
|
|
61074
61070
|
for(var O = v / 25, j = 0; j < 8; j++)for(var I = 0; I < 8; I++){
|
|
61075
61071
|
var c = 8 * b + j, l = 8 * g + I, M = s.get(c, l);
|
|
61076
61072
|
_.set(c, l, M <= O), a && x.set(c, l, !(M <= O));
|
|
@@ -61351,16 +61347,16 @@
|
|
|
61351
61347
|
for(var l = 0, d = 5; d >= 0; d--)for(var u = i - 9; u >= i - 11; u--){
|
|
61352
61348
|
r = t.get(u, d), l = l << 1 | r;
|
|
61353
61349
|
}
|
|
61354
|
-
for(var
|
|
61355
|
-
o = t.get(u, d),
|
|
61350
|
+
for(var p = 0, u = 5; u >= 0; u--)for(var d = i - 9; d >= i - 11; d--){
|
|
61351
|
+
o = t.get(u, d), p = p << 1 | o;
|
|
61356
61352
|
}
|
|
61357
|
-
for(var
|
|
61353
|
+
for(var f = 1 / 0, h = 0, m = s.VERSIONS; h < m.length; h++){
|
|
61358
61354
|
var g = m[h];
|
|
61359
|
-
if (g.infoBits === l || g.infoBits ===
|
|
61355
|
+
if (g.infoBits === l || g.infoBits === p) return g;
|
|
61360
61356
|
var b = c(l, g.infoBits);
|
|
61361
|
-
b <
|
|
61357
|
+
b < f && (n = g, f = b), (b = c(p, g.infoBits)) < f && (n = g, f = b);
|
|
61362
61358
|
}
|
|
61363
|
-
if (
|
|
61359
|
+
if (f <= 3) return n;
|
|
61364
61360
|
}(t);
|
|
61365
61361
|
if (!r) return null;
|
|
61366
61362
|
var o = function(t) {
|
|
@@ -61370,19 +61366,19 @@
|
|
|
61370
61366
|
for(var d = 7; d >= 0; d--){
|
|
61371
61367
|
6 !== d && (o = t.get(8, d), a = a << 1 | o);
|
|
61372
61368
|
}
|
|
61373
|
-
for(var u = t.height,
|
|
61374
|
-
n = t.get(8, d),
|
|
61369
|
+
for(var u = t.height, p = 0, d = u - 1; d >= u - 7; d--){
|
|
61370
|
+
n = t.get(8, d), p = p << 1 | n;
|
|
61375
61371
|
}
|
|
61376
61372
|
for(var s = u - 8; s < u; s++){
|
|
61377
|
-
i = t.get(s, 8),
|
|
61373
|
+
i = t.get(s, 8), p = p << 1 | i;
|
|
61378
61374
|
}
|
|
61379
|
-
for(var
|
|
61375
|
+
for(var f = 1 / 0, h = null, m = 0; m < l.length; m++){
|
|
61380
61376
|
var g = l[m], b = g.bits, v = g.formatInfo;
|
|
61381
|
-
if (b === a || b ===
|
|
61377
|
+
if (b === a || b === p) return v;
|
|
61382
61378
|
var w = c(a, b);
|
|
61383
|
-
w <
|
|
61379
|
+
w < f && (h = v, f = w), a !== p && (w = c(p, b)) < f && (h = v, f = w);
|
|
61384
61380
|
}
|
|
61385
|
-
return
|
|
61381
|
+
return f <= 3 ? h : null;
|
|
61386
61382
|
}(t);
|
|
61387
61383
|
if (!o) return null;
|
|
61388
61384
|
var u = function(t, r, o) {
|
|
@@ -61399,10 +61395,10 @@
|
|
|
61399
61395
|
d.codewords.push(t.shift());
|
|
61400
61396
|
}
|
|
61401
61397
|
if (n.ecBlocks.length > 1) {
|
|
61402
|
-
for(var u = n.ecBlocks[0].numBlocks,
|
|
61398
|
+
for(var u = n.ecBlocks[0].numBlocks, p = n.ecBlocks[1].numBlocks, c = 0; c < p; c++)i[u + c].codewords.push(t.shift());
|
|
61403
61399
|
}
|
|
61404
|
-
for(; t.length > 0;)for(var
|
|
61405
|
-
var d = i[
|
|
61400
|
+
for(; t.length > 0;)for(var f = 0; f < i.length; f++){
|
|
61401
|
+
var d = i[f];
|
|
61406
61402
|
d.codewords.push(t.shift());
|
|
61407
61403
|
}
|
|
61408
61404
|
return i;
|
|
@@ -61417,11 +61413,11 @@
|
|
|
61417
61413
|
}
|
|
61418
61414
|
}
|
|
61419
61415
|
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;
|
|
61420
|
-
}(r), c = [], l = 0, u = 0,
|
|
61421
|
-
6 ===
|
|
61416
|
+
}(r), c = [], l = 0, u = 0, p = !0, f = a - 1; f > 0; f -= 2){
|
|
61417
|
+
6 === f && f--;
|
|
61422
61418
|
for(var h = 0; h < a; h++){
|
|
61423
|
-
for(var m =
|
|
61424
|
-
var b =
|
|
61419
|
+
for(var m = p ? a - 1 - h : h, g = 0; g < 2; g++){
|
|
61420
|
+
var b = f - g;
|
|
61425
61421
|
if (!s.get(b, m)) {
|
|
61426
61422
|
u++;
|
|
61427
61423
|
var v = t.get(b, m);
|
|
@@ -61432,20 +61428,20 @@
|
|
|
61432
61428
|
}
|
|
61433
61429
|
}
|
|
61434
61430
|
}
|
|
61435
|
-
|
|
61431
|
+
p = !p;
|
|
61436
61432
|
}
|
|
61437
61433
|
return c;
|
|
61438
61434
|
}(t, r, o), r, o.errorCorrectionLevel);
|
|
61439
61435
|
if (!u) return null;
|
|
61440
|
-
for(var
|
|
61436
|
+
for(var p = new Uint8ClampedArray(u.reduce(function(t, r) {
|
|
61441
61437
|
return t + r.numDataCodewords;
|
|
61442
|
-
}, 0)),
|
|
61438
|
+
}, 0)), f = 0, h = 0; h < u.length; h++){
|
|
61443
61439
|
var m = u[h], g = a.decode(m.codewords, m.codewords.length - m.numDataCodewords);
|
|
61444
61440
|
if (!g) return null;
|
|
61445
|
-
for(var b = 0; b < m.numDataCodewords; b++)f
|
|
61441
|
+
for(var b = 0; b < m.numDataCodewords; b++)p[f++] = g[b];
|
|
61446
61442
|
}
|
|
61447
61443
|
try {
|
|
61448
|
-
return i.decode(
|
|
61444
|
+
return i.decode(p, r.versionNumber);
|
|
61449
61445
|
} catch (t) {
|
|
61450
61446
|
return null;
|
|
61451
61447
|
}
|
|
@@ -61512,23 +61508,23 @@
|
|
|
61512
61508
|
":"
|
|
61513
61509
|
];
|
|
61514
61510
|
r.decode = function(t, r) {
|
|
61515
|
-
for(var o, n, i, u,
|
|
61511
|
+
for(var o, n, i, u, p = new c.BitStream(t), f = r <= 9 ? 0 : r <= 26 ? 1 : 2, h = {
|
|
61516
61512
|
text: "",
|
|
61517
61513
|
bytes: [],
|
|
61518
61514
|
chunks: [],
|
|
61519
61515
|
version: r
|
|
61520
|
-
};
|
|
61521
|
-
var m =
|
|
61516
|
+
}; p.available() >= 4;){
|
|
61517
|
+
var m = p.readBits(4);
|
|
61522
61518
|
if (m === s.Terminator) return h;
|
|
61523
|
-
if (m === s.ECI) 0 ===
|
|
61519
|
+
if (m === s.ECI) 0 === p.readBits(1) ? h.chunks.push({
|
|
61524
61520
|
type: a.ECI,
|
|
61525
|
-
assignmentNumber:
|
|
61526
|
-
}) : 0 ===
|
|
61521
|
+
assignmentNumber: p.readBits(7)
|
|
61522
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61527
61523
|
type: a.ECI,
|
|
61528
|
-
assignmentNumber:
|
|
61529
|
-
}) : 0 ===
|
|
61524
|
+
assignmentNumber: p.readBits(14)
|
|
61525
|
+
}) : 0 === p.readBits(1) ? h.chunks.push({
|
|
61530
61526
|
type: a.ECI,
|
|
61531
|
-
assignmentNumber:
|
|
61527
|
+
assignmentNumber: p.readBits(21)
|
|
61532
61528
|
}) : h.chunks.push({
|
|
61533
61529
|
type: a.ECI,
|
|
61534
61530
|
assignmentNumber: -1
|
|
@@ -61559,7 +61555,7 @@
|
|
|
61559
61555
|
bytes: o,
|
|
61560
61556
|
text: n
|
|
61561
61557
|
};
|
|
61562
|
-
}(
|
|
61558
|
+
}(p, f);
|
|
61563
61559
|
h.text += g.text, (o = h.bytes).push.apply(o, g.bytes), h.chunks.push({
|
|
61564
61560
|
type: a.Numeric,
|
|
61565
61561
|
text: g.text
|
|
@@ -61582,7 +61578,7 @@
|
|
|
61582
61578
|
bytes: o,
|
|
61583
61579
|
text: n
|
|
61584
61580
|
};
|
|
61585
|
-
}(
|
|
61581
|
+
}(p, f);
|
|
61586
61582
|
h.text += b.text, (n = h.bytes).push.apply(n, b.bytes), h.chunks.push({
|
|
61587
61583
|
type: a.Alphanumeric,
|
|
61588
61584
|
text: b.text
|
|
@@ -61606,7 +61602,7 @@
|
|
|
61606
61602
|
bytes: o,
|
|
61607
61603
|
text: n
|
|
61608
61604
|
};
|
|
61609
|
-
}(
|
|
61605
|
+
}(p, f);
|
|
61610
61606
|
h.text += v.text, (i = h.bytes).push.apply(i, v.bytes), h.chunks.push({
|
|
61611
61607
|
type: a.Byte,
|
|
61612
61608
|
bytes: v.bytes,
|
|
@@ -61626,7 +61622,7 @@
|
|
|
61626
61622
|
bytes: o,
|
|
61627
61623
|
text: n
|
|
61628
61624
|
};
|
|
61629
|
-
}(
|
|
61625
|
+
}(p, f);
|
|
61630
61626
|
h.text += w.text, (u = h.bytes).push.apply(u, w.bytes), h.chunks.push({
|
|
61631
61627
|
type: a.Kanji,
|
|
61632
61628
|
bytes: w.bytes,
|
|
@@ -61634,7 +61630,7 @@
|
|
|
61634
61630
|
});
|
|
61635
61631
|
}
|
|
61636
61632
|
}
|
|
61637
|
-
if (0 ===
|
|
61633
|
+
if (0 === p.available() || 0 === p.readBits(p.available())) return h;
|
|
61638
61634
|
};
|
|
61639
61635
|
},
|
|
61640
61636
|
function(t, r, o) {
|
|
@@ -68720,7 +68716,7 @@
|
|
|
68720
68716
|
c[c.length - 1 - d] = u, 0 !== u && (l = !0);
|
|
68721
68717
|
}
|
|
68722
68718
|
if (!l) return o;
|
|
68723
|
-
var
|
|
68719
|
+
var p = new i.default(a, c), f = function(t, r, o, n) {
|
|
68724
68720
|
r.degree() < o.degree() && (r = (i = [
|
|
68725
68721
|
o,
|
|
68726
68722
|
r
|
|
@@ -68729,11 +68725,11 @@
|
|
|
68729
68725
|
var d = a, u = c;
|
|
68730
68726
|
if (a = s, c = l, a.isZero()) return null;
|
|
68731
68727
|
s = d;
|
|
68732
|
-
for(var
|
|
68728
|
+
for(var p = t.zero, f = a.getCoefficient(a.degree()), h = t.inverse(f); s.degree() >= a.degree() && !s.isZero();){
|
|
68733
68729
|
var m = s.degree() - a.degree(), g = t.multiply(s.getCoefficient(s.degree()), h);
|
|
68734
|
-
|
|
68730
|
+
p = p.addOrSubtract(t.buildMonomial(m, g)), s = s.addOrSubtract(a.multiplyByMonomial(m, g));
|
|
68735
68731
|
}
|
|
68736
|
-
if (l =
|
|
68732
|
+
if (l = p.multiplyPoly(c).addOrSubtract(u), s.degree() >= a.degree()) return null;
|
|
68737
68733
|
}
|
|
68738
68734
|
var b = l.getCoefficient(0);
|
|
68739
68735
|
if (0 === b) return null;
|
|
@@ -68742,8 +68738,8 @@
|
|
|
68742
68738
|
l.multiply(v),
|
|
68743
68739
|
s.multiply(v)
|
|
68744
68740
|
];
|
|
68745
|
-
}(a, a.buildMonomial(r, 1),
|
|
68746
|
-
if (null ===
|
|
68741
|
+
}(a, a.buildMonomial(r, 1), p, r);
|
|
68742
|
+
if (null === f) return null;
|
|
68747
68743
|
var h = function(t, r) {
|
|
68748
68744
|
var o = r.degree();
|
|
68749
68745
|
if (1 === o) return [
|
|
@@ -68751,7 +68747,7 @@
|
|
|
68751
68747
|
];
|
|
68752
68748
|
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++);
|
|
68753
68749
|
return i !== o ? null : n;
|
|
68754
|
-
}(a,
|
|
68750
|
+
}(a, f[0]);
|
|
68755
68751
|
if (null == h) return null;
|
|
68756
68752
|
for(var m = function(t, r, o) {
|
|
68757
68753
|
for(var i = o.length, a = Array(i), s = 0; s < i; s++){
|
|
@@ -68759,7 +68755,7 @@
|
|
|
68759
68755
|
a[s] = t.multiply(r.evaluateAt(c), t.inverse(l)), 0 !== t.generatorBase && (a[s] = t.multiply(a[s], c));
|
|
68760
68756
|
}
|
|
68761
68757
|
return a;
|
|
68762
|
-
}(a,
|
|
68758
|
+
}(a, f[1], h), g = 0; g < h.length; g++){
|
|
68763
68759
|
var b = o.length - 1 - a.log(h[g]);
|
|
68764
68760
|
if (b < 0) return null;
|
|
68765
68761
|
o[b] = n.addOrSubtractGF(o[b], m[g]);
|
|
@@ -71240,14 +71236,14 @@
|
|
|
71240
71236
|
a32: t.y,
|
|
71241
71237
|
a33: 1
|
|
71242
71238
|
};
|
|
71243
|
-
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,
|
|
71239
|
+
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;
|
|
71244
71240
|
return {
|
|
71245
|
-
a11: r.x - t.x +
|
|
71246
|
-
a12: r.y - t.y +
|
|
71247
|
-
a13:
|
|
71248
|
-
a21: n.x - t.x +
|
|
71249
|
-
a22: n.y - t.y +
|
|
71250
|
-
a23:
|
|
71241
|
+
a11: r.x - t.x + p * r.x,
|
|
71242
|
+
a12: r.y - t.y + p * r.y,
|
|
71243
|
+
a13: p,
|
|
71244
|
+
a21: n.x - t.x + f * n.x,
|
|
71245
|
+
a22: n.y - t.y + f * n.y,
|
|
71246
|
+
a23: f,
|
|
71251
71247
|
a31: t.x,
|
|
71252
71248
|
a32: t.y,
|
|
71253
71249
|
a33: 1
|
|
@@ -71276,7 +71272,7 @@
|
|
|
71276
71272
|
a31: c.a21 * c.a32 - c.a22 * c.a31,
|
|
71277
71273
|
a32: c.a12 * c.a31 - c.a11 * c.a32,
|
|
71278
71274
|
a33: c.a11 * c.a22 - c.a12 * c.a21
|
|
71279
|
-
}),
|
|
71275
|
+
}), p = (l = i(r.topLeft, r.topRight, r.alignmentPattern, r.bottomLeft), d = u, {
|
|
71280
71276
|
a11: l.a11 * d.a11 + l.a21 * d.a12 + l.a31 * d.a13,
|
|
71281
71277
|
a12: l.a12 * d.a11 + l.a22 * d.a12 + l.a32 * d.a13,
|
|
71282
71278
|
a13: l.a13 * d.a11 + l.a23 * d.a12 + l.a33 * d.a13,
|
|
@@ -71286,18 +71282,18 @@
|
|
|
71286
71282
|
a31: l.a11 * d.a31 + l.a21 * d.a32 + l.a31 * d.a33,
|
|
71287
71283
|
a32: l.a12 * d.a31 + l.a22 * d.a32 + l.a32 * d.a33,
|
|
71288
71284
|
a33: l.a13 * d.a31 + l.a23 * d.a32 + l.a33 * d.a33
|
|
71289
|
-
}),
|
|
71290
|
-
var o =
|
|
71285
|
+
}), f = n.BitMatrix.createEmpty(r.dimension, r.dimension), h = function(t, r) {
|
|
71286
|
+
var o = p.a13 * t + p.a23 * r + p.a33;
|
|
71291
71287
|
return {
|
|
71292
|
-
x: (
|
|
71293
|
-
y: (
|
|
71288
|
+
x: (p.a11 * t + p.a21 * r + p.a31) / o,
|
|
71289
|
+
y: (p.a12 * t + p.a22 * r + p.a32) / o
|
|
71294
71290
|
};
|
|
71295
71291
|
}, m = 0; m < r.dimension; m++)for(var g = 0; g < r.dimension; g++){
|
|
71296
71292
|
var b = h(g + .5, m + .5);
|
|
71297
|
-
|
|
71293
|
+
f.set(g, m, t.get(Math.floor(b.x), Math.floor(b.y)));
|
|
71298
71294
|
}
|
|
71299
71295
|
return {
|
|
71300
|
-
matrix:
|
|
71296
|
+
matrix: f,
|
|
71301
71297
|
mappingFunction: h
|
|
71302
71298
|
};
|
|
71303
71299
|
};
|
|
@@ -71322,15 +71318,15 @@
|
|
|
71322
71318
|
}
|
|
71323
71319
|
], u = Math.abs(r.y - t.y) > Math.abs(r.x - t.x);
|
|
71324
71320
|
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));
|
|
71325
|
-
for(var
|
|
71321
|
+
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){
|
|
71326
71322
|
var k = u ? w : v, y = u ? v : w;
|
|
71327
71323
|
if (o.get(k, y) !== b && (b = !b, d.push({
|
|
71328
71324
|
x: k,
|
|
71329
71325
|
y: y
|
|
71330
71326
|
}), d.length === i + 1)) break;
|
|
71331
|
-
if ((h +=
|
|
71327
|
+
if ((h += f) > 0) {
|
|
71332
71328
|
if (w === l) break;
|
|
71333
|
-
w += g, h -=
|
|
71329
|
+
w += g, h -= p;
|
|
71334
71330
|
}
|
|
71335
71331
|
}
|
|
71336
71332
|
for(var C = [], B = 0; B < i; B++)d[B] && d[B + 1] ? C.push(n(d[B], d[B + 1])) : C.push(0);
|
|
@@ -71366,7 +71362,7 @@
|
|
|
71366
71362
|
}, l = s(t, a, o, r.length), d = {
|
|
71367
71363
|
x: Math.min(o.width, t.x + t.y) + 1,
|
|
71368
71364
|
y: Math.min(o.height, t.y + t.x) + 1
|
|
71369
|
-
}, u = s(t, d, o, r.length),
|
|
71365
|
+
}, 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;
|
|
71370
71366
|
return g + v;
|
|
71371
71367
|
} catch (t) {
|
|
71372
71368
|
return 1 / 0;
|
|
@@ -71399,16 +71395,16 @@
|
|
|
71399
71395
|
dimension: l,
|
|
71400
71396
|
moduleSize: c
|
|
71401
71397
|
};
|
|
71402
|
-
}(a, o, c, t)).dimension,
|
|
71398
|
+
}(a, o, c, t)).dimension, p = d.moduleSize;
|
|
71403
71399
|
} catch (t) {
|
|
71404
71400
|
return null;
|
|
71405
71401
|
}
|
|
71406
|
-
var d, u,
|
|
71402
|
+
var d, u, p, f = {
|
|
71407
71403
|
x: o.x - a.x + c.x,
|
|
71408
71404
|
y: o.y - a.y + c.y
|
|
71409
|
-
}, h = (n(a, c) + n(a, o)) / 2 /
|
|
71410
|
-
x: a.x + m * (
|
|
71411
|
-
y: a.y + m * (
|
|
71405
|
+
}, h = (n(a, c) + n(a, o)) / 2 / p, m = 1 - 3 / h, g = {
|
|
71406
|
+
x: a.x + m * (f.x - a.x),
|
|
71407
|
+
y: a.y + m * (f.y - a.y)
|
|
71412
71408
|
}, b = r.map(function(r) {
|
|
71413
71409
|
var o = (r.top.startX + r.top.endX + r.bottom.startX + r.bottom.endX) / 4, a = (r.top.y + r.bottom.y + 1) / 2;
|
|
71414
71410
|
if (t.get(Math.floor(o), Math.floor(a))) {
|
|
@@ -71446,7 +71442,7 @@
|
|
|
71446
71442
|
};
|
|
71447
71443
|
}
|
|
71448
71444
|
r.locate = function(t) {
|
|
71449
|
-
for(var r, o, a, s, c,
|
|
71445
|
+
for(var r, o, a, s, c, p, f, h, m, g, b, v, w, k = [], y = [], C = [], B = [], _ = function(r) {
|
|
71450
71446
|
for(var o = 0, n = !1, a = [
|
|
71451
71447
|
0,
|
|
71452
71448
|
0,
|
|
@@ -71464,21 +71460,21 @@
|
|
|
71464
71460
|
a[4],
|
|
71465
71461
|
o
|
|
71466
71462
|
], o = 1, n = c;
|
|
71467
|
-
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,
|
|
71463
|
+
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;
|
|
71468
71464
|
if (d) {
|
|
71469
|
-
var
|
|
71465
|
+
var f = s - a[3] - a[4], h = f - a[2], m = {
|
|
71470
71466
|
startX: h,
|
|
71471
|
-
endX:
|
|
71467
|
+
endX: f,
|
|
71472
71468
|
y: r
|
|
71473
71469
|
}, g = y.filter(function(t) {
|
|
71474
|
-
return h >= t.bottom.startX && h <= t.bottom.endX ||
|
|
71470
|
+
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;
|
|
71475
71471
|
});
|
|
71476
71472
|
g.length > 0 ? g[0].bottom = m : y.push({
|
|
71477
71473
|
top: m,
|
|
71478
71474
|
bottom: m
|
|
71479
71475
|
});
|
|
71480
71476
|
}
|
|
71481
|
-
if (
|
|
71477
|
+
if (p) {
|
|
71482
71478
|
var b = s - a[4], v = b - a[3], m = {
|
|
71483
71479
|
startX: v,
|
|
71484
71480
|
y: r,
|
|
@@ -71572,14 +71568,14 @@
|
|
|
71572
71568
|
r,
|
|
71573
71569
|
o,
|
|
71574
71570
|
a
|
|
71575
|
-
])[0], m = c[1], g = c[2]) : (h = (
|
|
71571
|
+
])[0], m = c[1], g = c[2]) : (h = (p = [
|
|
71576
71572
|
r,
|
|
71577
71573
|
a,
|
|
71578
71574
|
o
|
|
71579
|
-
])[0], m =
|
|
71575
|
+
])[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 = [
|
|
71580
71576
|
g,
|
|
71581
71577
|
h
|
|
71582
|
-
])[0], g =
|
|
71578
|
+
])[0], g = f[1]), {
|
|
71583
71579
|
bottomLeft: h,
|
|
71584
71580
|
topLeft: m,
|
|
71585
71581
|
topRight: g
|
|
@@ -71793,10 +71789,10 @@
|
|
|
71793
71789
|
}
|
|
71794
71790
|
];
|
|
71795
71791
|
function sV() {
|
|
71796
|
-
if (rh) return
|
|
71792
|
+
if (rh) return rf;
|
|
71797
71793
|
rh = 1;
|
|
71798
71794
|
var t = o9();
|
|
71799
|
-
return
|
|
71795
|
+
return rf = function() {
|
|
71800
71796
|
try {
|
|
71801
71797
|
var r = t(Object, "defineProperty");
|
|
71802
71798
|
return r({}, "", {}), r;
|
|
@@ -71943,14 +71939,14 @@
|
|
|
71943
71939
|
return n;
|
|
71944
71940
|
}), r = sH(), o = oK(), n = sY(), i = s5(), a = s3(), s = Object.prototype.hasOwnProperty;
|
|
71945
71941
|
return od = function(c, l) {
|
|
71946
|
-
var d = o(c), u = !d && r(c),
|
|
71947
|
-
for(var b in c)(l || s.call(c, b)) && !(h && ("length" == b ||
|
|
71942
|
+
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;
|
|
71943
|
+
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);
|
|
71948
71944
|
return m;
|
|
71949
71945
|
};
|
|
71950
71946
|
}(), r = function() {
|
|
71951
71947
|
if (om) return oh;
|
|
71952
71948
|
om = 1;
|
|
71953
|
-
var t = o1(), r = sX(), o =
|
|
71949
|
+
var t = o1(), r = sX(), o = of ? op : (of = 1, op = function(t) {
|
|
71954
71950
|
var r = [];
|
|
71955
71951
|
if (null != t) for(var o in Object(t))r.push(o);
|
|
71956
71952
|
return r;
|
|
@@ -71978,8 +71974,8 @@
|
|
|
71978
71974
|
if (oB) return oC;
|
|
71979
71975
|
oB = 1;
|
|
71980
71976
|
var t = function() {
|
|
71981
|
-
if (
|
|
71982
|
-
|
|
71977
|
+
if (rp) return ru;
|
|
71978
|
+
rp = 1;
|
|
71983
71979
|
var t = ne(), r = function() {
|
|
71984
71980
|
if (rr) return rt;
|
|
71985
71981
|
rr = 1;
|
|
@@ -72083,7 +72079,7 @@
|
|
|
72083
72079
|
return rZ = function(o) {
|
|
72084
72080
|
return r(o) && t(o);
|
|
72085
72081
|
};
|
|
72086
|
-
}(), l = sY(), d = o8(), u = o1(),
|
|
72082
|
+
}(), l = sY(), d = o8(), u = o1(), p = function() {
|
|
72087
72083
|
if (r5) return r2;
|
|
72088
72084
|
r5 = 1;
|
|
72089
72085
|
var t = o2(), r = sQ(), o = o5(), n = Object.prototype, i = Function.prototype.toString, a = n.hasOwnProperty, s = i.call(Object);
|
|
@@ -72094,7 +72090,7 @@
|
|
|
72094
72090
|
var l = a.call(c, "constructor") && c.constructor;
|
|
72095
72091
|
return "function" == typeof l && l instanceof l && i.call(l) == s;
|
|
72096
72092
|
};
|
|
72097
|
-
}(),
|
|
72093
|
+
}(), f = s3(), h = s2(), m = function() {
|
|
72098
72094
|
if (ow) return ov;
|
|
72099
72095
|
ow = 1;
|
|
72100
72096
|
var t = function() {
|
|
@@ -72128,17 +72124,17 @@
|
|
|
72128
72124
|
if (x) return void t(g, v, x);
|
|
72129
72125
|
var P = y ? y(B, _, v + "", g, b, C) : void 0, S = void 0 === P;
|
|
72130
72126
|
if (S) {
|
|
72131
|
-
var E = s(_), T = !E && l(_), D = !E && !T &&
|
|
72132
|
-
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 = [] :
|
|
72127
|
+
var E = s(_), T = !E && l(_), D = !E && !T && f(_);
|
|
72128
|
+
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;
|
|
72133
72129
|
}
|
|
72134
72130
|
S && (C.set(_, P), k(P, _, w, y, C), C.delete(_)), t(g, v, P);
|
|
72135
72131
|
};
|
|
72136
72132
|
}(), i = o1(), a = s0(), s = s2();
|
|
72137
|
-
return oC = function c(l, d, u,
|
|
72133
|
+
return oC = function c(l, d, u, p, f) {
|
|
72138
72134
|
l !== d && o(d, function(o, a) {
|
|
72139
|
-
if (
|
|
72135
|
+
if (f || (f = new t), i(o)) n(l, d, a, u, c, p, f);
|
|
72140
72136
|
else {
|
|
72141
|
-
var h =
|
|
72137
|
+
var h = p ? p(s(l, a), o, a + "", l, d, f) : void 0;
|
|
72142
72138
|
void 0 === h && (h = o), r(l, a, h);
|
|
72143
72139
|
}
|
|
72144
72140
|
}, a);
|
|
@@ -90585,6 +90581,7 @@
|
|
|
90585
90581
|
const DefaultFlashLivenessBody = FlashLivenessBody;
|
|
90586
90582
|
const DefaultFlashLivenessOverlay = FlashLivenessOverlay;
|
|
90587
90583
|
const DefaultFlashLivenessError = FlashLivenessError;
|
|
90584
|
+
const DefaultFlashLivenessCloseIcon = CloseIcon;
|
|
90588
90585
|
function FlashLivenessImpl(props) {
|
|
90589
90586
|
const { onReset, onFlashDone: onFlashDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig, onImageCaptured } = props;
|
|
90590
90587
|
const { onCloseCallback, onErrorCallback } = useSDKCallback();
|
|
@@ -90592,6 +90589,7 @@
|
|
|
90592
90589
|
const FlashLivenessBodyComponent = customComponent?.FlashLivenessBody ?? DefaultFlashLivenessBody;
|
|
90593
90590
|
const FlashLivenessOverlayComponent = customComponent?.FlashLivenessOverlay ?? DefaultFlashLivenessOverlay;
|
|
90594
90591
|
const FlashLivenessErrorComponent = customComponent?.FlashLivenessError ?? DefaultFlashLivenessError;
|
|
90592
|
+
const FlashLivenessCloseIconComponent = customComponent?.FlashLivenessCloseIcon ?? DefaultFlashLivenessCloseIcon;
|
|
90595
90593
|
const { maskSettings, flashSettings, faceSettings, livenessSettings, captureFrameSettings, imageSettings, timeoutSettings, blurCheckFarSettings, blurCheckCloseSettings, exifSettings, autoGenFrameIds } = flashLivenessSettings;
|
|
90596
90594
|
if (maskSettings.smallScale > maskSettings.largeScale) {
|
|
90597
90595
|
throw new Error('smallScale must be smaller than largeScale');
|
|
@@ -91318,7 +91316,7 @@
|
|
|
91318
91316
|
ref: videoRef,
|
|
91319
91317
|
onError: onErrorCallback,
|
|
91320
91318
|
videoSettings: videoSettings$5,
|
|
91321
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
91319
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(FlashLivenessCloseIconComponent, {}),
|
|
91322
91320
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
91323
91321
|
overlay: !warmupDone || !isPlaying,
|
|
91324
91322
|
loadingComponent: Loading,
|
|
@@ -92600,12 +92598,14 @@
|
|
|
92600
92598
|
};
|
|
92601
92599
|
const DefaultPassiveLivenessBody = PassiveLivenessBody;
|
|
92602
92600
|
const DefaultPassiveLivenessError = PassiveLivenessError;
|
|
92601
|
+
const DefaultPassiveLivenessCloseIcon = CloseIcon;
|
|
92603
92602
|
function PassiveLivenessUI(props) {
|
|
92604
92603
|
const { onReset, onDone: onDoneCallback, frontCamera, styledComponent, onFramesCaptured, customComponent, extraConfig } = props;
|
|
92605
92604
|
const { onErrorCallback, onCloseCallback } = useSDKCallback();
|
|
92606
92605
|
const passiveLivenessSettings = usePassiveLivenessV2Settings();
|
|
92607
92606
|
const PassiveLivenessBodyComponent = customComponent?.PassiveLivenessBody ?? DefaultPassiveLivenessBody;
|
|
92608
92607
|
const PassiveLivenessErrorComponent = customComponent?.PassiveLivenessError ?? DefaultPassiveLivenessError;
|
|
92608
|
+
const PassiveLivenessCloseIconComponent = customComponent?.PassiveLivenessCloseIcon ?? DefaultPassiveLivenessCloseIcon;
|
|
92609
92609
|
const { maskSettings, faceSettings, captureFrameSettings, exifSettings, imageSettings, timeoutSettings, blurCheckFarSettings, outputImageSettings, autoGenFrameIds } = passiveLivenessSettings;
|
|
92610
92610
|
const farFaceTimeRef = reactExports.useRef();
|
|
92611
92611
|
const logEvent = useEventLogging();
|
|
@@ -93091,7 +93091,7 @@
|
|
|
93091
93091
|
ref: videoRef,
|
|
93092
93092
|
onError: onErrorCallback,
|
|
93093
93093
|
videoSettings: videoSettings$3,
|
|
93094
|
-
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(
|
|
93094
|
+
closeButton: /*#__PURE__*/ jsxRuntimeExports.jsx(PassiveLivenessCloseIconComponent, {}),
|
|
93095
93095
|
children: /*#__PURE__*/ jsxRuntimeExports.jsxs(WarmUpOverlay, {
|
|
93096
93096
|
overlay: !warmupDone || !isPlaying,
|
|
93097
93097
|
loadingComponent: Loading,
|
|
@@ -94751,7 +94751,7 @@
|
|
|
94751
94751
|
DEFAULT: 'default',
|
|
94752
94752
|
ERROR: 'error'
|
|
94753
94753
|
};
|
|
94754
|
-
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles }) {
|
|
94754
|
+
function RectangleMask({ className, width, height, type, strokeStyles, strokeWidth, radius, paddingStyle, defaultRectStyles, errorRectStyles, paddingCornerMultiplier = 1.5 }) {
|
|
94755
94755
|
const styleMapping = reactExports.useMemo(()=>{
|
|
94756
94756
|
return {
|
|
94757
94757
|
[Type.DEFAULT]: defaultRectStyles,
|
|
@@ -94763,7 +94763,7 @@
|
|
|
94763
94763
|
errorRectStyles,
|
|
94764
94764
|
strokeStyles
|
|
94765
94765
|
]);
|
|
94766
|
-
const paddingCornerSize = radius + strokeWidth *
|
|
94766
|
+
const paddingCornerSize = radius + strokeWidth * paddingCornerMultiplier;
|
|
94767
94767
|
const rectStyle = styleMapping[type];
|
|
94768
94768
|
return /*#__PURE__*/ jsxRuntimeExports.jsxs("svg", {
|
|
94769
94769
|
width: width,
|
|
@@ -94811,7 +94811,8 @@
|
|
|
94811
94811
|
radius: PropTypes.number,
|
|
94812
94812
|
paddingStyle: PropTypes.shape({}),
|
|
94813
94813
|
defaultRectStyles: PropTypes.shape({}),
|
|
94814
|
-
errorRectStyles: PropTypes.shape({})
|
|
94814
|
+
errorRectStyles: PropTypes.shape({}),
|
|
94815
|
+
paddingCornerMultiplier: PropTypes.number
|
|
94815
94816
|
};
|
|
94816
94817
|
RectangleMask.defaultProps = {
|
|
94817
94818
|
className: '',
|
|
@@ -94823,7 +94824,8 @@
|
|
|
94823
94824
|
radius: defaultIDThemeV2$1.IDCapturing.rectangleMask.radius,
|
|
94824
94825
|
paddingStyle: defaultIDThemeV2$1.IDCapturing.rectangleMask.paddingStyle,
|
|
94825
94826
|
defaultRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.default,
|
|
94826
|
-
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error
|
|
94827
|
+
errorRectStyles: defaultIDThemeV2$1.IDCapturing.rectangleMask.error,
|
|
94828
|
+
paddingCornerMultiplier: 1.5
|
|
94827
94829
|
};
|
|
94828
94830
|
|
|
94829
94831
|
const StyledRectangleMask = dt$1(RectangleMask)``;
|
|
@@ -113185,6 +113187,17 @@
|
|
|
113185
113187
|
});
|
|
113186
113188
|
};
|
|
113187
113189
|
};
|
|
113190
|
+
const withLocale = (Component)=>{
|
|
113191
|
+
return function WrappedComponent(props) {
|
|
113192
|
+
const { customTexts } = props;
|
|
113193
|
+
return /*#__PURE__*/ jsxRuntimeExports.jsx(SDKLocaleProvider, {
|
|
113194
|
+
customTexts: customTexts,
|
|
113195
|
+
children: /*#__PURE__*/ jsxRuntimeExports.jsx(Component, {
|
|
113196
|
+
...props
|
|
113197
|
+
})
|
|
113198
|
+
});
|
|
113199
|
+
};
|
|
113200
|
+
};
|
|
113188
113201
|
// eslint-disable-next-line react/require-default-props
|
|
113189
113202
|
function FaceAuthenticationContainer(props) {
|
|
113190
113203
|
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;
|
|
@@ -113436,7 +113449,7 @@
|
|
|
113436
113449
|
onFramesCaptured: ()=>{},
|
|
113437
113450
|
customTexts: {}
|
|
113438
113451
|
};
|
|
113439
|
-
var FaceAuthenticationContainer$1 = withClientSettings(FaceAuthenticationContainer);
|
|
113452
|
+
var FaceAuthenticationContainer$1 = withClientSettings(withLocale(FaceAuthenticationContainer));
|
|
113440
113453
|
|
|
113441
113454
|
// eslint-disable-next-line react/require-default-props
|
|
113442
113455
|
function FaceAuthentication(props) {
|
|
@@ -113469,13 +113482,15 @@
|
|
|
113469
113482
|
FlashLivenessOverlay,
|
|
113470
113483
|
FlashLivenessLoading,
|
|
113471
113484
|
FlashLivenessError,
|
|
113485
|
+
FlashLivenessCloseIcon: CloseIcon,
|
|
113486
|
+
PassiveLivenessCloseIcon: CloseIcon,
|
|
113472
113487
|
PassiveLivenessBody,
|
|
113473
113488
|
PassiveLivenessError
|
|
113474
113489
|
}
|
|
113475
113490
|
};
|
|
113476
113491
|
};
|
|
113477
113492
|
|
|
113478
|
-
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.nbcci/0.0.0-beta.
|
|
113493
|
+
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.nbcci/0.0.0-beta.20251217-142321/assets";
|
|
113479
113494
|
class TVWebSDK extends gU {
|
|
113480
113495
|
constructor(props){
|
|
113481
113496
|
super({
|