@regulaforensics/idv-face 3.10.655-nightly → 3.10.689
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/dist/main.iife.js +1 -1
- package/dist/main.js +23 -45
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/@lit/reactive-element/css-tag.js
|
|
2
2
|
var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, n = Symbol(), r = /* @__PURE__ */ new WeakMap(), i = class {
|
|
3
3
|
constructor(e, t, r) {
|
|
4
4
|
if (this._$cssResult$ = !0, r !== n) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -30,8 +30,7 @@ var e = globalThis, t = e.ShadowRoot && (e.ShadyCSS === void 0 || e.ShadyCSS.nat
|
|
|
30
30
|
for (let n of e.cssRules) t += n.cssText;
|
|
31
31
|
return a(t);
|
|
32
32
|
})(e) : e;
|
|
33
|
-
|
|
34
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/asyncToGenerator.js
|
|
33
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/asyncToGenerator.js
|
|
35
34
|
function l(e, t, n, r, i, a, o) {
|
|
36
35
|
try {
|
|
37
36
|
var s = e[a](o), c = s.value;
|
|
@@ -56,8 +55,7 @@ function u(e) {
|
|
|
56
55
|
});
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
//#region ../../node_modules/@lit/reactive-element/reactive-element.js
|
|
58
|
+
// ../../node_modules/@lit/reactive-element/reactive-element.js
|
|
61
59
|
var d, f, { is: p, defineProperty: m, getOwnPropertyDescriptor: h, getOwnPropertyNames: g, getOwnPropertySymbols: _, getPrototypeOf: v } = Object, y = globalThis, b = y.trustedTypes, x = b ? b.emptyScript : "", S = y.reactiveElementPolyfillSupport, C = (e, t) => e, w = {
|
|
62
60
|
toAttribute(e, t) {
|
|
63
61
|
switch (t) {
|
|
@@ -311,8 +309,7 @@ var D = class extends HTMLElement {
|
|
|
311
309
|
firstUpdated(e) {}
|
|
312
310
|
};
|
|
313
311
|
D.elementStyles = [], D.shadowRootOptions = { mode: "open" }, D[C("elementProperties")] = /* @__PURE__ */ new Map(), D[C("finalized")] = /* @__PURE__ */ new Map(), S == null || S({ ReactiveElement: D }), ((f = y.reactiveElementVersions) == null ? y.reactiveElementVersions = [] : f).push("2.1.2");
|
|
314
|
-
|
|
315
|
-
//#region ../../node_modules/lit-html/lit-html.js
|
|
312
|
+
// ../../node_modules/lit-html/lit-html.js
|
|
316
313
|
var O, k = globalThis, A = (e) => e, j = k.trustedTypes, M = j ? j.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, N = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, F = "?" + P, I = `<${F}>`, L = document, R = () => L.createComment(""), ee = (e) => e === null || typeof e != "object" && typeof e != "function", te = Array.isArray, z = (e) => te(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", ne = "[ \n\f\r]", re = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ae = />/g, oe = RegExp(`>|${ne}(?:([^\\s"'>=/]+)(${ne}*=${ne}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), se = /'/g, ce = /"/g, le = /^(?:script|style|textarea|title)$/i, ue = ((e) => (t, ...n) => ({
|
|
317
314
|
_$litType$: e,
|
|
318
315
|
strings: t,
|
|
@@ -598,8 +595,7 @@ var De = (e, t, n) => {
|
|
|
598
595
|
je._$litElement$ = !0, je.finalized = !0, (Oe = Ae.litElementHydrateSupport) == null || Oe.call(Ae, { LitElement: je });
|
|
599
596
|
var Me = Ae.litElementPolyfillSupport;
|
|
600
597
|
Me == null || Me({ LitElement: je }), ((ke = Ae.litElementVersions) == null ? Ae.litElementVersions = [] : ke).push("4.2.2");
|
|
601
|
-
|
|
602
|
-
//#region ../../node_modules/@lit/reactive-element/decorators/property.js
|
|
598
|
+
// ../../node_modules/@lit/reactive-element/decorators/property.js
|
|
603
599
|
var Ne = {
|
|
604
600
|
attribute: !0,
|
|
605
601
|
type: String,
|
|
@@ -635,8 +631,7 @@ function Fe(e) {
|
|
|
635
631
|
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
636
632
|
})(e, t, n);
|
|
637
633
|
}
|
|
638
|
-
|
|
639
|
-
//#region ../../node_modules/lit-html/directive.js
|
|
634
|
+
// ../../node_modules/lit-html/directive.js
|
|
640
635
|
var Ie = (e) => (...t) => ({
|
|
641
636
|
_$litDirective$: e,
|
|
642
637
|
values: t
|
|
@@ -665,8 +660,7 @@ var Ie = (e) => (...t) => ({
|
|
|
665
660
|
return t !== this.key && (Be(e), this.key = t), n;
|
|
666
661
|
}
|
|
667
662
|
});
|
|
668
|
-
|
|
669
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
663
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
|
|
670
664
|
function He(e) {
|
|
671
665
|
"@babel/helpers - typeof";
|
|
672
666
|
return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -675,8 +669,7 @@ function He(e) {
|
|
|
675
669
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
676
670
|
}, He(e);
|
|
677
671
|
}
|
|
678
|
-
|
|
679
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
672
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
|
|
680
673
|
function Ue(e, t) {
|
|
681
674
|
if (He(e) != "object" || !e) return e;
|
|
682
675
|
var n = e[Symbol.toPrimitive];
|
|
@@ -687,14 +680,12 @@ function Ue(e, t) {
|
|
|
687
680
|
}
|
|
688
681
|
return (t === "string" ? String : Number)(e);
|
|
689
682
|
}
|
|
690
|
-
|
|
691
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
683
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
|
|
692
684
|
function We(e) {
|
|
693
685
|
var t = Ue(e, "string");
|
|
694
686
|
return He(t) == "symbol" ? t : t + "";
|
|
695
687
|
}
|
|
696
|
-
|
|
697
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
688
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
|
|
698
689
|
function Ge(e, t, n) {
|
|
699
690
|
return (t = We(t)) in e ? Object.defineProperty(e, t, {
|
|
700
691
|
value: n,
|
|
@@ -703,8 +694,7 @@ function Ge(e, t, n) {
|
|
|
703
694
|
writable: !0
|
|
704
695
|
}) : e[t] = n, e;
|
|
705
696
|
}
|
|
706
|
-
|
|
707
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
|
|
697
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
|
|
708
698
|
function Ke(e, t) {
|
|
709
699
|
var n = Object.keys(e);
|
|
710
700
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -726,8 +716,7 @@ function qe(e) {
|
|
|
726
716
|
}
|
|
727
717
|
return e;
|
|
728
718
|
}
|
|
729
|
-
|
|
730
|
-
//#region ../interfaces-idv/src/index.ts
|
|
719
|
+
// ../interfaces-idv/src/index.ts
|
|
731
720
|
var Je = class e {
|
|
732
721
|
constructor({ errorCode: e, errorCodeKey: t, message: n, underlyingError: r, underlyingBaseError: i, domain: a, module: o, errorEnumName: s, shortDomainCode: c }) {
|
|
733
722
|
this.errorCode = e, this.errorCodeKey = t, this.message = n, this.underlyingError = r, this.underlyingBaseError = i, this.module = o, this.domain = a, this.errorEnumName = s, this.shortDomainCode = c;
|
|
@@ -840,26 +829,22 @@ var lt = class e extends Je {
|
|
|
840
829
|
}
|
|
841
830
|
};
|
|
842
831
|
st = lt, st.MODULE = rt, st.ERROR_ENUM_NAME = "LivenessError", st.SHORT_CODE = "FML";
|
|
843
|
-
|
|
844
|
-
//#region ../../node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
832
|
+
// ../../node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
845
833
|
var ut = (e) => (t, n) => {
|
|
846
834
|
n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
|
|
847
835
|
customElements.define(e, t);
|
|
848
836
|
});
|
|
849
837
|
};
|
|
850
|
-
|
|
851
|
-
//#region ../../node_modules/@lit/reactive-element/decorators/state.js
|
|
838
|
+
// ../../node_modules/@lit/reactive-element/decorators/state.js
|
|
852
839
|
function dt(e) {
|
|
853
840
|
return Fe(qe(qe({}, e), {}, {
|
|
854
841
|
state: !0,
|
|
855
842
|
attribute: !1
|
|
856
843
|
}));
|
|
857
844
|
}
|
|
858
|
-
|
|
859
|
-
//#region ../../node_modules/@lit/reactive-element/decorators/base.js
|
|
845
|
+
// ../../node_modules/@lit/reactive-element/decorators/base.js
|
|
860
846
|
var ft = (e, t, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, n), n);
|
|
861
|
-
|
|
862
|
-
//#region ../../node_modules/@lit/reactive-element/decorators/query.js
|
|
847
|
+
// ../../node_modules/@lit/reactive-element/decorators/query.js
|
|
863
848
|
function pt(e, t) {
|
|
864
849
|
return (n, r, i) => {
|
|
865
850
|
let a = (t) => {
|
|
@@ -888,8 +873,7 @@ function pt(e, t) {
|
|
|
888
873
|
} });
|
|
889
874
|
};
|
|
890
875
|
}
|
|
891
|
-
|
|
892
|
-
//#region ../../node_modules/@regulaforensics/vp-frontend-face-components/dist/main.js
|
|
876
|
+
// ../../node_modules/@regulaforensics/vp-frontend-face-components/dist/main.js
|
|
893
877
|
var mt = Object.defineProperty, ht = Object.getOwnPropertySymbols, gt = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable, vt = (e, t, n) => t in e ? mt(e, t, {
|
|
894
878
|
enumerable: !0,
|
|
895
879
|
configurable: !0,
|
|
@@ -10922,7 +10906,7 @@ function Px(e, t) {
|
|
|
10922
10906
|
let n = Array.isArray(t.customProtocols) ? t.customProtocols : [], r = new Set(n.map((e) => Tx(e)).filter(Boolean)), i = Ex(e);
|
|
10923
10907
|
if (i && !r.has(i)) return e;
|
|
10924
10908
|
let a = e.startsWith("//");
|
|
10925
|
-
|
|
10909
|
+
!a && /^\.*\//.test(e) || i || (e = e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//, t.defaultProtocol));
|
|
10926
10910
|
let o = new URL(e);
|
|
10927
10911
|
if (t.forceHttp && t.forceHttps) throw Error("The `forceHttp` and `forceHttps` options cannot be used together");
|
|
10928
10912
|
if (t.forceHttp && o.protocol === "https:" && (o.protocol = "http:"), t.forceHttps && o.protocol === "http:" && (o.protocol = "https:"), t.stripAuthentication && (o.username = "", o.password = ""), t.stripHash ? o.hash = "" : t.stripTextFragment && (o.hash = o.hash.replace(/#?:~:text.*?$/i, "")), o.pathname) {
|
|
@@ -14496,8 +14480,7 @@ var QC = class extends HTMLElement {
|
|
|
14496
14480
|
}
|
|
14497
14481
|
}, $C = window.customElements.get("face-capture"), ew = window.customElements.get("face-liveness"), tw = window.customElements.get("fullscreen-container");
|
|
14498
14482
|
$C || window.customElements.define("face-capture", _C), ew || window.customElements.define("face-liveness", JC), tw || window.customElements.define("fullscreen-container", QC);
|
|
14499
|
-
|
|
14500
|
-
//#region src/utils/index.ts
|
|
14483
|
+
// src/utils/index.ts
|
|
14501
14484
|
var nw = (e) => {
|
|
14502
14485
|
try {
|
|
14503
14486
|
return new URL(e), !0;
|
|
@@ -14736,21 +14719,18 @@ var nw = (e) => {
|
|
|
14736
14719
|
height: 100%;
|
|
14737
14720
|
}
|
|
14738
14721
|
`;
|
|
14739
|
-
|
|
14740
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
|
|
14722
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/decorateMetadata.js
|
|
14741
14723
|
function ow(e, t) {
|
|
14742
14724
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
14743
14725
|
}
|
|
14744
|
-
|
|
14745
|
-
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
|
|
14726
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/decorate.js
|
|
14746
14727
|
function sw(e, t, n, r) {
|
|
14747
14728
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
14748
14729
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
14749
14730
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
14750
14731
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
14751
14732
|
}
|
|
14752
|
-
|
|
14753
|
-
//#region src/web-components/face-idv/components/face-liveness-verification/index.ts
|
|
14733
|
+
// src/web-components/face-idv/components/face-liveness-verification/index.ts
|
|
14754
14734
|
var cw = class extends je {
|
|
14755
14735
|
constructor(...e) {
|
|
14756
14736
|
super(...e), this._performType = Ze.DATA, this.props = null, this._isFinishWithExitOnce = !1, this._handleFaceLiveness = (e) => {
|
|
@@ -15059,8 +15039,7 @@ var cw = class extends je {
|
|
|
15059
15039
|
}
|
|
15060
15040
|
}, lw = (cw.styles = [aw], cw);
|
|
15061
15041
|
sw([dt(), ow("design:type", Object)], lw.prototype, "props", void 0), sw([pt("face-liveness"), ow("design:type", Object)], lw.prototype, "_component", void 0), lw = sw([ut("face-liveness-verification")], lw);
|
|
15062
|
-
|
|
15063
|
-
//#region src/web-components/face-idv/index.ts
|
|
15042
|
+
// src/web-components/face-idv/index.ts
|
|
15064
15043
|
var uw, dw = !1, fw = class extends je {
|
|
15065
15044
|
constructor(...e) {
|
|
15066
15045
|
super(...e), this.props = null, this.renderVersion = 0;
|
|
@@ -15092,5 +15071,4 @@ var uw, dw = !1, fw = class extends je {
|
|
|
15092
15071
|
}
|
|
15093
15072
|
};
|
|
15094
15073
|
uw = fw, uw.getSupportedTemplates = () => [nt.LIVENESS], uw.getIdentifier = () => rt, uw.displayName = rt, sw([Fe({ attribute: !1 }), ow("design:type", Object)], fw.prototype, "props", void 0), sw([Fe({ attribute: !1 }), ow("design:type", Object)], fw.prototype, "renderVersion", void 0), Ye(rt, fw);
|
|
15095
|
-
//#endregion
|
|
15096
15074
|
export { fw as FaceIdv };
|
package/package.json
CHANGED