@ahmed_hani/dot-auto-capture-ui 7.4.0 → 7.7.0
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 +29 -7
- package/document.mjs +607 -584
- package/document.umd.js +35 -24
- package/face.mjs +410 -379
- package/face.umd.js +28 -17
- package/magnifeye-liveness.mjs +457 -430
- package/magnifeye-liveness.umd.js +36 -26
- package/multi-range-liveness.mjs +2953 -0
- package/multi-range-liveness.umd.js +257 -0
- package/package.json +14 -9
- package/palm.mjs +750 -687
- package/palm.umd.js +36 -25
- package/smile-liveness.mjs +584 -558
- package/smile-liveness.umd.js +44 -33
- package/ui/src/types/multi-range.d.ts +28 -0
- package/ui/src/types/palm.d.ts +2 -1
- package/ui-common/src/types/common.d.ts +15 -4
- package/ui-common/src/types/events/common.d.ts +41 -0
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/multi-range.d.ts +16 -0
- package/ui-common/src/types/eye-gaze.d.ts +1 -0
- package/ui-common/src/types/index.d.ts +1 -0
- package/ui-common/src/types/magnifeye.d.ts +1 -0
- package/ui-common/src/types/multi-range.d.ts +37 -0
- package/ui-common/src/types/palm.d.ts +1 -1
- package/ui-common/src/types/smile.d.ts +1 -0
- package/tsconfig.production.json +0 -22
|
@@ -0,0 +1,2953 @@
|
|
|
1
|
+
var So = Object.defineProperty;
|
|
2
|
+
var wo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var et = (e, t, n) => wo(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
var Ze, E, _r, fe, kn, hr, pr, mr, sn, zt, Ut, gr, Ge = {}, yr = [], bo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
|
|
5
|
+
function q(e, t) {
|
|
6
|
+
for (var n in t) e[n] = t[n];
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
function cn(e) {
|
|
10
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
11
|
+
}
|
|
12
|
+
function L(e, t, n) {
|
|
13
|
+
var r, o, i, a = {};
|
|
14
|
+
for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
|
|
15
|
+
if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
|
|
16
|
+
return Ue(e, a, r, o, null);
|
|
17
|
+
}
|
|
18
|
+
function Ue(e, t, n, r, o) {
|
|
19
|
+
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++_r, __i: -1, __u: 0 };
|
|
20
|
+
return o == null && E.vnode != null && E.vnode(i), i;
|
|
21
|
+
}
|
|
22
|
+
function $o() {
|
|
23
|
+
return { current: null };
|
|
24
|
+
}
|
|
25
|
+
function G(e) {
|
|
26
|
+
return e.children;
|
|
27
|
+
}
|
|
28
|
+
function V(e, t) {
|
|
29
|
+
this.props = e, this.context = t;
|
|
30
|
+
}
|
|
31
|
+
function be(e, t) {
|
|
32
|
+
if (t == null) return e.__ ? be(e.__, e.__i + 1) : null;
|
|
33
|
+
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
34
|
+
return typeof e.type == "function" ? be(e) : null;
|
|
35
|
+
}
|
|
36
|
+
function vr(e) {
|
|
37
|
+
var t, n;
|
|
38
|
+
if ((e = e.__) != null && e.__c != null) {
|
|
39
|
+
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
|
|
40
|
+
e.__e = e.__c.base = n.__e;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return vr(e);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function Bt(e) {
|
|
47
|
+
(!e.__d && (e.__d = !0) && fe.push(e) && !_t.__r++ || kn != E.debounceRendering) && ((kn = E.debounceRendering) || hr)(_t);
|
|
48
|
+
}
|
|
49
|
+
function _t() {
|
|
50
|
+
for (var e, t, n, r, o, i, a, s = 1; fe.length; ) fe.length > s && fe.sort(pr), e = fe.shift(), s = fe.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, E.vnode && E.vnode(n), ln(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? be(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Sr(i, n, a), n.__e != o && vr(n)));
|
|
51
|
+
_t.__r = 0;
|
|
52
|
+
}
|
|
53
|
+
function Cr(e, t, n, r, o, i, a, s, l, u, f) {
|
|
54
|
+
var c, _, d, g, y, v, m = r && r.__k || yr, p = t.length;
|
|
55
|
+
for (l = Oo(n, t, m, l, p), c = 0; c < p; c++) (d = n.__k[c]) != null && (_ = d.__i == -1 ? Ge : m[d.__i] || Ge, d.__i = c, v = ln(e, d, _, o, i, a, s, l, u, f), g = d.__e, d.ref && _.ref != d.ref && (_.ref && un(_.ref, null, d), f.push(d.ref, d.__c || g, d)), y == null && g != null && (y = g), 4 & d.__u || _.__k === d.__k ? l = Er(d, l, e) : typeof d.type == "function" && v !== void 0 ? l = v : g && (l = g.nextSibling), d.__u &= -7);
|
|
56
|
+
return n.__e = y, l;
|
|
57
|
+
}
|
|
58
|
+
function Oo(e, t, n, r, o) {
|
|
59
|
+
var i, a, s, l, u, f = n.length, c = f, _ = 0;
|
|
60
|
+
for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (l = i + _, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Ue(null, a, null, null, null) : Ye(a) ? Ue(G, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Ue(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = ko(a, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (o > f ? _-- : o < f && _++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? _-- : u == l + 1 ? _++ : (u > l ? _-- : _++, a.__u |= 4))) : e.__k[i] = null;
|
|
61
|
+
if (c) for (i = 0; i < f; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = be(s)), br(s, s));
|
|
62
|
+
return r;
|
|
63
|
+
}
|
|
64
|
+
function Er(e, t, n) {
|
|
65
|
+
var r, o;
|
|
66
|
+
if (typeof e.type == "function") {
|
|
67
|
+
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Er(r[o], t, n));
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
e.__e != t && (t && e.type && !n.contains(t) && (t = be(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
71
|
+
do
|
|
72
|
+
t = t && t.nextSibling;
|
|
73
|
+
while (t != null && t.nodeType == 8);
|
|
74
|
+
return t;
|
|
75
|
+
}
|
|
76
|
+
function te(e, t) {
|
|
77
|
+
return t = t || [], e == null || typeof e == "boolean" || (Ye(e) ? e.some(function(n) {
|
|
78
|
+
te(n, t);
|
|
79
|
+
}) : t.push(e)), t;
|
|
80
|
+
}
|
|
81
|
+
function ko(e, t, n, r) {
|
|
82
|
+
var o, i, a = e.key, s = e.type, l = t[n];
|
|
83
|
+
if (l === null && e.key == null || l && a == l.key && s == l.type && (2 & l.__u) == 0) return n;
|
|
84
|
+
if (r > (l != null && (2 & l.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
|
|
85
|
+
if (o >= 0) {
|
|
86
|
+
if ((l = t[o]) && (2 & l.__u) == 0 && a == l.key && s == l.type) return o;
|
|
87
|
+
o--;
|
|
88
|
+
}
|
|
89
|
+
if (i < t.length) {
|
|
90
|
+
if ((l = t[i]) && (2 & l.__u) == 0 && a == l.key && s == l.type) return i;
|
|
91
|
+
i++;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return -1;
|
|
95
|
+
}
|
|
96
|
+
function Nn(e, t, n) {
|
|
97
|
+
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || bo.test(t) ? n : n + "px";
|
|
98
|
+
}
|
|
99
|
+
function tt(e, t, n, r, o) {
|
|
100
|
+
var i;
|
|
101
|
+
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
|
|
102
|
+
else {
|
|
103
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || Nn(e.style, t, "");
|
|
104
|
+
if (n) for (t in n) r && n[t] == r[t] || Nn(e.style, t, n[t]);
|
|
105
|
+
}
|
|
106
|
+
else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(mr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = sn, e.addEventListener(t, i ? Ut : zt, i)) : e.removeEventListener(t, i ? Ut : zt, i);
|
|
107
|
+
else {
|
|
108
|
+
if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
109
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
110
|
+
e[t] = n ?? "";
|
|
111
|
+
break e;
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function Tn(e) {
|
|
118
|
+
return function(t) {
|
|
119
|
+
if (this.l) {
|
|
120
|
+
var n = this.l[t.type + e];
|
|
121
|
+
if (t.t == null) t.t = sn++;
|
|
122
|
+
else if (t.t < n.u) return;
|
|
123
|
+
return n(E.event ? E.event(t) : t);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function ln(e, t, n, r, o, i, a, s, l, u) {
|
|
128
|
+
var f, c, _, d, g, y, v, m, p, O, b, N, w, C, M, U, Ae, B = t.type;
|
|
129
|
+
if (t.constructor != null) return null;
|
|
130
|
+
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (f = E.__b) && f(t);
|
|
131
|
+
e: if (typeof B == "function") try {
|
|
132
|
+
if (m = t.props, p = "prototype" in B && B.prototype.render, O = (f = B.contextType) && r[f.__c], b = f ? O ? O.props.value : f.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (p ? t.__c = c = new B(m, b) : (t.__c = c = new V(m, b), c.constructor = B, c.render = To), O && O.sub(c), c.props = m, c.state || (c.state = {}), c.context = b, c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), p && c.__s == null && (c.__s = c.state), p && B.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, B.getDerivedStateFromProps(m, c.__s))), d = c.props, g = c.state, c.__v = t, _) p && B.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), p && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
133
|
+
else {
|
|
134
|
+
if (p && B.getDerivedStateFromProps == null && m !== d && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, b), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, b) === !1 || t.__v == n.__v) {
|
|
135
|
+
for (t.__v != n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(le) {
|
|
136
|
+
le && (le.__ = t);
|
|
137
|
+
}), N = 0; N < c._sb.length; N++) c.__h.push(c._sb[N]);
|
|
138
|
+
c._sb = [], c.__h.length && a.push(c);
|
|
139
|
+
break e;
|
|
140
|
+
}
|
|
141
|
+
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, b), p && c.componentDidUpdate != null && c.__h.push(function() {
|
|
142
|
+
c.componentDidUpdate(d, g, y);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
if (c.context = b, c.props = m, c.__P = e, c.__e = !1, w = E.__r, C = 0, p) {
|
|
146
|
+
for (c.state = c.__s, c.__d = !1, w && w(t), f = c.render(c.props, c.state, c.context), M = 0; M < c._sb.length; M++) c.__h.push(c._sb[M]);
|
|
147
|
+
c._sb = [];
|
|
148
|
+
} else do
|
|
149
|
+
c.__d = !1, w && w(t), f = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
150
|
+
while (c.__d && ++C < 25);
|
|
151
|
+
c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), p && !_ && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(d, g)), U = f, f != null && f.type === G && f.key == null && (U = wr(f.props.children)), s = Cr(e, Ye(U) ? U : [U], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), v && (c.__E = c.__ = null);
|
|
152
|
+
} catch (le) {
|
|
153
|
+
if (t.__v = null, l || i != null) if (le.then) {
|
|
154
|
+
for (t.__u |= l ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
155
|
+
i[i.indexOf(s)] = null, t.__e = s;
|
|
156
|
+
} else for (Ae = i.length; Ae--; ) cn(i[Ae]);
|
|
157
|
+
else t.__e = n.__e, t.__k = n.__k;
|
|
158
|
+
E.__e(le, t, n);
|
|
159
|
+
}
|
|
160
|
+
else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = No(n.__e, t, n, r, o, i, a, l, u);
|
|
161
|
+
return (f = E.diffed) && f(t), 128 & t.__u ? void 0 : s;
|
|
162
|
+
}
|
|
163
|
+
function Sr(e, t, n) {
|
|
164
|
+
for (var r = 0; r < n.length; r++) un(n[r], n[++r], n[++r]);
|
|
165
|
+
E.__c && E.__c(t, e), e.some(function(o) {
|
|
166
|
+
try {
|
|
167
|
+
e = o.__h, o.__h = [], e.some(function(i) {
|
|
168
|
+
i.call(o);
|
|
169
|
+
});
|
|
170
|
+
} catch (i) {
|
|
171
|
+
E.__e(i, o.__v);
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function wr(e) {
|
|
176
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(wr) : q({}, e);
|
|
177
|
+
}
|
|
178
|
+
function No(e, t, n, r, o, i, a, s, l) {
|
|
179
|
+
var u, f, c, _, d, g, y, v = n.props, m = t.props, p = t.type;
|
|
180
|
+
if (p == "svg" ? o = "http://www.w3.org/2000/svg" : p == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
181
|
+
for (u = 0; u < i.length; u++) if ((d = i[u]) && "setAttribute" in d == !!p && (p ? d.localName == p : d.nodeType == 3)) {
|
|
182
|
+
e = d, i[u] = null;
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (e == null) {
|
|
187
|
+
if (p == null) return document.createTextNode(m);
|
|
188
|
+
e = document.createElementNS(o, p, m.is && m), s && (E.__m && E.__m(t, i), s = !1), i = null;
|
|
189
|
+
}
|
|
190
|
+
if (p == null) v === m || s && e.data == m || (e.data = m);
|
|
191
|
+
else {
|
|
192
|
+
if (i = i && Ze.call(e.childNodes), v = n.props || Ge, !s && i != null) for (v = {}, u = 0; u < e.attributes.length; u++) v[(d = e.attributes[u]).name] = d.value;
|
|
193
|
+
for (u in v) if (d = v[u], u != "children") {
|
|
194
|
+
if (u == "dangerouslySetInnerHTML") c = d;
|
|
195
|
+
else if (!(u in m)) {
|
|
196
|
+
if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
|
|
197
|
+
tt(e, u, null, d, o);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
for (u in m) d = m[u], u == "children" ? _ = d : u == "dangerouslySetInnerHTML" ? f = d : u == "value" ? g = d : u == "checked" ? y = d : s && typeof d != "function" || v[u] === d || tt(e, u, d, v[u], o);
|
|
201
|
+
if (f) s || c && (f.__html == c.__html || f.__html == e.innerHTML) || (e.innerHTML = f.__html), t.__k = [];
|
|
202
|
+
else if (c && (e.innerHTML = ""), Cr(t.type == "template" ? e.content : e, Ye(_) ? _ : [_], t, n, r, p == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && be(n, 0), s, l), i != null) for (u = i.length; u--; ) cn(i[u]);
|
|
203
|
+
s || (u = "value", p == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || p == "progress" && !g || p == "option" && g != v[u]) && tt(e, u, g, v[u], o), u = "checked", y != null && y != e[u] && tt(e, u, y, v[u], o));
|
|
204
|
+
}
|
|
205
|
+
return e;
|
|
206
|
+
}
|
|
207
|
+
function un(e, t, n) {
|
|
208
|
+
try {
|
|
209
|
+
if (typeof e == "function") {
|
|
210
|
+
var r = typeof e.__u == "function";
|
|
211
|
+
r && e.__u(), r && t == null || (e.__u = e(t));
|
|
212
|
+
} else e.current = t;
|
|
213
|
+
} catch (o) {
|
|
214
|
+
E.__e(o, n);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function br(e, t, n) {
|
|
218
|
+
var r, o;
|
|
219
|
+
if (E.unmount && E.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || un(r, null, t)), (r = e.__c) != null) {
|
|
220
|
+
if (r.componentWillUnmount) try {
|
|
221
|
+
r.componentWillUnmount();
|
|
222
|
+
} catch (i) {
|
|
223
|
+
E.__e(i, t);
|
|
224
|
+
}
|
|
225
|
+
r.base = r.__P = null;
|
|
226
|
+
}
|
|
227
|
+
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && br(r[o], t, n || typeof e.type != "function");
|
|
228
|
+
n || cn(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
229
|
+
}
|
|
230
|
+
function To(e, t, n) {
|
|
231
|
+
return this.constructor(e, n);
|
|
232
|
+
}
|
|
233
|
+
function se(e, t, n) {
|
|
234
|
+
var r, o, i, a;
|
|
235
|
+
t == document && (t = document.documentElement), E.__ && E.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], ln(t, e = (!r && n || t).__k = L(G, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Sr(i, e, a);
|
|
236
|
+
}
|
|
237
|
+
function fn(e, t) {
|
|
238
|
+
se(e, t, fn);
|
|
239
|
+
}
|
|
240
|
+
function dn(e, t, n) {
|
|
241
|
+
var r, o, i, a, s = q({}, e.props);
|
|
242
|
+
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i] == null && a != null ? a[i] : t[i];
|
|
243
|
+
return arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), Ue(e.type, s, r || e.key, o || e.ref, null);
|
|
244
|
+
}
|
|
245
|
+
function $r(e) {
|
|
246
|
+
function t(n) {
|
|
247
|
+
var r, o;
|
|
248
|
+
return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
|
|
249
|
+
return o;
|
|
250
|
+
}, this.componentWillUnmount = function() {
|
|
251
|
+
r = null;
|
|
252
|
+
}, this.shouldComponentUpdate = function(i) {
|
|
253
|
+
this.props.value != i.value && r.forEach(function(a) {
|
|
254
|
+
a.__e = !0, Bt(a);
|
|
255
|
+
});
|
|
256
|
+
}, this.sub = function(i) {
|
|
257
|
+
r.add(i);
|
|
258
|
+
var a = i.componentWillUnmount;
|
|
259
|
+
i.componentWillUnmount = function() {
|
|
260
|
+
r && r.delete(i), a && a.call(i);
|
|
261
|
+
};
|
|
262
|
+
}), n.children;
|
|
263
|
+
}
|
|
264
|
+
return t.__c = "__cC" + gr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
|
|
265
|
+
return n.children(r);
|
|
266
|
+
}).contextType = t, t;
|
|
267
|
+
}
|
|
268
|
+
Ze = yr.slice, E = { __e: function(e, t, n, r) {
|
|
269
|
+
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
270
|
+
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
|
|
271
|
+
} catch (s) {
|
|
272
|
+
e = s;
|
|
273
|
+
}
|
|
274
|
+
throw e;
|
|
275
|
+
} }, _r = 0, V.prototype.setState = function(e, t) {
|
|
276
|
+
var n;
|
|
277
|
+
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = q({}, this.state), typeof e == "function" && (e = e(q({}, n), this.props)), e && q(n, e), e != null && this.__v && (t && this._sb.push(t), Bt(this));
|
|
278
|
+
}, V.prototype.forceUpdate = function(e) {
|
|
279
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Bt(this));
|
|
280
|
+
}, V.prototype.render = G, fe = [], hr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, pr = function(e, t) {
|
|
281
|
+
return e.__v.__b - t.__v.__b;
|
|
282
|
+
}, _t.__r = 0, mr = /(PointerCapture)$|Capture$/i, sn = 0, zt = Tn(!1), Ut = Tn(!0), gr = 0;
|
|
283
|
+
function _n() {
|
|
284
|
+
return (_n = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
286
|
+
var n = arguments[t];
|
|
287
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
288
|
+
}
|
|
289
|
+
return e;
|
|
290
|
+
}).apply(this, arguments);
|
|
291
|
+
}
|
|
292
|
+
var Io = ["context", "children"];
|
|
293
|
+
function Ro(e) {
|
|
294
|
+
this.getChildContext = function() {
|
|
295
|
+
return e.context;
|
|
296
|
+
};
|
|
297
|
+
var t = e.children, n = function(r, o) {
|
|
298
|
+
if (r == null) return {};
|
|
299
|
+
var i, a, s = {}, l = Object.keys(r);
|
|
300
|
+
for (a = 0; a < l.length; a++) o.indexOf(i = l[a]) >= 0 || (s[i] = r[i]);
|
|
301
|
+
return s;
|
|
302
|
+
}(e, Io);
|
|
303
|
+
return dn(t, n);
|
|
304
|
+
}
|
|
305
|
+
function xo() {
|
|
306
|
+
var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
307
|
+
this.dispatchEvent(e), this._vdom = L(Ro, _n({}, this._props, { context: e.detail.context }), function t(n, r) {
|
|
308
|
+
if (n.nodeType === 3) return n.data;
|
|
309
|
+
if (n.nodeType !== 1) return null;
|
|
310
|
+
var o = [], i = {}, a = 0, s = n.attributes, l = n.childNodes;
|
|
311
|
+
for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[Or(s[a].name)] = s[a].value);
|
|
312
|
+
for (a = l.length; a--; ) {
|
|
313
|
+
var u = t(l[a], null), f = l[a].slot;
|
|
314
|
+
f ? i[f] = L(In, { name: f }, u) : o[a] = u;
|
|
315
|
+
}
|
|
316
|
+
var c = r ? L(In, null, o) : o;
|
|
317
|
+
return L(r || n.nodeName.toLowerCase(), i, c);
|
|
318
|
+
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? fn : se)(this._vdom, this._root);
|
|
319
|
+
}
|
|
320
|
+
function Or(e) {
|
|
321
|
+
return e.replace(/-(\w)/g, function(t, n) {
|
|
322
|
+
return n ? n.toUpperCase() : "";
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function Ao(e, t, n) {
|
|
326
|
+
if (this._vdom) {
|
|
327
|
+
var r = {};
|
|
328
|
+
r[e] = n = n ?? void 0, r[Or(e)] = n, this._vdom = dn(this._vdom, r), se(this._vdom, this._root);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function Po() {
|
|
332
|
+
se(this._vdom = null, this._root);
|
|
333
|
+
}
|
|
334
|
+
function In(e, t) {
|
|
335
|
+
var n = this;
|
|
336
|
+
return L("slot", _n({}, e, { ref: function(r) {
|
|
337
|
+
r ? (n.ref = r, n._listener || (n._listener = function(o) {
|
|
338
|
+
o.stopPropagation(), o.detail.context = t;
|
|
339
|
+
}, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
|
|
340
|
+
} }));
|
|
341
|
+
}
|
|
342
|
+
function Lo(e, t, n, r) {
|
|
343
|
+
function o() {
|
|
344
|
+
var i = Reflect.construct(HTMLElement, [], o);
|
|
345
|
+
return i._vdomComponent = e, i._root = i, i;
|
|
346
|
+
}
|
|
347
|
+
return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = xo, o.prototype.attributeChangedCallback = Ao, o.prototype.disconnectedCallback = Po, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
|
|
348
|
+
Object.defineProperty(o.prototype, i, { get: function() {
|
|
349
|
+
return this._vdom.props[i];
|
|
350
|
+
}, set: function(a) {
|
|
351
|
+
this._vdom ? this.attributeChangedCallback(i, null, a) : (this._props || (this._props = {}), this._props[i] = a, this.connectedCallback());
|
|
352
|
+
var s = typeof a;
|
|
353
|
+
a != null && s !== "string" && s !== "boolean" && s !== "number" || this.setAttribute(i, a);
|
|
354
|
+
} });
|
|
355
|
+
}), customElements.define(t, o);
|
|
356
|
+
}
|
|
357
|
+
var Do = 0;
|
|
358
|
+
function h(e, t, n, r, o, i) {
|
|
359
|
+
t || (t = {});
|
|
360
|
+
var a, s, l = t;
|
|
361
|
+
if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s];
|
|
362
|
+
var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Do, __i: -1, __u: 0, __source: o, __self: i };
|
|
363
|
+
if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
|
|
364
|
+
return E.vnode && E.vnode(u), u;
|
|
365
|
+
}
|
|
366
|
+
const Rn = {
|
|
367
|
+
SWITCH_CAMERA: "switch-camera",
|
|
368
|
+
TOGGLE_MIRROR: "toggle-mirror"
|
|
369
|
+
}, je = {
|
|
370
|
+
DETECTION_CHANGED: "multi-range-auto-capture:detection-changed",
|
|
371
|
+
CAMERA_PROPS_CHANGED: "multi-range-auto-capture:camera-props-changed",
|
|
372
|
+
CONTROL: "multi-range-auto-capture:control",
|
|
373
|
+
INSTRUCTION_CHANGED: "multi-range-auto-capture:instruction-changed",
|
|
374
|
+
VIDEO_ELEMENT_SIZE: "multi-range-auto-capture:video-element-size",
|
|
375
|
+
CHALLENGE_VALUE_CHANGED: "multi-range-auto-capture:challenge-value-changed",
|
|
376
|
+
STATE_CHANGED: "multi-range-auto-capture:state-changed"
|
|
377
|
+
}, F = {
|
|
378
|
+
LOADING: "LOADING",
|
|
379
|
+
ERROR: "ERROR",
|
|
380
|
+
WAITING: "WAITING",
|
|
381
|
+
RUNNING: "RUNNING",
|
|
382
|
+
COMPLETE: "COMPLETE"
|
|
383
|
+
}, xn = {
|
|
384
|
+
EYE_NOT_PRESENT: "eye_not_present"
|
|
385
|
+
}, D = {
|
|
386
|
+
CANDIDATE_SELECTION: "candidate_selection",
|
|
387
|
+
FACE_TOO_CLOSE: "face_too_close",
|
|
388
|
+
FACE_TOO_FAR: "face_too_far",
|
|
389
|
+
FACE_CENTERING: "face_centering",
|
|
390
|
+
FACE_NOT_PRESENT: "face_not_present",
|
|
391
|
+
SHARPNESS_TOO_LOW: "sharpness_too_low",
|
|
392
|
+
BRIGHTNESS_TOO_LOW: "brightness_too_low",
|
|
393
|
+
BRIGHTNESS_TOO_HIGH: "brightness_too_high",
|
|
394
|
+
DEVICE_PITCHED: "device_pitched",
|
|
395
|
+
LEFT_EYE_NOT_PRESENT: `left_${xn.EYE_NOT_PRESENT}`,
|
|
396
|
+
RIGHT_EYE_NOT_PRESENT: `right_${xn.EYE_NOT_PRESENT}`,
|
|
397
|
+
MOUTH_NOT_PRESENT: "mouth_not_present",
|
|
398
|
+
MOUTH_SCORE_TOO_HIGH: "mouth_score_too_high",
|
|
399
|
+
MOUTH_SCORE_TOO_LOW: "mouth_score_too_low"
|
|
400
|
+
}, ht = {
|
|
401
|
+
CANDIDATE_SELECTION: "candidate_selection",
|
|
402
|
+
FACE_TOO_CLOSE: "face_too_close",
|
|
403
|
+
FACE_TOO_FAR: "face_too_far",
|
|
404
|
+
FACE_NOT_PRESENT: "face_not_present"
|
|
405
|
+
}, Ee = {
|
|
406
|
+
ZERO: "ZERO",
|
|
407
|
+
ONE: "ONE",
|
|
408
|
+
TWO: "TWO",
|
|
409
|
+
THREE: "THREE",
|
|
410
|
+
FOUR: "FOUR",
|
|
411
|
+
FIVE: "FIVE"
|
|
412
|
+
};
|
|
413
|
+
var ce, I, xt, An, $e = 0, kr = [], R = E, Pn = R.__b, Ln = R.__r, Dn = R.diffed, Mn = R.__c, Fn = R.unmount, Hn = R.__;
|
|
414
|
+
function Ie(e, t) {
|
|
415
|
+
R.__h && R.__h(I, e, $e || t), $e = 0;
|
|
416
|
+
var n = I.__H || (I.__H = { __: [], __h: [] });
|
|
417
|
+
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
418
|
+
}
|
|
419
|
+
function H(e) {
|
|
420
|
+
return $e = 1, hn(Ir, e);
|
|
421
|
+
}
|
|
422
|
+
function hn(e, t, n) {
|
|
423
|
+
var r = Ie(ce++, 2);
|
|
424
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ir(void 0, t), function(s) {
|
|
425
|
+
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
|
|
426
|
+
l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
427
|
+
}], r.__c = I, !I.__f)) {
|
|
428
|
+
var o = function(s, l, u) {
|
|
429
|
+
if (!r.__c.__H) return !0;
|
|
430
|
+
var f = r.__c.__H.__.filter(function(_) {
|
|
431
|
+
return !!_.__c;
|
|
432
|
+
});
|
|
433
|
+
if (f.every(function(_) {
|
|
434
|
+
return !_.__N;
|
|
435
|
+
})) return !i || i.call(this, s, l, u);
|
|
436
|
+
var c = r.__c.props !== s;
|
|
437
|
+
return f.forEach(function(_) {
|
|
438
|
+
if (_.__N) {
|
|
439
|
+
var d = _.__[0];
|
|
440
|
+
_.__ = _.__N, _.__N = void 0, d !== _.__[0] && (c = !0);
|
|
441
|
+
}
|
|
442
|
+
}), i && i.call(this, s, l, u) || c;
|
|
443
|
+
};
|
|
444
|
+
I.__f = !0;
|
|
445
|
+
var i = I.shouldComponentUpdate, a = I.componentWillUpdate;
|
|
446
|
+
I.componentWillUpdate = function(s, l, u) {
|
|
447
|
+
if (this.__e) {
|
|
448
|
+
var f = i;
|
|
449
|
+
i = void 0, o(s, l, u), i = f;
|
|
450
|
+
}
|
|
451
|
+
a && a.call(this, s, l, u);
|
|
452
|
+
}, I.shouldComponentUpdate = o;
|
|
453
|
+
}
|
|
454
|
+
return r.__N || r.__;
|
|
455
|
+
}
|
|
456
|
+
function K(e, t) {
|
|
457
|
+
var n = Ie(ce++, 3);
|
|
458
|
+
!R.__s && pn(n.__H, t) && (n.__ = e, n.u = t, I.__H.__h.push(n));
|
|
459
|
+
}
|
|
460
|
+
function Re(e, t) {
|
|
461
|
+
var n = Ie(ce++, 4);
|
|
462
|
+
!R.__s && pn(n.__H, t) && (n.__ = e, n.u = t, I.__h.push(n));
|
|
463
|
+
}
|
|
464
|
+
function qe(e) {
|
|
465
|
+
return $e = 5, ne(function() {
|
|
466
|
+
return { current: e };
|
|
467
|
+
}, []);
|
|
468
|
+
}
|
|
469
|
+
function Nr(e, t, n) {
|
|
470
|
+
$e = 6, Re(function() {
|
|
471
|
+
if (typeof e == "function") {
|
|
472
|
+
var r = e(t());
|
|
473
|
+
return function() {
|
|
474
|
+
e(null), r && typeof r == "function" && r();
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
if (e) return e.current = t(), function() {
|
|
478
|
+
return e.current = null;
|
|
479
|
+
};
|
|
480
|
+
}, n == null ? n : n.concat(e));
|
|
481
|
+
}
|
|
482
|
+
function ne(e, t) {
|
|
483
|
+
var n = Ie(ce++, 7);
|
|
484
|
+
return pn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
485
|
+
}
|
|
486
|
+
function ae(e, t) {
|
|
487
|
+
return $e = 8, ne(function() {
|
|
488
|
+
return e;
|
|
489
|
+
}, t);
|
|
490
|
+
}
|
|
491
|
+
function Xe(e) {
|
|
492
|
+
var t = I.context[e.__c], n = Ie(ce++, 9);
|
|
493
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(I)), t.props.value) : e.__;
|
|
494
|
+
}
|
|
495
|
+
function pt(e, t) {
|
|
496
|
+
R.useDebugValue && R.useDebugValue(t ? t(e) : e);
|
|
497
|
+
}
|
|
498
|
+
function Tr() {
|
|
499
|
+
var e = Ie(ce++, 11);
|
|
500
|
+
if (!e.__) {
|
|
501
|
+
for (var t = I.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
502
|
+
var n = t.__m || (t.__m = [0, 0]);
|
|
503
|
+
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
504
|
+
}
|
|
505
|
+
return e.__;
|
|
506
|
+
}
|
|
507
|
+
function Mo() {
|
|
508
|
+
for (var e; e = kr.shift(); ) if (e.__P && e.__H) try {
|
|
509
|
+
e.__H.__h.forEach(at), e.__H.__h.forEach(Wt), e.__H.__h = [];
|
|
510
|
+
} catch (t) {
|
|
511
|
+
e.__H.__h = [], R.__e(t, e.__v);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
R.__b = function(e) {
|
|
515
|
+
I = null, Pn && Pn(e);
|
|
516
|
+
}, R.__ = function(e, t) {
|
|
517
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Hn && Hn(e, t);
|
|
518
|
+
}, R.__r = function(e) {
|
|
519
|
+
Ln && Ln(e), ce = 0;
|
|
520
|
+
var t = (I = e.__c).__H;
|
|
521
|
+
t && (xt === I ? (t.__h = [], I.__h = [], t.__.forEach(function(n) {
|
|
522
|
+
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
523
|
+
})) : (t.__h.forEach(at), t.__h.forEach(Wt), t.__h = [], ce = 0)), xt = I;
|
|
524
|
+
}, R.diffed = function(e) {
|
|
525
|
+
Dn && Dn(e);
|
|
526
|
+
var t = e.__c;
|
|
527
|
+
t && t.__H && (t.__H.__h.length && (kr.push(t) !== 1 && An === R.requestAnimationFrame || ((An = R.requestAnimationFrame) || Fo)(Mo)), t.__H.__.forEach(function(n) {
|
|
528
|
+
n.u && (n.__H = n.u), n.u = void 0;
|
|
529
|
+
})), xt = I = null;
|
|
530
|
+
}, R.__c = function(e, t) {
|
|
531
|
+
t.some(function(n) {
|
|
532
|
+
try {
|
|
533
|
+
n.__h.forEach(at), n.__h = n.__h.filter(function(r) {
|
|
534
|
+
return !r.__ || Wt(r);
|
|
535
|
+
});
|
|
536
|
+
} catch (r) {
|
|
537
|
+
t.some(function(o) {
|
|
538
|
+
o.__h && (o.__h = []);
|
|
539
|
+
}), t = [], R.__e(r, n.__v);
|
|
540
|
+
}
|
|
541
|
+
}), Mn && Mn(e, t);
|
|
542
|
+
}, R.unmount = function(e) {
|
|
543
|
+
Fn && Fn(e);
|
|
544
|
+
var t, n = e.__c;
|
|
545
|
+
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
546
|
+
try {
|
|
547
|
+
at(r);
|
|
548
|
+
} catch (o) {
|
|
549
|
+
t = o;
|
|
550
|
+
}
|
|
551
|
+
}), n.__H = void 0, t && R.__e(t, n.__v));
|
|
552
|
+
};
|
|
553
|
+
var zn = typeof requestAnimationFrame == "function";
|
|
554
|
+
function Fo(e) {
|
|
555
|
+
var t, n = function() {
|
|
556
|
+
clearTimeout(r), zn && cancelAnimationFrame(t), setTimeout(e);
|
|
557
|
+
}, r = setTimeout(n, 100);
|
|
558
|
+
zn && (t = requestAnimationFrame(n));
|
|
559
|
+
}
|
|
560
|
+
function at(e) {
|
|
561
|
+
var t = I, n = e.__c;
|
|
562
|
+
typeof n == "function" && (e.__c = void 0, n()), I = t;
|
|
563
|
+
}
|
|
564
|
+
function Wt(e) {
|
|
565
|
+
var t = I;
|
|
566
|
+
e.__c = e.__(), I = t;
|
|
567
|
+
}
|
|
568
|
+
function pn(e, t) {
|
|
569
|
+
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
570
|
+
return n !== e[r];
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
function Ir(e, t) {
|
|
574
|
+
return typeof t == "function" ? t(e) : t;
|
|
575
|
+
}
|
|
576
|
+
var P = function() {
|
|
577
|
+
return P = Object.assign || function(t) {
|
|
578
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
579
|
+
n = arguments[r];
|
|
580
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
581
|
+
}
|
|
582
|
+
return t;
|
|
583
|
+
}, P.apply(this, arguments);
|
|
584
|
+
};
|
|
585
|
+
function me(e, t, n) {
|
|
586
|
+
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
587
|
+
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
588
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
589
|
+
}
|
|
590
|
+
function Ho(e) {
|
|
591
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
592
|
+
return function(n) {
|
|
593
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
var zo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Uo = /* @__PURE__ */ Ho(
|
|
597
|
+
function(e) {
|
|
598
|
+
return zo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
599
|
+
}
|
|
600
|
+
/* Z+1 */
|
|
601
|
+
);
|
|
602
|
+
function Rr(e, t) {
|
|
603
|
+
for (var n in t) e[n] = t[n];
|
|
604
|
+
return e;
|
|
605
|
+
}
|
|
606
|
+
function Gt(e, t) {
|
|
607
|
+
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
608
|
+
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
609
|
+
return !1;
|
|
610
|
+
}
|
|
611
|
+
function xr(e, t) {
|
|
612
|
+
var n = t(), r = H({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
|
|
613
|
+
return Re(function() {
|
|
614
|
+
o.__ = n, o.u = t, At(o) && i({ t: o });
|
|
615
|
+
}, [e, n, t]), K(function() {
|
|
616
|
+
return At(o) && i({ t: o }), e(function() {
|
|
617
|
+
At(o) && i({ t: o });
|
|
618
|
+
});
|
|
619
|
+
}, [e]), n;
|
|
620
|
+
}
|
|
621
|
+
function At(e) {
|
|
622
|
+
var t, n, r = e.u, o = e.__;
|
|
623
|
+
try {
|
|
624
|
+
var i = r();
|
|
625
|
+
return !((t = o) === (n = i) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
|
|
626
|
+
} catch {
|
|
627
|
+
return !0;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function Ar(e) {
|
|
631
|
+
e();
|
|
632
|
+
}
|
|
633
|
+
function Pr(e) {
|
|
634
|
+
return e;
|
|
635
|
+
}
|
|
636
|
+
function Lr() {
|
|
637
|
+
return [!1, Ar];
|
|
638
|
+
}
|
|
639
|
+
var Dr = Re;
|
|
640
|
+
function jt(e, t) {
|
|
641
|
+
this.props = e, this.context = t;
|
|
642
|
+
}
|
|
643
|
+
function Bo(e, t) {
|
|
644
|
+
function n(o) {
|
|
645
|
+
var i = this.props.ref, a = i == o.ref;
|
|
646
|
+
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Gt(this.props, o);
|
|
647
|
+
}
|
|
648
|
+
function r(o) {
|
|
649
|
+
return this.shouldComponentUpdate = n, L(e, o);
|
|
650
|
+
}
|
|
651
|
+
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
652
|
+
}
|
|
653
|
+
(jt.prototype = new V()).isPureReactComponent = !0, jt.prototype.shouldComponentUpdate = function(e, t) {
|
|
654
|
+
return Gt(this.props, e) || Gt(this.state, t);
|
|
655
|
+
};
|
|
656
|
+
var Un = E.__b;
|
|
657
|
+
E.__b = function(e) {
|
|
658
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Un && Un(e);
|
|
659
|
+
};
|
|
660
|
+
var Wo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
661
|
+
function Go(e) {
|
|
662
|
+
function t(n) {
|
|
663
|
+
var r = Rr({}, n);
|
|
664
|
+
return delete r.ref, e(r, n.ref || null);
|
|
665
|
+
}
|
|
666
|
+
return t.$$typeof = Wo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
667
|
+
}
|
|
668
|
+
var Bn = function(e, t) {
|
|
669
|
+
return e == null ? null : te(te(e).map(t));
|
|
670
|
+
}, jo = { map: Bn, forEach: Bn, count: function(e) {
|
|
671
|
+
return e ? te(e).length : 0;
|
|
672
|
+
}, only: function(e) {
|
|
673
|
+
var t = te(e);
|
|
674
|
+
if (t.length !== 1) throw "Children.only";
|
|
675
|
+
return t[0];
|
|
676
|
+
}, toArray: te }, Vo = E.__e;
|
|
677
|
+
E.__e = function(e, t, n, r) {
|
|
678
|
+
if (e.then) {
|
|
679
|
+
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
680
|
+
}
|
|
681
|
+
Vo(e, t, n, r);
|
|
682
|
+
};
|
|
683
|
+
var Wn = E.unmount;
|
|
684
|
+
function Mr(e, t, n) {
|
|
685
|
+
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
686
|
+
typeof r.__c == "function" && r.__c();
|
|
687
|
+
}), e.__c.__H = null), (e = Rr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
688
|
+
return Mr(r, t, n);
|
|
689
|
+
})), e;
|
|
690
|
+
}
|
|
691
|
+
function Fr(e, t, n) {
|
|
692
|
+
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
693
|
+
return Fr(r, t, n);
|
|
694
|
+
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
695
|
+
}
|
|
696
|
+
function st() {
|
|
697
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
698
|
+
}
|
|
699
|
+
function Hr(e) {
|
|
700
|
+
var t = e.__.__c;
|
|
701
|
+
return t && t.__a && t.__a(e);
|
|
702
|
+
}
|
|
703
|
+
function Zo(e) {
|
|
704
|
+
var t, n, r;
|
|
705
|
+
function o(i) {
|
|
706
|
+
if (t || (t = e()).then(function(a) {
|
|
707
|
+
n = a.default || a;
|
|
708
|
+
}, function(a) {
|
|
709
|
+
r = a;
|
|
710
|
+
}), r) throw r;
|
|
711
|
+
if (!n) throw t;
|
|
712
|
+
return L(n, i);
|
|
713
|
+
}
|
|
714
|
+
return o.displayName = "Lazy", o.__f = !0, o;
|
|
715
|
+
}
|
|
716
|
+
function Fe() {
|
|
717
|
+
this.i = null, this.l = null;
|
|
718
|
+
}
|
|
719
|
+
E.unmount = function(e) {
|
|
720
|
+
var t = e.__c;
|
|
721
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Wn && Wn(e);
|
|
722
|
+
}, (st.prototype = new V()).__c = function(e, t) {
|
|
723
|
+
var n = t.__c, r = this;
|
|
724
|
+
r.o == null && (r.o = []), r.o.push(n);
|
|
725
|
+
var o = Hr(r.__v), i = !1, a = function() {
|
|
726
|
+
i || (i = !0, n.__R = null, o ? o(s) : s());
|
|
727
|
+
};
|
|
728
|
+
n.__R = a;
|
|
729
|
+
var s = function() {
|
|
730
|
+
if (!--r.__u) {
|
|
731
|
+
if (r.state.__a) {
|
|
732
|
+
var l = r.state.__a;
|
|
733
|
+
r.__v.__k[0] = Fr(l, l.__c.__P, l.__c.__O);
|
|
734
|
+
}
|
|
735
|
+
var u;
|
|
736
|
+
for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
|
|
740
|
+
}, st.prototype.componentWillUnmount = function() {
|
|
741
|
+
this.o = [];
|
|
742
|
+
}, st.prototype.render = function(e, t) {
|
|
743
|
+
if (this.__b) {
|
|
744
|
+
if (this.__v.__k) {
|
|
745
|
+
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
746
|
+
this.__v.__k[0] = Mr(this.__b, n, r.__O = r.__P);
|
|
747
|
+
}
|
|
748
|
+
this.__b = null;
|
|
749
|
+
}
|
|
750
|
+
var o = t.__a && L(G, null, e.fallback);
|
|
751
|
+
return o && (o.__u &= -33), [L(G, null, t.__a ? null : e.children), o];
|
|
752
|
+
};
|
|
753
|
+
var Gn = function(e, t, n) {
|
|
754
|
+
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
755
|
+
for (; n.length > 3; ) n.pop()();
|
|
756
|
+
if (n[1] < n[0]) break;
|
|
757
|
+
e.i = n = n[2];
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
function Yo(e) {
|
|
761
|
+
return this.getChildContext = function() {
|
|
762
|
+
return e.context;
|
|
763
|
+
}, e.children;
|
|
764
|
+
}
|
|
765
|
+
function qo(e) {
|
|
766
|
+
var t = this, n = e.h;
|
|
767
|
+
if (t.componentWillUnmount = function() {
|
|
768
|
+
se(null, t.v), t.v = null, t.h = null;
|
|
769
|
+
}, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
|
|
770
|
+
for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
771
|
+
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
772
|
+
return !0;
|
|
773
|
+
}, appendChild: function(o) {
|
|
774
|
+
this.childNodes.push(o), t.h.appendChild(o);
|
|
775
|
+
}, insertBefore: function(o, i) {
|
|
776
|
+
this.childNodes.push(o), t.h.insertBefore(o, i);
|
|
777
|
+
}, removeChild: function(o) {
|
|
778
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
779
|
+
} };
|
|
780
|
+
}
|
|
781
|
+
se(L(Yo, { context: t.context }, e.__v), t.v);
|
|
782
|
+
}
|
|
783
|
+
function Xo(e, t) {
|
|
784
|
+
var n = L(qo, { __v: e, h: t });
|
|
785
|
+
return n.containerInfo = t, n;
|
|
786
|
+
}
|
|
787
|
+
(Fe.prototype = new V()).__a = function(e) {
|
|
788
|
+
var t = this, n = Hr(t.__v), r = t.l.get(e);
|
|
789
|
+
return r[0]++, function(o) {
|
|
790
|
+
var i = function() {
|
|
791
|
+
t.props.revealOrder ? (r.push(o), Gn(t, e, r)) : o();
|
|
792
|
+
};
|
|
793
|
+
n ? n(i) : i();
|
|
794
|
+
};
|
|
795
|
+
}, Fe.prototype.render = function(e) {
|
|
796
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
797
|
+
var t = te(e.children);
|
|
798
|
+
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
799
|
+
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
800
|
+
return e.children;
|
|
801
|
+
}, Fe.prototype.componentDidUpdate = Fe.prototype.componentDidMount = function() {
|
|
802
|
+
var e = this;
|
|
803
|
+
this.l.forEach(function(t, n) {
|
|
804
|
+
Gn(e, n, t);
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
var zr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ko = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Jo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Qo = /[A-Z0-9]/g, ei = typeof document < "u", ti = function(e) {
|
|
808
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
809
|
+
};
|
|
810
|
+
function ni(e, t, n) {
|
|
811
|
+
return t.__k == null && (t.textContent = ""), se(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
812
|
+
}
|
|
813
|
+
function ri(e, t, n) {
|
|
814
|
+
return fn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
815
|
+
}
|
|
816
|
+
V.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
817
|
+
Object.defineProperty(V.prototype, e, { configurable: !0, get: function() {
|
|
818
|
+
return this["UNSAFE_" + e];
|
|
819
|
+
}, set: function(t) {
|
|
820
|
+
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
821
|
+
} });
|
|
822
|
+
});
|
|
823
|
+
var jn = E.event;
|
|
824
|
+
function oi() {
|
|
825
|
+
}
|
|
826
|
+
function ii() {
|
|
827
|
+
return this.cancelBubble;
|
|
828
|
+
}
|
|
829
|
+
function ai() {
|
|
830
|
+
return this.defaultPrevented;
|
|
831
|
+
}
|
|
832
|
+
E.event = function(e) {
|
|
833
|
+
return jn && (e = jn(e)), e.persist = oi, e.isPropagationStopped = ii, e.isDefaultPrevented = ai, e.nativeEvent = e;
|
|
834
|
+
};
|
|
835
|
+
var mn, si = { enumerable: !1, configurable: !0, get: function() {
|
|
836
|
+
return this.class;
|
|
837
|
+
} }, Vn = E.vnode;
|
|
838
|
+
E.vnode = function(e) {
|
|
839
|
+
typeof e.type == "string" && function(t) {
|
|
840
|
+
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
|
|
841
|
+
for (var a in n) {
|
|
842
|
+
var s = n[a];
|
|
843
|
+
if (!(a === "value" && "defaultValue" in n && s == null || ei && a === "children" && r === "noscript" || a === "class" || a === "className")) {
|
|
844
|
+
var l = a.toLowerCase();
|
|
845
|
+
a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ti(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Jo.test(a) && (a = l) : l = a = "oninput" : i && Ko.test(a) ? a = a.replace(Qo, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = te(n.children).forEach(function(u) {
|
|
849
|
+
u.props.selected = o.value.indexOf(u.props.value) != -1;
|
|
850
|
+
})), r == "select" && o.defaultValue != null && (o.value = te(n.children).forEach(function(u) {
|
|
851
|
+
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
852
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", si)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
853
|
+
}(e), e.$$typeof = zr, Vn && Vn(e);
|
|
854
|
+
};
|
|
855
|
+
var Zn = E.__r;
|
|
856
|
+
E.__r = function(e) {
|
|
857
|
+
Zn && Zn(e), mn = e.__c;
|
|
858
|
+
};
|
|
859
|
+
var Yn = E.diffed;
|
|
860
|
+
E.diffed = function(e) {
|
|
861
|
+
Yn && Yn(e);
|
|
862
|
+
var t = e.props, n = e.__e;
|
|
863
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), mn = null;
|
|
864
|
+
};
|
|
865
|
+
var ci = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
866
|
+
return mn.__n[e.__c].props.value;
|
|
867
|
+
}, useCallback: ae, useContext: Xe, useDebugValue: pt, useDeferredValue: Pr, useEffect: K, useId: Tr, useImperativeHandle: Nr, useInsertionEffect: Dr, useLayoutEffect: Re, useMemo: ne, useReducer: hn, useRef: qe, useState: H, useSyncExternalStore: xr, useTransition: Lr } } };
|
|
868
|
+
function li(e) {
|
|
869
|
+
return L.bind(null, e);
|
|
870
|
+
}
|
|
871
|
+
function Ct(e) {
|
|
872
|
+
return !!e && e.$$typeof === zr;
|
|
873
|
+
}
|
|
874
|
+
function ui(e) {
|
|
875
|
+
return Ct(e) && e.type === G;
|
|
876
|
+
}
|
|
877
|
+
function fi(e) {
|
|
878
|
+
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
879
|
+
}
|
|
880
|
+
function di(e) {
|
|
881
|
+
return Ct(e) ? dn.apply(null, arguments) : e;
|
|
882
|
+
}
|
|
883
|
+
function _i(e) {
|
|
884
|
+
return !!e.__k && (se(null, e), !0);
|
|
885
|
+
}
|
|
886
|
+
function hi(e) {
|
|
887
|
+
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
888
|
+
}
|
|
889
|
+
var pi = function(e, t) {
|
|
890
|
+
return e(t);
|
|
891
|
+
}, mi = function(e, t) {
|
|
892
|
+
return e(t);
|
|
893
|
+
}, gi = G, yi = Ct, re = { useState: H, useId: Tr, useReducer: hn, useEffect: K, useLayoutEffect: Re, useInsertionEffect: Dr, useTransition: Lr, useDeferredValue: Pr, useSyncExternalStore: xr, startTransition: Ar, useRef: qe, useImperativeHandle: Nr, useMemo: ne, useCallback: ae, useContext: Xe, useDebugValue: pt, version: "18.3.1", Children: jo, render: ni, hydrate: ri, unmountComponentAtNode: _i, createPortal: Xo, createElement: L, createContext: $r, createFactory: li, cloneElement: di, createRef: $o, Fragment: G, isValidElement: Ct, isElement: yi, isFragment: ui, isMemo: fi, findDOMNode: hi, Component: V, PureComponent: jt, memo: Bo, forwardRef: Go, flushSync: mi, unstable_batchedUpdates: pi, StrictMode: gi, Suspense: st, SuspenseList: Fe, lazy: Zo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ci };
|
|
894
|
+
function vi(e) {
|
|
895
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
896
|
+
}
|
|
897
|
+
var Pt, qn;
|
|
898
|
+
function Ci() {
|
|
899
|
+
return qn || (qn = 1, Pt = function(t, n, r, o) {
|
|
900
|
+
var i = r ? r.call(o, t, n) : void 0;
|
|
901
|
+
if (i !== void 0)
|
|
902
|
+
return !!i;
|
|
903
|
+
if (t === n)
|
|
904
|
+
return !0;
|
|
905
|
+
if (typeof t != "object" || !t || typeof n != "object" || !n)
|
|
906
|
+
return !1;
|
|
907
|
+
var a = Object.keys(t), s = Object.keys(n);
|
|
908
|
+
if (a.length !== s.length)
|
|
909
|
+
return !1;
|
|
910
|
+
for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
|
|
911
|
+
var f = a[u];
|
|
912
|
+
if (!l(f))
|
|
913
|
+
return !1;
|
|
914
|
+
var c = t[f], _ = n[f];
|
|
915
|
+
if (i = r ? r.call(o, c, _, f) : void 0, i === !1 || i === void 0 && c !== _)
|
|
916
|
+
return !1;
|
|
917
|
+
}
|
|
918
|
+
return !0;
|
|
919
|
+
}), Pt;
|
|
920
|
+
}
|
|
921
|
+
var Ei = Ci();
|
|
922
|
+
const Si = /* @__PURE__ */ vi(Ei);
|
|
923
|
+
var T = "-ms-", Be = "-moz-", k = "-webkit-", Ur = "comm", Et = "rule", gn = "decl", wi = "@import", Br = "@keyframes", bi = "@layer", Wr = Math.abs, yn = String.fromCharCode, Vt = Object.assign;
|
|
924
|
+
function $i(e, t) {
|
|
925
|
+
return A(e, 0) ^ 45 ? (((t << 2 ^ A(e, 0)) << 2 ^ A(e, 1)) << 2 ^ A(e, 2)) << 2 ^ A(e, 3) : 0;
|
|
926
|
+
}
|
|
927
|
+
function Gr(e) {
|
|
928
|
+
return e.trim();
|
|
929
|
+
}
|
|
930
|
+
function Q(e, t) {
|
|
931
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
932
|
+
}
|
|
933
|
+
function S(e, t, n) {
|
|
934
|
+
return e.replace(t, n);
|
|
935
|
+
}
|
|
936
|
+
function ct(e, t, n) {
|
|
937
|
+
return e.indexOf(t, n);
|
|
938
|
+
}
|
|
939
|
+
function A(e, t) {
|
|
940
|
+
return e.charCodeAt(t) | 0;
|
|
941
|
+
}
|
|
942
|
+
function Oe(e, t, n) {
|
|
943
|
+
return e.slice(t, n);
|
|
944
|
+
}
|
|
945
|
+
function Y(e) {
|
|
946
|
+
return e.length;
|
|
947
|
+
}
|
|
948
|
+
function jr(e) {
|
|
949
|
+
return e.length;
|
|
950
|
+
}
|
|
951
|
+
function He(e, t) {
|
|
952
|
+
return t.push(e), e;
|
|
953
|
+
}
|
|
954
|
+
function Oi(e, t) {
|
|
955
|
+
return e.map(t).join("");
|
|
956
|
+
}
|
|
957
|
+
function Xn(e, t) {
|
|
958
|
+
return e.filter(function(n) {
|
|
959
|
+
return !Q(n, t);
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
var St = 1, ke = 1, Vr = 0, j = 0, x = 0, xe = "";
|
|
963
|
+
function wt(e, t, n, r, o, i, a, s) {
|
|
964
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: St, column: ke, length: a, return: "", siblings: s };
|
|
965
|
+
}
|
|
966
|
+
function ie(e, t) {
|
|
967
|
+
return Vt(wt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
968
|
+
}
|
|
969
|
+
function Se(e) {
|
|
970
|
+
for (; e.root; )
|
|
971
|
+
e = ie(e.root, { children: [e] });
|
|
972
|
+
He(e, e.siblings);
|
|
973
|
+
}
|
|
974
|
+
function ki() {
|
|
975
|
+
return x;
|
|
976
|
+
}
|
|
977
|
+
function Ni() {
|
|
978
|
+
return x = j > 0 ? A(xe, --j) : 0, ke--, x === 10 && (ke = 1, St--), x;
|
|
979
|
+
}
|
|
980
|
+
function Z() {
|
|
981
|
+
return x = j < Vr ? A(xe, j++) : 0, ke++, x === 10 && (ke = 1, St++), x;
|
|
982
|
+
}
|
|
983
|
+
function he() {
|
|
984
|
+
return A(xe, j);
|
|
985
|
+
}
|
|
986
|
+
function lt() {
|
|
987
|
+
return j;
|
|
988
|
+
}
|
|
989
|
+
function bt(e, t) {
|
|
990
|
+
return Oe(xe, e, t);
|
|
991
|
+
}
|
|
992
|
+
function Zt(e) {
|
|
993
|
+
switch (e) {
|
|
994
|
+
// \0 \t \n \r \s whitespace token
|
|
995
|
+
case 0:
|
|
996
|
+
case 9:
|
|
997
|
+
case 10:
|
|
998
|
+
case 13:
|
|
999
|
+
case 32:
|
|
1000
|
+
return 5;
|
|
1001
|
+
// ! + , / > @ ~ isolate token
|
|
1002
|
+
case 33:
|
|
1003
|
+
case 43:
|
|
1004
|
+
case 44:
|
|
1005
|
+
case 47:
|
|
1006
|
+
case 62:
|
|
1007
|
+
case 64:
|
|
1008
|
+
case 126:
|
|
1009
|
+
// ; { } breakpoint token
|
|
1010
|
+
case 59:
|
|
1011
|
+
case 123:
|
|
1012
|
+
case 125:
|
|
1013
|
+
return 4;
|
|
1014
|
+
// : accompanied token
|
|
1015
|
+
case 58:
|
|
1016
|
+
return 3;
|
|
1017
|
+
// " ' ( [ opening delimit token
|
|
1018
|
+
case 34:
|
|
1019
|
+
case 39:
|
|
1020
|
+
case 40:
|
|
1021
|
+
case 91:
|
|
1022
|
+
return 2;
|
|
1023
|
+
// ) ] closing delimit token
|
|
1024
|
+
case 41:
|
|
1025
|
+
case 93:
|
|
1026
|
+
return 1;
|
|
1027
|
+
}
|
|
1028
|
+
return 0;
|
|
1029
|
+
}
|
|
1030
|
+
function Ti(e) {
|
|
1031
|
+
return St = ke = 1, Vr = Y(xe = e), j = 0, [];
|
|
1032
|
+
}
|
|
1033
|
+
function Ii(e) {
|
|
1034
|
+
return xe = "", e;
|
|
1035
|
+
}
|
|
1036
|
+
function Lt(e) {
|
|
1037
|
+
return Gr(bt(j - 1, Yt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1038
|
+
}
|
|
1039
|
+
function Ri(e) {
|
|
1040
|
+
for (; (x = he()) && x < 33; )
|
|
1041
|
+
Z();
|
|
1042
|
+
return Zt(e) > 2 || Zt(x) > 3 ? "" : " ";
|
|
1043
|
+
}
|
|
1044
|
+
function xi(e, t) {
|
|
1045
|
+
for (; --t && Z() && !(x < 48 || x > 102 || x > 57 && x < 65 || x > 70 && x < 97); )
|
|
1046
|
+
;
|
|
1047
|
+
return bt(e, lt() + (t < 6 && he() == 32 && Z() == 32));
|
|
1048
|
+
}
|
|
1049
|
+
function Yt(e) {
|
|
1050
|
+
for (; Z(); )
|
|
1051
|
+
switch (x) {
|
|
1052
|
+
// ] ) " '
|
|
1053
|
+
case e:
|
|
1054
|
+
return j;
|
|
1055
|
+
// " '
|
|
1056
|
+
case 34:
|
|
1057
|
+
case 39:
|
|
1058
|
+
e !== 34 && e !== 39 && Yt(x);
|
|
1059
|
+
break;
|
|
1060
|
+
// (
|
|
1061
|
+
case 40:
|
|
1062
|
+
e === 41 && Yt(e);
|
|
1063
|
+
break;
|
|
1064
|
+
// \
|
|
1065
|
+
case 92:
|
|
1066
|
+
Z();
|
|
1067
|
+
break;
|
|
1068
|
+
}
|
|
1069
|
+
return j;
|
|
1070
|
+
}
|
|
1071
|
+
function Ai(e, t) {
|
|
1072
|
+
for (; Z() && e + x !== 57; )
|
|
1073
|
+
if (e + x === 84 && he() === 47)
|
|
1074
|
+
break;
|
|
1075
|
+
return "/*" + bt(t, j - 1) + "*" + yn(e === 47 ? e : Z());
|
|
1076
|
+
}
|
|
1077
|
+
function Pi(e) {
|
|
1078
|
+
for (; !Zt(he()); )
|
|
1079
|
+
Z();
|
|
1080
|
+
return bt(e, j);
|
|
1081
|
+
}
|
|
1082
|
+
function Li(e) {
|
|
1083
|
+
return Ii(ut("", null, null, null, [""], e = Ti(e), 0, [0], e));
|
|
1084
|
+
}
|
|
1085
|
+
function ut(e, t, n, r, o, i, a, s, l) {
|
|
1086
|
+
for (var u = 0, f = 0, c = a, _ = 0, d = 0, g = 0, y = 1, v = 1, m = 1, p = 0, O = "", b = o, N = i, w = r, C = O; v; )
|
|
1087
|
+
switch (g = p, p = Z()) {
|
|
1088
|
+
// (
|
|
1089
|
+
case 40:
|
|
1090
|
+
if (g != 108 && A(C, c - 1) == 58) {
|
|
1091
|
+
ct(C += S(Lt(p), "&", "&\f"), "&\f", Wr(u ? s[u - 1] : 0)) != -1 && (m = -1);
|
|
1092
|
+
break;
|
|
1093
|
+
}
|
|
1094
|
+
// " ' [
|
|
1095
|
+
case 34:
|
|
1096
|
+
case 39:
|
|
1097
|
+
case 91:
|
|
1098
|
+
C += Lt(p);
|
|
1099
|
+
break;
|
|
1100
|
+
// \t \n \r \s
|
|
1101
|
+
case 9:
|
|
1102
|
+
case 10:
|
|
1103
|
+
case 13:
|
|
1104
|
+
case 32:
|
|
1105
|
+
C += Ri(g);
|
|
1106
|
+
break;
|
|
1107
|
+
// \
|
|
1108
|
+
case 92:
|
|
1109
|
+
C += xi(lt() - 1, 7);
|
|
1110
|
+
continue;
|
|
1111
|
+
// /
|
|
1112
|
+
case 47:
|
|
1113
|
+
switch (he()) {
|
|
1114
|
+
case 42:
|
|
1115
|
+
case 47:
|
|
1116
|
+
He(Di(Ai(Z(), lt()), t, n, l), l);
|
|
1117
|
+
break;
|
|
1118
|
+
default:
|
|
1119
|
+
C += "/";
|
|
1120
|
+
}
|
|
1121
|
+
break;
|
|
1122
|
+
// {
|
|
1123
|
+
case 123 * y:
|
|
1124
|
+
s[u++] = Y(C) * m;
|
|
1125
|
+
// } ; \0
|
|
1126
|
+
case 125 * y:
|
|
1127
|
+
case 59:
|
|
1128
|
+
case 0:
|
|
1129
|
+
switch (p) {
|
|
1130
|
+
// \0 }
|
|
1131
|
+
case 0:
|
|
1132
|
+
case 125:
|
|
1133
|
+
v = 0;
|
|
1134
|
+
// ;
|
|
1135
|
+
case 59 + f:
|
|
1136
|
+
m == -1 && (C = S(C, /\f/g, "")), d > 0 && Y(C) - c && He(d > 32 ? Jn(C + ";", r, n, c - 1, l) : Jn(S(C, " ", "") + ";", r, n, c - 2, l), l);
|
|
1137
|
+
break;
|
|
1138
|
+
// @ ;
|
|
1139
|
+
case 59:
|
|
1140
|
+
C += ";";
|
|
1141
|
+
// { rule/at-rule
|
|
1142
|
+
default:
|
|
1143
|
+
if (He(w = Kn(C, t, n, u, f, o, s, O, b = [], N = [], c, i), i), p === 123)
|
|
1144
|
+
if (f === 0)
|
|
1145
|
+
ut(C, t, w, w, b, i, c, s, N);
|
|
1146
|
+
else
|
|
1147
|
+
switch (_ === 99 && A(C, 3) === 110 ? 100 : _) {
|
|
1148
|
+
// d l m s
|
|
1149
|
+
case 100:
|
|
1150
|
+
case 108:
|
|
1151
|
+
case 109:
|
|
1152
|
+
case 115:
|
|
1153
|
+
ut(e, w, w, r && He(Kn(e, w, w, 0, 0, o, s, O, o, b = [], c, N), N), o, N, c, s, r ? b : N);
|
|
1154
|
+
break;
|
|
1155
|
+
default:
|
|
1156
|
+
ut(C, w, w, w, [""], N, 0, s, N);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
u = f = d = 0, y = m = 1, O = C = "", c = a;
|
|
1160
|
+
break;
|
|
1161
|
+
// :
|
|
1162
|
+
case 58:
|
|
1163
|
+
c = 1 + Y(C), d = g;
|
|
1164
|
+
default:
|
|
1165
|
+
if (y < 1) {
|
|
1166
|
+
if (p == 123)
|
|
1167
|
+
--y;
|
|
1168
|
+
else if (p == 125 && y++ == 0 && Ni() == 125)
|
|
1169
|
+
continue;
|
|
1170
|
+
}
|
|
1171
|
+
switch (C += yn(p), p * y) {
|
|
1172
|
+
// &
|
|
1173
|
+
case 38:
|
|
1174
|
+
m = f > 0 ? 1 : (C += "\f", -1);
|
|
1175
|
+
break;
|
|
1176
|
+
// ,
|
|
1177
|
+
case 44:
|
|
1178
|
+
s[u++] = (Y(C) - 1) * m, m = 1;
|
|
1179
|
+
break;
|
|
1180
|
+
// @
|
|
1181
|
+
case 64:
|
|
1182
|
+
he() === 45 && (C += Lt(Z())), _ = he(), f = c = Y(O = C += Pi(lt())), p++;
|
|
1183
|
+
break;
|
|
1184
|
+
// -
|
|
1185
|
+
case 45:
|
|
1186
|
+
g === 45 && Y(C) == 2 && (y = 0);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
return i;
|
|
1190
|
+
}
|
|
1191
|
+
function Kn(e, t, n, r, o, i, a, s, l, u, f, c) {
|
|
1192
|
+
for (var _ = o - 1, d = o === 0 ? i : [""], g = jr(d), y = 0, v = 0, m = 0; y < r; ++y)
|
|
1193
|
+
for (var p = 0, O = Oe(e, _ + 1, _ = Wr(v = a[y])), b = e; p < g; ++p)
|
|
1194
|
+
(b = Gr(v > 0 ? d[p] + " " + O : S(O, /&\f/g, d[p]))) && (l[m++] = b);
|
|
1195
|
+
return wt(e, t, n, o === 0 ? Et : s, l, u, f, c);
|
|
1196
|
+
}
|
|
1197
|
+
function Di(e, t, n, r) {
|
|
1198
|
+
return wt(e, t, n, Ur, yn(ki()), Oe(e, 2, -2), 0, r);
|
|
1199
|
+
}
|
|
1200
|
+
function Jn(e, t, n, r, o) {
|
|
1201
|
+
return wt(e, t, n, gn, Oe(e, 0, r), Oe(e, r + 1, -1), r, o);
|
|
1202
|
+
}
|
|
1203
|
+
function Zr(e, t, n) {
|
|
1204
|
+
switch ($i(e, t)) {
|
|
1205
|
+
// color-adjust
|
|
1206
|
+
case 5103:
|
|
1207
|
+
return k + "print-" + e + e;
|
|
1208
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1209
|
+
case 5737:
|
|
1210
|
+
case 4201:
|
|
1211
|
+
case 3177:
|
|
1212
|
+
case 3433:
|
|
1213
|
+
case 1641:
|
|
1214
|
+
case 4457:
|
|
1215
|
+
case 2921:
|
|
1216
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1217
|
+
case 5572:
|
|
1218
|
+
case 6356:
|
|
1219
|
+
case 5844:
|
|
1220
|
+
case 3191:
|
|
1221
|
+
case 6645:
|
|
1222
|
+
case 3005:
|
|
1223
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1224
|
+
case 6391:
|
|
1225
|
+
case 5879:
|
|
1226
|
+
case 5623:
|
|
1227
|
+
case 6135:
|
|
1228
|
+
case 4599:
|
|
1229
|
+
case 4855:
|
|
1230
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1231
|
+
case 4215:
|
|
1232
|
+
case 6389:
|
|
1233
|
+
case 5109:
|
|
1234
|
+
case 5365:
|
|
1235
|
+
case 5621:
|
|
1236
|
+
case 3829:
|
|
1237
|
+
return k + e + e;
|
|
1238
|
+
// tab-size
|
|
1239
|
+
case 4789:
|
|
1240
|
+
return Be + e + e;
|
|
1241
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1242
|
+
case 5349:
|
|
1243
|
+
case 4246:
|
|
1244
|
+
case 4810:
|
|
1245
|
+
case 6968:
|
|
1246
|
+
case 2756:
|
|
1247
|
+
return k + e + Be + e + T + e + e;
|
|
1248
|
+
// writing-mode
|
|
1249
|
+
case 5936:
|
|
1250
|
+
switch (A(e, t + 11)) {
|
|
1251
|
+
// vertical-l(r)
|
|
1252
|
+
case 114:
|
|
1253
|
+
return k + e + T + S(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1254
|
+
// vertical-r(l)
|
|
1255
|
+
case 108:
|
|
1256
|
+
return k + e + T + S(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1257
|
+
// horizontal(-)tb
|
|
1258
|
+
case 45:
|
|
1259
|
+
return k + e + T + S(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1260
|
+
}
|
|
1261
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1262
|
+
case 6828:
|
|
1263
|
+
case 4268:
|
|
1264
|
+
case 2903:
|
|
1265
|
+
return k + e + T + e + e;
|
|
1266
|
+
// order
|
|
1267
|
+
case 6165:
|
|
1268
|
+
return k + e + T + "flex-" + e + e;
|
|
1269
|
+
// align-items
|
|
1270
|
+
case 5187:
|
|
1271
|
+
return k + e + S(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + T + "flex-$1$2") + e;
|
|
1272
|
+
// align-self
|
|
1273
|
+
case 5443:
|
|
1274
|
+
return k + e + T + "flex-item-" + S(e, /flex-|-self/g, "") + (Q(e, /flex-|baseline/) ? "" : T + "grid-row-" + S(e, /flex-|-self/g, "")) + e;
|
|
1275
|
+
// align-content
|
|
1276
|
+
case 4675:
|
|
1277
|
+
return k + e + T + "flex-line-pack" + S(e, /align-content|flex-|-self/g, "") + e;
|
|
1278
|
+
// flex-shrink
|
|
1279
|
+
case 5548:
|
|
1280
|
+
return k + e + T + S(e, "shrink", "negative") + e;
|
|
1281
|
+
// flex-basis
|
|
1282
|
+
case 5292:
|
|
1283
|
+
return k + e + T + S(e, "basis", "preferred-size") + e;
|
|
1284
|
+
// flex-grow
|
|
1285
|
+
case 6060:
|
|
1286
|
+
return k + "box-" + S(e, "-grow", "") + k + e + T + S(e, "grow", "positive") + e;
|
|
1287
|
+
// transition
|
|
1288
|
+
case 4554:
|
|
1289
|
+
return k + S(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
|
|
1290
|
+
// cursor
|
|
1291
|
+
case 6187:
|
|
1292
|
+
return S(S(S(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
|
|
1293
|
+
// background, background-image
|
|
1294
|
+
case 5495:
|
|
1295
|
+
case 3959:
|
|
1296
|
+
return S(e, /(image-set\([^]*)/, k + "$1$`$1");
|
|
1297
|
+
// justify-content
|
|
1298
|
+
case 4968:
|
|
1299
|
+
return S(S(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
|
|
1300
|
+
// justify-self
|
|
1301
|
+
case 4200:
|
|
1302
|
+
if (!Q(e, /flex-|baseline/)) return T + "grid-column-align" + Oe(e, t) + e;
|
|
1303
|
+
break;
|
|
1304
|
+
// grid-template-(columns|rows)
|
|
1305
|
+
case 2592:
|
|
1306
|
+
case 3360:
|
|
1307
|
+
return T + S(e, "template-", "") + e;
|
|
1308
|
+
// grid-(row|column)-start
|
|
1309
|
+
case 4384:
|
|
1310
|
+
case 3616:
|
|
1311
|
+
return n && n.some(function(r, o) {
|
|
1312
|
+
return t = o, Q(r.props, /grid-\w+-end/);
|
|
1313
|
+
}) ? ~ct(e + (n = n[t].value), "span", 0) ? e : T + S(e, "-start", "") + e + T + "grid-row-span:" + (~ct(n, "span", 0) ? Q(n, /\d+/) : +Q(n, /\d+/) - +Q(e, /\d+/)) + ";" : T + S(e, "-start", "") + e;
|
|
1314
|
+
// grid-(row|column)-end
|
|
1315
|
+
case 4896:
|
|
1316
|
+
case 4128:
|
|
1317
|
+
return n && n.some(function(r) {
|
|
1318
|
+
return Q(r.props, /grid-\w+-start/);
|
|
1319
|
+
}) ? e : T + S(S(e, "-end", "-span"), "span ", "") + e;
|
|
1320
|
+
// (margin|padding)-inline-(start|end)
|
|
1321
|
+
case 4095:
|
|
1322
|
+
case 3583:
|
|
1323
|
+
case 4068:
|
|
1324
|
+
case 2532:
|
|
1325
|
+
return S(e, /(.+)-inline(.+)/, k + "$1$2") + e;
|
|
1326
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1327
|
+
case 8116:
|
|
1328
|
+
case 7059:
|
|
1329
|
+
case 5753:
|
|
1330
|
+
case 5535:
|
|
1331
|
+
case 5445:
|
|
1332
|
+
case 5701:
|
|
1333
|
+
case 4933:
|
|
1334
|
+
case 4677:
|
|
1335
|
+
case 5533:
|
|
1336
|
+
case 5789:
|
|
1337
|
+
case 5021:
|
|
1338
|
+
case 4765:
|
|
1339
|
+
if (Y(e) - 1 - t > 6)
|
|
1340
|
+
switch (A(e, t + 1)) {
|
|
1341
|
+
// (m)ax-content, (m)in-content
|
|
1342
|
+
case 109:
|
|
1343
|
+
if (A(e, t + 4) !== 45)
|
|
1344
|
+
break;
|
|
1345
|
+
// (f)ill-available, (f)it-content
|
|
1346
|
+
case 102:
|
|
1347
|
+
return S(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + Be + (A(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1348
|
+
// (s)tretch
|
|
1349
|
+
case 115:
|
|
1350
|
+
return ~ct(e, "stretch", 0) ? Zr(S(e, "stretch", "fill-available"), t, n) + e : e;
|
|
1351
|
+
}
|
|
1352
|
+
break;
|
|
1353
|
+
// grid-(column|row)
|
|
1354
|
+
case 5152:
|
|
1355
|
+
case 5920:
|
|
1356
|
+
return S(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, i, a, s, l, u) {
|
|
1357
|
+
return T + o + ":" + i + u + (a ? T + o + "-span:" + (s ? l : +l - +i) + u : "") + e;
|
|
1358
|
+
});
|
|
1359
|
+
// position: sticky
|
|
1360
|
+
case 4949:
|
|
1361
|
+
if (A(e, t + 6) === 121)
|
|
1362
|
+
return S(e, ":", ":" + k) + e;
|
|
1363
|
+
break;
|
|
1364
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
1365
|
+
case 6444:
|
|
1366
|
+
switch (A(e, A(e, 14) === 45 ? 18 : 11)) {
|
|
1367
|
+
// (inline-)?fle(x)
|
|
1368
|
+
case 120:
|
|
1369
|
+
return S(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (A(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + T + "$2box$3") + e;
|
|
1370
|
+
// (inline-)?gri(d)
|
|
1371
|
+
case 100:
|
|
1372
|
+
return S(e, ":", ":" + T) + e;
|
|
1373
|
+
}
|
|
1374
|
+
break;
|
|
1375
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
1376
|
+
case 5719:
|
|
1377
|
+
case 2647:
|
|
1378
|
+
case 2135:
|
|
1379
|
+
case 3927:
|
|
1380
|
+
case 2391:
|
|
1381
|
+
return S(e, "scroll-", "scroll-snap-") + e;
|
|
1382
|
+
}
|
|
1383
|
+
return e;
|
|
1384
|
+
}
|
|
1385
|
+
function mt(e, t) {
|
|
1386
|
+
for (var n = "", r = 0; r < e.length; r++)
|
|
1387
|
+
n += t(e[r], r, e, t) || "";
|
|
1388
|
+
return n;
|
|
1389
|
+
}
|
|
1390
|
+
function Mi(e, t, n, r) {
|
|
1391
|
+
switch (e.type) {
|
|
1392
|
+
case bi:
|
|
1393
|
+
if (e.children.length) break;
|
|
1394
|
+
case wi:
|
|
1395
|
+
case gn:
|
|
1396
|
+
return e.return = e.return || e.value;
|
|
1397
|
+
case Ur:
|
|
1398
|
+
return "";
|
|
1399
|
+
case Br:
|
|
1400
|
+
return e.return = e.value + "{" + mt(e.children, r) + "}";
|
|
1401
|
+
case Et:
|
|
1402
|
+
if (!Y(e.value = e.props.join(","))) return "";
|
|
1403
|
+
}
|
|
1404
|
+
return Y(n = mt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1405
|
+
}
|
|
1406
|
+
function Fi(e) {
|
|
1407
|
+
var t = jr(e);
|
|
1408
|
+
return function(n, r, o, i) {
|
|
1409
|
+
for (var a = "", s = 0; s < t; s++)
|
|
1410
|
+
a += e[s](n, r, o, i) || "";
|
|
1411
|
+
return a;
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
function Hi(e) {
|
|
1415
|
+
return function(t) {
|
|
1416
|
+
t.root || (t = t.return) && e(t);
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
function zi(e, t, n, r) {
|
|
1420
|
+
if (e.length > -1 && !e.return)
|
|
1421
|
+
switch (e.type) {
|
|
1422
|
+
case gn:
|
|
1423
|
+
e.return = Zr(e.value, e.length, n);
|
|
1424
|
+
return;
|
|
1425
|
+
case Br:
|
|
1426
|
+
return mt([ie(e, { value: S(e.value, "@", "@" + k) })], r);
|
|
1427
|
+
case Et:
|
|
1428
|
+
if (e.length)
|
|
1429
|
+
return Oi(n = e.props, function(o) {
|
|
1430
|
+
switch (Q(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
1431
|
+
// :read-(only|write)
|
|
1432
|
+
case ":read-only":
|
|
1433
|
+
case ":read-write":
|
|
1434
|
+
Se(ie(e, { props: [S(o, /:(read-\w+)/, ":" + Be + "$1")] })), Se(ie(e, { props: [o] })), Vt(e, { props: Xn(n, r) });
|
|
1435
|
+
break;
|
|
1436
|
+
// :placeholder
|
|
1437
|
+
case "::placeholder":
|
|
1438
|
+
Se(ie(e, { props: [S(o, /:(plac\w+)/, ":" + k + "input-$1")] })), Se(ie(e, { props: [S(o, /:(plac\w+)/, ":" + Be + "$1")] })), Se(ie(e, { props: [S(o, /:(plac\w+)/, T + "input-$1")] })), Se(ie(e, { props: [o] })), Vt(e, { props: Xn(n, r) });
|
|
1439
|
+
break;
|
|
1440
|
+
}
|
|
1441
|
+
return "";
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
var Ui = {
|
|
1446
|
+
animationIterationCount: 1,
|
|
1447
|
+
aspectRatio: 1,
|
|
1448
|
+
borderImageOutset: 1,
|
|
1449
|
+
borderImageSlice: 1,
|
|
1450
|
+
borderImageWidth: 1,
|
|
1451
|
+
boxFlex: 1,
|
|
1452
|
+
boxFlexGroup: 1,
|
|
1453
|
+
boxOrdinalGroup: 1,
|
|
1454
|
+
columnCount: 1,
|
|
1455
|
+
columns: 1,
|
|
1456
|
+
flex: 1,
|
|
1457
|
+
flexGrow: 1,
|
|
1458
|
+
flexPositive: 1,
|
|
1459
|
+
flexShrink: 1,
|
|
1460
|
+
flexNegative: 1,
|
|
1461
|
+
flexOrder: 1,
|
|
1462
|
+
gridRow: 1,
|
|
1463
|
+
gridRowEnd: 1,
|
|
1464
|
+
gridRowSpan: 1,
|
|
1465
|
+
gridRowStart: 1,
|
|
1466
|
+
gridColumn: 1,
|
|
1467
|
+
gridColumnEnd: 1,
|
|
1468
|
+
gridColumnSpan: 1,
|
|
1469
|
+
gridColumnStart: 1,
|
|
1470
|
+
msGridRow: 1,
|
|
1471
|
+
msGridRowSpan: 1,
|
|
1472
|
+
msGridColumn: 1,
|
|
1473
|
+
msGridColumnSpan: 1,
|
|
1474
|
+
fontWeight: 1,
|
|
1475
|
+
lineHeight: 1,
|
|
1476
|
+
opacity: 1,
|
|
1477
|
+
order: 1,
|
|
1478
|
+
orphans: 1,
|
|
1479
|
+
tabSize: 1,
|
|
1480
|
+
widows: 1,
|
|
1481
|
+
zIndex: 1,
|
|
1482
|
+
zoom: 1,
|
|
1483
|
+
WebkitLineClamp: 1,
|
|
1484
|
+
// SVG-related properties
|
|
1485
|
+
fillOpacity: 1,
|
|
1486
|
+
floodOpacity: 1,
|
|
1487
|
+
stopOpacity: 1,
|
|
1488
|
+
strokeDasharray: 1,
|
|
1489
|
+
strokeDashoffset: 1,
|
|
1490
|
+
strokeMiterlimit: 1,
|
|
1491
|
+
strokeOpacity: 1,
|
|
1492
|
+
strokeWidth: 1
|
|
1493
|
+
}, $ = {}, ge = typeof process < "u" && $ !== void 0 && ($.REACT_APP_SC_ATTR || $.SC_ATTR) || "data-styled", Yr = "active", qr = "data-styled-version", $t = "6.1.18", vn = `/*!sc*/
|
|
1494
|
+
`, gt = typeof window < "u" && typeof document < "u", Bi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== "" ? $.REACT_APP_SC_DISABLE_SPEEDY !== "false" && $.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.SC_DISABLE_SPEEDY !== void 0 && $.SC_DISABLE_SPEEDY !== "" ? $.SC_DISABLE_SPEEDY !== "false" && $.SC_DISABLE_SPEEDY : $.NODE_ENV !== "production"), Qn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), Wi = function(e, t) {
|
|
1495
|
+
if ($.NODE_ENV !== "production") {
|
|
1496
|
+
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1497
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1498
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
1499
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1500
|
+
`, o = console.error;
|
|
1501
|
+
try {
|
|
1502
|
+
var i = !0;
|
|
1503
|
+
console.error = function(a) {
|
|
1504
|
+
for (var s = [], l = 1; l < arguments.length; l++) s[l - 1] = arguments[l];
|
|
1505
|
+
Qn.test(a) ? (i = !1, nt.delete(r)) : o.apply(void 0, me([a], s, !1));
|
|
1506
|
+
}, qe(), i && !nt.has(r) && (console.warn(r), nt.add(r));
|
|
1507
|
+
} catch (a) {
|
|
1508
|
+
Qn.test(a.message) && nt.delete(r);
|
|
1509
|
+
} finally {
|
|
1510
|
+
console.error = o;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
}, Ot = Object.freeze([]), Ne = Object.freeze({});
|
|
1514
|
+
function Gi(e, t, n) {
|
|
1515
|
+
return n === void 0 && (n = Ne), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1516
|
+
}
|
|
1517
|
+
var qt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), ji = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Vi = /(^-|-$)/g;
|
|
1518
|
+
function er(e) {
|
|
1519
|
+
return e.replace(ji, "-").replace(Vi, "");
|
|
1520
|
+
}
|
|
1521
|
+
var Zi = /(a)(d)/gi, rt = 52, tr = function(e) {
|
|
1522
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1523
|
+
};
|
|
1524
|
+
function Xt(e) {
|
|
1525
|
+
var t, n = "";
|
|
1526
|
+
for (t = Math.abs(e); t > rt; t = t / rt | 0) n = tr(t % rt) + n;
|
|
1527
|
+
return (tr(t % rt) + n).replace(Zi, "$1-$2");
|
|
1528
|
+
}
|
|
1529
|
+
var Dt, Xr = 5381, de = function(e, t) {
|
|
1530
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1531
|
+
return e;
|
|
1532
|
+
}, Kr = function(e) {
|
|
1533
|
+
return de(Xr, e);
|
|
1534
|
+
};
|
|
1535
|
+
function Jr(e) {
|
|
1536
|
+
return Xt(Kr(e) >>> 0);
|
|
1537
|
+
}
|
|
1538
|
+
function Qr(e) {
|
|
1539
|
+
return $.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1540
|
+
}
|
|
1541
|
+
function Mt(e) {
|
|
1542
|
+
return typeof e == "string" && ($.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1543
|
+
}
|
|
1544
|
+
var eo = typeof Symbol == "function" && Symbol.for, to = eo ? Symbol.for("react.memo") : 60115, Yi = eo ? Symbol.for("react.forward_ref") : 60112, qi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Xi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, no = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ki = ((Dt = {})[Yi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Dt[to] = no, Dt);
|
|
1545
|
+
function nr(e) {
|
|
1546
|
+
return ("type" in (t = e) && t.type.$$typeof) === to ? no : "$$typeof" in e ? Ki[e.$$typeof] : qi;
|
|
1547
|
+
var t;
|
|
1548
|
+
}
|
|
1549
|
+
var Ji = Object.defineProperty, Qi = Object.getOwnPropertyNames, rr = Object.getOwnPropertySymbols, ea = Object.getOwnPropertyDescriptor, ta = Object.getPrototypeOf, or = Object.prototype;
|
|
1550
|
+
function ro(e, t, n) {
|
|
1551
|
+
if (typeof t != "string") {
|
|
1552
|
+
if (or) {
|
|
1553
|
+
var r = ta(t);
|
|
1554
|
+
r && r !== or && ro(e, r, n);
|
|
1555
|
+
}
|
|
1556
|
+
var o = Qi(t);
|
|
1557
|
+
rr && (o = o.concat(rr(t)));
|
|
1558
|
+
for (var i = nr(e), a = nr(t), s = 0; s < o.length; ++s) {
|
|
1559
|
+
var l = o[s];
|
|
1560
|
+
if (!(l in Xi || n && n[l] || a && l in a || i && l in i)) {
|
|
1561
|
+
var u = ea(t, l);
|
|
1562
|
+
try {
|
|
1563
|
+
Ji(e, l, u);
|
|
1564
|
+
} catch {
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
return e;
|
|
1570
|
+
}
|
|
1571
|
+
function ye(e) {
|
|
1572
|
+
return typeof e == "function";
|
|
1573
|
+
}
|
|
1574
|
+
function Cn(e) {
|
|
1575
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1576
|
+
}
|
|
1577
|
+
function _e(e, t) {
|
|
1578
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1579
|
+
}
|
|
1580
|
+
function Kt(e, t) {
|
|
1581
|
+
if (e.length === 0) return "";
|
|
1582
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
|
|
1583
|
+
return n;
|
|
1584
|
+
}
|
|
1585
|
+
function Te(e) {
|
|
1586
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1587
|
+
}
|
|
1588
|
+
function Jt(e, t, n) {
|
|
1589
|
+
if (n === void 0 && (n = !1), !n && !Te(e) && !Array.isArray(e)) return t;
|
|
1590
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Jt(e[r], t[r]);
|
|
1591
|
+
else if (Te(t)) for (var r in t) e[r] = Jt(e[r], t[r]);
|
|
1592
|
+
return e;
|
|
1593
|
+
}
|
|
1594
|
+
function En(e, t) {
|
|
1595
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1596
|
+
}
|
|
1597
|
+
var na = $.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1598
|
+
|
|
1599
|
+
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1600
|
+
|
|
1601
|
+
- Are you trying to reuse it across renders?
|
|
1602
|
+
- Are you accidentally calling collectStyles twice?
|
|
1603
|
+
|
|
1604
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1605
|
+
|
|
1606
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1607
|
+
|
|
1608
|
+
- Does this error occur on the client and is your target falsy?
|
|
1609
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1610
|
+
|
|
1611
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1612
|
+
|
|
1613
|
+
- Are you running in a client-like environment on the server?
|
|
1614
|
+
- Are you trying to run SSR on the client?
|
|
1615
|
+
|
|
1616
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1617
|
+
|
|
1618
|
+
- Are you using a custom target that isn't mounted?
|
|
1619
|
+
- Does your document not have a valid head element?
|
|
1620
|
+
- Have you accidentally removed a style tag manually?
|
|
1621
|
+
|
|
1622
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1623
|
+
|
|
1624
|
+
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1625
|
+
|
|
1626
|
+
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1627
|
+
|
|
1628
|
+
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1629
|
+
|
|
1630
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1631
|
+
|
|
1632
|
+
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1633
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1634
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1635
|
+
|
|
1636
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1637
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1638
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1639
|
+
function ra() {
|
|
1640
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1641
|
+
for (var n = e[0], r = [], o = 1, i = e.length; o < i; o += 1) r.push(e[o]);
|
|
1642
|
+
return r.forEach(function(a) {
|
|
1643
|
+
n = n.replace(/%[a-z]/, a);
|
|
1644
|
+
}), n;
|
|
1645
|
+
}
|
|
1646
|
+
function X(e) {
|
|
1647
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1648
|
+
return $.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ra.apply(void 0, me([na[e]], t, !1)).trim());
|
|
1649
|
+
}
|
|
1650
|
+
var oa = function() {
|
|
1651
|
+
function e(t) {
|
|
1652
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1653
|
+
}
|
|
1654
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1655
|
+
for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
|
|
1656
|
+
return n;
|
|
1657
|
+
}, e.prototype.insertRules = function(t, n) {
|
|
1658
|
+
if (t >= this.groupSizes.length) {
|
|
1659
|
+
for (var r = this.groupSizes, o = r.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw X(16, "".concat(t));
|
|
1660
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(r), this.length = i;
|
|
1661
|
+
for (var a = o; a < i; a++) this.groupSizes[a] = 0;
|
|
1662
|
+
}
|
|
1663
|
+
for (var s = this.indexOfGroup(t + 1), l = (a = 0, n.length); a < l; a++) this.tag.insertRule(s, n[a]) && (this.groupSizes[t]++, s++);
|
|
1664
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1665
|
+
if (t < this.length) {
|
|
1666
|
+
var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
|
|
1667
|
+
this.groupSizes[t] = 0;
|
|
1668
|
+
for (var i = r; i < o; i++) this.tag.deleteRule(r);
|
|
1669
|
+
}
|
|
1670
|
+
}, e.prototype.getGroup = function(t) {
|
|
1671
|
+
var n = "";
|
|
1672
|
+
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1673
|
+
for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, a = o; a < i; a++) n += "".concat(this.tag.getRule(a)).concat(vn);
|
|
1674
|
+
return n;
|
|
1675
|
+
}, e;
|
|
1676
|
+
}(), ia = 1 << 30, ft = /* @__PURE__ */ new Map(), yt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
|
|
1677
|
+
if (ft.has(e)) return ft.get(e);
|
|
1678
|
+
for (; yt.has(dt); ) dt++;
|
|
1679
|
+
var t = dt++;
|
|
1680
|
+
if ($.NODE_ENV !== "production" && ((0 | t) < 0 || t > ia)) throw X(16, "".concat(t));
|
|
1681
|
+
return ft.set(e, t), yt.set(t, e), t;
|
|
1682
|
+
}, aa = function(e, t) {
|
|
1683
|
+
dt = t + 1, ft.set(e, t), yt.set(t, e);
|
|
1684
|
+
}, sa = "style[".concat(ge, "][").concat(qr, '="').concat($t, '"]'), ca = new RegExp("^".concat(ge, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), la = function(e, t, n) {
|
|
1685
|
+
for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
|
|
1686
|
+
}, ua = function(e, t) {
|
|
1687
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(vn), o = [], i = 0, a = r.length; i < a; i++) {
|
|
1688
|
+
var s = r[i].trim();
|
|
1689
|
+
if (s) {
|
|
1690
|
+
var l = s.match(ca);
|
|
1691
|
+
if (l) {
|
|
1692
|
+
var u = 0 | parseInt(l[1], 10), f = l[2];
|
|
1693
|
+
u !== 0 && (aa(f, u), la(e, f, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
|
|
1694
|
+
} else o.push(s);
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
}, ir = function(e) {
|
|
1698
|
+
for (var t = document.querySelectorAll(sa), n = 0, r = t.length; n < r; n++) {
|
|
1699
|
+
var o = t[n];
|
|
1700
|
+
o && o.getAttribute(ge) !== Yr && (ua(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1701
|
+
}
|
|
1702
|
+
};
|
|
1703
|
+
function fa() {
|
|
1704
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1705
|
+
}
|
|
1706
|
+
var oo = function(e) {
|
|
1707
|
+
var t = document.head, n = e || t, r = document.createElement("style"), o = function(s) {
|
|
1708
|
+
var l = Array.from(s.querySelectorAll("style[".concat(ge, "]")));
|
|
1709
|
+
return l[l.length - 1];
|
|
1710
|
+
}(n), i = o !== void 0 ? o.nextSibling : null;
|
|
1711
|
+
r.setAttribute(ge, Yr), r.setAttribute(qr, $t);
|
|
1712
|
+
var a = fa();
|
|
1713
|
+
return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
|
|
1714
|
+
}, da = function() {
|
|
1715
|
+
function e(t) {
|
|
1716
|
+
this.element = oo(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
|
|
1717
|
+
if (n.sheet) return n.sheet;
|
|
1718
|
+
for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
|
|
1719
|
+
var a = r[o];
|
|
1720
|
+
if (a.ownerNode === n) return a;
|
|
1721
|
+
}
|
|
1722
|
+
throw X(17);
|
|
1723
|
+
}(this.element), this.length = 0;
|
|
1724
|
+
}
|
|
1725
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1726
|
+
try {
|
|
1727
|
+
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
1728
|
+
} catch {
|
|
1729
|
+
return !1;
|
|
1730
|
+
}
|
|
1731
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1732
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1733
|
+
}, e.prototype.getRule = function(t) {
|
|
1734
|
+
var n = this.sheet.cssRules[t];
|
|
1735
|
+
return n && n.cssText ? n.cssText : "";
|
|
1736
|
+
}, e;
|
|
1737
|
+
}(), _a = function() {
|
|
1738
|
+
function e(t) {
|
|
1739
|
+
this.element = oo(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1740
|
+
}
|
|
1741
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1742
|
+
if (t <= this.length && t >= 0) {
|
|
1743
|
+
var r = document.createTextNode(n);
|
|
1744
|
+
return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
|
|
1745
|
+
}
|
|
1746
|
+
return !1;
|
|
1747
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1748
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1749
|
+
}, e.prototype.getRule = function(t) {
|
|
1750
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1751
|
+
}, e;
|
|
1752
|
+
}(), ha = function() {
|
|
1753
|
+
function e(t) {
|
|
1754
|
+
this.rules = [], this.length = 0;
|
|
1755
|
+
}
|
|
1756
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1757
|
+
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
1758
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1759
|
+
this.rules.splice(t, 1), this.length--;
|
|
1760
|
+
}, e.prototype.getRule = function(t) {
|
|
1761
|
+
return t < this.length ? this.rules[t] : "";
|
|
1762
|
+
}, e;
|
|
1763
|
+
}(), ar = gt, pa = { isServer: !gt, useCSSOMInjection: !Bi }, io = function() {
|
|
1764
|
+
function e(t, n, r) {
|
|
1765
|
+
t === void 0 && (t = Ne), n === void 0 && (n = {});
|
|
1766
|
+
var o = this;
|
|
1767
|
+
this.options = P(P({}, pa), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && gt && ar && (ar = !1, ir(this)), En(this, function() {
|
|
1768
|
+
return function(i) {
|
|
1769
|
+
for (var a = i.getTag(), s = a.length, l = "", u = function(c) {
|
|
1770
|
+
var _ = function(m) {
|
|
1771
|
+
return yt.get(m);
|
|
1772
|
+
}(c);
|
|
1773
|
+
if (_ === void 0) return "continue";
|
|
1774
|
+
var d = i.names.get(_), g = a.getGroup(c);
|
|
1775
|
+
if (d === void 0 || !d.size || g.length === 0) return "continue";
|
|
1776
|
+
var y = "".concat(ge, ".g").concat(c, '[id="').concat(_, '"]'), v = "";
|
|
1777
|
+
d !== void 0 && d.forEach(function(m) {
|
|
1778
|
+
m.length > 0 && (v += "".concat(m, ","));
|
|
1779
|
+
}), l += "".concat(g).concat(y, '{content:"').concat(v, '"}').concat(vn);
|
|
1780
|
+
}, f = 0; f < s; f++) u(f);
|
|
1781
|
+
return l;
|
|
1782
|
+
}(o);
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
return e.registerId = function(t) {
|
|
1786
|
+
return ot(t);
|
|
1787
|
+
}, e.prototype.rehydrate = function() {
|
|
1788
|
+
!this.server && gt && ir(this);
|
|
1789
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1790
|
+
return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1791
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1792
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1793
|
+
}, e.prototype.getTag = function() {
|
|
1794
|
+
return this.tag || (this.tag = (t = function(n) {
|
|
1795
|
+
var r = n.useCSSOMInjection, o = n.target;
|
|
1796
|
+
return n.isServer ? new ha(o) : r ? new da(o) : new _a(o);
|
|
1797
|
+
}(this.options), new oa(t)));
|
|
1798
|
+
var t;
|
|
1799
|
+
}, e.prototype.hasNameForId = function(t, n) {
|
|
1800
|
+
return this.names.has(t) && this.names.get(t).has(n);
|
|
1801
|
+
}, e.prototype.registerName = function(t, n) {
|
|
1802
|
+
if (ot(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1803
|
+
else {
|
|
1804
|
+
var r = /* @__PURE__ */ new Set();
|
|
1805
|
+
r.add(n), this.names.set(t, r);
|
|
1806
|
+
}
|
|
1807
|
+
}, e.prototype.insertRules = function(t, n, r) {
|
|
1808
|
+
this.registerName(t, n), this.getTag().insertRules(ot(t), r);
|
|
1809
|
+
}, e.prototype.clearNames = function(t) {
|
|
1810
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1811
|
+
}, e.prototype.clearRules = function(t) {
|
|
1812
|
+
this.getTag().clearGroup(ot(t)), this.clearNames(t);
|
|
1813
|
+
}, e.prototype.clearTag = function() {
|
|
1814
|
+
this.tag = void 0;
|
|
1815
|
+
}, e;
|
|
1816
|
+
}(), ma = /&/g, ga = /^\s*\/\/.*$/gm;
|
|
1817
|
+
function ao(e, t) {
|
|
1818
|
+
return e.map(function(n) {
|
|
1819
|
+
return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
|
|
1820
|
+
return "".concat(t, " ").concat(r);
|
|
1821
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = ao(n.children, t)), n;
|
|
1822
|
+
});
|
|
1823
|
+
}
|
|
1824
|
+
function so(e) {
|
|
1825
|
+
var t, n, r, o = e === void 0 ? Ne : e, i = o.options, a = i === void 0 ? Ne : i, s = o.plugins, l = s === void 0 ? Ot : s, u = function(_, d, g) {
|
|
1826
|
+
return g.startsWith(n) && g.endsWith(n) && g.replaceAll(n, "").length > 0 ? ".".concat(t) : _;
|
|
1827
|
+
}, f = l.slice();
|
|
1828
|
+
f.push(function(_) {
|
|
1829
|
+
_.type === Et && _.value.includes("&") && (_.props[0] = _.props[0].replace(ma, n).replace(r, u));
|
|
1830
|
+
}), a.prefix && f.push(zi), f.push(Mi);
|
|
1831
|
+
var c = function(_, d, g, y) {
|
|
1832
|
+
d === void 0 && (d = ""), g === void 0 && (g = ""), y === void 0 && (y = "&"), t = y, n = d, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1833
|
+
var v = _.replace(ga, ""), m = Li(g || d ? "".concat(g, " ").concat(d, " { ").concat(v, " }") : v);
|
|
1834
|
+
a.namespace && (m = ao(m, a.namespace));
|
|
1835
|
+
var p = [];
|
|
1836
|
+
return mt(m, Fi(f.concat(Hi(function(O) {
|
|
1837
|
+
return p.push(O);
|
|
1838
|
+
})))), p;
|
|
1839
|
+
};
|
|
1840
|
+
return c.hash = l.length ? l.reduce(function(_, d) {
|
|
1841
|
+
return d.name || X(15), de(_, d.name);
|
|
1842
|
+
}, Xr).toString() : "", c;
|
|
1843
|
+
}
|
|
1844
|
+
var ya = new io(), Qt = so(), Sn = re.createContext({ shouldForwardProp: void 0, styleSheet: ya, stylis: Qt });
|
|
1845
|
+
Sn.Consumer;
|
|
1846
|
+
var va = re.createContext(void 0);
|
|
1847
|
+
function en() {
|
|
1848
|
+
return Xe(Sn);
|
|
1849
|
+
}
|
|
1850
|
+
function Ca(e) {
|
|
1851
|
+
var t = H(e.stylisPlugins), n = t[0], r = t[1], o = en().styleSheet, i = ne(function() {
|
|
1852
|
+
var l = o;
|
|
1853
|
+
return e.sheet ? l = e.sheet : e.target && (l = l.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (l = l.reconstructWithOptions({ useCSSOMInjection: !1 })), l;
|
|
1854
|
+
}, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = ne(function() {
|
|
1855
|
+
return so({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
|
|
1856
|
+
}, [e.enableVendorPrefixes, e.namespace, n]);
|
|
1857
|
+
K(function() {
|
|
1858
|
+
Si(n, e.stylisPlugins) || r(e.stylisPlugins);
|
|
1859
|
+
}, [e.stylisPlugins]);
|
|
1860
|
+
var s = ne(function() {
|
|
1861
|
+
return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
|
|
1862
|
+
}, [e.shouldForwardProp, i, a]);
|
|
1863
|
+
return re.createElement(Sn.Provider, { value: s }, re.createElement(va.Provider, { value: a }, e.children));
|
|
1864
|
+
}
|
|
1865
|
+
var tn = function() {
|
|
1866
|
+
function e(t, n) {
|
|
1867
|
+
var r = this;
|
|
1868
|
+
this.inject = function(o, i) {
|
|
1869
|
+
i === void 0 && (i = Qt);
|
|
1870
|
+
var a = r.name + i.hash;
|
|
1871
|
+
o.hasNameForId(r.id, a) || o.insertRules(r.id, a, i(r.rules, a, "@keyframes"));
|
|
1872
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, En(this, function() {
|
|
1873
|
+
throw X(12, String(r.name));
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1876
|
+
return e.prototype.getName = function(t) {
|
|
1877
|
+
return t === void 0 && (t = Qt), this.name + t.hash;
|
|
1878
|
+
}, e;
|
|
1879
|
+
}(), Ea = function(e) {
|
|
1880
|
+
return e >= "A" && e <= "Z";
|
|
1881
|
+
};
|
|
1882
|
+
function sr(e) {
|
|
1883
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1884
|
+
var r = e[n];
|
|
1885
|
+
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
1886
|
+
Ea(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
1887
|
+
}
|
|
1888
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1889
|
+
}
|
|
1890
|
+
var co = function(e) {
|
|
1891
|
+
return e == null || e === !1 || e === "";
|
|
1892
|
+
}, lo = function(e) {
|
|
1893
|
+
var t, n, r = [];
|
|
1894
|
+
for (var o in e) {
|
|
1895
|
+
var i = e[o];
|
|
1896
|
+
e.hasOwnProperty(o) && !co(i) && (Array.isArray(i) && i.isCss || ye(i) ? r.push("".concat(sr(o), ":"), i, ";") : Te(i) ? r.push.apply(r, me(me(["".concat(o, " {")], lo(i), !1), ["}"], !1)) : r.push("".concat(sr(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Ui || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1897
|
+
}
|
|
1898
|
+
return r;
|
|
1899
|
+
};
|
|
1900
|
+
function pe(e, t, n, r) {
|
|
1901
|
+
if (co(e)) return [];
|
|
1902
|
+
if (Cn(e)) return [".".concat(e.styledComponentId)];
|
|
1903
|
+
if (ye(e)) {
|
|
1904
|
+
if (!ye(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
1905
|
+
var o = e(t);
|
|
1906
|
+
return $.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof tn || Te(o) || o === null || console.error("".concat(Qr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), pe(o, t, n, r);
|
|
1907
|
+
}
|
|
1908
|
+
var i;
|
|
1909
|
+
return e instanceof tn ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? lo(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ot, e.map(function(a) {
|
|
1910
|
+
return pe(a, t, n, r);
|
|
1911
|
+
})) : [e.toString()];
|
|
1912
|
+
}
|
|
1913
|
+
function Sa(e) {
|
|
1914
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1915
|
+
var n = e[t];
|
|
1916
|
+
if (ye(n) && !Cn(n)) return !1;
|
|
1917
|
+
}
|
|
1918
|
+
return !0;
|
|
1919
|
+
}
|
|
1920
|
+
var wa = Kr($t), ba = function() {
|
|
1921
|
+
function e(t, n, r) {
|
|
1922
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = $.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Sa(t), this.componentId = n, this.baseHash = de(wa, n), this.baseStyle = r, io.registerId(n);
|
|
1923
|
+
}
|
|
1924
|
+
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1925
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
1926
|
+
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = _e(o, this.staticRulesId);
|
|
1927
|
+
else {
|
|
1928
|
+
var i = Kt(pe(this.rules, t, n, r)), a = Xt(de(this.baseHash, i) >>> 0);
|
|
1929
|
+
if (!n.hasNameForId(this.componentId, a)) {
|
|
1930
|
+
var s = r(i, ".".concat(a), void 0, this.componentId);
|
|
1931
|
+
n.insertRules(this.componentId, a, s);
|
|
1932
|
+
}
|
|
1933
|
+
o = _e(o, a), this.staticRulesId = a;
|
|
1934
|
+
}
|
|
1935
|
+
else {
|
|
1936
|
+
for (var l = de(this.baseHash, r.hash), u = "", f = 0; f < this.rules.length; f++) {
|
|
1937
|
+
var c = this.rules[f];
|
|
1938
|
+
if (typeof c == "string") u += c, $.NODE_ENV !== "production" && (l = de(l, c));
|
|
1939
|
+
else if (c) {
|
|
1940
|
+
var _ = Kt(pe(c, t, n, r));
|
|
1941
|
+
l = de(l, _ + f), u += _;
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
if (u) {
|
|
1945
|
+
var d = Xt(l >>> 0);
|
|
1946
|
+
n.hasNameForId(this.componentId, d) || n.insertRules(this.componentId, d, r(u, ".".concat(d), void 0, this.componentId)), o = _e(o, d);
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
return o;
|
|
1950
|
+
}, e;
|
|
1951
|
+
}(), Ve = re.createContext(void 0);
|
|
1952
|
+
Ve.Consumer;
|
|
1953
|
+
function uo() {
|
|
1954
|
+
var e = Xe(Ve);
|
|
1955
|
+
if (!e) throw X(18);
|
|
1956
|
+
return e;
|
|
1957
|
+
}
|
|
1958
|
+
function $a(e) {
|
|
1959
|
+
var t = re.useContext(Ve), n = ne(function() {
|
|
1960
|
+
return function(r, o) {
|
|
1961
|
+
if (!r) throw X(14);
|
|
1962
|
+
if (ye(r)) {
|
|
1963
|
+
var i = r(o);
|
|
1964
|
+
if ($.NODE_ENV !== "production" && (i === null || Array.isArray(i) || typeof i != "object")) throw X(7);
|
|
1965
|
+
return i;
|
|
1966
|
+
}
|
|
1967
|
+
if (Array.isArray(r) || typeof r != "object") throw X(8);
|
|
1968
|
+
return o ? P(P({}, o), r) : r;
|
|
1969
|
+
}(e.theme, t);
|
|
1970
|
+
}, [e.theme, t]);
|
|
1971
|
+
return e.children ? re.createElement(Ve.Provider, { value: n }, e.children) : null;
|
|
1972
|
+
}
|
|
1973
|
+
var Ft = {}, cr = /* @__PURE__ */ new Set();
|
|
1974
|
+
function Oa(e, t, n) {
|
|
1975
|
+
var r = Cn(e), o = e, i = !Mt(e), a = t.attrs, s = a === void 0 ? Ot : a, l = t.componentId, u = l === void 0 ? function(b, N) {
|
|
1976
|
+
var w = typeof b != "string" ? "sc" : er(b);
|
|
1977
|
+
Ft[w] = (Ft[w] || 0) + 1;
|
|
1978
|
+
var C = "".concat(w, "-").concat(Jr($t + w + Ft[w]));
|
|
1979
|
+
return N ? "".concat(N, "-").concat(C) : C;
|
|
1980
|
+
}(t.displayName, t.parentComponentId) : l, f = t.displayName, c = f === void 0 ? function(b) {
|
|
1981
|
+
return Mt(b) ? "styled.".concat(b) : "Styled(".concat(Qr(b), ")");
|
|
1982
|
+
}(e) : f, _ = t.displayName && t.componentId ? "".concat(er(t.displayName), "-").concat(t.componentId) : t.componentId || u, d = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, g = t.shouldForwardProp;
|
|
1983
|
+
if (r && o.shouldForwardProp) {
|
|
1984
|
+
var y = o.shouldForwardProp;
|
|
1985
|
+
if (t.shouldForwardProp) {
|
|
1986
|
+
var v = t.shouldForwardProp;
|
|
1987
|
+
g = function(b, N) {
|
|
1988
|
+
return y(b, N) && v(b, N);
|
|
1989
|
+
};
|
|
1990
|
+
} else g = y;
|
|
1991
|
+
}
|
|
1992
|
+
var m = new ba(n, _, r ? o.componentStyle : void 0);
|
|
1993
|
+
function p(b, N) {
|
|
1994
|
+
return function(w, C, M) {
|
|
1995
|
+
var U = w.attrs, Ae = w.componentStyle, B = w.defaultProps, le = w.foldedComponentIds, $n = w.styledComponentId, vo = w.target, Co = re.useContext(Ve), Eo = en(), Nt = w.shouldForwardProp || Eo.shouldForwardProp;
|
|
1996
|
+
$.NODE_ENV !== "production" && pt($n);
|
|
1997
|
+
var On = Gi(C, Co, B) || Ne, J = function(Ke, De, Je) {
|
|
1998
|
+
for (var Ce, ue = P(P({}, De), { className: void 0, theme: Je }), Rt = 0; Rt < Ke.length; Rt += 1) {
|
|
1999
|
+
var Qe = ye(Ce = Ke[Rt]) ? Ce(ue) : Ce;
|
|
2000
|
+
for (var oe in Qe) ue[oe] = oe === "className" ? _e(ue[oe], Qe[oe]) : oe === "style" ? P(P({}, ue[oe]), Qe[oe]) : Qe[oe];
|
|
2001
|
+
}
|
|
2002
|
+
return De.className && (ue.className = _e(ue.className, De.className)), ue;
|
|
2003
|
+
}(U, C, On), Pe = J.as || vo, Le = {};
|
|
2004
|
+
for (var W in J) J[W] === void 0 || W[0] === "$" || W === "as" || W === "theme" && J.theme === On || (W === "forwardedAs" ? Le.as = J.forwardedAs : Nt && !Nt(W, Pe) || (Le[W] = J[W], Nt || $.NODE_ENV !== "development" || Uo(W) || cr.has(W) || !qt.has(Pe) || (cr.add(W), console.warn('styled-components: it looks like an unknown prop "'.concat(W, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
2005
|
+
var Tt = function(Ke, De) {
|
|
2006
|
+
var Je = en(), Ce = Ke.generateAndInjectStyles(De, Je.styleSheet, Je.stylis);
|
|
2007
|
+
return $.NODE_ENV !== "production" && pt(Ce), Ce;
|
|
2008
|
+
}(Ae, J);
|
|
2009
|
+
$.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(Tt);
|
|
2010
|
+
var It = _e(le, $n);
|
|
2011
|
+
return Tt && (It += " " + Tt), J.className && (It += " " + J.className), Le[Mt(Pe) && !qt.has(Pe) ? "class" : "className"] = It, M && (Le.ref = M), L(Pe, Le);
|
|
2012
|
+
}(O, b, N);
|
|
2013
|
+
}
|
|
2014
|
+
p.displayName = c;
|
|
2015
|
+
var O = re.forwardRef(p);
|
|
2016
|
+
return O.attrs = d, O.componentStyle = m, O.displayName = c, O.shouldForwardProp = g, O.foldedComponentIds = r ? _e(o.foldedComponentIds, o.styledComponentId) : "", O.styledComponentId = _, O.target = r ? o.target : e, Object.defineProperty(O, "defaultProps", { get: function() {
|
|
2017
|
+
return this._foldedDefaultProps;
|
|
2018
|
+
}, set: function(b) {
|
|
2019
|
+
this._foldedDefaultProps = r ? function(N) {
|
|
2020
|
+
for (var w = [], C = 1; C < arguments.length; C++) w[C - 1] = arguments[C];
|
|
2021
|
+
for (var M = 0, U = w; M < U.length; M++) Jt(N, U[M], !0);
|
|
2022
|
+
return N;
|
|
2023
|
+
}({}, o.defaultProps, b) : b;
|
|
2024
|
+
} }), $.NODE_ENV !== "production" && (Wi(c, _), O.warnTooManyClasses = /* @__PURE__ */ function(b, N) {
|
|
2025
|
+
var w = {}, C = !1;
|
|
2026
|
+
return function(M) {
|
|
2027
|
+
if (!C && (w[M] = !0, Object.keys(w).length >= 200)) {
|
|
2028
|
+
var U = N ? ' with the id of "'.concat(N, '"') : "";
|
|
2029
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(U, `.
|
|
2030
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
2031
|
+
Example:
|
|
2032
|
+
const Component = styled.div.attrs(props => ({
|
|
2033
|
+
style: {
|
|
2034
|
+
background: props.background,
|
|
2035
|
+
},
|
|
2036
|
+
}))\`width: 100%;\`
|
|
2037
|
+
|
|
2038
|
+
<Component />`), C = !0, w = {};
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
2041
|
+
}(c, _)), En(O, function() {
|
|
2042
|
+
return ".".concat(O.styledComponentId);
|
|
2043
|
+
}), i && ro(O, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), O;
|
|
2044
|
+
}
|
|
2045
|
+
function lr(e, t) {
|
|
2046
|
+
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
2047
|
+
return n;
|
|
2048
|
+
}
|
|
2049
|
+
var ur = function(e) {
|
|
2050
|
+
return Object.assign(e, { isCss: !0 });
|
|
2051
|
+
};
|
|
2052
|
+
function wn(e) {
|
|
2053
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2054
|
+
if (ye(e) || Te(e)) return ur(pe(lr(Ot, me([e], t, !0))));
|
|
2055
|
+
var r = e;
|
|
2056
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? pe(r) : ur(pe(lr(r, t)));
|
|
2057
|
+
}
|
|
2058
|
+
function nn(e, t, n) {
|
|
2059
|
+
if (n === void 0 && (n = Ne), !t) throw X(1, t);
|
|
2060
|
+
var r = function(o) {
|
|
2061
|
+
for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
|
|
2062
|
+
return e(t, n, wn.apply(void 0, me([o], i, !1)));
|
|
2063
|
+
};
|
|
2064
|
+
return r.attrs = function(o) {
|
|
2065
|
+
return nn(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
2066
|
+
}, r.withConfig = function(o) {
|
|
2067
|
+
return nn(e, t, P(P({}, n), o));
|
|
2068
|
+
}, r;
|
|
2069
|
+
}
|
|
2070
|
+
var fo = function(e) {
|
|
2071
|
+
return nn(Oa, e);
|
|
2072
|
+
}, z = fo;
|
|
2073
|
+
qt.forEach(function(e) {
|
|
2074
|
+
z[e] = fo(e);
|
|
2075
|
+
});
|
|
2076
|
+
function kt(e) {
|
|
2077
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
2078
|
+
$.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
2079
|
+
var r = Kt(wn.apply(void 0, me([e], t, !1))), o = Jr(r);
|
|
2080
|
+
return new tn(o, r);
|
|
2081
|
+
}
|
|
2082
|
+
$.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
2083
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
2084
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
2085
|
+
var it = "__sc-".concat(ge, "__");
|
|
2086
|
+
$.NODE_ENV !== "production" && $.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
2087
|
+
|
|
2088
|
+
See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
|
|
2089
|
+
const _o = {
|
|
2090
|
+
CIRCLE_SOLID: "circle-solid"
|
|
2091
|
+
}, ka = 2, ho = 14, Na = 0.0276;
|
|
2092
|
+
var ee = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(ee || {});
|
|
2093
|
+
const ze = {
|
|
2094
|
+
300: {
|
|
2095
|
+
iconSize: 40,
|
|
2096
|
+
marginLeft: 12,
|
|
2097
|
+
buttonPadding: 4
|
|
2098
|
+
},
|
|
2099
|
+
400: {
|
|
2100
|
+
iconSize: 45,
|
|
2101
|
+
marginLeft: 12,
|
|
2102
|
+
buttonPadding: 8
|
|
2103
|
+
},
|
|
2104
|
+
500: {
|
|
2105
|
+
iconSize: 52,
|
|
2106
|
+
marginLeft: 12,
|
|
2107
|
+
buttonPadding: 12
|
|
2108
|
+
},
|
|
2109
|
+
600: {
|
|
2110
|
+
iconSize: 52,
|
|
2111
|
+
marginLeft: 12,
|
|
2112
|
+
buttonPadding: 24
|
|
2113
|
+
}
|
|
2114
|
+
}, Ht = {
|
|
2115
|
+
loading: { text: "Loading. Please wait.", visible: !0 },
|
|
2116
|
+
waiting: { text: "Waiting for input...", visible: !0 }
|
|
2117
|
+
}, Ta = {
|
|
2118
|
+
[D.CANDIDATE_SELECTION]: "Stay still…",
|
|
2119
|
+
[D.FACE_TOO_CLOSE]: "Move back",
|
|
2120
|
+
[D.FACE_TOO_FAR]: "Move closer",
|
|
2121
|
+
[D.FACE_CENTERING]: "Center your face",
|
|
2122
|
+
[D.FACE_NOT_PRESENT]: "Position your face into the circle",
|
|
2123
|
+
[D.SHARPNESS_TOO_LOW]: "Turn face against light",
|
|
2124
|
+
[D.BRIGHTNESS_TOO_LOW]: "Turn face against light",
|
|
2125
|
+
[D.BRIGHTNESS_TOO_HIGH]: "Less light needed",
|
|
2126
|
+
[D.DEVICE_PITCHED]: "Hold your phone at eye level",
|
|
2127
|
+
[D.LEFT_EYE_NOT_PRESENT]: "Position your face into the circle",
|
|
2128
|
+
[D.RIGHT_EYE_NOT_PRESENT]: "Position your face into the circle",
|
|
2129
|
+
[D.MOUTH_SCORE_TOO_HIGH]: "Keep neutral expression",
|
|
2130
|
+
[D.MOUTH_SCORE_TOO_LOW]: "Smile :)",
|
|
2131
|
+
[D.MOUTH_NOT_PRESENT]: "Position your face into the circle"
|
|
2132
|
+
}, Ia = _o.CIRCLE_SOLID, Ra = {
|
|
2133
|
+
...Ta
|
|
2134
|
+
}, xa = {
|
|
2135
|
+
[ht.FACE_TOO_CLOSE]: "Move your face back",
|
|
2136
|
+
[ht.FACE_TOO_FAR]: "Move your face closer"
|
|
2137
|
+
}, Aa = "rgba(19, 19, 19, 0.5)", Pa = 34;
|
|
2138
|
+
function fr(e, t) {
|
|
2139
|
+
return Math.max(t, t + (e - 400) * Na + 2);
|
|
2140
|
+
}
|
|
2141
|
+
const La = (e, t = ho) => e ? e.width < e.height ? fr(e.width, t) : fr(e.height, t) : t, Da = (e) => e > ee.Default ? ze[ee.Default] : e > ee.L ? ze[ee.L] : e > ee.M ? ze[ee.M] : ze[ee.S], Ma = (e) => e ? Da(e.width) : ze[ee.Default];
|
|
2142
|
+
function Fa() {
|
|
2143
|
+
const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
|
|
2144
|
+
if (!document.querySelector(`link[href="${e}"]`)) {
|
|
2145
|
+
const n = document.createElement("link");
|
|
2146
|
+
n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
function Ha({
|
|
2150
|
+
currentInstruction: e,
|
|
2151
|
+
escalatedInstructions: t,
|
|
2152
|
+
instructions: n
|
|
2153
|
+
}) {
|
|
2154
|
+
const { code: r, isEscalated: o } = e;
|
|
2155
|
+
if (r)
|
|
2156
|
+
return o && t && r in t ? t[r] : n[r];
|
|
2157
|
+
}
|
|
2158
|
+
const We = $r(void 0);
|
|
2159
|
+
We.displayName = "UiCustomizationContext";
|
|
2160
|
+
function ve() {
|
|
2161
|
+
const e = Xe(We);
|
|
2162
|
+
if (!e)
|
|
2163
|
+
throw new Error(
|
|
2164
|
+
`${We.displayName} must be used within a ${We.displayName} Provider`
|
|
2165
|
+
);
|
|
2166
|
+
return e;
|
|
2167
|
+
}
|
|
2168
|
+
function za({ children: e, props: t, videoElementSize: n }) {
|
|
2169
|
+
const { font: r } = uo(), o = ne(
|
|
2170
|
+
() => ({ ...t, videoElementSize: n, fontSize: La(n, r.minimumSize) }),
|
|
2171
|
+
[t, r.minimumSize, n]
|
|
2172
|
+
);
|
|
2173
|
+
return /* @__PURE__ */ h(We.Provider, { value: o, children: e });
|
|
2174
|
+
}
|
|
2175
|
+
const po = ({ svgSize: e }) => /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ h(
|
|
2176
|
+
"path",
|
|
2177
|
+
{
|
|
2178
|
+
clipRule: "evenodd",
|
|
2179
|
+
d: "M14.3062 13.5002H1.69384C0.932655 13.5002 0.450552 12.6837 0.818264 12.0172L7.12444 0.587236C7.5047 -0.101994 8.49533 -0.101996 8.87559 0.587234L15.1818 12.0172C15.5495 12.6837 15.0674 13.5002 14.3062 13.5002ZM8.00001 3.25025C8.41423 3.25025 8.75002 3.58604 8.75002 4.00025V8.50025C8.75002 8.91446 8.41423 9.25025 8.00001 9.25025C7.5858 9.25025 7.25001 8.91446 7.25001 8.50025V4.00025C7.25001 3.58604 7.5858 3.25025 8.00001 3.25025ZM8.75002 11.2502C8.75002 11.6645 8.41423 12.0002 8.00001 12.0002C7.5858 12.0002 7.25001 11.6645 7.25001 11.2502C7.25001 10.836 7.5858 10.5002 8.00001 10.5002C8.41423 10.5002 8.75002 10.836 8.75002 11.2502Z",
|
|
2180
|
+
fill: "currentColor",
|
|
2181
|
+
fillRule: "evenodd"
|
|
2182
|
+
}
|
|
2183
|
+
) }), Ua = z.div`
|
|
2184
|
+
width: 100%;
|
|
2185
|
+
height: 100%;
|
|
2186
|
+
top: 0;
|
|
2187
|
+
position: ${(e) => e.$position};
|
|
2188
|
+
display: flex;
|
|
2189
|
+
justify-content: center;
|
|
2190
|
+
align-items: center;
|
|
2191
|
+
text-align: center;
|
|
2192
|
+
z-index: 1;
|
|
2193
|
+
|
|
2194
|
+
${(e) => !e.$isCameraReady && `
|
|
2195
|
+
height: inherit;
|
|
2196
|
+
aspect-ratio: 16/9;
|
|
2197
|
+
|
|
2198
|
+
@media (orientation: portrait) and (max-width: 1199px) {
|
|
2199
|
+
aspect-ratio: 9/16;
|
|
2200
|
+
}
|
|
2201
|
+
`}
|
|
2202
|
+
`, Ba = z.div`
|
|
2203
|
+
width: 100%;
|
|
2204
|
+
display: flex;
|
|
2205
|
+
flex-direction: column;
|
|
2206
|
+
justify-content: center;
|
|
2207
|
+
align-items: center;
|
|
2208
|
+
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2209
|
+
`, Wa = z.p`
|
|
2210
|
+
background: ${(e) => e.theme.colors.instructionColor};
|
|
2211
|
+
border-radius: 0.25em;
|
|
2212
|
+
padding: 0.583em 0.666em;
|
|
2213
|
+
margin: 0.8em 0;
|
|
2214
|
+
font-size: ${(e) => `${e.$fontSize}px`};
|
|
2215
|
+
line-height: 1em;
|
|
2216
|
+
max-width: 80%;
|
|
2217
|
+
`, rn = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
|
|
2218
|
+
const { fontSize: o } = ve();
|
|
2219
|
+
return /* @__PURE__ */ h(Ua, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ h(Ba, { children: [
|
|
2220
|
+
e ? /* @__PURE__ */ h(e, { svgSize: o * 2 }) : null,
|
|
2221
|
+
/* @__PURE__ */ h(Wa, { $fontSize: o, children: r })
|
|
2222
|
+
] }) });
|
|
2223
|
+
}, mo = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ h(rn, { Icon: po, position: "relative", text: e });
|
|
2224
|
+
class Ga extends V {
|
|
2225
|
+
constructor(t) {
|
|
2226
|
+
super(t), this.state = { hasError: !1 };
|
|
2227
|
+
}
|
|
2228
|
+
static getDerivedStateFromError(t) {
|
|
2229
|
+
return { hasError: !0 };
|
|
2230
|
+
}
|
|
2231
|
+
componentDidCatch(t, n) {
|
|
2232
|
+
console.error(t, n);
|
|
2233
|
+
}
|
|
2234
|
+
render() {
|
|
2235
|
+
return this.state.hasError ? /* @__PURE__ */ h(mo, { Icon: po, isCameraReady: !1 }) : this.props.children;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
const ja = z.div`
|
|
2239
|
+
font-family: ${(e) => e.theme.font.family};
|
|
2240
|
+
font-style: ${(e) => e.theme.font.style};
|
|
2241
|
+
font-weight: ${(e) => e.theme.font.weight};
|
|
2242
|
+
`, Va = ({ children: e, uiProps: t, videoElementSize: n }) => (K(() => {
|
|
2243
|
+
Fa();
|
|
2244
|
+
}, []), /* @__PURE__ */ h(Ca, { target: t.styleTarget, children: /* @__PURE__ */ h($a, { theme: t.theme, children: /* @__PURE__ */ h(ja, { children: /* @__PURE__ */ h(Ga, { videoElementSize: n, children: /* @__PURE__ */ h(za, { props: t, videoElementSize: n, children: e }) }) }) }) })), Za = 0.75, Ya = 2, qa = "dot-auto-capture-video", we = (e, t) => {
|
|
2245
|
+
const n = qe(t);
|
|
2246
|
+
K(() => {
|
|
2247
|
+
n.current = t;
|
|
2248
|
+
}, [t]), K(
|
|
2249
|
+
() => {
|
|
2250
|
+
const r = (o) => n.current(o);
|
|
2251
|
+
return document.addEventListener(e, r), () => {
|
|
2252
|
+
document.removeEventListener(e, r);
|
|
2253
|
+
};
|
|
2254
|
+
},
|
|
2255
|
+
[e]
|
|
2256
|
+
// Re-run if eventName
|
|
2257
|
+
);
|
|
2258
|
+
};
|
|
2259
|
+
function Xa(e) {
|
|
2260
|
+
const [t, n] = H(), r = ae(
|
|
2261
|
+
(o) => {
|
|
2262
|
+
var i;
|
|
2263
|
+
n((i = o.detail) == null ? void 0 : i.size);
|
|
2264
|
+
},
|
|
2265
|
+
[n]
|
|
2266
|
+
);
|
|
2267
|
+
return we(e, r), Re(() => {
|
|
2268
|
+
if (!t) {
|
|
2269
|
+
const o = document.getElementById(qa);
|
|
2270
|
+
o && n(o.getBoundingClientRect());
|
|
2271
|
+
}
|
|
2272
|
+
}, [t, n]), t;
|
|
2273
|
+
}
|
|
2274
|
+
function Ka(e, t) {
|
|
2275
|
+
return e ? `${e}, ${t}` : t;
|
|
2276
|
+
}
|
|
2277
|
+
const Ja = {
|
|
2278
|
+
placeholderColor: "white",
|
|
2279
|
+
placeholderColorSuccess: "#00BFB2",
|
|
2280
|
+
instructionColor: "#F8FBFB",
|
|
2281
|
+
instructionColorSuccess: "#00BFB2",
|
|
2282
|
+
instructionTextColor: "#021B41;"
|
|
2283
|
+
}, Qa = {
|
|
2284
|
+
family: "Montserrat, Arial, sans-serif",
|
|
2285
|
+
weight: "600",
|
|
2286
|
+
style: "normal",
|
|
2287
|
+
minimumSize: ho
|
|
2288
|
+
}, Me = {
|
|
2289
|
+
colors: Ja,
|
|
2290
|
+
font: Qa
|
|
2291
|
+
}, es = (e) => {
|
|
2292
|
+
var t;
|
|
2293
|
+
return e ? {
|
|
2294
|
+
...Me,
|
|
2295
|
+
...e,
|
|
2296
|
+
colors: {
|
|
2297
|
+
...Me.colors,
|
|
2298
|
+
...e.colors
|
|
2299
|
+
},
|
|
2300
|
+
font: {
|
|
2301
|
+
...Me.font,
|
|
2302
|
+
...e.font,
|
|
2303
|
+
family: Ka((t = e.font) == null ? void 0 : t.family, Me.font.family)
|
|
2304
|
+
}
|
|
2305
|
+
} : Me;
|
|
2306
|
+
}, ts = (e) => Number.parseFloat(e.toFixed(3)), bn = (e, t) => Math.min(e, t), ns = ({ height: e, width: t }, n) => {
|
|
2307
|
+
const r = bn(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
|
|
2308
|
+
return {
|
|
2309
|
+
shiftX: o,
|
|
2310
|
+
shiftY: i,
|
|
2311
|
+
width: r,
|
|
2312
|
+
height: r
|
|
2313
|
+
};
|
|
2314
|
+
}, rs = (e, t) => {
|
|
2315
|
+
const { height: n, shiftX: r, shiftY: o, width: i } = ns(e, t);
|
|
2316
|
+
return {
|
|
2317
|
+
shiftX: r / e.width,
|
|
2318
|
+
shiftY: o / e.height,
|
|
2319
|
+
width: i / e.width,
|
|
2320
|
+
height: n / e.height
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
function os(e, t) {
|
|
2324
|
+
const n = bn(t.width, t.height);
|
|
2325
|
+
return ts(e * n);
|
|
2326
|
+
}
|
|
2327
|
+
function is(e) {
|
|
2328
|
+
return rs(e, Za);
|
|
2329
|
+
}
|
|
2330
|
+
function as(e, t) {
|
|
2331
|
+
return os(e, t) * Ya;
|
|
2332
|
+
}
|
|
2333
|
+
const on = (e, t) => {
|
|
2334
|
+
document.dispatchEvent(
|
|
2335
|
+
new CustomEvent(e, {
|
|
2336
|
+
detail: t
|
|
2337
|
+
})
|
|
2338
|
+
);
|
|
2339
|
+
}, vt = class vt {
|
|
2340
|
+
constructor() {
|
|
2341
|
+
et(this, "lastDetails");
|
|
2342
|
+
et(this, "delayedTime");
|
|
2343
|
+
this.lastDetails = {}, this.delayedTime = 0;
|
|
2344
|
+
}
|
|
2345
|
+
// TODO remove singleton
|
|
2346
|
+
static getInstance() {
|
|
2347
|
+
return this._instance || (this._instance = new vt()), this._instance;
|
|
2348
|
+
}
|
|
2349
|
+
restart() {
|
|
2350
|
+
this.lastDetails = {}, this.delayedTime = 0;
|
|
2351
|
+
}
|
|
2352
|
+
/**
|
|
2353
|
+
* If the detail object has changed, save the new detail object and return true. Otherwise, return
|
|
2354
|
+
* false
|
|
2355
|
+
* @param {string} eventName - The name of the event.
|
|
2356
|
+
* @param detail - This is the data that is passed to the event.
|
|
2357
|
+
* @returns a boolean value.
|
|
2358
|
+
*/
|
|
2359
|
+
isDetailChanged(t, n) {
|
|
2360
|
+
return JSON.stringify(n) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = n, !0) : !1;
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
* If the detail of the event has changed, dispatch the event
|
|
2364
|
+
* @param {string} eventName - The name of the event to dispatch.
|
|
2365
|
+
* @param detail - Record<string, unknown>
|
|
2366
|
+
*/
|
|
2367
|
+
dispatchCustomEventOnChange(t, n) {
|
|
2368
|
+
this.isDetailChanged(t, n) && on(t, n);
|
|
2369
|
+
}
|
|
2370
|
+
/**
|
|
2371
|
+
* If the detail of the event has changed, delay time has passed, dispatch the event
|
|
2372
|
+
* @param {string} eventName - The name of the event to dispatch.
|
|
2373
|
+
* @param detail - Record<string, unknown>
|
|
2374
|
+
* @param {number} delay - How long dispatch should be delayed.
|
|
2375
|
+
*/
|
|
2376
|
+
dispatchDelayedCustomEventOnChange(t, n, r) {
|
|
2377
|
+
const o = performance.now();
|
|
2378
|
+
o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
|
|
2379
|
+
}
|
|
2380
|
+
// implement this method in the class
|
|
2381
|
+
dispatchCustomEvent(t, n) {
|
|
2382
|
+
on(t, n);
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
// TODO remove singleton
|
|
2386
|
+
et(vt, "_instance");
|
|
2387
|
+
let an = vt;
|
|
2388
|
+
an.getInstance();
|
|
2389
|
+
const dr = (e, t) => {
|
|
2390
|
+
on(e, {
|
|
2391
|
+
instruction: t
|
|
2392
|
+
});
|
|
2393
|
+
};
|
|
2394
|
+
async function ss() {
|
|
2395
|
+
return navigator.mediaDevices.enumerateDevices();
|
|
2396
|
+
}
|
|
2397
|
+
async function cs() {
|
|
2398
|
+
return (await ss()).filter((t) => t.kind === "videoinput");
|
|
2399
|
+
}
|
|
2400
|
+
const ls = () => {
|
|
2401
|
+
const [e, t] = H(!1);
|
|
2402
|
+
return K(() => {
|
|
2403
|
+
(async () => {
|
|
2404
|
+
(await cs()).length > 1 && t(!0);
|
|
2405
|
+
})();
|
|
2406
|
+
}, []), e;
|
|
2407
|
+
}, us = ({ size: e }) => /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2408
|
+
/* @__PURE__ */ h(
|
|
2409
|
+
"path",
|
|
2410
|
+
{
|
|
2411
|
+
d: "M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",
|
|
2412
|
+
fill: "#131313",
|
|
2413
|
+
fillOpacity: "0.3"
|
|
2414
|
+
}
|
|
2415
|
+
),
|
|
2416
|
+
/* @__PURE__ */ h("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
|
|
2417
|
+
/* @__PURE__ */ h(
|
|
2418
|
+
"path",
|
|
2419
|
+
{
|
|
2420
|
+
d: "M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",
|
|
2421
|
+
stroke: "white",
|
|
2422
|
+
strokeWidth: "2"
|
|
2423
|
+
}
|
|
2424
|
+
),
|
|
2425
|
+
/* @__PURE__ */ h("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
|
|
2426
|
+
/* @__PURE__ */ h(
|
|
2427
|
+
"path",
|
|
2428
|
+
{
|
|
2429
|
+
d: "M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",
|
|
2430
|
+
stroke: "white",
|
|
2431
|
+
strokeWidth: "2"
|
|
2432
|
+
}
|
|
2433
|
+
)
|
|
2434
|
+
] }), fs = ({ size: e }) => /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2435
|
+
/* @__PURE__ */ h("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
|
|
2436
|
+
/* @__PURE__ */ h(
|
|
2437
|
+
"path",
|
|
2438
|
+
{
|
|
2439
|
+
d: "M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",
|
|
2440
|
+
fill: "white"
|
|
2441
|
+
}
|
|
2442
|
+
)
|
|
2443
|
+
] }), go = z.button`
|
|
2444
|
+
background: none;
|
|
2445
|
+
border: none;
|
|
2446
|
+
padding: 0;
|
|
2447
|
+
cursor: pointer;
|
|
2448
|
+
margin-left: ${(e) => e.$marginLeft ? `${e.$marginLeft}px` : 0};
|
|
2449
|
+
|
|
2450
|
+
&:disabled {
|
|
2451
|
+
cursor: not-allowed;
|
|
2452
|
+
}
|
|
2453
|
+
`, ds = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ h(go, { $marginLeft: e, ...n, children: /* @__PURE__ */ h(us, { size: t }) }), _s = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ h(go, { $marginLeft: e, ...n, children: /* @__PURE__ */ h(fs, { size: t }) }), hs = z.div`
|
|
2454
|
+
position: absolute;
|
|
2455
|
+
top: 0;
|
|
2456
|
+
right: 0;
|
|
2457
|
+
padding: ${(e) => `${e.$padding}px`};
|
|
2458
|
+
z-index: 2;
|
|
2459
|
+
`, ps = ({
|
|
2460
|
+
customControlEvent: e,
|
|
2461
|
+
isSwitchCameraDisabled: t
|
|
2462
|
+
}) => {
|
|
2463
|
+
const { showCameraButtons: n, videoElementSize: r } = ve(), o = ls();
|
|
2464
|
+
if (!n)
|
|
2465
|
+
return null;
|
|
2466
|
+
const { buttonPadding: i, iconSize: a, marginLeft: s } = Ma(r);
|
|
2467
|
+
return /* @__PURE__ */ h(hs, { $padding: i, children: [
|
|
2468
|
+
o && /* @__PURE__ */ h(_s, { disabled: t, onClick: () => {
|
|
2469
|
+
dr(e, Rn.SWITCH_CAMERA);
|
|
2470
|
+
}, size: a }),
|
|
2471
|
+
/* @__PURE__ */ h(
|
|
2472
|
+
ds,
|
|
2473
|
+
{
|
|
2474
|
+
marginLeft: o ? s : 0,
|
|
2475
|
+
onClick: () => {
|
|
2476
|
+
dr(e, Rn.TOGGLE_MIRROR);
|
|
2477
|
+
},
|
|
2478
|
+
size: a
|
|
2479
|
+
}
|
|
2480
|
+
)
|
|
2481
|
+
] });
|
|
2482
|
+
}, ms = "2.5s", gs = "0.3s", ys = "linear", vs = kt`
|
|
2483
|
+
0% {
|
|
2484
|
+
opacity: 0;
|
|
2485
|
+
}
|
|
2486
|
+
100% {
|
|
2487
|
+
opacity: 1;
|
|
2488
|
+
}
|
|
2489
|
+
`;
|
|
2490
|
+
kt`
|
|
2491
|
+
100% {
|
|
2492
|
+
transform: translate(-50%, -50%) scale(2.6);
|
|
2493
|
+
top: 50%;
|
|
2494
|
+
left: 50%;
|
|
2495
|
+
}
|
|
2496
|
+
`;
|
|
2497
|
+
kt`
|
|
2498
|
+
5% {
|
|
2499
|
+
transform: translate(-50%, -50%) scale(0.7);
|
|
2500
|
+
opacity: 1;
|
|
2501
|
+
}
|
|
2502
|
+
10% {
|
|
2503
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
2504
|
+
}
|
|
2505
|
+
40% {
|
|
2506
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
2507
|
+
}
|
|
2508
|
+
70% {
|
|
2509
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
2510
|
+
opacity: 1;
|
|
2511
|
+
}
|
|
2512
|
+
90% {
|
|
2513
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
2514
|
+
opacity: 0.5;
|
|
2515
|
+
}
|
|
2516
|
+
100% {
|
|
2517
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
2518
|
+
opacity: 0.5;
|
|
2519
|
+
}
|
|
2520
|
+
`;
|
|
2521
|
+
kt`
|
|
2522
|
+
5% {
|
|
2523
|
+
opacity: 1;
|
|
2524
|
+
}
|
|
2525
|
+
70% {
|
|
2526
|
+
transform: scale(1.1);
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
100% {
|
|
2530
|
+
transform: scale(1);
|
|
2531
|
+
opacity: 1;
|
|
2532
|
+
}
|
|
2533
|
+
`;
|
|
2534
|
+
const Cs = z.div`
|
|
2535
|
+
position: absolute;
|
|
2536
|
+
left: 50%;
|
|
2537
|
+
|
|
2538
|
+
${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
|
|
2539
|
+
${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
|
|
2540
|
+
${(e) => e.$isAnimating && wn`
|
|
2541
|
+
animation: ${vs} ${gs}
|
|
2542
|
+
${ys} both;
|
|
2543
|
+
animation-delay: ${ms};
|
|
2544
|
+
|
|
2545
|
+
@media (orientation: landscape) {
|
|
2546
|
+
bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
@media (max-width: 1024px) and (orientation: landscape) {
|
|
2550
|
+
bottom: ${e.$cssBottom ? e.$cssBottom - 13 : ""}%;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
@media (max-width: 768px) {
|
|
2554
|
+
bottom: ${e.$cssBottom ? e.$cssBottom + 3 : ""}%;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
@media (max-width: 480px) and (orientation: portrait) {
|
|
2558
|
+
bottom: ${e.$cssBottom ? e.$cssBottom - 10 : ""}%;
|
|
2559
|
+
}
|
|
2560
|
+
`};
|
|
2561
|
+
|
|
2562
|
+
transform: translateX(-50%)
|
|
2563
|
+
translateY(
|
|
2564
|
+
${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
|
|
2565
|
+
);
|
|
2566
|
+
z-index: 2;
|
|
2567
|
+
`, Es = z.div`
|
|
2568
|
+
display: flex;
|
|
2569
|
+
align-items: center;
|
|
2570
|
+
justify-content: center;
|
|
2571
|
+
text-align: center;
|
|
2572
|
+
border-radius: 0.25em;
|
|
2573
|
+
margin: 0 auto;
|
|
2574
|
+
padding: 0.583em 0.666em;
|
|
2575
|
+
background: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.instructionColorSuccess}` : `${e.theme.colors.instructionColor}`};
|
|
2576
|
+
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2577
|
+
border: 0;
|
|
2578
|
+
line-height: 1em;
|
|
2579
|
+
font-size: ${(e) => `${e.$fontSize}px`};
|
|
2580
|
+
white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
|
|
2581
|
+
`, Ss = ({
|
|
2582
|
+
children: e,
|
|
2583
|
+
cssBottom: t,
|
|
2584
|
+
cssTop: n,
|
|
2585
|
+
isAnimating: r,
|
|
2586
|
+
isInCandidateSelection: o,
|
|
2587
|
+
isPortrait: i
|
|
2588
|
+
}) => {
|
|
2589
|
+
const { fontSize: a } = ve();
|
|
2590
|
+
return /* @__PURE__ */ h(Cs, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ h(
|
|
2591
|
+
Es,
|
|
2592
|
+
{
|
|
2593
|
+
$fontSize: a,
|
|
2594
|
+
$isInCandidateSelection: o,
|
|
2595
|
+
$wrap: e.length > Pa,
|
|
2596
|
+
children: e
|
|
2597
|
+
}
|
|
2598
|
+
) });
|
|
2599
|
+
}, ws = z.div`
|
|
2600
|
+
color: ${(e) => e.theme.colors.instructionTextColor};
|
|
2601
|
+
animation: spin 2s linear infinite;
|
|
2602
|
+
|
|
2603
|
+
@keyframes spin {
|
|
2604
|
+
100% {
|
|
2605
|
+
transform: rotate(-360deg);
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
`, bs = ({ svgSize: e }) => /* @__PURE__ */ h(ws, { children: /* @__PURE__ */ h("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2609
|
+
/* @__PURE__ */ h(
|
|
2610
|
+
"path",
|
|
2611
|
+
{
|
|
2612
|
+
d: "M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",
|
|
2613
|
+
fill: "currentColor"
|
|
2614
|
+
}
|
|
2615
|
+
),
|
|
2616
|
+
/* @__PURE__ */ h(
|
|
2617
|
+
"path",
|
|
2618
|
+
{
|
|
2619
|
+
d: "M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",
|
|
2620
|
+
fill: "currentColor"
|
|
2621
|
+
}
|
|
2622
|
+
),
|
|
2623
|
+
/* @__PURE__ */ h(
|
|
2624
|
+
"path",
|
|
2625
|
+
{
|
|
2626
|
+
d: "M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",
|
|
2627
|
+
fill: "currentColor"
|
|
2628
|
+
}
|
|
2629
|
+
),
|
|
2630
|
+
/* @__PURE__ */ h(
|
|
2631
|
+
"path",
|
|
2632
|
+
{
|
|
2633
|
+
d: "M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",
|
|
2634
|
+
fill: "currentColor"
|
|
2635
|
+
}
|
|
2636
|
+
),
|
|
2637
|
+
/* @__PURE__ */ h(
|
|
2638
|
+
"path",
|
|
2639
|
+
{
|
|
2640
|
+
d: "M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",
|
|
2641
|
+
fill: "currentColor"
|
|
2642
|
+
}
|
|
2643
|
+
),
|
|
2644
|
+
/* @__PURE__ */ h(
|
|
2645
|
+
"path",
|
|
2646
|
+
{
|
|
2647
|
+
d: "M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",
|
|
2648
|
+
fill: "currentColor"
|
|
2649
|
+
}
|
|
2650
|
+
),
|
|
2651
|
+
/* @__PURE__ */ h(
|
|
2652
|
+
"path",
|
|
2653
|
+
{
|
|
2654
|
+
d: "M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",
|
|
2655
|
+
fill: "currentColor"
|
|
2656
|
+
}
|
|
2657
|
+
),
|
|
2658
|
+
/* @__PURE__ */ h(
|
|
2659
|
+
"path",
|
|
2660
|
+
{
|
|
2661
|
+
d: "M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",
|
|
2662
|
+
fill: "currentColor"
|
|
2663
|
+
}
|
|
2664
|
+
)
|
|
2665
|
+
] }) }), $s = z.div`
|
|
2666
|
+
z-index: 1;
|
|
2667
|
+
position: absolute;
|
|
2668
|
+
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
2669
|
+
top: -50%;
|
|
2670
|
+
left: -50%;
|
|
2671
|
+
width: 200%;
|
|
2672
|
+
height: 200%;
|
|
2673
|
+
outline: ${({ $backdropColor: e, $shorterSide: t = 1e3 }) => `${t * 0.2}px solid ${e}`};
|
|
2674
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
2675
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2676
|
+
|
|
2677
|
+
// Scale the children to 50% of the size of the backdrop to achieve 1:1 ratio between placeholder and backdrop
|
|
2678
|
+
g {
|
|
2679
|
+
transform: scale(0.5);
|
|
2680
|
+
translate: 25% 25%;
|
|
2681
|
+
}
|
|
2682
|
+
`, yo = ({ children: e, height: t, scale: n, width: r }) => {
|
|
2683
|
+
const { backdropColor: o } = ve(), i = bn(r, t);
|
|
2684
|
+
return /* @__PURE__ */ h($s, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ h("svg", { viewBox: `0 0 ${r} ${t}`, children: [
|
|
2685
|
+
/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ h("mask", { id: "mask", children: [
|
|
2686
|
+
/* @__PURE__ */ h("rect", { fill: "#fff", height: "100%", width: "100%" }),
|
|
2687
|
+
/* @__PURE__ */ h("g", { children: e })
|
|
2688
|
+
] }) }),
|
|
2689
|
+
/* @__PURE__ */ h("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
|
|
2690
|
+
] }) });
|
|
2691
|
+
};
|
|
2692
|
+
function Os({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
|
|
2693
|
+
const { appStateInstructions: o } = ve(), i = r === F.ERROR || r === F.RUNNING;
|
|
2694
|
+
return !r || i || !(o != null && o[r].visible) ? null : r === F.WAITING || r === F.COMPLETE ? /* @__PURE__ */ h(G, { children: [
|
|
2695
|
+
n && e && t && /* @__PURE__ */ h(yo, { height: e, width: t }),
|
|
2696
|
+
/* @__PURE__ */ h(rn, { isCameraReady: !0, text: o[F.WAITING].text })
|
|
2697
|
+
] }) : /* @__PURE__ */ h(rn, { Icon: bs, isCameraReady: !0, text: o[F.LOADING].text });
|
|
2698
|
+
}
|
|
2699
|
+
function ks({ isRounded: e, isSquare: t, ...n }) {
|
|
2700
|
+
return e ? /* @__PURE__ */ h("rect", { fill: "#000", ...n, rx: "2%" }) : /* @__PURE__ */ h("rect", { fill: "#000", ...n, rx: t ? "0" : "50%" });
|
|
2701
|
+
}
|
|
2702
|
+
const Ns = () => /* @__PURE__ */ h("svg", { fill: "none", height: "480", viewBox: "0 0 480 480", width: "480", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ h(
|
|
2703
|
+
"path",
|
|
2704
|
+
{
|
|
2705
|
+
d: "M2 240C2 108.556 108.556 2 240 2C371.444 2 478 108.556 478 240C478 371.444 371.444 478 240 478C108.556 478 2 371.444 2 240Z",
|
|
2706
|
+
stroke: "currentColor",
|
|
2707
|
+
strokeLinecap: "round",
|
|
2708
|
+
strokeWidth: "4"
|
|
2709
|
+
}
|
|
2710
|
+
) }), Ts = z.div`
|
|
2711
|
+
z-index: 1;
|
|
2712
|
+
position: absolute;
|
|
2713
|
+
top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
|
|
2714
|
+
bottom: ${(e) => (1 - e.$placeholderRectangle.shiftY - e.$placeholderRectangle.height) * 100}%;
|
|
2715
|
+
left: ${(e) => e.$placeholderRectangle.shiftX * 100}%;
|
|
2716
|
+
right: ${(e) => (1 - e.$placeholderRectangle.shiftX - e.$placeholderRectangle.width) * 100}%;
|
|
2717
|
+
color: ${(e) => e.$isInCandidateSelection ? `${e.theme.colors.placeholderColorSuccess}` : `${e.theme.colors.placeholderColor}`};
|
|
2718
|
+
transform: scale(${(e) => e.$scale || 1});
|
|
2719
|
+
transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2720
|
+
svg {
|
|
2721
|
+
width: 100%;
|
|
2722
|
+
height: 100%;
|
|
2723
|
+
}
|
|
2724
|
+
`, Is = ({
|
|
2725
|
+
children: e,
|
|
2726
|
+
className: t,
|
|
2727
|
+
isInCandidateSelection: n,
|
|
2728
|
+
onAnimationEnd: r,
|
|
2729
|
+
placeholderRectangle: o,
|
|
2730
|
+
scale: i
|
|
2731
|
+
}) => /* @__PURE__ */ h(
|
|
2732
|
+
Ts,
|
|
2733
|
+
{
|
|
2734
|
+
$isInCandidateSelection: n,
|
|
2735
|
+
$placeholderRectangle: o,
|
|
2736
|
+
$scale: i,
|
|
2737
|
+
className: t,
|
|
2738
|
+
onAnimationEnd: r,
|
|
2739
|
+
children: e
|
|
2740
|
+
}
|
|
2741
|
+
), Rs = {
|
|
2742
|
+
[_o.CIRCLE_SOLID]: /* @__PURE__ */ h(Ns, {})
|
|
2743
|
+
};
|
|
2744
|
+
function xs({ backdropHeight: e, backdropWidth: t, placeholderRectangle: n, scale: r, ...o }) {
|
|
2745
|
+
const { placeholder: i } = ve();
|
|
2746
|
+
return /* @__PURE__ */ h(G, { children: [
|
|
2747
|
+
/* @__PURE__ */ h(yo, { height: e, scale: r, width: t, children: /* @__PURE__ */ h(
|
|
2748
|
+
ks,
|
|
2749
|
+
{
|
|
2750
|
+
height: `${n.height * 100}%`,
|
|
2751
|
+
width: `${n.width * 100}%`,
|
|
2752
|
+
x: `${n.shiftX * 100}%`,
|
|
2753
|
+
y: `${n.shiftY * 100}%`
|
|
2754
|
+
}
|
|
2755
|
+
) }),
|
|
2756
|
+
/* @__PURE__ */ h(Is, { placeholderRectangle: n, scale: r, ...o, children: Rs[i] })
|
|
2757
|
+
] });
|
|
2758
|
+
}
|
|
2759
|
+
const As = /* @__PURE__ */ new Map([
|
|
2760
|
+
[Ee.ZERO, { minFaceSizeRatio: 0.13, maxFaceSizeRatio: 0.15, scale: 0.85 }],
|
|
2761
|
+
[Ee.ONE, { minFaceSizeRatio: 0.152, maxFaceSizeRatio: 0.172, scale: 1 }],
|
|
2762
|
+
[Ee.TWO, { minFaceSizeRatio: 0.18, maxFaceSizeRatio: 0.205, scale: 1.18 }],
|
|
2763
|
+
[Ee.THREE, { minFaceSizeRatio: 0.215, maxFaceSizeRatio: 0.24, scale: 1.41 }],
|
|
2764
|
+
[Ee.FOUR, { minFaceSizeRatio: 0.245, maxFaceSizeRatio: 0.275, scale: 1.61 }],
|
|
2765
|
+
[Ee.FIVE, { minFaceSizeRatio: 0.28, maxFaceSizeRatio: 0.34, scale: 1.84 }]
|
|
2766
|
+
]);
|
|
2767
|
+
function Ps({
|
|
2768
|
+
customEvents: e,
|
|
2769
|
+
defaultInstructionCode: t
|
|
2770
|
+
}) {
|
|
2771
|
+
const [n, r] = H(), [o, i] = H(!1), a = ae(
|
|
2772
|
+
(y) => {
|
|
2773
|
+
var m, p;
|
|
2774
|
+
r((m = y == null ? void 0 : y.detail) == null ? void 0 : m.cameraResolution);
|
|
2775
|
+
const v = (p = y == null ? void 0 : y.detail) == null ? void 0 : p.isMirroring;
|
|
2776
|
+
v !== void 0 && i(v);
|
|
2777
|
+
},
|
|
2778
|
+
[r]
|
|
2779
|
+
);
|
|
2780
|
+
we(e.CAMERA_PROPS_CHANGED, a);
|
|
2781
|
+
const [s, l] = H({
|
|
2782
|
+
code: t,
|
|
2783
|
+
isEscalated: !1
|
|
2784
|
+
}), u = ae(
|
|
2785
|
+
(y) => {
|
|
2786
|
+
var m, p;
|
|
2787
|
+
const v = y;
|
|
2788
|
+
l({
|
|
2789
|
+
code: (m = v == null ? void 0 : v.detail) == null ? void 0 : m.instructionCode,
|
|
2790
|
+
isEscalated: ((p = v == null ? void 0 : v.detail) == null ? void 0 : p.isEscalated) ?? !1
|
|
2791
|
+
});
|
|
2792
|
+
},
|
|
2793
|
+
[l]
|
|
2794
|
+
);
|
|
2795
|
+
we(e.INSTRUCTION_CHANGED, u);
|
|
2796
|
+
const [f, c] = H(F.LOADING), [_, d] = H(), g = ae(
|
|
2797
|
+
(y) => {
|
|
2798
|
+
var m, p;
|
|
2799
|
+
c((m = y.detail) == null ? void 0 : m.appState);
|
|
2800
|
+
const v = (p = y == null ? void 0 : y.detail) == null ? void 0 : p.error;
|
|
2801
|
+
v && d(v);
|
|
2802
|
+
},
|
|
2803
|
+
[c, d]
|
|
2804
|
+
);
|
|
2805
|
+
return we(e.STATE_CHANGED, g), {
|
|
2806
|
+
cameraResolution: n,
|
|
2807
|
+
instruction: s,
|
|
2808
|
+
isMirroring: o,
|
|
2809
|
+
appState: f,
|
|
2810
|
+
error: _
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2813
|
+
function Ls() {
|
|
2814
|
+
const e = Ps({
|
|
2815
|
+
customEvents: je,
|
|
2816
|
+
defaultInstructionCode: ht.FACE_NOT_PRESENT
|
|
2817
|
+
}), [t, n] = H(1), r = ae((o) => {
|
|
2818
|
+
var s;
|
|
2819
|
+
const i = o, { currentMultiRangeLivenessChallengeItem: a } = i.detail;
|
|
2820
|
+
n(
|
|
2821
|
+
((s = As.get(a)) == null ? void 0 : s.scale) ?? 1
|
|
2822
|
+
);
|
|
2823
|
+
}, []);
|
|
2824
|
+
return we(je.CHALLENGE_VALUE_CHANGED, r), K(() => {
|
|
2825
|
+
e.appState !== F.RUNNING && n(1);
|
|
2826
|
+
}, [e.appState]), {
|
|
2827
|
+
...e,
|
|
2828
|
+
faceScale: t
|
|
2829
|
+
};
|
|
2830
|
+
}
|
|
2831
|
+
const Ds = z.canvas`
|
|
2832
|
+
transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
|
|
2833
|
+
position: absolute;
|
|
2834
|
+
top: 0;
|
|
2835
|
+
left: 0;
|
|
2836
|
+
width: 100%;
|
|
2837
|
+
height: 100%;
|
|
2838
|
+
z-index: 1;
|
|
2839
|
+
`;
|
|
2840
|
+
function Ms(e) {
|
|
2841
|
+
const t = e.getContext("2d");
|
|
2842
|
+
t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
|
|
2843
|
+
}
|
|
2844
|
+
function Fs({ cameraResolution: e, isImageMirror: t }) {
|
|
2845
|
+
const n = qe(null), r = uo(), [o, i] = H(), a = ae(
|
|
2846
|
+
(s) => {
|
|
2847
|
+
var l, u, f;
|
|
2848
|
+
i((f = (u = (l = s == null ? void 0 : s.detail) == null ? void 0 : l.detectionDetails) == null ? void 0 : u.processedImage) == null ? void 0 : f.detection);
|
|
2849
|
+
},
|
|
2850
|
+
[i]
|
|
2851
|
+
);
|
|
2852
|
+
return we(je.DETECTION_CHANGED, a), K(() => {
|
|
2853
|
+
if (!n.current)
|
|
2854
|
+
return;
|
|
2855
|
+
const s = (l, u) => {
|
|
2856
|
+
var g;
|
|
2857
|
+
if (!u)
|
|
2858
|
+
return;
|
|
2859
|
+
const { faceCenter: f, faceSize: c } = u, _ = (g = n == null ? void 0 : n.current) == null ? void 0 : g.getContext("2d");
|
|
2860
|
+
if (!_)
|
|
2861
|
+
return;
|
|
2862
|
+
const d = as(c, l);
|
|
2863
|
+
_.beginPath(), _.arc(f.x, f.y, d, 0, 2 * Math.PI, !1), _.lineWidth = ka, _.strokeStyle = r.colors.placeholderColor, _.stroke();
|
|
2864
|
+
};
|
|
2865
|
+
n.current.width = e.width, n.current.height = e.height, Ms(n.current), s(e, o);
|
|
2866
|
+
}, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ h(Ds, { ref: n, $isImageMirror: t });
|
|
2867
|
+
}
|
|
2868
|
+
function Hs() {
|
|
2869
|
+
const {
|
|
2870
|
+
appState: e,
|
|
2871
|
+
cameraResolution: t,
|
|
2872
|
+
error: n,
|
|
2873
|
+
faceScale: r,
|
|
2874
|
+
instruction: o,
|
|
2875
|
+
isMirroring: i
|
|
2876
|
+
} = Ls(), { escalatedInstructions: a, instructions: s, showDetectionLayer: l } = ve(), u = o.code === ht.CANDIDATE_SELECTION, f = Ha({
|
|
2877
|
+
escalatedInstructions: a,
|
|
2878
|
+
instructions: s,
|
|
2879
|
+
currentInstruction: {
|
|
2880
|
+
...o,
|
|
2881
|
+
code: o.code
|
|
2882
|
+
}
|
|
2883
|
+
});
|
|
2884
|
+
if (e === F.ERROR)
|
|
2885
|
+
return /* @__PURE__ */ h(mo, { text: n == null ? void 0 : n.message });
|
|
2886
|
+
if (e === F.RUNNING && t) {
|
|
2887
|
+
const c = is(t);
|
|
2888
|
+
return /* @__PURE__ */ h(G, { children: [
|
|
2889
|
+
l && /* @__PURE__ */ h(Fs, { cameraResolution: t, isImageMirror: i }),
|
|
2890
|
+
/* @__PURE__ */ h(
|
|
2891
|
+
xs,
|
|
2892
|
+
{
|
|
2893
|
+
backdropHeight: t.height,
|
|
2894
|
+
backdropWidth: t.width,
|
|
2895
|
+
isInCandidateSelection: u,
|
|
2896
|
+
placeholderRectangle: c,
|
|
2897
|
+
scale: r
|
|
2898
|
+
}
|
|
2899
|
+
),
|
|
2900
|
+
f && /* @__PURE__ */ h(
|
|
2901
|
+
Ss,
|
|
2902
|
+
{
|
|
2903
|
+
cssBottom: (c.height + c.shiftY) * 100,
|
|
2904
|
+
isInCandidateSelection: u,
|
|
2905
|
+
isPortrait: t.width < t.height,
|
|
2906
|
+
children: f
|
|
2907
|
+
}
|
|
2908
|
+
),
|
|
2909
|
+
/* @__PURE__ */ h(
|
|
2910
|
+
ps,
|
|
2911
|
+
{
|
|
2912
|
+
customControlEvent: je.CONTROL,
|
|
2913
|
+
isSwitchCameraDisabled: u
|
|
2914
|
+
}
|
|
2915
|
+
)
|
|
2916
|
+
] });
|
|
2917
|
+
}
|
|
2918
|
+
return /* @__PURE__ */ h(
|
|
2919
|
+
Os,
|
|
2920
|
+
{
|
|
2921
|
+
cameraHeight: t == null ? void 0 : t.height,
|
|
2922
|
+
cameraWidth: t == null ? void 0 : t.width,
|
|
2923
|
+
isBackdrop: !0,
|
|
2924
|
+
state: e
|
|
2925
|
+
}
|
|
2926
|
+
);
|
|
2927
|
+
}
|
|
2928
|
+
function zs(e) {
|
|
2929
|
+
var u, f, c;
|
|
2930
|
+
const t = { ...Ra, ...e == null ? void 0 : e.instructions }, n = {
|
|
2931
|
+
...xa,
|
|
2932
|
+
...e == null ? void 0 : e.escalatedInstructions
|
|
2933
|
+
}, r = {
|
|
2934
|
+
[F.LOADING]: { ...Ht.loading, ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.loading },
|
|
2935
|
+
[F.WAITING]: { ...Ht.waiting, ...(f = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : f.waiting },
|
|
2936
|
+
[F.COMPLETE]: { ...Ht.waiting, ...(c = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : c.waiting }
|
|
2937
|
+
}, o = (e == null ? void 0 : e.placeholder) ?? Ia, i = (e == null ? void 0 : e.backdropColor) ?? Aa, a = (e == null ? void 0 : e.showDetectionLayer) ?? !1, s = (e == null ? void 0 : e.showCameraButtons) ?? !1, l = es(e == null ? void 0 : e.theme);
|
|
2938
|
+
return {
|
|
2939
|
+
instructions: t,
|
|
2940
|
+
appStateInstructions: r,
|
|
2941
|
+
placeholder: o,
|
|
2942
|
+
showDetectionLayer: a,
|
|
2943
|
+
showCameraButtons: s,
|
|
2944
|
+
theme: l,
|
|
2945
|
+
escalatedInstructions: n,
|
|
2946
|
+
backdropColor: i
|
|
2947
|
+
};
|
|
2948
|
+
}
|
|
2949
|
+
function Us({ props: e }) {
|
|
2950
|
+
const t = Xa(je.VIDEO_ELEMENT_SIZE);
|
|
2951
|
+
return /* @__PURE__ */ h(Va, { uiProps: zs(e), videoElementSize: t, children: /* @__PURE__ */ h(Hs, {}) });
|
|
2952
|
+
}
|
|
2953
|
+
Lo(Us, "x-dot-multi-range-liveness-ui", ["props"]);
|