@regulaforensics/idv-gui 3.2.293-nightly → 3.2.294-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/main.iife.js +4 -4
- package/dist/main.js +807 -786
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var fs = Object.defineProperty, As = Object.defineProperties;
|
|
2
|
+
var Ts = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var it = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var kr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Lr = (e, t, i) => t in e ? fs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, T = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
kr.call(t, i) && Lr(e, i, t[i]);
|
|
8
8
|
if (it)
|
|
9
9
|
for (var i of it(t))
|
|
10
|
-
|
|
10
|
+
Ur.call(t, i) && Lr(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
}, G = (e, t) =>
|
|
12
|
+
}, G = (e, t) => As(e, Ts(t));
|
|
13
13
|
var Di = (e, t) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var r in e)
|
|
16
|
-
|
|
16
|
+
kr.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
17
17
|
if (e != null && it)
|
|
18
18
|
for (var r of it(e))
|
|
19
|
-
t.indexOf(r) < 0 &&
|
|
19
|
+
t.indexOf(r) < 0 && Ur.call(e, r) && (i[r] = e[r]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
22
|
var Ie = (e, t, i) => new Promise((r, n) => {
|
|
@@ -35,12 +35,12 @@ var Ie = (e, t, i) => new Promise((r, n) => {
|
|
|
35
35
|
}, M = (I) => I.done ? r(I.value) : Promise.resolve(I.value).then(o, s);
|
|
36
36
|
M((i = i.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
var Hi, q,
|
|
38
|
+
var Hi, q, fn, ji, Qr, An, Tn, zn, Ut, xt, ht, On, Zi = {}, En = [], zs = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Gi = Array.isArray;
|
|
39
39
|
function Xe(e, t) {
|
|
40
40
|
for (var i in t) e[i] = t[i];
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qt(e) {
|
|
44
44
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
45
45
|
}
|
|
46
46
|
function Ke(e, t, i) {
|
|
@@ -50,7 +50,7 @@ function Ke(e, t, i) {
|
|
|
50
50
|
return Ri(e, s, r, n, null);
|
|
51
51
|
}
|
|
52
52
|
function Ri(e, t, i, r, n) {
|
|
53
|
-
var o = { type: e, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++
|
|
53
|
+
var o = { type: e, props: t, key: i, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: n == null ? ++fn : n, __i: -1, __u: 0 };
|
|
54
54
|
return n == null && q.vnode != null && q.vnode(o), o;
|
|
55
55
|
}
|
|
56
56
|
function xn() {
|
|
@@ -78,27 +78,27 @@ function hn(e) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function mt(e) {
|
|
81
|
-
(!e.__d && (e.__d = !0) && ji.push(e) && !st.__r++ ||
|
|
81
|
+
(!e.__d && (e.__d = !0) && ji.push(e) && !st.__r++ || Qr != q.debounceRendering) && ((Qr = q.debounceRendering) || An)(st);
|
|
82
82
|
}
|
|
83
83
|
function st() {
|
|
84
|
-
for (var e, t, i, r, n, o, s, M = 1; ji.length; ) ji.length > M && ji.sort(
|
|
84
|
+
for (var e, t, i, r, n, o, s, M = 1; ji.length; ) ji.length > M && ji.sort(Tn), e = ji.shift(), M = ji.length, e.__d && (i = void 0, r = void 0, n = (r = (t = e).__v).__e, o = [], s = [], t.__P && ((i = Xe({}, r)).__v = r.__v + 1, q.vnode && q.vnode(i), Yt(t.__P, i, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [n] : null, o, n == null ? Si(r) : n, !!(32 & r.__u), s), i.__v = r.__v, i.__.__k[i.__i] = i, pn(o, i, s), r.__e = r.__ = null, i.__e != n && hn(i)));
|
|
85
85
|
st.__r = 0;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
var c, a, N, D, y, z, m, _ = r && r.__k ||
|
|
89
|
-
for (I =
|
|
87
|
+
function mn(e, t, i, r, n, o, s, M, I, j, O) {
|
|
88
|
+
var c, a, N, D, y, z, m, _ = r && r.__k || En, p = t.length;
|
|
89
|
+
for (I = Os(i, t, _, I, p), c = 0; c < p; c++) (N = i.__k[c]) != null && (a = N.__i == -1 ? Zi : _[N.__i] || Zi, N.__i = c, z = Yt(e, N, a, n, o, s, M, I, j, O), D = N.__e, N.ref && a.ref != N.ref && (a.ref && Rt(a.ref, null, N), O.push(N.ref, N.__c || D, N)), y == null && D != null && (y = D), (m = !!(4 & N.__u)) || a.__k === N.__k ? I = wn(N, I, e, m) : typeof N.type == "function" && z !== void 0 ? I = z : D && (I = D.nextSibling), N.__u &= -7);
|
|
90
90
|
return i.__e = y, I;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Os(e, t, i, r, n) {
|
|
93
93
|
var o, s, M, I, j, O = i.length, c = O, a = 0;
|
|
94
|
-
for (e.__k = new Array(n), o = 0; o < n; o++) (s = t[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Ri(null, s, null, null, null) : Gi(s) ? s = e.__k[o] = Ri(Ce, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Ri(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, I = o + a, s.__ = e, s.__b = e.__b + 1, M = null, (j = s.__i =
|
|
95
|
-
if (c) for (o = 0; o < O; o++) (M = i[o]) != null && (2 & M.__u) == 0 && (M.__e == r && (r = Si(M)),
|
|
94
|
+
for (e.__k = new Array(n), o = 0; o < n; o++) (s = t[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[o] = Ri(null, s, null, null, null) : Gi(s) ? s = e.__k[o] = Ri(Ce, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[o] = Ri(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[o] = s, I = o + a, s.__ = e, s.__b = e.__b + 1, M = null, (j = s.__i = Es(s, i, I, c)) != -1 && (c--, (M = i[j]) && (M.__u |= 2)), M == null || M.__v == null ? (j == -1 && (n > O ? a-- : n < O && a++), typeof s.type != "function" && (s.__u |= 4)) : j != I && (j == I - 1 ? a-- : j == I + 1 ? a++ : (j > I ? a-- : a++, s.__u |= 4))) : e.__k[o] = null;
|
|
95
|
+
if (c) for (o = 0; o < O; o++) (M = i[o]) != null && (2 & M.__u) == 0 && (M.__e == r && (r = Si(M)), bn(M, M));
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function wn(e, t, i, r) {
|
|
99
99
|
var n, o;
|
|
100
100
|
if (typeof e.type == "function") {
|
|
101
|
-
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t =
|
|
101
|
+
for (n = e.__k, o = 0; n && o < n.length; o++) n[o] && (n[o].__ = e, t = wn(n[o], t, i, r));
|
|
102
102
|
return t;
|
|
103
103
|
}
|
|
104
104
|
e.__e != t && (r && (t && e.type && !t.parentNode && (t = Si(e)), i.insertBefore(e.__e, t || null)), t = e.__e);
|
|
@@ -112,7 +112,7 @@ function oi(e, t) {
|
|
|
112
112
|
oi(i, t);
|
|
113
113
|
}) : t.push(e)), t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Es(e, t, i, r) {
|
|
116
116
|
var n, o, s, M = e.key, I = e.type, j = t[i], O = j != null && (2 & j.__u) == 0;
|
|
117
117
|
if (j === null && M == null || O && M == j.key && I == j.type) return i;
|
|
118
118
|
if (r > (O ? 1 : 0)) {
|
|
@@ -120,17 +120,17 @@ function Os(e, t, i, r) {
|
|
|
120
120
|
}
|
|
121
121
|
return -1;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
t[0] == "-" ? e.setProperty(t, i == null ? "" : i) : e[t] = i == null ? "" : typeof i != "number" ||
|
|
123
|
+
function Yr(e, t, i) {
|
|
124
|
+
t[0] == "-" ? e.setProperty(t, i == null ? "" : i) : e[t] = i == null ? "" : typeof i != "number" || zs.test(t) ? i : i + "px";
|
|
125
125
|
}
|
|
126
126
|
function tt(e, t, i, r, n) {
|
|
127
127
|
var o, s;
|
|
128
128
|
e: if (t == "style") if (typeof i == "string") e.style.cssText = i;
|
|
129
129
|
else {
|
|
130
|
-
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) i && t in i ||
|
|
131
|
-
if (i) for (t in i) r && i[t] == r[t] ||
|
|
130
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) i && t in i || Yr(e.style, t, "");
|
|
131
|
+
if (i) for (t in i) r && i[t] == r[t] || Yr(e.style, t, i[t]);
|
|
132
132
|
}
|
|
133
|
-
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(
|
|
133
|
+
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(zn, "$1")), s = t.toLowerCase(), t = s in e || t == "onFocusOut" || t == "onFocusIn" ? s.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + o] = i, i ? r ? i.u = r.u : (i.u = Ut, e.addEventListener(t, o ? ht : xt, o)) : e.removeEventListener(t, o ? ht : xt, o);
|
|
134
134
|
else {
|
|
135
135
|
if (n == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
136
136
|
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 {
|
|
@@ -141,47 +141,47 @@ function tt(e, t, i, r, n) {
|
|
|
141
141
|
typeof i == "function" || (i == null || i === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && i == 1 ? "" : i));
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Rr(e) {
|
|
145
145
|
return function(t) {
|
|
146
146
|
if (this.l) {
|
|
147
147
|
var i = this.l[t.type + e];
|
|
148
|
-
if (t.t == null) t.t =
|
|
148
|
+
if (t.t == null) t.t = Ut++;
|
|
149
149
|
else if (t.t < i.u) return;
|
|
150
150
|
return i(q.event ? q.event(t) : t);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
var O, c, a, N, D, y, z, m, _, p,
|
|
154
|
+
function Yt(e, t, i, r, n, o, s, M, I, j) {
|
|
155
|
+
var O, c, a, N, D, y, z, m, _, p, E, C, K, le, P, se, U, ee = t.type;
|
|
156
156
|
if (t.constructor !== void 0) return null;
|
|
157
157
|
128 & i.__u && (I = !!(32 & i.__u), o = [M = t.__e = i.__e]), (O = q.__b) && O(t);
|
|
158
158
|
e: if (typeof ee == "function") try {
|
|
159
|
-
if (m = t.props, _ = "prototype" in ee && ee.prototype.render, p = (O = ee.contextType) && r[O.__c],
|
|
159
|
+
if (m = t.props, _ = "prototype" in ee && ee.prototype.render, p = (O = ee.contextType) && r[O.__c], E = O ? p ? p.props.value : O.__ : r, i.__c ? z = (c = t.__c = i.__c).__ = c.__E : (_ ? t.__c = c = new ee(m, E) : (t.__c = c = new Ge(m, E), c.constructor = ee, c.render = hs), p && p.sub(c), c.state || (c.state = {}), c.__n = r, a = c.__d = !0, c.__h = [], c._sb = []), _ && c.__s == null && (c.__s = c.state), _ && ee.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Xe({}, c.__s)), Xe(c.__s, ee.getDerivedStateFromProps(m, c.__s))), N = c.props, D = c.state, c.__v = t, a) _ && ee.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), _ && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
160
160
|
else {
|
|
161
|
-
if (_ && ee.getDerivedStateFromProps == null && m !== N && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m,
|
|
161
|
+
if (_ && ee.getDerivedStateFromProps == null && m !== N && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, E), t.__v == i.__v || !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, E) === !1) {
|
|
162
162
|
for (t.__v != i.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = i.__e, t.__k = i.__k, t.__k.some(function(L) {
|
|
163
163
|
L && (L.__ = t);
|
|
164
164
|
}), C = 0; C < c._sb.length; C++) c.__h.push(c._sb[C]);
|
|
165
165
|
c._sb = [], c.__h.length && s.push(c);
|
|
166
166
|
break e;
|
|
167
167
|
}
|
|
168
|
-
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s,
|
|
168
|
+
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, E), _ && c.componentDidUpdate != null && c.__h.push(function() {
|
|
169
169
|
c.componentDidUpdate(N, D, y);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
if (c.context =
|
|
172
|
+
if (c.context = E, c.props = m, c.__P = e, c.__e = !1, K = q.__r, le = 0, _) {
|
|
173
173
|
for (c.state = c.__s, c.__d = !1, K && K(t), O = c.render(c.props, c.state, c.context), P = 0; P < c._sb.length; P++) c.__h.push(c._sb[P]);
|
|
174
174
|
c._sb = [];
|
|
175
175
|
} else do
|
|
176
176
|
c.__d = !1, K && K(t), O = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
177
177
|
while (c.__d && ++le < 25);
|
|
178
|
-
c.state = c.__s, c.getChildContext != null && (r = Xe(Xe({}, r), c.getChildContext())), _ && !a && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(N, D)), se = O, O != null && O.type === Ce && O.key == null && (se =
|
|
178
|
+
c.state = c.__s, c.getChildContext != null && (r = Xe(Xe({}, r), c.getChildContext())), _ && !a && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(N, D)), se = O, O != null && O.type === Ce && O.key == null && (se = _n(O.props.children)), M = mn(e, Gi(se) ? se : [se], t, i, r, n, o, s, M, I, j), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), z && (c.__E = c.__ = null);
|
|
179
179
|
} catch (L) {
|
|
180
180
|
if (t.__v = null, I || o != null) if (L.then) {
|
|
181
181
|
for (t.__u |= I ? 160 : 128; M && M.nodeType == 8 && M.nextSibling; ) M = M.nextSibling;
|
|
182
182
|
o[o.indexOf(M)] = null, t.__e = M;
|
|
183
183
|
} else {
|
|
184
|
-
for (U = o.length; U--; )
|
|
184
|
+
for (U = o.length; U--; ) Qt(o[U]);
|
|
185
185
|
wt(t);
|
|
186
186
|
}
|
|
187
187
|
else t.__e = i.__e, t.__k = i.__k, L.then || wt(t);
|
|
@@ -193,8 +193,8 @@ function Qt(e, t, i, r, n, o, s, M, I, j) {
|
|
|
193
193
|
function wt(e) {
|
|
194
194
|
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(wt);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
for (var r = 0; r < i.length; r++)
|
|
196
|
+
function pn(e, t, i) {
|
|
197
|
+
for (var r = 0; r < i.length; r++) Rt(i[r], i[++r], i[++r]);
|
|
198
198
|
q.__c && q.__c(t, e), e.some(function(n) {
|
|
199
199
|
try {
|
|
200
200
|
e = n.__h, n.__h = [], e.some(function(o) {
|
|
@@ -205,8 +205,8 @@ function wn(e, t, i) {
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Gi(e) ? e.map(
|
|
208
|
+
function _n(e) {
|
|
209
|
+
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Gi(e) ? e.map(_n) : Xe({}, e);
|
|
210
210
|
}
|
|
211
211
|
function xs(e, t, i, r, n, o, s, M, I) {
|
|
212
212
|
var j, O, c, a, N, D, y, z = i.props || Zi, m = t.props, _ = t.type;
|
|
@@ -232,12 +232,12 @@ function xs(e, t, i, r, n, o, s, M, I) {
|
|
|
232
232
|
}
|
|
233
233
|
for (j in m) N = m[j], j == "children" ? a = N : j == "dangerouslySetInnerHTML" ? O = N : j == "value" ? D = N : j == "checked" ? y = N : M && typeof N != "function" || z[j] === N || tt(e, j, N, z[j], n);
|
|
234
234
|
if (O) M || c && (O.__html == c.__html || O.__html == e.innerHTML) || (e.innerHTML = O.__html), t.__k = [];
|
|
235
|
-
else if (c && (e.innerHTML = ""),
|
|
235
|
+
else if (c && (e.innerHTML = ""), mn(t.type == "template" ? e.content : e, Gi(a) ? a : [a], t, i, r, _ == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : i.__k && Si(i, 0), M, I), o != null) for (j = o.length; j--; ) Qt(o[j]);
|
|
236
236
|
M || (j = "value", _ == "progress" && D == null ? e.removeAttribute("value") : D != null && (D !== e[j] || _ == "progress" && !D || _ == "option" && D != z[j]) && tt(e, j, D, z[j], n), j = "checked", y != null && y != e[j] && tt(e, j, y, z[j], n));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Rt(e, t, i) {
|
|
241
241
|
try {
|
|
242
242
|
if (typeof e == "function") {
|
|
243
243
|
var r = typeof e.__u == "function";
|
|
@@ -247,9 +247,9 @@ function Yt(e, t, i) {
|
|
|
247
247
|
q.__e(n, i);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function bn(e, t, i) {
|
|
251
251
|
var r, n;
|
|
252
|
-
if (q.unmount && q.unmount(e), (r = e.ref) && (r.current && r.current != e.__e ||
|
|
252
|
+
if (q.unmount && q.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Rt(r, null, t)), (r = e.__c) != null) {
|
|
253
253
|
if (r.componentWillUnmount) try {
|
|
254
254
|
r.componentWillUnmount();
|
|
255
255
|
} catch (o) {
|
|
@@ -257,25 +257,25 @@ function _n(e, t, i) {
|
|
|
257
257
|
}
|
|
258
258
|
r.base = r.__P = null;
|
|
259
259
|
}
|
|
260
|
-
if (r = e.__k) for (n = 0; n < r.length; n++) r[n] &&
|
|
261
|
-
i ||
|
|
260
|
+
if (r = e.__k) for (n = 0; n < r.length; n++) r[n] && bn(r[n], t, i || typeof e.type != "function");
|
|
261
|
+
i || Qt(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
262
262
|
}
|
|
263
263
|
function hs(e, t, i) {
|
|
264
264
|
return this.constructor(e, i);
|
|
265
265
|
}
|
|
266
266
|
function Ai(e, t, i) {
|
|
267
267
|
var r, n, o, s;
|
|
268
|
-
t == document && (t = document.documentElement), q.__ && q.__(e, t), n = (r = typeof i == "function") ? null : i && i.__k || t.__k, o = [], s = [],
|
|
268
|
+
t == document && (t = document.documentElement), q.__ && q.__(e, t), n = (r = typeof i == "function") ? null : i && i.__k || t.__k, o = [], s = [], Yt(t, e = (!r && i || t).__k = Ke(Ce, null, [e]), n || Zi, Zi, t.namespaceURI, !r && i ? [i] : n ? null : t.firstChild ? Hi.call(t.childNodes) : null, o, !r && i ? i : n ? n.__e : t.firstChild, r, s), pn(o, e, s);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
Ai(e, t,
|
|
270
|
+
function Sn(e, t) {
|
|
271
|
+
Ai(e, t, Sn);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function ms(e, t, i) {
|
|
274
274
|
var r, n, o, s, M = Xe({}, e.props);
|
|
275
275
|
for (o in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) o == "key" ? r = t[o] : o == "ref" ? n = t[o] : M[o] = t[o] === void 0 && s != null ? s[o] : t[o];
|
|
276
276
|
return arguments.length > 2 && (M.children = arguments.length > 3 ? Hi.call(arguments, 2) : i), Ri(e.type, M, r || e.key, n || e.ref, null);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Pt(e) {
|
|
279
279
|
function t(i) {
|
|
280
280
|
var r, n;
|
|
281
281
|
return this.getChildContext || (r = /* @__PURE__ */ new Set(), (n = {})[t.__c] = this, this.getChildContext = function() {
|
|
@@ -294,31 +294,31 @@ function Rt(e) {
|
|
|
294
294
|
};
|
|
295
295
|
}), i.children;
|
|
296
296
|
}
|
|
297
|
-
return t.__c = "__cC" +
|
|
297
|
+
return t.__c = "__cC" + On++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(i, r) {
|
|
298
298
|
return i.children(r);
|
|
299
299
|
}).contextType = t, t;
|
|
300
300
|
}
|
|
301
|
-
Hi =
|
|
301
|
+
Hi = En.slice, q = { __e: function(e, t, i, r) {
|
|
302
302
|
for (var n, o, s; t = t.__; ) if ((n = t.__c) && !n.__) try {
|
|
303
303
|
if ((o = n.constructor) && o.getDerivedStateFromError != null && (n.setState(o.getDerivedStateFromError(e)), s = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e, r || {}), s = n.__d), s) return n.__E = n;
|
|
304
304
|
} catch (M) {
|
|
305
305
|
e = M;
|
|
306
306
|
}
|
|
307
307
|
throw e;
|
|
308
|
-
} },
|
|
308
|
+
} }, fn = 0, Ge.prototype.setState = function(e, t) {
|
|
309
309
|
var i;
|
|
310
310
|
i = this.__s != null && this.__s != this.state ? this.__s : this.__s = Xe({}, this.state), typeof e == "function" && (e = e(Xe({}, i), this.props)), e && Xe(i, e), e != null && this.__v && (t && this._sb.push(t), mt(this));
|
|
311
311
|
}, Ge.prototype.forceUpdate = function(e) {
|
|
312
312
|
this.__v && (this.__e = !0, e && this.__h.push(e), mt(this));
|
|
313
|
-
}, Ge.prototype.render = Ce, ji = [],
|
|
313
|
+
}, Ge.prototype.render = Ce, ji = [], An = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Tn = function(e, t) {
|
|
314
314
|
return e.__v.__b - t.__v.__b;
|
|
315
|
-
}, st.__r = 0,
|
|
316
|
-
var
|
|
315
|
+
}, st.__r = 0, zn = /(PointerCapture)$|Capture$/i, Ut = 0, xt = Rr(!1), ht = Rr(!0), On = 0;
|
|
316
|
+
var ws = 0;
|
|
317
317
|
function d(e, t, i, r, n, o) {
|
|
318
318
|
t || (t = {});
|
|
319
319
|
var s, M, I = t;
|
|
320
320
|
if ("ref" in I) for (M in I = {}, t) M == "ref" ? s = t[M] : I[M] = t[M];
|
|
321
|
-
var j = { type: e, props: I, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
321
|
+
var j = { type: e, props: I, key: i, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ws, __i: -1, __u: 0, __source: n, __self: o };
|
|
322
322
|
if (typeof e == "function" && (s = e.defaultProps)) for (M in s) I[M] === void 0 && (I[M] = s[M]);
|
|
323
323
|
return q.vnode && q.vnode(j), j;
|
|
324
324
|
}
|
|
@@ -369,9 +369,9 @@ class yi {
|
|
|
369
369
|
return this.underlyingBaseError instanceof yi && (t += `-${this.underlyingBaseError.fullChain}`), t;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
class
|
|
372
|
+
class ps extends HTMLElement {
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function _s(e, t) {
|
|
375
375
|
if (t.displayName ? console.log(`Register module: ${t.displayName}`) : console.error('Missed "displayName" when register module'), t.getSupportedTemplates && typeof t.getSupportedTemplates == "function") {
|
|
376
376
|
const i = t.getSupportedTemplates();
|
|
377
377
|
console.log(`${t == null ? void 0 : t.displayName} supported templates: ${i.join(", ")}`);
|
|
@@ -388,18 +388,23 @@ const Nt = {
|
|
|
388
388
|
FORM: "form",
|
|
389
389
|
DATA: "data"
|
|
390
390
|
};
|
|
391
|
-
var
|
|
391
|
+
var pt = /* @__PURE__ */ ((e) => (e.RTL = "rtl", e.LTR = "ltr", e))(pt || {});
|
|
392
|
+
const bs = ["ar", "he"], Ss = (e) => {
|
|
393
|
+
var t;
|
|
394
|
+
return e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
|
|
395
|
+
};
|
|
396
|
+
var si, de, ft, Pr, Ci = 0, Cn = [], Ae = q, Vr = Ae.__b, Fr = Ae.__r, Br = Ae.diffed, Wr = Ae.__c, Zr = Ae.unmount, Hr = Ae.__;
|
|
392
397
|
function Ti(e, t) {
|
|
393
398
|
Ae.__h && Ae.__h(de, e, Ci || t), Ci = 0;
|
|
394
399
|
var i = de.__H || (de.__H = { __: [], __h: [] });
|
|
395
400
|
return e >= i.__.length && i.__.push({}), i.__[e];
|
|
396
401
|
}
|
|
397
402
|
function we(e) {
|
|
398
|
-
return Ci = 1, Dt(
|
|
403
|
+
return Ci = 1, Dt(vn, e);
|
|
399
404
|
}
|
|
400
405
|
function Dt(e, t, i) {
|
|
401
406
|
var r = Ti(si++, 2);
|
|
402
|
-
if (r.t = e, !r.__c && (r.__ = [i ? i(t) :
|
|
407
|
+
if (r.t = e, !r.__c && (r.__ = [i ? i(t) : vn(void 0, t), function(M) {
|
|
403
408
|
var I = r.__N ? r.__N[0] : r.__[0], j = r.t(I, M);
|
|
404
409
|
I !== j && (r.__N = [j, r.__[1]], r.__c.setState({}));
|
|
405
410
|
}], r.__c = de, !de.__f)) {
|
|
@@ -433,18 +438,18 @@ function Dt(e, t, i) {
|
|
|
433
438
|
}
|
|
434
439
|
function Ve(e, t) {
|
|
435
440
|
var i = Ti(si++, 3);
|
|
436
|
-
!Ae.__s &&
|
|
441
|
+
!Ae.__s && Zt(i.__H, t) && (i.__ = e, i.u = t, de.__H.__h.push(i));
|
|
437
442
|
}
|
|
438
443
|
function ci(e, t) {
|
|
439
444
|
var i = Ti(si++, 4);
|
|
440
|
-
!Ae.__s &&
|
|
445
|
+
!Ae.__s && Zt(i.__H, t) && (i.__ = e, i.u = t, de.__h.push(i));
|
|
441
446
|
}
|
|
442
447
|
function Je(e) {
|
|
443
448
|
return Ci = 5, Ji(function() {
|
|
444
449
|
return { current: e };
|
|
445
450
|
}, []);
|
|
446
451
|
}
|
|
447
|
-
function
|
|
452
|
+
function Vt(e, t, i) {
|
|
448
453
|
Ci = 6, ci(function() {
|
|
449
454
|
if (typeof e == "function") {
|
|
450
455
|
var r = e(t());
|
|
@@ -459,9 +464,9 @@ function Pt(e, t, i) {
|
|
|
459
464
|
}
|
|
460
465
|
function Ji(e, t) {
|
|
461
466
|
var i = Ti(si++, 7);
|
|
462
|
-
return
|
|
467
|
+
return Zt(i.__H, t) && (i.__ = e(), i.__H = t, i.__h = e), i.__;
|
|
463
468
|
}
|
|
464
|
-
function
|
|
469
|
+
function Ft(e, t) {
|
|
465
470
|
return Ci = 8, Ji(function() {
|
|
466
471
|
return e;
|
|
467
472
|
}, t);
|
|
@@ -470,10 +475,10 @@ function vi(e) {
|
|
|
470
475
|
var t = de.context[e.__c], i = Ti(si++, 9);
|
|
471
476
|
return i.c = e, t ? (i.__ == null && (i.__ = !0, t.sub(de)), t.props.value) : e.__;
|
|
472
477
|
}
|
|
473
|
-
function
|
|
478
|
+
function Bt(e, t) {
|
|
474
479
|
Ae.useDebugValue && Ae.useDebugValue(t ? t(e) : e);
|
|
475
480
|
}
|
|
476
|
-
function
|
|
481
|
+
function Cs(e) {
|
|
477
482
|
var t = Ti(si++, 10), i = we();
|
|
478
483
|
return t.__ = e, de.componentDidCatch || (de.componentDidCatch = function(r, n) {
|
|
479
484
|
t.__ && t.__(r, n), i[1](r);
|
|
@@ -481,7 +486,7 @@ function _s(e) {
|
|
|
481
486
|
i[1](void 0);
|
|
482
487
|
}];
|
|
483
488
|
}
|
|
484
|
-
function
|
|
489
|
+
function Wt() {
|
|
485
490
|
var e = Ti(si++, 11);
|
|
486
491
|
if (!e.__) {
|
|
487
492
|
for (var t = de.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
@@ -490,43 +495,43 @@ function Bt() {
|
|
|
490
495
|
}
|
|
491
496
|
return e.__;
|
|
492
497
|
}
|
|
493
|
-
function
|
|
494
|
-
for (var e; e =
|
|
495
|
-
e.__H.__h.forEach(ot), e.__H.__h.forEach(
|
|
498
|
+
function vs() {
|
|
499
|
+
for (var e; e = Cn.shift(); ) if (e.__P && e.__H) try {
|
|
500
|
+
e.__H.__h.forEach(ot), e.__H.__h.forEach(_t), e.__H.__h = [];
|
|
496
501
|
} catch (t) {
|
|
497
502
|
e.__H.__h = [], Ae.__e(t, e.__v);
|
|
498
503
|
}
|
|
499
504
|
}
|
|
500
505
|
Ae.__b = function(e) {
|
|
501
|
-
de = null,
|
|
506
|
+
de = null, Vr && Vr(e);
|
|
502
507
|
}, Ae.__ = function(e, t) {
|
|
503
|
-
e && t.__k && t.__k.__m && (e.__m = t.__k.__m),
|
|
508
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Hr && Hr(e, t);
|
|
504
509
|
}, Ae.__r = function(e) {
|
|
505
|
-
|
|
510
|
+
Fr && Fr(e), si = 0;
|
|
506
511
|
var t = (de = e.__c).__H;
|
|
507
512
|
t && (ft === de ? (t.__h = [], de.__h = [], t.__.forEach(function(i) {
|
|
508
513
|
i.__N && (i.__ = i.__N), i.u = i.__N = void 0;
|
|
509
|
-
})) : (t.__h.forEach(ot), t.__h.forEach(
|
|
514
|
+
})) : (t.__h.forEach(ot), t.__h.forEach(_t), t.__h = [], si = 0)), ft = de;
|
|
510
515
|
}, Ae.diffed = function(e) {
|
|
511
|
-
|
|
516
|
+
Br && Br(e);
|
|
512
517
|
var t = e.__c;
|
|
513
|
-
t && t.__H && (t.__H.__h.length && (
|
|
518
|
+
t && t.__H && (t.__H.__h.length && (Cn.push(t) !== 1 && Pr === Ae.requestAnimationFrame || ((Pr = Ae.requestAnimationFrame) || Ls)(vs)), t.__H.__.forEach(function(i) {
|
|
514
519
|
i.u && (i.__H = i.u), i.u = void 0;
|
|
515
520
|
})), ft = de = null;
|
|
516
521
|
}, Ae.__c = function(e, t) {
|
|
517
522
|
t.some(function(i) {
|
|
518
523
|
try {
|
|
519
524
|
i.__h.forEach(ot), i.__h = i.__h.filter(function(r) {
|
|
520
|
-
return !r.__ ||
|
|
525
|
+
return !r.__ || _t(r);
|
|
521
526
|
});
|
|
522
527
|
} catch (r) {
|
|
523
528
|
t.some(function(n) {
|
|
524
529
|
n.__h && (n.__h = []);
|
|
525
530
|
}), t = [], Ae.__e(r, i.__v);
|
|
526
531
|
}
|
|
527
|
-
}),
|
|
532
|
+
}), Wr && Wr(e, t);
|
|
528
533
|
}, Ae.unmount = function(e) {
|
|
529
|
-
|
|
534
|
+
Zr && Zr(e);
|
|
530
535
|
var t, i = e.__c;
|
|
531
536
|
i && i.__H && (i.__H.__.forEach(function(r) {
|
|
532
537
|
try {
|
|
@@ -536,30 +541,30 @@ Ae.__b = function(e) {
|
|
|
536
541
|
}
|
|
537
542
|
}), i.__H = void 0, t && Ae.__e(t, i.__v));
|
|
538
543
|
};
|
|
539
|
-
var
|
|
540
|
-
function
|
|
544
|
+
var Gr = typeof requestAnimationFrame == "function";
|
|
545
|
+
function Ls(e) {
|
|
541
546
|
var t, i = function() {
|
|
542
|
-
clearTimeout(r),
|
|
547
|
+
clearTimeout(r), Gr && cancelAnimationFrame(t), setTimeout(e);
|
|
543
548
|
}, r = setTimeout(i, 35);
|
|
544
|
-
|
|
549
|
+
Gr && (t = requestAnimationFrame(i));
|
|
545
550
|
}
|
|
546
551
|
function ot(e) {
|
|
547
552
|
var t = de, i = e.__c;
|
|
548
553
|
typeof i == "function" && (e.__c = void 0, i()), de = t;
|
|
549
554
|
}
|
|
550
|
-
function
|
|
555
|
+
function _t(e) {
|
|
551
556
|
var t = de;
|
|
552
557
|
e.__c = e.__(), de = t;
|
|
553
558
|
}
|
|
554
|
-
function
|
|
559
|
+
function Zt(e, t) {
|
|
555
560
|
return !e || e.length !== t.length || t.some(function(i, r) {
|
|
556
561
|
return i !== e[r];
|
|
557
562
|
});
|
|
558
563
|
}
|
|
559
|
-
function
|
|
564
|
+
function vn(e, t) {
|
|
560
565
|
return typeof t == "function" ? t(e) : t;
|
|
561
566
|
}
|
|
562
|
-
const It =
|
|
567
|
+
const It = Pt(void 0), ks = ({ perform: e, children: t, setIsProcessingCallback: i, devSettings: r }) => /* @__PURE__ */ d(It.Provider, { value: { perform: e, setIsProcessingCallback: i, devSettings: r }, children: t }), Us = () => {
|
|
563
568
|
const e = vi(It);
|
|
564
569
|
if (!e)
|
|
565
570
|
throw new Error("useDevSettings must be used within a Context Provider");
|
|
@@ -569,12 +574,12 @@ const It = Rt(void 0), Cs = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
569
574
|
if (!e)
|
|
570
575
|
throw new Error("usePerform must be used within a PerformProvider");
|
|
571
576
|
return { perform: e.perform };
|
|
572
|
-
},
|
|
577
|
+
}, Qs = () => {
|
|
573
578
|
const e = vi(It);
|
|
574
579
|
if (!e)
|
|
575
580
|
throw new Error("useSetIsProcessingCallback must be used within a Context Provider");
|
|
576
581
|
return { setIsProcessingCallback: e.setIsProcessingCallback };
|
|
577
|
-
},
|
|
582
|
+
}, Ys = {
|
|
578
583
|
width: "86px",
|
|
579
584
|
height: "86px",
|
|
580
585
|
flex: "0 0 86px",
|
|
@@ -612,7 +617,7 @@ const It = Rt(void 0), Cs = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
612
617
|
EMAIL: "EMAIL",
|
|
613
618
|
NUMBER: "NUMBER",
|
|
614
619
|
SECURE: "SECURE"
|
|
615
|
-
},
|
|
620
|
+
}, Rs = ({ dataUrl: e }) => {
|
|
616
621
|
const t = Je(null), i = 360 / 1e3;
|
|
617
622
|
return Ve(() => {
|
|
618
623
|
if (!t.current) return;
|
|
@@ -653,7 +658,7 @@ const It = Rt(void 0), Cs = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
653
658
|
CLOSE_ICON: "close_icon",
|
|
654
659
|
GALLERY_ICON: "gallery",
|
|
655
660
|
CAMERA_ICON: "camera"
|
|
656
|
-
},
|
|
661
|
+
}, bt = {
|
|
657
662
|
[ue.SPINNER]: (e) => {
|
|
658
663
|
const t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHlsZT0idHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7Ij4KICA8Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIyNy41IiBmaWxsPSJub25lIiBzdHJva2U9IiM3RTU3QzUiIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTI5LjU5MDY5Njk2MDU3ODk4IDQzLjE5Njg5ODk4Njg1OTY2IiBzdHJva2UtZGFzaG9mZnNldD0iMCIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAzMCAzMCkiLz4KPC9zdmc+Cg==";
|
|
659
664
|
if (!e) return t;
|
|
@@ -688,42 +693,42 @@ const It = Rt(void 0), Cs = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
688
693
|
[ue.UNDERAGE]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OSA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8Y2lyY2xlIGN4PSIxNS41MDA0IiBjeT0iMTAuODAwMiIgcj0iMy42IiBzdHJva2U9IiMwRTFGOTciIHN0cm9rZS13aWR0aD0iMyIvPgogIDxjaXJjbGUgY3g9IjM1LjI5OTgiIGN5PSIxOS43OTk4IiByPSIzIiBzdHJva2U9IiMwRTFGOTciIHN0cm9rZS13aWR0aD0iMyIvPgogIDxwYXRoIGQ9Ik0yOC4wMTQ2IDIwLjM5OTlDMjkuMjQ5NiAxOC40OTcyIDMwLjcwNSAxNy45Njk2IDMyLjI5OTQgMTguMjcyOE00Mi41ODQxIDIwLjM5OTlDNDEuMzQ5MSAxOC40OTcyIDM5Ljg5MzggMTcuOTY5NiAzOC4yOTk0IDE4LjI3MjgiIHN0cm9rZT0iIzBFMUY5NyIgc3Ryb2tlLXdpZHRoPSIzIi8+CiAgPHBhdGggZD0iTTEyLjUgNDEuNzAwMlYzMC42MDAySDkuNVYxOS4yMDAySDIxLjVWMzAuNjAwMkgxOC41VjQxLjcwMDIiIHN0cm9rZT0iIzBFMUY5NyIgc3Ryb2tlLXdpZHRoPSIzIi8+CiAgPHBhdGggZD0iTTMyLjI5OTggNDEuNzAwMVYzNy4yMDAxSDI5LjI5OThMMzMuNDk5OCAyNy42MDAxSDM3LjA5OThMNDEuMjk5OCAzNy4yMDAxSDM4LjI5OThWNDEuNzAwMSIgc3Ryb2tlPSIjMEUxRjk3IiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+Cg==",
|
|
689
694
|
[ue.WARNING]: () => "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODYiIGhlaWdodD0iODYiIHZpZXdCb3g9IjAgMCA4NiA4NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZWxsaXBzZSBjeD0iNDMiIGN5PSI0MyIgcng9IjQwIiByeT0iNDAiIHRyYW5zZm9ybT0icm90YXRlKDkwIDQzIDQzKSIgc3Ryb2tlPSIjRkNCOTM3IiBzdHJva2Utd2lkdGg9IjMiLz4KICA8cGF0aCBkPSJNNDAuODc4OSA0OC41MzUyTDQwLjU4NTkgMjVINDQuOTgwNUw0NC42ODc1IDQ4LjUzNTJINDAuODc4OVpNNDIuNzgzMiA2MC40NzM2QzQyLjAwMiA2MC40NzM2IDQxLjM0MjggNjAuMjA1MSA0MC44MDU3IDU5LjY2OEM0MC4yNjg2IDU5LjEzMDkgNDAgNTguNDcxNyA0MCA1Ny42OTA0QzQwIDU2Ljg5MjkgNDAuMjY4NiA1Ni4yMzM3IDQwLjgwNTcgNTUuNzEyOUM0MS4zNDI4IDU1LjE3NTggNDIuMDAyIDU0LjkwNzIgNDIuNzgzMiA1NC45MDcyQzQzLjU4MDcgNTQuOTA3MiA0NC4yMzk5IDU1LjE3NTggNDQuNzYwNyA1NS43MTI5QzQ1LjI5NzkgNTYuMjMzNyA0NS41NjY0IDU2Ljg5MjkgNDUuNTY2NCA1Ny42OTA0QzQ1LjU2NjQgNTguNDcxNyA0NS4yOTc5IDU5LjEzMDkgNDQuNzYwNyA1OS42NjhDNDQuMjM5OSA2MC4yMDUxIDQzLjU4MDcgNjAuNDczNiA0Mi43ODMyIDYwLjQ3MzZaIiBmaWxsPSIjRkNCOTM3Ii8+Cjwvc3ZnPgo=",
|
|
690
695
|
[ue.DEFAULT]: () => ""
|
|
691
|
-
},
|
|
692
|
-
const i =
|
|
693
|
-
return e === ue.SPINNER ? /* @__PURE__ */ d(
|
|
696
|
+
}, Ln = ({ type: e, color: t }) => {
|
|
697
|
+
const i = bt[e] || bt[ue.DEFAULT], r = i == null ? void 0 : i(t);
|
|
698
|
+
return e === ue.SPINNER ? /* @__PURE__ */ d(Rs, { dataUrl: r }) : /* @__PURE__ */ d("img", { src: r, style: { width: "auto", height: "auto", maxWidth: "100%", maxHeight: "100%" } });
|
|
694
699
|
}, $i = "#005fcc", at = "idv-gui", Pi = {
|
|
695
700
|
DECODING_FAILED: "DECODING_FAILED"
|
|
696
701
|
}, At = {
|
|
697
702
|
text: "text",
|
|
698
703
|
selector: "selector",
|
|
699
704
|
multiSelector: "multiSelector"
|
|
700
|
-
},
|
|
705
|
+
}, Jr = {
|
|
701
706
|
NOT_EMPTY: "notEmpty",
|
|
702
707
|
REGEX: "regex"
|
|
703
|
-
},
|
|
708
|
+
}, Ps = {
|
|
704
709
|
APP_DENIED: "app_denied",
|
|
705
710
|
SYSTEM_RESTRICTED: "system_restricted"
|
|
706
711
|
};
|
|
707
|
-
function
|
|
708
|
-
return e === Mt.CENTER ? "center" : e === Mt.RIGHT ? "
|
|
712
|
+
function kn(e) {
|
|
713
|
+
return e === Mt.CENTER ? "center" : e === Mt.RIGHT ? "end" : "start";
|
|
709
714
|
}
|
|
710
|
-
function
|
|
715
|
+
function Ht(e) {
|
|
711
716
|
if (typeof e == "object" && e !== null)
|
|
712
717
|
for (const t in e)
|
|
713
|
-
typeof e[t] == "object" ?
|
|
718
|
+
typeof e[t] == "object" ? Ht(e[t]) : e[t] === "true" ? e[t] = !0 : e[t] === "false" && (e[t] = !1);
|
|
714
719
|
return e;
|
|
715
720
|
}
|
|
716
|
-
function
|
|
721
|
+
function Vs(e) {
|
|
717
722
|
return Object.entries(e).map(([t, i]) => ({
|
|
718
723
|
id: t,
|
|
719
724
|
value: typeof i == "string" ? i.trim() : i
|
|
720
725
|
})).filter((t) => !!t.value);
|
|
721
726
|
}
|
|
722
|
-
const
|
|
727
|
+
const Fs = (e) => Array.isArray(e) ? e.length === 0 : e === 0 ? !1 : !e;
|
|
723
728
|
function ie(e) {
|
|
724
729
|
return e && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(e) ? e : void 0;
|
|
725
730
|
}
|
|
726
|
-
const
|
|
731
|
+
const Bs = (e, t) => e.reduce((i, r) => {
|
|
727
732
|
var n, o, s;
|
|
728
733
|
if (r.answerType === At.text && (n = r.property) != null && n.id) {
|
|
729
734
|
const M = t.find((I) => I.name === r.property.id);
|
|
@@ -741,7 +746,7 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
741
746
|
return G(T({}, i), { [r.id]: M.array });
|
|
742
747
|
}
|
|
743
748
|
return i;
|
|
744
|
-
}, {}),
|
|
749
|
+
}, {}), Un = (e) => new Promise((t, i) => {
|
|
745
750
|
const r = new FileReader();
|
|
746
751
|
r.onload = () => {
|
|
747
752
|
const n = r.result;
|
|
@@ -751,13 +756,13 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
751
756
|
} else
|
|
752
757
|
i(new Error("Unexpected result type"));
|
|
753
758
|
}, r.onerror = () => i(r.error), r.readAsDataURL(e);
|
|
754
|
-
}),
|
|
759
|
+
}), Ws = () => Ie(null, null, function* () {
|
|
755
760
|
try {
|
|
756
761
|
return (yield navigator.mediaDevices.getUserMedia({ video: !0 })).getTracks().forEach((t) => t.stop()), "allowed";
|
|
757
762
|
} catch (e) {
|
|
758
763
|
return (e == null ? void 0 : e.name) === "NotAllowedError" ? "denied" : "error";
|
|
759
764
|
}
|
|
760
|
-
}),
|
|
765
|
+
}), Zs = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), _e = ({
|
|
761
766
|
imageId: e,
|
|
762
767
|
imageURL: t,
|
|
763
768
|
base64: i,
|
|
@@ -790,8 +795,8 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
790
795
|
}
|
|
791
796
|
);
|
|
792
797
|
if (e) {
|
|
793
|
-
const c = e in
|
|
794
|
-
return /* @__PURE__ */ d(
|
|
798
|
+
const c = e in bt ? e : "default";
|
|
799
|
+
return /* @__PURE__ */ d(Ln, { type: c });
|
|
795
800
|
}
|
|
796
801
|
if (t)
|
|
797
802
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
@@ -824,7 +829,7 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
824
829
|
}
|
|
825
830
|
)
|
|
826
831
|
] });
|
|
827
|
-
},
|
|
832
|
+
}, Hs = ({ signature: e }) => /* @__PURE__ */ d(
|
|
828
833
|
"footer",
|
|
829
834
|
{
|
|
830
835
|
"data-ui": "gui-footer",
|
|
@@ -839,7 +844,7 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
839
844
|
},
|
|
840
845
|
children: /* @__PURE__ */ d("a", { href: "", children: /* @__PURE__ */ d(_e, T({}, e)) })
|
|
841
846
|
}
|
|
842
|
-
),
|
|
847
|
+
), Gs = {
|
|
843
848
|
display: "flex",
|
|
844
849
|
justifyContent: "center",
|
|
845
850
|
alignItems: "center",
|
|
@@ -848,7 +853,7 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
848
853
|
minWidth: "36px",
|
|
849
854
|
border: "none",
|
|
850
855
|
cursor: "pointer"
|
|
851
|
-
},
|
|
856
|
+
}, Js = ({
|
|
852
857
|
dataTestId: e,
|
|
853
858
|
responseBody: t,
|
|
854
859
|
image: i,
|
|
@@ -867,10 +872,10 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
867
872
|
"data-test": e,
|
|
868
873
|
onClick: () => {
|
|
869
874
|
const N = JSON.parse(JSON.stringify(t));
|
|
870
|
-
|
|
875
|
+
Ht(N), O(N, Nt.DATA);
|
|
871
876
|
},
|
|
872
877
|
className: "hover-button",
|
|
873
|
-
style: G(T(T({},
|
|
878
|
+
style: G(T(T({}, Gs), o && { borderRadius: o }), {
|
|
874
879
|
backgroundColor: (a = ie(j)) != null ? a : "transparent"
|
|
875
880
|
}),
|
|
876
881
|
onMouseEnter: () => I(!0),
|
|
@@ -893,7 +898,7 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
893
898
|
]
|
|
894
899
|
}
|
|
895
900
|
);
|
|
896
|
-
},
|
|
901
|
+
}, $s = ({ closeButton: e }) => /* @__PURE__ */ d(
|
|
897
902
|
"header",
|
|
898
903
|
{
|
|
899
904
|
style: {
|
|
@@ -902,14 +907,14 @@ const Ps = (e, t) => e.reduce((i, r) => {
|
|
|
902
907
|
display: "flex",
|
|
903
908
|
justifyContent: "flex-end",
|
|
904
909
|
alignItems: "center",
|
|
905
|
-
|
|
910
|
+
paddingInlineEnd: "16px"
|
|
906
911
|
},
|
|
907
912
|
"data-ui": "gui-header",
|
|
908
913
|
part: "gui-header",
|
|
909
|
-
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(
|
|
914
|
+
children: /* @__PURE__ */ d("div", { children: e && /* @__PURE__ */ d(Js, T({ dataTestId: "close-btn" }, e)) })
|
|
910
915
|
}
|
|
911
916
|
);
|
|
912
|
-
function
|
|
917
|
+
function Xs(e) {
|
|
913
918
|
var n;
|
|
914
919
|
const t = /\[([^\]]+)\]\(((https?:\/\/|www\.)?[^\s)]+\.[^\s)]+)\)/g, i = [];
|
|
915
920
|
let r = 0;
|
|
@@ -923,11 +928,11 @@ function Gs(e) {
|
|
|
923
928
|
}
|
|
924
929
|
return r < e.length && i.push(e.slice(r)), i;
|
|
925
930
|
}
|
|
926
|
-
function
|
|
931
|
+
function Qn(e) {
|
|
927
932
|
const t = e.split(`
|
|
928
933
|
`);
|
|
929
934
|
return t.flatMap((i, r) => {
|
|
930
|
-
const n =
|
|
935
|
+
const n = Xs(i);
|
|
931
936
|
return r === t.length - 1 ? n : [...n, /* @__PURE__ */ d("br", {}, "br-" + r)];
|
|
932
937
|
});
|
|
933
938
|
}
|
|
@@ -945,10 +950,10 @@ const Te = ({
|
|
|
945
950
|
fontFamily: [t, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
946
951
|
fontSize: i,
|
|
947
952
|
color: ie(r) || "#000000",
|
|
948
|
-
textAlign:
|
|
953
|
+
textAlign: kn(n),
|
|
949
954
|
backgroundColor: ie(o) || "transparent",
|
|
950
955
|
borderRadius: s
|
|
951
|
-
}, j = typeof e == "string" && e.trim() &&
|
|
956
|
+
}, j = typeof e == "string" && e.trim() && Qn(e);
|
|
952
957
|
return M ? /* @__PURE__ */ d("label", { "data-ui": "gui-label", part: "gui-label", style: I, htmlFor: M, children: j }) : /* @__PURE__ */ d("div", { "data-ui": "gui-label", part: "gui-label", style: I, children: j });
|
|
953
958
|
}, ut = ({
|
|
954
959
|
title: e,
|
|
@@ -966,8 +971,8 @@ const Te = ({
|
|
|
966
971
|
var m, _;
|
|
967
972
|
const [c, a] = we(!1), N = c && ie(o) ? o : r, { perform: D } = zi(), y = (p) => {
|
|
968
973
|
if (O && O(p), j !== "RESPONSE_BODY") return;
|
|
969
|
-
const
|
|
970
|
-
|
|
974
|
+
const E = JSON.parse(JSON.stringify(i));
|
|
975
|
+
Ht(E), D(E, Nt.DATA);
|
|
971
976
|
}, z = {
|
|
972
977
|
height: "50px",
|
|
973
978
|
width: "100%",
|
|
@@ -1015,7 +1020,7 @@ const Te = ({
|
|
|
1015
1020
|
]
|
|
1016
1021
|
}
|
|
1017
1022
|
);
|
|
1018
|
-
},
|
|
1023
|
+
}, Ks = (i) => {
|
|
1019
1024
|
var r = i, { items: e } = r, t = Di(r, ["items"]);
|
|
1020
1025
|
return /* @__PURE__ */ d("div", { part: "gui-buttons", "data-ui": "gui-buttons", style: T(T({}, {
|
|
1021
1026
|
display: "flex",
|
|
@@ -1031,7 +1036,7 @@ const Te = ({
|
|
|
1031
1036
|
paddingTop: "20px"
|
|
1032
1037
|
}), t), children: e.map((o) => {
|
|
1033
1038
|
var s;
|
|
1034
|
-
return /* @__PURE__ */ d(ut, T({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o),
|
|
1039
|
+
return /* @__PURE__ */ d(ut, T({ dataTestId: "button-" + ((s = o.title) == null ? void 0 : s.text) }, o), Zs());
|
|
1035
1040
|
}) });
|
|
1036
1041
|
}, gi = ({
|
|
1037
1042
|
children: e,
|
|
@@ -1051,8 +1056,7 @@ const Te = ({
|
|
|
1051
1056
|
margin: "0 auto",
|
|
1052
1057
|
paddingTop: t ? o + 10 + "px" : "10px",
|
|
1053
1058
|
paddingBottom: i ? s + 10 + "px" : "10px",
|
|
1054
|
-
|
|
1055
|
-
paddingRight: "20px",
|
|
1059
|
+
paddingInline: "20px",
|
|
1056
1060
|
height: "100%",
|
|
1057
1061
|
width: "100%",
|
|
1058
1062
|
backgroundColor: ie(r)
|
|
@@ -1070,27 +1074,27 @@ const Te = ({
|
|
|
1070
1074
|
{
|
|
1071
1075
|
style: {
|
|
1072
1076
|
position: "absolute",
|
|
1073
|
-
top:
|
|
1074
|
-
|
|
1077
|
+
top: 0,
|
|
1078
|
+
insetInline: 0,
|
|
1075
1079
|
width: "100%",
|
|
1076
1080
|
height: o
|
|
1077
1081
|
},
|
|
1078
|
-
children: /* @__PURE__ */ d(
|
|
1082
|
+
children: /* @__PURE__ */ d($s, { closeButton: t.closeButton })
|
|
1079
1083
|
}
|
|
1080
1084
|
),
|
|
1081
1085
|
/* @__PURE__ */ d("div", { style: { height: "100%", width: "100%", flex: "1 1 100%", overflow: "hidden" }, children: e }),
|
|
1082
|
-
(n == null ? void 0 : n.length) && /* @__PURE__ */ d(
|
|
1086
|
+
(n == null ? void 0 : n.length) && /* @__PURE__ */ d(Ks, { items: n }),
|
|
1083
1087
|
i && /* @__PURE__ */ d(
|
|
1084
1088
|
"div",
|
|
1085
1089
|
{
|
|
1086
1090
|
style: {
|
|
1087
1091
|
position: "absolute",
|
|
1088
|
-
bottom:
|
|
1089
|
-
|
|
1092
|
+
bottom: 0,
|
|
1093
|
+
insetInline: 0,
|
|
1090
1094
|
width: "100%",
|
|
1091
1095
|
height: s
|
|
1092
1096
|
},
|
|
1093
|
-
children: /* @__PURE__ */ d(
|
|
1097
|
+
children: /* @__PURE__ */ d(Hs, T({}, i))
|
|
1094
1098
|
}
|
|
1095
1099
|
)
|
|
1096
1100
|
]
|
|
@@ -1112,15 +1116,15 @@ const Te = ({
|
|
|
1112
1116
|
style: {
|
|
1113
1117
|
fontFamily: [t, "-apple-system", "BlinkMacSystemFont", "sans-serif"].filter(Boolean).join(", "),
|
|
1114
1118
|
fontSize: n,
|
|
1115
|
-
textAlign:
|
|
1119
|
+
textAlign: kn(r),
|
|
1116
1120
|
color: ie(i) || "#000000",
|
|
1117
1121
|
borderRadius: s,
|
|
1118
1122
|
backgroundColor: ie(o) || "transparent",
|
|
1119
1123
|
whiteSpace: "pre-line"
|
|
1120
1124
|
},
|
|
1121
|
-
children: e &&
|
|
1125
|
+
children: e && Qn(e)
|
|
1122
1126
|
}
|
|
1123
|
-
),
|
|
1127
|
+
), qs = ({
|
|
1124
1128
|
header: e,
|
|
1125
1129
|
footer: t,
|
|
1126
1130
|
image: i,
|
|
@@ -1146,7 +1150,7 @@ const Te = ({
|
|
|
1146
1150
|
flexDirection: "column"
|
|
1147
1151
|
},
|
|
1148
1152
|
children: [
|
|
1149
|
-
i && /* @__PURE__ */ d("div", { style:
|
|
1153
|
+
i && /* @__PURE__ */ d("div", { style: Ys, children: /* @__PURE__ */ d(_e, T({}, i)) }),
|
|
1150
1154
|
(r == null ? void 0 : r.text) && /* @__PURE__ */ d(
|
|
1151
1155
|
"div",
|
|
1152
1156
|
{
|
|
@@ -1180,12 +1184,12 @@ const Te = ({
|
|
|
1180
1184
|
]
|
|
1181
1185
|
}
|
|
1182
1186
|
) });
|
|
1183
|
-
},
|
|
1187
|
+
}, eM = {
|
|
1184
1188
|
width: "100%",
|
|
1185
1189
|
height: "auto",
|
|
1186
1190
|
marginBottom: "32px",
|
|
1187
1191
|
aspectRatio: "1.68"
|
|
1188
|
-
},
|
|
1192
|
+
}, iM = {
|
|
1189
1193
|
position: "relative",
|
|
1190
1194
|
display: "flex",
|
|
1191
1195
|
flexDirection: "column",
|
|
@@ -1196,7 +1200,7 @@ const Te = ({
|
|
|
1196
1200
|
width: "100%",
|
|
1197
1201
|
minHeight: "100%",
|
|
1198
1202
|
overflow: "auto"
|
|
1199
|
-
},
|
|
1203
|
+
}, tM = ({
|
|
1200
1204
|
title: e,
|
|
1201
1205
|
header: t,
|
|
1202
1206
|
footer: i,
|
|
@@ -1210,16 +1214,16 @@ const Te = ({
|
|
|
1210
1214
|
part: "gui-info-screen-container",
|
|
1211
1215
|
"data-ui": "gui-info-screen-container",
|
|
1212
1216
|
id: "info-screen-container",
|
|
1213
|
-
style: G(T({},
|
|
1217
|
+
style: G(T({}, iM), {
|
|
1214
1218
|
justifyContent: r ? "flex-start" : "center"
|
|
1215
1219
|
}),
|
|
1216
1220
|
children: [
|
|
1217
|
-
r && /* @__PURE__ */ d("div", { style:
|
|
1221
|
+
r && /* @__PURE__ */ d("div", { style: eM, children: /* @__PURE__ */ d(_e, T({}, r)) }),
|
|
1218
1222
|
e && /* @__PURE__ */ d("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ d(Te, T({}, e)) }),
|
|
1219
1223
|
n && /* @__PURE__ */ d("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ d(jt, T({}, n)) })
|
|
1220
1224
|
]
|
|
1221
1225
|
}
|
|
1222
|
-
) }) }),
|
|
1226
|
+
) }) }), rM = ({ indicatorColor: e = "#7E57C5" }) => /* @__PURE__ */ d(Ln, { type: ue.SPINNER, color: e }), $r = ({
|
|
1223
1227
|
progressView: e,
|
|
1224
1228
|
footer: t,
|
|
1225
1229
|
backgroundColor: i
|
|
@@ -1237,9 +1241,9 @@ const Te = ({
|
|
|
1237
1241
|
height: "100%",
|
|
1238
1242
|
width: "100%"
|
|
1239
1243
|
},
|
|
1240
|
-
children: /* @__PURE__ */ d(
|
|
1244
|
+
children: /* @__PURE__ */ d(rM, { indicatorColor: ie(e == null ? void 0 : e.indicatorColor) || "#000000" })
|
|
1241
1245
|
}
|
|
1242
|
-
) }),
|
|
1246
|
+
) }), nM = ({
|
|
1243
1247
|
title: e,
|
|
1244
1248
|
description: t,
|
|
1245
1249
|
image: i,
|
|
@@ -1277,21 +1281,21 @@ const Te = ({
|
|
|
1277
1281
|
/* @__PURE__ */ d("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ d(_e, T({}, i)) })
|
|
1278
1282
|
]
|
|
1279
1283
|
}
|
|
1280
|
-
),
|
|
1284
|
+
), oM = {
|
|
1281
1285
|
display: "flex",
|
|
1282
1286
|
flexDirection: "column",
|
|
1283
1287
|
padding: "0 16px"
|
|
1284
|
-
},
|
|
1288
|
+
}, sM = ({ items: e, backgroundColor: t, cornerRadius: i = 16 }) => /* @__PURE__ */ d(
|
|
1285
1289
|
"div",
|
|
1286
1290
|
{
|
|
1287
1291
|
className: "details",
|
|
1288
|
-
style: G(T({},
|
|
1292
|
+
style: G(T({}, oM), {
|
|
1289
1293
|
backgroundColor: ie(t) || "white",
|
|
1290
1294
|
borderRadius: i
|
|
1291
1295
|
}),
|
|
1292
|
-
children: e.map((r, n) => /* @__PURE__ */ d(
|
|
1296
|
+
children: e.map((r, n) => /* @__PURE__ */ d(nM, T({ isLastChild: n === e.length - 1 }, r), n))
|
|
1293
1297
|
}
|
|
1294
|
-
),
|
|
1298
|
+
), MM = ({
|
|
1295
1299
|
title: e,
|
|
1296
1300
|
header: t,
|
|
1297
1301
|
footer: i,
|
|
@@ -1316,21 +1320,21 @@ const Te = ({
|
|
|
1316
1320
|
ref: s,
|
|
1317
1321
|
children: [
|
|
1318
1322
|
/* @__PURE__ */ d("div", { style: { marginBottom: e ? "16px" : "0", fontWeight: 400, fontSize: "28px" }, children: e && /* @__PURE__ */ d(Te, T({}, e)) }),
|
|
1319
|
-
r && /* @__PURE__ */ d(
|
|
1323
|
+
r && /* @__PURE__ */ d(sM, T({}, r))
|
|
1320
1324
|
]
|
|
1321
1325
|
}
|
|
1322
1326
|
) });
|
|
1323
1327
|
};
|
|
1324
|
-
function
|
|
1328
|
+
function Yn(e, t) {
|
|
1325
1329
|
for (var i in t) e[i] = t[i];
|
|
1326
1330
|
return e;
|
|
1327
1331
|
}
|
|
1328
|
-
function
|
|
1332
|
+
function St(e, t) {
|
|
1329
1333
|
for (var i in e) if (i !== "__source" && !(i in t)) return !0;
|
|
1330
1334
|
for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
|
|
1331
1335
|
return !1;
|
|
1332
1336
|
}
|
|
1333
|
-
function
|
|
1337
|
+
function Gt(e, t) {
|
|
1334
1338
|
var i = t(), r = we({ t: { __: i, u: t } }), n = r[0].t, o = r[1];
|
|
1335
1339
|
return ci(function() {
|
|
1336
1340
|
n.__ = i, n.u = t, Tt(n) && o({ t: n });
|
|
@@ -1349,23 +1353,23 @@ function Tt(e) {
|
|
|
1349
1353
|
return !0;
|
|
1350
1354
|
}
|
|
1351
1355
|
}
|
|
1352
|
-
function
|
|
1356
|
+
function Jt(e) {
|
|
1353
1357
|
e();
|
|
1354
1358
|
}
|
|
1355
|
-
function
|
|
1359
|
+
function $t(e) {
|
|
1356
1360
|
return e;
|
|
1357
1361
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return [!1,
|
|
1362
|
+
function Xt() {
|
|
1363
|
+
return [!1, Jt];
|
|
1360
1364
|
}
|
|
1361
|
-
var
|
|
1365
|
+
var Kt = ci;
|
|
1362
1366
|
function lt(e, t) {
|
|
1363
1367
|
this.props = e, this.context = t;
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1369
|
+
function Rn(e, t) {
|
|
1366
1370
|
function i(n) {
|
|
1367
1371
|
var o = this.props.ref, s = o == n.ref;
|
|
1368
|
-
return !s && o && (o.call ? o(null) : o.current = null), t ? !t(this.props, n) || !s :
|
|
1372
|
+
return !s && o && (o.call ? o(null) : o.current = null), t ? !t(this.props, n) || !s : St(this.props, n);
|
|
1369
1373
|
}
|
|
1370
1374
|
function r(n) {
|
|
1371
1375
|
return this.shouldComponentUpdate = i, Ke(e, n);
|
|
@@ -1373,57 +1377,57 @@ function Yn(e, t) {
|
|
|
1373
1377
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
|
|
1374
1378
|
}
|
|
1375
1379
|
(lt.prototype = new Ge()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, t) {
|
|
1376
|
-
return
|
|
1380
|
+
return St(this.props, e) || St(this.state, t);
|
|
1377
1381
|
};
|
|
1378
|
-
var
|
|
1382
|
+
var Xr = q.__b;
|
|
1379
1383
|
q.__b = function(e) {
|
|
1380
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
1384
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Xr && Xr(e);
|
|
1381
1385
|
};
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1386
|
+
var aM = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
1387
|
+
function Pn(e) {
|
|
1384
1388
|
function t(i) {
|
|
1385
|
-
var r =
|
|
1389
|
+
var r = Yn({}, i);
|
|
1386
1390
|
return delete r.ref, e(r, i.ref || null);
|
|
1387
1391
|
}
|
|
1388
|
-
return t.$$typeof =
|
|
1392
|
+
return t.$$typeof = aM, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
1389
1393
|
}
|
|
1390
|
-
var
|
|
1394
|
+
var Kr = function(e, t) {
|
|
1391
1395
|
return e == null ? null : oi(oi(e).map(t));
|
|
1392
|
-
},
|
|
1396
|
+
}, Vn = { map: Kr, forEach: Kr, count: function(e) {
|
|
1393
1397
|
return e ? oi(e).length : 0;
|
|
1394
1398
|
}, only: function(e) {
|
|
1395
1399
|
var t = oi(e);
|
|
1396
1400
|
if (t.length !== 1) throw "Children.only";
|
|
1397
1401
|
return t[0];
|
|
1398
|
-
}, toArray: oi },
|
|
1402
|
+
}, toArray: oi }, uM = q.__e;
|
|
1399
1403
|
q.__e = function(e, t, i, r) {
|
|
1400
1404
|
if (e.then) {
|
|
1401
1405
|
for (var n, o = t; o = o.__; ) if ((n = o.__c) && n.__c) return t.__e == null && (t.__e = i.__e, t.__k = i.__k), n.__c(e, t);
|
|
1402
1406
|
}
|
|
1403
|
-
|
|
1407
|
+
uM(e, t, i, r);
|
|
1404
1408
|
};
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1409
|
+
var qr = q.unmount;
|
|
1410
|
+
function Fn(e, t, i) {
|
|
1407
1411
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
1408
1412
|
typeof r.__c == "function" && r.__c();
|
|
1409
|
-
}), e.__c.__H = null), (e =
|
|
1410
|
-
return
|
|
1413
|
+
}), e.__c.__H = null), (e = Yn({}, e)).__c != null && (e.__c.__P === i && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
1414
|
+
return Fn(r, t, i);
|
|
1411
1415
|
})), e;
|
|
1412
1416
|
}
|
|
1413
|
-
function
|
|
1417
|
+
function Bn(e, t, i) {
|
|
1414
1418
|
return e && i && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
1415
|
-
return
|
|
1419
|
+
return Bn(r, t, i);
|
|
1416
1420
|
}), e.__c && e.__c.__P === t && (e.__e && i.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = i)), e;
|
|
1417
1421
|
}
|
|
1418
1422
|
function Vi() {
|
|
1419
1423
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1420
1424
|
}
|
|
1421
|
-
function
|
|
1425
|
+
function Wn(e) {
|
|
1422
1426
|
if (!e.__) return null;
|
|
1423
1427
|
var t = e.__.__c;
|
|
1424
1428
|
return t && t.__a && t.__a(e);
|
|
1425
1429
|
}
|
|
1426
|
-
function
|
|
1430
|
+
function Zn(e) {
|
|
1427
1431
|
var t, i, r, n = null;
|
|
1428
1432
|
function o(s) {
|
|
1429
1433
|
if (t || (t = e()).then(function(M) {
|
|
@@ -1441,11 +1445,11 @@ function _i() {
|
|
|
1441
1445
|
}
|
|
1442
1446
|
q.unmount = function(e) {
|
|
1443
1447
|
var t = e.__c;
|
|
1444
|
-
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
1448
|
+
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), qr && qr(e);
|
|
1445
1449
|
}, (Vi.prototype = new Ge()).__c = function(e, t) {
|
|
1446
1450
|
var i = t.__c, r = this;
|
|
1447
1451
|
r.o == null && (r.o = []), r.o.push(i);
|
|
1448
|
-
var n =
|
|
1452
|
+
var n = Wn(r.__v), o = !1, s = function() {
|
|
1449
1453
|
o || r.__z || (o = !0, i.__R = null, n ? n(I) : I());
|
|
1450
1454
|
};
|
|
1451
1455
|
i.__R = s;
|
|
@@ -1455,7 +1459,7 @@ q.unmount = function(e) {
|
|
|
1455
1459
|
if (!--r.__u) {
|
|
1456
1460
|
if (r.state.__a) {
|
|
1457
1461
|
var j = r.state.__a;
|
|
1458
|
-
r.__v.__k[0] =
|
|
1462
|
+
r.__v.__k[0] = Bn(j, j.__c.__P, j.__c.__O);
|
|
1459
1463
|
}
|
|
1460
1464
|
var O;
|
|
1461
1465
|
for (r.setState({ __a: r.__b = null }); O = r.o.pop(); ) O.__P = M, O.forceUpdate();
|
|
@@ -1468,26 +1472,26 @@ q.unmount = function(e) {
|
|
|
1468
1472
|
if (this.__b) {
|
|
1469
1473
|
if (this.__v.__k) {
|
|
1470
1474
|
var i = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
1471
|
-
this.__v.__k[0] =
|
|
1475
|
+
this.__v.__k[0] = Fn(this.__b, i, r.__O = r.__P);
|
|
1472
1476
|
}
|
|
1473
1477
|
this.__b = null;
|
|
1474
1478
|
}
|
|
1475
1479
|
var n = t.__a && Ke(Ce, null, e.fallback);
|
|
1476
1480
|
return n && (n.__u &= -33), [Ke(Ce, null, t.__a ? null : e.children), n];
|
|
1477
1481
|
};
|
|
1478
|
-
var
|
|
1482
|
+
var en = function(e, t, i) {
|
|
1479
1483
|
if (++i[1] === i[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (i = e.i; i; ) {
|
|
1480
1484
|
for (; i.length > 3; ) i.pop()();
|
|
1481
1485
|
if (i[1] < i[0]) break;
|
|
1482
1486
|
e.i = i = i[2];
|
|
1483
1487
|
}
|
|
1484
1488
|
};
|
|
1485
|
-
function
|
|
1489
|
+
function lM(e) {
|
|
1486
1490
|
return this.getChildContext = function() {
|
|
1487
1491
|
return e.context;
|
|
1488
1492
|
}, e.children;
|
|
1489
1493
|
}
|
|
1490
|
-
function
|
|
1494
|
+
function cM(e) {
|
|
1491
1495
|
var t = this, i = e.h;
|
|
1492
1496
|
if (t.componentWillUnmount = function() {
|
|
1493
1497
|
Ai(null, t.v), t.v = null, t.h = null;
|
|
@@ -1501,17 +1505,17 @@ function aM(e) {
|
|
|
1501
1505
|
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), t.h.removeChild(n);
|
|
1502
1506
|
} };
|
|
1503
1507
|
}
|
|
1504
|
-
Ai(Ke(
|
|
1508
|
+
Ai(Ke(lM, { context: t.context }, e.__v), t.v);
|
|
1505
1509
|
}
|
|
1506
|
-
function
|
|
1507
|
-
var i = Ke(
|
|
1510
|
+
function Hn(e, t) {
|
|
1511
|
+
var i = Ke(cM, { __v: e, h: t });
|
|
1508
1512
|
return i.containerInfo = t, i;
|
|
1509
1513
|
}
|
|
1510
1514
|
(_i.prototype = new Ge()).__a = function(e) {
|
|
1511
|
-
var t = this, i =
|
|
1515
|
+
var t = this, i = Wn(t.__v), r = t.l.get(e);
|
|
1512
1516
|
return r[0]++, function(n) {
|
|
1513
1517
|
var o = function() {
|
|
1514
|
-
t.props.revealOrder ? (r.push(n),
|
|
1518
|
+
t.props.revealOrder ? (r.push(n), en(t, e, r)) : n();
|
|
1515
1519
|
};
|
|
1516
1520
|
i ? i(o) : o();
|
|
1517
1521
|
};
|
|
@@ -1524,17 +1528,17 @@ function Zn(e, t) {
|
|
|
1524
1528
|
}, _i.prototype.componentDidUpdate = _i.prototype.componentDidMount = function() {
|
|
1525
1529
|
var e = this;
|
|
1526
1530
|
this.l.forEach(function(t, i) {
|
|
1527
|
-
|
|
1531
|
+
en(e, i, t);
|
|
1528
1532
|
});
|
|
1529
1533
|
};
|
|
1530
|
-
var
|
|
1534
|
+
var Gn = typeof Symbol != "undefined" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, gM = /^(?: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]/, dM = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, NM = /[A-Z0-9]/g, DM = typeof document != "undefined", IM = function(e) {
|
|
1531
1535
|
return (typeof Symbol != "undefined" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
1532
1536
|
};
|
|
1533
|
-
function
|
|
1537
|
+
function Jn(e, t, i) {
|
|
1534
1538
|
return t.__k == null && (t.textContent = ""), Ai(e, t), typeof i == "function" && i(), e ? e.__c : null;
|
|
1535
1539
|
}
|
|
1536
|
-
function
|
|
1537
|
-
return
|
|
1540
|
+
function $n(e, t, i) {
|
|
1541
|
+
return Sn(e, t), typeof i == "function" && i(), e ? e.__c : null;
|
|
1538
1542
|
}
|
|
1539
1543
|
Ge.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1540
1544
|
Object.defineProperty(Ge.prototype, e, { configurable: !0, get: function() {
|
|
@@ -1543,160 +1547,160 @@ Ge.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
1543
1547
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
1544
1548
|
} });
|
|
1545
1549
|
});
|
|
1546
|
-
var
|
|
1547
|
-
function
|
|
1550
|
+
var tn = q.event;
|
|
1551
|
+
function jM() {
|
|
1548
1552
|
}
|
|
1549
|
-
function
|
|
1553
|
+
function yM() {
|
|
1550
1554
|
return this.cancelBubble;
|
|
1551
1555
|
}
|
|
1552
|
-
function
|
|
1556
|
+
function fM() {
|
|
1553
1557
|
return this.defaultPrevented;
|
|
1554
1558
|
}
|
|
1555
1559
|
q.event = function(e) {
|
|
1556
|
-
return
|
|
1560
|
+
return tn && (e = tn(e)), e.persist = jM, e.isPropagationStopped = yM, e.isDefaultPrevented = fM, e.nativeEvent = e;
|
|
1557
1561
|
};
|
|
1558
|
-
var
|
|
1562
|
+
var qt, AM = { enumerable: !1, configurable: !0, get: function() {
|
|
1559
1563
|
return this.class;
|
|
1560
|
-
} },
|
|
1564
|
+
} }, rn = q.vnode;
|
|
1561
1565
|
q.vnode = function(e) {
|
|
1562
1566
|
typeof e.type == "string" && (function(t) {
|
|
1563
1567
|
var i = t.props, r = t.type, n = {}, o = r.indexOf("-") === -1;
|
|
1564
1568
|
for (var s in i) {
|
|
1565
1569
|
var M = i[s];
|
|
1566
|
-
if (!(s === "value" && "defaultValue" in i && M == null ||
|
|
1570
|
+
if (!(s === "value" && "defaultValue" in i && M == null || DM && s === "children" && r === "noscript" || s === "class" || s === "className")) {
|
|
1567
1571
|
var I = s.toLowerCase();
|
|
1568
|
-
s === "defaultValue" && "value" in i && i.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : I === "translate" && M === "no" ? M = !1 : I[0] === "o" && I[1] === "n" ? I === "ondoubleclick" ? s = "ondblclick" : I !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
1572
|
+
s === "defaultValue" && "value" in i && i.value == null ? s = "value" : s === "download" && M === !0 ? M = "" : I === "translate" && M === "no" ? M = !1 : I[0] === "o" && I[1] === "n" ? I === "ondoubleclick" ? s = "ondblclick" : I !== "onchange" || r !== "input" && r !== "textarea" || IM(i.type) ? I === "onfocus" ? s = "onfocusin" : I === "onblur" ? s = "onfocusout" : dM.test(s) && (s = I) : I = s = "oninput" : o && gM.test(s) ? s = s.replace(NM, "-$&").toLowerCase() : M === null && (M = void 0), I === "oninput" && n[s = I] && (s = "oninputCapture"), n[s] = M;
|
|
1569
1573
|
}
|
|
1570
1574
|
}
|
|
1571
1575
|
r == "select" && n.multiple && Array.isArray(n.value) && (n.value = oi(i.children).forEach(function(j) {
|
|
1572
1576
|
j.props.selected = n.value.indexOf(j.props.value) != -1;
|
|
1573
1577
|
})), r == "select" && n.defaultValue != null && (n.value = oi(i.children).forEach(function(j) {
|
|
1574
1578
|
j.props.selected = n.multiple ? n.defaultValue.indexOf(j.props.value) != -1 : n.defaultValue == j.props.value;
|
|
1575
|
-
})), i.class && !i.className ? (n.class = i.class, Object.defineProperty(n, "className",
|
|
1576
|
-
})(e), e.$$typeof =
|
|
1579
|
+
})), i.class && !i.className ? (n.class = i.class, Object.defineProperty(n, "className", AM)) : (i.className && !i.class || i.class && i.className) && (n.class = n.className = i.className), t.props = n;
|
|
1580
|
+
})(e), e.$$typeof = Gn, rn && rn(e);
|
|
1577
1581
|
};
|
|
1578
|
-
var
|
|
1582
|
+
var nn = q.__r;
|
|
1579
1583
|
q.__r = function(e) {
|
|
1580
|
-
|
|
1584
|
+
nn && nn(e), qt = e.__c;
|
|
1581
1585
|
};
|
|
1582
|
-
var
|
|
1586
|
+
var on = q.diffed;
|
|
1583
1587
|
q.diffed = function(e) {
|
|
1584
|
-
|
|
1588
|
+
on && on(e);
|
|
1585
1589
|
var t = e.props, i = e.__e;
|
|
1586
|
-
i != null && e.type === "textarea" && "value" in t && t.value !== i.value && (i.value = t.value == null ? "" : t.value),
|
|
1590
|
+
i != null && e.type === "textarea" && "value" in t && t.value !== i.value && (i.value = t.value == null ? "" : t.value), qt = null;
|
|
1587
1591
|
};
|
|
1588
|
-
var
|
|
1589
|
-
return
|
|
1590
|
-
}, useCallback:
|
|
1591
|
-
function
|
|
1592
|
+
var Xn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1593
|
+
return qt.__n[e.__c].props.value;
|
|
1594
|
+
}, useCallback: Ft, useContext: vi, useDebugValue: Bt, useDeferredValue: $t, useEffect: Ve, useId: Wt, useImperativeHandle: Vt, useInsertionEffect: Kt, useLayoutEffect: ci, useMemo: Ji, useReducer: Dt, useRef: Je, useState: we, useSyncExternalStore: Gt, useTransition: Xt } } }, TM = "18.3.1";
|
|
1595
|
+
function Kn(e) {
|
|
1592
1596
|
return Ke.bind(null, e);
|
|
1593
1597
|
}
|
|
1594
1598
|
function Xi(e) {
|
|
1595
|
-
return !!e && e.$$typeof ===
|
|
1596
|
-
}
|
|
1597
|
-
function Kn(e) {
|
|
1598
|
-
return Xi(e) && e.type === Ce;
|
|
1599
|
+
return !!e && e.$$typeof === Gn;
|
|
1599
1600
|
}
|
|
1600
1601
|
function qn(e) {
|
|
1601
|
-
return
|
|
1602
|
+
return Xi(e) && e.type === Ce;
|
|
1602
1603
|
}
|
|
1603
1604
|
function eo(e) {
|
|
1604
|
-
return
|
|
1605
|
+
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
1605
1606
|
}
|
|
1606
1607
|
function io(e) {
|
|
1607
|
-
return
|
|
1608
|
+
return Xi(e) ? ms.apply(null, arguments) : e;
|
|
1608
1609
|
}
|
|
1609
1610
|
function to(e) {
|
|
1611
|
+
return !!e.__k && (Ai(null, e), !0);
|
|
1612
|
+
}
|
|
1613
|
+
function ro(e) {
|
|
1610
1614
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
1611
1615
|
}
|
|
1612
|
-
var
|
|
1616
|
+
var no = function(e, t) {
|
|
1613
1617
|
return e(t);
|
|
1614
|
-
},
|
|
1618
|
+
}, oo = function(e, t) {
|
|
1615
1619
|
return e(t);
|
|
1616
|
-
},
|
|
1617
|
-
const
|
|
1620
|
+
}, so = Ce, Mo = Xi, X = { useState: we, useId: Wt, useReducer: Dt, useEffect: Ve, useLayoutEffect: ci, useInsertionEffect: Kt, useTransition: Xt, useDeferredValue: $t, useSyncExternalStore: Gt, startTransition: Jt, useRef: Je, useImperativeHandle: Vt, useMemo: Ji, useCallback: Ft, useContext: vi, useDebugValue: Bt, version: "18.3.1", Children: Vn, render: Jn, hydrate: $n, unmountComponentAtNode: to, createPortal: Hn, createElement: Ke, createContext: Pt, createFactory: Kn, cloneElement: io, createRef: xn, Fragment: Ce, isValidElement: Xi, isElement: Mo, isFragment: qn, isMemo: eo, findDOMNode: ro, Component: Ge, PureComponent: lt, memo: Rn, forwardRef: Pn, flushSync: oo, unstable_batchedUpdates: no, StrictMode: so, Suspense: Vi, SuspenseList: _i, lazy: Zn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Xn };
|
|
1621
|
+
const zM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1618
1622
|
__proto__: null,
|
|
1619
|
-
Children:
|
|
1623
|
+
Children: Vn,
|
|
1620
1624
|
Component: Ge,
|
|
1621
1625
|
Fragment: Ce,
|
|
1622
1626
|
PureComponent: lt,
|
|
1623
|
-
StrictMode:
|
|
1627
|
+
StrictMode: so,
|
|
1624
1628
|
Suspense: Vi,
|
|
1625
1629
|
SuspenseList: _i,
|
|
1626
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
1627
|
-
cloneElement:
|
|
1628
|
-
createContext:
|
|
1630
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Xn,
|
|
1631
|
+
cloneElement: io,
|
|
1632
|
+
createContext: Pt,
|
|
1629
1633
|
createElement: Ke,
|
|
1630
|
-
createFactory:
|
|
1631
|
-
createPortal:
|
|
1634
|
+
createFactory: Kn,
|
|
1635
|
+
createPortal: Hn,
|
|
1632
1636
|
createRef: xn,
|
|
1633
1637
|
default: X,
|
|
1634
|
-
findDOMNode:
|
|
1635
|
-
flushSync:
|
|
1636
|
-
forwardRef:
|
|
1637
|
-
hydrate:
|
|
1638
|
-
isElement:
|
|
1639
|
-
isFragment:
|
|
1640
|
-
isMemo:
|
|
1638
|
+
findDOMNode: ro,
|
|
1639
|
+
flushSync: oo,
|
|
1640
|
+
forwardRef: Pn,
|
|
1641
|
+
hydrate: $n,
|
|
1642
|
+
isElement: Mo,
|
|
1643
|
+
isFragment: qn,
|
|
1644
|
+
isMemo: eo,
|
|
1641
1645
|
isValidElement: Xi,
|
|
1642
|
-
lazy:
|
|
1643
|
-
memo:
|
|
1644
|
-
render:
|
|
1645
|
-
startTransition:
|
|
1646
|
-
unmountComponentAtNode:
|
|
1647
|
-
unstable_batchedUpdates:
|
|
1648
|
-
useCallback:
|
|
1646
|
+
lazy: Zn,
|
|
1647
|
+
memo: Rn,
|
|
1648
|
+
render: Jn,
|
|
1649
|
+
startTransition: Jt,
|
|
1650
|
+
unmountComponentAtNode: to,
|
|
1651
|
+
unstable_batchedUpdates: no,
|
|
1652
|
+
useCallback: Ft,
|
|
1649
1653
|
useContext: vi,
|
|
1650
|
-
useDebugValue:
|
|
1651
|
-
useDeferredValue:
|
|
1654
|
+
useDebugValue: Bt,
|
|
1655
|
+
useDeferredValue: $t,
|
|
1652
1656
|
useEffect: Ve,
|
|
1653
|
-
useErrorBoundary:
|
|
1654
|
-
useId:
|
|
1655
|
-
useImperativeHandle:
|
|
1656
|
-
useInsertionEffect:
|
|
1657
|
+
useErrorBoundary: Cs,
|
|
1658
|
+
useId: Wt,
|
|
1659
|
+
useImperativeHandle: Vt,
|
|
1660
|
+
useInsertionEffect: Kt,
|
|
1657
1661
|
useLayoutEffect: ci,
|
|
1658
1662
|
useMemo: Ji,
|
|
1659
1663
|
useReducer: Dt,
|
|
1660
1664
|
useRef: Je,
|
|
1661
1665
|
useState: we,
|
|
1662
|
-
useSyncExternalStore:
|
|
1663
|
-
useTransition:
|
|
1664
|
-
version:
|
|
1666
|
+
useSyncExternalStore: Gt,
|
|
1667
|
+
useTransition: Xt,
|
|
1668
|
+
version: TM
|
|
1665
1669
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1666
1670
|
var Ki = (e) => e.type === "checkbox", fi = (e) => e instanceof Date, Qe = (e) => e == null;
|
|
1667
|
-
const
|
|
1668
|
-
var
|
|
1671
|
+
const ao = (e) => typeof e == "object";
|
|
1672
|
+
var he = (e) => !Qe(e) && !Array.isArray(e) && ao(e) && !fi(e), uo = (e) => he(e) && e.target ? Ki(e.target) ? e.target.checked : e.target.value : e, OM = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, lo = (e, t) => e.has(OM(t)), EM = (e) => {
|
|
1669
1673
|
const t = e.constructor && e.constructor.prototype;
|
|
1670
|
-
return
|
|
1671
|
-
},
|
|
1672
|
-
function
|
|
1674
|
+
return he(t) && t.hasOwnProperty("isPrototypeOf");
|
|
1675
|
+
}, er = typeof window != "undefined" && typeof window.HTMLElement != "undefined" && typeof document != "undefined";
|
|
1676
|
+
function Ee(e) {
|
|
1673
1677
|
if (e instanceof Date)
|
|
1674
1678
|
return new Date(e);
|
|
1675
1679
|
const t = typeof FileList != "undefined" && e instanceof FileList;
|
|
1676
|
-
if (
|
|
1680
|
+
if (er && (e instanceof Blob || t))
|
|
1677
1681
|
return e;
|
|
1678
1682
|
const i = Array.isArray(e);
|
|
1679
|
-
if (!i && !(
|
|
1683
|
+
if (!i && !(he(e) && EM(e)))
|
|
1680
1684
|
return e;
|
|
1681
1685
|
const r = i ? [] : Object.create(Object.getPrototypeOf(e));
|
|
1682
1686
|
for (const n in e)
|
|
1683
|
-
Object.prototype.hasOwnProperty.call(e, n) && (r[n] =
|
|
1687
|
+
Object.prototype.hasOwnProperty.call(e, n) && (r[n] = Ee(e[n]));
|
|
1684
1688
|
return r;
|
|
1685
1689
|
}
|
|
1686
|
-
var yt = (e) => /^\w*$/.test(e), ye = (e) => e === void 0,
|
|
1687
|
-
if (!t || !
|
|
1690
|
+
var yt = (e) => /^\w*$/.test(e), ye = (e) => e === void 0, ir = (e) => Array.isArray(e) ? e.filter(Boolean) : [], tr = (e) => ir(e.replace(/["|']|\]/g, "").split(/\.|\[/)), v = (e, t, i) => {
|
|
1691
|
+
if (!t || !he(e))
|
|
1688
1692
|
return i;
|
|
1689
|
-
const r = (yt(t) ? [t] :
|
|
1693
|
+
const r = (yt(t) ? [t] : tr(t)).reduce((n, o) => Qe(n) ? n : n[o], e);
|
|
1690
1694
|
return ye(r) || r === e ? ye(e[t]) ? i : e[t] : r;
|
|
1691
1695
|
}, Re = (e) => typeof e == "boolean", ke = (e) => typeof e == "function", De = (e, t, i) => {
|
|
1692
1696
|
let r = -1;
|
|
1693
|
-
const n = yt(t) ? [t] :
|
|
1697
|
+
const n = yt(t) ? [t] : tr(t), o = n.length, s = o - 1;
|
|
1694
1698
|
for (; ++r < o; ) {
|
|
1695
1699
|
const M = n[r];
|
|
1696
1700
|
let I = i;
|
|
1697
1701
|
if (r !== s) {
|
|
1698
1702
|
const j = e[M];
|
|
1699
|
-
I =
|
|
1703
|
+
I = he(j) || Array.isArray(j) ? j : isNaN(+n[r + 1]) ? {} : [];
|
|
1700
1704
|
}
|
|
1701
1705
|
if (M === "__proto__" || M === "constructor" || M === "prototype")
|
|
1702
1706
|
return;
|
|
@@ -1721,10 +1725,10 @@ const ct = {
|
|
|
1721
1725
|
pattern: "pattern",
|
|
1722
1726
|
required: "required",
|
|
1723
1727
|
validate: "validate"
|
|
1724
|
-
},
|
|
1725
|
-
|
|
1726
|
-
const
|
|
1727
|
-
var
|
|
1728
|
+
}, co = X.createContext(null);
|
|
1729
|
+
co.displayName = "HookFormControlContext";
|
|
1730
|
+
const rr = () => X.useContext(co);
|
|
1731
|
+
var go = (e, t, i, r = !0) => {
|
|
1728
1732
|
const n = {
|
|
1729
1733
|
defaultValues: t._defaultValues
|
|
1730
1734
|
};
|
|
@@ -1737,9 +1741,9 @@ var co = (e, t, i, r = !0) => {
|
|
|
1737
1741
|
});
|
|
1738
1742
|
return n;
|
|
1739
1743
|
};
|
|
1740
|
-
const
|
|
1741
|
-
function
|
|
1742
|
-
const t =
|
|
1744
|
+
const nr = typeof window != "undefined" ? X.useLayoutEffect : X.useEffect;
|
|
1745
|
+
function xM(e) {
|
|
1746
|
+
const t = rr(), { control: i = t, disabled: r, name: n, exact: o } = e || {}, [s, M] = X.useState(i._formState), I = X.useRef({
|
|
1743
1747
|
isDirty: !1,
|
|
1744
1748
|
isLoading: !1,
|
|
1745
1749
|
dirtyFields: !1,
|
|
@@ -1749,7 +1753,7 @@ function zM(e) {
|
|
|
1749
1753
|
isValid: !1,
|
|
1750
1754
|
errors: !1
|
|
1751
1755
|
});
|
|
1752
|
-
return
|
|
1756
|
+
return nr(() => i._subscribe({
|
|
1753
1757
|
name: n,
|
|
1754
1758
|
formState: I.current,
|
|
1755
1759
|
exact: o,
|
|
@@ -1758,11 +1762,11 @@ function zM(e) {
|
|
|
1758
1762
|
}
|
|
1759
1763
|
}), [n, r, o]), X.useEffect(() => {
|
|
1760
1764
|
I.current.isValid && i._setValid(!0);
|
|
1761
|
-
}, [i]), X.useMemo(() =>
|
|
1765
|
+
}, [i]), X.useMemo(() => go(s, i, I.current, !1), [s, i]);
|
|
1762
1766
|
}
|
|
1763
|
-
var Pe = (e) => typeof e == "string",
|
|
1767
|
+
var Pe = (e) => typeof e == "string", Ct = (e, t, i, r, n) => Pe(e) ? (r && t.watch.add(e), v(i, e, n)) : Array.isArray(e) ? e.map((o) => (r && t.watch.add(o), v(i, o))) : (r && (t.watchAll = !0), i), vt = (e) => Qe(e) || !ao(e);
|
|
1764
1768
|
function He(e, t, i = /* @__PURE__ */ new WeakSet()) {
|
|
1765
|
-
if (
|
|
1769
|
+
if (vt(e) || vt(t))
|
|
1766
1770
|
return Object.is(e, t);
|
|
1767
1771
|
if (fi(e) && fi(t))
|
|
1768
1772
|
return Object.is(e.getTime(), t.getTime());
|
|
@@ -1778,24 +1782,24 @@ function He(e, t, i = /* @__PURE__ */ new WeakSet()) {
|
|
|
1778
1782
|
return !1;
|
|
1779
1783
|
if (o !== "ref") {
|
|
1780
1784
|
const M = t[o];
|
|
1781
|
-
if (fi(s) && fi(M) ||
|
|
1785
|
+
if (fi(s) && fi(M) || he(s) && he(M) || Array.isArray(s) && Array.isArray(M) ? !He(s, M, i) : !Object.is(s, M))
|
|
1782
1786
|
return !1;
|
|
1783
1787
|
}
|
|
1784
1788
|
}
|
|
1785
1789
|
return !0;
|
|
1786
1790
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const t =
|
|
1791
|
+
function hM(e) {
|
|
1792
|
+
const t = rr(), { control: i = t, name: r, defaultValue: n, disabled: o, exact: s, compute: M } = e || {}, I = X.useRef(n), j = X.useRef(M), O = X.useRef(void 0), c = X.useRef(i), a = X.useRef(r);
|
|
1789
1793
|
j.current = M;
|
|
1790
1794
|
const [N, D] = X.useState(() => {
|
|
1791
|
-
const
|
|
1792
|
-
return j.current ? j.current(
|
|
1793
|
-
}), y = X.useCallback((
|
|
1794
|
-
const C =
|
|
1795
|
+
const E = i._getWatch(r, I.current);
|
|
1796
|
+
return j.current ? j.current(E) : E;
|
|
1797
|
+
}), y = X.useCallback((E) => {
|
|
1798
|
+
const C = Ct(r, i._names, E || i._formValues, !1, I.current);
|
|
1795
1799
|
return j.current ? j.current(C) : C;
|
|
1796
|
-
}, [i._formValues, i._names, r]), z = X.useCallback((
|
|
1800
|
+
}, [i._formValues, i._names, r]), z = X.useCallback((E) => {
|
|
1797
1801
|
if (!o) {
|
|
1798
|
-
const C =
|
|
1802
|
+
const C = Ct(r, i._names, E || i._formValues, !1, I.current);
|
|
1799
1803
|
if (j.current) {
|
|
1800
1804
|
const K = j.current(C);
|
|
1801
1805
|
He(K, O.current) || (D(K), O.current = K);
|
|
@@ -1803,31 +1807,31 @@ function OM(e) {
|
|
|
1803
1807
|
D(C);
|
|
1804
1808
|
}
|
|
1805
1809
|
}, [i._formValues, i._names, o, r]);
|
|
1806
|
-
|
|
1810
|
+
nr(() => ((c.current !== i || !He(a.current, r)) && (c.current = i, a.current = r, z()), i._subscribe({
|
|
1807
1811
|
name: r,
|
|
1808
1812
|
formState: {
|
|
1809
1813
|
values: !0
|
|
1810
1814
|
},
|
|
1811
1815
|
exact: s,
|
|
1812
|
-
callback: (
|
|
1813
|
-
z(
|
|
1816
|
+
callback: (E) => {
|
|
1817
|
+
z(E.values);
|
|
1814
1818
|
}
|
|
1815
1819
|
})), [i, s, r, z]), X.useEffect(() => i._removeUnmounted());
|
|
1816
1820
|
const m = c.current !== i, _ = a.current, p = X.useMemo(() => {
|
|
1817
1821
|
if (o)
|
|
1818
1822
|
return null;
|
|
1819
|
-
const
|
|
1820
|
-
return m ||
|
|
1823
|
+
const E = !m && !He(_, r);
|
|
1824
|
+
return m || E ? y() : null;
|
|
1821
1825
|
}, [o, m, r, _, y]);
|
|
1822
1826
|
return p !== null ? p : N;
|
|
1823
1827
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const t =
|
|
1828
|
+
function mM(e) {
|
|
1829
|
+
const t = rr(), { name: i, disabled: r, control: n = t, shouldUnregister: o, defaultValue: s, exact: M = !0 } = e, I = lo(n._names.array, i), j = X.useMemo(() => v(n._formValues, i, v(n._defaultValues, i, s)), [n, i, s]), O = hM({
|
|
1826
1830
|
control: n,
|
|
1827
1831
|
name: i,
|
|
1828
1832
|
defaultValue: j,
|
|
1829
1833
|
exact: M
|
|
1830
|
-
}), c =
|
|
1834
|
+
}), c = xM({
|
|
1831
1835
|
control: n,
|
|
1832
1836
|
name: i,
|
|
1833
1837
|
exact: M
|
|
@@ -1856,9 +1860,9 @@ function xM(e) {
|
|
|
1856
1860
|
enumerable: !0,
|
|
1857
1861
|
get: () => v(c.errors, i)
|
|
1858
1862
|
}
|
|
1859
|
-
}), [c, i]), z = X.useCallback((
|
|
1863
|
+
}), [c, i]), z = X.useCallback((E) => D.current.onChange({
|
|
1860
1864
|
target: {
|
|
1861
|
-
value:
|
|
1865
|
+
value: uo(E),
|
|
1862
1866
|
name: i
|
|
1863
1867
|
},
|
|
1864
1868
|
type: ct.CHANGE
|
|
@@ -1868,13 +1872,13 @@ function xM(e) {
|
|
|
1868
1872
|
name: i
|
|
1869
1873
|
},
|
|
1870
1874
|
type: ct.BLUR
|
|
1871
|
-
}), [i, n._formValues]), _ = X.useCallback((
|
|
1875
|
+
}), [i, n._formValues]), _ = X.useCallback((E) => {
|
|
1872
1876
|
const C = v(n._fields, i);
|
|
1873
|
-
C && C._f &&
|
|
1874
|
-
focus: () => ke(
|
|
1875
|
-
select: () => ke(
|
|
1876
|
-
setCustomValidity: (K) => ke(
|
|
1877
|
-
reportValidity: () => ke(
|
|
1877
|
+
C && C._f && E && (C._f.ref = {
|
|
1878
|
+
focus: () => ke(E.focus) && E.focus(),
|
|
1879
|
+
select: () => ke(E.select) && E.select(),
|
|
1880
|
+
setCustomValidity: (K) => ke(E.setCustomValidity) && E.setCustomValidity(K),
|
|
1881
|
+
reportValidity: () => ke(E.reportValidity) && E.reportValidity()
|
|
1878
1882
|
});
|
|
1879
1883
|
}, [n._fields, i]), p = X.useMemo(() => G(T({
|
|
1880
1884
|
name: i,
|
|
@@ -1885,18 +1889,18 @@ function xM(e) {
|
|
|
1885
1889
|
ref: _
|
|
1886
1890
|
}), [i, r, c.disabled, z, m, _, O]);
|
|
1887
1891
|
return X.useEffect(() => {
|
|
1888
|
-
const
|
|
1892
|
+
const E = n._options.shouldUnregister || o, C = N.current;
|
|
1889
1893
|
C && C !== i && !I && n.unregister(C), n.register(i, T(T({}, a.current.rules), Re(a.current.disabled) ? { disabled: a.current.disabled } : {}));
|
|
1890
1894
|
const K = (le, P) => {
|
|
1891
1895
|
const se = v(n._fields, le);
|
|
1892
1896
|
se && se._f && (se._f.mount = P);
|
|
1893
1897
|
};
|
|
1894
|
-
if (K(i, !0),
|
|
1895
|
-
const le =
|
|
1898
|
+
if (K(i, !0), E) {
|
|
1899
|
+
const le = Ee(v(n._options.defaultValues, i, a.current.defaultValue));
|
|
1896
1900
|
De(n._defaultValues, i, le), ye(v(n._formValues, i)) && De(n._formValues, i, le);
|
|
1897
1901
|
}
|
|
1898
1902
|
return !I && n.register(i), N.current = i, () => {
|
|
1899
|
-
(I ?
|
|
1903
|
+
(I ? E && !n._state.action : E) ? n.unregister(i) : K(i, !1);
|
|
1900
1904
|
};
|
|
1901
1905
|
}, [i, n, I, o]), X.useEffect(() => {
|
|
1902
1906
|
n._setDisabledField({
|
|
@@ -1909,13 +1913,13 @@ function xM(e) {
|
|
|
1909
1913
|
fieldState: y
|
|
1910
1914
|
}), [p, c, y]);
|
|
1911
1915
|
}
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
var
|
|
1916
|
+
const No = (e) => e.render(mM(e)), wM = X.createContext(null);
|
|
1917
|
+
wM.displayName = "HookFormContext";
|
|
1918
|
+
var pM = (e, t, i, r, n) => t ? G(T({}, i[e]), {
|
|
1915
1919
|
types: G(T({}, i[e] && i[e].types ? i[e].types : {}), {
|
|
1916
1920
|
[r]: n || !0
|
|
1917
1921
|
})
|
|
1918
|
-
}) : {}, Fi = (e) => Array.isArray(e) ? e : [e],
|
|
1922
|
+
}) : {}, Fi = (e) => Array.isArray(e) ? e : [e], sn = () => {
|
|
1919
1923
|
let e = [];
|
|
1920
1924
|
return {
|
|
1921
1925
|
get observers() {
|
|
@@ -1935,63 +1939,63 @@ var EM = (e, t, i, r, n) => t ? G(T({}, i[e]), {
|
|
|
1935
1939
|
}
|
|
1936
1940
|
};
|
|
1937
1941
|
};
|
|
1938
|
-
function
|
|
1942
|
+
function Do(e, t) {
|
|
1939
1943
|
const i = {};
|
|
1940
1944
|
for (const r in e)
|
|
1941
1945
|
if (e.hasOwnProperty(r)) {
|
|
1942
1946
|
const n = e[r], o = t[r];
|
|
1943
|
-
if (n &&
|
|
1944
|
-
const s =
|
|
1945
|
-
|
|
1947
|
+
if (n && he(n) && o) {
|
|
1948
|
+
const s = Do(n, o);
|
|
1949
|
+
he(s) && (i[r] = s);
|
|
1946
1950
|
} else e[r] && (i[r] = o);
|
|
1947
1951
|
}
|
|
1948
1952
|
return i;
|
|
1949
1953
|
}
|
|
1950
|
-
var Le = (e) =>
|
|
1951
|
-
if (!
|
|
1954
|
+
var Le = (e) => he(e) && !Object.keys(e).length, or = (e) => e.type === "file", gt = (e) => {
|
|
1955
|
+
if (!er)
|
|
1952
1956
|
return !1;
|
|
1953
1957
|
const t = e ? e.ownerDocument : 0;
|
|
1954
1958
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
1955
|
-
},
|
|
1956
|
-
function
|
|
1959
|
+
}, Io = (e) => e.type === "select-multiple", sr = (e) => e.type === "radio", _M = (e) => sr(e) || Ki(e), zt = (e) => gt(e) && e.isConnected;
|
|
1960
|
+
function bM(e, t) {
|
|
1957
1961
|
const i = t.slice(0, -1).length;
|
|
1958
1962
|
let r = 0;
|
|
1959
1963
|
for (; r < i; )
|
|
1960
1964
|
e = ye(e) ? r++ : e[t[r++]];
|
|
1961
1965
|
return e;
|
|
1962
1966
|
}
|
|
1963
|
-
function
|
|
1967
|
+
function SM(e) {
|
|
1964
1968
|
for (const t in e)
|
|
1965
1969
|
if (e.hasOwnProperty(t) && !ye(e[t]))
|
|
1966
1970
|
return !1;
|
|
1967
1971
|
return !0;
|
|
1968
1972
|
}
|
|
1969
|
-
function
|
|
1970
|
-
const i = Array.isArray(t) ? t : yt(t) ? [t] :
|
|
1971
|
-
return r && delete r[o], n !== 0 && (
|
|
1973
|
+
function xe(e, t) {
|
|
1974
|
+
const i = Array.isArray(t) ? t : yt(t) ? [t] : tr(t), r = i.length === 1 ? e : bM(e, i), n = i.length - 1, o = i[n];
|
|
1975
|
+
return r && delete r[o], n !== 0 && (he(r) && Le(r) || Array.isArray(r) && SM(r)) && xe(e, i.slice(0, -1)), e;
|
|
1972
1976
|
}
|
|
1973
|
-
var
|
|
1977
|
+
var CM = (e) => {
|
|
1974
1978
|
for (const t in e)
|
|
1975
1979
|
if (ke(e[t]))
|
|
1976
1980
|
return !0;
|
|
1977
1981
|
return !1;
|
|
1978
1982
|
};
|
|
1979
|
-
function
|
|
1980
|
-
return Array.isArray(e) ||
|
|
1983
|
+
function jo(e) {
|
|
1984
|
+
return Array.isArray(e) || he(e) && !CM(e);
|
|
1981
1985
|
}
|
|
1982
|
-
function
|
|
1986
|
+
function Lt(e, t = {}) {
|
|
1983
1987
|
for (const i in e) {
|
|
1984
1988
|
const r = e[i];
|
|
1985
|
-
|
|
1989
|
+
jo(r) ? (t[i] = Array.isArray(r) ? [] : {}, Lt(r, t[i])) : ye(r) || (t[i] = !0);
|
|
1986
1990
|
}
|
|
1987
1991
|
return t;
|
|
1988
1992
|
}
|
|
1989
1993
|
function pi(e, t, i) {
|
|
1990
|
-
i || (i =
|
|
1994
|
+
i || (i = Lt(t));
|
|
1991
1995
|
for (const r in e) {
|
|
1992
1996
|
const n = e[r];
|
|
1993
|
-
if (
|
|
1994
|
-
ye(t) ||
|
|
1997
|
+
if (jo(n))
|
|
1998
|
+
ye(t) || vt(i[r]) ? i[r] = Lt(n, Array.isArray(n) ? [] : {}) : pi(n, Qe(t) ? {} : t[r], i[r]);
|
|
1995
1999
|
else {
|
|
1996
2000
|
const o = t[r];
|
|
1997
2001
|
i[r] = !He(n, o);
|
|
@@ -1999,11 +2003,11 @@ function pi(e, t, i) {
|
|
|
1999
2003
|
}
|
|
2000
2004
|
return i;
|
|
2001
2005
|
}
|
|
2002
|
-
const
|
|
2006
|
+
const Mn = {
|
|
2003
2007
|
value: !1,
|
|
2004
2008
|
isValid: !1
|
|
2005
|
-
},
|
|
2006
|
-
var
|
|
2009
|
+
}, an = { value: !0, isValid: !0 };
|
|
2010
|
+
var yo = (e) => {
|
|
2007
2011
|
if (Array.isArray(e)) {
|
|
2008
2012
|
if (e.length > 1) {
|
|
2009
2013
|
const t = e.filter((i) => i && i.checked && !i.disabled).map((i) => i.value);
|
|
@@ -2011,24 +2015,24 @@ var jo = (e) => {
|
|
|
2011
2015
|
}
|
|
2012
2016
|
return e[0].checked && !e[0].disabled ? (
|
|
2013
2017
|
// @ts-expect-error expected to work in the browser
|
|
2014
|
-
e[0].attributes && !ye(e[0].attributes.value) ? ye(e[0].value) || e[0].value === "" ?
|
|
2015
|
-
) :
|
|
2018
|
+
e[0].attributes && !ye(e[0].attributes.value) ? ye(e[0].value) || e[0].value === "" ? an : { value: e[0].value, isValid: !0 } : an
|
|
2019
|
+
) : Mn;
|
|
2016
2020
|
}
|
|
2017
|
-
return
|
|
2018
|
-
},
|
|
2019
|
-
const
|
|
2021
|
+
return Mn;
|
|
2022
|
+
}, fo = (e, { valueAsNumber: t, valueAsDate: i, setValueAs: r }) => ye(e) ? e : t ? e === "" ? NaN : e && +e : i && Pe(e) ? new Date(e) : r ? r(e) : e;
|
|
2023
|
+
const un = {
|
|
2020
2024
|
isValid: !1,
|
|
2021
2025
|
value: null
|
|
2022
2026
|
};
|
|
2023
|
-
var
|
|
2027
|
+
var Ao = (e) => Array.isArray(e) ? e.reduce((t, i) => i && i.checked && !i.disabled ? {
|
|
2024
2028
|
isValid: !0,
|
|
2025
2029
|
value: i.value
|
|
2026
|
-
} : t,
|
|
2027
|
-
function
|
|
2030
|
+
} : t, un) : un;
|
|
2031
|
+
function ln(e) {
|
|
2028
2032
|
const t = e.ref;
|
|
2029
|
-
return
|
|
2033
|
+
return or(t) ? t.files : sr(t) ? Ao(e.refs).value : Io(t) ? [...t.selectedOptions].map(({ value: i }) => i) : Ki(t) ? yo(e.refs).value : fo(ye(t.value) ? e.ref.value : t.value, e);
|
|
2030
2034
|
}
|
|
2031
|
-
var
|
|
2035
|
+
var vM = (e, t, i, r) => {
|
|
2032
2036
|
const n = {};
|
|
2033
2037
|
for (const o of e) {
|
|
2034
2038
|
const s = v(t, o);
|
|
@@ -2040,15 +2044,15 @@ var bM = (e, t, i, r) => {
|
|
|
2040
2044
|
fields: n,
|
|
2041
2045
|
shouldUseNativeValidation: r
|
|
2042
2046
|
};
|
|
2043
|
-
}, dt = (e) => e instanceof RegExp, Ui = (e) => ye(e) ? e : dt(e) ? e.source :
|
|
2047
|
+
}, dt = (e) => e instanceof RegExp, Ui = (e) => ye(e) ? e : dt(e) ? e.source : he(e) ? dt(e.value) ? e.value.source : e.value : e, cn = (e) => ({
|
|
2044
2048
|
isOnSubmit: !e || e === Ze.onSubmit,
|
|
2045
2049
|
isOnBlur: e === Ze.onBlur,
|
|
2046
2050
|
isOnChange: e === Ze.onChange,
|
|
2047
2051
|
isOnAll: e === Ze.all,
|
|
2048
2052
|
isOnTouch: e === Ze.onTouched
|
|
2049
2053
|
});
|
|
2050
|
-
const
|
|
2051
|
-
var
|
|
2054
|
+
const gn = "AsyncFunction";
|
|
2055
|
+
var LM = (e) => !!e && !!e.validate && !!(ke(e.validate) && e.validate.constructor.name === gn || he(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === gn)), kM = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), dn = (e, t, i) => !i && (t.watchAll || t.watch.has(e) || [...t.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
2052
2056
|
const Bi = (e, t, i, r) => {
|
|
2053
2057
|
for (const o of i || Object.keys(e)) {
|
|
2054
2058
|
const s = v(e, o);
|
|
@@ -2061,12 +2065,12 @@ const Bi = (e, t, i, r) => {
|
|
|
2061
2065
|
return !0;
|
|
2062
2066
|
if (Bi(I, t))
|
|
2063
2067
|
break;
|
|
2064
|
-
} else if (
|
|
2068
|
+
} else if (he(I) && Bi(I, t))
|
|
2065
2069
|
break;
|
|
2066
2070
|
}
|
|
2067
2071
|
}
|
|
2068
2072
|
};
|
|
2069
|
-
function
|
|
2073
|
+
function Nn(e, t, i) {
|
|
2070
2074
|
const r = v(e, i);
|
|
2071
2075
|
if (r || yt(i))
|
|
2072
2076
|
return {
|
|
@@ -2094,15 +2098,15 @@ function dn(e, t, i) {
|
|
|
2094
2098
|
name: i
|
|
2095
2099
|
};
|
|
2096
2100
|
}
|
|
2097
|
-
var
|
|
2101
|
+
var UM = (e, t, i, r) => {
|
|
2098
2102
|
i(e);
|
|
2099
2103
|
const s = e, { name: n } = s, o = Di(s, ["name"]);
|
|
2100
2104
|
return Le(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((M) => t[M] === (!r || Ze.all));
|
|
2101
|
-
},
|
|
2105
|
+
}, QM = (e, t, i) => !e || !t || e === t || Fi(e).some((r) => r && (i ? r === t : r.startsWith(t) || t.startsWith(r))), YM = (e, t, i, r, n) => n.isOnAll ? !1 : !i && n.isOnTouch ? !(t || e) : (i ? r.isOnBlur : n.isOnBlur) ? !e : (i ? r.isOnChange : n.isOnChange) ? e : !0, RM = (e, t) => !ir(v(e, t)).length && xe(e, t), PM = (e, t, i) => {
|
|
2102
2106
|
const r = Fi(v(e, i));
|
|
2103
2107
|
return De(r, "root", t[i]), De(e, i, r), e;
|
|
2104
2108
|
};
|
|
2105
|
-
function
|
|
2109
|
+
function Dn(e, t, i = "validate") {
|
|
2106
2110
|
if (Pe(e) || Array.isArray(e) && e.every(Pe) || Re(e) && !e)
|
|
2107
2111
|
return {
|
|
2108
2112
|
type: i,
|
|
@@ -2110,16 +2114,16 @@ function Nn(e, t, i = "validate") {
|
|
|
2110
2114
|
ref: t
|
|
2111
2115
|
};
|
|
2112
2116
|
}
|
|
2113
|
-
var wi = (e) =>
|
|
2117
|
+
var wi = (e) => he(e) && !dt(e) ? e : {
|
|
2114
2118
|
value: e,
|
|
2115
2119
|
message: ""
|
|
2116
|
-
},
|
|
2120
|
+
}, In = (e, t, i, r, n, o) => Ie(null, null, function* () {
|
|
2117
2121
|
const { ref: s, refs: M, required: I, maxLength: j, minLength: O, min: c, max: a, pattern: N, validate: D, name: y, valueAsNumber: z, mount: m } = e._f, _ = v(i, y);
|
|
2118
2122
|
if (!m || t.has(y))
|
|
2119
2123
|
return {};
|
|
2120
|
-
const p = M ? M[0] : s,
|
|
2124
|
+
const p = M ? M[0] : s, E = (L) => {
|
|
2121
2125
|
n && p.reportValidity && (p.setCustomValidity(Re(L) ? "" : L || ""), p.reportValidity());
|
|
2122
|
-
}, C = {}, K =
|
|
2126
|
+
}, C = {}, K = sr(s), le = Ki(s), P = K || le, se = (z || or(s)) && ye(s.value) && ye(_) || gt(s) && s.value === "" || _ === "" || Array.isArray(_) && !_.length, U = pM.bind(null, y, r, C), ee = (L, J, Me, Ne = ti.maxLength, fe = ti.minLength) => {
|
|
2123
2127
|
const je = L ? J : Me;
|
|
2124
2128
|
C[y] = T({
|
|
2125
2129
|
type: L ? Ne : fe,
|
|
@@ -2127,14 +2131,14 @@ var wi = (e) => Ee(e) && !dt(e) ? e : {
|
|
|
2127
2131
|
ref: s
|
|
2128
2132
|
}, U(L ? Ne : fe, je));
|
|
2129
2133
|
};
|
|
2130
|
-
if (o ? !Array.isArray(_) || !_.length : I && (!P && (se || Qe(_)) || Re(_) && !_ || le && !
|
|
2134
|
+
if (o ? !Array.isArray(_) || !_.length : I && (!P && (se || Qe(_)) || Re(_) && !_ || le && !yo(M).isValid || K && !Ao(M).isValid)) {
|
|
2131
2135
|
const { value: L, message: J } = Pe(I) ? { value: !!I, message: I } : wi(I);
|
|
2132
2136
|
if (L && (C[y] = T({
|
|
2133
2137
|
type: ti.required,
|
|
2134
2138
|
message: J,
|
|
2135
2139
|
ref: p
|
|
2136
2140
|
}, U(ti.required, J)), !r))
|
|
2137
|
-
return
|
|
2141
|
+
return E(J), C;
|
|
2138
2142
|
}
|
|
2139
2143
|
if (!se && (!Qe(c) || !Qe(a))) {
|
|
2140
2144
|
let L, J;
|
|
@@ -2147,12 +2151,12 @@ var wi = (e) => Ee(e) && !dt(e) ? e : {
|
|
|
2147
2151
|
Pe(Me.value) && _ && (L = Ye ? je(_) > je(Me.value) : ce ? _ > Me.value : fe > new Date(Me.value)), Pe(Ne.value) && _ && (J = Ye ? je(_) < je(Ne.value) : ce ? _ < Ne.value : fe < new Date(Ne.value));
|
|
2148
2152
|
}
|
|
2149
2153
|
if ((L || J) && (ee(!!L, Me.message, Ne.message, ti.max, ti.min), !r))
|
|
2150
|
-
return
|
|
2154
|
+
return E(C[y].message), C;
|
|
2151
2155
|
}
|
|
2152
2156
|
if ((j || O) && !se && (Pe(_) || o && Array.isArray(_))) {
|
|
2153
2157
|
const L = wi(j), J = wi(O), Me = !Qe(L.value) && _.length > +L.value, Ne = !Qe(J.value) && _.length < +J.value;
|
|
2154
2158
|
if ((Me || Ne) && (ee(Me, L.message, J.message), !r))
|
|
2155
|
-
return
|
|
2159
|
+
return E(C[y].message), C;
|
|
2156
2160
|
}
|
|
2157
2161
|
if (N && !se && Pe(_)) {
|
|
2158
2162
|
const { value: L, message: J } = wi(N);
|
|
@@ -2161,20 +2165,20 @@ var wi = (e) => Ee(e) && !dt(e) ? e : {
|
|
|
2161
2165
|
message: J,
|
|
2162
2166
|
ref: s
|
|
2163
2167
|
}, U(ti.pattern, J)), !r))
|
|
2164
|
-
return
|
|
2168
|
+
return E(J), C;
|
|
2165
2169
|
}
|
|
2166
2170
|
if (D) {
|
|
2167
2171
|
if (ke(D)) {
|
|
2168
|
-
const L = yield D(_, i), J =
|
|
2172
|
+
const L = yield D(_, i), J = Dn(L, p);
|
|
2169
2173
|
if (J && (C[y] = T(T({}, J), U(ti.validate, J.message)), !r))
|
|
2170
|
-
return
|
|
2171
|
-
} else if (
|
|
2174
|
+
return E(J.message), C;
|
|
2175
|
+
} else if (he(D)) {
|
|
2172
2176
|
let L = {};
|
|
2173
2177
|
for (const J in D) {
|
|
2174
2178
|
if (!Le(L) && !r)
|
|
2175
2179
|
break;
|
|
2176
|
-
const Me =
|
|
2177
|
-
Me && (L = T(T({}, Me), U(J, Me.message)),
|
|
2180
|
+
const Me = Dn(yield D[J](_, i), p, J);
|
|
2181
|
+
Me && (L = T(T({}, Me), U(J, Me.message)), E(Me.message), r && (C[y] = L));
|
|
2178
2182
|
}
|
|
2179
2183
|
if (!Le(L) && (C[y] = T({
|
|
2180
2184
|
ref: p
|
|
@@ -2182,15 +2186,15 @@ var wi = (e) => Ee(e) && !dt(e) ? e : {
|
|
|
2182
2186
|
return C;
|
|
2183
2187
|
}
|
|
2184
2188
|
}
|
|
2185
|
-
return
|
|
2189
|
+
return E(!0), C;
|
|
2186
2190
|
});
|
|
2187
|
-
const
|
|
2191
|
+
const VM = {
|
|
2188
2192
|
mode: Ze.onSubmit,
|
|
2189
2193
|
reValidateMode: Ze.onChange,
|
|
2190
2194
|
shouldFocusError: !0
|
|
2191
2195
|
};
|
|
2192
|
-
function
|
|
2193
|
-
let t = T(T({},
|
|
2196
|
+
function FM(e = {}) {
|
|
2197
|
+
let t = T(T({}, VM), e), i = {
|
|
2194
2198
|
submitCount: 0,
|
|
2195
2199
|
isDirty: !1,
|
|
2196
2200
|
isReady: !1,
|
|
@@ -2205,7 +2209,7 @@ function RM(e = {}) {
|
|
|
2205
2209
|
validatingFields: {},
|
|
2206
2210
|
errors: t.errors || {},
|
|
2207
2211
|
disabled: t.disabled || !1
|
|
2208
|
-
}, r = {}, n =
|
|
2212
|
+
}, r = {}, n = he(t.defaultValues) || he(t.values) ? Ee(t.defaultValues || t.values) || {} : {}, o = t.shouldUnregister ? {} : Ee(n), s = {
|
|
2209
2213
|
action: !1,
|
|
2210
2214
|
mount: !1,
|
|
2211
2215
|
watch: !1,
|
|
@@ -2228,8 +2232,8 @@ function RM(e = {}) {
|
|
|
2228
2232
|
}, c = T({}, O);
|
|
2229
2233
|
let a = T({}, c);
|
|
2230
2234
|
const N = {
|
|
2231
|
-
array:
|
|
2232
|
-
state:
|
|
2235
|
+
array: sn(),
|
|
2236
|
+
state: sn()
|
|
2233
2237
|
}, D = t.criteriaMode === Ze.all, y = (g) => (A) => {
|
|
2234
2238
|
clearTimeout(j), j = setTimeout(g, A);
|
|
2235
2239
|
}, z = (g) => Ie(null, null, function* () {
|
|
@@ -2240,24 +2244,24 @@ function RM(e = {}) {
|
|
|
2240
2244
|
});
|
|
2241
2245
|
}
|
|
2242
2246
|
}), m = (g, A) => {
|
|
2243
|
-
!t.disabled && (c.isValidating || c.validatingFields || a.isValidating || a.validatingFields) && ((g || Array.from(M.mount)).forEach((
|
|
2244
|
-
|
|
2247
|
+
!t.disabled && (c.isValidating || c.validatingFields || a.isValidating || a.validatingFields) && ((g || Array.from(M.mount)).forEach((x) => {
|
|
2248
|
+
x && (A ? De(i.validatingFields, x, A) : xe(i.validatingFields, x));
|
|
2245
2249
|
}), N.state.next({
|
|
2246
2250
|
validatingFields: i.validatingFields,
|
|
2247
2251
|
isValidating: !Le(i.validatingFields)
|
|
2248
2252
|
}));
|
|
2249
|
-
}, _ = (g, A = [],
|
|
2250
|
-
if (k &&
|
|
2253
|
+
}, _ = (g, A = [], x, k, S = !0, b = !0) => {
|
|
2254
|
+
if (k && x && !t.disabled) {
|
|
2251
2255
|
if (s.action = !0, b && Array.isArray(v(r, g))) {
|
|
2252
|
-
const R =
|
|
2256
|
+
const R = x(v(r, g), k.argA, k.argB);
|
|
2253
2257
|
S && De(r, g, R);
|
|
2254
2258
|
}
|
|
2255
2259
|
if (b && Array.isArray(v(i.errors, g))) {
|
|
2256
|
-
const R =
|
|
2257
|
-
S && De(i.errors, g, R),
|
|
2260
|
+
const R = x(v(i.errors, g), k.argA, k.argB);
|
|
2261
|
+
S && De(i.errors, g, R), RM(i.errors, g);
|
|
2258
2262
|
}
|
|
2259
2263
|
if ((c.touchedFields || a.touchedFields) && b && Array.isArray(v(i.touchedFields, g))) {
|
|
2260
|
-
const R =
|
|
2264
|
+
const R = x(v(i.touchedFields, g), k.argA, k.argB);
|
|
2261
2265
|
S && De(i.touchedFields, g, R);
|
|
2262
2266
|
}
|
|
2263
2267
|
(c.dirtyFields || a.dirtyFields) && (i.dirtyFields = pi(n, o)), N.state.next({
|
|
@@ -2273,38 +2277,38 @@ function RM(e = {}) {
|
|
|
2273
2277
|
De(i.errors, g, A), N.state.next({
|
|
2274
2278
|
errors: i.errors
|
|
2275
2279
|
});
|
|
2276
|
-
},
|
|
2280
|
+
}, E = (g) => {
|
|
2277
2281
|
i.errors = g, N.state.next({
|
|
2278
2282
|
errors: i.errors,
|
|
2279
2283
|
isValid: !1
|
|
2280
2284
|
});
|
|
2281
|
-
}, C = (g, A,
|
|
2285
|
+
}, C = (g, A, x, k) => {
|
|
2282
2286
|
const S = v(r, g);
|
|
2283
2287
|
if (S) {
|
|
2284
|
-
const b = v(o, g, ye(
|
|
2285
|
-
ye(b) || k && k.defaultChecked || A ? De(o, g, A ? b :
|
|
2288
|
+
const b = v(o, g, ye(x) ? v(n, g) : x);
|
|
2289
|
+
ye(b) || k && k.defaultChecked || A ? De(o, g, A ? b : ln(S._f)) : Ne(g, b), s.mount && !s.action && z();
|
|
2286
2290
|
}
|
|
2287
|
-
}, K = (g, A,
|
|
2291
|
+
}, K = (g, A, x, k, S) => {
|
|
2288
2292
|
let b = !1, R = !1;
|
|
2289
2293
|
const B = {
|
|
2290
2294
|
name: g
|
|
2291
2295
|
};
|
|
2292
2296
|
if (!t.disabled) {
|
|
2293
|
-
if (!
|
|
2297
|
+
if (!x || k) {
|
|
2294
2298
|
(c.isDirty || a.isDirty) && (R = i.isDirty, i.isDirty = B.isDirty = L(), b = R !== B.isDirty);
|
|
2295
2299
|
const W = He(v(n, g), A);
|
|
2296
|
-
R = !!v(i.dirtyFields, g), W ?
|
|
2300
|
+
R = !!v(i.dirtyFields, g), W ? xe(i.dirtyFields, g) : De(i.dirtyFields, g, !0), B.dirtyFields = i.dirtyFields, b = b || (c.dirtyFields || a.dirtyFields) && R !== !W;
|
|
2297
2301
|
}
|
|
2298
|
-
if (
|
|
2302
|
+
if (x) {
|
|
2299
2303
|
const W = v(i.touchedFields, g);
|
|
2300
|
-
W || (De(i.touchedFields, g,
|
|
2304
|
+
W || (De(i.touchedFields, g, x), B.touchedFields = i.touchedFields, b = b || (c.touchedFields || a.touchedFields) && W !== x);
|
|
2301
2305
|
}
|
|
2302
2306
|
b && S && N.state.next(B);
|
|
2303
2307
|
}
|
|
2304
2308
|
return b ? B : {};
|
|
2305
|
-
}, le = (g, A,
|
|
2309
|
+
}, le = (g, A, x, k) => {
|
|
2306
2310
|
const S = v(i.errors, g), b = (c.isValid || a.isValid) && Re(A) && i.isValid !== A;
|
|
2307
|
-
if (t.delayError &&
|
|
2311
|
+
if (t.delayError && x ? (I = y(() => p(g, x)), I(t.delayError)) : (clearTimeout(j), I = null, x ? De(i.errors, g, x) : xe(i.errors, g)), (x ? !He(S, x) : S) || !Le(k) || b) {
|
|
2308
2312
|
const R = G(T(T({}, k), b && Re(A) ? { isValid: A } : {}), {
|
|
2309
2313
|
errors: i.errors,
|
|
2310
2314
|
name: g
|
|
@@ -2312,18 +2316,18 @@ function RM(e = {}) {
|
|
|
2312
2316
|
i = T(T({}, i), R), N.state.next(R);
|
|
2313
2317
|
}
|
|
2314
2318
|
}, P = (g) => Ie(null, null, function* () {
|
|
2315
|
-
return m(g, !0), yield t.resolver(o, t.context,
|
|
2319
|
+
return m(g, !0), yield t.resolver(o, t.context, vM(g || M.mount, r, t.criteriaMode, t.shouldUseNativeValidation));
|
|
2316
2320
|
}), se = (g) => Ie(null, null, function* () {
|
|
2317
2321
|
const { errors: A } = yield P(g);
|
|
2318
2322
|
if (m(g), g)
|
|
2319
|
-
for (const
|
|
2320
|
-
const k = v(A,
|
|
2321
|
-
k ? De(i.errors,
|
|
2323
|
+
for (const x of g) {
|
|
2324
|
+
const k = v(A, x);
|
|
2325
|
+
k ? De(i.errors, x, k) : xe(i.errors, x);
|
|
2322
2326
|
}
|
|
2323
2327
|
else
|
|
2324
2328
|
i.errors = A;
|
|
2325
2329
|
return A;
|
|
2326
|
-
}), U = (k, S, ...b) => Ie(null, [k, S, ...b], function* (g, A,
|
|
2330
|
+
}), U = (k, S, ...b) => Ie(null, [k, S, ...b], function* (g, A, x = {
|
|
2327
2331
|
valid: !0
|
|
2328
2332
|
}) {
|
|
2329
2333
|
for (const B in g) {
|
|
@@ -2331,91 +2335,91 @@ function RM(e = {}) {
|
|
|
2331
2335
|
if (W) {
|
|
2332
2336
|
const R = W, { _f: ae } = R, Z = Di(R, ["_f"]);
|
|
2333
2337
|
if (ae) {
|
|
2334
|
-
const $ = M.array.has(ae.name), V = W._f &&
|
|
2338
|
+
const $ = M.array.has(ae.name), V = W._f && LM(W._f);
|
|
2335
2339
|
V && c.validatingFields && m([ae.name], !0);
|
|
2336
|
-
const te = yield
|
|
2337
|
-
if (V && c.validatingFields && m([ae.name]), te[ae.name] && (
|
|
2340
|
+
const te = yield In(W, M.disabled, o, D, t.shouldUseNativeValidation && !A, $);
|
|
2341
|
+
if (V && c.validatingFields && m([ae.name]), te[ae.name] && (x.valid = !1, A || e.shouldUseNativeValidation))
|
|
2338
2342
|
break;
|
|
2339
|
-
!A && (v(te, ae.name) ? $ ?
|
|
2343
|
+
!A && (v(te, ae.name) ? $ ? PM(i.errors, te, ae.name) : De(i.errors, ae.name, te[ae.name]) : xe(i.errors, ae.name));
|
|
2340
2344
|
}
|
|
2341
|
-
!Le(Z) && (yield U(Z, A,
|
|
2345
|
+
!Le(Z) && (yield U(Z, A, x));
|
|
2342
2346
|
}
|
|
2343
2347
|
}
|
|
2344
|
-
return
|
|
2348
|
+
return x.valid;
|
|
2345
2349
|
}), ee = () => {
|
|
2346
2350
|
for (const g of M.unMount) {
|
|
2347
2351
|
const A = v(r, g);
|
|
2348
|
-
A && (A._f.refs ? A._f.refs.every((
|
|
2352
|
+
A && (A._f.refs ? A._f.refs.every((x) => !zt(x)) : !zt(A._f.ref)) && Fe(g);
|
|
2349
2353
|
}
|
|
2350
2354
|
M.unMount = /* @__PURE__ */ new Set();
|
|
2351
|
-
}, L = (g, A) => !t.disabled && (g && A && De(o, g, A), !He(ge(), n)), J = (g, A,
|
|
2355
|
+
}, L = (g, A) => !t.disabled && (g && A && De(o, g, A), !He(ge(), n)), J = (g, A, x) => Ct(g, M, T({}, s.mount ? o : ye(A) ? n : Pe(g) ? { [g]: A } : A), x, A), Me = (g) => ir(v(s.mount ? o : n, g, t.shouldUnregister ? v(n, g, []) : [])), Ne = (g, A, x = {}) => {
|
|
2352
2356
|
const k = v(r, g);
|
|
2353
2357
|
let S = A;
|
|
2354
2358
|
if (k) {
|
|
2355
2359
|
const b = k._f;
|
|
2356
|
-
b && (!b.disabled && De(o, g,
|
|
2360
|
+
b && (!b.disabled && De(o, g, fo(A, b)), S = gt(b.ref) && Qe(A) ? "" : A, Io(b.ref) ? [...b.ref.options].forEach((R) => R.selected = S.includes(R.value)) : b.refs ? Ki(b.ref) ? b.refs.forEach((R) => {
|
|
2357
2361
|
(!R.defaultChecked || !R.disabled) && (Array.isArray(S) ? R.checked = !!S.find((B) => B === R.value) : R.checked = S === R.value || !!S);
|
|
2358
|
-
}) : b.refs.forEach((R) => R.checked = R.value === S) :
|
|
2362
|
+
}) : b.refs.forEach((R) => R.checked = R.value === S) : or(b.ref) ? b.ref.value = "" : (b.ref.value = S, b.ref.type || N.state.next({
|
|
2359
2363
|
name: g,
|
|
2360
|
-
values:
|
|
2364
|
+
values: Ee(o)
|
|
2361
2365
|
})));
|
|
2362
2366
|
}
|
|
2363
|
-
(
|
|
2364
|
-
}, fe = (g, A,
|
|
2367
|
+
(x.shouldDirty || x.shouldTouch) && K(g, S, x.shouldTouch, x.shouldDirty, !0), x.shouldValidate && H(g);
|
|
2368
|
+
}, fe = (g, A, x) => {
|
|
2365
2369
|
for (const k in A) {
|
|
2366
2370
|
if (!A.hasOwnProperty(k))
|
|
2367
2371
|
return;
|
|
2368
2372
|
const S = A[k], b = g + "." + k, R = v(r, b);
|
|
2369
|
-
(M.array.has(g) ||
|
|
2373
|
+
(M.array.has(g) || he(S) || R && !R._f) && !fi(S) ? fe(b, S, x) : Ne(b, S, x);
|
|
2370
2374
|
}
|
|
2371
|
-
}, je = (g, A,
|
|
2372
|
-
const k = v(r, g), S = M.array.has(g), b =
|
|
2375
|
+
}, je = (g, A, x = {}) => {
|
|
2376
|
+
const k = v(r, g), S = M.array.has(g), b = Ee(A);
|
|
2373
2377
|
De(o, g, b), S ? (N.array.next({
|
|
2374
2378
|
name: g,
|
|
2375
|
-
values:
|
|
2376
|
-
}), (c.isDirty || c.dirtyFields || a.isDirty || a.dirtyFields) &&
|
|
2379
|
+
values: Ee(o)
|
|
2380
|
+
}), (c.isDirty || c.dirtyFields || a.isDirty || a.dirtyFields) && x.shouldDirty && N.state.next({
|
|
2377
2381
|
name: g,
|
|
2378
2382
|
dirtyFields: pi(n, o),
|
|
2379
2383
|
isDirty: L(g, b)
|
|
2380
|
-
})) : k && !k._f && !Qe(b) ? fe(g, b,
|
|
2384
|
+
})) : k && !k._f && !Qe(b) ? fe(g, b, x) : Ne(g, b, x), dn(g, M) ? N.state.next(G(T({}, i), {
|
|
2381
2385
|
name: g,
|
|
2382
|
-
values:
|
|
2386
|
+
values: Ee(o)
|
|
2383
2387
|
})) : N.state.next({
|
|
2384
2388
|
name: s.mount ? g : void 0,
|
|
2385
|
-
values:
|
|
2389
|
+
values: Ee(o)
|
|
2386
2390
|
});
|
|
2387
2391
|
}, Ye = (g) => Ie(null, null, function* () {
|
|
2388
2392
|
s.mount = !0;
|
|
2389
2393
|
const A = g.target;
|
|
2390
|
-
let
|
|
2391
|
-
const S = v(r,
|
|
2392
|
-
k = Number.isNaN(W) || fi(W) && isNaN(W.getTime()) || He(W, v(o,
|
|
2393
|
-
}, R =
|
|
2394
|
+
let x = A.name, k = !0;
|
|
2395
|
+
const S = v(r, x), b = (W) => {
|
|
2396
|
+
k = Number.isNaN(W) || fi(W) && isNaN(W.getTime()) || He(W, v(o, x, W));
|
|
2397
|
+
}, R = cn(t.mode), B = cn(t.reValidateMode);
|
|
2394
2398
|
if (S) {
|
|
2395
2399
|
let W, ae;
|
|
2396
|
-
const Z = A.type ?
|
|
2397
|
-
De(o,
|
|
2398
|
-
const be = K(
|
|
2400
|
+
const Z = A.type ? ln(S._f) : uo(g), $ = g.type === ct.BLUR || g.type === ct.FOCUS_OUT, V = !kM(S._f) && !t.resolver && !v(i.errors, x) && !S._f.deps || YM($, v(i.touchedFields, x), i.isSubmitted, B, R), te = dn(x, M, $);
|
|
2401
|
+
De(o, x, Z), $ ? (!A || !A.readOnly) && (S._f.onBlur && S._f.onBlur(g), I && I(0)) : S._f.onChange && S._f.onChange(g);
|
|
2402
|
+
const be = K(x, Z, $), pe = !Le(be) || te;
|
|
2399
2403
|
if (!$ && N.state.next({
|
|
2400
|
-
name:
|
|
2404
|
+
name: x,
|
|
2401
2405
|
type: g.type,
|
|
2402
|
-
values:
|
|
2406
|
+
values: Ee(o)
|
|
2403
2407
|
}), V)
|
|
2404
|
-
return (c.isValid || a.isValid) && (t.mode === "onBlur" ? $ && z() : $ || z()), pe && N.state.next(T({ name:
|
|
2408
|
+
return (c.isValid || a.isValid) && (t.mode === "onBlur" ? $ && z() : $ || z()), pe && N.state.next(T({ name: x }, te ? {} : be));
|
|
2405
2409
|
if (!$ && te && N.state.next(T({}, i)), t.resolver) {
|
|
2406
|
-
const { errors: oe } = yield P([
|
|
2407
|
-
if (m([
|
|
2408
|
-
const F =
|
|
2409
|
-
W = Se.error,
|
|
2410
|
+
const { errors: oe } = yield P([x]);
|
|
2411
|
+
if (m([x]), b(Z), k) {
|
|
2412
|
+
const F = Nn(i.errors, r, x), Se = Nn(oe, r, F.name || x);
|
|
2413
|
+
W = Se.error, x = Se.name, ae = Le(oe);
|
|
2410
2414
|
}
|
|
2411
2415
|
} else
|
|
2412
|
-
m([
|
|
2413
|
-
k && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && H(S._f.deps), le(
|
|
2416
|
+
m([x], !0), W = (yield In(S, M.disabled, o, D, t.shouldUseNativeValidation))[x], m([x]), b(Z), k && (W ? ae = !1 : (c.isValid || a.isValid) && (ae = yield U(r, !0)));
|
|
2417
|
+
k && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && H(S._f.deps), le(x, ae, W, be));
|
|
2414
2418
|
}
|
|
2415
2419
|
}), ce = (g, A) => {
|
|
2416
2420
|
if (v(i.errors, A) && g.focus)
|
|
2417
2421
|
return g.focus(), 1;
|
|
2418
|
-
}, H = (
|
|
2422
|
+
}, H = (x, ...k) => Ie(null, [x, ...k], function* (g, A = {}) {
|
|
2419
2423
|
let S, b;
|
|
2420
2424
|
const R = Fi(g);
|
|
2421
2425
|
if (t.resolver) {
|
|
@@ -2429,8 +2433,8 @@ function RM(e = {}) {
|
|
|
2429
2433
|
errors: i.errors
|
|
2430
2434
|
})), A.shouldFocus && !b && Bi(r, ce, g ? R : M.mount), b;
|
|
2431
2435
|
}), ge = (g, A) => {
|
|
2432
|
-
let
|
|
2433
|
-
return A && (
|
|
2436
|
+
let x = T({}, s.mount ? o : n);
|
|
2437
|
+
return A && (x = Do(A.dirtyFields ? i.dirtyFields : i.touchedFields, x)), ye(g) ? x : Pe(g) ? v(x, g) : g.map((k) => v(x, k));
|
|
2434
2438
|
}, ze = (g, A) => ({
|
|
2435
2439
|
invalid: !!v((A || i).errors, g),
|
|
2436
2440
|
isDirty: !!v((A || i).dirtyFields, g),
|
|
@@ -2438,10 +2442,10 @@ function RM(e = {}) {
|
|
|
2438
2442
|
isValidating: !!v(i.validatingFields, g),
|
|
2439
2443
|
isTouched: !!v((A || i).touchedFields, g)
|
|
2440
2444
|
}), me = (g) => {
|
|
2441
|
-
g && Fi(g).forEach((A) =>
|
|
2445
|
+
g && Fi(g).forEach((A) => xe(i.errors, A)), N.state.next({
|
|
2442
2446
|
errors: g ? i.errors : {}
|
|
2443
2447
|
});
|
|
2444
|
-
}, ve = (g, A,
|
|
2448
|
+
}, ve = (g, A, x) => {
|
|
2445
2449
|
const k = (v(r, g, { _f: {} })._f || {}).ref, ae = v(i.errors, g) || {}, { ref: b, message: R, type: B } = ae, W = Di(ae, ["ref", "message", "type"]);
|
|
2446
2450
|
De(i.errors, g, G(T(T({}, W), A), {
|
|
2447
2451
|
ref: k
|
|
@@ -2449,12 +2453,12 @@ function RM(e = {}) {
|
|
|
2449
2453
|
name: g,
|
|
2450
2454
|
errors: i.errors,
|
|
2451
2455
|
isValid: !1
|
|
2452
|
-
}),
|
|
2456
|
+
}), x && x.shouldFocus && k && k.focus && k.focus();
|
|
2453
2457
|
}, Y = (g, A) => ke(g) ? N.state.subscribe({
|
|
2454
|
-
next: (
|
|
2458
|
+
next: (x) => "values" in x && g(J(void 0, A), x)
|
|
2455
2459
|
}) : J(g, A, !0), re = (g) => N.state.subscribe({
|
|
2456
2460
|
next: (A) => {
|
|
2457
|
-
|
|
2461
|
+
QM(g.name, A.name, g.exact) && UM(A, g.formState || c, ii, g.reRenderRoot) && g.callback(G(T(T({
|
|
2458
2462
|
values: T({}, o)
|
|
2459
2463
|
}, i), A), {
|
|
2460
2464
|
defaultValues: n
|
|
@@ -2463,10 +2467,10 @@ function RM(e = {}) {
|
|
|
2463
2467
|
}).unsubscribe, qe = (g) => (s.mount = !0, a = T(T({}, a), g.formState), re(G(T({}, g), {
|
|
2464
2468
|
formState: T(T({}, O), g.formState)
|
|
2465
2469
|
}))), Fe = (g, A = {}) => {
|
|
2466
|
-
for (const
|
|
2467
|
-
M.mount.delete(
|
|
2470
|
+
for (const x of g ? Fi(g) : M.mount)
|
|
2471
|
+
M.mount.delete(x), M.array.delete(x), A.keepValue || (xe(r, x), xe(o, x)), !A.keepError && xe(i.errors, x), !A.keepDirty && xe(i.dirtyFields, x), !A.keepTouched && xe(i.touchedFields, x), !A.keepIsValidating && xe(i.validatingFields, x), !t.shouldUnregister && !A.keepDefaultValue && xe(n, x);
|
|
2468
2472
|
N.state.next({
|
|
2469
|
-
values:
|
|
2473
|
+
values: Ee(o)
|
|
2470
2474
|
}), N.state.next(T(T({}, i), A.keepDirty ? { isDirty: L() } : {})), !A.keepIsValid && z();
|
|
2471
2475
|
}, Mi = ({ disabled: g, name: A }) => {
|
|
2472
2476
|
if (Re(g) && s.mount || g || M.disabled.has(A)) {
|
|
@@ -2474,14 +2478,14 @@ function RM(e = {}) {
|
|
|
2474
2478
|
g ? M.disabled.add(A) : M.disabled.delete(A), S && s.mount && !s.action && z();
|
|
2475
2479
|
}
|
|
2476
2480
|
}, Be = (g, A = {}) => {
|
|
2477
|
-
let
|
|
2481
|
+
let x = v(r, g);
|
|
2478
2482
|
const k = Re(A.disabled) || Re(t.disabled);
|
|
2479
|
-
return De(r, g, G(T({},
|
|
2480
|
-
_f: T(G(T({},
|
|
2483
|
+
return De(r, g, G(T({}, x || {}), {
|
|
2484
|
+
_f: T(G(T({}, x && x._f ? x._f : { ref: { name: g } }), {
|
|
2481
2485
|
name: g,
|
|
2482
2486
|
mount: !0
|
|
2483
2487
|
}), A)
|
|
2484
|
-
})), M.mount.add(g),
|
|
2488
|
+
})), M.mount.add(g), x ? Mi({
|
|
2485
2489
|
disabled: Re(A.disabled) ? A.disabled : t.disabled,
|
|
2486
2490
|
name: g
|
|
2487
2491
|
}) : C(g, !0, A.value), G(T(T({}, k ? { disabled: A.disabled || t.disabled } : {}), t.progressive ? {
|
|
@@ -2497,12 +2501,12 @@ function RM(e = {}) {
|
|
|
2497
2501
|
onBlur: Ye,
|
|
2498
2502
|
ref: (S) => {
|
|
2499
2503
|
if (S) {
|
|
2500
|
-
Be(g, A),
|
|
2501
|
-
const b = ye(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, R =
|
|
2502
|
-
if (R ? B.find((W) => W === b) : b ===
|
|
2504
|
+
Be(g, A), x = v(r, g);
|
|
2505
|
+
const b = ye(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, R = _M(b), B = x._f.refs || [];
|
|
2506
|
+
if (R ? B.find((W) => W === b) : b === x._f.ref)
|
|
2503
2507
|
return;
|
|
2504
2508
|
De(r, g, {
|
|
2505
|
-
_f: T(T({},
|
|
2509
|
+
_f: T(T({}, x._f), R ? {
|
|
2506
2510
|
refs: [
|
|
2507
2511
|
...B.filter(zt),
|
|
2508
2512
|
b,
|
|
@@ -2512,41 +2516,41 @@ function RM(e = {}) {
|
|
|
2512
2516
|
} : { ref: b })
|
|
2513
2517
|
}), C(g, !1, void 0, b);
|
|
2514
2518
|
} else
|
|
2515
|
-
|
|
2519
|
+
x = v(r, g, {}), x._f && (x._f.mount = !1), (t.shouldUnregister || A.shouldUnregister) && !(lo(M.array, g) && s.action) && M.unMount.add(g);
|
|
2516
2520
|
}
|
|
2517
2521
|
});
|
|
2518
2522
|
}, ei = () => t.shouldFocusError && Bi(r, ce, M.mount), di = (g) => {
|
|
2519
|
-
Re(g) && (N.state.next({ disabled: g }), Bi(r, (A,
|
|
2520
|
-
const k = v(r,
|
|
2523
|
+
Re(g) && (N.state.next({ disabled: g }), Bi(r, (A, x) => {
|
|
2524
|
+
const k = v(r, x);
|
|
2521
2525
|
k && (A.disabled = k._f.disabled || g, Array.isArray(k._f.refs) && k._f.refs.forEach((S) => {
|
|
2522
2526
|
S.disabled = k._f.disabled || g;
|
|
2523
2527
|
}));
|
|
2524
2528
|
}, 0, !1));
|
|
2525
|
-
}, Ni = (g, A) => (
|
|
2529
|
+
}, Ni = (g, A) => (x) => Ie(null, null, function* () {
|
|
2526
2530
|
let k;
|
|
2527
|
-
|
|
2528
|
-
let S =
|
|
2531
|
+
x && (x.preventDefault && x.preventDefault(), x.persist && x.persist());
|
|
2532
|
+
let S = Ee(o);
|
|
2529
2533
|
if (N.state.next({
|
|
2530
2534
|
isSubmitting: !0
|
|
2531
2535
|
}), t.resolver) {
|
|
2532
2536
|
const { errors: b, values: R } = yield P();
|
|
2533
|
-
m(), i.errors = b, S =
|
|
2537
|
+
m(), i.errors = b, S = Ee(R);
|
|
2534
2538
|
} else
|
|
2535
2539
|
yield U(r);
|
|
2536
2540
|
if (M.disabled.size)
|
|
2537
2541
|
for (const b of M.disabled)
|
|
2538
|
-
|
|
2539
|
-
if (
|
|
2542
|
+
xe(S, b);
|
|
2543
|
+
if (xe(i.errors, "root"), Le(i.errors)) {
|
|
2540
2544
|
N.state.next({
|
|
2541
2545
|
errors: {}
|
|
2542
2546
|
});
|
|
2543
2547
|
try {
|
|
2544
|
-
yield g(S,
|
|
2548
|
+
yield g(S, x);
|
|
2545
2549
|
} catch (b) {
|
|
2546
2550
|
k = b;
|
|
2547
2551
|
}
|
|
2548
2552
|
} else
|
|
2549
|
-
A && (yield A(T({}, i.errors),
|
|
2553
|
+
A && (yield A(T({}, i.errors), x)), ei(), setTimeout(ei);
|
|
2550
2554
|
if (N.state.next({
|
|
2551
2555
|
isSubmitted: !0,
|
|
2552
2556
|
isSubmitting: !1,
|
|
@@ -2556,10 +2560,10 @@ function RM(e = {}) {
|
|
|
2556
2560
|
}), k)
|
|
2557
2561
|
throw k;
|
|
2558
2562
|
}), Oi = (g, A = {}) => {
|
|
2559
|
-
v(r, g) && (ye(A.defaultValue) ? je(g,
|
|
2563
|
+
v(r, g) && (ye(A.defaultValue) ? je(g, Ee(v(n, g))) : (je(g, A.defaultValue), De(n, g, Ee(A.defaultValue))), A.keepTouched || xe(i.touchedFields, g), A.keepDirty || (xe(i.dirtyFields, g), i.isDirty = A.defaultValue ? L(g, Ee(v(n, g))) : L()), A.keepError || (xe(i.errors, g), c.isValid && z()), N.state.next(T({}, i)));
|
|
2560
2564
|
}, ai = (g, A = {}) => {
|
|
2561
|
-
const
|
|
2562
|
-
if (A.keepDefaultValues || (n =
|
|
2565
|
+
const x = g ? Ee(g) : n, k = Ee(x), S = Le(g), b = S ? n : k;
|
|
2566
|
+
if (A.keepDefaultValues || (n = x), !A.keepValues) {
|
|
2563
2567
|
if (A.keepDirtyValues) {
|
|
2564
2568
|
const R = /* @__PURE__ */ new Set([
|
|
2565
2569
|
...M.mount,
|
|
@@ -2570,7 +2574,7 @@ function RM(e = {}) {
|
|
|
2570
2574
|
W && !ye(ae) ? De(b, B, ae) : !W && !ye(Z) && je(B, Z);
|
|
2571
2575
|
}
|
|
2572
2576
|
} else {
|
|
2573
|
-
if (
|
|
2577
|
+
if (er && ye(g))
|
|
2574
2578
|
for (const R of M.mount) {
|
|
2575
2579
|
const B = v(r, R);
|
|
2576
2580
|
if (B && B._f) {
|
|
@@ -2590,7 +2594,7 @@ function RM(e = {}) {
|
|
|
2590
2594
|
else
|
|
2591
2595
|
r = {};
|
|
2592
2596
|
}
|
|
2593
|
-
o = t.shouldUnregister ? A.keepDefaultValues ?
|
|
2597
|
+
o = t.shouldUnregister ? A.keepDefaultValues ? Ee(n) : {} : Ee(b), N.array.next({
|
|
2594
2598
|
values: T({}, b)
|
|
2595
2599
|
}), N.state.next({
|
|
2596
2600
|
values: T({}, b)
|
|
@@ -2615,8 +2619,8 @@ function RM(e = {}) {
|
|
|
2615
2619
|
isSubmitting: !1,
|
|
2616
2620
|
defaultValues: n
|
|
2617
2621
|
});
|
|
2618
|
-
}, ui = (g, A) => ai(ke(g) ? g(o) : g, T(T({}, t.resetOptions), A)),
|
|
2619
|
-
const
|
|
2622
|
+
}, ui = (g, A) => ai(ke(g) ? g(o) : g, T(T({}, t.resetOptions), A)), Ei = (g, A = {}) => {
|
|
2623
|
+
const x = v(r, g), k = x && x._f;
|
|
2620
2624
|
if (k) {
|
|
2621
2625
|
const S = k.refs ? k.refs[0] : k.ref;
|
|
2622
2626
|
S.focus && setTimeout(() => {
|
|
@@ -2641,7 +2645,7 @@ function RM(e = {}) {
|
|
|
2641
2645
|
_setValid: z,
|
|
2642
2646
|
_setFieldArray: _,
|
|
2643
2647
|
_setDisabledField: Mi,
|
|
2644
|
-
_setErrors:
|
|
2648
|
+
_setErrors: E,
|
|
2645
2649
|
_getFieldArray: Me,
|
|
2646
2650
|
_reset: ai,
|
|
2647
2651
|
_resetDefaultValues: () => ke(t.defaultValues) && t.defaultValues().then((g) => {
|
|
@@ -2696,14 +2700,14 @@ function RM(e = {}) {
|
|
|
2696
2700
|
clearErrors: me,
|
|
2697
2701
|
unregister: Fe,
|
|
2698
2702
|
setError: ve,
|
|
2699
|
-
setFocus:
|
|
2703
|
+
setFocus: Ei,
|
|
2700
2704
|
getFieldState: ze
|
|
2701
2705
|
};
|
|
2702
2706
|
return G(T({}, We), {
|
|
2703
2707
|
formControl: We
|
|
2704
2708
|
});
|
|
2705
2709
|
}
|
|
2706
|
-
function
|
|
2710
|
+
function BM(e = {}) {
|
|
2707
2711
|
const t = X.useRef(void 0), i = X.useRef(void 0), [r, n] = X.useState({
|
|
2708
2712
|
isDirty: !1,
|
|
2709
2713
|
isValidating: !1,
|
|
@@ -2727,13 +2731,13 @@ function PM(e = {}) {
|
|
|
2727
2731
|
formState: r
|
|
2728
2732
|
}), e.defaultValues && !ke(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
2729
2733
|
else {
|
|
2730
|
-
const s =
|
|
2734
|
+
const s = FM(e), { formControl: M } = s, I = Di(s, ["formControl"]);
|
|
2731
2735
|
t.current = G(T({}, I), {
|
|
2732
2736
|
formState: r
|
|
2733
2737
|
});
|
|
2734
2738
|
}
|
|
2735
2739
|
const o = t.current.control;
|
|
2736
|
-
return o._options = e,
|
|
2740
|
+
return o._options = e, nr(() => {
|
|
2737
2741
|
const M = o._subscribe({
|
|
2738
2742
|
formState: o._proxyFormState,
|
|
2739
2743
|
callback: () => n(T({}, o._formState)),
|
|
@@ -2764,17 +2768,17 @@ function PM(e = {}) {
|
|
|
2764
2768
|
}, o._options.resetOptions)), !((M = o._options.resetOptions) === null || M === void 0) && M.keepIsValid || o._setValid(), i.current = e.values, n((I) => T({}, I))) : o._resetDefaultValues();
|
|
2765
2769
|
}, [o, e.values]), X.useEffect(() => {
|
|
2766
2770
|
o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next(T({}, o._formState))), o._removeUnmounted();
|
|
2767
|
-
}), t.current.formState = X.useMemo(() =>
|
|
2771
|
+
}), t.current.formState = X.useMemo(() => go(r, o), [o, r]), t.current;
|
|
2768
2772
|
}
|
|
2769
2773
|
const Li = (e, t) => {
|
|
2770
2774
|
const i = {};
|
|
2771
2775
|
return e.forEach((r, n) => {
|
|
2772
|
-
if (r.type ===
|
|
2776
|
+
if (r.type === Jr.NOT_EMPTY && (i.required = (o) => t && Fs(o) ? r.message : !0), r.type === Jr.REGEX) {
|
|
2773
2777
|
const o = new RegExp(r.regex);
|
|
2774
2778
|
i[`regex_${n}`] = (s) => !t && !s ? !0 : typeof s != "string" ? r.message : o.test(s) || r.message;
|
|
2775
2779
|
}
|
|
2776
2780
|
}), i;
|
|
2777
|
-
},
|
|
2781
|
+
}, WM = ({ isOpen: e, image: t }) => /* @__PURE__ */ d(
|
|
2778
2782
|
"div",
|
|
2779
2783
|
{
|
|
2780
2784
|
"data-ui": "gui-custom-select-chevron",
|
|
@@ -2791,7 +2795,7 @@ const Li = (e, t) => {
|
|
|
2791
2795
|
},
|
|
2792
2796
|
children: t ? /* @__PURE__ */ d(_e, T({}, t)) : /* @__PURE__ */ d(_e, { imageId: "chevronDown" })
|
|
2793
2797
|
}
|
|
2794
|
-
),
|
|
2798
|
+
), ZM = ({
|
|
2795
2799
|
isChosen: e,
|
|
2796
2800
|
option: t,
|
|
2797
2801
|
onOptionClickCallback: i,
|
|
@@ -2840,7 +2844,7 @@ const Li = (e, t) => {
|
|
|
2840
2844
|
},
|
|
2841
2845
|
t.value
|
|
2842
2846
|
);
|
|
2843
|
-
},
|
|
2847
|
+
}, To = ({
|
|
2844
2848
|
name: e,
|
|
2845
2849
|
options: t,
|
|
2846
2850
|
isMulti: i = !1,
|
|
@@ -2855,11 +2859,11 @@ const Li = (e, t) => {
|
|
|
2855
2859
|
pickerLayout: c
|
|
2856
2860
|
}) => {
|
|
2857
2861
|
var L, J, Me, Ne, fe, je, Ye, ce;
|
|
2858
|
-
const [a, N] = we(!1), [D, y] = we(n), [z, m] = we("down"), [_, p] = we(null),
|
|
2862
|
+
const [a, N] = we(!1), [D, y] = we(n), [z, m] = we("down"), [_, p] = we(null), E = Je(null), C = Je(null);
|
|
2859
2863
|
ci(() => {
|
|
2860
2864
|
var ve, Y, re;
|
|
2861
2865
|
if (!a) return;
|
|
2862
|
-
const H = (ve =
|
|
2866
|
+
const H = (ve = E.current) == null ? void 0 : ve.getBoundingClientRect(), ge = (Y = C.current) == null ? void 0 : Y.getBoundingClientRect(), ze = (re = j.current) == null ? void 0 : re.getBoundingClientRect();
|
|
2863
2867
|
if (!H || !ge || !ze) return;
|
|
2864
2868
|
const me = H.bottom + ge.height < ze.bottom;
|
|
2865
2869
|
m(me ? "down" : "up");
|
|
@@ -2876,7 +2880,7 @@ const Li = (e, t) => {
|
|
|
2876
2880
|
}, se = (H) => {
|
|
2877
2881
|
H.stopPropagation(), y([]);
|
|
2878
2882
|
}, U = (L = ie(O == null ? void 0 : O.borderColor)) != null ? L : "#D9D9D9", ee = (J = ie(O == null ? void 0 : O.highlightBorderColor)) != null ? J : "#7E57C5";
|
|
2879
|
-
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref:
|
|
2883
|
+
return /* @__PURE__ */ d("div", { "data-ui": "gui-custom-select", ref: E, children: /* @__PURE__ */ d(
|
|
2880
2884
|
"div",
|
|
2881
2885
|
{
|
|
2882
2886
|
"data-ui": "gui-select-name-" + e,
|
|
@@ -2889,10 +2893,14 @@ const Li = (e, t) => {
|
|
|
2889
2893
|
minHeight: "41px",
|
|
2890
2894
|
position: "relative",
|
|
2891
2895
|
zIndex: "auto",
|
|
2892
|
-
|
|
2896
|
+
paddingTop: "8px",
|
|
2897
|
+
paddingBottom: "8px",
|
|
2898
|
+
paddingInlineStart: "8px",
|
|
2899
|
+
paddingInlineEnd: "11px",
|
|
2893
2900
|
cursor: "pointer",
|
|
2894
2901
|
display: "flex",
|
|
2895
2902
|
alignItems: "center",
|
|
2903
|
+
justifyContent: "end",
|
|
2896
2904
|
gap: 10
|
|
2897
2905
|
},
|
|
2898
2906
|
tabIndex: 0,
|
|
@@ -3007,7 +3015,7 @@ const Li = (e, t) => {
|
|
|
3007
3015
|
}
|
|
3008
3016
|
}
|
|
3009
3017
|
) : null,
|
|
3010
|
-
/* @__PURE__ */ d(
|
|
3018
|
+
/* @__PURE__ */ d(WM, { isOpen: a, image: O == null ? void 0 : O.expandButton }),
|
|
3011
3019
|
a && /* @__PURE__ */ d(
|
|
3012
3020
|
"div",
|
|
3013
3021
|
{
|
|
@@ -3016,7 +3024,7 @@ const Li = (e, t) => {
|
|
|
3016
3024
|
style: G(T({
|
|
3017
3025
|
position: "absolute"
|
|
3018
3026
|
}, z === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
3019
|
-
|
|
3027
|
+
insetInline: 0,
|
|
3020
3028
|
border: "1px solid #e8e8e8",
|
|
3021
3029
|
width: "100%",
|
|
3022
3030
|
backgroundColor: (fe = ie(c == null ? void 0 : c.backgroundColor)) != null ? fe : "#ffffff",
|
|
@@ -3038,7 +3046,7 @@ const Li = (e, t) => {
|
|
|
3038
3046
|
children: t.map((H) => {
|
|
3039
3047
|
const ge = D.some((ze) => ze.value === H.value);
|
|
3040
3048
|
return /* @__PURE__ */ d(
|
|
3041
|
-
|
|
3049
|
+
ZM,
|
|
3042
3050
|
{
|
|
3043
3051
|
isChosen: ge,
|
|
3044
3052
|
option: H,
|
|
@@ -3055,7 +3063,7 @@ const Li = (e, t) => {
|
|
|
3055
3063
|
]
|
|
3056
3064
|
}
|
|
3057
3065
|
) });
|
|
3058
|
-
},
|
|
3066
|
+
}, HM = ({
|
|
3059
3067
|
control: e,
|
|
3060
3068
|
layout: t,
|
|
3061
3069
|
dataSourceQuestion: i,
|
|
@@ -3079,7 +3087,7 @@ const Li = (e, t) => {
|
|
|
3079
3087
|
children: [
|
|
3080
3088
|
t.title && /* @__PURE__ */ d(Te, G(T({}, t.title), { text: i.text, htmlFor: o })),
|
|
3081
3089
|
/* @__PURE__ */ d(
|
|
3082
|
-
|
|
3090
|
+
No,
|
|
3083
3091
|
{
|
|
3084
3092
|
name: o,
|
|
3085
3093
|
control: e,
|
|
@@ -3090,7 +3098,7 @@ const Li = (e, t) => {
|
|
|
3090
3098
|
render: ({ field: s }) => {
|
|
3091
3099
|
const M = n.find((I) => I.value === s.value);
|
|
3092
3100
|
return /* @__PURE__ */ d(
|
|
3093
|
-
|
|
3101
|
+
To,
|
|
3094
3102
|
{
|
|
3095
3103
|
options: n,
|
|
3096
3104
|
placeholder: i.placeholder,
|
|
@@ -3114,7 +3122,7 @@ const Li = (e, t) => {
|
|
|
3114
3122
|
]
|
|
3115
3123
|
}
|
|
3116
3124
|
);
|
|
3117
|
-
},
|
|
3125
|
+
}, GM = ({
|
|
3118
3126
|
control: e,
|
|
3119
3127
|
layout: t,
|
|
3120
3128
|
dataSourceQuestion: i,
|
|
@@ -3138,7 +3146,7 @@ const Li = (e, t) => {
|
|
|
3138
3146
|
children: [
|
|
3139
3147
|
t.title && /* @__PURE__ */ d(Te, G(T({}, t.title), { text: i.text, htmlFor: o })),
|
|
3140
3148
|
/* @__PURE__ */ d(
|
|
3141
|
-
|
|
3149
|
+
No,
|
|
3142
3150
|
{
|
|
3143
3151
|
name: o,
|
|
3144
3152
|
control: e,
|
|
@@ -3152,7 +3160,7 @@ const Li = (e, t) => {
|
|
|
3152
3160
|
return (j = s.value) == null ? void 0 : j.includes(I.value);
|
|
3153
3161
|
});
|
|
3154
3162
|
return /* @__PURE__ */ d(
|
|
3155
|
-
|
|
3163
|
+
To,
|
|
3156
3164
|
{
|
|
3157
3165
|
name: o,
|
|
3158
3166
|
options: n,
|
|
@@ -3176,7 +3184,7 @@ const Li = (e, t) => {
|
|
|
3176
3184
|
]
|
|
3177
3185
|
}
|
|
3178
3186
|
);
|
|
3179
|
-
},
|
|
3187
|
+
}, zo = () => {
|
|
3180
3188
|
const [e, t] = we(!1);
|
|
3181
3189
|
return Ve(() => {
|
|
3182
3190
|
const i = () => t(!0), r = () => t(!1);
|
|
@@ -3184,14 +3192,14 @@ const Li = (e, t) => {
|
|
|
3184
3192
|
window.removeEventListener("keydown", i), window.removeEventListener("mousedown", r);
|
|
3185
3193
|
};
|
|
3186
3194
|
}, []), e;
|
|
3187
|
-
},
|
|
3195
|
+
}, JM = ({
|
|
3188
3196
|
option: e,
|
|
3189
3197
|
layout: t,
|
|
3190
3198
|
dataSourceQuestion: i,
|
|
3191
3199
|
register: r,
|
|
3192
3200
|
watch: n
|
|
3193
3201
|
}) => {
|
|
3194
|
-
const [o, s] = we(!1), M =
|
|
3202
|
+
const [o, s] = we(!1), M = zo(), I = String(i.id), O = n(I) === String(e.id), c = t.option, a = t.optionSelected, N = {
|
|
3195
3203
|
backgroundColor: ie(a == null ? void 0 : a.backgroundColor),
|
|
3196
3204
|
borderRadius: a.cornerRadius
|
|
3197
3205
|
}, D = {
|
|
@@ -3248,7 +3256,7 @@ const Li = (e, t) => {
|
|
|
3248
3256
|
]
|
|
3249
3257
|
}
|
|
3250
3258
|
) }, e.id);
|
|
3251
|
-
},
|
|
3259
|
+
}, $M = ({
|
|
3252
3260
|
layout: e,
|
|
3253
3261
|
register: t,
|
|
3254
3262
|
watch: i,
|
|
@@ -3277,7 +3285,7 @@ const Li = (e, t) => {
|
|
|
3277
3285
|
}
|
|
3278
3286
|
),
|
|
3279
3287
|
r.options.map((n) => /* @__PURE__ */ d(
|
|
3280
|
-
|
|
3288
|
+
JM,
|
|
3281
3289
|
{
|
|
3282
3290
|
register: t,
|
|
3283
3291
|
watch: i,
|
|
@@ -3289,14 +3297,14 @@ const Li = (e, t) => {
|
|
|
3289
3297
|
))
|
|
3290
3298
|
]
|
|
3291
3299
|
}
|
|
3292
|
-
) }),
|
|
3300
|
+
) }), XM = ({
|
|
3293
3301
|
option: e,
|
|
3294
3302
|
layout: t,
|
|
3295
3303
|
dataSourceQuestion: i,
|
|
3296
3304
|
register: r,
|
|
3297
3305
|
watch: n
|
|
3298
3306
|
}) => {
|
|
3299
|
-
const [o, s] = we(!1), M =
|
|
3307
|
+
const [o, s] = we(!1), M = zo(), I = String(i.id), O = n(I) === String(e.id), c = t.option, a = t.optionSelected, N = {
|
|
3300
3308
|
borderRadius: c == null ? void 0 : c.cornerRadius,
|
|
3301
3309
|
background: ie(c == null ? void 0 : c.backgroundColor),
|
|
3302
3310
|
borderColor: ie(c == null ? void 0 : c.borderColor),
|
|
@@ -3355,7 +3363,7 @@ const Li = (e, t) => {
|
|
|
3355
3363
|
},
|
|
3356
3364
|
e.id
|
|
3357
3365
|
);
|
|
3358
|
-
},
|
|
3366
|
+
}, KM = ({
|
|
3359
3367
|
layout: e,
|
|
3360
3368
|
watch: t,
|
|
3361
3369
|
register: i,
|
|
@@ -3381,7 +3389,7 @@ const Li = (e, t) => {
|
|
|
3381
3389
|
}
|
|
3382
3390
|
),
|
|
3383
3391
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "center", gap: 5 }, children: r.options.map((n) => /* @__PURE__ */ d(
|
|
3384
|
-
|
|
3392
|
+
XM,
|
|
3385
3393
|
{
|
|
3386
3394
|
register: i,
|
|
3387
3395
|
watch: t,
|
|
@@ -3393,7 +3401,7 @@ const Li = (e, t) => {
|
|
|
3393
3401
|
)) })
|
|
3394
3402
|
]
|
|
3395
3403
|
}
|
|
3396
|
-
) }),
|
|
3404
|
+
) }), qM = ({
|
|
3397
3405
|
children: e,
|
|
3398
3406
|
backgroundColor: t,
|
|
3399
3407
|
cornerRadius: i = 0,
|
|
@@ -3424,7 +3432,7 @@ const Li = (e, t) => {
|
|
|
3424
3432
|
style: {
|
|
3425
3433
|
color: ie(o),
|
|
3426
3434
|
position: "absolute",
|
|
3427
|
-
|
|
3435
|
+
insetInlineStart: "6px",
|
|
3428
3436
|
top: "18px"
|
|
3429
3437
|
},
|
|
3430
3438
|
children: "*"
|
|
@@ -3432,12 +3440,12 @@ const Li = (e, t) => {
|
|
|
3432
3440
|
),
|
|
3433
3441
|
e
|
|
3434
3442
|
] });
|
|
3435
|
-
},
|
|
3443
|
+
}, ea = ({ validationErrorsTypes: e, title: t }) => e ? /* @__PURE__ */ d("div", { style: { width: "100%", fontSize: 12 }, children: Object.entries(e).map(([i, r]) => /* @__PURE__ */ d(Te, G(T({}, t), { text: r }), i)) }) : null, ia = ({
|
|
3436
3444
|
layout: e,
|
|
3437
3445
|
dataSourceQuestion: t,
|
|
3438
3446
|
register: i
|
|
3439
3447
|
}) => {
|
|
3440
|
-
var o, s, M, I, j, O, c, a, N, D, y, z, m, _, p,
|
|
3448
|
+
var o, s, M, I, j, O, c, a, N, D, y, z, m, _, p, E;
|
|
3441
3449
|
const r = String(t.id), n = (C) => C ? C === nt.EMAIL ? "email" : C === nt.FREE_TEXT ? "text" : C === nt.NUMBER ? "number" : C === nt.SECURE ? "password" : "text" : "text";
|
|
3442
3450
|
return /* @__PURE__ */ d(
|
|
3443
3451
|
"div",
|
|
@@ -3471,14 +3479,14 @@ const Li = (e, t) => {
|
|
|
3471
3479
|
backgroundColor: (p = ie((_ = e == null ? void 0 : e.textField) == null ? void 0 : _.backgroundColor)) != null ? p : "#FFFFFF",
|
|
3472
3480
|
outlineColor: $i
|
|
3473
3481
|
},
|
|
3474
|
-
placeholder: (
|
|
3482
|
+
placeholder: (E = t.placeholder) != null ? E : "",
|
|
3475
3483
|
"data-id": r
|
|
3476
3484
|
})
|
|
3477
3485
|
)
|
|
3478
3486
|
]
|
|
3479
3487
|
}
|
|
3480
3488
|
);
|
|
3481
|
-
},
|
|
3489
|
+
}, ta = ({
|
|
3482
3490
|
layout: e,
|
|
3483
3491
|
dataSourceQuestion: t,
|
|
3484
3492
|
register: i
|
|
@@ -3552,39 +3560,39 @@ const Li = (e, t) => {
|
|
|
3552
3560
|
};
|
|
3553
3561
|
ni.MODULE = at, ni.ERROR_ENUM_NAME = "GuiModuleError", ni.SHORT_CODE = "GM";
|
|
3554
3562
|
let bi = ni;
|
|
3555
|
-
const
|
|
3563
|
+
const ra = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSource: o, properties: s, backgroundColor: M }) => {
|
|
3556
3564
|
var p;
|
|
3557
3565
|
const I = Nt.FORM, { perform: j } = zi();
|
|
3558
3566
|
if (!o || (o == null ? void 0 : o.questions.length) === 0) {
|
|
3559
|
-
const
|
|
3567
|
+
const E = new bi({
|
|
3560
3568
|
errorCode: Pi.DECODING_FAILED,
|
|
3561
3569
|
message: "No dataSource or no data for questions in the dataSource"
|
|
3562
3570
|
});
|
|
3563
|
-
return j(
|
|
3571
|
+
return j(E), null;
|
|
3564
3572
|
}
|
|
3565
3573
|
if (!(n != null && n.itemTypes) || Array.isArray(n == null ? void 0 : n.itemTypes) && ((p = n == null ? void 0 : n.itemTypes) == null ? void 0 : p.length) === 0) {
|
|
3566
|
-
const
|
|
3574
|
+
const E = new bi({
|
|
3567
3575
|
errorCode: Pi.DECODING_FAILED,
|
|
3568
3576
|
message: "No questions in the itemTypes field or itemTypes is not an array"
|
|
3569
3577
|
});
|
|
3570
|
-
return j(
|
|
3578
|
+
return j(E), null;
|
|
3571
3579
|
}
|
|
3572
|
-
const O = s ?
|
|
3580
|
+
const O = s ? Bs(o.questions, s) : {}, c = Je(null), {
|
|
3573
3581
|
register: a,
|
|
3574
3582
|
handleSubmit: N,
|
|
3575
3583
|
formState: { errors: D },
|
|
3576
3584
|
reset: y,
|
|
3577
3585
|
watch: z,
|
|
3578
3586
|
control: m
|
|
3579
|
-
} =
|
|
3587
|
+
} = BM({
|
|
3580
3588
|
criteriaMode: "all",
|
|
3581
3589
|
defaultValues: O
|
|
3582
3590
|
});
|
|
3583
3591
|
return /* @__PURE__ */ d(gi, { header: e, footer: r, backgroundColor: M, children: /* @__PURE__ */ d(
|
|
3584
3592
|
"form",
|
|
3585
3593
|
{
|
|
3586
|
-
onSubmit: N((
|
|
3587
|
-
j(
|
|
3594
|
+
onSubmit: N((E) => {
|
|
3595
|
+
j(Vs(E), I), y();
|
|
3588
3596
|
}),
|
|
3589
3597
|
style: {
|
|
3590
3598
|
height: "100%",
|
|
@@ -3622,13 +3630,13 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3622
3630
|
"data-ui": "gui-questions",
|
|
3623
3631
|
part: "gui-questions",
|
|
3624
3632
|
style: { width: "100%", display: "flex", gap: "10px", flexDirection: "column" },
|
|
3625
|
-
children: o.questions.map((
|
|
3633
|
+
children: o.questions.map((E) => {
|
|
3626
3634
|
var ee;
|
|
3627
3635
|
const C = o.static, K = (L, J) => J.find((Me) => {
|
|
3628
3636
|
var Ne;
|
|
3629
3637
|
if ((Ne = Me.questionIds) != null && Ne.length)
|
|
3630
3638
|
return Me.questionIds.find((fe) => L === fe);
|
|
3631
|
-
}), le = (L, J) => J.find((Me) => !Me.questionIds && Me.answerType === L), P = C ? K(String(
|
|
3639
|
+
}), le = (L, J) => J.find((Me) => !Me.questionIds && Me.answerType === L), P = C ? K(String(E.id), n.itemTypes) || le(E.answerType, n.itemTypes) : n.itemTypes.find((L) => L.answerType === E.answerType);
|
|
3632
3640
|
if (!P) {
|
|
3633
3641
|
const L = new bi({
|
|
3634
3642
|
errorCode: Pi.DECODING_FAILED,
|
|
@@ -3637,69 +3645,69 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3637
3645
|
j(L);
|
|
3638
3646
|
return;
|
|
3639
3647
|
}
|
|
3640
|
-
const se = P == null ? void 0 : P.displayType, U =
|
|
3648
|
+
const se = P == null ? void 0 : P.displayType, U = E.id in D && ((ee = D[E.id]) == null ? void 0 : ee.types);
|
|
3641
3649
|
return (
|
|
3642
3650
|
/** Question */
|
|
3643
3651
|
/* @__PURE__ */ d(Ce, { children: [
|
|
3644
3652
|
/* @__PURE__ */ d(
|
|
3645
|
-
|
|
3653
|
+
qM,
|
|
3646
3654
|
{
|
|
3647
3655
|
backgroundColor: P == null ? void 0 : P.backgroundColor,
|
|
3648
3656
|
cornerRadius: P == null ? void 0 : P.cornerRadius,
|
|
3649
3657
|
isError: !!U,
|
|
3650
|
-
isRequired:
|
|
3658
|
+
isRequired: E.required,
|
|
3651
3659
|
validationBorderColor: P == null ? void 0 : P.validationBorderColor,
|
|
3652
3660
|
validationBorderWidth: P == null ? void 0 : P.validationBorderWidth,
|
|
3653
3661
|
children: [
|
|
3654
3662
|
se === mi.TEXT_EXPANDABLE && /* @__PURE__ */ d(
|
|
3655
|
-
|
|
3663
|
+
ta,
|
|
3656
3664
|
{
|
|
3657
3665
|
layout: P,
|
|
3658
|
-
dataSourceQuestion:
|
|
3666
|
+
dataSourceQuestion: E,
|
|
3659
3667
|
register: a
|
|
3660
3668
|
}
|
|
3661
3669
|
),
|
|
3662
3670
|
se === mi.TEXT_SINGLE_LINE && /* @__PURE__ */ d(
|
|
3663
|
-
|
|
3671
|
+
ia,
|
|
3664
3672
|
{
|
|
3665
3673
|
layout: P,
|
|
3666
|
-
dataSourceQuestion:
|
|
3674
|
+
dataSourceQuestion: E,
|
|
3667
3675
|
register: a
|
|
3668
3676
|
}
|
|
3669
3677
|
),
|
|
3670
3678
|
se === mi.SELECTOR_OPTIONS && /* @__PURE__ */ d(
|
|
3671
|
-
|
|
3679
|
+
$M,
|
|
3672
3680
|
{
|
|
3673
3681
|
layout: P,
|
|
3674
|
-
dataSourceQuestion:
|
|
3682
|
+
dataSourceQuestion: E,
|
|
3675
3683
|
watch: z,
|
|
3676
3684
|
register: a
|
|
3677
3685
|
}
|
|
3678
3686
|
),
|
|
3679
3687
|
se === mi.SELECTOR_BUTTONS && /* @__PURE__ */ d(
|
|
3680
|
-
|
|
3688
|
+
KM,
|
|
3681
3689
|
{
|
|
3682
3690
|
layout: P,
|
|
3683
|
-
dataSourceQuestion:
|
|
3691
|
+
dataSourceQuestion: E,
|
|
3684
3692
|
watch: z,
|
|
3685
3693
|
register: a
|
|
3686
3694
|
}
|
|
3687
3695
|
),
|
|
3688
3696
|
se === mi.SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3689
|
-
|
|
3697
|
+
HM,
|
|
3690
3698
|
{
|
|
3691
3699
|
control: m,
|
|
3692
3700
|
layout: P,
|
|
3693
|
-
dataSourceQuestion:
|
|
3701
|
+
dataSourceQuestion: E,
|
|
3694
3702
|
parentElementRef: c
|
|
3695
3703
|
}
|
|
3696
3704
|
),
|
|
3697
3705
|
se === mi.MULTI_SELECTOR_DROPDOWN && /* @__PURE__ */ d(
|
|
3698
|
-
|
|
3706
|
+
GM,
|
|
3699
3707
|
{
|
|
3700
3708
|
control: m,
|
|
3701
3709
|
layout: P,
|
|
3702
|
-
dataSourceQuestion:
|
|
3710
|
+
dataSourceQuestion: E,
|
|
3703
3711
|
parentElementRef: c
|
|
3704
3712
|
}
|
|
3705
3713
|
)
|
|
@@ -3707,13 +3715,13 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3707
3715
|
}
|
|
3708
3716
|
),
|
|
3709
3717
|
U && /* @__PURE__ */ d(
|
|
3710
|
-
|
|
3718
|
+
ea,
|
|
3711
3719
|
{
|
|
3712
3720
|
validationErrorsTypes: U,
|
|
3713
3721
|
title: P.validationMessage
|
|
3714
3722
|
}
|
|
3715
3723
|
)
|
|
3716
|
-
] },
|
|
3724
|
+
] }, E.id)
|
|
3717
3725
|
);
|
|
3718
3726
|
})
|
|
3719
3727
|
}
|
|
@@ -3736,15 +3744,15 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3736
3744
|
alignItems: "flex-end",
|
|
3737
3745
|
padding: "2px"
|
|
3738
3746
|
},
|
|
3739
|
-
children: i.map((
|
|
3747
|
+
children: i.map((E, C) => /* @__PURE__ */ d(ut, T({ dataTestId: "question-button" }, E), C))
|
|
3740
3748
|
}
|
|
3741
3749
|
)
|
|
3742
3750
|
]
|
|
3743
3751
|
}
|
|
3744
3752
|
) });
|
|
3745
|
-
},
|
|
3753
|
+
}, na = {
|
|
3746
3754
|
display: "none"
|
|
3747
|
-
},
|
|
3755
|
+
}, oa = {
|
|
3748
3756
|
display: "flex",
|
|
3749
3757
|
alignItems: "center",
|
|
3750
3758
|
justifyContent: "center",
|
|
@@ -3754,7 +3762,7 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3754
3762
|
borderRadius: "16px",
|
|
3755
3763
|
backgroundColor: "#7e57c5",
|
|
3756
3764
|
cursor: "pointer"
|
|
3757
|
-
},
|
|
3765
|
+
}, sa = {
|
|
3758
3766
|
position: "relative",
|
|
3759
3767
|
display: "flex",
|
|
3760
3768
|
flexGrow: 1,
|
|
@@ -3766,7 +3774,7 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3766
3774
|
width: "100%",
|
|
3767
3775
|
minHeight: "100%",
|
|
3768
3776
|
overflow: "auto"
|
|
3769
|
-
},
|
|
3777
|
+
}, Ma = ({
|
|
3770
3778
|
header: e,
|
|
3771
3779
|
footer: t,
|
|
3772
3780
|
buttons: i,
|
|
@@ -3782,7 +3790,7 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3782
3790
|
const z = (yield Promise.allSettled(
|
|
3783
3791
|
N.map((m) => Ie(null, null, function* () {
|
|
3784
3792
|
return {
|
|
3785
|
-
content: yield
|
|
3793
|
+
content: yield Un(m),
|
|
3786
3794
|
metadata: {
|
|
3787
3795
|
name: m.name,
|
|
3788
3796
|
type: m.type,
|
|
@@ -3809,14 +3817,14 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3809
3817
|
return /* @__PURE__ */ d(gi, { header: e, footer: t, backgroundColor: r, children: /* @__PURE__ */ d(Ce, { children: /* @__PURE__ */ d(
|
|
3810
3818
|
"div",
|
|
3811
3819
|
{
|
|
3812
|
-
style: G(T({},
|
|
3820
|
+
style: G(T({}, sa), {
|
|
3813
3821
|
justifyContent: "center"
|
|
3814
3822
|
}),
|
|
3815
3823
|
children: [
|
|
3816
3824
|
/* @__PURE__ */ d(
|
|
3817
3825
|
"input",
|
|
3818
3826
|
G(T({
|
|
3819
|
-
style:
|
|
3827
|
+
style: na,
|
|
3820
3828
|
ref: s,
|
|
3821
3829
|
type: "file",
|
|
3822
3830
|
accept: "image/*"
|
|
@@ -3824,12 +3832,12 @@ const ea = ({ header: e, title: t, buttons: i, footer: r, questions: n, dataSour
|
|
|
3824
3832
|
onInput: I
|
|
3825
3833
|
})
|
|
3826
3834
|
),
|
|
3827
|
-
/* @__PURE__ */ d("button", { style:
|
|
3835
|
+
/* @__PURE__ */ d("button", { style: oa, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (O = i == null ? void 0 : i[0]) == null ? void 0 : O.image) == null ? void 0 : c.imageId }) })
|
|
3828
3836
|
]
|
|
3829
3837
|
}
|
|
3830
3838
|
) }) });
|
|
3831
3839
|
};
|
|
3832
|
-
function
|
|
3840
|
+
function aa(e) {
|
|
3833
3841
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
3834
3842
|
var t = e.default;
|
|
3835
3843
|
if (typeof t == "function") {
|
|
@@ -3854,12 +3862,12 @@ function oa(e) {
|
|
|
3854
3862
|
}), i;
|
|
3855
3863
|
}
|
|
3856
3864
|
var Q = {};
|
|
3857
|
-
const
|
|
3858
|
-
var Yi = { exports: {} },
|
|
3859
|
-
function
|
|
3860
|
-
return
|
|
3865
|
+
const ua = /* @__PURE__ */ aa(zM);
|
|
3866
|
+
var Yi = { exports: {} }, la = Yi.exports, jn;
|
|
3867
|
+
function ca() {
|
|
3868
|
+
return jn || (jn = 1, (function(e, t) {
|
|
3861
3869
|
(function(i, r) {
|
|
3862
|
-
var n = "1.0.41", o = "", s = "?", M = "function", I = "undefined", j = "object", O = "string", c = "major", a = "model", N = "name", D = "type", y = "vendor", z = "version", m = "architecture", _ = "console", p = "mobile",
|
|
3870
|
+
var n = "1.0.41", o = "", s = "?", M = "function", I = "undefined", j = "object", O = "string", c = "major", a = "model", N = "name", D = "type", y = "vendor", z = "version", m = "architecture", _ = "console", p = "mobile", E = "tablet", C = "smarttv", K = "wearable", le = "embedded", P = 500, se = "Amazon", U = "Apple", ee = "ASUS", L = "BlackBerry", J = "Browser", Me = "Chrome", Ne = "Edge", fe = "Firefox", je = "Google", Ye = "Honor", ce = "Huawei", H = "Lenovo", ge = "LG", ze = "Microsoft", me = "Motorola", ve = "Nvidia", Y = "OnePlus", re = "Opera", qe = "OPPO", Fe = "Samsung", Mi = "Sharp", Be = "Sony", ei = "Xiaomi", di = "Zebra", Ni = "Facebook", Oi = "Chromium OS", ai = "Mac OS", ui = " Browser", Ei = function(Z, $) {
|
|
3863
3871
|
var V = {};
|
|
3864
3872
|
for (var te in Z)
|
|
3865
3873
|
$[te] && $[te].length % 2 === 0 ? V[te] = $[te].concat(Z[te]) : V[te] = Z[te];
|
|
@@ -3877,11 +3885,11 @@ function aa() {
|
|
|
3877
3885
|
}, A = function(Z, $) {
|
|
3878
3886
|
if (typeof Z === O)
|
|
3879
3887
|
return Z = Z.replace(/^\s\s*/, o), typeof $ === I ? Z : Z.substring(0, P);
|
|
3880
|
-
},
|
|
3888
|
+
}, x = function(Z, $) {
|
|
3881
3889
|
for (var V = 0, te, be, pe, oe, F, Se; V < $.length && !F; ) {
|
|
3882
|
-
var
|
|
3883
|
-
for (te = be = 0; te <
|
|
3884
|
-
if (F =
|
|
3890
|
+
var xi = $[V], ki = $[V + 1];
|
|
3891
|
+
for (te = be = 0; te < xi.length && !F && xi[te]; )
|
|
3892
|
+
if (F = xi[te++].exec(Z), F)
|
|
3885
3893
|
for (pe = 0; pe < ki.length; pe++)
|
|
3886
3894
|
Se = F[++be], oe = ki[pe], typeof oe === j && oe.length > 0 ? oe.length === 2 ? typeof oe[1] == M ? this[oe[0]] = oe[1].call(this, Se) : this[oe[0]] = oe[1] : oe.length === 3 ? typeof oe[1] === M && !(oe[1].exec && oe[1].test) ? this[oe[0]] = Se ? oe[1].call(this, Se, oe[2]) : r : this[oe[0]] = Se ? Se.replace(oe[1], oe[2]) : r : oe.length === 4 && (this[oe[0]] = Se ? oe[3].call(this, Se.replace(oe[1], oe[2])) : r) : this[oe] = Se || r;
|
|
3887
3895
|
V += 2;
|
|
@@ -3895,25 +3903,25 @@ function aa() {
|
|
|
3895
3903
|
} else if (li($[V], Z))
|
|
3896
3904
|
return V === s ? r : V;
|
|
3897
3905
|
return $.hasOwnProperty("*") ? $["*"] : Z;
|
|
3898
|
-
}, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, b = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, R = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [N, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [N, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [N, z], [/opios[\/ ]+([\w\.]+)/i], [z, [N, re + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [N, re + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [N, re]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [N, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [N, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [N, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [N, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [N, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [N, "UC" + J]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [N, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [N, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [N, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [N, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [N, "Smart Lenovo " + J]], [/(avast|avg)\/([\w\.]+)/i], [[N, /(.+)/, "$1 Secure " + J], z], [/\bfocus\/([\w\.]+)/i], [z, [N, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [N, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [N, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [N, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [N, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [N, "MIUI" + ui]], [/fxios\/([\w\.-]+)/i], [z, [N, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [N, "360"]], [/\b(qq)\/([\w\.]+)/i], [[N, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[N, /(.+)/, "$1" + ui], z], [/samsungbrowser\/([\w\.]+)/i], [z, [N, Fe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [N, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[N, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [N, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [N], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, N], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[N, Ni], z], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [N, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [N, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [N, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [N, Me + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[N, Me + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [N, "Android " + J]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [N, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [N, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, N], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [N, [z, k, S]], [/(webkit|khtml)\/([\w\.]+)/i], [N, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[N, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [N, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [N, fe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [N, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [N, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[m, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[m, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[m, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[m, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[m, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[m, /ower/, o, We]], [/ sun4\w[;\)]/i], [[m, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[m, We]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [y, Fe], [D, x]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [y, Fe], [D, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, U], [D, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, U], [D, x]], [/(macintosh);/i], [a, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Mi], [D, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, Ye], [D, x]], [/honor([-\w ]+)[;\)]/i], [a, [y, Ye], [D, p]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [y, ce], [D, x]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [D, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, ei], [D, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [y, ei], [D, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, qe], [D, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, k, { OnePlus: ["304", "403", "203"], "*": qe }], [D, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [D, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [D, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [y, me], [D, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, me], [D, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, ge], [D, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, ge], [D, p]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [y, H], [D, x]], [/(nokia) (t[12][01])/i], [y, a, [D, x]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [D, p], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, je], [D, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, je], [D, p]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [y, Be], [D, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Be], [D, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, Y], [D, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, se], [D, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, se], [D, p]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [D, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, L], [D, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, ee], [D, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, ee], [D, p]], [/(nexus 9)/i], [a, [y, "HTC"], [D, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [D, p]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [y, "TCL"], [D, x]], [/(itel) ((\w+))/i], [[y, We], a, [D, k, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [D, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [D, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [D, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [D, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [D, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [D, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [D, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [D, x]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [D, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [D, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [y, a, [D, p]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [y, a, [D, x]], [/(surface duo)/i], [a, [y, ze], [D, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [D, p]], [/(u304aa)/i], [a, [y, "AT&T"], [D, p]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [D, p]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [D, x]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [D, x]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [D, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [D, x]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [D, x]], [/\b(k88) b/i], [a, [y, "ZTE"], [D, x]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [D, p]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [D, p]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [D, x]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [D, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [D, x]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [D, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [D, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [D, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [D, p]], [/\b(ph-1) /i], [a, [y, "Essential"], [D, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [D, x]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [D, x]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [D, x]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, ve], [D, x]], [/(sprint) (\w+)/i], [y, a, [D, p]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, ze], [D, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, di], [D, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, di], [D, p]], [/smart-tv.+(samsung)/i], [y, [D, C]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Fe], [D, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, ge], [D, C]], [/(apple) ?tv/i], [y, [a, U + " TV"], [D, C]], [/crkey/i], [[a, Me + "cast"], [y, je], [D, C]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, se], [D, C]], [/(shield \w+ tv)/i], [a, [y, ve], [D, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Mi], [D, C]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Be], [D, C]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, ei], [D, C]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [D, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, A], [a, A], [D, C]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [D, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[D, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [D, _]], [/droid.+; (shield)( bui|\))/i], [a, [y, ve], [D, _]], [/(playstation \w+)/i], [a, [y, Be], [D, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, ze], [D, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Fe], [D, K]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [D, K]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, qe], [D, K]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, U], [D, K]], [/(opwwe\d{3})/i], [a, [y, Y], [D, K]], [/(moto 360)/i], [a, [y, me], [D, K]], [/(smartwatch 3)/i], [a, [y, Be], [D, K]], [/(g watch r)/i], [a, [y, ge], [D, K]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, di], [D, K]], [/droid.+; (glass) \d/i], [a, [y, je], [D, K]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [D, K]], [/; (quest( \d| pro)?)/i], [a, [y, Ni], [D, K]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [D, le]], [/(aeobc)\b/i], [a, [y, se], [D, le]], [/(homepod).+mac os/i], [a, [y, U], [D, le]], [/windows iot/i], [[D, le]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [D, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [D, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[D, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[D, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [N, Ne + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [N, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [N, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [N, z], [/ladybird\//i], [[N, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, N]], os: [[/microsoft (windows) (vista|xp)/i], [N, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [N, [z, k, b]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, k, b], [N, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [N, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[N, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, N], [/(ubuntu) ([\w\.]+) like android/i], [[N, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [N, z], [/\(bb(10);/i], [z, [N, L]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [N, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [N, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [N, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [N, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [N, Me + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[N, Oi], z], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [N, z], [/(sunos) ?([\w\.\d]*)/i], [[N, "Solaris"], z], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [N, z]] }, B = function(Z, $) {
|
|
3906
|
+
}, S = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, b = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, R = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [z, [N, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [z, [N, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [N, z], [/opios[\/ ]+([\w\.]+)/i], [z, [N, re + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [z, [N, re + " GX"]], [/\bopr\/([\w\.]+)/i], [z, [N, re]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [z, [N, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [z, [N, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [N, z], [/quark(?:pc)?\/([-\w\.]+)/i], [z, [N, "Quark"]], [/\bddg\/([\w\.]+)/i], [z, [N, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [z, [N, "UC" + J]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [z, [N, "WeChat"]], [/konqueror\/([\w\.]+)/i], [z, [N, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [z, [N, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [z, [N, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [z, [N, "Smart Lenovo " + J]], [/(avast|avg)\/([\w\.]+)/i], [[N, /(.+)/, "$1 Secure " + J], z], [/\bfocus\/([\w\.]+)/i], [z, [N, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [z, [N, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [z, [N, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [z, [N, "Dolphin"]], [/coast\/([\w\.]+)/i], [z, [N, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [z, [N, "MIUI" + ui]], [/fxios\/([\w\.-]+)/i], [z, [N, fe]], [/\bqihoobrowser\/?([\w\.]*)/i], [z, [N, "360"]], [/\b(qq)\/([\w\.]+)/i], [[N, /(.+)/, "$1Browser"], z], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[N, /(.+)/, "$1" + ui], z], [/samsungbrowser\/([\w\.]+)/i], [z, [N, Fe + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [z, [N, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[N, "Sogou Mobile"], z], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [N, z], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [N], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [z, N], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[N, Ni], z], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [N, z], [/\bgsa\/([\w\.]+) .*safari\//i], [z, [N, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [z, [N, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [z, [N, Me + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[N, Me + " WebView"], z], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [z, [N, "Android " + J]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [N, z], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [z, [N, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [z, N], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [N, [z, k, S]], [/(webkit|khtml)\/([\w\.]+)/i], [N, z], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[N, "Netscape"], z], [/(wolvic|librewolf)\/([\w\.]+)/i], [N, z], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [z, [N, fe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [N, [z, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [N, [z, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[m, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[m, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[m, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[m, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[m, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[m, /ower/, o, We]], [/ sun4\w[;\)]/i], [[m, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[m, We]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [a, [y, Fe], [D, E]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [a, [y, Fe], [D, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [a, [y, U], [D, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [a, [y, U], [D, E]], [/(macintosh);/i], [a, [y, U]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [a, [y, Mi], [D, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [a, [y, Ye], [D, E]], [/honor([-\w ]+)[;\)]/i], [a, [y, Ye], [D, p]], [/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i], [a, [y, ce], [D, E]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [a, [y, ce], [D, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[a, /_/g, " "], [y, ei], [D, E]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[a, /_/g, " "], [y, ei], [D, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [a, [y, qe], [D, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [a, [y, k, { OnePlus: ["304", "403", "203"], "*": qe }], [D, E]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [a, [y, "Vivo"], [D, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [a, [y, "Realme"], [D, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [a, [y, me], [D, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [a, [y, me], [D, E]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [a, [y, ge], [D, E]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [a, [y, ge], [D, p]], [/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [a, [y, H], [D, E]], [/(nokia) (t[12][01])/i], [y, a, [D, E]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[a, /_/g, " "], [D, p], [y, "Nokia"]], [/(pixel (c|tablet))\b/i], [a, [y, je], [D, E]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [a, [y, je], [D, p]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [a, [y, Be], [D, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[a, "Xperia Tablet"], [y, Be], [D, E]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [a, [y, Y], [D, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [a, [y, se], [D, E]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[a, /(.+)/g, "Fire Phone $1"], [y, se], [D, p]], [/(playbook);[-\w\),; ]+(rim)/i], [a, y, [D, E]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [a, [y, L], [D, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [a, [y, ee], [D, E]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [a, [y, ee], [D, p]], [/(nexus 9)/i], [a, [y, "HTC"], [D, E]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [y, [a, /_/g, " "], [D, p]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [a, [y, "TCL"], [D, E]], [/(itel) ((\w+))/i], [[y, We], a, [D, k, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [a, [y, "Acer"], [D, E]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [a, [y, "Meizu"], [D, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [a, [y, "Ulefone"], [D, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [a, [y, "Energizer"], [D, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [a, [y, "Cat"], [D, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [a, [y, "Smartfren"], [D, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [a, [y, "Nothing"], [D, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [a, [y, "Archos"], [D, E]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [a, [y, "Archos"], [D, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [y, a, [D, E]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [y, a, [D, p]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [y, a, [D, E]], [/(surface duo)/i], [a, [y, ze], [D, E]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [a, [y, "Fairphone"], [D, p]], [/(u304aa)/i], [a, [y, "AT&T"], [D, p]], [/\bsie-(\w*)/i], [a, [y, "Siemens"], [D, p]], [/\b(rct\w+) b/i], [a, [y, "RCA"], [D, E]], [/\b(venue[\d ]{2,7}) b/i], [a, [y, "Dell"], [D, E]], [/\b(q(?:mv|ta)\w+) b/i], [a, [y, "Verizon"], [D, E]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [a, [y, "Barnes & Noble"], [D, E]], [/\b(tm\d{3}\w+) b/i], [a, [y, "NuVision"], [D, E]], [/\b(k88) b/i], [a, [y, "ZTE"], [D, E]], [/\b(nx\d{3}j) b/i], [a, [y, "ZTE"], [D, p]], [/\b(gen\d{3}) b.+49h/i], [a, [y, "Swiss"], [D, p]], [/\b(zur\d{3}) b/i], [a, [y, "Swiss"], [D, E]], [/\b((zeki)?tb.*\b) b/i], [a, [y, "Zeki"], [D, E]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[y, "Dragon Touch"], a, [D, E]], [/\b(ns-?\w{0,9}) b/i], [a, [y, "Insignia"], [D, E]], [/\b((nxa|next)-?\w{0,9}) b/i], [a, [y, "NextBook"], [D, E]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[y, "Voice"], a, [D, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[y, "LvTel"], a, [D, p]], [/\b(ph-1) /i], [a, [y, "Essential"], [D, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [a, [y, "Envizen"], [D, E]], [/\b(trio[-\w\. ]+) b/i], [a, [y, "MachSpeed"], [D, E]], [/\btu_(1491) b/i], [a, [y, "Rotor"], [D, E]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [a, [y, ve], [D, E]], [/(sprint) (\w+)/i], [y, a, [D, p]], [/(kin\.[onetw]{3})/i], [[a, /\./g, " "], [y, ze], [D, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [a, [y, di], [D, E]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [a, [y, di], [D, p]], [/smart-tv.+(samsung)/i], [y, [D, C]], [/hbbtv.+maple;(\d+)/i], [[a, /^/, "SmartTV"], [y, Fe], [D, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[y, ge], [D, C]], [/(apple) ?tv/i], [y, [a, U + " TV"], [D, C]], [/crkey/i], [[a, Me + "cast"], [y, je], [D, C]], [/droid.+aft(\w+)( bui|\))/i], [a, [y, se], [D, C]], [/(shield \w+ tv)/i], [a, [y, ve], [D, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [a, [y, Mi], [D, C]], [/(bravia[\w ]+)( bui|\))/i], [a, [y, Be], [D, C]], [/(mi(tv|box)-?\w+) bui/i], [a, [y, ei], [D, C]], [/Hbbtv.*(technisat) (.*);/i], [y, a, [D, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[y, A], [a, A], [D, C]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [a, [D, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[D, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [y, a, [D, _]], [/droid.+; (shield)( bui|\))/i], [a, [y, ve], [D, _]], [/(playstation \w+)/i], [a, [y, Be], [D, _]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [a, [y, ze], [D, _]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [a, [y, Fe], [D, K]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [y, a, [D, K]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [a, [y, qe], [D, K]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [a, [y, U], [D, K]], [/(opwwe\d{3})/i], [a, [y, Y], [D, K]], [/(moto 360)/i], [a, [y, me], [D, K]], [/(smartwatch 3)/i], [a, [y, Be], [D, K]], [/(g watch r)/i], [a, [y, ge], [D, K]], [/droid.+; (wt63?0{2,3})\)/i], [a, [y, di], [D, K]], [/droid.+; (glass) \d/i], [a, [y, je], [D, K]], [/(pico) (4|neo3(?: link|pro)?)/i], [y, a, [D, K]], [/; (quest( \d| pro)?)/i], [a, [y, Ni], [D, K]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [y, [D, le]], [/(aeobc)\b/i], [a, [y, se], [D, le]], [/(homepod).+mac os/i], [a, [y, U], [D, le]], [/windows iot/i], [[D, le]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [a, [D, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [a, [D, E]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[D, E]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[D, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [a, [y, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [z, [N, Ne + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [N, z], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [z, [N, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [N, z], [/ladybird\//i], [[N, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [z, N]], os: [[/microsoft (windows) (vista|xp)/i], [N, z], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [N, [z, k, b]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[z, k, b], [N, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[z, /_/g, "."], [N, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[N, ai], [z, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [z, N], [/(ubuntu) ([\w\.]+) like android/i], [[N, /(.+)/, "$1 Touch"], z], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [N, z], [/\(bb(10);/i], [z, [N, L]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [z, [N, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [z, [N, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [z, [N, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [z, [N, "watchOS"]], [/crkey\/([\d\.]+)/i], [z, [N, Me + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[N, Oi], z], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [N, z], [/(sunos) ?([\w\.\d]*)/i], [[N, "Solaris"], z], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [N, z]] }, B = function(Z, $) {
|
|
3899
3907
|
if (typeof Z === j && ($ = Z, Z = r), !(this instanceof B))
|
|
3900
3908
|
return new B(Z, $).getResult();
|
|
3901
|
-
var V = typeof i !== I && i.navigator ? i.navigator : r, te = Z || (V && V.userAgent ? V.userAgent : o), be = V && V.userAgentData ? V.userAgentData : r, pe = $ ?
|
|
3909
|
+
var V = typeof i !== I && i.navigator ? i.navigator : r, te = Z || (V && V.userAgent ? V.userAgent : o), be = V && V.userAgentData ? V.userAgentData : r, pe = $ ? Ei(R, $) : R, oe = V && V.userAgent == te;
|
|
3902
3910
|
return this.getBrowser = function() {
|
|
3903
3911
|
var F = {};
|
|
3904
|
-
return F[N] = r, F[z] = r,
|
|
3912
|
+
return F[N] = r, F[z] = r, x.call(F, te, pe.browser), F[c] = g(F[z]), oe && V && V.brave && typeof V.brave.isBrave == M && (F[N] = "Brave"), F;
|
|
3905
3913
|
}, this.getCPU = function() {
|
|
3906
3914
|
var F = {};
|
|
3907
|
-
return F[m] = r,
|
|
3915
|
+
return F[m] = r, x.call(F, te, pe.cpu), F;
|
|
3908
3916
|
}, this.getDevice = function() {
|
|
3909
3917
|
var F = {};
|
|
3910
|
-
return F[y] = r, F[a] = r, F[D] = r,
|
|
3918
|
+
return F[y] = r, F[a] = r, F[D] = r, x.call(F, te, pe.device), oe && !F[D] && be && be.mobile && (F[D] = p), oe && F[a] == "Macintosh" && V && typeof V.standalone !== I && V.maxTouchPoints && V.maxTouchPoints > 2 && (F[a] = "iPad", F[D] = E), F;
|
|
3911
3919
|
}, this.getEngine = function() {
|
|
3912
3920
|
var F = {};
|
|
3913
|
-
return F[N] = r, F[z] = r,
|
|
3921
|
+
return F[N] = r, F[z] = r, x.call(F, te, pe.engine), F;
|
|
3914
3922
|
}, this.getOS = function() {
|
|
3915
3923
|
var F = {};
|
|
3916
|
-
return F[N] = r, F[z] = r,
|
|
3924
|
+
return F[N] = r, F[z] = r, x.call(F, te, pe.os), oe && !F[N] && be && be.platform && be.platform != "Unknown" && (F[N] = be.platform.replace(/chrome os/i, Oi).replace(/macos/i, ai)), F;
|
|
3917
3925
|
}, this.getResult = function() {
|
|
3918
3926
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
3919
3927
|
}, this.getUA = function() {
|
|
@@ -3922,7 +3930,7 @@ function aa() {
|
|
|
3922
3930
|
return te = typeof F === O && F.length > P ? A(F, P) : F, this;
|
|
3923
3931
|
}, this.setUA(te), this;
|
|
3924
3932
|
};
|
|
3925
|
-
B.VERSION = n, B.BROWSER = ii([N, z, c]), B.CPU = ii([m]), B.DEVICE = ii([a, y, D, _, p, C,
|
|
3933
|
+
B.VERSION = n, B.BROWSER = ii([N, z, c]), B.CPU = ii([m]), B.DEVICE = ii([a, y, D, _, p, C, E, K, le]), B.ENGINE = B.OS = ii([N, z]), e.exports && (t = e.exports = B), t.UAParser = B;
|
|
3926
3934
|
var W = typeof i !== I && (i.jQuery || i.Zepto);
|
|
3927
3935
|
if (W && !W.ua) {
|
|
3928
3936
|
var ae = new B();
|
|
@@ -3935,17 +3943,17 @@ function aa() {
|
|
|
3935
3943
|
W.ua[V] = $[V];
|
|
3936
3944
|
};
|
|
3937
3945
|
}
|
|
3938
|
-
})(typeof window == "object" ? window :
|
|
3946
|
+
})(typeof window == "object" ? window : la);
|
|
3939
3947
|
})(Yi, Yi.exports)), Yi.exports;
|
|
3940
3948
|
}
|
|
3941
|
-
var
|
|
3942
|
-
function
|
|
3943
|
-
if (
|
|
3944
|
-
|
|
3949
|
+
var yn;
|
|
3950
|
+
function ga() {
|
|
3951
|
+
if (yn) return Q;
|
|
3952
|
+
yn = 1, Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
3945
3953
|
function e(f) {
|
|
3946
3954
|
return f && typeof f == "object" && "default" in f ? f.default : f;
|
|
3947
3955
|
}
|
|
3948
|
-
var t =
|
|
3956
|
+
var t = ua, i = e(t), r = ca(), n = new r(), o = n.getBrowser(), s = n.getCPU(), M = n.getDevice(), I = n.getEngine(), j = n.getOS(), O = n.getUA(), c = function(u) {
|
|
3949
3957
|
return n.setUA(u);
|
|
3950
3958
|
}, a = function(u) {
|
|
3951
3959
|
if (!u) {
|
|
@@ -3979,20 +3987,20 @@ function ua() {
|
|
|
3979
3987
|
function D(f, u) {
|
|
3980
3988
|
var l = Object.keys(f);
|
|
3981
3989
|
if (Object.getOwnPropertySymbols) {
|
|
3982
|
-
var
|
|
3983
|
-
u && (
|
|
3990
|
+
var h = Object.getOwnPropertySymbols(f);
|
|
3991
|
+
u && (h = h.filter(function(w) {
|
|
3984
3992
|
return Object.getOwnPropertyDescriptor(f, w).enumerable;
|
|
3985
|
-
})), l.push.apply(l,
|
|
3993
|
+
})), l.push.apply(l, h);
|
|
3986
3994
|
}
|
|
3987
3995
|
return l;
|
|
3988
3996
|
}
|
|
3989
3997
|
function y(f) {
|
|
3990
3998
|
for (var u = 1; u < arguments.length; u++) {
|
|
3991
3999
|
var l = arguments[u] != null ? arguments[u] : {};
|
|
3992
|
-
u % 2 ? D(Object(l), !0).forEach(function(
|
|
3993
|
-
|
|
3994
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(f, Object.getOwnPropertyDescriptors(l)) : D(Object(l)).forEach(function(
|
|
3995
|
-
Object.defineProperty(f,
|
|
4000
|
+
u % 2 ? D(Object(l), !0).forEach(function(h) {
|
|
4001
|
+
E(f, h, l[h]);
|
|
4002
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(f, Object.getOwnPropertyDescriptors(l)) : D(Object(l)).forEach(function(h) {
|
|
4003
|
+
Object.defineProperty(f, h, Object.getOwnPropertyDescriptor(l, h));
|
|
3996
4004
|
});
|
|
3997
4005
|
}
|
|
3998
4006
|
return f;
|
|
@@ -4011,14 +4019,14 @@ function ua() {
|
|
|
4011
4019
|
}
|
|
4012
4020
|
function _(f, u) {
|
|
4013
4021
|
for (var l = 0; l < u.length; l++) {
|
|
4014
|
-
var
|
|
4015
|
-
|
|
4022
|
+
var h = u[l];
|
|
4023
|
+
h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(f, h.key, h);
|
|
4016
4024
|
}
|
|
4017
4025
|
}
|
|
4018
4026
|
function p(f, u, l) {
|
|
4019
4027
|
return u && _(f.prototype, u), f;
|
|
4020
4028
|
}
|
|
4021
|
-
function
|
|
4029
|
+
function E(f, u, l) {
|
|
4022
4030
|
return u in f ? Object.defineProperty(f, u, {
|
|
4023
4031
|
value: l,
|
|
4024
4032
|
enumerable: !0,
|
|
@@ -4030,8 +4038,8 @@ function ua() {
|
|
|
4030
4038
|
return C = Object.assign || function(f) {
|
|
4031
4039
|
for (var u = 1; u < arguments.length; u++) {
|
|
4032
4040
|
var l = arguments[u];
|
|
4033
|
-
for (var
|
|
4034
|
-
Object.prototype.hasOwnProperty.call(l,
|
|
4041
|
+
for (var h in l)
|
|
4042
|
+
Object.prototype.hasOwnProperty.call(l, h) && (f[h] = l[h]);
|
|
4035
4043
|
}
|
|
4036
4044
|
return f;
|
|
4037
4045
|
}, C.apply(this, arguments);
|
|
@@ -4053,24 +4061,24 @@ function ua() {
|
|
|
4053
4061
|
}, le(f);
|
|
4054
4062
|
}
|
|
4055
4063
|
function P(f, u) {
|
|
4056
|
-
return P = Object.setPrototypeOf || function(
|
|
4057
|
-
return
|
|
4064
|
+
return P = Object.setPrototypeOf || function(h, w) {
|
|
4065
|
+
return h.__proto__ = w, h;
|
|
4058
4066
|
}, P(f, u);
|
|
4059
4067
|
}
|
|
4060
4068
|
function se(f, u) {
|
|
4061
4069
|
if (f == null) return {};
|
|
4062
|
-
var l = {},
|
|
4063
|
-
for (ne = 0; ne <
|
|
4064
|
-
w =
|
|
4070
|
+
var l = {}, h = Object.keys(f), w, ne;
|
|
4071
|
+
for (ne = 0; ne < h.length; ne++)
|
|
4072
|
+
w = h[ne], !(u.indexOf(w) >= 0) && (l[w] = f[w]);
|
|
4065
4073
|
return l;
|
|
4066
4074
|
}
|
|
4067
4075
|
function U(f, u) {
|
|
4068
4076
|
if (f == null) return {};
|
|
4069
|
-
var l = se(f, u),
|
|
4077
|
+
var l = se(f, u), h, w;
|
|
4070
4078
|
if (Object.getOwnPropertySymbols) {
|
|
4071
4079
|
var ne = Object.getOwnPropertySymbols(f);
|
|
4072
4080
|
for (w = 0; w < ne.length; w++)
|
|
4073
|
-
|
|
4081
|
+
h = ne[w], !(u.indexOf(h) >= 0) && Object.prototype.propertyIsEnumerable.call(f, h) && (l[h] = f[h]);
|
|
4074
4082
|
}
|
|
4075
4083
|
return l;
|
|
4076
4084
|
}
|
|
@@ -4095,9 +4103,9 @@ function ua() {
|
|
|
4095
4103
|
function Ne(f, u) {
|
|
4096
4104
|
var l = f == null ? null : typeof Symbol != "undefined" && f[Symbol.iterator] || f["@@iterator"];
|
|
4097
4105
|
if (l != null) {
|
|
4098
|
-
var
|
|
4106
|
+
var h = [], w = !0, ne = !1, Oe, Ue;
|
|
4099
4107
|
try {
|
|
4100
|
-
for (l = l.call(f); !(w = (Oe = l.next()).done) && (
|
|
4108
|
+
for (l = l.call(f); !(w = (Oe = l.next()).done) && (h.push(Oe.value), !(u && h.length === u)); w = !0)
|
|
4101
4109
|
;
|
|
4102
4110
|
} catch (et) {
|
|
4103
4111
|
ne = !0, Ue = et;
|
|
@@ -4108,7 +4116,7 @@ function ua() {
|
|
|
4108
4116
|
if (ne) throw Ue;
|
|
4109
4117
|
}
|
|
4110
4118
|
}
|
|
4111
|
-
return
|
|
4119
|
+
return h;
|
|
4112
4120
|
}
|
|
4113
4121
|
}
|
|
4114
4122
|
function fe(f, u) {
|
|
@@ -4121,8 +4129,8 @@ function ua() {
|
|
|
4121
4129
|
}
|
|
4122
4130
|
function je(f, u) {
|
|
4123
4131
|
(u == null || u > f.length) && (u = f.length);
|
|
4124
|
-
for (var l = 0,
|
|
4125
|
-
return
|
|
4132
|
+
for (var l = 0, h = new Array(u); l < u; l++) h[l] = f[l];
|
|
4133
|
+
return h;
|
|
4126
4134
|
}
|
|
4127
4135
|
function Ye() {
|
|
4128
4136
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -4206,79 +4214,79 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4206
4214
|
}, qe = function(u) {
|
|
4207
4215
|
var l = re();
|
|
4208
4216
|
return l && l.platform && (l.platform.indexOf(u) !== -1 || l.platform === "MacIntel" && l.maxTouchPoints > 1 && !window.MSStream);
|
|
4209
|
-
}, Fe = function(u, l,
|
|
4217
|
+
}, Fe = function(u, l, h, w, ne) {
|
|
4210
4218
|
return {
|
|
4211
4219
|
isBrowser: u,
|
|
4212
4220
|
browserMajorVersion: Y(l.major),
|
|
4213
4221
|
browserFullVersion: Y(l.version),
|
|
4214
4222
|
browserName: Y(l.name),
|
|
4215
|
-
engineName: Y(
|
|
4216
|
-
engineVersion: Y(
|
|
4223
|
+
engineName: Y(h.name),
|
|
4224
|
+
engineVersion: Y(h.version),
|
|
4217
4225
|
osName: Y(w.name),
|
|
4218
4226
|
osVersion: Y(w.version),
|
|
4219
4227
|
userAgent: Y(ne)
|
|
4220
4228
|
};
|
|
4221
|
-
}, Mi = function(u, l,
|
|
4229
|
+
}, Mi = function(u, l, h, w) {
|
|
4222
4230
|
return y({}, u, {
|
|
4223
4231
|
vendor: Y(l.vendor),
|
|
4224
4232
|
model: Y(l.model),
|
|
4225
|
-
os: Y(
|
|
4226
|
-
osVersion: Y(
|
|
4233
|
+
os: Y(h.name),
|
|
4234
|
+
osVersion: Y(h.version),
|
|
4227
4235
|
ua: Y(w)
|
|
4228
4236
|
});
|
|
4229
|
-
}, Be = function(u, l,
|
|
4237
|
+
}, Be = function(u, l, h, w) {
|
|
4230
4238
|
return {
|
|
4231
4239
|
isSmartTV: u,
|
|
4232
4240
|
engineName: Y(l.name),
|
|
4233
4241
|
engineVersion: Y(l.version),
|
|
4234
|
-
osName: Y(
|
|
4235
|
-
osVersion: Y(
|
|
4242
|
+
osName: Y(h.name),
|
|
4243
|
+
osVersion: Y(h.version),
|
|
4236
4244
|
userAgent: Y(w)
|
|
4237
4245
|
};
|
|
4238
|
-
}, ei = function(u, l,
|
|
4246
|
+
}, ei = function(u, l, h, w) {
|
|
4239
4247
|
return {
|
|
4240
4248
|
isConsole: u,
|
|
4241
4249
|
engineName: Y(l.name),
|
|
4242
4250
|
engineVersion: Y(l.version),
|
|
4243
|
-
osName: Y(
|
|
4244
|
-
osVersion: Y(
|
|
4251
|
+
osName: Y(h.name),
|
|
4252
|
+
osVersion: Y(h.version),
|
|
4245
4253
|
userAgent: Y(w)
|
|
4246
4254
|
};
|
|
4247
|
-
}, di = function(u, l,
|
|
4255
|
+
}, di = function(u, l, h, w) {
|
|
4248
4256
|
return {
|
|
4249
4257
|
isWearable: u,
|
|
4250
4258
|
engineName: Y(l.name),
|
|
4251
4259
|
engineVersion: Y(l.version),
|
|
4252
|
-
osName: Y(
|
|
4253
|
-
osVersion: Y(
|
|
4260
|
+
osName: Y(h.name),
|
|
4261
|
+
osVersion: Y(h.version),
|
|
4254
4262
|
userAgent: Y(w)
|
|
4255
4263
|
};
|
|
4256
|
-
}, Ni = function(u, l,
|
|
4264
|
+
}, Ni = function(u, l, h, w, ne) {
|
|
4257
4265
|
return {
|
|
4258
4266
|
isEmbedded: u,
|
|
4259
4267
|
vendor: Y(l.vendor),
|
|
4260
4268
|
model: Y(l.model),
|
|
4261
|
-
engineName: Y(
|
|
4262
|
-
engineVersion: Y(
|
|
4269
|
+
engineName: Y(h.name),
|
|
4270
|
+
engineVersion: Y(h.version),
|
|
4263
4271
|
osName: Y(w.name),
|
|
4264
4272
|
osVersion: Y(w.version),
|
|
4265
4273
|
userAgent: Y(ne)
|
|
4266
4274
|
};
|
|
4267
4275
|
};
|
|
4268
4276
|
function Oi(f) {
|
|
4269
|
-
var u = f ? a(f) : N, l = u.device,
|
|
4277
|
+
var u = f ? a(f) : N, l = u.device, h = u.browser, w = u.engine, ne = u.os, Oe = u.ua, Ue = me(l.type), et = Ue.isBrowser, js = Ue.isMobile, ys = Ue.isTablet, br = Ue.isSmartTV, Sr = Ue.isConsole, Cr = Ue.isWearable, vr = Ue.isEmbedded;
|
|
4270
4278
|
if (et)
|
|
4271
|
-
return Fe(et,
|
|
4272
|
-
if (_r)
|
|
4273
|
-
return Be(_r, w, ne, Oe);
|
|
4279
|
+
return Fe(et, h, w, ne, Oe);
|
|
4274
4280
|
if (br)
|
|
4275
|
-
return
|
|
4276
|
-
if (Is || js)
|
|
4277
|
-
return Mi(Ue, l, ne, Oe);
|
|
4281
|
+
return Be(br, w, ne, Oe);
|
|
4278
4282
|
if (Sr)
|
|
4279
|
-
return
|
|
4283
|
+
return ei(Sr, w, ne, Oe);
|
|
4284
|
+
if (js || ys)
|
|
4285
|
+
return Mi(Ue, l, ne, Oe);
|
|
4280
4286
|
if (Cr)
|
|
4281
|
-
return
|
|
4287
|
+
return di(Cr, w, ne, Oe);
|
|
4288
|
+
if (vr)
|
|
4289
|
+
return Ni(vr, l, w, ne, Oe);
|
|
4282
4290
|
}
|
|
4283
4291
|
var ai = function(u) {
|
|
4284
4292
|
var l = u.type;
|
|
@@ -4286,7 +4294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4286
4294
|
}, ui = function(u) {
|
|
4287
4295
|
var l = u.type;
|
|
4288
4296
|
return l === ce.Tablet;
|
|
4289
|
-
},
|
|
4297
|
+
}, Ei = function(u) {
|
|
4290
4298
|
var l = u.type;
|
|
4291
4299
|
return l === ce.Mobile || l === ce.Tablet;
|
|
4292
4300
|
}, ii = function(u) {
|
|
@@ -4304,7 +4312,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4304
4312
|
}, A = function(u) {
|
|
4305
4313
|
var l = u.type;
|
|
4306
4314
|
return l === ce.Embedded;
|
|
4307
|
-
},
|
|
4315
|
+
}, x = function(u) {
|
|
4308
4316
|
var l = u.vendor;
|
|
4309
4317
|
return Y(l);
|
|
4310
4318
|
}, k = function(u) {
|
|
@@ -4355,60 +4363,60 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4355
4363
|
}, Se = function(u) {
|
|
4356
4364
|
var l = u.name;
|
|
4357
4365
|
return l === H.MobileSafari;
|
|
4358
|
-
},
|
|
4366
|
+
}, xi = function(u) {
|
|
4359
4367
|
var l = u.name;
|
|
4360
4368
|
return l === H.Opera;
|
|
4361
4369
|
}, ki = function(u) {
|
|
4362
4370
|
var l = u.name;
|
|
4363
4371
|
return l === H.InternetExplorer || l === H.Ie;
|
|
4364
|
-
},
|
|
4372
|
+
}, Mr = function(u) {
|
|
4365
4373
|
var l = u.name;
|
|
4366
4374
|
return l === H.MIUI;
|
|
4367
|
-
},
|
|
4375
|
+
}, ar = function(u) {
|
|
4368
4376
|
var l = u.name;
|
|
4369
4377
|
return l === H.SamsungBrowser;
|
|
4370
|
-
}, ar = function(u) {
|
|
4371
|
-
var l = u.version;
|
|
4372
|
-
return Y(l);
|
|
4373
4378
|
}, ur = function(u) {
|
|
4374
|
-
var l = u.
|
|
4379
|
+
var l = u.version;
|
|
4375
4380
|
return Y(l);
|
|
4376
4381
|
}, lr = function(u) {
|
|
4377
|
-
var l = u.
|
|
4382
|
+
var l = u.major;
|
|
4378
4383
|
return Y(l);
|
|
4379
4384
|
}, cr = function(u) {
|
|
4380
4385
|
var l = u.name;
|
|
4381
4386
|
return Y(l);
|
|
4382
4387
|
}, gr = function(u) {
|
|
4388
|
+
var l = u.name;
|
|
4389
|
+
return Y(l);
|
|
4390
|
+
}, dr = function(u) {
|
|
4383
4391
|
var l = u.version;
|
|
4384
4392
|
return Y(l);
|
|
4385
|
-
},
|
|
4393
|
+
}, Nr = function() {
|
|
4386
4394
|
var u = re(), l = u && u.userAgent && u.userAgent.toLowerCase();
|
|
4387
4395
|
return typeof l == "string" ? /electron/.test(l) : !1;
|
|
4388
|
-
},
|
|
4396
|
+
}, hi = function(u) {
|
|
4389
4397
|
return typeof u == "string" && u.indexOf("Edg/") !== -1;
|
|
4390
|
-
},
|
|
4398
|
+
}, Dr = function() {
|
|
4391
4399
|
var u = re();
|
|
4392
4400
|
return u && (/iPad|iPhone|iPod/.test(u.platform) || u.platform === "MacIntel" && u.maxTouchPoints > 1) && !window.MSStream;
|
|
4393
4401
|
}, $e = function() {
|
|
4394
4402
|
return qe("iPad");
|
|
4395
|
-
}, Dr = function() {
|
|
4396
|
-
return qe("iPhone");
|
|
4397
4403
|
}, Ir = function() {
|
|
4404
|
+
return qe("iPhone");
|
|
4405
|
+
}, jr = function() {
|
|
4398
4406
|
return qe("iPod");
|
|
4399
|
-
},
|
|
4407
|
+
}, yr = function(u) {
|
|
4400
4408
|
return Y(u);
|
|
4401
4409
|
};
|
|
4402
|
-
function
|
|
4403
|
-
var u = f || N, l = u.device,
|
|
4410
|
+
function fr(f) {
|
|
4411
|
+
var u = f || N, l = u.device, h = u.browser, w = u.os, ne = u.engine, Oe = u.ua;
|
|
4404
4412
|
return {
|
|
4405
4413
|
isSmartTV: ii(l),
|
|
4406
4414
|
isConsole: g(l),
|
|
4407
4415
|
isWearable: We(l),
|
|
4408
4416
|
isEmbedded: A(l),
|
|
4409
|
-
isMobileSafari: Se(
|
|
4410
|
-
isChromium: be(
|
|
4411
|
-
isMobile:
|
|
4417
|
+
isMobileSafari: Se(h) || $e(),
|
|
4418
|
+
isChromium: be(h),
|
|
4419
|
+
isMobile: Ei(l) || $e(),
|
|
4412
4420
|
isMobileOnly: ai(l),
|
|
4413
4421
|
isTablet: ui(l) || $e(),
|
|
4414
4422
|
isBrowser: li(l),
|
|
@@ -4416,97 +4424,97 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4416
4424
|
isAndroid: b(w),
|
|
4417
4425
|
isWinPhone: W(w),
|
|
4418
4426
|
isIOS: ae(w) || $e(),
|
|
4419
|
-
isChrome: V(
|
|
4420
|
-
isFirefox: te(
|
|
4421
|
-
isSafari: F(
|
|
4422
|
-
isOpera:
|
|
4423
|
-
isIE: ki(
|
|
4427
|
+
isChrome: V(h),
|
|
4428
|
+
isFirefox: te(h),
|
|
4429
|
+
isSafari: F(h),
|
|
4430
|
+
isOpera: xi(h),
|
|
4431
|
+
isIE: ki(h),
|
|
4424
4432
|
osVersion: Z(w),
|
|
4425
4433
|
osName: $(w),
|
|
4426
|
-
fullBrowserVersion:
|
|
4427
|
-
browserVersion:
|
|
4428
|
-
browserName:
|
|
4429
|
-
mobileVendor:
|
|
4434
|
+
fullBrowserVersion: ur(h),
|
|
4435
|
+
browserVersion: lr(h),
|
|
4436
|
+
browserName: cr(h),
|
|
4437
|
+
mobileVendor: x(l),
|
|
4430
4438
|
mobileModel: k(l),
|
|
4431
|
-
engineName:
|
|
4432
|
-
engineVersion:
|
|
4433
|
-
getUA:
|
|
4434
|
-
isEdge: pe(
|
|
4435
|
-
isYandex: oe(
|
|
4439
|
+
engineName: gr(ne),
|
|
4440
|
+
engineVersion: dr(ne),
|
|
4441
|
+
getUA: yr(Oe),
|
|
4442
|
+
isEdge: pe(h) || hi(Oe),
|
|
4443
|
+
isYandex: oe(h),
|
|
4436
4444
|
deviceType: S(l),
|
|
4437
|
-
isIOS13:
|
|
4445
|
+
isIOS13: Dr(),
|
|
4438
4446
|
isIPad13: $e(),
|
|
4439
|
-
isIPhone13:
|
|
4440
|
-
isIPod13:
|
|
4441
|
-
isElectron:
|
|
4442
|
-
isEdgeChromium:
|
|
4443
|
-
isLegacyEdge: pe(
|
|
4447
|
+
isIPhone13: Ir(),
|
|
4448
|
+
isIPod13: jr(),
|
|
4449
|
+
isElectron: Nr(),
|
|
4450
|
+
isEdgeChromium: hi(Oe),
|
|
4451
|
+
isLegacyEdge: pe(h) && !hi(Oe),
|
|
4444
4452
|
isWindows: R(w),
|
|
4445
4453
|
isMacOs: B(w),
|
|
4446
|
-
isMIUI:
|
|
4447
|
-
isSamsungBrowser:
|
|
4454
|
+
isMIUI: Mr(h),
|
|
4455
|
+
isSamsungBrowser: ar(h)
|
|
4448
4456
|
};
|
|
4449
4457
|
}
|
|
4450
|
-
var
|
|
4458
|
+
var Ar = ii(M), Tr = g(M), zr = We(M), Oo = A(M), Eo = Se(o) || $e(), xo = be(o), qi = Ei(M) || $e(), Or = ai(M), Er = ui(M) || $e(), xr = li(M), ho = li(M), hr = b(j), mr = W(j), wr = ae(j) || $e(), mo = V(o), wo = te(o), po = F(o), _o = xi(o), pr = ki(o), bo = Z(j), So = $(j), Co = ur(o), vo = lr(o), Lo = cr(o), ko = x(M), Uo = k(M), Qo = gr(I), Yo = dr(I), Ro = yr(O), Po = pe(o) || hi(O), Vo = oe(o), Fo = S(M), Bo = Dr(), Wo = $e(), Zo = Ir(), Ho = jr(), Go = Nr(), Jo = hi(O), $o = pe(o) && !hi(O), Xo = R(j), Ko = B(j), qo = Mr(o), es = ar(o), is = function(u) {
|
|
4451
4459
|
if (!u || typeof u != "string") {
|
|
4452
4460
|
console.error("No valid user agent string was provided");
|
|
4453
4461
|
return;
|
|
4454
4462
|
}
|
|
4455
|
-
var l = a(u),
|
|
4456
|
-
return
|
|
4457
|
-
device:
|
|
4463
|
+
var l = a(u), h = l.device, w = l.browser, ne = l.os, Oe = l.engine, Ue = l.ua;
|
|
4464
|
+
return fr({
|
|
4465
|
+
device: h,
|
|
4458
4466
|
browser: w,
|
|
4459
4467
|
os: ne,
|
|
4460
4468
|
engine: Oe,
|
|
4461
4469
|
ua: Ue
|
|
4462
4470
|
});
|
|
4463
|
-
}, is = function(u) {
|
|
4464
|
-
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4465
|
-
return hr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4466
4471
|
}, ts = function(u) {
|
|
4467
|
-
var l = u.renderWithFragment,
|
|
4468
|
-
return
|
|
4472
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4473
|
+
return hr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4469
4474
|
}, rs = function(u) {
|
|
4470
|
-
var l = u.renderWithFragment,
|
|
4471
|
-
return
|
|
4475
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4476
|
+
return xr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4472
4477
|
}, ns = function(u) {
|
|
4473
|
-
var l = u.renderWithFragment,
|
|
4474
|
-
return
|
|
4478
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4479
|
+
return pr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4475
4480
|
}, os = function(u) {
|
|
4476
|
-
var l = u.renderWithFragment,
|
|
4477
|
-
return
|
|
4481
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4482
|
+
return wr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4478
4483
|
}, ss = function(u) {
|
|
4479
|
-
var l = u.renderWithFragment,
|
|
4480
|
-
return
|
|
4484
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4485
|
+
return qi ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4481
4486
|
}, Ms = function(u) {
|
|
4482
|
-
var l = u.renderWithFragment,
|
|
4483
|
-
return Er ? l ? i.createElement(t.Fragment, null,
|
|
4487
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4488
|
+
return Er ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4484
4489
|
}, as = function(u) {
|
|
4485
|
-
var l = u.renderWithFragment,
|
|
4490
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4491
|
+
return mr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4492
|
+
}, us = function(u) {
|
|
4493
|
+
var l = u.renderWithFragment, h = u.children;
|
|
4486
4494
|
u.viewClassName, u.style;
|
|
4487
4495
|
var w = U(u, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
4488
|
-
return
|
|
4489
|
-
}, us = function(u) {
|
|
4490
|
-
var l = u.renderWithFragment, E = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4491
|
-
return fr ? l ? i.createElement(t.Fragment, null, E) : i.createElement("div", w, E) : null;
|
|
4496
|
+
return Or ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4492
4497
|
}, ls = function(u) {
|
|
4493
|
-
var l = u.renderWithFragment,
|
|
4494
|
-
return Ar ? l ? i.createElement(t.Fragment, null,
|
|
4498
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4499
|
+
return Ar ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4495
4500
|
}, cs = function(u) {
|
|
4496
|
-
var l = u.renderWithFragment,
|
|
4497
|
-
return Tr ? l ? i.createElement(t.Fragment, null,
|
|
4501
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4502
|
+
return Tr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4498
4503
|
}, gs = function(u) {
|
|
4499
|
-
var l = u.renderWithFragment,
|
|
4504
|
+
var l = u.renderWithFragment, h = u.children, w = U(u, ["renderWithFragment", "children"]);
|
|
4505
|
+
return zr ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", w, h) : null;
|
|
4506
|
+
}, ds = function(u) {
|
|
4507
|
+
var l = u.renderWithFragment, h = u.children;
|
|
4500
4508
|
u.viewClassName, u.style;
|
|
4501
4509
|
var w = u.condition, ne = U(u, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
4502
|
-
return w ? l ? i.createElement(t.Fragment, null,
|
|
4510
|
+
return w ? l ? i.createElement(t.Fragment, null, h) : i.createElement("div", ne, h) : null;
|
|
4503
4511
|
};
|
|
4504
|
-
function
|
|
4512
|
+
function Ns(f) {
|
|
4505
4513
|
return /* @__PURE__ */ (function(u) {
|
|
4506
4514
|
K(l, u);
|
|
4507
|
-
function l(
|
|
4515
|
+
function l(h) {
|
|
4508
4516
|
var w;
|
|
4509
|
-
return m(this, l), w = L(this, le(l).call(this,
|
|
4517
|
+
return m(this, l), w = L(this, le(l).call(this, h)), w.isEventListenerAdded = !1, w.handleOrientationChange = w.handleOrientationChange.bind(ee(w)), w.onOrientationChange = w.onOrientationChange.bind(ee(w)), w.onPageLoad = w.onPageLoad.bind(ee(w)), w.state = {
|
|
4510
4518
|
isLandscape: !1,
|
|
4511
4519
|
isPortrait: !1
|
|
4512
4520
|
}, w;
|
|
@@ -4552,7 +4560,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4552
4560
|
}]), l;
|
|
4553
4561
|
})(i.Component);
|
|
4554
4562
|
}
|
|
4555
|
-
function
|
|
4563
|
+
function Ds() {
|
|
4556
4564
|
var f = t.useState(function() {
|
|
4557
4565
|
var ne = window.innerWidth > window.innerHeight ? 90 : 0;
|
|
4558
4566
|
return {
|
|
@@ -4560,13 +4568,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4560
4568
|
isLandscape: ne === 90,
|
|
4561
4569
|
orientation: ne === 0 ? "portrait" : "landscape"
|
|
4562
4570
|
};
|
|
4563
|
-
}), u = J(f, 2), l = u[0],
|
|
4571
|
+
}), u = J(f, 2), l = u[0], h = u[1], w = t.useCallback(function() {
|
|
4564
4572
|
var ne = window.innerWidth > window.innerHeight ? 90 : 0, Oe = {
|
|
4565
4573
|
isPortrait: ne === 0,
|
|
4566
4574
|
isLandscape: ne === 90,
|
|
4567
4575
|
orientation: ne === 0 ? "portrait" : "landscape"
|
|
4568
4576
|
};
|
|
4569
|
-
l.orientation !== Oe.orientation &&
|
|
4577
|
+
l.orientation !== Oe.orientation && h(Oe);
|
|
4570
4578
|
}, [l.orientation]);
|
|
4571
4579
|
return t.useEffect(function() {
|
|
4572
4580
|
return (typeof window == "undefined" ? "undefined" : z(window)) !== void 0 && qi && (w(), window.addEventListener("load", w, !1), window.addEventListener("resize", w, !1)), function() {
|
|
@@ -4574,20 +4582,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4574
4582
|
};
|
|
4575
4583
|
}, [w]), l;
|
|
4576
4584
|
}
|
|
4577
|
-
function
|
|
4585
|
+
function _r(f) {
|
|
4578
4586
|
var u = f || window.navigator.userAgent;
|
|
4579
4587
|
return a(u);
|
|
4580
4588
|
}
|
|
4581
|
-
function
|
|
4582
|
-
var u = f || window.navigator.userAgent, l =
|
|
4583
|
-
return [
|
|
4589
|
+
function Is(f) {
|
|
4590
|
+
var u = f || window.navigator.userAgent, l = _r(u), h = fr(l);
|
|
4591
|
+
return [h, l];
|
|
4584
4592
|
}
|
|
4585
|
-
return Q.AndroidView =
|
|
4593
|
+
return Q.AndroidView = ts, Q.BrowserTypes = H, Q.BrowserView = rs, Q.ConsoleView = cs, Q.CustomView = ds, Q.IEView = ns, Q.IOSView = os, Q.MobileOnlyView = us, Q.MobileView = ss, Q.OsTypes = ge, Q.SmartTVView = ls, Q.TabletView = Ms, Q.WearableView = gs, Q.WinPhoneView = as, Q.browserName = Lo, Q.browserVersion = vo, Q.deviceDetect = Oi, Q.deviceType = Fo, Q.engineName = Qo, Q.engineVersion = Yo, Q.fullBrowserVersion = Co, Q.getSelectorsByUserAgent = is, Q.getUA = Ro, Q.isAndroid = hr, Q.isBrowser = xr, Q.isChrome = mo, Q.isChromium = xo, Q.isConsole = Tr, Q.isDesktop = ho, Q.isEdge = Po, Q.isEdgeChromium = Jo, Q.isElectron = Go, Q.isEmbedded = Oo, Q.isFirefox = wo, Q.isIE = pr, Q.isIOS = wr, Q.isIOS13 = Bo, Q.isIPad13 = Wo, Q.isIPhone13 = Zo, Q.isIPod13 = Ho, Q.isLegacyEdge = $o, Q.isMIUI = qo, Q.isMacOs = Ko, Q.isMobile = qi, Q.isMobileOnly = Or, Q.isMobileSafari = Eo, Q.isOpera = _o, Q.isSafari = po, Q.isSamsungBrowser = es, Q.isSmartTV = Ar, Q.isTablet = Er, Q.isWearable = zr, Q.isWinPhone = mr, Q.isWindows = Xo, Q.isYandex = Vo, Q.mobileModel = Uo, Q.mobileVendor = ko, Q.osName = So, Q.osVersion = bo, Q.parseUserAgent = a, Q.setUserAgent = ve, Q.useDeviceData = _r, Q.useDeviceSelectors = Is, Q.useMobileOrientation = Ds, Q.withOrientationChange = Ns, Q;
|
|
4586
4594
|
}
|
|
4587
|
-
var Ii =
|
|
4588
|
-
const
|
|
4595
|
+
var Ii = ga();
|
|
4596
|
+
const da = {
|
|
4589
4597
|
display: "none"
|
|
4590
|
-
},
|
|
4598
|
+
}, Na = {
|
|
4591
4599
|
display: "flex",
|
|
4592
4600
|
alignItems: "center",
|
|
4593
4601
|
justifyContent: "center",
|
|
@@ -4597,7 +4605,7 @@ const la = {
|
|
|
4597
4605
|
borderRadius: "16px",
|
|
4598
4606
|
background: "#7e57c5",
|
|
4599
4607
|
cursor: "pointer"
|
|
4600
|
-
},
|
|
4608
|
+
}, Da = {
|
|
4601
4609
|
position: "relative",
|
|
4602
4610
|
display: "flex",
|
|
4603
4611
|
alignItems: "center",
|
|
@@ -4606,7 +4614,7 @@ const la = {
|
|
|
4606
4614
|
width: "100%",
|
|
4607
4615
|
minHeight: "100%",
|
|
4608
4616
|
overflow: "auto"
|
|
4609
|
-
},
|
|
4617
|
+
}, Ia = ({
|
|
4610
4618
|
header: e,
|
|
4611
4619
|
footer: t,
|
|
4612
4620
|
backgroundColor: i,
|
|
@@ -4622,7 +4630,7 @@ const la = {
|
|
|
4622
4630
|
const z = (yield Promise.allSettled(
|
|
4623
4631
|
N.map((m) => Ie(null, null, function* () {
|
|
4624
4632
|
return {
|
|
4625
|
-
content: yield
|
|
4633
|
+
content: yield Un(m),
|
|
4626
4634
|
metadata: {
|
|
4627
4635
|
name: m.name,
|
|
4628
4636
|
type: m.type,
|
|
@@ -4649,7 +4657,7 @@ const la = {
|
|
|
4649
4657
|
return Ve(() => {
|
|
4650
4658
|
Ie(null, null, function* () {
|
|
4651
4659
|
if (Ii.isDesktop) return;
|
|
4652
|
-
const a = yield
|
|
4660
|
+
const a = yield Ws();
|
|
4653
4661
|
(a === "denied" || a === "error") && o({
|
|
4654
4662
|
cancel: !1,
|
|
4655
4663
|
permissionDenied: !0,
|
|
@@ -4659,14 +4667,14 @@ const la = {
|
|
|
4659
4667
|
}, []), /* @__PURE__ */ d(gi, { header: e, footer: t, backgroundColor: i, children: /* @__PURE__ */ d(Ce, { children: /* @__PURE__ */ d(
|
|
4660
4668
|
"div",
|
|
4661
4669
|
{
|
|
4662
|
-
style: G(T({},
|
|
4670
|
+
style: G(T({}, Da), {
|
|
4663
4671
|
justifyContent: "center"
|
|
4664
4672
|
}),
|
|
4665
4673
|
children: [
|
|
4666
4674
|
/* @__PURE__ */ d(
|
|
4667
4675
|
"input",
|
|
4668
4676
|
G(T({
|
|
4669
|
-
style:
|
|
4677
|
+
style: da,
|
|
4670
4678
|
ref: s,
|
|
4671
4679
|
type: "file",
|
|
4672
4680
|
accept: "image/*",
|
|
@@ -4675,7 +4683,7 @@ const la = {
|
|
|
4675
4683
|
onInput: I
|
|
4676
4684
|
})
|
|
4677
4685
|
),
|
|
4678
|
-
/* @__PURE__ */ d("button", { style:
|
|
4686
|
+
/* @__PURE__ */ d("button", { style: Na, onClick: j, children: /* @__PURE__ */ d(_e, { imageId: (c = (O = r == null ? void 0 : r[0]) == null ? void 0 : O.image) == null ? void 0 : c.imageId }) })
|
|
4679
4687
|
]
|
|
4680
4688
|
}
|
|
4681
4689
|
) }) });
|
|
@@ -4687,7 +4695,7 @@ const la = {
|
|
|
4687
4695
|
} catch (t) {
|
|
4688
4696
|
return "unknown";
|
|
4689
4697
|
}
|
|
4690
|
-
}),
|
|
4698
|
+
}), ja = () => Ie(null, null, function* () {
|
|
4691
4699
|
try {
|
|
4692
4700
|
return yield navigator.permissions.query({ name: "geolocation" });
|
|
4693
4701
|
} catch (e) {
|
|
@@ -4733,13 +4741,13 @@ const la = {
|
|
|
4733
4741
|
e
|
|
4734
4742
|
);
|
|
4735
4743
|
});
|
|
4736
|
-
}),
|
|
4744
|
+
}), ya = {
|
|
4737
4745
|
height: "100%",
|
|
4738
4746
|
fontFamily: "sans-serif",
|
|
4739
4747
|
display: "flex",
|
|
4740
4748
|
flexDirection: "column",
|
|
4741
4749
|
gap: "15px"
|
|
4742
|
-
},
|
|
4750
|
+
}, fa = {
|
|
4743
4751
|
flex: "1 1 100%",
|
|
4744
4752
|
display: "flex",
|
|
4745
4753
|
justifyContent: "flex-start",
|
|
@@ -4751,7 +4759,7 @@ const la = {
|
|
|
4751
4759
|
width: "100%",
|
|
4752
4760
|
overflow: "auto",
|
|
4753
4761
|
position: "relative"
|
|
4754
|
-
},
|
|
4762
|
+
}, Aa = {
|
|
4755
4763
|
position: "absolute",
|
|
4756
4764
|
// TODO: move popup with styles with overlay styles to common component (BaseContainer?)
|
|
4757
4765
|
width: "100%",
|
|
@@ -4766,25 +4774,25 @@ const la = {
|
|
|
4766
4774
|
zIndex: 1e3,
|
|
4767
4775
|
pointerEvents: "auto",
|
|
4768
4776
|
cursor: "default"
|
|
4769
|
-
},
|
|
4777
|
+
}, Ta = {
|
|
4770
4778
|
width: "100%",
|
|
4771
4779
|
height: "auto",
|
|
4772
4780
|
marginBottom: "32px",
|
|
4773
4781
|
aspectRatio: 1.61
|
|
4774
|
-
},
|
|
4782
|
+
}, za = {
|
|
4775
4783
|
marginBottom: 20,
|
|
4776
4784
|
lineHeight: "39.2px",
|
|
4777
4785
|
width: "100%"
|
|
4778
|
-
},
|
|
4786
|
+
}, Oa = {
|
|
4779
4787
|
lineHeight: "28px",
|
|
4780
4788
|
fontWeight: "400",
|
|
4781
4789
|
width: "100%"
|
|
4782
|
-
},
|
|
4790
|
+
}, Ea = {
|
|
4783
4791
|
position: "relative",
|
|
4784
|
-
padding: "32px 24px 0
|
|
4792
|
+
padding: "32px 24px 0",
|
|
4785
4793
|
border: "1px solid rgba(0, 0, 0, 0.06)",
|
|
4786
4794
|
width: "min(400px, calc(100vw - 32px))"
|
|
4787
|
-
},
|
|
4795
|
+
}, xa = {
|
|
4788
4796
|
marginBottom: "10px",
|
|
4789
4797
|
fontWeight: 500,
|
|
4790
4798
|
display: "-webkit-box",
|
|
@@ -4793,20 +4801,20 @@ const la = {
|
|
|
4793
4801
|
overflow: "hidden",
|
|
4794
4802
|
textOverflow: "ellipsis",
|
|
4795
4803
|
lineClamp: 2
|
|
4796
|
-
},
|
|
4804
|
+
}, ha = {
|
|
4797
4805
|
marginBottom: "84px",
|
|
4798
4806
|
fontWeight: 400
|
|
4799
|
-
},
|
|
4807
|
+
}, ma = {
|
|
4800
4808
|
height: "100%",
|
|
4801
4809
|
overflow: "scroll",
|
|
4802
4810
|
maxHeight: "calc(100dvh - 190px)"
|
|
4803
|
-
},
|
|
4811
|
+
}, wa = {
|
|
4804
4812
|
position: "absolute",
|
|
4805
4813
|
bottom: 0,
|
|
4806
|
-
|
|
4814
|
+
insetInline: 0,
|
|
4807
4815
|
padding: "24px",
|
|
4808
4816
|
width: "100%"
|
|
4809
|
-
},
|
|
4817
|
+
}, pa = ({
|
|
4810
4818
|
title: e,
|
|
4811
4819
|
header: t,
|
|
4812
4820
|
footer: i,
|
|
@@ -4819,13 +4827,13 @@ const la = {
|
|
|
4819
4827
|
getLocationTimeout: j
|
|
4820
4828
|
}) => {
|
|
4821
4829
|
var P, se;
|
|
4822
|
-
const O = Nt.FORM, { perform: c } = zi(), { setIsProcessingCallback: a } =
|
|
4830
|
+
const O = Nt.FORM, { perform: c } = zi(), { setIsProcessingCallback: a } = Qs(), [N, D] = we(!1), y = () => {
|
|
4823
4831
|
var U;
|
|
4824
4832
|
(U = m == null ? void 0 : m.popups) != null && U.system_restricted || D(!0);
|
|
4825
4833
|
}, z = () => {
|
|
4826
4834
|
var U;
|
|
4827
4835
|
(U = m == null ? void 0 : m.popups) != null && U.system_restricted || D(!1);
|
|
4828
|
-
}, { devSettings: m } =
|
|
4836
|
+
}, { devSettings: m } = Us(), _ = !!((se = (P = m == null ? void 0 : m.popups) == null ? void 0 : P.system_restricted) != null && se.isOpen);
|
|
4829
4837
|
Ve(() => {
|
|
4830
4838
|
m && D(_);
|
|
4831
4839
|
}, [_, m]);
|
|
@@ -4833,7 +4841,7 @@ const la = {
|
|
|
4833
4841
|
enableHighAccuracy: !0,
|
|
4834
4842
|
timeout: typeof j == "number" && j > 0 ? j * 1e3 : 15e3,
|
|
4835
4843
|
maximumAge: 6e4
|
|
4836
|
-
},
|
|
4844
|
+
}, E = M == null ? void 0 : M.find((U) => U.reason === Ps.SYSTEM_RESTRICTED);
|
|
4837
4845
|
ci(() => {
|
|
4838
4846
|
Ii.isSafari || I || a == null || a(!0);
|
|
4839
4847
|
}, []), Ve(() => {
|
|
@@ -4853,7 +4861,7 @@ const la = {
|
|
|
4853
4861
|
if (Ii.isSafari) return;
|
|
4854
4862
|
let U = !0, ee = null;
|
|
4855
4863
|
return Ie(null, null, function* () {
|
|
4856
|
-
const L = yield
|
|
4864
|
+
const L = yield ja();
|
|
4857
4865
|
L && (ee = L, L.onchange = () => Ie(null, null, function* () {
|
|
4858
4866
|
if (L.state === "denied" && (a == null || a(!0), c(
|
|
4859
4867
|
{
|
|
@@ -4899,11 +4907,11 @@ const la = {
|
|
|
4899
4907
|
U.preventDefault(), z();
|
|
4900
4908
|
};
|
|
4901
4909
|
return /* @__PURE__ */ d(gi, { header: t, footer: i, backgroundColor: s, children: [
|
|
4902
|
-
/* @__PURE__ */ d("div", { style:
|
|
4903
|
-
/* @__PURE__ */ d("div", { style:
|
|
4904
|
-
r && /* @__PURE__ */ d("div", { style:
|
|
4905
|
-
e && /* @__PURE__ */ d("div", { style:
|
|
4906
|
-
n && /* @__PURE__ */ d("div", { style:
|
|
4910
|
+
/* @__PURE__ */ d("div", { style: ya, children: [
|
|
4911
|
+
/* @__PURE__ */ d("div", { style: fa, children: [
|
|
4912
|
+
r && /* @__PURE__ */ d("div", { style: Ta, children: /* @__PURE__ */ d(_e, T({}, r)) }),
|
|
4913
|
+
e && /* @__PURE__ */ d("div", { style: za, children: /* @__PURE__ */ d(Te, T({}, e)) }),
|
|
4914
|
+
n && /* @__PURE__ */ d("div", { style: Oa, children: /* @__PURE__ */ d(jt, T({}, n)) })
|
|
4907
4915
|
] }),
|
|
4908
4916
|
!!(o != null && o.length) && /* @__PURE__ */ d(
|
|
4909
4917
|
"div",
|
|
@@ -4923,28 +4931,28 @@ const la = {
|
|
|
4923
4931
|
}
|
|
4924
4932
|
)
|
|
4925
4933
|
] }),
|
|
4926
|
-
|
|
4934
|
+
E && N && /* @__PURE__ */ d(
|
|
4927
4935
|
"div",
|
|
4928
4936
|
{
|
|
4929
|
-
style:
|
|
4937
|
+
style: Aa,
|
|
4930
4938
|
onPointerDown: (U) => {
|
|
4931
4939
|
U.preventDefault(), U.stopPropagation(), z();
|
|
4932
4940
|
},
|
|
4933
4941
|
children: /* @__PURE__ */ d(
|
|
4934
4942
|
"div",
|
|
4935
4943
|
{
|
|
4936
|
-
style: G(T({},
|
|
4937
|
-
borderRadius: (
|
|
4938
|
-
backgroundColor: (
|
|
4944
|
+
style: G(T({}, Ea), {
|
|
4945
|
+
borderRadius: (E == null ? void 0 : E.cornerRadius) || "27px",
|
|
4946
|
+
backgroundColor: (E == null ? void 0 : E.backgroundColor) || "#ffffff"
|
|
4939
4947
|
}),
|
|
4940
4948
|
children: [
|
|
4941
|
-
/* @__PURE__ */ d("div", { style:
|
|
4942
|
-
/* @__PURE__ */ d("div", { style:
|
|
4943
|
-
|
|
4949
|
+
/* @__PURE__ */ d("div", { style: xa, children: /* @__PURE__ */ d(Te, T({}, T({ fontSize: "24px" }, E.title))) }),
|
|
4950
|
+
/* @__PURE__ */ d("div", { style: ha, children: /* @__PURE__ */ d("div", { style: ma, children: /* @__PURE__ */ d(Te, T({}, T({ fontSize: "17px" }, E.message))) }) }),
|
|
4951
|
+
E.actionButton1 && /* @__PURE__ */ d("div", { style: wa, children: /* @__PURE__ */ d(
|
|
4944
4952
|
ut,
|
|
4945
4953
|
T(T({
|
|
4946
4954
|
dataTestId: "question-button"
|
|
4947
|
-
},
|
|
4955
|
+
}, E.actionButton1), E.actionButton1.type === "FORM" ? { onClick: le } : {})
|
|
4948
4956
|
) })
|
|
4949
4957
|
]
|
|
4950
4958
|
}
|
|
@@ -4952,13 +4960,13 @@ const la = {
|
|
|
4952
4960
|
}
|
|
4953
4961
|
)
|
|
4954
4962
|
] });
|
|
4955
|
-
},
|
|
4963
|
+
}, _a = ({ moduleProps: e }) => {
|
|
4956
4964
|
var o;
|
|
4957
4965
|
const { templateId: t, templateLayout: i } = e, { perform: r } = zi();
|
|
4958
|
-
if (!t || !i) return /* @__PURE__ */ d(
|
|
4966
|
+
if (!t || !i) return /* @__PURE__ */ d($r, {});
|
|
4959
4967
|
if (t === ri.STATUS)
|
|
4960
4968
|
return /* @__PURE__ */ d(
|
|
4961
|
-
|
|
4969
|
+
qs,
|
|
4962
4970
|
{
|
|
4963
4971
|
header: i == null ? void 0 : i.header,
|
|
4964
4972
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -4971,7 +4979,7 @@ const la = {
|
|
|
4971
4979
|
);
|
|
4972
4980
|
if (t === ri.INFO)
|
|
4973
4981
|
return /* @__PURE__ */ d(
|
|
4974
|
-
|
|
4982
|
+
tM,
|
|
4975
4983
|
{
|
|
4976
4984
|
header: i == null ? void 0 : i.header,
|
|
4977
4985
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -4984,7 +4992,7 @@ const la = {
|
|
|
4984
4992
|
);
|
|
4985
4993
|
if (t === ri.GEOLOCATION)
|
|
4986
4994
|
return /* @__PURE__ */ d(
|
|
4987
|
-
|
|
4995
|
+
pa,
|
|
4988
4996
|
{
|
|
4989
4997
|
header: i == null ? void 0 : i.header,
|
|
4990
4998
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -5000,7 +5008,7 @@ const la = {
|
|
|
5000
5008
|
);
|
|
5001
5009
|
if (t === ri.PROGRESS)
|
|
5002
5010
|
return /* @__PURE__ */ d(
|
|
5003
|
-
|
|
5011
|
+
$r,
|
|
5004
5012
|
{
|
|
5005
5013
|
header: i == null ? void 0 : i.header,
|
|
5006
5014
|
footer: i == null ? void 0 : i.footer,
|
|
@@ -5010,7 +5018,7 @@ const la = {
|
|
|
5010
5018
|
);
|
|
5011
5019
|
if (t === ri.INFO_DETAILS)
|
|
5012
5020
|
return /* @__PURE__ */ d(
|
|
5013
|
-
|
|
5021
|
+
MM,
|
|
5014
5022
|
{
|
|
5015
5023
|
header: i == null ? void 0 : i.header,
|
|
5016
5024
|
title: i == null ? void 0 : i.title,
|
|
@@ -5022,7 +5030,7 @@ const la = {
|
|
|
5022
5030
|
);
|
|
5023
5031
|
if (t === ri.CAMERA)
|
|
5024
5032
|
return /* @__PURE__ */ d(
|
|
5025
|
-
|
|
5033
|
+
Ia,
|
|
5026
5034
|
{
|
|
5027
5035
|
header: i == null ? void 0 : i.header,
|
|
5028
5036
|
buttons: i == null ? void 0 : i.buttons,
|
|
@@ -5033,7 +5041,7 @@ const la = {
|
|
|
5033
5041
|
);
|
|
5034
5042
|
if (t === ri.GALLERY)
|
|
5035
5043
|
return /* @__PURE__ */ d(
|
|
5036
|
-
|
|
5044
|
+
Ma,
|
|
5037
5045
|
{
|
|
5038
5046
|
header: i == null ? void 0 : i.header,
|
|
5039
5047
|
buttons: i == null ? void 0 : i.buttons,
|
|
@@ -5045,7 +5053,7 @@ const la = {
|
|
|
5045
5053
|
if (t === ri.QUESTIONS) {
|
|
5046
5054
|
const s = (o = e.properties) != null && o.length ? JSON.stringify(e.properties) : "default-key";
|
|
5047
5055
|
return /* @__PURE__ */ d(
|
|
5048
|
-
|
|
5056
|
+
ra,
|
|
5049
5057
|
{
|
|
5050
5058
|
dataSource: e.dataSource,
|
|
5051
5059
|
properties: e.properties,
|
|
@@ -5065,24 +5073,37 @@ const la = {
|
|
|
5065
5073
|
});
|
|
5066
5074
|
return r(n), null;
|
|
5067
5075
|
};
|
|
5068
|
-
let
|
|
5069
|
-
const
|
|
5076
|
+
let Et = !1;
|
|
5077
|
+
const va = ({ children: e }) => /* @__PURE__ */ d(Ce, { children: [
|
|
5070
5078
|
/* @__PURE__ */ d("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
5071
5079
|
e
|
|
5072
|
-
] }),
|
|
5080
|
+
] }), ba = ({ children: e, locale: t }) => {
|
|
5081
|
+
const i = Ss(t), r = bs.includes(i) ? pt.RTL : pt.LTR;
|
|
5082
|
+
return /* @__PURE__ */ d(
|
|
5083
|
+
"div",
|
|
5084
|
+
{
|
|
5085
|
+
part: "gui-idv",
|
|
5086
|
+
id: "gui-idv-web-c",
|
|
5087
|
+
dir: r,
|
|
5088
|
+
lang: t,
|
|
5089
|
+
style: { backgroundColor: "white", height: "100%", width: "100%" },
|
|
5090
|
+
children: e
|
|
5091
|
+
}
|
|
5092
|
+
);
|
|
5093
|
+
}, Sa = ({
|
|
5073
5094
|
isProcessing: e,
|
|
5074
5095
|
moduleProps: t,
|
|
5075
5096
|
perform: i,
|
|
5076
5097
|
devSettings: r
|
|
5077
5098
|
}) => /* @__PURE__ */ d(
|
|
5078
|
-
|
|
5099
|
+
ks,
|
|
5079
5100
|
{
|
|
5080
5101
|
perform: (n, o) => i == null ? void 0 : i(n, o),
|
|
5081
5102
|
setIsProcessingCallback: e,
|
|
5082
5103
|
devSettings: r,
|
|
5083
|
-
children: /* @__PURE__ */ d(
|
|
5104
|
+
children: /* @__PURE__ */ d(ba, { locale: t.locale, children: /* @__PURE__ */ d(_a, { moduleProps: t }) })
|
|
5084
5105
|
}
|
|
5085
|
-
), Wi = class Wi extends
|
|
5106
|
+
), Wi = class Wi extends ps {
|
|
5086
5107
|
constructor() {
|
|
5087
5108
|
super(), this._mounted = !1, this._shadowRoot = this.attachShadow({ mode: "open" }), this.props = null;
|
|
5088
5109
|
}
|
|
@@ -5124,7 +5145,7 @@ const ba = ({ children: e }) => /* @__PURE__ */ d(Ce, { children: [
|
|
|
5124
5145
|
}
|
|
5125
5146
|
Ai(
|
|
5126
5147
|
/* @__PURE__ */ d(
|
|
5127
|
-
|
|
5148
|
+
Sa,
|
|
5128
5149
|
{
|
|
5129
5150
|
moduleProps: this.props.moduleProps,
|
|
5130
5151
|
perform: this.props.perform,
|
|
@@ -5142,26 +5163,26 @@ const ba = ({ children: e }) => /* @__PURE__ */ d(Ce, { children: [
|
|
|
5142
5163
|
});
|
|
5143
5164
|
}
|
|
5144
5165
|
static isReady() {
|
|
5145
|
-
return
|
|
5166
|
+
return Et;
|
|
5146
5167
|
}
|
|
5147
5168
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5148
5169
|
static initialize(t) {
|
|
5149
|
-
|
|
5170
|
+
Et = !0;
|
|
5150
5171
|
}
|
|
5151
5172
|
static deinitialize() {
|
|
5152
|
-
|
|
5173
|
+
Et = !1;
|
|
5153
5174
|
}
|
|
5154
5175
|
};
|
|
5155
5176
|
Wi.displayName = at, Wi.getSupportedTemplates = () => Object.values(ri), Wi.getIdentifier = () => at;
|
|
5156
|
-
let
|
|
5157
|
-
|
|
5177
|
+
let kt = Wi;
|
|
5178
|
+
_s(at, kt);
|
|
5158
5179
|
export {
|
|
5159
|
-
|
|
5160
|
-
|
|
5180
|
+
kt as GuiIdv,
|
|
5181
|
+
Sa as GuiIdvReactComponent,
|
|
5161
5182
|
ri as GuiIdvSteps,
|
|
5162
|
-
|
|
5183
|
+
va as GuiIdvStyleInjectionWrapper,
|
|
5163
5184
|
Pi as GuiModuleError,
|
|
5164
5185
|
ue as IDV_UI_ICONS,
|
|
5165
|
-
|
|
5166
|
-
|
|
5186
|
+
Ps as PopupReason,
|
|
5187
|
+
bt as idvIconDataUrlMap
|
|
5167
5188
|
};
|