bry-biometric-collector 3.3.0-RC12 → 3.3.1-RC02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/{CaptureBar_a4c50c4b_3.3.0-RC12.js → CaptureBar_a0040627_3.3.1-RC02.js} +1 -1
- package/dist/{DocumentCollector_fb098cab_3.3.0-RC12.js → DocumentCollector_3f64334d_3.3.1-RC02.js} +171 -169
- package/dist/{FaceCollector_5bbbd0a5_3.3.0-RC12.js → FaceCollector_78ffb33c_3.3.1-RC02.js} +679 -679
- package/dist/{FaceOval_9b699823_3.3.0-RC12.js → FaceOval_80c9405a_3.3.1-RC02.js} +2 -2
- package/dist/{StreamCollector_092dcb0f_3.3.0-RC12.js → StreamCollector_6221c7b3_3.3.1-RC02.js} +66 -66
- package/dist/{ValidationAlert_966df4ee_3.3.0-RC12.js → ValidationAlert_254410bb_3.3.1-RC02.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_3838da21_3.3.0-RC12.js → ___vite-browser-external_commonjs-proxy_64cd23d2_3.3.1-RC02.js} +41 -41
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_6cb94a7e_3.3.0-RC12.js → fingersApi_6b2ea376_3.3.1-RC02.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_0a9585c5_3.3.0-RC12.js → index_00f4ece1_3.3.1-RC02.js} +3 -3
- package/dist/{index_9497ac18_3.3.0-RC12.js → index_ed18e742_3.3.1-RC02.js} +3 -3
- package/dist/{main_ca1065ab_3.3.0-RC12.js → main_a1df8135_3.3.1-RC02.js} +6999 -6521
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/{en-us_c02e99cd_3.3.0-RC12.js → en-us_c02e99cd_3.3.1-RC02.js} +0 -0
- /package/dist/{es-cl_6f3eda53_3.3.0-RC12.js → es-cl_6f3eda53_3.3.1-RC02.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC12.js → face_api_0e3ce8c8_3.3.1-RC02.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC12.js → index-idlf-detector_39cfdffa_3.3.1-RC02.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC12.js → index-idlf-detector_a819b3c8_3.3.1-RC02.js} +0 -0
- /package/dist/{pt-br_e7d46668_3.3.0-RC12.js → pt-br_e7d46668_3.3.1-RC02.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as z, x as D, y as M, z as T, B as v, C as g, O as A, E as x, a1 as E, a2 as b, a3 as B, a0 as d, H as C, I as W,
|
|
2
|
-
import { W as K } from "./
|
|
1
|
+
import { S as z, x as D, y as M, z as T, B as v, C as g, O as A, E as x, a1 as E, a2 as b, a3 as B, a0 as d, H as C, I as W, bw as _, J as F, a8 as O, K as R, aB as k, D as j, G as n, bk as S, X as q, Z as G, _ as I, a4 as J } from "./main_a1df8135_3.3.1-RC02.js";
|
|
2
|
+
import { W as K } from "./ValidationAlert_254410bb_3.3.1-RC02.js";
|
|
3
3
|
function N(a) {
|
|
4
4
|
let e, t, o, r = (
|
|
5
5
|
/*showWatermark*/
|
package/dist/{StreamCollector_092dcb0f_3.3.0-RC12.js → StreamCollector_6221c7b3_3.3.1-RC02.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as ve, x as he, y as we, z as Ee, B as R, C as I, D as A, N as M, E as
|
|
2
|
-
import { V as
|
|
3
|
-
import { F as
|
|
4
|
-
import "./face_api_0e3ce8c8_3.3.
|
|
5
|
-
function re(
|
|
1
|
+
import { S as ve, x as he, y as we, z as Ee, B as R, C as I, D as A, N as M, E as ne, bd as f, G as ie, X as D, a0 as g, a1 as Z, a2 as h, a3 as J, H as oe, I as _, aa as V, am as Y, au as x, av as $, ah as L, T as E, ar as z, a9 as ee, aA as ye, f as Ce, aB as m, aF as Ie, l as te, d as Le, aK as ze, aM as ae, b4 as De, Z as O, _ as T, a4 as N, w as Se, aQ as ke, bc as Fe } from "./main_a1df8135_3.3.1-RC02.js";
|
|
2
|
+
import { V as Be, C as Ve } from "./ValidationAlert_254410bb_3.3.1-RC02.js";
|
|
3
|
+
import { F as Ae } from "./FaceOval_80c9405a_3.3.1-RC02.js";
|
|
4
|
+
import "./face_api_0e3ce8c8_3.3.1-RC02.js";
|
|
5
|
+
function re(s) {
|
|
6
6
|
let t, a, r, l, b;
|
|
7
|
-
return a = new
|
|
7
|
+
return a = new Be({}), l = new Ae({
|
|
8
8
|
props: { borderColor: (
|
|
9
9
|
/*ovalColor*/
|
|
10
|
-
|
|
10
|
+
s[5]
|
|
11
11
|
) }
|
|
12
12
|
}), {
|
|
13
13
|
c() {
|
|
@@ -17,10 +17,10 @@ function re(n) {
|
|
|
17
17
|
R(c, t, o), T(a, t, null), D(t, r), T(l, t, null), b = !0;
|
|
18
18
|
},
|
|
19
19
|
p(c, o) {
|
|
20
|
-
const
|
|
20
|
+
const n = {};
|
|
21
21
|
o[0] & /*ovalColor*/
|
|
22
|
-
32 && (
|
|
23
|
-
c[5]), l.$set(
|
|
22
|
+
32 && (n.borderColor = /*ovalColor*/
|
|
23
|
+
c[5]), l.$set(n);
|
|
24
24
|
},
|
|
25
25
|
i(c) {
|
|
26
26
|
b || (g(a.$$.fragment, c), g(l.$$.fragment, c), b = !0);
|
|
@@ -33,11 +33,11 @@ function re(n) {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function se(s) {
|
|
37
37
|
let t, a;
|
|
38
|
-
return t = new
|
|
38
|
+
return t = new Ve({ props: { handler: (
|
|
39
39
|
/*func*/
|
|
40
|
-
|
|
40
|
+
s[12]
|
|
41
41
|
) } }), {
|
|
42
42
|
c() {
|
|
43
43
|
O(t.$$.fragment);
|
|
@@ -45,7 +45,7 @@ function ne(n) {
|
|
|
45
45
|
m(r, l) {
|
|
46
46
|
T(t, r, l), a = !0;
|
|
47
47
|
},
|
|
48
|
-
p:
|
|
48
|
+
p: ne,
|
|
49
49
|
i(r) {
|
|
50
50
|
a || (g(t.$$.fragment, r), a = !0);
|
|
51
51
|
},
|
|
@@ -57,34 +57,34 @@ function ne(n) {
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Me(s) {
|
|
61
61
|
let t, a, r, l, b, c, o = (
|
|
62
62
|
/*$ready*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
),
|
|
63
|
+
s[7] && !/*idrndClosed*/
|
|
64
|
+
s[3] && !/*idrndLoading*/
|
|
65
|
+
s[4] && re(s)
|
|
66
|
+
), n = (
|
|
67
67
|
/*idrndClosed*/
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
s[3] && !/*idrndLoading*/
|
|
69
|
+
s[4] && se(s)
|
|
70
70
|
);
|
|
71
71
|
return {
|
|
72
72
|
c() {
|
|
73
|
-
t = A("div"), o && o.c(), a = M(), r = A("idlive-face-capture"), b = M(),
|
|
73
|
+
t = A("div"), o && o.c(), a = M(), r = A("idlive-face-capture"), b = M(), n && n.c(), this.c = ne, f(r, "class", "w-full h-full"), f(r, "mask_hidden", ""), f(r, "auto_close_disabled", ""), f(
|
|
74
74
|
r,
|
|
75
75
|
"device_id",
|
|
76
76
|
/*$selectedVideoDeviceId*/
|
|
77
|
-
|
|
77
|
+
s[6]
|
|
78
78
|
), f(r, "face_not_centered_check_enabled", ""), f(r, "sunglasses_detected_check_enabled", ""), f(r, "mouth_open_check_enabled", ""), f(r, "face_blurry_check_enabled", ""), f(r, "dark_image_check_enabled", ""), f(r, "eyes_closed_check_enabled", ""), f(
|
|
79
79
|
r,
|
|
80
80
|
"payload_size",
|
|
81
81
|
/*livenessBlobSize*/
|
|
82
|
-
|
|
82
|
+
s[1]
|
|
83
83
|
), f(r, "style", l = /*idrndClosed*/
|
|
84
|
-
|
|
84
|
+
s[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;"), ie(t, "class", "flex justify-center w-full h-full relative bg-black");
|
|
85
85
|
},
|
|
86
86
|
m(i, u) {
|
|
87
|
-
R(i, t, u), o && o.m(t, null), D(t, a), D(t, r),
|
|
87
|
+
R(i, t, u), o && o.m(t, null), D(t, a), D(t, r), s[11](r), D(t, b), n && n.m(t, null), c = !0;
|
|
88
88
|
},
|
|
89
89
|
p(i, u) {
|
|
90
90
|
/*$ready*/
|
|
@@ -109,42 +109,42 @@ function Ae(n) {
|
|
|
109
109
|
8 && l !== (l = /*idrndClosed*/
|
|
110
110
|
i[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;")) && f(r, "style", l), /*idrndClosed*/
|
|
111
111
|
i[3] && !/*idrndLoading*/
|
|
112
|
-
i[4] ?
|
|
113
|
-
24 && g(
|
|
114
|
-
|
|
112
|
+
i[4] ? n ? (n.p(i, u), u[0] & /*idrndClosed, idrndLoading*/
|
|
113
|
+
24 && g(n, 1)) : (n = se(i), n.c(), g(n, 1), n.m(t, null)) : n && (Z(), h(n, 1, 1, () => {
|
|
114
|
+
n = null;
|
|
115
115
|
}), J());
|
|
116
116
|
},
|
|
117
117
|
i(i) {
|
|
118
|
-
c || (g(o), g(
|
|
118
|
+
c || (g(o), g(n), c = !0);
|
|
119
119
|
},
|
|
120
120
|
o(i) {
|
|
121
|
-
h(o), h(
|
|
121
|
+
h(o), h(n), c = !1;
|
|
122
122
|
},
|
|
123
123
|
d(i) {
|
|
124
|
-
i && oe(t), o && o.d(),
|
|
124
|
+
i && oe(t), o && o.d(), s[11](null), n && n.d();
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.
|
|
128
|
+
function Oe() {
|
|
129
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.1-RC02.js") : import("./index-idlf-detector_a819b3c8_3.3.1-RC02.js");
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
let r, l, b, c, o,
|
|
133
|
-
_(
|
|
134
|
-
let { livenessBlobSize:
|
|
135
|
-
const k =
|
|
136
|
-
_(
|
|
137
|
-
let { widgetInstance: d } = t,
|
|
131
|
+
function Te(s, t, a) {
|
|
132
|
+
let r, l, b, c, o, n, i, u, S;
|
|
133
|
+
_(s, V, (e) => a(6, r = e)), _(s, Y, (e) => a(16, l = e)), _(s, x, (e) => a(18, c = e)), _(s, $, (e) => a(19, o = e)), _(s, L, (e) => a(20, n = e)), _(s, E, (e) => a(7, i = e)), _(s, z, (e) => a(21, u = e)), _(s, ee, (e) => a(22, S = e));
|
|
134
|
+
let { livenessBlobSize: W } = t, { cameraDeviceId: y } = t;
|
|
135
|
+
const k = Se("data:image/png;base64");
|
|
136
|
+
_(s, k, (e) => a(17, b = e));
|
|
137
|
+
let { widgetInstance: d } = t, K = !1, p = !0, v = !0, F = !1, w = !0, B = "text-blue-400";
|
|
138
138
|
ye(async () => {
|
|
139
|
-
Ce("Mounting Stream Collector!"), m(z, u = !0, u), m(E, i = !1, i), ce(),
|
|
139
|
+
Ce("Mounting Stream Collector!"), m(z, u = !0, u), m(E, i = !1, i), ce(), Oe(), de(), le();
|
|
140
140
|
});
|
|
141
141
|
function ce() {
|
|
142
|
-
F = !1, m(ee, S = Ie.FRONT_CAMERA, S), m(L,
|
|
142
|
+
F = !1, m(ee, S = Ie.FRONT_CAMERA, S), m(L, n = "faceCollector.stayInFrame", n);
|
|
143
143
|
}
|
|
144
144
|
function le() {
|
|
145
|
-
window.addEventListener("focus",
|
|
145
|
+
window.addEventListener("focus", P), window.addEventListener("blur", j), document.addEventListener("visibilitychange", H);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function P() {
|
|
148
148
|
w = !0;
|
|
149
149
|
}
|
|
150
150
|
function j() {
|
|
@@ -176,32 +176,32 @@ function Oe(n, t, a) {
|
|
|
176
176
|
}), d.addEventListener("faceDetection", (e) => {
|
|
177
177
|
m(
|
|
178
178
|
L,
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
n = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
180
|
+
n
|
|
181
181
|
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
182
182
|
}), d.addEventListener("detection", (e) => {
|
|
183
183
|
m(
|
|
184
184
|
L,
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
n = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
186
|
+
n
|
|
187
187
|
), a(5, B = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
188
188
|
}), d.addEventListener("close", async (e) => {
|
|
189
|
-
a(3, p = !0), a(4, v = !1), w || window.dispatchEvent(new CustomEvent(
|
|
189
|
+
a(3, p = !0), a(4, v = !1), w || (Le("Video stream was closed due to loss of focus"), window.dispatchEvent(new CustomEvent(
|
|
190
190
|
"stream-lost-focus",
|
|
191
191
|
{
|
|
192
192
|
detail: {
|
|
193
193
|
message: "Stream de vídeo foi fechado por perda de foco"
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
));
|
|
196
|
+
)));
|
|
197
197
|
}), d.addEventListener("initialize", async (e) => {
|
|
198
|
-
|
|
198
|
+
K = !0, m($, o = !0, o);
|
|
199
199
|
try {
|
|
200
|
-
d.setLicense(
|
|
200
|
+
d.setLicense(ze, "faceDetector");
|
|
201
201
|
} catch (C) {
|
|
202
202
|
te("Error setting license:", C);
|
|
203
203
|
}
|
|
204
|
-
!F &&
|
|
204
|
+
!F && K && await U();
|
|
205
205
|
}), d.addEventListener("capture", async (e) => {
|
|
206
206
|
const { encryptedFile: C, photo: ge } = e.detail[0];
|
|
207
207
|
m(x, c = C, c);
|
|
@@ -219,7 +219,7 @@ function Oe(n, t, a) {
|
|
|
219
219
|
}
|
|
220
220
|
));
|
|
221
221
|
} catch (Q) {
|
|
222
|
-
let X = Q instanceof Error ? Q.message : "UNKNOWN", pe =
|
|
222
|
+
let X = Q instanceof Error ? Q.message : "UNKNOWN", pe = ke[X] || "Erro desconhecido";
|
|
223
223
|
window.dispatchEvent(new CustomEvent(
|
|
224
224
|
"stream-capture",
|
|
225
225
|
{
|
|
@@ -247,22 +247,22 @@ function Oe(n, t, a) {
|
|
|
247
247
|
}), me = z.subscribe((e) => {
|
|
248
248
|
e && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
249
249
|
});
|
|
250
|
-
|
|
251
|
-
fe(), me(), window.removeEventListener("focus",
|
|
250
|
+
De(() => {
|
|
251
|
+
fe(), me(), window.removeEventListener("focus", P), window.removeEventListener("blur", j), document.removeEventListener("visibilitychange", H);
|
|
252
252
|
});
|
|
253
253
|
function be(e) {
|
|
254
|
-
|
|
254
|
+
Fe[e ? "unshift" : "push"](() => {
|
|
255
255
|
d = e, a(0, d);
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
const _e = async () => {
|
|
259
259
|
await q();
|
|
260
260
|
};
|
|
261
|
-
return
|
|
262
|
-
"livenessBlobSize" in e && a(1,
|
|
261
|
+
return s.$$set = (e) => {
|
|
262
|
+
"livenessBlobSize" in e && a(1, W = e.livenessBlobSize), "cameraDeviceId" in e && a(9, y = e.cameraDeviceId), "widgetInstance" in e && a(0, d = e.widgetInstance);
|
|
263
263
|
}, [
|
|
264
264
|
d,
|
|
265
|
-
|
|
265
|
+
W,
|
|
266
266
|
q,
|
|
267
267
|
p,
|
|
268
268
|
v,
|
|
@@ -276,7 +276,7 @@ function Oe(n, t, a) {
|
|
|
276
276
|
_e
|
|
277
277
|
];
|
|
278
278
|
}
|
|
279
|
-
class
|
|
279
|
+
class Ne extends ve {
|
|
280
280
|
constructor(t) {
|
|
281
281
|
super(), he(
|
|
282
282
|
this,
|
|
@@ -285,8 +285,8 @@ class Te extends ve {
|
|
|
285
285
|
props: Ee(this.attributes),
|
|
286
286
|
customElement: !0
|
|
287
287
|
},
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
Te,
|
|
289
|
+
Me,
|
|
290
290
|
we,
|
|
291
291
|
{
|
|
292
292
|
livenessBlobSize: 1,
|
|
@@ -333,7 +333,7 @@ class Te extends ve {
|
|
|
333
333
|
return this.$$.ctx[2];
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
customElements.define("stream-collector",
|
|
336
|
+
customElements.define("stream-collector", Ne);
|
|
337
337
|
export {
|
|
338
|
-
|
|
338
|
+
Ne as default
|
|
339
339
|
};
|
package/dist/{ValidationAlert_966df4ee_3.3.0-RC12.js → ValidationAlert_254410bb_3.3.1-RC02.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as B, x as V, y as Z, z as H, B as n, C as Q, O as Y, E as d, H as c, I as C, a8 as P, $ as K, Q as q,
|
|
1
|
+
import { S as B, x as V, y as Z, z as H, B as n, C as Q, O as Y, E as d, H as c, I as C, a8 as P, $ as K, Q as q, br as k, bs as F, f as R, D as w, G as N, bk as S, N as x, U as L, bt as T, X as I, b7 as h, bu as E, Y as y, b8 as $, M as O, V as ee, ap as te, ah as le, K as U } from "./main_a1df8135_3.3.1-RC02.js";
|
|
2
2
|
function ae(u) {
|
|
3
3
|
let e;
|
|
4
4
|
function i(l, M) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { by as D, bz as V } from "./main_a1df8135_3.3.1-RC02.js";
|
|
2
2
|
function H(e, t) {
|
|
3
3
|
for (var n = 0; n < t.length; n++) {
|
|
4
4
|
const r = t[n];
|
|
@@ -317,17 +317,17 @@ function w(e) {
|
|
|
317
317
|
}
|
|
318
318
|
f.isLong = w;
|
|
319
319
|
var I = {}, B = {};
|
|
320
|
-
function
|
|
320
|
+
function m(e, t) {
|
|
321
321
|
var n, r, s;
|
|
322
322
|
return t ? (e >>>= 0, (s = 0 <= e && e < 256) && (r = B[e], r) ? r : (n = o(e, (e | 0) < 0 ? -1 : 0, !0), s && (B[e] = n), n)) : (e |= 0, (s = -128 <= e && e < 128) && (r = I[e], r) ? r : (n = o(e, e < 0 ? -1 : 0, !1), s && (I[e] = n), n));
|
|
323
323
|
}
|
|
324
|
-
f.fromInt =
|
|
324
|
+
f.fromInt = m;
|
|
325
325
|
function O(e, t) {
|
|
326
326
|
if (isNaN(e))
|
|
327
|
-
return t ?
|
|
327
|
+
return t ? b : y;
|
|
328
328
|
if (t) {
|
|
329
329
|
if (e < 0)
|
|
330
|
-
return
|
|
330
|
+
return b;
|
|
331
331
|
if (e >= Z)
|
|
332
332
|
return j;
|
|
333
333
|
} else {
|
|
@@ -348,7 +348,7 @@ function A(e, t, n) {
|
|
|
348
348
|
if (e.length === 0)
|
|
349
349
|
throw Error("empty string");
|
|
350
350
|
if (e === "NaN" || e === "Infinity" || e === "+Infinity" || e === "-Infinity")
|
|
351
|
-
return
|
|
351
|
+
return y;
|
|
352
352
|
if (typeof t == "number" ? (n = t, t = !1) : t = !!t, n = n || 10, n < 2 || 36 < n)
|
|
353
353
|
throw RangeError("radix");
|
|
354
354
|
var r;
|
|
@@ -356,7 +356,7 @@ function A(e, t, n) {
|
|
|
356
356
|
throw Error("interior hyphen");
|
|
357
357
|
if (r === 0)
|
|
358
358
|
return A(e.substring(1), t, n).neg();
|
|
359
|
-
for (var s = O(T(n, 8)), h =
|
|
359
|
+
for (var s = O(T(n, 8)), h = y, u = 0; u < e.length; u += 8) {
|
|
360
360
|
var F = Math.min(8, e.length - u), E = parseInt(e.substring(u, u + F), n);
|
|
361
361
|
if (F < 8) {
|
|
362
362
|
var l = O(T(n, F));
|
|
@@ -367,19 +367,19 @@ function A(e, t, n) {
|
|
|
367
367
|
return h.unsigned = t, h;
|
|
368
368
|
}
|
|
369
369
|
f.fromString = A;
|
|
370
|
-
function
|
|
370
|
+
function L(e, t) {
|
|
371
371
|
return typeof e == "number" ? O(e, t) : typeof e == "string" ? A(e, t) : o(e.low, e.high, typeof t == "boolean" ? t : e.unsigned);
|
|
372
372
|
}
|
|
373
|
-
f.fromValue =
|
|
374
|
-
var M = 65536, C = 1 << 24, d = M * M, Z = d * d, P = Z / 2, S =
|
|
375
|
-
f.ZERO =
|
|
376
|
-
var
|
|
377
|
-
f.UZERO =
|
|
378
|
-
var
|
|
379
|
-
f.ONE =
|
|
380
|
-
var p =
|
|
373
|
+
f.fromValue = L;
|
|
374
|
+
var M = 65536, C = 1 << 24, d = M * M, Z = d * d, P = Z / 2, S = m(C), y = m(0);
|
|
375
|
+
f.ZERO = y;
|
|
376
|
+
var b = m(0, !0);
|
|
377
|
+
f.UZERO = b;
|
|
378
|
+
var q = m(1);
|
|
379
|
+
f.ONE = q;
|
|
380
|
+
var p = m(1, !0);
|
|
381
381
|
f.UONE = p;
|
|
382
|
-
var U =
|
|
382
|
+
var U = m(-1);
|
|
383
383
|
f.NEG_ONE = U;
|
|
384
384
|
var R = o(-1, 2147483647, !1);
|
|
385
385
|
f.MAX_VALUE = R;
|
|
@@ -450,7 +450,7 @@ i.isEven = function() {
|
|
|
450
450
|
return (this.low & 1) === 0;
|
|
451
451
|
};
|
|
452
452
|
i.equals = function(t) {
|
|
453
|
-
return w(t) || (t =
|
|
453
|
+
return w(t) || (t = L(t)), this.unsigned !== t.unsigned && this.high >>> 31 === 1 && t.high >>> 31 === 1 ? !1 : this.high === t.high && this.low === t.low;
|
|
454
454
|
};
|
|
455
455
|
i.eq = i.equals;
|
|
456
456
|
i.notEquals = function(t) {
|
|
@@ -492,29 +492,29 @@ i.greaterThanOrEqual = function(t) {
|
|
|
492
492
|
i.gte = i.greaterThanOrEqual;
|
|
493
493
|
i.ge = i.greaterThanOrEqual;
|
|
494
494
|
i.compare = function(t) {
|
|
495
|
-
if (w(t) || (t =
|
|
495
|
+
if (w(t) || (t = L(t)), this.eq(t))
|
|
496
496
|
return 0;
|
|
497
497
|
var n = this.isNegative(), r = t.isNegative();
|
|
498
498
|
return n && !r ? -1 : !n && r ? 1 : this.unsigned ? t.high >>> 0 > this.high >>> 0 || t.high === this.high && t.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(t).isNegative() ? -1 : 1;
|
|
499
499
|
};
|
|
500
500
|
i.comp = i.compare;
|
|
501
501
|
i.negate = function() {
|
|
502
|
-
return !this.unsigned && this.eq(c) ? c : this.not().add(
|
|
502
|
+
return !this.unsigned && this.eq(c) ? c : this.not().add(q);
|
|
503
503
|
};
|
|
504
504
|
i.neg = i.negate;
|
|
505
505
|
i.add = function(t) {
|
|
506
|
-
w(t) || (t =
|
|
506
|
+
w(t) || (t = L(t));
|
|
507
507
|
var n = this.high >>> 16, r = this.high & 65535, s = this.low >>> 16, h = this.low & 65535, u = t.high >>> 16, F = t.high & 65535, E = t.low >>> 16, l = t.low & 65535, g = 0, N = 0, a = 0, _ = 0;
|
|
508
508
|
return _ += h + l, a += _ >>> 16, _ &= 65535, a += s + E, N += a >>> 16, a &= 65535, N += r + F, g += N >>> 16, N &= 65535, g += n + u, g &= 65535, o(a << 16 | _, g << 16 | N, this.unsigned);
|
|
509
509
|
};
|
|
510
510
|
i.subtract = function(t) {
|
|
511
|
-
return w(t) || (t =
|
|
511
|
+
return w(t) || (t = L(t)), this.add(t.neg());
|
|
512
512
|
};
|
|
513
513
|
i.sub = i.subtract;
|
|
514
514
|
i.multiply = function(t) {
|
|
515
515
|
if (this.isZero())
|
|
516
|
-
return
|
|
517
|
-
if (w(t) || (t =
|
|
516
|
+
return y;
|
|
517
|
+
if (w(t) || (t = L(t)), v) {
|
|
518
518
|
var n = v.mul(
|
|
519
519
|
this.low,
|
|
520
520
|
this.high,
|
|
@@ -524,11 +524,11 @@ i.multiply = function(t) {
|
|
|
524
524
|
return o(n, v.get_high(), this.unsigned);
|
|
525
525
|
}
|
|
526
526
|
if (t.isZero())
|
|
527
|
-
return
|
|
527
|
+
return y;
|
|
528
528
|
if (this.eq(c))
|
|
529
|
-
return t.isOdd() ? c :
|
|
529
|
+
return t.isOdd() ? c : y;
|
|
530
530
|
if (t.eq(c))
|
|
531
|
-
return this.isOdd() ? c :
|
|
531
|
+
return this.isOdd() ? c : y;
|
|
532
532
|
if (this.isNegative())
|
|
533
533
|
return t.isNegative() ? this.neg().mul(t.neg()) : this.neg().mul(t).neg();
|
|
534
534
|
if (t.isNegative())
|
|
@@ -540,7 +540,7 @@ i.multiply = function(t) {
|
|
|
540
540
|
};
|
|
541
541
|
i.mul = i.multiply;
|
|
542
542
|
i.divide = function(t) {
|
|
543
|
-
if (w(t) || (t =
|
|
543
|
+
if (w(t) || (t = L(t)), t.isZero())
|
|
544
544
|
throw Error("division by zero");
|
|
545
545
|
if (v) {
|
|
546
546
|
if (!this.unsigned && this.high === -2147483648 && t.low === -1 && t.high === -1)
|
|
@@ -554,41 +554,41 @@ i.divide = function(t) {
|
|
|
554
554
|
return o(n, v.get_high(), this.unsigned);
|
|
555
555
|
}
|
|
556
556
|
if (this.isZero())
|
|
557
|
-
return this.unsigned ?
|
|
557
|
+
return this.unsigned ? b : y;
|
|
558
558
|
var r, s, h;
|
|
559
559
|
if (this.unsigned) {
|
|
560
560
|
if (t.unsigned || (t = t.toUnsigned()), t.gt(this))
|
|
561
|
-
return
|
|
561
|
+
return b;
|
|
562
562
|
if (t.gt(this.shru(1)))
|
|
563
563
|
return p;
|
|
564
|
-
h =
|
|
564
|
+
h = b;
|
|
565
565
|
} else {
|
|
566
566
|
if (this.eq(c)) {
|
|
567
|
-
if (t.eq(
|
|
567
|
+
if (t.eq(q) || t.eq(U))
|
|
568
568
|
return c;
|
|
569
569
|
if (t.eq(c))
|
|
570
|
-
return
|
|
570
|
+
return q;
|
|
571
571
|
var u = this.shr(1);
|
|
572
|
-
return r = u.div(t).shl(1), r.eq(
|
|
572
|
+
return r = u.div(t).shl(1), r.eq(y) ? t.isNegative() ? q : U : (s = this.sub(t.mul(r)), h = r.add(s.div(t)), h);
|
|
573
573
|
} else if (t.eq(c))
|
|
574
|
-
return this.unsigned ?
|
|
574
|
+
return this.unsigned ? b : y;
|
|
575
575
|
if (this.isNegative())
|
|
576
576
|
return t.isNegative() ? this.neg().div(t.neg()) : this.neg().div(t).neg();
|
|
577
577
|
if (t.isNegative())
|
|
578
578
|
return this.div(t.neg()).neg();
|
|
579
|
-
h =
|
|
579
|
+
h = y;
|
|
580
580
|
}
|
|
581
581
|
for (s = this; s.gte(t); ) {
|
|
582
582
|
r = Math.max(1, Math.floor(s.toNumber() / t.toNumber()));
|
|
583
583
|
for (var F = Math.ceil(Math.log(r) / Math.LN2), E = F <= 48 ? 1 : T(2, F - 48), l = O(r), g = l.mul(t); g.isNegative() || g.gt(s); )
|
|
584
584
|
r -= E, l = O(r, this.unsigned), g = l.mul(t);
|
|
585
|
-
l.isZero() && (l =
|
|
585
|
+
l.isZero() && (l = q), h = h.add(l), s = s.sub(g);
|
|
586
586
|
}
|
|
587
587
|
return h;
|
|
588
588
|
};
|
|
589
589
|
i.div = i.divide;
|
|
590
590
|
i.modulo = function(t) {
|
|
591
|
-
if (w(t) || (t =
|
|
591
|
+
if (w(t) || (t = L(t)), v) {
|
|
592
592
|
var n = (this.unsigned ? v.rem_u : v.rem_s)(
|
|
593
593
|
this.low,
|
|
594
594
|
this.high,
|
|
@@ -605,13 +605,13 @@ i.not = function() {
|
|
|
605
605
|
return o(~this.low, ~this.high, this.unsigned);
|
|
606
606
|
};
|
|
607
607
|
i.and = function(t) {
|
|
608
|
-
return w(t) || (t =
|
|
608
|
+
return w(t) || (t = L(t)), o(this.low & t.low, this.high & t.high, this.unsigned);
|
|
609
609
|
};
|
|
610
610
|
i.or = function(t) {
|
|
611
|
-
return w(t) || (t =
|
|
611
|
+
return w(t) || (t = L(t)), o(this.low | t.low, this.high | t.high, this.unsigned);
|
|
612
612
|
};
|
|
613
613
|
i.xor = function(t) {
|
|
614
|
-
return w(t) || (t =
|
|
614
|
+
return w(t) || (t = L(t)), o(this.low ^ t.low, this.high ^ t.high, this.unsigned);
|
|
615
615
|
};
|
|
616
616
|
i.shiftLeft = function(t) {
|
|
617
617
|
return w(t) && (t = t.toInt()), (t &= 63) === 0 ? this : t < 32 ? o(this.low << t, this.high << t | this.low >>> 32 - t, this.unsigned) : o(0, this.low << t - 32, this.unsigned);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as D, $ as C, n as b, g as y, i as M, s as l, a as F, l as U, F as L, b as x, c as E, v as P, d as B, e as W, A as v, f as $, h as I, j as g, k, m as q, o as R, p as V, q as X, r as p, t as G } from "./
|
|
2
|
-
import "./face_api_0e3ce8c8_3.3.
|
|
1
|
+
import { u as D, $ as C, n as b, g as y, i as M, s as l, a as F, l as U, F as L, b as x, c as E, v as P, d as B, e as W, A as v, f as $, h as I, j as g, k, m as q, o as R, p as V, q as X, r as p, t as G } from "./main_a1df8135_3.3.1-RC02.js";
|
|
2
|
+
import "./face_api_0e3ce8c8_3.3.1-RC02.js";
|
|
3
3
|
const f = D(C);
|
|
4
4
|
var Q = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(Q || {});
|
|
5
5
|
class r extends Error {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.
|
|
1
|
+
import { bx as eo } from "./main_a1df8135_3.3.1-RC02.js";
|
|
2
|
+
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_64cd23d2_3.3.1-RC02.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.1-RC02.js";
|
|
4
4
|
var pu = { exports: {} };
|
|
5
5
|
pu.exports;
|
|
6
6
|
(function(n) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-
|
|
2
|
-
import {
|
|
3
|
-
import "./face_api_0e3ce8c8_3.3.
|
|
1
|
+
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-proxy_64cd23d2_3.3.1-RC02.js";
|
|
2
|
+
import { bx as Xa, by as hr } from "./main_a1df8135_3.3.1-RC02.js";
|
|
3
|
+
import "./face_api_0e3ce8c8_3.3.1-RC02.js";
|
|
4
4
|
function gr(e, t) {
|
|
5
5
|
for (var n = 0; n < t.length; n++) {
|
|
6
6
|
const s = t[n];
|