@regulaforensics/idv-gui 3.2.262-nightly → 3.2.265-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -3
- package/dist/main.iife.js +4 -4
- package/dist/main.js +240 -240
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var xs = Object.defineProperty, Es = Object.defineProperties;
|
|
2
2
|
var Ss = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var er = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Mn = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Dn = (e, t, r) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, y = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Mn.call(t, r) && Dn(e, r, t[r]);
|
|
8
8
|
if (er)
|
|
9
9
|
for (var r of er(t))
|
|
10
|
-
Pn.call(t, r) &&
|
|
10
|
+
Pn.call(t, r) && Dn(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Z = (e, t) => Es(e, Ss(t));
|
|
13
13
|
var _t = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
16
|
+
Mn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
17
17
|
if (e != null && er)
|
|
18
18
|
for (var n of er(e))
|
|
19
19
|
t.indexOf(n) < 0 && Pn.call(e, n) && (r[n] = e[n]);
|
|
@@ -35,12 +35,12 @@ var _e = (e, t, r) => new Promise((n, i) => {
|
|
|
35
35
|
}, l = (_) => _.done ? n(_.value) : Promise.resolve(_.value).then(o, a);
|
|
36
36
|
l((r = r.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
var zt, Y, Ci, mt, Nn, yi, xi, Ei,
|
|
38
|
+
var zt, Y, Ci, mt, Nn, yi, xi, Ei, Dr, Er, Sr, Si, $t = {}, ki = [], ks = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, qt = Array.isArray;
|
|
39
39
|
function Qe(e, t) {
|
|
40
40
|
for (var r in t) e[r] = t[r];
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Mr(e) {
|
|
44
44
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
45
45
|
}
|
|
46
46
|
function et(e, t, r) {
|
|
@@ -77,7 +77,7 @@ function Ti(e) {
|
|
|
77
77
|
return Ti(e);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function kr(e) {
|
|
81
81
|
(!e.__d && (e.__d = !0) && mt.push(e) && !or.__r++ || Nn != Y.debounceRendering) && ((Nn = Y.debounceRendering) || yi)(or);
|
|
82
82
|
}
|
|
83
83
|
function or() {
|
|
@@ -130,7 +130,7 @@ function tr(e, t, r, n, i) {
|
|
|
130
130
|
if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || Bn(e.style, t, "");
|
|
131
131
|
if (r) for (t in r) n && r[t] == n[t] || Bn(e.style, t, r[t]);
|
|
132
132
|
}
|
|
133
|
-
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(Ei, "$1")), a = t.toLowerCase(), t = a in e || t == "onFocusOut" || t == "onFocusIn" ? a.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + o] = r, r ? n ? r.u = n.u : (r.u =
|
|
133
|
+
else if (t[0] == "o" && t[1] == "n") o = t != (t = t.replace(Ei, "$1")), a = t.toLowerCase(), t = a in e || t == "onFocusOut" || t == "onFocusIn" ? a.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + o] = r, r ? n ? r.u = n.u : (r.u = Dr, e.addEventListener(t, o ? Sr : Er, o)) : e.removeEventListener(t, o ? Sr : Er, o);
|
|
134
134
|
else {
|
|
135
135
|
if (i == "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 {
|
|
@@ -145,7 +145,7 @@ function Ln(e) {
|
|
|
145
145
|
return function(t) {
|
|
146
146
|
if (this.l) {
|
|
147
147
|
var r = this.l[t.type + e];
|
|
148
|
-
if (t.t == null) t.t =
|
|
148
|
+
if (t.t == null) t.t = Dr++;
|
|
149
149
|
else if (t.t < r.u) return;
|
|
150
150
|
return r(Y.event ? Y.event(t) : t);
|
|
151
151
|
}
|
|
@@ -181,17 +181,17 @@ function Pr(e, t, r, n, i, o, a, l, _, g) {
|
|
|
181
181
|
for (t.__u |= _ ? 160 : 128; l && l.nodeType == 8 && l.nextSibling; ) l = l.nextSibling;
|
|
182
182
|
o[o.indexOf(l)] = null, t.__e = l;
|
|
183
183
|
} else {
|
|
184
|
-
for (re = o.length; re--; )
|
|
185
|
-
|
|
184
|
+
for (re = o.length; re--; ) Mr(o[re]);
|
|
185
|
+
Or(t);
|
|
186
186
|
}
|
|
187
|
-
else t.__e = r.__e, t.__k = r.__k, H.then ||
|
|
187
|
+
else t.__e = r.__e, t.__k = r.__k, H.then || Or(t);
|
|
188
188
|
Y.__e(H, t, r);
|
|
189
189
|
}
|
|
190
190
|
else o == null && t.__v == r.__v ? (t.__k = r.__k, t.__e = r.__e) : l = t.__e = Fs(r.__e, t, r, n, i, o, a, _, g);
|
|
191
191
|
return (w = Y.diffed) && w(t), 128 & t.__u ? void 0 : l;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(
|
|
193
|
+
function Or(e) {
|
|
194
|
+
e && e.__c && (e.__c.__e = !0), e && e.__k && e.__k.forEach(Or);
|
|
195
195
|
}
|
|
196
196
|
function Ii(e, t, r) {
|
|
197
197
|
for (var n = 0; n < r.length; n++) Nr(r[n], r[++n], r[++n]);
|
|
@@ -232,7 +232,7 @@ function Fs(e, t, r, n, i, o, a, l, _) {
|
|
|
232
232
|
}
|
|
233
233
|
for (g in T) v = T[g], g == "children" ? c = v : g == "dangerouslySetInnerHTML" ? w = v : g == "value" ? p = v : g == "checked" ? m = v : l && typeof v != "function" || x[g] === v || tr(e, g, v, x[g], i);
|
|
234
234
|
if (w) l || h && (w.__html == h.__html || w.__html == e.innerHTML) || (e.innerHTML = w.__html), t.__k = [];
|
|
235
|
-
else if (h && (e.innerHTML = ""), Fi(t.type == "template" ? e.content : e, qt(c) ? c : [c], t, r, n, I == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, a, o ? o[0] : r.__k && It(r, 0), l, _), o != null) for (g = o.length; g--; )
|
|
235
|
+
else if (h && (e.innerHTML = ""), Fi(t.type == "template" ? e.content : e, qt(c) ? c : [c], t, r, n, I == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, o, a, o ? o[0] : r.__k && It(r, 0), l, _), o != null) for (g = o.length; g--; ) Mr(o[g]);
|
|
236
236
|
l || (g = "value", I == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[g] || I == "progress" && !p || I == "option" && p != x[g]) && tr(e, g, p, x[g], i), g = "checked", m != null && m != e[g] && tr(e, g, m, x[g], i));
|
|
237
237
|
}
|
|
238
238
|
return e;
|
|
@@ -258,7 +258,7 @@ function Ri(e, t, r) {
|
|
|
258
258
|
n.base = n.__P = null;
|
|
259
259
|
}
|
|
260
260
|
if (n = e.__k) for (i = 0; i < n.length; i++) n[i] && Ri(n[i], t, r || typeof e.type != "function");
|
|
261
|
-
r ||
|
|
261
|
+
r || Mr(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
262
262
|
}
|
|
263
263
|
function As(e, t, r) {
|
|
264
264
|
return this.constructor(e, r);
|
|
@@ -267,8 +267,8 @@ function wt(e, t, r) {
|
|
|
267
267
|
var n, i, o, a;
|
|
268
268
|
t == document && (t = document.documentElement), Y.__ && Y.__(e, t), i = (n = typeof r == "function") ? null : r && r.__k || t.__k, o = [], a = [], Pr(t, e = (!n && r || t).__k = et(Ie, null, [e]), i || $t, $t, t.namespaceURI, !n && r ? [r] : i ? null : t.firstChild ? zt.call(t.childNodes) : null, o, !n && r ? r : i ? i.__e : t.firstChild, n, a), Ii(o, e, a);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
wt(e, t,
|
|
270
|
+
function Di(e, t) {
|
|
271
|
+
wt(e, t, Di);
|
|
272
272
|
}
|
|
273
273
|
function Is(e, t, r) {
|
|
274
274
|
var n, i, o, a, l = Qe({}, e.props);
|
|
@@ -284,7 +284,7 @@ function Br(e) {
|
|
|
284
284
|
n = null;
|
|
285
285
|
}, this.shouldComponentUpdate = function(o) {
|
|
286
286
|
this.props.value != o.value && n.forEach(function(a) {
|
|
287
|
-
a.__e = !0,
|
|
287
|
+
a.__e = !0, kr(a);
|
|
288
288
|
});
|
|
289
289
|
}, this.sub = function(o) {
|
|
290
290
|
n.add(o);
|
|
@@ -307,12 +307,12 @@ zt = ki.slice, Y = { __e: function(e, t, r, n) {
|
|
|
307
307
|
throw e;
|
|
308
308
|
} }, Ci = 0, Ye.prototype.setState = function(e, t) {
|
|
309
309
|
var r;
|
|
310
|
-
r = this.__s != null && this.__s != this.state ? this.__s : this.__s = Qe({}, this.state), typeof e == "function" && (e = e(Qe({}, r), this.props)), e && Qe(r, e), e != null && this.__v && (t && this._sb.push(t),
|
|
310
|
+
r = this.__s != null && this.__s != this.state ? this.__s : this.__s = Qe({}, this.state), typeof e == "function" && (e = e(Qe({}, r), this.props)), e && Qe(r, e), e != null && this.__v && (t && this._sb.push(t), kr(this));
|
|
311
311
|
}, Ye.prototype.forceUpdate = function(e) {
|
|
312
|
-
this.__v && (this.__e = !0, e && this.__h.push(e),
|
|
312
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), kr(this));
|
|
313
313
|
}, Ye.prototype.render = Ie, mt = [], yi = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, xi = function(e, t) {
|
|
314
314
|
return e.__v.__b - t.__v.__b;
|
|
315
|
-
}, or.__r = 0, Ei = /(PointerCapture)$|Capture$/i,
|
|
315
|
+
}, or.__r = 0, Ei = /(PointerCapture)$|Capture$/i, Dr = 0, Er = Ln(!1), Sr = Ln(!0), Si = 0;
|
|
316
316
|
var Vs = 0;
|
|
317
317
|
function s(e, t, r, n, i, o) {
|
|
318
318
|
t || (t = {});
|
|
@@ -371,7 +371,7 @@ class vt {
|
|
|
371
371
|
}
|
|
372
372
|
class Rs extends HTMLElement {
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ds(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 r = t.getSupportedTemplates();
|
|
377
377
|
console.log(`${t == null ? void 0 : t.displayName} supported templates: ${r.join(", ")}`);
|
|
@@ -384,20 +384,20 @@ function Ms(e, t) {
|
|
|
384
384
|
console.error('Missed "getIdentifier" when register module');
|
|
385
385
|
customElements.get(t.getIdentifier()) ? console.log(`Module ${e} has already registered`) : customElements.define(e, t), console.log("-------");
|
|
386
386
|
}
|
|
387
|
-
const
|
|
387
|
+
const sr = {
|
|
388
388
|
FORM: "form",
|
|
389
389
|
DATA: "data"
|
|
390
390
|
};
|
|
391
|
-
var st, he,
|
|
391
|
+
var st, he, vr, Un, Vt = 0, Mi = [], ve = Y, Hn = ve.__b, Wn = ve.__r, $n = ve.diffed, jn = ve.__c, zn = ve.unmount, qn = ve.__;
|
|
392
392
|
function Ct(e, t) {
|
|
393
393
|
ve.__h && ve.__h(he, e, Vt || t), Vt = 0;
|
|
394
394
|
var r = he.__H || (he.__H = { __: [], __h: [] });
|
|
395
395
|
return e >= r.__.length && r.__.push({}), r.__[e];
|
|
396
396
|
}
|
|
397
397
|
function Fe(e) {
|
|
398
|
-
return Vt = 1,
|
|
398
|
+
return Vt = 1, _r(Pi, e);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function _r(e, t, r) {
|
|
401
401
|
var n = Ct(st++, 2);
|
|
402
402
|
if (n.t = e, !n.__c && (n.__ = [r ? r(t) : Pi(void 0, t), function(l) {
|
|
403
403
|
var _ = n.__N ? n.__N[0] : n.__[0], g = n.t(_, l);
|
|
@@ -473,7 +473,7 @@ function Gt(e) {
|
|
|
473
473
|
function Hr(e, t) {
|
|
474
474
|
ve.useDebugValue && ve.useDebugValue(t ? t(e) : e);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Ms(e) {
|
|
477
477
|
var t = Ct(st++, 10), r = Fe();
|
|
478
478
|
return t.__ = e, he.componentDidCatch || (he.componentDidCatch = function(n, i) {
|
|
479
479
|
t.__ && t.__(n, i), r[1](n);
|
|
@@ -491,7 +491,7 @@ function Wr() {
|
|
|
491
491
|
return e.__;
|
|
492
492
|
}
|
|
493
493
|
function Ps() {
|
|
494
|
-
for (var e; e =
|
|
494
|
+
for (var e; e = Mi.shift(); ) if (e.__P && e.__H) try {
|
|
495
495
|
e.__H.__h.forEach(ir), e.__H.__h.forEach(Tr), e.__H.__h = [];
|
|
496
496
|
} catch (t) {
|
|
497
497
|
e.__H.__h = [], ve.__e(t, e.__v);
|
|
@@ -504,15 +504,15 @@ ve.__b = function(e) {
|
|
|
504
504
|
}, ve.__r = function(e) {
|
|
505
505
|
Wn && Wn(e), st = 0;
|
|
506
506
|
var t = (he = e.__c).__H;
|
|
507
|
-
t && (
|
|
507
|
+
t && (vr === he ? (t.__h = [], he.__h = [], t.__.forEach(function(r) {
|
|
508
508
|
r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
|
|
509
|
-
})) : (t.__h.forEach(ir), t.__h.forEach(Tr), t.__h = [], st = 0)),
|
|
509
|
+
})) : (t.__h.forEach(ir), t.__h.forEach(Tr), t.__h = [], st = 0)), vr = he;
|
|
510
510
|
}, ve.diffed = function(e) {
|
|
511
511
|
$n && $n(e);
|
|
512
512
|
var t = e.__c;
|
|
513
|
-
t && t.__H && (t.__H.__h.length && (
|
|
513
|
+
t && t.__H && (t.__H.__h.length && (Mi.push(t) !== 1 && Un === ve.requestAnimationFrame || ((Un = ve.requestAnimationFrame) || Ns)(Ps)), t.__H.__.forEach(function(r) {
|
|
514
514
|
r.u && (r.__H = r.u), r.u = void 0;
|
|
515
|
-
})),
|
|
515
|
+
})), vr = he = null;
|
|
516
516
|
}, ve.__c = function(e, t) {
|
|
517
517
|
t.some(function(r) {
|
|
518
518
|
try {
|
|
@@ -587,7 +587,7 @@ const jr = Br(void 0), Gn = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
587
587
|
CAMERA: "CAMERA",
|
|
588
588
|
GALLERY: "GALLERY",
|
|
589
589
|
GEOLOCATION: "GEOLOCATION"
|
|
590
|
-
},
|
|
590
|
+
}, ar = {
|
|
591
591
|
LEFT: "LEFT",
|
|
592
592
|
CENTER: "CENTER",
|
|
593
593
|
RIGHT: "RIGHT"
|
|
@@ -607,9 +607,9 @@ const jr = Br(void 0), Gn = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
607
607
|
EMAIL: "EMAIL",
|
|
608
608
|
NUMBER: "NUMBER",
|
|
609
609
|
SECURE: "SECURE"
|
|
610
|
-
}, Yt = "#005fcc",
|
|
610
|
+
}, Yt = "#005fcc", lr = "idv-gui", cr = {
|
|
611
611
|
DECODING_FAILED: "DECODING_FAILED"
|
|
612
|
-
},
|
|
612
|
+
}, br = {
|
|
613
613
|
text: "text",
|
|
614
614
|
selector: "selector",
|
|
615
615
|
multiSelector: "multiSelector"
|
|
@@ -618,7 +618,7 @@ const jr = Br(void 0), Gn = ({ perform: e, children: t, setIsProcessingCallback:
|
|
|
618
618
|
REGEX: "regex"
|
|
619
619
|
};
|
|
620
620
|
function Ni(e) {
|
|
621
|
-
return e ===
|
|
621
|
+
return e === ar.CENTER ? "center" : e === ar.RIGHT ? "right" : "left";
|
|
622
622
|
}
|
|
623
623
|
function zr(e) {
|
|
624
624
|
if (typeof e == "object" && e !== null)
|
|
@@ -638,17 +638,17 @@ function X(e) {
|
|
|
638
638
|
}
|
|
639
639
|
const Ws = (e, t) => e.reduce((r, n) => {
|
|
640
640
|
var i, o, a;
|
|
641
|
-
if (n.answerType ===
|
|
641
|
+
if (n.answerType === br.text && (i = n.property) != null && i.id) {
|
|
642
642
|
const l = t.find((_) => _.name === n.property.id);
|
|
643
643
|
if (l != null && l.string)
|
|
644
644
|
return Z(y({}, r), { [n.id]: l.string });
|
|
645
645
|
}
|
|
646
|
-
if (n.answerType ===
|
|
646
|
+
if (n.answerType === br.selector && (o = n.property) != null && o.id) {
|
|
647
647
|
const l = t.find((_) => _.name === n.property.id);
|
|
648
648
|
if (l != null && l.string)
|
|
649
649
|
return Z(y({}, r), { [n.id]: l.string });
|
|
650
650
|
}
|
|
651
|
-
if (n.answerType ===
|
|
651
|
+
if (n.answerType === br.multiSelector && (a = n.property) != null && a.id) {
|
|
652
652
|
const l = t.find((_) => _.name === n.property.id);
|
|
653
653
|
if (l != null && l.array)
|
|
654
654
|
return Z(y({}, r), { [n.id]: l.array });
|
|
@@ -670,7 +670,7 @@ const Ws = (e, t) => e.reduce((r, n) => {
|
|
|
670
670
|
} catch (e) {
|
|
671
671
|
return (e == null ? void 0 : e.name) === "NotAllowedError" ? "denied" : "error";
|
|
672
672
|
}
|
|
673
|
-
}), js = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Li = (e) => (e == null ? void 0 : e.some((r) => r.type === "FORM")) ?
|
|
673
|
+
}), js = () => String.fromCharCode(Math.floor(Math.random() * 26) + 97) + Number(Math.random()).toString(16).slice(2) + Date.now().toString(16).slice(4), Li = (e) => (e == null ? void 0 : e.some((r) => r.type === "FORM")) ? sr.FORM : sr.DATA, Ui = ({ indicatorColor: e }) => {
|
|
674
674
|
const t = $e(null), r = X(e) || "#000000", n = 60, i = 5, o = 0.75, a = (n - i) / 2, l = 2 * Math.PI * a, _ = 1 - o, g = 360 / 1e3;
|
|
675
675
|
return We(() => {
|
|
676
676
|
if (!t.current) return;
|
|
@@ -1264,7 +1264,7 @@ const ia = ({ size: e = 100, color: t = "#5DA600" }) => /* @__PURE__ */ s("svg",
|
|
|
1264
1264
|
"data-test": e,
|
|
1265
1265
|
onClick: () => {
|
|
1266
1266
|
const v = JSON.parse(JSON.stringify(t));
|
|
1267
|
-
zr(v), w(v);
|
|
1267
|
+
zr(v), w(v, sr.DATA);
|
|
1268
1268
|
},
|
|
1269
1269
|
className: "hover-button",
|
|
1270
1270
|
style: Z(y(y({}, ga), o && { borderRadius: o }), {
|
|
@@ -1333,7 +1333,7 @@ const be = ({
|
|
|
1333
1333
|
fontName: t = "",
|
|
1334
1334
|
fontSize: r = "17px",
|
|
1335
1335
|
fontColor: n,
|
|
1336
|
-
alignment: i =
|
|
1336
|
+
alignment: i = ar.LEFT,
|
|
1337
1337
|
backgroundColor: o,
|
|
1338
1338
|
cornerRadius: a = 0,
|
|
1339
1339
|
htmlFor: l
|
|
@@ -1347,7 +1347,7 @@ const be = ({
|
|
|
1347
1347
|
borderRadius: a
|
|
1348
1348
|
}, g = typeof e == "string" && e.trim() && Hi(e);
|
|
1349
1349
|
return l ? /* @__PURE__ */ s("label", { "data-ui": "gui-label", part: "gui-label", style: _, htmlFor: l, children: g }) : /* @__PURE__ */ s("div", { "data-ui": "gui-label", part: "gui-label", style: _, children: g });
|
|
1350
|
-
},
|
|
1350
|
+
}, dr = ({
|
|
1351
1351
|
title: e,
|
|
1352
1352
|
image: t,
|
|
1353
1353
|
responseBody: r,
|
|
@@ -1364,7 +1364,7 @@ const be = ({
|
|
|
1364
1364
|
const [h, c] = Fe(!1), v = h && X(o) ? o : n, { perform: p } = yt(), m = (k) => {
|
|
1365
1365
|
if (w && w(k), g !== "RESPONSE_BODY") return;
|
|
1366
1366
|
const F = JSON.parse(JSON.stringify(r));
|
|
1367
|
-
zr(F), p(F,
|
|
1367
|
+
zr(F), p(F, sr.DATA);
|
|
1368
1368
|
}, x = {
|
|
1369
1369
|
height: "50px",
|
|
1370
1370
|
width: "100%",
|
|
@@ -1428,7 +1428,7 @@ const be = ({
|
|
|
1428
1428
|
paddingTop: "20px"
|
|
1429
1429
|
}), t), children: e.map((o) => {
|
|
1430
1430
|
var a;
|
|
1431
|
-
return /* @__PURE__ */ s(
|
|
1431
|
+
return /* @__PURE__ */ s(dr, y({ dataTestId: "button-" + ((a = o.title) == null ? void 0 : a.text) }, o), js());
|
|
1432
1432
|
}) });
|
|
1433
1433
|
}, ut = ({
|
|
1434
1434
|
children: e,
|
|
@@ -1493,11 +1493,11 @@ const be = ({
|
|
|
1493
1493
|
]
|
|
1494
1494
|
}
|
|
1495
1495
|
);
|
|
1496
|
-
},
|
|
1496
|
+
}, gr = ({
|
|
1497
1497
|
text: e,
|
|
1498
1498
|
fontName: t = "",
|
|
1499
1499
|
fontColor: r,
|
|
1500
|
-
alignment: n =
|
|
1500
|
+
alignment: n = ar.LEFT,
|
|
1501
1501
|
fontSize: i = 17,
|
|
1502
1502
|
backgroundColor: o,
|
|
1503
1503
|
cornerRadius: a = 0
|
|
@@ -1573,7 +1573,7 @@ const be = ({
|
|
|
1573
1573
|
)
|
|
1574
1574
|
}
|
|
1575
1575
|
),
|
|
1576
|
-
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ s(
|
|
1576
|
+
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400", marginTop: "16px" }, children: /* @__PURE__ */ s(gr, y({}, i)) })
|
|
1577
1577
|
]
|
|
1578
1578
|
}
|
|
1579
1579
|
) });
|
|
@@ -1613,7 +1613,7 @@ const be = ({
|
|
|
1613
1613
|
children: [
|
|
1614
1614
|
n && /* @__PURE__ */ s("div", { style: ya, children: /* @__PURE__ */ s(Ae, y({}, n)) }),
|
|
1615
1615
|
e && /* @__PURE__ */ s("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ s(be, y({}, e)) }),
|
|
1616
|
-
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ s(
|
|
1616
|
+
i && /* @__PURE__ */ s("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ s(gr, y({}, i)) })
|
|
1617
1617
|
]
|
|
1618
1618
|
}
|
|
1619
1619
|
) }) }), Sa = ({ indicatorColor: e = "black" }) => /* @__PURE__ */ s(Ie, { children: /* @__PURE__ */ s(Ui, { indicatorColor: e }) }), Xn = ({
|
|
@@ -1667,7 +1667,7 @@ const be = ({
|
|
|
1667
1667
|
},
|
|
1668
1668
|
children: [
|
|
1669
1669
|
/* @__PURE__ */ s("div", { style: { marginBottom: 5, fontWeight: "bold", lineHeight: "21px" }, children: /* @__PURE__ */ s(be, y({}, e)) }),
|
|
1670
|
-
/* @__PURE__ */ s("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ s(
|
|
1670
|
+
/* @__PURE__ */ s("div", { style: { lineHeight: "21px", fontWeight: "400" }, children: /* @__PURE__ */ s(gr, y({}, t)) })
|
|
1671
1671
|
]
|
|
1672
1672
|
}
|
|
1673
1673
|
),
|
|
@@ -1730,14 +1730,14 @@ function Ar(e, t) {
|
|
|
1730
1730
|
function qr(e, t) {
|
|
1731
1731
|
var r = t(), n = Fe({ t: { __: r, u: t } }), i = n[0].t, o = n[1];
|
|
1732
1732
|
return dt(function() {
|
|
1733
|
-
i.__ = r, i.u = t,
|
|
1733
|
+
i.__ = r, i.u = t, wr(i) && o({ t: i });
|
|
1734
1734
|
}, [e, r, t]), We(function() {
|
|
1735
|
-
return
|
|
1736
|
-
|
|
1735
|
+
return wr(i) && o({ t: i }), e(function() {
|
|
1736
|
+
wr(i) && o({ t: i });
|
|
1737
1737
|
});
|
|
1738
1738
|
}, [e]), r;
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function wr(e) {
|
|
1741
1741
|
var t, r, n = e.u, i = e.__;
|
|
1742
1742
|
try {
|
|
1743
1743
|
var o = n();
|
|
@@ -1756,7 +1756,7 @@ function Yr() {
|
|
|
1756
1756
|
return [!1, Zr];
|
|
1757
1757
|
}
|
|
1758
1758
|
var Kr = dt;
|
|
1759
|
-
function
|
|
1759
|
+
function ur(e, t) {
|
|
1760
1760
|
this.props = e, this.context = t;
|
|
1761
1761
|
}
|
|
1762
1762
|
function $i(e, t) {
|
|
@@ -1769,7 +1769,7 @@ function $i(e, t) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n.type = e, n;
|
|
1771
1771
|
}
|
|
1772
|
-
(
|
|
1772
|
+
(ur.prototype = new Ye()).isPureReactComponent = !0, ur.prototype.shouldComponentUpdate = function(e, t) {
|
|
1773
1773
|
return Ar(this.props, e) || Ar(this.state, t);
|
|
1774
1774
|
};
|
|
1775
1775
|
var Jn = Y.__b;
|
|
@@ -1921,14 +1921,14 @@ function Ki(e, t) {
|
|
|
1921
1921
|
ti(e, r, t);
|
|
1922
1922
|
});
|
|
1923
1923
|
};
|
|
1924
|
-
var Xi = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
1924
|
+
var Xi = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, Da = /^(?: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]/, Ma = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Pa = /[A-Z0-9]/g, Na = typeof document != "undefined", Ba = function(e) {
|
|
1925
1925
|
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
1926
1926
|
};
|
|
1927
1927
|
function Ji(e, t, r) {
|
|
1928
1928
|
return t.__k == null && (t.textContent = ""), wt(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
1929
1929
|
}
|
|
1930
1930
|
function Qi(e, t, r) {
|
|
1931
|
-
return
|
|
1931
|
+
return Di(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
1932
1932
|
}
|
|
1933
1933
|
Ye.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1934
1934
|
Object.defineProperty(Ye.prototype, e, { configurable: !0, get: function() {
|
|
@@ -1959,7 +1959,7 @@ Y.vnode = function(e) {
|
|
|
1959
1959
|
var l = r[a];
|
|
1960
1960
|
if (!(a === "value" && "defaultValue" in r && l == null || Na && a === "children" && n === "noscript" || a === "class" || a === "className")) {
|
|
1961
1961
|
var _ = a.toLowerCase();
|
|
1962
|
-
a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : _ === "translate" && l === "no" ? l = !1 : _[0] === "o" && _[1] === "n" ? _ === "ondoubleclick" ? a = "ondblclick" : _ !== "onchange" || n !== "input" && n !== "textarea" || Ba(r.type) ? _ === "onfocus" ? a = "onfocusin" : _ === "onblur" ? a = "onfocusout" :
|
|
1962
|
+
a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : _ === "translate" && l === "no" ? l = !1 : _[0] === "o" && _[1] === "n" ? _ === "ondoubleclick" ? a = "ondblclick" : _ !== "onchange" || n !== "input" && n !== "textarea" || Ba(r.type) ? _ === "onfocus" ? a = "onfocusin" : _ === "onblur" ? a = "onfocusout" : Ma.test(a) && (a = _) : _ = a = "oninput" : o && Da.test(a) ? a = a.replace(Pa, "-$&").toLowerCase() : l === null && (l = void 0), _ === "oninput" && i[a = _] && (a = "oninputCapture"), i[a] = l;
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
1965
|
n == "select" && i.multiple && Array.isArray(i.value) && (i.value = ot(r.children).forEach(function(g) {
|
|
@@ -1981,7 +1981,7 @@ Y.diffed = function(e) {
|
|
|
1981
1981
|
};
|
|
1982
1982
|
var eo = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1983
1983
|
return Xr.__n[e.__c].props.value;
|
|
1984
|
-
}, useCallback: Ur, useContext: Gt, useDebugValue: Hr, useDeferredValue: Gr, useEffect: We, useId: Wr, useImperativeHandle: Lr, useInsertionEffect: Kr, useLayoutEffect: dt, useMemo: Zt, useReducer:
|
|
1984
|
+
}, useCallback: Ur, useContext: Gt, useDebugValue: Hr, useDeferredValue: Gr, useEffect: We, useId: Wr, useImperativeHandle: Lr, useInsertionEffect: Kr, useLayoutEffect: dt, useMemo: Zt, useReducer: _r, useRef: $e, useState: Fe, useSyncExternalStore: qr, useTransition: Yr } } }, $a = "18.3.1";
|
|
1985
1985
|
function to(e) {
|
|
1986
1986
|
return et.bind(null, e);
|
|
1987
1987
|
}
|
|
@@ -2007,13 +2007,13 @@ var ao = function(e, t) {
|
|
|
2007
2007
|
return e(t);
|
|
2008
2008
|
}, lo = function(e, t) {
|
|
2009
2009
|
return e(t);
|
|
2010
|
-
}, co = Ie, uo = Kt, te = { useState: Fe, useId: Wr, useReducer:
|
|
2010
|
+
}, co = Ie, uo = Kt, te = { useState: Fe, useId: Wr, useReducer: _r, useEffect: We, useLayoutEffect: dt, useInsertionEffect: Kr, useTransition: Yr, useDeferredValue: Gr, useSyncExternalStore: qr, startTransition: Zr, useRef: $e, useImperativeHandle: Lr, useMemo: Zt, useCallback: Ur, useContext: Gt, useDebugValue: Hr, version: "18.3.1", Children: zi, render: Ji, hydrate: Qi, unmountComponentAtNode: oo, createPortal: Ki, createElement: et, createContext: Br, createFactory: to, cloneElement: io, createRef: Oi, Fragment: Ie, isValidElement: Kt, isElement: uo, isFragment: ro, isMemo: no, findDOMNode: so, Component: Ye, PureComponent: ur, memo: $i, forwardRef: ji, flushSync: lo, unstable_batchedUpdates: ao, StrictMode: co, Suspense: Lt, SuspenseList: At, lazy: Yi, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: eo };
|
|
2011
2011
|
const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2012
2012
|
__proto__: null,
|
|
2013
2013
|
Children: zi,
|
|
2014
2014
|
Component: Ye,
|
|
2015
2015
|
Fragment: Ie,
|
|
2016
|
-
PureComponent:
|
|
2016
|
+
PureComponent: ur,
|
|
2017
2017
|
StrictMode: co,
|
|
2018
2018
|
Suspense: Lt,
|
|
2019
2019
|
SuspenseList: At,
|
|
@@ -2044,13 +2044,13 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2044
2044
|
useDebugValue: Hr,
|
|
2045
2045
|
useDeferredValue: Gr,
|
|
2046
2046
|
useEffect: We,
|
|
2047
|
-
useErrorBoundary:
|
|
2047
|
+
useErrorBoundary: Ms,
|
|
2048
2048
|
useId: Wr,
|
|
2049
2049
|
useImperativeHandle: Lr,
|
|
2050
2050
|
useInsertionEffect: Kr,
|
|
2051
2051
|
useLayoutEffect: dt,
|
|
2052
2052
|
useMemo: Zt,
|
|
2053
|
-
useReducer:
|
|
2053
|
+
useReducer: _r,
|
|
2054
2054
|
useRef: $e,
|
|
2055
2055
|
useState: Fe,
|
|
2056
2056
|
useSyncExternalStore: qr,
|
|
@@ -2078,14 +2078,14 @@ function Oe(e) {
|
|
|
2078
2078
|
return e;
|
|
2079
2079
|
return t;
|
|
2080
2080
|
}
|
|
2081
|
-
var
|
|
2081
|
+
var mr = (e) => /^\w*$/.test(e), Ce = (e) => e === void 0, Qr = (e) => Array.isArray(e) ? e.filter(Boolean) : [], en = (e) => Qr(e.replace(/["|']|\]/g, "").split(/\.|\[/)), D = (e, t, r) => {
|
|
2082
2082
|
if (!t || !Se(e))
|
|
2083
2083
|
return r;
|
|
2084
|
-
const n = (
|
|
2084
|
+
const n = (mr(t) ? [t] : en(t)).reduce((i, o) => Re(i) ? i : i[o], e);
|
|
2085
2085
|
return Ce(n) || n === e ? Ce(e[t]) ? r : e[t] : n;
|
|
2086
2086
|
}, Ue = (e) => typeof e == "boolean", pe = (e, t, r) => {
|
|
2087
2087
|
let n = -1;
|
|
2088
|
-
const i =
|
|
2088
|
+
const i = mr(t) ? [t] : en(t), o = i.length, a = o - 1;
|
|
2089
2089
|
for (; ++n < o; ) {
|
|
2090
2090
|
const l = i[n];
|
|
2091
2091
|
let _ = r;
|
|
@@ -2098,7 +2098,7 @@ var gr = (e) => /^\w*$/.test(e), Ce = (e) => e === void 0, Qr = (e) => Array.isA
|
|
|
2098
2098
|
e[l] = _, e = e[l];
|
|
2099
2099
|
}
|
|
2100
2100
|
};
|
|
2101
|
-
const
|
|
2101
|
+
const fr = {
|
|
2102
2102
|
BLUR: "blur",
|
|
2103
2103
|
FOCUS_OUT: "focusout",
|
|
2104
2104
|
CHANGE: "change"
|
|
@@ -2155,7 +2155,7 @@ function Za(e) {
|
|
|
2155
2155
|
_.current.isValid && r._setValid(!0);
|
|
2156
2156
|
}, [r]), te.useMemo(() => go(a, r, _.current, !1), [a, r]);
|
|
2157
2157
|
}
|
|
2158
|
-
var He = (e) => typeof e == "string", mo = (e, t, r, n, i) => He(e) ? (n && t.watch.add(e),
|
|
2158
|
+
var He = (e) => typeof e == "string", mo = (e, t, r, n, i) => He(e) ? (n && t.watch.add(e), D(r, e, i)) : Array.isArray(e) ? e.map((o) => (n && t.watch.add(o), D(r, o))) : (n && (t.watchAll = !0), r), Ir = (e) => Re(e) || !fo(e);
|
|
2159
2159
|
function it(e, t, r = /* @__PURE__ */ new WeakSet()) {
|
|
2160
2160
|
if (Ir(e) || Ir(t))
|
|
2161
2161
|
return e === t;
|
|
@@ -2202,7 +2202,7 @@ function Ga(e) {
|
|
|
2202
2202
|
}), [r, o, n, a]), te.useEffect(() => r._removeUnmounted()), c;
|
|
2203
2203
|
}
|
|
2204
2204
|
function Ya(e) {
|
|
2205
|
-
const t = tn(), { name: r, disabled: n, control: i = t.control, shouldUnregister: o, defaultValue: a } = e, l = po(i._names.array, r), _ = te.useMemo(() =>
|
|
2205
|
+
const t = tn(), { name: r, disabled: n, control: i = t.control, shouldUnregister: o, defaultValue: a } = e, l = po(i._names.array, r), _ = te.useMemo(() => D(i._formValues, r, D(i._defaultValues, r, a)), [i, r, a]), g = Ga({
|
|
2206
2206
|
control: i,
|
|
2207
2207
|
name: r,
|
|
2208
2208
|
defaultValue: _,
|
|
@@ -2218,38 +2218,38 @@ function Ya(e) {
|
|
|
2218
2218
|
const p = te.useMemo(() => Object.defineProperties({}, {
|
|
2219
2219
|
invalid: {
|
|
2220
2220
|
enumerable: !0,
|
|
2221
|
-
get: () => !!
|
|
2221
|
+
get: () => !!D(w.errors, r)
|
|
2222
2222
|
},
|
|
2223
2223
|
isDirty: {
|
|
2224
2224
|
enumerable: !0,
|
|
2225
|
-
get: () => !!
|
|
2225
|
+
get: () => !!D(w.dirtyFields, r)
|
|
2226
2226
|
},
|
|
2227
2227
|
isTouched: {
|
|
2228
2228
|
enumerable: !0,
|
|
2229
|
-
get: () => !!
|
|
2229
|
+
get: () => !!D(w.touchedFields, r)
|
|
2230
2230
|
},
|
|
2231
2231
|
isValidating: {
|
|
2232
2232
|
enumerable: !0,
|
|
2233
|
-
get: () => !!
|
|
2233
|
+
get: () => !!D(w.validatingFields, r)
|
|
2234
2234
|
},
|
|
2235
2235
|
error: {
|
|
2236
2236
|
enumerable: !0,
|
|
2237
|
-
get: () =>
|
|
2237
|
+
get: () => D(w.errors, r)
|
|
2238
2238
|
}
|
|
2239
2239
|
}), [w, r]), m = te.useCallback((k) => v.current.onChange({
|
|
2240
2240
|
target: {
|
|
2241
2241
|
value: ho(k),
|
|
2242
2242
|
name: r
|
|
2243
2243
|
},
|
|
2244
|
-
type:
|
|
2244
|
+
type: fr.CHANGE
|
|
2245
2245
|
}), [r]), x = te.useCallback(() => v.current.onBlur({
|
|
2246
2246
|
target: {
|
|
2247
|
-
value:
|
|
2247
|
+
value: D(i._formValues, r),
|
|
2248
2248
|
name: r
|
|
2249
2249
|
},
|
|
2250
|
-
type:
|
|
2250
|
+
type: fr.BLUR
|
|
2251
2251
|
}), [r, i._formValues]), T = te.useCallback((k) => {
|
|
2252
|
-
const F =
|
|
2252
|
+
const F = D(i._fields, r);
|
|
2253
2253
|
F && k && (F._f.ref = {
|
|
2254
2254
|
focus: () => k.focus && k.focus(),
|
|
2255
2255
|
select: () => k.select && k.select(),
|
|
@@ -2268,12 +2268,12 @@ function Ya(e) {
|
|
|
2268
2268
|
const k = i._options.shouldUnregister || o, F = c.current;
|
|
2269
2269
|
F && F !== r && !l && i.unregister(F), i.register(r, y(y({}, h.current.rules), Ue(h.current.disabled) ? { disabled: h.current.disabled } : {}));
|
|
2270
2270
|
const V = (z, B) => {
|
|
2271
|
-
const ae =
|
|
2271
|
+
const ae = D(i._fields, z);
|
|
2272
2272
|
ae && ae._f && (ae._f.mount = B);
|
|
2273
2273
|
};
|
|
2274
2274
|
if (V(r, !0), k) {
|
|
2275
|
-
const z = Oe(
|
|
2276
|
-
pe(i._defaultValues, r, z), Ce(
|
|
2275
|
+
const z = Oe(D(i._options.defaultValues, r, h.current.defaultValue));
|
|
2276
|
+
pe(i._defaultValues, r, z), Ce(D(i._formValues, r)) && pe(i._formValues, r, z);
|
|
2277
2277
|
}
|
|
2278
2278
|
return !l && i.register(r), c.current = r, () => {
|
|
2279
2279
|
(l ? k && !i._state.action : k) ? i.unregister(r) : V(r, !1);
|
|
@@ -2326,12 +2326,12 @@ function bo(e, t) {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
return r;
|
|
2328
2328
|
}
|
|
2329
|
-
var Ne = (e) => Se(e) && !Object.keys(e).length, nn = (e) => e.type === "file", Ge = (e) => typeof e == "function",
|
|
2329
|
+
var Ne = (e) => Se(e) && !Object.keys(e).length, nn = (e) => e.type === "file", Ge = (e) => typeof e == "function", hr = (e) => {
|
|
2330
2330
|
if (!Jr)
|
|
2331
2331
|
return !1;
|
|
2332
2332
|
const t = e ? e.ownerDocument : 0;
|
|
2333
2333
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
2334
|
-
}, wo = (e) => e.type === "select-multiple", on = (e) => e.type === "radio", Xa = (e) => on(e) || Xt(e),
|
|
2334
|
+
}, wo = (e) => e.type === "select-multiple", on = (e) => e.type === "radio", Xa = (e) => on(e) || Xt(e), Cr = (e) => hr(e) && e.isConnected;
|
|
2335
2335
|
function Ja(e, t) {
|
|
2336
2336
|
const r = t.slice(0, -1).length;
|
|
2337
2337
|
let n = 0;
|
|
@@ -2346,7 +2346,7 @@ function Qa(e) {
|
|
|
2346
2346
|
return !0;
|
|
2347
2347
|
}
|
|
2348
2348
|
function Ee(e, t) {
|
|
2349
|
-
const r = Array.isArray(t) ? t :
|
|
2349
|
+
const r = Array.isArray(t) ? t : mr(t) ? [t] : en(t), n = r.length === 1 ? e : Ja(e, r), i = r.length - 1, o = r[i];
|
|
2350
2350
|
return n && delete n[o], i !== 0 && (Se(n) && Ne(n) || Array.isArray(n) && Qa(n)) && Ee(e, r.slice(0, -1)), e;
|
|
2351
2351
|
}
|
|
2352
2352
|
var el = (e) => {
|
|
@@ -2401,7 +2401,7 @@ function di(e) {
|
|
|
2401
2401
|
var tl = (e, t, r, n) => {
|
|
2402
2402
|
const i = {};
|
|
2403
2403
|
for (const o of e) {
|
|
2404
|
-
const a =
|
|
2404
|
+
const a = D(t, o);
|
|
2405
2405
|
a && pe(i, o, a._f);
|
|
2406
2406
|
}
|
|
2407
2407
|
return {
|
|
@@ -2410,7 +2410,7 @@ var tl = (e, t, r, n) => {
|
|
|
2410
2410
|
fields: i,
|
|
2411
2411
|
shouldUseNativeValidation: n
|
|
2412
2412
|
};
|
|
2413
|
-
},
|
|
2413
|
+
}, pr = (e) => e instanceof RegExp, Mt = (e) => Ce(e) ? e : pr(e) ? e.source : Se(e) ? pr(e.value) ? e.value.source : e.value : e, ui = (e) => ({
|
|
2414
2414
|
isOnSubmit: !e || e === Ze.onSubmit,
|
|
2415
2415
|
isOnBlur: e === Ze.onBlur,
|
|
2416
2416
|
isOnChange: e === Ze.onChange,
|
|
@@ -2421,7 +2421,7 @@ const fi = "AsyncFunction";
|
|
|
2421
2421
|
var rl = (e) => !!e && !!e.validate && !!(Ge(e.validate) && e.validate.constructor.name === fi || Se(e.validate) && Object.values(e.validate).find((t) => t.constructor.name === fi)), nl = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), hi = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((n) => e.startsWith(n) && /^\.\w+/.test(e.slice(n.length))));
|
|
2422
2422
|
const Ht = (e, t, r, n) => {
|
|
2423
2423
|
for (const o of r || Object.keys(e)) {
|
|
2424
|
-
const a =
|
|
2424
|
+
const a = D(e, o);
|
|
2425
2425
|
if (a) {
|
|
2426
2426
|
const i = a, { _f: l } = i, _ = _t(i, ["_f"]);
|
|
2427
2427
|
if (l) {
|
|
@@ -2437,15 +2437,15 @@ const Ht = (e, t, r, n) => {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
2439
|
function pi(e, t, r) {
|
|
2440
|
-
const n =
|
|
2441
|
-
if (n ||
|
|
2440
|
+
const n = D(e, r);
|
|
2441
|
+
if (n || mr(r))
|
|
2442
2442
|
return {
|
|
2443
2443
|
error: n,
|
|
2444
2444
|
name: r
|
|
2445
2445
|
};
|
|
2446
2446
|
const i = r.split(".");
|
|
2447
2447
|
for (; i.length; ) {
|
|
2448
|
-
const o = i.join("."), a =
|
|
2448
|
+
const o = i.join("."), a = D(t, o), l = D(e, o);
|
|
2449
2449
|
if (a && !Array.isArray(a) && r !== o)
|
|
2450
2450
|
return { name: r };
|
|
2451
2451
|
if (l && l.type)
|
|
@@ -2468,8 +2468,8 @@ var il = (e, t, r, n) => {
|
|
|
2468
2468
|
r(e);
|
|
2469
2469
|
const a = e, { name: i } = a, o = _t(a, ["name"]);
|
|
2470
2470
|
return Ne(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((l) => t[l] === (!n || Ze.all));
|
|
2471
|
-
}, ol = (e, t, r) => !e || !t || e === t || Ut(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), sl = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, al = (e, t) => !Qr(
|
|
2472
|
-
const n = Ut(
|
|
2471
|
+
}, ol = (e, t, r) => !e || !t || e === t || Ut(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), sl = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, al = (e, t) => !Qr(D(e, t)).length && Ee(e, t), ll = (e, t, r) => {
|
|
2472
|
+
const n = Ut(D(e, r));
|
|
2473
2473
|
return pe(n, "root", t[r]), pe(e, r, n), e;
|
|
2474
2474
|
};
|
|
2475
2475
|
function _i(e, t, r = "validate") {
|
|
@@ -2480,16 +2480,16 @@ function _i(e, t, r = "validate") {
|
|
|
2480
2480
|
ref: t
|
|
2481
2481
|
};
|
|
2482
2482
|
}
|
|
2483
|
-
var Tt = (e) => Se(e) && !
|
|
2483
|
+
var Tt = (e) => Se(e) && !pr(e) ? e : {
|
|
2484
2484
|
value: e,
|
|
2485
2485
|
message: ""
|
|
2486
2486
|
}, gi = (e, t, r, n, i, o) => _e(null, null, function* () {
|
|
2487
|
-
const { ref: a, refs: l, required: _, maxLength: g, minLength: w, min: h, max: c, pattern: v, validate: p, name: m, valueAsNumber: x, mount: T } = e._f, I =
|
|
2487
|
+
const { ref: a, refs: l, required: _, maxLength: g, minLength: w, min: h, max: c, pattern: v, validate: p, name: m, valueAsNumber: x, mount: T } = e._f, I = D(r, m);
|
|
2488
2488
|
if (!T || t.has(m))
|
|
2489
2489
|
return {};
|
|
2490
2490
|
const k = l ? l[0] : a, F = (H) => {
|
|
2491
2491
|
i && k.reportValidity && (k.setCustomValidity(Ue(H) ? "" : H || ""), k.reportValidity());
|
|
2492
|
-
}, V = {}, z = on(a), B = Xt(a), ae = z || B, ce = (x || nn(a)) && Ce(a.value) && Ce(I) ||
|
|
2492
|
+
}, V = {}, z = on(a), B = Xt(a), ae = z || B, ce = (x || nn(a)) && Ce(a.value) && Ce(I) || hr(a) && a.value === "" || I === "" || Array.isArray(I) && !I.length, re = Ka.bind(null, m, n, V), J = (H, G, oe, ge = rt.maxLength, me = rt.minLength) => {
|
|
2493
2493
|
const we = H ? G : oe;
|
|
2494
2494
|
V[m] = y({
|
|
2495
2495
|
type: H ? ge : me,
|
|
@@ -2526,7 +2526,7 @@ var Tt = (e) => Se(e) && !hr(e) ? e : {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
if (v && !ce && He(I)) {
|
|
2528
2528
|
const { value: H, message: G } = Tt(v);
|
|
2529
|
-
if (
|
|
2529
|
+
if (pr(H) && !I.match(H) && (V[m] = y({
|
|
2530
2530
|
type: rt.pattern,
|
|
2531
2531
|
message: G,
|
|
2532
2532
|
ref: a
|
|
@@ -2615,18 +2615,18 @@ function dl(e = {}) {
|
|
|
2615
2615
|
validatingFields: r.validatingFields,
|
|
2616
2616
|
isValidating: !Ne(r.validatingFields)
|
|
2617
2617
|
}));
|
|
2618
|
-
}, T = (f, C = [], S,
|
|
2619
|
-
if (
|
|
2620
|
-
if (a.action = !0, R && Array.isArray(
|
|
2621
|
-
const L = S(
|
|
2618
|
+
}, T = (f, C = [], S, M, A = !0, R = !0) => {
|
|
2619
|
+
if (M && S && !t.disabled) {
|
|
2620
|
+
if (a.action = !0, R && Array.isArray(D(n, f))) {
|
|
2621
|
+
const L = S(D(n, f), M.argA, M.argB);
|
|
2622
2622
|
A && pe(n, f, L);
|
|
2623
2623
|
}
|
|
2624
|
-
if (R && Array.isArray(
|
|
2625
|
-
const L = S(
|
|
2624
|
+
if (R && Array.isArray(D(r.errors, f))) {
|
|
2625
|
+
const L = S(D(r.errors, f), M.argA, M.argB);
|
|
2626
2626
|
A && pe(r.errors, f, L), al(r.errors, f);
|
|
2627
2627
|
}
|
|
2628
|
-
if ((w.touchedFields || h.touchedFields) && R && Array.isArray(
|
|
2629
|
-
const L = S(
|
|
2628
|
+
if ((w.touchedFields || h.touchedFields) && R && Array.isArray(D(r.touchedFields, f))) {
|
|
2629
|
+
const L = S(D(r.touchedFields, f), M.argA, M.argB);
|
|
2630
2630
|
A && pe(r.touchedFields, f, L);
|
|
2631
2631
|
}
|
|
2632
2632
|
(w.dirtyFields || h.dirtyFields) && (r.dirtyFields = Ft(i, o)), c.state.next({
|
|
@@ -2647,34 +2647,34 @@ function dl(e = {}) {
|
|
|
2647
2647
|
errors: r.errors,
|
|
2648
2648
|
isValid: !1
|
|
2649
2649
|
});
|
|
2650
|
-
}, F = (f, C, S,
|
|
2651
|
-
const A =
|
|
2650
|
+
}, F = (f, C, S, M) => {
|
|
2651
|
+
const A = D(n, f);
|
|
2652
2652
|
if (A) {
|
|
2653
|
-
const R =
|
|
2654
|
-
Ce(R) ||
|
|
2653
|
+
const R = D(o, f, Ce(S) ? D(i, f) : S);
|
|
2654
|
+
Ce(R) || M && M.defaultChecked || C ? pe(o, f, C ? R : di(A._f)) : oe(f, R), a.mount && m();
|
|
2655
2655
|
}
|
|
2656
|
-
}, V = (f, C, S,
|
|
2656
|
+
}, V = (f, C, S, M, A) => {
|
|
2657
2657
|
let R = !1, L = !1;
|
|
2658
2658
|
const K = {
|
|
2659
2659
|
name: f
|
|
2660
2660
|
};
|
|
2661
2661
|
if (!t.disabled) {
|
|
2662
|
-
if (!S ||
|
|
2662
|
+
if (!S || M) {
|
|
2663
2663
|
(w.isDirty || h.isDirty) && (L = r.isDirty, r.isDirty = K.isDirty = J(), R = L !== K.isDirty);
|
|
2664
|
-
const W = it(
|
|
2665
|
-
L = !!
|
|
2664
|
+
const W = it(D(i, f), C);
|
|
2665
|
+
L = !!D(r.dirtyFields, f), W ? Ee(r.dirtyFields, f) : pe(r.dirtyFields, f, !0), K.dirtyFields = r.dirtyFields, R = R || (w.dirtyFields || h.dirtyFields) && L !== !W;
|
|
2666
2666
|
}
|
|
2667
2667
|
if (S) {
|
|
2668
|
-
const W =
|
|
2668
|
+
const W = D(r.touchedFields, f);
|
|
2669
2669
|
W || (pe(r.touchedFields, f, S), K.touchedFields = r.touchedFields, R = R || (w.touchedFields || h.touchedFields) && W !== S);
|
|
2670
2670
|
}
|
|
2671
2671
|
R && A && c.state.next(K);
|
|
2672
2672
|
}
|
|
2673
2673
|
return R ? K : {};
|
|
2674
|
-
}, z = (f, C, S,
|
|
2675
|
-
const A =
|
|
2676
|
-
if (t.delayError && S ? (_ = p(() => I(f, S)), _(t.delayError)) : (clearTimeout(g), _ = null, S ? pe(r.errors, f, S) : Ee(r.errors, f)), (S ? !it(A, S) : A) || !Ne(
|
|
2677
|
-
const L = Z(y(y({},
|
|
2674
|
+
}, z = (f, C, S, M) => {
|
|
2675
|
+
const A = D(r.errors, f), R = (w.isValid || h.isValid) && Ue(C) && r.isValid !== C;
|
|
2676
|
+
if (t.delayError && S ? (_ = p(() => I(f, S)), _(t.delayError)) : (clearTimeout(g), _ = null, S ? pe(r.errors, f, S) : Ee(r.errors, f)), (S ? !it(A, S) : A) || !Ne(M) || R) {
|
|
2677
|
+
const L = Z(y(y({}, M), R && Ue(C) ? { isValid: C } : {}), {
|
|
2678
2678
|
errors: r.errors,
|
|
2679
2679
|
name: f
|
|
2680
2680
|
});
|
|
@@ -2688,13 +2688,13 @@ function dl(e = {}) {
|
|
|
2688
2688
|
const { errors: C } = yield B(f);
|
|
2689
2689
|
if (f)
|
|
2690
2690
|
for (const S of f) {
|
|
2691
|
-
const
|
|
2692
|
-
|
|
2691
|
+
const M = D(C, S);
|
|
2692
|
+
M ? pe(r.errors, S, M) : Ee(r.errors, S);
|
|
2693
2693
|
}
|
|
2694
2694
|
else
|
|
2695
2695
|
r.errors = C;
|
|
2696
2696
|
return C;
|
|
2697
|
-
}), ce = (
|
|
2697
|
+
}), ce = (M, A, ...R) => _e(null, [M, A, ...R], function* (f, C, S = {
|
|
2698
2698
|
valid: !0
|
|
2699
2699
|
}) {
|
|
2700
2700
|
for (const K in f) {
|
|
@@ -2707,7 +2707,7 @@ function dl(e = {}) {
|
|
|
2707
2707
|
const U = yield gi(W, l.disabled, o, v, t.shouldUseNativeValidation && !C, j);
|
|
2708
2708
|
if (Q && w.validatingFields && x([le.name]), U[le.name] && (S.valid = !1, C))
|
|
2709
2709
|
break;
|
|
2710
|
-
!C && (
|
|
2710
|
+
!C && (D(U, le.name) ? j ? ll(r.errors, U, le.name) : pe(r.errors, le.name, U[le.name]) : Ee(r.errors, le.name));
|
|
2711
2711
|
}
|
|
2712
2712
|
!Ne(Ve) && (yield ce(Ve, C, S));
|
|
2713
2713
|
}
|
|
@@ -2715,16 +2715,16 @@ function dl(e = {}) {
|
|
|
2715
2715
|
return S.valid;
|
|
2716
2716
|
}), re = () => {
|
|
2717
2717
|
for (const f of l.unMount) {
|
|
2718
|
-
const C =
|
|
2719
|
-
C && (C._f.refs ? C._f.refs.every((S) => !
|
|
2718
|
+
const C = D(n, f);
|
|
2719
|
+
C && (C._f.refs ? C._f.refs.every((S) => !Cr(S)) : !Cr(C._f.ref)) && je(f);
|
|
2720
2720
|
}
|
|
2721
2721
|
l.unMount = /* @__PURE__ */ new Set();
|
|
2722
|
-
}, J = (f, C) => !t.disabled && (f && C && pe(o, f, C), !it(q(), i)), H = (f, C, S) => mo(f, l, y({}, a.mount ? o : Ce(C) ? i : He(f) ? { [f]: C } : C), S, C), G = (f) => Qr(
|
|
2723
|
-
const
|
|
2722
|
+
}, J = (f, C) => !t.disabled && (f && C && pe(o, f, C), !it(q(), i)), H = (f, C, S) => mo(f, l, y({}, a.mount ? o : Ce(C) ? i : He(f) ? { [f]: C } : C), S, C), G = (f) => Qr(D(a.mount ? o : i, f, t.shouldUnregister ? D(i, f, []) : [])), oe = (f, C, S = {}) => {
|
|
2723
|
+
const M = D(n, f);
|
|
2724
2724
|
let A = C;
|
|
2725
|
-
if (
|
|
2726
|
-
const R =
|
|
2727
|
-
R && (!R.disabled && pe(o, f, xo(C, R)), A =
|
|
2725
|
+
if (M) {
|
|
2726
|
+
const R = M._f;
|
|
2727
|
+
R && (!R.disabled && pe(o, f, xo(C, R)), A = hr(R.ref) && Re(C) ? "" : C, wo(R.ref) ? [...R.ref.options].forEach((L) => L.selected = A.includes(L.value)) : R.refs ? Xt(R.ref) ? R.refs.forEach((L) => {
|
|
2728
2728
|
(!L.defaultChecked || !L.disabled) && (Array.isArray(A) ? L.checked = !!A.find((K) => K === L.value) : L.checked = A === L.value || !!A);
|
|
2729
2729
|
}) : R.refs.forEach((L) => L.checked = L.value === A) : nn(R.ref) ? R.ref.value = "" : (R.ref.value = A, R.ref.type || c.state.next({
|
|
2730
2730
|
name: f,
|
|
@@ -2733,14 +2733,14 @@ function dl(e = {}) {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
(S.shouldDirty || S.shouldTouch) && V(f, A, S.shouldTouch, S.shouldDirty, !0), S.shouldValidate && de(f);
|
|
2735
2735
|
}, ge = (f, C, S) => {
|
|
2736
|
-
for (const
|
|
2737
|
-
if (!C.hasOwnProperty(
|
|
2736
|
+
for (const M in C) {
|
|
2737
|
+
if (!C.hasOwnProperty(M))
|
|
2738
2738
|
return;
|
|
2739
|
-
const A = C[
|
|
2739
|
+
const A = C[M], R = f + "." + M, L = D(n, R);
|
|
2740
2740
|
(l.array.has(f) || Se(A) || L && !L._f) && !bt(A) ? ge(R, A, S) : oe(R, A, S);
|
|
2741
2741
|
}
|
|
2742
2742
|
}, me = (f, C, S = {}) => {
|
|
2743
|
-
const
|
|
2743
|
+
const M = D(n, f), A = l.array.has(f), R = Oe(C);
|
|
2744
2744
|
pe(o, f, R), A ? (c.array.next({
|
|
2745
2745
|
name: f,
|
|
2746
2746
|
values: Oe(o)
|
|
@@ -2748,49 +2748,49 @@ function dl(e = {}) {
|
|
|
2748
2748
|
name: f,
|
|
2749
2749
|
dirtyFields: Ft(i, o),
|
|
2750
2750
|
isDirty: J(f, R)
|
|
2751
|
-
})) :
|
|
2751
|
+
})) : M && !M._f && !Re(R) ? ge(f, R, S) : oe(f, R, S), hi(f, l) && c.state.next(Z(y({}, r), { name: f })), c.state.next({
|
|
2752
2752
|
name: a.mount ? f : void 0,
|
|
2753
2753
|
values: Oe(o)
|
|
2754
2754
|
});
|
|
2755
2755
|
}, we = (f) => _e(null, null, function* () {
|
|
2756
2756
|
a.mount = !0;
|
|
2757
2757
|
const C = f.target;
|
|
2758
|
-
let S = C.name,
|
|
2759
|
-
const A =
|
|
2760
|
-
|
|
2758
|
+
let S = C.name, M = !0;
|
|
2759
|
+
const A = D(n, S), R = (W) => {
|
|
2760
|
+
M = Number.isNaN(W) || bt(W) && isNaN(W.getTime()) || it(W, D(o, S, W));
|
|
2761
2761
|
}, L = ui(t.mode), K = ui(t.reValidateMode);
|
|
2762
2762
|
if (A) {
|
|
2763
2763
|
let W, le;
|
|
2764
|
-
const Ve = C.type ? di(A._f) : ho(f), j = f.type ===
|
|
2764
|
+
const Ve = C.type ? di(A._f) : ho(f), j = f.type === fr.BLUR || f.type === fr.FOCUS_OUT, Q = !nl(A._f) && !t.resolver && !D(r.errors, S) && !A._f.deps || sl(j, D(r.touchedFields, S), r.isSubmitted, K, L), U = hi(S, l, j);
|
|
2765
2765
|
pe(o, S, Ve), j ? (!C || !C.readOnly) && (A._f.onBlur && A._f.onBlur(f), _ && _(0)) : A._f.onChange && A._f.onChange(f);
|
|
2766
|
-
const se = V(S, Ve, j),
|
|
2766
|
+
const se = V(S, Ve, j), Me = !Ne(se) || U;
|
|
2767
2767
|
if (!j && c.state.next({
|
|
2768
2768
|
name: S,
|
|
2769
2769
|
type: f.type,
|
|
2770
2770
|
values: Oe(o)
|
|
2771
2771
|
}), Q)
|
|
2772
|
-
return (w.isValid || h.isValid) && (t.mode === "onBlur" ? j && m() : j || m()),
|
|
2772
|
+
return (w.isValid || h.isValid) && (t.mode === "onBlur" ? j && m() : j || m()), Me && c.state.next(y({ name: S }, U ? {} : se));
|
|
2773
2773
|
if (!j && U && c.state.next(y({}, r)), t.resolver) {
|
|
2774
2774
|
const { errors: Te } = yield B([S]);
|
|
2775
|
-
if (R(Ve),
|
|
2775
|
+
if (R(Ve), M) {
|
|
2776
2776
|
const ie = pi(r.errors, n, S), $ = pi(Te, n, ie.name || S);
|
|
2777
2777
|
W = $.error, S = $.name, le = Ne(Te);
|
|
2778
2778
|
}
|
|
2779
2779
|
} else
|
|
2780
|
-
x([S], !0), W = (yield gi(A, l.disabled, o, v, t.shouldUseNativeValidation))[S], x([S]), R(Ve),
|
|
2781
|
-
|
|
2780
|
+
x([S], !0), W = (yield gi(A, l.disabled, o, v, t.shouldUseNativeValidation))[S], x([S]), R(Ve), M && (W ? le = !1 : (w.isValid || h.isValid) && (le = yield ce(n, !0)));
|
|
2781
|
+
M && (A._f.deps && (!Array.isArray(A._f.deps) || A._f.deps.length > 0) && de(A._f.deps), z(S, le, W, se));
|
|
2782
2782
|
}
|
|
2783
2783
|
}), Be = (f, C) => {
|
|
2784
|
-
if (
|
|
2784
|
+
if (D(r.errors, C) && f.focus)
|
|
2785
2785
|
return f.focus(), 1;
|
|
2786
|
-
}, de = (S, ...
|
|
2786
|
+
}, de = (S, ...M) => _e(null, [S, ...M], function* (f, C = {}) {
|
|
2787
2787
|
let A, R;
|
|
2788
2788
|
const L = Ut(f);
|
|
2789
2789
|
if (t.resolver) {
|
|
2790
2790
|
const K = yield ae(Ce(f) ? f : L);
|
|
2791
|
-
A = Ne(K), R = f ? !L.some((W) =>
|
|
2791
|
+
A = Ne(K), R = f ? !L.some((W) => D(K, W)) : A;
|
|
2792
2792
|
} else f ? (R = (yield Promise.all(L.map((K) => _e(null, null, function* () {
|
|
2793
|
-
const W =
|
|
2793
|
+
const W = D(n, K);
|
|
2794
2794
|
return yield ce(W && W._f ? { [K]: W } : W);
|
|
2795
2795
|
})))).every(Boolean), !(!R && !r.isValid) && m()) : R = A = yield ce(n);
|
|
2796
2796
|
return c.state.next(Z(y(y({}, !He(f) || (w.isValid || h.isValid) && A !== r.isValid ? {} : { name: f }), t.resolver || !f ? { isValid: A } : {}), {
|
|
@@ -2798,27 +2798,27 @@ function dl(e = {}) {
|
|
|
2798
2798
|
})), C.shouldFocus && !R && Ht(n, Be, f ? L : l.mount), R;
|
|
2799
2799
|
}), q = (f, C) => {
|
|
2800
2800
|
let S = y({}, a.mount ? o : i);
|
|
2801
|
-
return C && (S = bo(C.dirtyFields ? r.dirtyFields : r.touchedFields, S)), Ce(f) ? S : He(f) ?
|
|
2801
|
+
return C && (S = bo(C.dirtyFields ? r.dirtyFields : r.touchedFields, S)), Ce(f) ? S : He(f) ? D(S, f) : f.map((M) => D(S, M));
|
|
2802
2802
|
}, ue = (f, C) => ({
|
|
2803
|
-
invalid: !!
|
|
2804
|
-
isDirty: !!
|
|
2805
|
-
error:
|
|
2806
|
-
isValidating: !!
|
|
2807
|
-
isTouched: !!
|
|
2803
|
+
invalid: !!D((C || r).errors, f),
|
|
2804
|
+
isDirty: !!D((C || r).dirtyFields, f),
|
|
2805
|
+
error: D((C || r).errors, f),
|
|
2806
|
+
isValidating: !!D(r.validatingFields, f),
|
|
2807
|
+
isTouched: !!D((C || r).touchedFields, f)
|
|
2808
2808
|
}), ye = (f) => {
|
|
2809
2809
|
f && Ut(f).forEach((C) => Ee(r.errors, C)), c.state.next({
|
|
2810
2810
|
errors: f ? r.errors : {}
|
|
2811
2811
|
});
|
|
2812
2812
|
}, ke = (f, C, S) => {
|
|
2813
|
-
const
|
|
2813
|
+
const M = (D(n, f, { _f: {} })._f || {}).ref, le = D(r.errors, f) || {}, { ref: R, message: L, type: K } = le, W = _t(le, ["ref", "message", "type"]);
|
|
2814
2814
|
pe(r.errors, f, Z(y(y({}, W), C), {
|
|
2815
|
-
ref:
|
|
2815
|
+
ref: M
|
|
2816
2816
|
})), c.state.next({
|
|
2817
2817
|
name: f,
|
|
2818
2818
|
errors: r.errors,
|
|
2819
2819
|
isValid: !1
|
|
2820
|
-
}), S && S.shouldFocus &&
|
|
2821
|
-
},
|
|
2820
|
+
}), S && S.shouldFocus && M && M.focus && M.focus();
|
|
2821
|
+
}, De = (f, C) => Ge(f) ? c.state.subscribe({
|
|
2822
2822
|
next: (S) => "values" in S && f(H(void 0, C), S)
|
|
2823
2823
|
}) : H(f, C, !0), N = (f) => c.state.subscribe({
|
|
2824
2824
|
next: (C) => {
|
|
@@ -2839,8 +2839,8 @@ function dl(e = {}) {
|
|
|
2839
2839
|
}, Ke = ({ disabled: f, name: C }) => {
|
|
2840
2840
|
(Ue(f) && a.mount || f || l.disabled.has(C)) && (f ? l.disabled.add(C) : l.disabled.delete(C));
|
|
2841
2841
|
}, tt = (f, C = {}) => {
|
|
2842
|
-
let S =
|
|
2843
|
-
const
|
|
2842
|
+
let S = D(n, f);
|
|
2843
|
+
const M = Ue(C.disabled) || Ue(t.disabled);
|
|
2844
2844
|
return pe(n, f, Z(y({}, S || {}), {
|
|
2845
2845
|
_f: y(Z(y({}, S && S._f ? S._f : { ref: { name: f } }), {
|
|
2846
2846
|
name: f,
|
|
@@ -2849,46 +2849,46 @@ function dl(e = {}) {
|
|
|
2849
2849
|
})), l.mount.add(f), S ? Ke({
|
|
2850
2850
|
disabled: Ue(C.disabled) ? C.disabled : t.disabled,
|
|
2851
2851
|
name: f
|
|
2852
|
-
}) : F(f, !0, C.value), Z(y(y({},
|
|
2852
|
+
}) : F(f, !0, C.value), Z(y(y({}, M ? { disabled: C.disabled || t.disabled } : {}), t.progressive ? {
|
|
2853
2853
|
required: !!C.required,
|
|
2854
|
-
min:
|
|
2855
|
-
max:
|
|
2856
|
-
minLength:
|
|
2857
|
-
maxLength:
|
|
2858
|
-
pattern:
|
|
2854
|
+
min: Mt(C.min),
|
|
2855
|
+
max: Mt(C.max),
|
|
2856
|
+
minLength: Mt(C.minLength),
|
|
2857
|
+
maxLength: Mt(C.maxLength),
|
|
2858
|
+
pattern: Mt(C.pattern)
|
|
2859
2859
|
} : {}), {
|
|
2860
2860
|
name: f,
|
|
2861
2861
|
onChange: we,
|
|
2862
2862
|
onBlur: we,
|
|
2863
2863
|
ref: (A) => {
|
|
2864
2864
|
if (A) {
|
|
2865
|
-
tt(f, C), S =
|
|
2865
|
+
tt(f, C), S = D(n, f);
|
|
2866
2866
|
const R = Ce(A.value) && A.querySelectorAll && A.querySelectorAll("input,select,textarea")[0] || A, L = Xa(R), K = S._f.refs || [];
|
|
2867
2867
|
if (L ? K.find((W) => W === R) : R === S._f.ref)
|
|
2868
2868
|
return;
|
|
2869
2869
|
pe(n, f, {
|
|
2870
2870
|
_f: y(y({}, S._f), L ? {
|
|
2871
2871
|
refs: [
|
|
2872
|
-
...K.filter(
|
|
2872
|
+
...K.filter(Cr),
|
|
2873
2873
|
R,
|
|
2874
|
-
...Array.isArray(
|
|
2874
|
+
...Array.isArray(D(i, f)) ? [{}] : []
|
|
2875
2875
|
],
|
|
2876
2876
|
ref: { type: R.type, name: f }
|
|
2877
2877
|
} : { ref: R })
|
|
2878
2878
|
}), F(f, !1, void 0, R);
|
|
2879
2879
|
} else
|
|
2880
|
-
S =
|
|
2880
|
+
S = D(n, f, {}), S._f && (S._f.mount = !1), (t.shouldUnregister || C.shouldUnregister) && !(po(l.array, f) && a.action) && l.unMount.add(f);
|
|
2881
2881
|
}
|
|
2882
2882
|
});
|
|
2883
2883
|
}, ze = () => t.shouldFocusError && Ht(n, Be, l.mount), ft = (f) => {
|
|
2884
2884
|
Ue(f) && (c.state.next({ disabled: f }), Ht(n, (C, S) => {
|
|
2885
|
-
const
|
|
2886
|
-
|
|
2887
|
-
A.disabled =
|
|
2885
|
+
const M = D(n, S);
|
|
2886
|
+
M && (C.disabled = M._f.disabled || f, Array.isArray(M._f.refs) && M._f.refs.forEach((A) => {
|
|
2887
|
+
A.disabled = M._f.disabled || f;
|
|
2888
2888
|
}));
|
|
2889
2889
|
}, 0, !1));
|
|
2890
2890
|
}, at = (f, C) => (S) => _e(null, null, function* () {
|
|
2891
|
-
let
|
|
2891
|
+
let M;
|
|
2892
2892
|
S && (S.preventDefault && S.preventDefault(), S.persist && S.persist());
|
|
2893
2893
|
let A = Oe(o);
|
|
2894
2894
|
if (c.state.next({
|
|
@@ -2908,22 +2908,22 @@ function dl(e = {}) {
|
|
|
2908
2908
|
try {
|
|
2909
2909
|
yield f(A, S);
|
|
2910
2910
|
} catch (R) {
|
|
2911
|
-
|
|
2911
|
+
M = R;
|
|
2912
2912
|
}
|
|
2913
2913
|
} else
|
|
2914
2914
|
C && (yield C(y({}, r.errors), S)), ze(), setTimeout(ze);
|
|
2915
2915
|
if (c.state.next({
|
|
2916
2916
|
isSubmitted: !0,
|
|
2917
2917
|
isSubmitting: !1,
|
|
2918
|
-
isSubmitSuccessful: Ne(r.errors) && !
|
|
2918
|
+
isSubmitSuccessful: Ne(r.errors) && !M,
|
|
2919
2919
|
submitCount: r.submitCount + 1,
|
|
2920
2920
|
errors: r.errors
|
|
2921
|
-
}),
|
|
2922
|
-
throw
|
|
2921
|
+
}), M)
|
|
2922
|
+
throw M;
|
|
2923
2923
|
}), xt = (f, C = {}) => {
|
|
2924
|
-
|
|
2924
|
+
D(n, f) && (Ce(C.defaultValue) ? me(f, Oe(D(i, f))) : (me(f, C.defaultValue), pe(i, f, Oe(C.defaultValue))), C.keepTouched || Ee(r.touchedFields, f), C.keepDirty || (Ee(r.dirtyFields, f), r.isDirty = C.defaultValue ? J(f, Oe(D(i, f))) : J()), C.keepError || (Ee(r.errors, f), w.isValid && m()), c.state.next(y({}, r)));
|
|
2925
2925
|
}, ht = (f, C = {}) => {
|
|
2926
|
-
const S = f ? Oe(f) : i,
|
|
2926
|
+
const S = f ? Oe(f) : i, M = Oe(S), A = Ne(f), R = A ? i : M;
|
|
2927
2927
|
if (C.keepDefaultValues || (i = S), !C.keepValues) {
|
|
2928
2928
|
if (C.keepDirtyValues) {
|
|
2929
2929
|
const L = /* @__PURE__ */ new Set([
|
|
@@ -2931,14 +2931,14 @@ function dl(e = {}) {
|
|
|
2931
2931
|
...Object.keys(Ft(i, o))
|
|
2932
2932
|
]);
|
|
2933
2933
|
for (const K of Array.from(L))
|
|
2934
|
-
|
|
2934
|
+
D(r.dirtyFields, K) ? pe(R, K, D(o, K)) : me(K, D(R, K));
|
|
2935
2935
|
} else {
|
|
2936
2936
|
if (Jr && Ce(f))
|
|
2937
2937
|
for (const L of l.mount) {
|
|
2938
|
-
const K =
|
|
2938
|
+
const K = D(n, L);
|
|
2939
2939
|
if (K && K._f) {
|
|
2940
2940
|
const W = Array.isArray(K._f.refs) ? K._f.refs[0] : K._f.ref;
|
|
2941
|
-
if (
|
|
2941
|
+
if (hr(W)) {
|
|
2942
2942
|
const le = W.closest("form");
|
|
2943
2943
|
if (le) {
|
|
2944
2944
|
le.reset();
|
|
@@ -2949,7 +2949,7 @@ function dl(e = {}) {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
if (C.keepFieldsRef)
|
|
2951
2951
|
for (const L of l.mount)
|
|
2952
|
-
me(L,
|
|
2952
|
+
me(L, D(R, L));
|
|
2953
2953
|
else
|
|
2954
2954
|
n = {};
|
|
2955
2955
|
}
|
|
@@ -2979,9 +2979,9 @@ function dl(e = {}) {
|
|
|
2979
2979
|
defaultValues: i
|
|
2980
2980
|
});
|
|
2981
2981
|
}, lt = (f, C) => ht(Ge(f) ? f(o) : f, C), pt = (f, C = {}) => {
|
|
2982
|
-
const S =
|
|
2983
|
-
if (
|
|
2984
|
-
const A =
|
|
2982
|
+
const S = D(n, f), M = S && S._f;
|
|
2983
|
+
if (M) {
|
|
2984
|
+
const A = M.refs ? M.refs[0] : M.ref;
|
|
2985
2985
|
A.focus && (A.focus(), C.shouldSelect && Ge(A.select) && A.select());
|
|
2986
2986
|
}
|
|
2987
2987
|
}, Et = (f) => {
|
|
@@ -3048,7 +3048,7 @@ function dl(e = {}) {
|
|
|
3048
3048
|
trigger: de,
|
|
3049
3049
|
register: tt,
|
|
3050
3050
|
handleSubmit: at,
|
|
3051
|
-
watch:
|
|
3051
|
+
watch: De,
|
|
3052
3052
|
setValue: me,
|
|
3053
3053
|
getValues: q,
|
|
3054
3054
|
reset: lt,
|
|
@@ -3216,9 +3216,9 @@ const Rt = (e, t) => {
|
|
|
3216
3216
|
var H, G, oe, ge, me, we, Be, de;
|
|
3217
3217
|
const [c, v] = Fe(!1), [p, m] = Fe(i), [x, T] = Fe("down"), [I, k] = Fe(null), F = $e(null), V = $e(null);
|
|
3218
3218
|
dt(() => {
|
|
3219
|
-
var
|
|
3219
|
+
var De, N, ne;
|
|
3220
3220
|
if (!c) return;
|
|
3221
|
-
const q = (
|
|
3221
|
+
const q = (De = F.current) == null ? void 0 : De.getBoundingClientRect(), ue = (N = V.current) == null ? void 0 : N.getBoundingClientRect(), ye = (ne = g.current) == null ? void 0 : ne.getBoundingClientRect();
|
|
3222
3222
|
if (!q || !ue || !ye) return;
|
|
3223
3223
|
const ke = q.bottom + ue.height < ye.bottom;
|
|
3224
3224
|
T(ke ? "down" : "up");
|
|
@@ -3282,7 +3282,7 @@ const Rt = (e, t) => {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
),
|
|
3284
3284
|
p.map((q) => {
|
|
3285
|
-
var ue, ye, ke,
|
|
3285
|
+
var ue, ye, ke, De, N;
|
|
3286
3286
|
if (r) {
|
|
3287
3287
|
const ne = w == null ? void 0 : w.chip;
|
|
3288
3288
|
return /* @__PURE__ */ s(
|
|
@@ -3301,7 +3301,7 @@ const Rt = (e, t) => {
|
|
|
3301
3301
|
/* @__PURE__ */ s(
|
|
3302
3302
|
be,
|
|
3303
3303
|
Z(y({}, ne == null ? void 0 : ne.title), {
|
|
3304
|
-
fontSize: (
|
|
3304
|
+
fontSize: (De = (ke = ne == null ? void 0 : ne.title) == null ? void 0 : ke.fontSize) != null ? De : 13,
|
|
3305
3305
|
text: q.label
|
|
3306
3306
|
})
|
|
3307
3307
|
),
|
|
@@ -3894,7 +3894,7 @@ const Rt = (e, t) => {
|
|
|
3894
3894
|
underlyingError: n,
|
|
3895
3895
|
underlyingBaseError: i
|
|
3896
3896
|
}) {
|
|
3897
|
-
const o = vt.getErrorKey(t,
|
|
3897
|
+
const o = vt.getErrorKey(t, cr);
|
|
3898
3898
|
super({
|
|
3899
3899
|
errorCode: t,
|
|
3900
3900
|
errorCodeKey: o,
|
|
@@ -3908,7 +3908,7 @@ const Rt = (e, t) => {
|
|
|
3908
3908
|
});
|
|
3909
3909
|
}
|
|
3910
3910
|
};
|
|
3911
|
-
nt.MODULE =
|
|
3911
|
+
nt.MODULE = lr, nt.ERROR_ENUM_NAME = "GuiModuleError", nt.SHORT_CODE = "GM";
|
|
3912
3912
|
let jt = nt;
|
|
3913
3913
|
const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSource: o, properties: a, backgroundColor: l }) => {
|
|
3914
3914
|
const _ = Li(r), { perform: g } = yt(), w = a ? Ws(o.questions, a) : {}, h = $e(null), {
|
|
@@ -3973,7 +3973,7 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
3973
3973
|
}), z = (J, H) => H.find((G) => !G.questionIds && G.answerType === J), B = F ? V(String(k.id), i.itemTypes) || z(k.answerType, i.itemTypes) : i.itemTypes.find((J) => J.answerType === k.answerType);
|
|
3974
3974
|
if (!B) {
|
|
3975
3975
|
const J = new jt({
|
|
3976
|
-
errorCode:
|
|
3976
|
+
errorCode: cr.DECODING_FAILED,
|
|
3977
3977
|
message: "The question template has not been found"
|
|
3978
3978
|
});
|
|
3979
3979
|
g(J);
|
|
@@ -4078,7 +4078,7 @@ const El = ({ header: e, title: t, buttons: r, footer: n, questions: i, dataSour
|
|
|
4078
4078
|
alignItems: "flex-end",
|
|
4079
4079
|
padding: "2px"
|
|
4080
4080
|
},
|
|
4081
|
-
children: r.map((k, F) => /* @__PURE__ */ s(
|
|
4081
|
+
children: r.map((k, F) => /* @__PURE__ */ s(dr, y({ dataTestId: "question-button" }, k), F))
|
|
4082
4082
|
}
|
|
4083
4083
|
)
|
|
4084
4084
|
]
|
|
@@ -4201,7 +4201,7 @@ var Nt = { exports: {} }, Il = Nt.exports, mi;
|
|
|
4201
4201
|
function Vl() {
|
|
4202
4202
|
return mi || (mi = 1, (function(e, t) {
|
|
4203
4203
|
(function(r, n) {
|
|
4204
|
-
var i = "1.0.41", o = "", a = "?", l = "function", _ = "undefined", g = "object", w = "string", h = "major", c = "model", v = "name", p = "type", m = "vendor", x = "version", T = "architecture", I = "console", k = "mobile", F = "tablet", V = "smarttv", z = "wearable", B = "embedded", ae = 500, ce = "Amazon", re = "Apple", J = "ASUS", H = "BlackBerry", G = "Browser", oe = "Chrome", ge = "Edge", me = "Firefox", we = "Google", Be = "Honor", de = "Huawei", q = "Lenovo", ue = "LG", ye = "Microsoft", ke = "Motorola",
|
|
4204
|
+
var i = "1.0.41", o = "", a = "?", l = "function", _ = "undefined", g = "object", w = "string", h = "major", c = "model", v = "name", p = "type", m = "vendor", x = "version", T = "architecture", I = "console", k = "mobile", F = "tablet", V = "smarttv", z = "wearable", B = "embedded", ae = 500, ce = "Amazon", re = "Apple", J = "ASUS", H = "BlackBerry", G = "Browser", oe = "Chrome", ge = "Edge", me = "Firefox", we = "Google", Be = "Honor", de = "Huawei", q = "Lenovo", ue = "LG", ye = "Microsoft", ke = "Motorola", De = "Nvidia", N = "OnePlus", ne = "Opera", je = "OPPO", Ke = "Samsung", tt = "Sharp", ze = "Sony", ft = "Xiaomi", at = "Zebra", xt = "Facebook", ht = "Chromium OS", lt = "Mac OS", pt = " Browser", Et = function(j, Q) {
|
|
4205
4205
|
var U = {};
|
|
4206
4206
|
for (var se in j)
|
|
4207
4207
|
Q[se] && Q[se].length % 2 === 0 ? U[se] = Q[se].concat(j[se]) : U[se] = j[se];
|
|
@@ -4219,13 +4219,13 @@ function Vl() {
|
|
|
4219
4219
|
}, S = function(j, Q) {
|
|
4220
4220
|
if (typeof j === w)
|
|
4221
4221
|
return j = j.replace(/^\s\s*/, o), typeof Q === _ ? j : j.substring(0, ae);
|
|
4222
|
-
},
|
|
4223
|
-
for (var U = 0, se,
|
|
4224
|
-
var St = Q[U],
|
|
4225
|
-
for (se =
|
|
4222
|
+
}, M = function(j, Q) {
|
|
4223
|
+
for (var U = 0, se, Me, Te, ie, $, Le; U < Q.length && !$; ) {
|
|
4224
|
+
var St = Q[U], Dt = Q[U + 1];
|
|
4225
|
+
for (se = Me = 0; se < St.length && !$ && St[se]; )
|
|
4226
4226
|
if ($ = St[se++].exec(j), $)
|
|
4227
|
-
for (Te = 0; Te <
|
|
4228
|
-
Le = $[++
|
|
4227
|
+
for (Te = 0; Te < Dt.length; Te++)
|
|
4228
|
+
Le = $[++Me], ie = Dt[Te], typeof ie === g && ie.length > 0 ? ie.length === 2 ? typeof ie[1] == l ? this[ie[0]] = ie[1].call(this, Le) : this[ie[0]] = ie[1] : ie.length === 3 ? typeof ie[1] === l && !(ie[1].exec && ie[1].test) ? this[ie[0]] = Le ? ie[1].call(this, Le, ie[2]) : n : this[ie[0]] = Le ? Le.replace(ie[1], ie[2]) : n : ie.length === 4 && (this[ie[0]] = Le ? ie[3].call(this, Le.replace(ie[1], ie[2])) : n) : this[ie] = Le || n;
|
|
4229
4229
|
U += 2;
|
|
4230
4230
|
}
|
|
4231
4231
|
}, A = function(j, Q) {
|
|
@@ -4237,25 +4237,25 @@ function Vl() {
|
|
|
4237
4237
|
} else if (Xe(Q[U], j))
|
|
4238
4238
|
return U === a ? n : U;
|
|
4239
4239
|
return Q.hasOwnProperty("*") ? Q["*"] : j;
|
|
4240
|
-
}, R = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, L = { 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" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [x, [v, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [x, [v, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [v, x], [/opios[\/ ]+([\w\.]+)/i], [x, [v, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [x, [v, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [x, [v, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [x, [v, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [x, [v, "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], [v, x], [/quark(?:pc)?\/([-\w\.]+)/i], [x, [v, "Quark"]], [/\bddg\/([\w\.]+)/i], [x, [v, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [x, [v, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [x, [v, "WeChat"]], [/konqueror\/([\w\.]+)/i], [x, [v, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [x, [v, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [x, [v, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [x, [v, "Smart Lenovo " + G]], [/(avast|avg)\/([\w\.]+)/i], [[v, /(.+)/, "$1 Secure " + G], x], [/\bfocus\/([\w\.]+)/i], [x, [v, me + " Focus"]], [/\bopt\/([\w\.]+)/i], [x, [v, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [x, [v, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [x, [v, "Dolphin"]], [/coast\/([\w\.]+)/i], [x, [v, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [x, [v, "MIUI" + pt]], [/fxios\/([\w\.-]+)/i], [x, [v, me]], [/\bqihoobrowser\/?([\w\.]*)/i], [x, [v, "360"]], [/\b(qq)\/([\w\.]+)/i], [[v, /(.+)/, "$1Browser"], x], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[v, /(.+)/, "$1" + pt], x], [/samsungbrowser\/([\w\.]+)/i], [x, [v, Ke + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [x, [v, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[v, "Sogou Mobile"], x], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [v, x], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [v], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [x, v], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[v, xt], x], [/(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], [v, x], [/\bgsa\/([\w\.]+) .*safari\//i], [x, [v, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [x, [v, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [x, [v, oe + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[v, oe + " WebView"], x], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [x, [v, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [v, x], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [x, [v, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [x, v], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [v, [x, A, R]], [/(webkit|khtml)\/([\w\.]+)/i], [v, x], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[v, "Netscape"], x], [/(wolvic|librewolf)\/([\w\.]+)/i], [v, x], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [x, [v, me + " 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], [v, [x, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [v, [x, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[T, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[T, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[T, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[T, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[T, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[T, /ower/, o, f]], [/ sun4\w[;\)]/i], [[T, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[T, f]]], 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], [c, [m, Ke], [p, F]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [m, Ke], [p, k]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [m, re], [p, k]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [m, re], [p, F]], [/(macintosh);/i], [c, [m, re]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [m, tt], [p, k]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [m, Be], [p, F]], [/honor([-\w ]+)[;\)]/i], [c, [m, Be], [p, k]], [/\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], [c, [m, de], [p, F]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [m, de], [p, k]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [m, ft], [p, F]], [/\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], [[c, /_/g, " "], [m, ft], [p, k]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [m, je], [p, k]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [m, A, { OnePlus: ["304", "403", "203"], "*": je }], [p, F]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [m, "Vivo"], [p, k]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [m, "Realme"], [p, k]], [/\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], [c, [m, ke], [p, k]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [m, ke], [p, F]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [m, ue], [p, F]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [m, ue], [p, k]], [/(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], [c, [m, q], [p, F]], [/(nokia) (t[12][01])/i], [m, c, [p, F]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [p, k], [m, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [m, we], [p, F]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [m, we], [p, k]], [/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], [c, [m, ze], [p, k]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [m, ze], [p, F]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [m, N], [p, k]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [m, ce], [p, F]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [m, ce], [p, k]], [/(playbook);[-\w\),; ]+(rim)/i], [c, m, [p, F]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [m, H], [p, k]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [m, J], [p, F]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [m, J], [p, k]], [/(nexus 9)/i], [c, [m, "HTC"], [p, F]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [c, /_/g, " "], [p, k]], [/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], [c, [m, "TCL"], [p, F]], [/(itel) ((\w+))/i], [[m, f], c, [p, A, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [m, "Acer"], [p, F]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [m, "Meizu"], [p, k]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [m, "Ulefone"], [p, k]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [m, "Energizer"], [p, k]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [m, "Cat"], [p, k]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [m, "Smartfren"], [p, k]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [m, "Nothing"], [p, k]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [m, "Archos"], [p, F]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [m, "Archos"], [p, k]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [m, c, [p, F]], [/(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], [m, c, [p, k]], [/(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], [m, c, [p, F]], [/(surface duo)/i], [c, [m, ye], [p, F]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [m, "Fairphone"], [p, k]], [/(u304aa)/i], [c, [m, "AT&T"], [p, k]], [/\bsie-(\w*)/i], [c, [m, "Siemens"], [p, k]], [/\b(rct\w+) b/i], [c, [m, "RCA"], [p, F]], [/\b(venue[\d ]{2,7}) b/i], [c, [m, "Dell"], [p, F]], [/\b(q(?:mv|ta)\w+) b/i], [c, [m, "Verizon"], [p, F]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [m, "Barnes & Noble"], [p, F]], [/\b(tm\d{3}\w+) b/i], [c, [m, "NuVision"], [p, F]], [/\b(k88) b/i], [c, [m, "ZTE"], [p, F]], [/\b(nx\d{3}j) b/i], [c, [m, "ZTE"], [p, k]], [/\b(gen\d{3}) b.+49h/i], [c, [m, "Swiss"], [p, k]], [/\b(zur\d{3}) b/i], [c, [m, "Swiss"], [p, F]], [/\b((zeki)?tb.*\b) b/i], [c, [m, "Zeki"], [p, F]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], c, [p, F]], [/\b(ns-?\w{0,9}) b/i], [c, [m, "Insignia"], [p, F]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [m, "NextBook"], [p, F]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], c, [p, k]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], c, [p, k]], [/\b(ph-1) /i], [c, [m, "Essential"], [p, k]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [m, "Envizen"], [p, F]], [/\b(trio[-\w\. ]+) b/i], [c, [m, "MachSpeed"], [p, F]], [/\btu_(1491) b/i], [c, [m, "Rotor"], [p, F]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [m, Me], [p, F]], [/(sprint) (\w+)/i], [m, c, [p, k]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [m, ye], [p, k]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [m, at], [p, F]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [m, at], [p, k]], [/smart-tv.+(samsung)/i], [m, [p, V]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [m, Ke], [p, V]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, ue], [p, V]], [/(apple) ?tv/i], [m, [c, re + " TV"], [p, V]], [/crkey/i], [[c, oe + "cast"], [m, we], [p, V]], [/droid.+aft(\w+)( bui|\))/i], [c, [m, ce], [p, V]], [/(shield \w+ tv)/i], [c, [m, Me], [p, V]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [m, tt], [p, V]], [/(bravia[\w ]+)( bui|\))/i], [c, [m, ze], [p, V]], [/(mi(tv|box)-?\w+) bui/i], [c, [m, ft], [p, V]], [/Hbbtv.*(technisat) (.*);/i], [m, c, [p, V]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, S], [c, S], [p, V]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [p, V]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, V]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, c, [p, I]], [/droid.+; (shield)( bui|\))/i], [c, [m, Me], [p, I]], [/(playstation \w+)/i], [c, [m, ze], [p, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [m, ye], [p, I]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [m, Ke], [p, z]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [m, c, [p, z]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [m, je], [p, z]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [m, re], [p, z]], [/(opwwe\d{3})/i], [c, [m, N], [p, z]], [/(moto 360)/i], [c, [m, ke], [p, z]], [/(smartwatch 3)/i], [c, [m, ze], [p, z]], [/(g watch r)/i], [c, [m, ue], [p, z]], [/droid.+; (wt63?0{2,3})\)/i], [c, [m, at], [p, z]], [/droid.+; (glass) \d/i], [c, [m, we], [p, z]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, c, [p, z]], [/; (quest( \d| pro)?)/i], [c, [m, xt], [p, z]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [p, B]], [/(aeobc)\b/i], [c, [m, ce], [p, B]], [/(homepod).+mac os/i], [c, [m, re], [p, B]], [/windows iot/i], [[p, B]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [p, k]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [p, F]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, F]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, k]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [x, [v, ge + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [v, x], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [x, [v, "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], [v, x], [/ladybird\//i], [[v, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [x, v]], os: [[/microsoft (windows) (vista|xp)/i], [v, x], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [v, [x, A, L]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[x, A, L], [v, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[x, /_/g, "."], [v, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[v, lt], [x, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [x, v], [/(ubuntu) ([\w\.]+) like android/i], [[v, /(.+)/, "$1 Touch"], x], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [v, x], [/\(bb(10);/i], [x, [v, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [x, [v, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [x, [v, me + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [x, [v, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [x, [v, "watchOS"]], [/crkey\/([\d\.]+)/i], [x, [v, oe + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[v, ht], x], [/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], [v, x], [/(sunos) ?([\w\.\d]*)/i], [[v, "Solaris"], x], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [v, x]] }, W = function(j, Q) {
|
|
4240
|
+
}, R = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, L = { 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" }, K = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [x, [v, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [x, [v, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [v, x], [/opios[\/ ]+([\w\.]+)/i], [x, [v, ne + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [x, [v, ne + " GX"]], [/\bopr\/([\w\.]+)/i], [x, [v, ne]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [x, [v, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [x, [v, "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], [v, x], [/quark(?:pc)?\/([-\w\.]+)/i], [x, [v, "Quark"]], [/\bddg\/([\w\.]+)/i], [x, [v, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [x, [v, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [x, [v, "WeChat"]], [/konqueror\/([\w\.]+)/i], [x, [v, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [x, [v, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [x, [v, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [x, [v, "Smart Lenovo " + G]], [/(avast|avg)\/([\w\.]+)/i], [[v, /(.+)/, "$1 Secure " + G], x], [/\bfocus\/([\w\.]+)/i], [x, [v, me + " Focus"]], [/\bopt\/([\w\.]+)/i], [x, [v, ne + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [x, [v, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [x, [v, "Dolphin"]], [/coast\/([\w\.]+)/i], [x, [v, ne + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [x, [v, "MIUI" + pt]], [/fxios\/([\w\.-]+)/i], [x, [v, me]], [/\bqihoobrowser\/?([\w\.]*)/i], [x, [v, "360"]], [/\b(qq)\/([\w\.]+)/i], [[v, /(.+)/, "$1Browser"], x], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[v, /(.+)/, "$1" + pt], x], [/samsungbrowser\/([\w\.]+)/i], [x, [v, Ke + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [x, [v, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[v, "Sogou Mobile"], x], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [v, x], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [v], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [x, v], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[v, xt], x], [/(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], [v, x], [/\bgsa\/([\w\.]+) .*safari\//i], [x, [v, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [x, [v, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [x, [v, oe + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[v, oe + " WebView"], x], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [x, [v, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [v, x], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [x, [v, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [x, v], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [v, [x, A, R]], [/(webkit|khtml)\/([\w\.]+)/i], [v, x], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[v, "Netscape"], x], [/(wolvic|librewolf)\/([\w\.]+)/i], [v, x], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [x, [v, me + " 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], [v, [x, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [v, [x, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[T, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[T, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[T, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[T, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[T, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[T, /ower/, o, f]], [/ sun4\w[;\)]/i], [[T, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[T, f]]], 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], [c, [m, Ke], [p, F]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [m, Ke], [p, k]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [m, re], [p, k]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [m, re], [p, F]], [/(macintosh);/i], [c, [m, re]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [m, tt], [p, k]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [m, Be], [p, F]], [/honor([-\w ]+)[;\)]/i], [c, [m, Be], [p, k]], [/\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], [c, [m, de], [p, F]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [m, de], [p, k]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [m, ft], [p, F]], [/\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], [[c, /_/g, " "], [m, ft], [p, k]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [m, je], [p, k]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [m, A, { OnePlus: ["304", "403", "203"], "*": je }], [p, F]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [m, "Vivo"], [p, k]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [m, "Realme"], [p, k]], [/\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], [c, [m, ke], [p, k]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [m, ke], [p, F]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [m, ue], [p, F]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [m, ue], [p, k]], [/(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], [c, [m, q], [p, F]], [/(nokia) (t[12][01])/i], [m, c, [p, F]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [p, k], [m, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [m, we], [p, F]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [m, we], [p, k]], [/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], [c, [m, ze], [p, k]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [m, ze], [p, F]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [m, N], [p, k]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [m, ce], [p, F]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [m, ce], [p, k]], [/(playbook);[-\w\),; ]+(rim)/i], [c, m, [p, F]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [m, H], [p, k]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [m, J], [p, F]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [m, J], [p, k]], [/(nexus 9)/i], [c, [m, "HTC"], [p, F]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [c, /_/g, " "], [p, k]], [/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], [c, [m, "TCL"], [p, F]], [/(itel) ((\w+))/i], [[m, f], c, [p, A, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [m, "Acer"], [p, F]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [m, "Meizu"], [p, k]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [m, "Ulefone"], [p, k]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [m, "Energizer"], [p, k]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [m, "Cat"], [p, k]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [m, "Smartfren"], [p, k]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [m, "Nothing"], [p, k]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [m, "Archos"], [p, F]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [m, "Archos"], [p, k]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [m, c, [p, F]], [/(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], [m, c, [p, k]], [/(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], [m, c, [p, F]], [/(surface duo)/i], [c, [m, ye], [p, F]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [m, "Fairphone"], [p, k]], [/(u304aa)/i], [c, [m, "AT&T"], [p, k]], [/\bsie-(\w*)/i], [c, [m, "Siemens"], [p, k]], [/\b(rct\w+) b/i], [c, [m, "RCA"], [p, F]], [/\b(venue[\d ]{2,7}) b/i], [c, [m, "Dell"], [p, F]], [/\b(q(?:mv|ta)\w+) b/i], [c, [m, "Verizon"], [p, F]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [m, "Barnes & Noble"], [p, F]], [/\b(tm\d{3}\w+) b/i], [c, [m, "NuVision"], [p, F]], [/\b(k88) b/i], [c, [m, "ZTE"], [p, F]], [/\b(nx\d{3}j) b/i], [c, [m, "ZTE"], [p, k]], [/\b(gen\d{3}) b.+49h/i], [c, [m, "Swiss"], [p, k]], [/\b(zur\d{3}) b/i], [c, [m, "Swiss"], [p, F]], [/\b((zeki)?tb.*\b) b/i], [c, [m, "Zeki"], [p, F]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], c, [p, F]], [/\b(ns-?\w{0,9}) b/i], [c, [m, "Insignia"], [p, F]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [m, "NextBook"], [p, F]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], c, [p, k]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], c, [p, k]], [/\b(ph-1) /i], [c, [m, "Essential"], [p, k]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [m, "Envizen"], [p, F]], [/\b(trio[-\w\. ]+) b/i], [c, [m, "MachSpeed"], [p, F]], [/\btu_(1491) b/i], [c, [m, "Rotor"], [p, F]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [m, De], [p, F]], [/(sprint) (\w+)/i], [m, c, [p, k]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [m, ye], [p, k]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [m, at], [p, F]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [m, at], [p, k]], [/smart-tv.+(samsung)/i], [m, [p, V]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [m, Ke], [p, V]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, ue], [p, V]], [/(apple) ?tv/i], [m, [c, re + " TV"], [p, V]], [/crkey/i], [[c, oe + "cast"], [m, we], [p, V]], [/droid.+aft(\w+)( bui|\))/i], [c, [m, ce], [p, V]], [/(shield \w+ tv)/i], [c, [m, De], [p, V]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [m, tt], [p, V]], [/(bravia[\w ]+)( bui|\))/i], [c, [m, ze], [p, V]], [/(mi(tv|box)-?\w+) bui/i], [c, [m, ft], [p, V]], [/Hbbtv.*(technisat) (.*);/i], [m, c, [p, V]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, S], [c, S], [p, V]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [p, V]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[p, V]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, c, [p, I]], [/droid.+; (shield)( bui|\))/i], [c, [m, De], [p, I]], [/(playstation \w+)/i], [c, [m, ze], [p, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [m, ye], [p, I]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [m, Ke], [p, z]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [m, c, [p, z]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [m, je], [p, z]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [m, re], [p, z]], [/(opwwe\d{3})/i], [c, [m, N], [p, z]], [/(moto 360)/i], [c, [m, ke], [p, z]], [/(smartwatch 3)/i], [c, [m, ze], [p, z]], [/(g watch r)/i], [c, [m, ue], [p, z]], [/droid.+; (wt63?0{2,3})\)/i], [c, [m, at], [p, z]], [/droid.+; (glass) \d/i], [c, [m, we], [p, z]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, c, [p, z]], [/; (quest( \d| pro)?)/i], [c, [m, xt], [p, z]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [p, B]], [/(aeobc)\b/i], [c, [m, ce], [p, B]], [/(homepod).+mac os/i], [c, [m, re], [p, B]], [/windows iot/i], [[p, B]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [p, k]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [p, F]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[p, F]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[p, k]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [x, [v, ge + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [v, x], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [x, [v, "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], [v, x], [/ladybird\//i], [[v, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [x, v]], os: [[/microsoft (windows) (vista|xp)/i], [v, x], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [v, [x, A, L]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[x, A, L], [v, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[x, /_/g, "."], [v, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[v, lt], [x, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [x, v], [/(ubuntu) ([\w\.]+) like android/i], [[v, /(.+)/, "$1 Touch"], x], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [v, x], [/\(bb(10);/i], [x, [v, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [x, [v, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [x, [v, me + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [x, [v, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [x, [v, "watchOS"]], [/crkey\/([\d\.]+)/i], [x, [v, oe + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[v, ht], x], [/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], [v, x], [/(sunos) ?([\w\.\d]*)/i], [[v, "Solaris"], x], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [v, x]] }, W = function(j, Q) {
|
|
4241
4241
|
if (typeof j === g && (Q = j, j = n), !(this instanceof W))
|
|
4242
4242
|
return new W(j, Q).getResult();
|
|
4243
|
-
var U = typeof r !== _ && r.navigator ? r.navigator : n, se = j || (U && U.userAgent ? U.userAgent : o),
|
|
4243
|
+
var U = typeof r !== _ && r.navigator ? r.navigator : n, se = j || (U && U.userAgent ? U.userAgent : o), Me = U && U.userAgentData ? U.userAgentData : n, Te = Q ? Et(K, Q) : K, ie = U && U.userAgent == se;
|
|
4244
4244
|
return this.getBrowser = function() {
|
|
4245
4245
|
var $ = {};
|
|
4246
|
-
return $[v] = n, $[x] = n,
|
|
4246
|
+
return $[v] = n, $[x] = n, M.call($, se, Te.browser), $[h] = C($[x]), ie && U && U.brave && typeof U.brave.isBrave == l && ($[v] = "Brave"), $;
|
|
4247
4247
|
}, this.getCPU = function() {
|
|
4248
4248
|
var $ = {};
|
|
4249
|
-
return $[T] = n,
|
|
4249
|
+
return $[T] = n, M.call($, se, Te.cpu), $;
|
|
4250
4250
|
}, this.getDevice = function() {
|
|
4251
4251
|
var $ = {};
|
|
4252
|
-
return $[m] = n, $[c] = n, $[p] = n,
|
|
4252
|
+
return $[m] = n, $[c] = n, $[p] = n, M.call($, se, Te.device), ie && !$[p] && Me && Me.mobile && ($[p] = k), ie && $[c] == "Macintosh" && U && typeof U.standalone !== _ && U.maxTouchPoints && U.maxTouchPoints > 2 && ($[c] = "iPad", $[p] = F), $;
|
|
4253
4253
|
}, this.getEngine = function() {
|
|
4254
4254
|
var $ = {};
|
|
4255
|
-
return $[v] = n, $[x] = n,
|
|
4255
|
+
return $[v] = n, $[x] = n, M.call($, se, Te.engine), $;
|
|
4256
4256
|
}, this.getOS = function() {
|
|
4257
4257
|
var $ = {};
|
|
4258
|
-
return $[v] = n, $[x] = n,
|
|
4258
|
+
return $[v] = n, $[x] = n, M.call($, se, Te.os), ie && !$[v] && Me && Me.platform && Me.platform != "Unknown" && ($[v] = Me.platform.replace(/chrome os/i, ht).replace(/macos/i, lt)), $;
|
|
4259
4259
|
}, this.getResult = function() {
|
|
4260
4260
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
4261
4261
|
}, this.getUA = function() {
|
|
@@ -4538,7 +4538,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4538
4538
|
default:
|
|
4539
4539
|
return ye;
|
|
4540
4540
|
}
|
|
4541
|
-
},
|
|
4541
|
+
}, De = function(d) {
|
|
4542
4542
|
return h(d);
|
|
4543
4543
|
}, N = function(d) {
|
|
4544
4544
|
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
@@ -4646,7 +4646,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4646
4646
|
}, S = function(d) {
|
|
4647
4647
|
var u = d.type;
|
|
4648
4648
|
return u === de.Embedded;
|
|
4649
|
-
},
|
|
4649
|
+
}, M = function(d) {
|
|
4650
4650
|
var u = d.vendor;
|
|
4651
4651
|
return N(u);
|
|
4652
4652
|
}, A = function(d) {
|
|
@@ -4682,7 +4682,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4682
4682
|
}, se = function(d) {
|
|
4683
4683
|
var u = d.name;
|
|
4684
4684
|
return u === q.Firefox;
|
|
4685
|
-
},
|
|
4685
|
+
}, Me = function(d) {
|
|
4686
4686
|
var u = d.name;
|
|
4687
4687
|
return u === q.Chromium;
|
|
4688
4688
|
}, Te = function(d) {
|
|
@@ -4700,7 +4700,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4700
4700
|
}, St = function(d) {
|
|
4701
4701
|
var u = d.name;
|
|
4702
4702
|
return u === q.Opera;
|
|
4703
|
-
},
|
|
4703
|
+
}, Dt = function(d) {
|
|
4704
4704
|
var u = d.name;
|
|
4705
4705
|
return u === q.InternetExplorer || u === q.Ie;
|
|
4706
4706
|
}, sn = function(d) {
|
|
@@ -4749,7 +4749,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4749
4749
|
isWearable: f(u),
|
|
4750
4750
|
isEmbedded: S(u),
|
|
4751
4751
|
isMobileSafari: Le(E) || Je(),
|
|
4752
|
-
isChromium:
|
|
4752
|
+
isChromium: Me(E),
|
|
4753
4753
|
isMobile: Et(u) || Je(),
|
|
4754
4754
|
isMobileOnly: lt(u),
|
|
4755
4755
|
isTablet: pt(u) || Je(),
|
|
@@ -4762,13 +4762,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4762
4762
|
isFirefox: se(E),
|
|
4763
4763
|
isSafari: $(E),
|
|
4764
4764
|
isOpera: St(E),
|
|
4765
|
-
isIE:
|
|
4765
|
+
isIE: Dt(E),
|
|
4766
4766
|
osVersion: j(O),
|
|
4767
4767
|
osName: Q(O),
|
|
4768
4768
|
fullBrowserVersion: ln(E),
|
|
4769
4769
|
browserVersion: cn(E),
|
|
4770
4770
|
browserName: dn(E),
|
|
4771
|
-
mobileVendor:
|
|
4771
|
+
mobileVendor: M(u),
|
|
4772
4772
|
mobileModel: A(u),
|
|
4773
4773
|
engineName: un(ee),
|
|
4774
4774
|
engineVersion: fn(ee),
|
|
@@ -4789,7 +4789,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4789
4789
|
isSamsungBrowser: an(E)
|
|
4790
4790
|
};
|
|
4791
4791
|
}
|
|
4792
|
-
var bn = ct(l), wn = C(l), Cn = f(l), Oo = S(l), To = Le(o) || Je(), Fo =
|
|
4792
|
+
var bn = ct(l), wn = C(l), Cn = f(l), Oo = S(l), To = Le(o) || Je(), Fo = Me(o), Jt = Et(l) || Je(), yn = lt(l), xn = pt(l) || Je(), En = Xe(l), Ao = Xe(l), Sn = L(g), kn = le(g), On = Ve(g) || Je(), Io = U(o), Vo = se(o), Ro = $(o), Do = St(o), Tn = Dt(o), Mo = j(g), Po = Q(g), No = ln(o), Bo = cn(o), Lo = dn(o), Uo = M(l), Ho = A(l), Wo = un(_), $o = fn(_), jo = mn(w), zo = Te(o) || kt(w), qo = ie(o), Zo = R(l), Go = pn(), Yo = Je(), Ko = _n(), Xo = gn(), Jo = hn(), Qo = kt(w), es = Te(o) && !kt(w), ts = K(g), rs = W(g), ns = sn(o), is = an(o), os = function(d) {
|
|
4793
4793
|
if (!d || typeof d != "string") {
|
|
4794
4794
|
console.error("No valid user agent string was provided");
|
|
4795
4795
|
return;
|
|
@@ -4924,12 +4924,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4924
4924
|
var d = b || window.navigator.userAgent, u = Fn(d), E = vn(u);
|
|
4925
4925
|
return [E, u];
|
|
4926
4926
|
}
|
|
4927
|
-
return P.AndroidView = ss, P.BrowserTypes = q, P.BrowserView = as, P.ConsoleView = _s, P.CustomView = ms, P.IEView = ls, P.IOSView = cs, P.MobileOnlyView = hs, P.MobileView = ds, P.OsTypes = ue, P.SmartTVView = ps, P.TabletView = us, P.WearableView = gs, P.WinPhoneView = fs, P.browserName = Lo, P.browserVersion = Bo, P.deviceDetect = ht, P.deviceType = Zo, P.engineName = Wo, P.engineVersion = $o, P.fullBrowserVersion = No, P.getSelectorsByUserAgent = os, P.getUA = jo, P.isAndroid = Sn, P.isBrowser = En, P.isChrome = Io, P.isChromium = Fo, P.isConsole = wn, P.isDesktop = Ao, P.isEdge = zo, P.isEdgeChromium = Qo, P.isElectron = Jo, P.isEmbedded = Oo, P.isFirefox = Vo, P.isIE = Tn, P.isIOS = On, P.isIOS13 = Go, P.isIPad13 = Yo, P.isIPhone13 = Ko, P.isIPod13 = Xo, P.isLegacyEdge = es, P.isMIUI = ns, P.isMacOs = rs, P.isMobile = Jt, P.isMobileOnly = yn, P.isMobileSafari = To, P.isOpera =
|
|
4927
|
+
return P.AndroidView = ss, P.BrowserTypes = q, P.BrowserView = as, P.ConsoleView = _s, P.CustomView = ms, P.IEView = ls, P.IOSView = cs, P.MobileOnlyView = hs, P.MobileView = ds, P.OsTypes = ue, P.SmartTVView = ps, P.TabletView = us, P.WearableView = gs, P.WinPhoneView = fs, P.browserName = Lo, P.browserVersion = Bo, P.deviceDetect = ht, P.deviceType = Zo, P.engineName = Wo, P.engineVersion = $o, P.fullBrowserVersion = No, P.getSelectorsByUserAgent = os, P.getUA = jo, P.isAndroid = Sn, P.isBrowser = En, P.isChrome = Io, P.isChromium = Fo, P.isConsole = wn, P.isDesktop = Ao, P.isEdge = zo, P.isEdgeChromium = Qo, P.isElectron = Jo, P.isEmbedded = Oo, P.isFirefox = Vo, P.isIE = Tn, P.isIOS = On, P.isIOS13 = Go, P.isIPad13 = Yo, P.isIPhone13 = Ko, P.isIPod13 = Xo, P.isLegacyEdge = es, P.isMIUI = ns, P.isMacOs = rs, P.isMobile = Jt, P.isMobileOnly = yn, P.isMobileSafari = To, P.isOpera = Do, P.isSafari = Ro, P.isSamsungBrowser = is, P.isSmartTV = bn, P.isTablet = xn, P.isWearable = Cn, P.isWinPhone = kn, P.isWindows = ts, P.isYandex = qo, P.mobileModel = Ho, P.mobileVendor = Uo, P.osName = Po, P.osVersion = Mo, P.parseUserAgent = c, P.setUserAgent = De, P.useDeviceData = Fn, P.useDeviceSelectors = ws, P.useMobileOrientation = bs, P.withOrientationChange = vs, P;
|
|
4928
4928
|
}
|
|
4929
4929
|
var gt = Rl();
|
|
4930
|
-
const
|
|
4930
|
+
const Dl = {
|
|
4931
4931
|
display: "none"
|
|
4932
|
-
},
|
|
4932
|
+
}, Ml = {
|
|
4933
4933
|
display: "flex",
|
|
4934
4934
|
alignItems: "center",
|
|
4935
4935
|
justifyContent: "center",
|
|
@@ -5008,7 +5008,7 @@ const Ml = {
|
|
|
5008
5008
|
/* @__PURE__ */ s(
|
|
5009
5009
|
"input",
|
|
5010
5010
|
Z(y({
|
|
5011
|
-
style:
|
|
5011
|
+
style: Dl,
|
|
5012
5012
|
ref: a,
|
|
5013
5013
|
type: "file",
|
|
5014
5014
|
accept: "image/*",
|
|
@@ -5017,7 +5017,7 @@ const Ml = {
|
|
|
5017
5017
|
onInput: _
|
|
5018
5018
|
})
|
|
5019
5019
|
),
|
|
5020
|
-
/* @__PURE__ */ s("button", { style:
|
|
5020
|
+
/* @__PURE__ */ s("button", { style: Ml, onClick: g, children: /* @__PURE__ */ s(Ae, { imageId: (h = (w = n == null ? void 0 : n[0]) == null ? void 0 : w.image) == null ? void 0 : h.imageId }) })
|
|
5021
5021
|
]
|
|
5022
5022
|
}
|
|
5023
5023
|
) }) });
|
|
@@ -5032,7 +5032,7 @@ function Bl() {
|
|
|
5032
5032
|
(o = e.current) == null || o.hidePopover(), r(!1);
|
|
5033
5033
|
} };
|
|
5034
5034
|
}
|
|
5035
|
-
const
|
|
5035
|
+
const yr = () => _e(null, null, function* () {
|
|
5036
5036
|
var e;
|
|
5037
5037
|
try {
|
|
5038
5038
|
const t = yield navigator.permissions.query({ name: "geolocation" });
|
|
@@ -5175,7 +5175,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5175
5175
|
if (gt.isSafari || _) return;
|
|
5176
5176
|
let V = !0;
|
|
5177
5177
|
return _e(null, null, function* () {
|
|
5178
|
-
if ((yield
|
|
5178
|
+
if ((yield yr()) !== "granted") {
|
|
5179
5179
|
h == null || h(!1);
|
|
5180
5180
|
return;
|
|
5181
5181
|
}
|
|
@@ -5213,7 +5213,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5213
5213
|
}, []);
|
|
5214
5214
|
const I = (V) => _e(null, null, function* () {
|
|
5215
5215
|
V.preventDefault();
|
|
5216
|
-
const z = yield
|
|
5216
|
+
const z = yield yr();
|
|
5217
5217
|
if (z === "denied") {
|
|
5218
5218
|
p();
|
|
5219
5219
|
return;
|
|
@@ -5223,7 +5223,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5223
5223
|
w(B, g);
|
|
5224
5224
|
}
|
|
5225
5225
|
}), k = (V) => _e(null, null, function* () {
|
|
5226
|
-
if (V.preventDefault(), (yield
|
|
5226
|
+
if (V.preventDefault(), (yield yr()) === "denied") {
|
|
5227
5227
|
p();
|
|
5228
5228
|
return;
|
|
5229
5229
|
}
|
|
@@ -5238,7 +5238,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5238
5238
|
/* @__PURE__ */ s("div", { style: Hl, children: [
|
|
5239
5239
|
n && /* @__PURE__ */ s("div", { style: $l, children: /* @__PURE__ */ s(Ae, y({}, n)) }),
|
|
5240
5240
|
e && /* @__PURE__ */ s("div", { style: jl, children: /* @__PURE__ */ s(be, y({}, e)) }),
|
|
5241
|
-
i && /* @__PURE__ */ s("div", { style: zl, children: /* @__PURE__ */ s(
|
|
5241
|
+
i && /* @__PURE__ */ s("div", { style: zl, children: /* @__PURE__ */ s(gr, y({}, i)) })
|
|
5242
5242
|
] }),
|
|
5243
5243
|
!!(o != null && o.length) && /* @__PURE__ */ s(
|
|
5244
5244
|
"div",
|
|
@@ -5248,7 +5248,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5248
5248
|
flexDirection: "column"
|
|
5249
5249
|
},
|
|
5250
5250
|
children: o.map((V, z) => /* @__PURE__ */ s("div", { style: { padding: "5px" }, children: /* @__PURE__ */ s(
|
|
5251
|
-
|
|
5251
|
+
dr,
|
|
5252
5252
|
y(y({
|
|
5253
5253
|
dataTestId: "question-button"
|
|
5254
5254
|
}, V), V.type === "FORM" ? {
|
|
@@ -5273,7 +5273,7 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5273
5273
|
/* @__PURE__ */ s("div", { style: Zl, children: /* @__PURE__ */ s(be, y({}, y({ fontSize: "24px" }, T.title))) }),
|
|
5274
5274
|
/* @__PURE__ */ s("div", { style: Gl, children: /* @__PURE__ */ s("div", { style: Yl, children: /* @__PURE__ */ s(be, y({}, y({ fontSize: "17px" }, T.message))) }) }),
|
|
5275
5275
|
T.actionButton1 && /* @__PURE__ */ s("div", { style: Kl, children: /* @__PURE__ */ s(
|
|
5276
|
-
|
|
5276
|
+
dr,
|
|
5277
5277
|
y(y({
|
|
5278
5278
|
dataTestId: "question-button"
|
|
5279
5279
|
}, T.actionButton1), T.actionButton1.type === "FORM" ? { onClick: F } : {})
|
|
@@ -5397,18 +5397,18 @@ const Cr = () => _e(null, null, function* () {
|
|
|
5397
5397
|
);
|
|
5398
5398
|
if (t === qe.QUESTIONS && !n) {
|
|
5399
5399
|
const _ = new jt({
|
|
5400
|
-
errorCode:
|
|
5400
|
+
errorCode: cr.DECODING_FAILED,
|
|
5401
5401
|
message: "No data for questions"
|
|
5402
5402
|
});
|
|
5403
5403
|
return o(_), null;
|
|
5404
5404
|
}
|
|
5405
5405
|
const l = new jt({
|
|
5406
|
-
errorCode:
|
|
5406
|
+
errorCode: cr.DECODING_FAILED,
|
|
5407
5407
|
message: "Unsupported step template"
|
|
5408
5408
|
});
|
|
5409
5409
|
return o(l), null;
|
|
5410
5410
|
};
|
|
5411
|
-
let
|
|
5411
|
+
let xr = !1;
|
|
5412
5412
|
const e1 = ({ children: e }) => /* @__PURE__ */ s(Ie, { children: [
|
|
5413
5413
|
/* @__PURE__ */ s("style", { children: "#gui-idv-web-c *, #gui-idv-web-c *::before, #gui-idv-web-c *::after {box-sizing: border-box;}" }),
|
|
5414
5414
|
e
|
|
@@ -5489,25 +5489,25 @@ const e1 = ({ children: e }) => /* @__PURE__ */ s(Ie, { children: [
|
|
|
5489
5489
|
});
|
|
5490
5490
|
}
|
|
5491
5491
|
static isReady() {
|
|
5492
|
-
return
|
|
5492
|
+
return xr;
|
|
5493
5493
|
}
|
|
5494
5494
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5495
5495
|
static initialize(t) {
|
|
5496
|
-
|
|
5496
|
+
xr = !0;
|
|
5497
5497
|
}
|
|
5498
5498
|
static deinitialize() {
|
|
5499
|
-
|
|
5499
|
+
xr = !1;
|
|
5500
5500
|
}
|
|
5501
5501
|
};
|
|
5502
|
-
Wt.displayName =
|
|
5502
|
+
Wt.displayName = lr, Wt.getSupportedTemplates = () => Object.values(qe), Wt.getIdentifier = () => lr;
|
|
5503
5503
|
let Rr = Wt;
|
|
5504
|
-
|
|
5504
|
+
Ds(lr, Rr);
|
|
5505
5505
|
export {
|
|
5506
5506
|
Rr as GuiIdv,
|
|
5507
5507
|
Jl as GuiIdvReactComponent,
|
|
5508
5508
|
qe as GuiIdvSteps,
|
|
5509
5509
|
e1 as GuiIdvStyleInjectionWrapper,
|
|
5510
|
-
|
|
5510
|
+
cr as GuiModuleError,
|
|
5511
5511
|
fe as IDV_UI_ICONS,
|
|
5512
5512
|
Fr as idvIconComponents
|
|
5513
5513
|
};
|