@oncehub/ui-react 1.4.18 → 1.4.20-beta.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-react.es.js +130 -124
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +5 -5
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.es.js
CHANGED
|
@@ -208,16 +208,16 @@ function Vo() {
|
|
|
208
208
|
` + xe + s;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var lt = !1,
|
|
211
|
+
var lt = !1, et;
|
|
212
212
|
{
|
|
213
213
|
var S = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
-
|
|
214
|
+
et = new S();
|
|
215
215
|
}
|
|
216
216
|
function W(s, w) {
|
|
217
217
|
if (!s || lt)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var E =
|
|
220
|
+
var E = et.get(s);
|
|
221
221
|
if (E !== void 0)
|
|
222
222
|
return E;
|
|
223
223
|
}
|
|
@@ -239,29 +239,29 @@ function Vo() {
|
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
241
|
Reflect.construct(K, []);
|
|
242
|
-
} catch (
|
|
243
|
-
D =
|
|
242
|
+
} catch (nt) {
|
|
243
|
+
D = nt;
|
|
244
244
|
}
|
|
245
245
|
Reflect.construct(s, [], K);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
K.call();
|
|
249
|
-
} catch (
|
|
250
|
-
D =
|
|
249
|
+
} catch (nt) {
|
|
250
|
+
D = nt;
|
|
251
251
|
}
|
|
252
252
|
s.call(K.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
|
-
} catch (
|
|
258
|
-
D =
|
|
257
|
+
} catch (nt) {
|
|
258
|
+
D = nt;
|
|
259
259
|
}
|
|
260
260
|
s();
|
|
261
261
|
}
|
|
262
|
-
} catch (
|
|
263
|
-
if (
|
|
264
|
-
for (var H =
|
|
262
|
+
} catch (nt) {
|
|
263
|
+
if (nt && D && typeof nt.stack == "string") {
|
|
264
|
+
for (var H = nt.stack.split(`
|
|
265
265
|
`), je = D.stack.split(`
|
|
266
266
|
`), ge = H.length - 1, Oe = je.length - 1; ge >= 1 && Oe >= 0 && H[ge] !== je[Oe]; )
|
|
267
267
|
Oe--;
|
|
@@ -270,9 +270,9 @@ function Vo() {
|
|
|
270
270
|
if (ge !== 1 || Oe !== 1)
|
|
271
271
|
do
|
|
272
272
|
if (ge--, Oe--, Oe < 0 || H[ge] !== je[Oe]) {
|
|
273
|
-
var
|
|
273
|
+
var Ue = `
|
|
274
274
|
` + H[ge].replace(" at new ", " at ");
|
|
275
|
-
return s.displayName &&
|
|
275
|
+
return s.displayName && Ue.includes("<anonymous>") && (Ue = Ue.replace("<anonymous>", s.displayName)), typeof s == "function" && et.set(s, Ue), Ue;
|
|
276
276
|
}
|
|
277
277
|
while (ge >= 1 && Oe >= 0);
|
|
278
278
|
break;
|
|
@@ -282,7 +282,7 @@ function Vo() {
|
|
|
282
282
|
lt = !1, V.current = le, P(), Error.prepareStackTrace = X;
|
|
283
283
|
}
|
|
284
284
|
var xt = s ? s.displayName || s.name : "", Wn = xt ? Ie(xt) : "";
|
|
285
|
-
return typeof s == "function" &&
|
|
285
|
+
return typeof s == "function" && et.set(s, Wn), Wn;
|
|
286
286
|
}
|
|
287
287
|
function ye(s, w, E) {
|
|
288
288
|
return W(s, !1);
|
|
@@ -320,8 +320,8 @@ function Vo() {
|
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var Fe = Object.prototype.hasOwnProperty,
|
|
324
|
-
function
|
|
323
|
+
var Fe = Object.prototype.hasOwnProperty, Ve = {}, Re = g.ReactDebugCurrentFrame;
|
|
324
|
+
function tt(s) {
|
|
325
325
|
if (s) {
|
|
326
326
|
var w = s._owner, E = De(s.type, s._source, w ? w.type : null);
|
|
327
327
|
Re.setExtraStackFrame(E);
|
|
@@ -343,7 +343,7 @@ function Vo() {
|
|
|
343
343
|
} catch (ge) {
|
|
344
344
|
H = ge;
|
|
345
345
|
}
|
|
346
|
-
H && !(H instanceof Error) && (
|
|
346
|
+
H && !(H instanceof Error) && (tt(X), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", E, K, typeof H), tt(null)), H instanceof Error && !(H.message in Ve) && (Ve[H.message] = !0, tt(X), k("Failed %s type: %s", E, H.message), tt(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -386,7 +386,7 @@ function Vo() {
|
|
|
386
386
|
}
|
|
387
387
|
return s.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Be(s) {
|
|
390
390
|
if (Fe.call(s, "key")) {
|
|
391
391
|
var w = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
392
392
|
if (w && w.isReactWarning)
|
|
@@ -454,7 +454,7 @@ function Vo() {
|
|
|
454
454
|
function Eo(s, w, E, D, X) {
|
|
455
455
|
{
|
|
456
456
|
var le, K = {}, H = null, je = null;
|
|
457
|
-
E !== void 0 && (J(E), H = "" + E),
|
|
457
|
+
E !== void 0 && (J(E), H = "" + E), Be(w) && (J(w.key), H = "" + w.key), A(w) && (je = w.ref, Et(w, X));
|
|
458
458
|
for (le in w)
|
|
459
459
|
Fe.call(w, le) && !oe.hasOwnProperty(le) && (K[le] = w[le]);
|
|
460
460
|
if (s && s.defaultProps) {
|
|
@@ -602,17 +602,17 @@ Check the top-level render call using <` + E + ">.");
|
|
|
602
602
|
if (Oe == null)
|
|
603
603
|
return Oe;
|
|
604
604
|
if (K) {
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
605
|
+
var Ue = w.children;
|
|
606
|
+
if (Ue !== void 0)
|
|
607
607
|
if (D)
|
|
608
|
-
if (Pe(
|
|
609
|
-
for (var xt = 0; xt <
|
|
610
|
-
$n(
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if (Pe(Ue)) {
|
|
609
|
+
for (var xt = 0; xt < Ue.length; xt++)
|
|
610
|
+
$n(Ue[xt], s);
|
|
611
|
+
Object.freeze && Object.freeze(Ue);
|
|
612
612
|
} else
|
|
613
613
|
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
$n(
|
|
615
|
+
$n(Ue, s);
|
|
616
616
|
}
|
|
617
617
|
return s === r ? Ro(Oe) : Io(Oe), Oe;
|
|
618
618
|
}
|
|
@@ -649,7 +649,7 @@ const Bo = "_button_1q2ge_1", Uo = "_primary_1q2ge_5", Ho = "_secondary_1q2ge_12
|
|
|
649
649
|
);
|
|
650
650
|
return (0.2126 * o + 0.7152 * c + 0.0722 * i) / 255 < 0.7 ? "dark" : "light";
|
|
651
651
|
};
|
|
652
|
-
class
|
|
652
|
+
class Ze {
|
|
653
653
|
static convert3HexTo6(t) {
|
|
654
654
|
return typeof t == "string" && /^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t) && t.length === 4 ? t.replace(/^#(.)(.)(.)$/, "#$1$1$2$2$3$3") : t;
|
|
655
655
|
}
|
|
@@ -669,7 +669,7 @@ const ir = dt(
|
|
|
669
669
|
let m = {};
|
|
670
670
|
if (e) {
|
|
671
671
|
const l = pt(e);
|
|
672
|
-
if (e =
|
|
672
|
+
if (e = Ze.convert3HexTo6(e), !f && (l === "dark" || l === "light")) {
|
|
673
673
|
const d = t === "primary" ? e : "#ffffff", a = t === "primary" ? l === "dark" ? "#ffffff" : "#333333" : l === "light" ? "#333333" : e, u = e === "#ffffff" ? "#c8c8c8" : e;
|
|
674
674
|
m = {
|
|
675
675
|
backgroundColor: d,
|
|
@@ -694,7 +694,7 @@ const ir = dt(
|
|
|
694
694
|
}
|
|
695
695
|
);
|
|
696
696
|
ir.displayName = "Button";
|
|
697
|
-
const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_checkboxInnerContainer_bt7qx_10", Zo = "_checkboxInput_bt7qx_13", ei = "_checkboxFrame_bt7qx_16", ti = "_checkboxCheckMark_bt7qx_19", ni = "_checkboxCheckMarkPath_bt7qx_22", ri = "_checkboxUncheckedChecked_bt7qx_1", oi = "_visuallyHidden_bt7qx_43", ii = "_checkboxDisabled_bt7qx_53", ai = "_medium_bt7qx_59", li = "_large_bt7qx_65",
|
|
697
|
+
const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_checkboxInnerContainer_bt7qx_10", Zo = "_checkboxInput_bt7qx_13", ei = "_checkboxFrame_bt7qx_16", ti = "_checkboxCheckMark_bt7qx_19", ni = "_checkboxCheckMarkPath_bt7qx_22", ri = "_checkboxUncheckedChecked_bt7qx_1", oi = "_visuallyHidden_bt7qx_43", ii = "_checkboxDisabled_bt7qx_53", ai = "_medium_bt7qx_59", li = "_large_bt7qx_65", Ge = {
|
|
698
698
|
checkboxLayout: Jo,
|
|
699
699
|
checkboxLabel: Qo,
|
|
700
700
|
checkboxInnerContainer: Xo,
|
|
@@ -725,7 +725,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
725
725
|
let a = {}, u, p = c ? "#9b9b9b" : "#ffffff";
|
|
726
726
|
if (t) {
|
|
727
727
|
const y = pt(t);
|
|
728
|
-
if (t =
|
|
728
|
+
if (t = Ze.convert3HexTo6(t), y === "dark" || y === "light") {
|
|
729
729
|
switch (y) {
|
|
730
730
|
case "dark":
|
|
731
731
|
p = c ? l ? "#9b9b9b" : "#f9f9f9" : "#ffffff";
|
|
@@ -745,14 +745,14 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
const g = c ?
|
|
748
|
+
const g = c ? Ge.checkboxDisabled : "", k = [Ge.checkboxLayout, Ge[n], g, i].filter(Boolean).join(" "), x = (y) => {
|
|
749
749
|
y.key != "Enter" && (y.preventDefault(), f?.(y.target.checked), d(!l));
|
|
750
750
|
};
|
|
751
|
-
return /* @__PURE__ */ O.jsx(O.Fragment, { children: /* @__PURE__ */ O.jsx("div", { className: k, "data-testid": "checkbox", children: /* @__PURE__ */ O.jsxs("label", { className:
|
|
751
|
+
return /* @__PURE__ */ O.jsx(O.Fragment, { children: /* @__PURE__ */ O.jsx("div", { className: k, "data-testid": "checkbox", children: /* @__PURE__ */ O.jsxs("label", { className: Ge.checkboxLabel, htmlFor: r, onClick: (y) => x(y), children: [
|
|
752
752
|
/* @__PURE__ */ O.jsxs(
|
|
753
753
|
"div",
|
|
754
754
|
{
|
|
755
|
-
className:
|
|
755
|
+
className: Ge.checkboxInnerContainer,
|
|
756
756
|
tabIndex: v || c ? -1 : 0,
|
|
757
757
|
onKeyPress: (y) => x(y),
|
|
758
758
|
"data-testid": "checkbox-inner-container",
|
|
@@ -760,7 +760,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
760
760
|
/* @__PURE__ */ O.jsx(
|
|
761
761
|
"input",
|
|
762
762
|
{
|
|
763
|
-
className:
|
|
763
|
+
className: Ge.checkboxInput,
|
|
764
764
|
onChange: (y) => x(y),
|
|
765
765
|
type: "checkbox",
|
|
766
766
|
checked: l,
|
|
@@ -775,7 +775,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
775
775
|
/* @__PURE__ */ O.jsx(
|
|
776
776
|
"div",
|
|
777
777
|
{
|
|
778
|
-
className:
|
|
778
|
+
className: Ge.checkboxFrame,
|
|
779
779
|
style: { ...a, ...b },
|
|
780
780
|
"data-testid": "checkbox-frame",
|
|
781
781
|
children: /* @__PURE__ */ O.jsx(
|
|
@@ -783,13 +783,13 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
783
783
|
{
|
|
784
784
|
version: "1.1",
|
|
785
785
|
focusable: "false",
|
|
786
|
-
className:
|
|
786
|
+
className: Ge.checkboxCheckMark,
|
|
787
787
|
viewBox: "0 0 24 24",
|
|
788
788
|
"data-testid": "check-mark-svg",
|
|
789
789
|
children: /* @__PURE__ */ O.jsx(
|
|
790
790
|
"path",
|
|
791
791
|
{
|
|
792
|
-
className:
|
|
792
|
+
className: Ge.checkboxCheckMarkPath,
|
|
793
793
|
fill: "none",
|
|
794
794
|
stroke: p,
|
|
795
795
|
d: "M4.1,12.7 9,17.6 20.3,6.3"
|
|
@@ -803,7 +803,7 @@ const Jo = "_checkboxLayout_bt7qx_1", Qo = "_checkboxLabel_bt7qx_4", Xo = "_chec
|
|
|
803
803
|
}
|
|
804
804
|
),
|
|
805
805
|
e && /* @__PURE__ */ O.jsx("span", { "data-testid": "checkbox-label", children: e }),
|
|
806
|
-
/* @__PURE__ */ O.jsx("div", { className:
|
|
806
|
+
/* @__PURE__ */ O.jsx("div", { className: Ge.visuallyHidden, "aria-live": "polite", "aria-atomic": "true", children: l ? "Checked" : "Unchecked" })
|
|
807
807
|
] }) }) });
|
|
808
808
|
}
|
|
809
809
|
);
|
|
@@ -815,7 +815,7 @@ const ci = "_textInputWrapper_1i9m6_1", ui = "_textInput_1i9m6_1", Un = {
|
|
|
815
815
|
var I = {}, bn = { exports: {} };
|
|
816
816
|
(function(e, t) {
|
|
817
817
|
(function(n, r) {
|
|
818
|
-
var o = "1.0.37", c = "", i = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", d = "name", a = "type", u = "vendor", p = "version", g = "architecture", k = "console", x = "mobile", y = "tablet", F = "smarttv", R = "wearable", q = "embedded", M = 500, C = "Amazon", z = "Apple", de = "ASUS", Z = "BlackBerry", _ = "Browser", G = "Chrome", ne = "Edge", pe = "Firefox", B = "Google", fe = "Huawei", re = "LG", Q = "Microsoft", me = "Motorola", ve = "Opera", se = "Samsung", T = "Sharp", P = "Sony", V = "Xiaomi", xe = "Zebra", Ie = "Facebook", lt = "Chromium OS",
|
|
818
|
+
var o = "1.0.37", c = "", i = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", d = "name", a = "type", u = "vendor", p = "version", g = "architecture", k = "console", x = "mobile", y = "tablet", F = "smarttv", R = "wearable", q = "embedded", M = 500, C = "Amazon", z = "Apple", de = "ASUS", Z = "BlackBerry", _ = "Browser", G = "Chrome", ne = "Edge", pe = "Firefox", B = "Google", fe = "Huawei", re = "LG", Q = "Microsoft", me = "Motorola", ve = "Opera", se = "Samsung", T = "Sharp", P = "Sony", V = "Xiaomi", xe = "Zebra", Ie = "Facebook", lt = "Chromium OS", et = "Mac OS", S = function(U, J) {
|
|
819
819
|
var N = {};
|
|
820
820
|
for (var oe in U)
|
|
821
821
|
J[oe] && J[oe].length % 2 === 0 ? N[oe] = J[oe].concat(U[oe]) : N[oe] = U[oe];
|
|
@@ -833,13 +833,13 @@ var I = {}, bn = { exports: {} };
|
|
|
833
833
|
}, Fe = function(U, J) {
|
|
834
834
|
if (typeof U === m)
|
|
835
835
|
return U = U.replace(/^\s\s*/, c), typeof J === b ? U : U.substring(0, M);
|
|
836
|
-
},
|
|
837
|
-
for (var N = 0, oe, ze, $e, Y, A,
|
|
836
|
+
}, Ve = function(U, J) {
|
|
837
|
+
for (var N = 0, oe, ze, $e, Y, A, Be; N < J.length && !A; ) {
|
|
838
838
|
var Et = J[N], Wt = J[N + 1];
|
|
839
839
|
for (oe = ze = 0; oe < Et.length && !A && Et[oe]; )
|
|
840
840
|
if (A = Et[oe++].exec(U), A)
|
|
841
841
|
for ($e = 0; $e < Wt.length; $e++)
|
|
842
|
-
|
|
842
|
+
Be = A[++ze], Y = Wt[$e], typeof Y === v && Y.length > 0 ? Y.length === 2 ? typeof Y[1] == f ? this[Y[0]] = Y[1].call(this, Be) : this[Y[0]] = Y[1] : Y.length === 3 ? typeof Y[1] === f && !(Y[1].exec && Y[1].test) ? this[Y[0]] = Be ? Y[1].call(this, Be, Y[2]) : r : this[Y[0]] = Be ? Be.replace(Y[1], Y[2]) : r : Y.length === 4 && (this[Y[0]] = Be ? Y[3].call(this, Be.replace(Y[1], Y[2])) : r) : this[Y] = Be || r;
|
|
843
843
|
N += 2;
|
|
844
844
|
}
|
|
845
845
|
}, Re = function(U, J) {
|
|
@@ -851,25 +851,25 @@ var I = {}, bn = { exports: {} };
|
|
|
851
851
|
} else if (ye(J[N], U))
|
|
852
852
|
return N === i ? r : N;
|
|
853
853
|
return U;
|
|
854
|
-
}, et = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $t = { 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" }, Mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, ve + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, ve]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + _]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + _]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + _], p], [/\bfocus\/([\w\.]+)/i], [p, [d, pe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, ve + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, ve + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + _]], [/fxios\/([-\w\.]+)/i], [p, [d, pe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + _]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + _], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, se + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ie], p], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, G + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + _]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Re, et]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, pe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, he]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, he]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, he]]], 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], [l, [u, se], [a, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, se], [a, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, z], [a, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, z], [a, y]], [/(macintosh);/i], [l, [u, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, fe], [a, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, fe], [a, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, x]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, x]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [u, me], [a, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, me], [a, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, re], [a, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, re], [a, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, x]], [/(pixel c)\b/i], [l, [u, B], [a, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, x]], [/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], [l, [u, P], [a, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, P], [a, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, C], [a, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, C], [a, x]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, Z], [a, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, de], [a, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, de], [a, x]], [/(nexus 9)/i], [l, [u, "HTC"], [a, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, x]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [u, l, [a, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/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], [u, l, [a, y]], [/(surface duo)/i], [l, [u, Q], [a, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, x]], [/(u304aa)/i], [l, [u, "AT&T"], [a, x]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, x]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, y]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, y]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, y]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, y]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, y]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, x]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, x]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, y]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, y]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, x]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, y]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, y]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, y]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, y]], [/(sprint) (\w+)/i], [u, l, [a, x]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Q], [a, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, xe], [a, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, xe], [a, x]], [/smart-tv.+(samsung)/i], [u, [a, F]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, se], [a, F]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, re], [a, F]], [/(apple) ?tv/i], [u, [l, z + " TV"], [a, F]], [/crkey/i], [[l, G + "cast"], [u, B], [a, F]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, C], [a, F]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, F]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, P], [a, F]], [/(mitv-\w{5}) bui/i], [l, [u, V], [a, F]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, F]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Fe], [l, Fe], [a, F]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, F]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, k]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, k]], [/(playstation [345portablevi]+)/i], [l, [u, P], [a, k]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Q], [a, k]], [/((pebble))app/i], [u, l, [a, R]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, z], [a, R]], [/droid.+; (glass) \d/i], [l, [u, B], [a, R]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, xe], [a, R]], [/(quest( 2| pro)?)/i], [l, [u, Ie], [a, R]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, q]], [/(aeobc)\b/i], [l, [u, C], [a, q]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, x]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, ne + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Re, $t]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Re, $t], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, Ze], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, pe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, lt], p], [/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) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Pe = function(U, J) {
|
|
854
|
+
}, tt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $t = { 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" }, Mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, ve + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, ve]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + _]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + _]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + _], p], [/\bfocus\/([\w\.]+)/i], [p, [d, pe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, ve + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, ve + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + _]], [/fxios\/([-\w\.]+)/i], [p, [d, pe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + _]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + _], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, se + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ie], p], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, G + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, G + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + _]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Re, tt]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, pe + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, he]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, he]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, he]]], 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], [l, [u, se], [a, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, se], [a, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, z], [a, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, z], [a, y]], [/(macintosh);/i], [l, [u, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, fe], [a, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, fe], [a, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, x]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, V], [a, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, x]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [u, me], [a, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, me], [a, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, re], [a, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, re], [a, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, x]], [/(pixel c)\b/i], [l, [u, B], [a, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, x]], [/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], [l, [u, P], [a, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, P], [a, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, C], [a, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, C], [a, x]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, Z], [a, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, de], [a, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, de], [a, x]], [/(nexus 9)/i], [l, [u, "HTC"], [a, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, x]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [u, l, [a, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/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], [u, l, [a, y]], [/(surface duo)/i], [l, [u, Q], [a, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, x]], [/(u304aa)/i], [l, [u, "AT&T"], [a, x]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, x]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, y]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, y]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, y]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, y]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, y]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, x]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, x]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, y]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, y]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, x]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, y]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, y]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, y]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, y]], [/(sprint) (\w+)/i], [u, l, [a, x]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Q], [a, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, xe], [a, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, xe], [a, x]], [/smart-tv.+(samsung)/i], [u, [a, F]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, se], [a, F]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, re], [a, F]], [/(apple) ?tv/i], [u, [l, z + " TV"], [a, F]], [/crkey/i], [[l, G + "cast"], [u, B], [a, F]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, C], [a, F]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, F]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, P], [a, F]], [/(mitv-\w{5}) bui/i], [l, [u, V], [a, F]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, F]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Fe], [l, Fe], [a, F]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, F]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, k]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, k]], [/(playstation [345portablevi]+)/i], [l, [u, P], [a, k]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Q], [a, k]], [/((pebble))app/i], [u, l, [a, R]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, z], [a, R]], [/droid.+; (glass) \d/i], [l, [u, B], [a, R]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, xe], [a, R]], [/(quest( 2| pro)?)/i], [l, [u, Ie], [a, R]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, q]], [/(aeobc)\b/i], [l, [u, C], [a, q]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, x]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, ne + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Re, $t]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Re, $t], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, et], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, pe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, G + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, lt], p], [/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) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Pe = function(U, J) {
|
|
855
855
|
if (typeof U === v && (J = U, U = r), !(this instanceof Pe))
|
|
856
856
|
return new Pe(U, J).getResult();
|
|
857
857
|
var N = typeof n !== b && n.navigator ? n.navigator : r, oe = U || (N && N.userAgent ? N.userAgent : c), ze = N && N.userAgentData ? N.userAgentData : r, $e = J ? S(Mt, J) : Mt, Y = N && N.userAgent == oe;
|
|
858
858
|
return this.getBrowser = function() {
|
|
859
859
|
var A = {};
|
|
860
|
-
return A[d] = r, A[p] = r,
|
|
860
|
+
return A[d] = r, A[p] = r, Ve.call(A, oe, $e.browser), A[h] = De(A[p]), Y && N && N.brave && typeof N.brave.isBrave == f && (A[d] = "Brave"), A;
|
|
861
861
|
}, this.getCPU = function() {
|
|
862
862
|
var A = {};
|
|
863
|
-
return A[g] = r,
|
|
863
|
+
return A[g] = r, Ve.call(A, oe, $e.cpu), A;
|
|
864
864
|
}, this.getDevice = function() {
|
|
865
865
|
var A = {};
|
|
866
|
-
return A[u] = r, A[l] = r, A[a] = r,
|
|
866
|
+
return A[u] = r, A[l] = r, A[a] = r, Ve.call(A, oe, $e.device), Y && !A[a] && ze && ze.mobile && (A[a] = x), Y && A[l] == "Macintosh" && N && typeof N.standalone !== b && N.maxTouchPoints && N.maxTouchPoints > 2 && (A[l] = "iPad", A[a] = y), A;
|
|
867
867
|
}, this.getEngine = function() {
|
|
868
868
|
var A = {};
|
|
869
|
-
return A[d] = r, A[p] = r,
|
|
869
|
+
return A[d] = r, A[p] = r, Ve.call(A, oe, $e.engine), A;
|
|
870
870
|
}, this.getOS = function() {
|
|
871
871
|
var A = {};
|
|
872
|
-
return A[d] = r, A[p] = r,
|
|
872
|
+
return A[d] = r, A[p] = r, Ve.call(A, oe, $e.os), Y && !A[d] && ze && ze.platform != "Unknown" && (A[d] = ze.platform.replace(/chrome os/i, lt).replace(/macos/i, et)), A;
|
|
873
873
|
}, this.getResult = function() {
|
|
874
874
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
875
875
|
}, this.getUA = function() {
|
|
@@ -898,7 +898,7 @@ Object.defineProperty(I, "__esModule", { value: !0 });
|
|
|
898
898
|
function fi(e) {
|
|
899
899
|
return e && typeof e == "object" && "default" in e ? e.default : e;
|
|
900
900
|
}
|
|
901
|
-
var Te = ce, ue = fi(Te), lr = di, bt = new lr(), Ce = bt.getBrowser(), pi = bt.getCPU(),
|
|
901
|
+
var Te = ce, ue = fi(Te), lr = di, bt = new lr(), Ce = bt.getBrowser(), pi = bt.getCPU(), We = bt.getDevice(), xn = bt.getEngine(), vt = bt.getOS(), jt = bt.getUA(), sr = function(t) {
|
|
902
902
|
return bt.setUA(t);
|
|
903
903
|
}, Lt = function(t) {
|
|
904
904
|
if (!t) {
|
|
@@ -922,7 +922,7 @@ var Te = ce, ue = fi(Te), lr = di, bt = new lr(), Ce = bt.getBrowser(), pi = bt.
|
|
|
922
922
|
ClientUAInstance: bt,
|
|
923
923
|
browser: Ce,
|
|
924
924
|
cpu: pi,
|
|
925
|
-
device:
|
|
925
|
+
device: We,
|
|
926
926
|
engine: xn,
|
|
927
927
|
os: vt,
|
|
928
928
|
ua: jt,
|
|
@@ -1351,7 +1351,7 @@ var ur = function(t) {
|
|
|
1351
1351
|
}, Ur = function() {
|
|
1352
1352
|
var t = yn();
|
|
1353
1353
|
return t && (/iPad|iPhone|iPod/.test(t.platform) || t.platform === "MacIntel" && t.maxTouchPoints > 1) && !window.MSStream;
|
|
1354
|
-
},
|
|
1354
|
+
}, Qe = function() {
|
|
1355
1355
|
return On("iPad");
|
|
1356
1356
|
}, Hr = function() {
|
|
1357
1357
|
return On("iPhone");
|
|
@@ -1367,16 +1367,16 @@ function Yr(e) {
|
|
|
1367
1367
|
isConsole: vr(n),
|
|
1368
1368
|
isWearable: br(n),
|
|
1369
1369
|
isEmbedded: mr(n),
|
|
1370
|
-
isMobileSafari: jr(r) ||
|
|
1370
|
+
isMobileSafari: jr(r) || Qe(),
|
|
1371
1371
|
isChromium: Ir(r),
|
|
1372
|
-
isMobile: fr(n) ||
|
|
1372
|
+
isMobile: fr(n) || Qe(),
|
|
1373
1373
|
isMobileOnly: ur(n),
|
|
1374
|
-
isTablet: dr(n) ||
|
|
1374
|
+
isTablet: dr(n) || Qe(),
|
|
1375
1375
|
isBrowser: zt(n),
|
|
1376
1376
|
isDesktop: zt(n),
|
|
1377
1377
|
isAndroid: xr(o),
|
|
1378
1378
|
isWinPhone: _r(o),
|
|
1379
|
-
isIOS: kr(o) ||
|
|
1379
|
+
isIOS: kr(o) || Qe(),
|
|
1380
1380
|
isChrome: Tr(r),
|
|
1381
1381
|
isFirefox: Cr(r),
|
|
1382
1382
|
isSafari: Pr(r),
|
|
@@ -1396,7 +1396,7 @@ function Yr(e) {
|
|
|
1396
1396
|
isYandex: Rr(r),
|
|
1397
1397
|
deviceType: wr(n),
|
|
1398
1398
|
isIOS13: Ur(),
|
|
1399
|
-
isIPad13:
|
|
1399
|
+
isIPad13: Qe(),
|
|
1400
1400
|
isIPhone13: Hr(),
|
|
1401
1401
|
isIPod13: qr(),
|
|
1402
1402
|
isElectron: Br(),
|
|
@@ -1408,7 +1408,7 @@ function Yr(e) {
|
|
|
1408
1408
|
isSamsungBrowser: Ar(r)
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
|
-
var Kr = pr(
|
|
1411
|
+
var Kr = pr(We), Gr = vr(We), Jr = br(We), Ni = mr(We), Ai = jr(Ce) || Qe(), Di = Ir(Ce), Qt = fr(We) || Qe(), Qr = ur(We), Xr = dr(We) || Qe(), Zr = zt(We), $i = zt(We), eo = xr(vt), to = _r(vt), no = kr(vt) || Qe(), Mi = Tr(Ce), Wi = Cr(Ce), Vi = Pr(Ce), Bi = Lr(Ce), ro = Fr(Ce), Ui = Sr(vt), Hi = Er(vt), qi = Dr(Ce), zi = $r(Ce), Yi = Mr(Ce), Ki = hr(We), Gi = gr(We), Ji = Wr(xn), Qi = Vr(xn), Xi = zr(jt), Zi = Yt(Ce) || Ot(jt), ea = Rr(Ce), ta = wr(We), na = Ur(), ra = Qe(), oa = Hr(), ia = qr(), aa = Br(), la = Ot(jt), sa = Yt(Ce) && !Ot(jt), ca = yr(vt), ua = Or(vt), da = Nr(Ce), fa = Ar(Ce), pa = function(t) {
|
|
1412
1412
|
if (!t || typeof t != "string") {
|
|
1413
1413
|
console.error("No valid user agent string was provided");
|
|
1414
1414
|
return;
|
|
@@ -1612,7 +1612,7 @@ const Ec = ce.memo(
|
|
|
1612
1612
|
dt(
|
|
1613
1613
|
({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: o, onFocus: c, onBlur: i, ...f }, b) => {
|
|
1614
1614
|
const [v, m] = ie(!0), [h, l] = ie(!1);
|
|
1615
|
-
e =
|
|
1615
|
+
e = Ze.convert3HexTo6(e), ae(() => {
|
|
1616
1616
|
m(Ia);
|
|
1617
1617
|
}, []);
|
|
1618
1618
|
const d = (x) => {
|
|
@@ -1674,7 +1674,7 @@ const Ec = ce.memo(
|
|
|
1674
1674
|
let v;
|
|
1675
1675
|
if (t) {
|
|
1676
1676
|
const m = pt(t);
|
|
1677
|
-
t =
|
|
1677
|
+
t = Ze.convert3HexTo6(t), m === "dark" || m === "light" ? (n ? c = e ? "#9b9b9b" : "#f9f9f9" : c = m == "light" ? "#333333" : "#ffffff", o = n ? "#f9f9f9" : e ? t : "#ffffff", v = n ? "#e4e4e4" : t === "#ffffff" ? "#333333" : t, e && (r = {
|
|
1678
1678
|
backgroundColor: o,
|
|
1679
1679
|
borderColor: v,
|
|
1680
1680
|
outlineColor: v
|
|
@@ -1763,8 +1763,8 @@ const Tc = ({
|
|
|
1763
1763
|
const W = g?.current?.getBoundingClientRect(), ye = T(), he = M.current - S.bottom;
|
|
1764
1764
|
let De;
|
|
1765
1765
|
if (W) {
|
|
1766
|
-
const Fe = S.height,
|
|
1767
|
-
|
|
1766
|
+
const Fe = S.height, Ve = S.top, Re = W.height, tt = Re > Ve + window.scrollY;
|
|
1767
|
+
Ve < Re && (tt || tt && he < Re || ye > Re || he > Re) || Ve > Re && he > Re ? De = S.y + Fe : De = S.y - Re, G({
|
|
1768
1768
|
left: S.left,
|
|
1769
1769
|
top: De ?? S.top
|
|
1770
1770
|
});
|
|
@@ -1815,11 +1815,11 @@ const Tc = ({
|
|
|
1815
1815
|
};
|
|
1816
1816
|
if (o) {
|
|
1817
1817
|
const S = pt(o);
|
|
1818
|
-
o =
|
|
1818
|
+
o = Ze.convert3HexTo6(o), (S === "dark" || S === "light") && (Z = {
|
|
1819
1819
|
borderBottomColor: o === "#ffffff" ? "#c8c8c8" : a || l ? o : "#333333"
|
|
1820
1820
|
});
|
|
1821
1821
|
}
|
|
1822
|
-
const
|
|
1822
|
+
const et = () => {
|
|
1823
1823
|
d(!1);
|
|
1824
1824
|
};
|
|
1825
1825
|
return /* @__PURE__ */ O.jsx("div", { className: ke.multiSelectContainer, children: /* @__PURE__ */ O.jsxs("div", { className: ke.listOptionsWrap, children: [
|
|
@@ -1866,7 +1866,7 @@ const Tc = ({
|
|
|
1866
1866
|
/* @__PURE__ */ O.jsx(O.Fragment, { children: l && p && /* @__PURE__ */ O.jsx(
|
|
1867
1867
|
"div",
|
|
1868
1868
|
{
|
|
1869
|
-
onClick:
|
|
1869
|
+
onClick: et,
|
|
1870
1870
|
style: {
|
|
1871
1871
|
position: "fixed",
|
|
1872
1872
|
inset: 0,
|
|
@@ -1990,7 +1990,7 @@ const Tc = ({
|
|
|
1990
1990
|
(r === void 0 || k.length <= r) && (v(k), n(k));
|
|
1991
1991
|
};
|
|
1992
1992
|
if (o) {
|
|
1993
|
-
l = pt(o), o =
|
|
1993
|
+
l = pt(o), o = Ze.convert3HexTo6(o);
|
|
1994
1994
|
const a = o === "#ffffff" ? "#333333" : o;
|
|
1995
1995
|
(l === "dark" || l === "light") && (h = {
|
|
1996
1996
|
outlineColor: a,
|
|
@@ -2035,7 +2035,7 @@ const Tc = ({
|
|
|
2035
2035
|
},
|
|
2036
2036
|
a.value
|
|
2037
2037
|
)) }) });
|
|
2038
|
-
}, nl = "_singleSelectWrapper_j8hf5_1", rl = "_quickOption_j8hf5_4", ol = "_selected_j8hf5_10", il = "_triangle_j8hf5_16", al = "_loader_j8hf5_19", ll = "_checkmarkWrap_j8hf5_22", sl = "_checkmark_j8hf5_22", cl = "_fill_j8hf5_1", ul = "_scale_j8hf5_1", dl = "_checkmarkCheck_j8hf5_29", fl = "_stroke_j8hf5_1", pl = "_disabled_j8hf5_34",
|
|
2038
|
+
}, nl = "_singleSelectWrapper_j8hf5_1", rl = "_quickOption_j8hf5_4", ol = "_selected_j8hf5_10", il = "_triangle_j8hf5_16", al = "_loader_j8hf5_19", ll = "_checkmarkWrap_j8hf5_22", sl = "_checkmark_j8hf5_22", cl = "_fill_j8hf5_1", ul = "_scale_j8hf5_1", dl = "_checkmarkCheck_j8hf5_29", fl = "_stroke_j8hf5_1", pl = "_disabled_j8hf5_34", Je = {
|
|
2039
2039
|
singleSelectWrapper: nl,
|
|
2040
2040
|
quickOption: rl,
|
|
2041
2041
|
selected: ol,
|
|
@@ -2070,7 +2070,7 @@ const Tc = ({
|
|
|
2070
2070
|
};
|
|
2071
2071
|
if (r) {
|
|
2072
2072
|
const a = pt(r);
|
|
2073
|
-
r =
|
|
2073
|
+
r = Ze.convert3HexTo6(r);
|
|
2074
2074
|
const u = r === "#ffffff" ? "#333333" : r;
|
|
2075
2075
|
(a === "dark" || a === "light") && (l = r === "#ffffff" || a === "dark" ? "#ffffff" : "#333333", m = {
|
|
2076
2076
|
outlineColor: u,
|
|
@@ -2081,11 +2081,11 @@ const Tc = ({
|
|
|
2081
2081
|
borderTopColor: u
|
|
2082
2082
|
});
|
|
2083
2083
|
}
|
|
2084
|
-
return /* @__PURE__ */ O.jsx("div", { className:
|
|
2084
|
+
return /* @__PURE__ */ O.jsx("div", { className: Je.singleSelectWrapper, children: /* @__PURE__ */ O.jsx("div", { className: Je.quickOption, children: /* @__PURE__ */ O.jsx("ul", { className: Je.quickOption, role: "radiogroup", id: f, children: e.map((a) => /* @__PURE__ */ O.jsxs(
|
|
2085
2085
|
"li",
|
|
2086
2086
|
{
|
|
2087
2087
|
tabIndex: a.disable ? -1 : 0,
|
|
2088
|
-
className: `${o} ${b?.value === a.value ?
|
|
2088
|
+
className: `${o} ${b?.value === a.value ? Je.selected : ""} ${a.disable ? Je.disabled : ""}`,
|
|
2089
2089
|
style: { ...m, ...c },
|
|
2090
2090
|
onClick: () => d(a),
|
|
2091
2091
|
onKeyPress: (u) => {
|
|
@@ -2096,12 +2096,12 @@ const Tc = ({
|
|
|
2096
2096
|
"aria-checked": b?.value === a.value,
|
|
2097
2097
|
children: [
|
|
2098
2098
|
a.label,
|
|
2099
|
-
b?.value === a.value && !a.disable && /* @__PURE__ */ O.jsxs("div", { className:
|
|
2100
|
-
i && /* @__PURE__ */ O.jsx("div", { className:
|
|
2101
|
-
!i && /* @__PURE__ */ O.jsx("div", { className:
|
|
2099
|
+
b?.value === a.value && !a.disable && /* @__PURE__ */ O.jsxs("div", { className: Je.triangle, style: { ...h }, children: [
|
|
2100
|
+
i && /* @__PURE__ */ O.jsx("div", { className: Je.loader, style: { borderRightColor: r ?? "#006bb1" } }),
|
|
2101
|
+
!i && /* @__PURE__ */ O.jsx("div", { className: Je.checkmarkWrap, children: /* @__PURE__ */ O.jsx(
|
|
2102
2102
|
"svg",
|
|
2103
2103
|
{
|
|
2104
|
-
className:
|
|
2104
|
+
className: Je.checkmark,
|
|
2105
2105
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2106
2106
|
width: "11",
|
|
2107
2107
|
height: "9",
|
|
@@ -2110,7 +2110,7 @@ const Tc = ({
|
|
|
2110
2110
|
children: /* @__PURE__ */ O.jsx(
|
|
2111
2111
|
"path",
|
|
2112
2112
|
{
|
|
2113
|
-
className:
|
|
2113
|
+
className: Je.checkmarkCheck,
|
|
2114
2114
|
stroke: l,
|
|
2115
2115
|
d: "M2.1 4.34286L4.12857 6.40001L8.9 1.60001",
|
|
2116
2116
|
strokeWidth: "2"
|
|
@@ -2164,14 +2164,14 @@ let wl = class {
|
|
|
2164
2164
|
}, mt = new wl(), we = (e, t) => {
|
|
2165
2165
|
mt.isServer ? ae(e, t) : No(e, t);
|
|
2166
2166
|
};
|
|
2167
|
-
function
|
|
2167
|
+
function Ke(e) {
|
|
2168
2168
|
let t = j(e);
|
|
2169
2169
|
return we(() => {
|
|
2170
2170
|
t.current = e;
|
|
2171
2171
|
}, [e]), t;
|
|
2172
2172
|
}
|
|
2173
2173
|
function Ft(e, t) {
|
|
2174
|
-
let [n, r] = ie(e), o =
|
|
2174
|
+
let [n, r] = ie(e), o = Ke(e);
|
|
2175
2175
|
return we(() => r(o.current), [o, r, ...t]), n;
|
|
2176
2176
|
}
|
|
2177
2177
|
function xl(e) {
|
|
@@ -2179,7 +2179,7 @@ function xl(e) {
|
|
|
2179
2179
|
throw t;
|
|
2180
2180
|
}));
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function Xe() {
|
|
2183
2183
|
let e = [], t = { addEventListener(n, r, o, c) {
|
|
2184
2184
|
return n.addEventListener(r, o, c), t.add(() => n.removeEventListener(r, o, c));
|
|
2185
2185
|
}, requestAnimationFrame(...n) {
|
|
@@ -2203,7 +2203,7 @@ function Qe() {
|
|
|
2203
2203
|
Object.assign(n.style, { [r]: c });
|
|
2204
2204
|
});
|
|
2205
2205
|
}, group(n) {
|
|
2206
|
-
let r =
|
|
2206
|
+
let r = Xe();
|
|
2207
2207
|
return n(r), this.add(() => r.dispose());
|
|
2208
2208
|
}, add(n) {
|
|
2209
2209
|
return e.push(n), () => {
|
|
@@ -2219,11 +2219,11 @@ function Qe() {
|
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
2221
|
function it() {
|
|
2222
|
-
let [e] = ie(
|
|
2222
|
+
let [e] = ie(Xe);
|
|
2223
2223
|
return ae(() => () => e.dispose(), [e]), e;
|
|
2224
2224
|
}
|
|
2225
2225
|
let L = function(e) {
|
|
2226
|
-
let t =
|
|
2226
|
+
let t = Ke(e);
|
|
2227
2227
|
return ce.useCallback((...n) => t.current(...n), [t]);
|
|
2228
2228
|
};
|
|
2229
2229
|
function yl() {
|
|
@@ -2287,7 +2287,7 @@ function lo(e, t = (n) => n) {
|
|
|
2287
2287
|
});
|
|
2288
2288
|
}
|
|
2289
2289
|
function Ut(e, t, n) {
|
|
2290
|
-
let r =
|
|
2290
|
+
let r = Ke(t);
|
|
2291
2291
|
ae(() => {
|
|
2292
2292
|
function o(c) {
|
|
2293
2293
|
r.current(c);
|
|
@@ -2296,7 +2296,7 @@ function Ut(e, t, n) {
|
|
|
2296
2296
|
}, [e, n]);
|
|
2297
2297
|
}
|
|
2298
2298
|
function El(e, t, n) {
|
|
2299
|
-
let r =
|
|
2299
|
+
let r = Ke(t);
|
|
2300
2300
|
ae(() => {
|
|
2301
2301
|
function o(c) {
|
|
2302
2302
|
r.current(c);
|
|
@@ -2866,20 +2866,20 @@ function es(e, t) {
|
|
|
2866
2866
|
let ts = "li";
|
|
2867
2867
|
function ns(e, t) {
|
|
2868
2868
|
var n, r;
|
|
2869
|
-
let o = at(), { id: c = `headlessui-combobox-option-${o}`, disabled: i = !1, value: f, ...b } = e, v = St("Combobox.Option"), m = Nt("Combobox.Option"), h = v.activeOptionIndex !== null ? v.options[v.activeOptionIndex].id === c : !1, l = v.isSelected(f), d = j(null), a =
|
|
2869
|
+
let o = at(), { id: c = `headlessui-combobox-option-${o}`, disabled: i = !1, value: f, ...b } = e, v = St("Combobox.Option"), m = Nt("Combobox.Option"), h = v.activeOptionIndex !== null ? v.options[v.activeOptionIndex].id === c : !1, l = v.isSelected(f), d = j(null), a = Ke({ disabled: i, value: f, domRef: d, textValue: (r = (n = d.current) == null ? void 0 : n.textContent) == null ? void 0 : r.toLowerCase() }), u = qe(t, d), p = L(() => m.selectOption(c));
|
|
2870
2870
|
we(() => m.registerOption(c, a), [a, c]);
|
|
2871
2871
|
let g = j(!v.__demoMode);
|
|
2872
2872
|
we(() => {
|
|
2873
2873
|
if (!v.__demoMode)
|
|
2874
2874
|
return;
|
|
2875
|
-
let C =
|
|
2875
|
+
let C = Xe();
|
|
2876
2876
|
return C.requestAnimationFrame(() => {
|
|
2877
2877
|
g.current = !0;
|
|
2878
2878
|
}), C.dispose;
|
|
2879
2879
|
}, []), we(() => {
|
|
2880
2880
|
if (v.comboboxState !== 0 || !h || !g.current || v.activationTrigger === 0)
|
|
2881
2881
|
return;
|
|
2882
|
-
let C =
|
|
2882
|
+
let C = Xe();
|
|
2883
2883
|
return C.requestAnimationFrame(() => {
|
|
2884
2884
|
var z, de;
|
|
2885
2885
|
(de = (z = d.current) == null ? void 0 : z.scrollIntoView) == null || de.call(z, { block: "nearest" });
|
|
@@ -3117,7 +3117,7 @@ function Ss(e, t) {
|
|
|
3117
3117
|
let { dataRef: k } = i.options[i.activeOptionIndex];
|
|
3118
3118
|
f.onChange(k.current.value);
|
|
3119
3119
|
}
|
|
3120
|
-
i.mode === 0 && (f.closeListbox(),
|
|
3120
|
+
i.mode === 0 && (f.closeListbox(), Xe().nextFrame(() => {
|
|
3121
3121
|
var k;
|
|
3122
3122
|
return (k = i.buttonRef.current) == null ? void 0 : k.focus({ preventScroll: !0 });
|
|
3123
3123
|
}));
|
|
@@ -3152,13 +3152,13 @@ function Ss(e, t) {
|
|
|
3152
3152
|
}
|
|
3153
3153
|
let Es = "li";
|
|
3154
3154
|
function Ts(e, t) {
|
|
3155
|
-
let n = at(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: c, ...i } = e, f = Dt("Listbox.Option"), b = At("Listbox.Option"), v = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === r : !1, m = f.isSelected(c), h = j(null), l = us(h), d =
|
|
3155
|
+
let n = at(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: c, ...i } = e, f = Dt("Listbox.Option"), b = At("Listbox.Option"), v = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === r : !1, m = f.isSelected(c), h = j(null), l = us(h), d = Ke({ disabled: o, value: c, domRef: h, get textValue() {
|
|
3156
3156
|
return l();
|
|
3157
3157
|
} }), a = qe(t, h);
|
|
3158
3158
|
we(() => {
|
|
3159
3159
|
if (f.listboxState !== 0 || !v || f.activationTrigger === 0)
|
|
3160
3160
|
return;
|
|
3161
|
-
let R =
|
|
3161
|
+
let R = Xe();
|
|
3162
3162
|
return R.requestAnimationFrame(() => {
|
|
3163
3163
|
var q, M;
|
|
3164
3164
|
(M = (q = h.current) == null ? void 0 : q.scrollIntoView) == null || M.call(q, { block: "nearest" });
|
|
@@ -3167,7 +3167,7 @@ function Ts(e, t) {
|
|
|
3167
3167
|
let u = L((R) => {
|
|
3168
3168
|
if (o)
|
|
3169
3169
|
return R.preventDefault();
|
|
3170
|
-
b.onChange(c), f.mode === 0 && (b.closeListbox(),
|
|
3170
|
+
b.onChange(c), f.mode === 0 && (b.closeListbox(), Xe().nextFrame(() => {
|
|
3171
3171
|
var q;
|
|
3172
3172
|
return (q = f.buttonRef.current) == null ? void 0 : q.focus({ preventScroll: !0 });
|
|
3173
3173
|
}));
|
|
@@ -3207,7 +3207,7 @@ function fn(e, ...t) {
|
|
|
3207
3207
|
e && t.length > 0 && e.classList.remove(...t);
|
|
3208
3208
|
}
|
|
3209
3209
|
function Ns(e, t) {
|
|
3210
|
-
let n =
|
|
3210
|
+
let n = Xe();
|
|
3211
3211
|
if (!e)
|
|
3212
3212
|
return n.dispose;
|
|
3213
3213
|
let { transitionDuration: r, transitionDelay: o } = getComputedStyle(e), [c, i] = [r, o].map((b) => {
|
|
@@ -3230,7 +3230,7 @@ function Ns(e, t) {
|
|
|
3230
3230
|
return n.add(() => t()), n.dispose;
|
|
3231
3231
|
}
|
|
3232
3232
|
function As(e, t, n, r) {
|
|
3233
|
-
let o = n ? "enter" : "leave", c =
|
|
3233
|
+
let o = n ? "enter" : "leave", c = Xe(), i = r !== void 0 ? Fs(r) : () => {
|
|
3234
3234
|
};
|
|
3235
3235
|
o === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
3236
3236
|
let f = be(o, { enter: () => t.enter, leave: () => t.leave }), b = be(o, { enter: () => t.enterTo, leave: () => t.leaveTo }), v = be(o, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
@@ -3239,11 +3239,11 @@ function As(e, t, n, r) {
|
|
|
3239
3239
|
}), c.dispose;
|
|
3240
3240
|
}
|
|
3241
3241
|
function Ds({ immediate: e, container: t, direction: n, classes: r, onStart: o, onStop: c }) {
|
|
3242
|
-
let i = Pn(), f = it(), b =
|
|
3242
|
+
let i = Pn(), f = it(), b = Ke(n);
|
|
3243
3243
|
we(() => {
|
|
3244
3244
|
e && (b.current = "enter");
|
|
3245
3245
|
}, [e]), we(() => {
|
|
3246
|
-
let v =
|
|
3246
|
+
let v = Xe();
|
|
3247
3247
|
f.add(v.dispose);
|
|
3248
3248
|
let m = t.current;
|
|
3249
3249
|
if (m && b.current !== "idle" && i.current)
|
|
@@ -3276,7 +3276,7 @@ function nn(e) {
|
|
|
3276
3276
|
return "children" in e ? nn(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
3277
3277
|
}
|
|
3278
3278
|
function wo(e, t) {
|
|
3279
|
-
let n =
|
|
3279
|
+
let n = Ke(e), r = j([]), o = Pn(), c = it(), i = L((d, a = ut.Hidden) => {
|
|
3280
3280
|
let u = r.current.findIndex(({ el: p }) => p === d);
|
|
3281
3281
|
u !== -1 && (be(a, { [ut.Unmount]() {
|
|
3282
3282
|
r.current.splice(u, 1);
|
|
@@ -3332,7 +3332,7 @@ function qs(e, t) {
|
|
|
3332
3332
|
return be(R, { hidden: () => z(p), visible: () => C(p) });
|
|
3333
3333
|
}
|
|
3334
3334
|
}, [R, p, C, z, x, k]);
|
|
3335
|
-
let de =
|
|
3335
|
+
let de = Ke({ base: ct(u.className), enter: ct(b), enterFrom: ct(v), enterTo: ct(m), entered: ct(h), leave: ct(l), leaveFrom: ct(d), leaveTo: ct(a) }), Z = Us({ beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: f }), _ = _n();
|
|
3336
3336
|
ae(() => {
|
|
3337
3337
|
if (_ && R === "visible" && p.current === null)
|
|
3338
3338
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
@@ -3350,9 +3350,9 @@ function qs(e, t) {
|
|
|
3350
3350
|
} })), Q = wo(() => {
|
|
3351
3351
|
q("hidden"), z(p);
|
|
3352
3352
|
}, M);
|
|
3353
|
-
Ds({ immediate: ne, container: p, classes: de, direction: pe, onStart:
|
|
3353
|
+
Ds({ immediate: ne, container: p, classes: de, direction: pe, onStart: Ke((se) => {
|
|
3354
3354
|
Q.onStart(p, se, fe);
|
|
3355
|
-
}), onStop:
|
|
3355
|
+
}), onStop: Ke((se) => {
|
|
3356
3356
|
Q.onStop(p, se, re), se === "leave" && !nn(Q) && (q("hidden"), z(p));
|
|
3357
3357
|
}) });
|
|
3358
3358
|
let me = u, ve = { ref: g };
|
|
@@ -3418,7 +3418,7 @@ function Gs({
|
|
|
3418
3418
|
clipRule: "evenodd"
|
|
3419
3419
|
}));
|
|
3420
3420
|
}
|
|
3421
|
-
const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectContainer_12thw_4", Zs = "_selectButton_12thw_7", ec = "_open_12thw_13", tc = "_selectValue_12thw_16", nc = "_seletIcon_12thw_19", rc = "_selectText_12thw_22", oc = "_chevronDownIconSpan_12thw_25", ic = "_chevronDownIcon_12thw_25", ac = "_leave_12thw_32", lc = "_leaveFrom_12thw_36", sc = "_leaveTo_12thw_40", cc = "_selectOptions_12thw_44",
|
|
3421
|
+
const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectContainer_12thw_4", Zs = "_selectButton_12thw_7", ec = "_open_12thw_13", tc = "_selectValue_12thw_16", nc = "_seletIcon_12thw_19", rc = "_selectText_12thw_22", oc = "_chevronDownIconSpan_12thw_25", ic = "_chevronDownIcon_12thw_25", ac = "_leave_12thw_32", lc = "_leaveFrom_12thw_36", sc = "_leaveTo_12thw_40", cc = "_selectOptions_12thw_44", Me = {
|
|
3422
3422
|
select: Qs,
|
|
3423
3423
|
selectContainer: Xs,
|
|
3424
3424
|
selectButton: Zs,
|
|
@@ -3466,12 +3466,12 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3466
3466
|
if (ae(() => (window.addEventListener("scroll", y), window.addEventListener("resize", y), () => {
|
|
3467
3467
|
window.removeEventListener("scroll", y), window.removeEventListener("resize", y);
|
|
3468
3468
|
}), []), r) {
|
|
3469
|
-
r =
|
|
3469
|
+
r = Ze.convert3HexTo6(r);
|
|
3470
3470
|
const F = pt(r);
|
|
3471
3471
|
(F === "dark" || F === "light") && (a = r === "#ffffff" ? "#c8c8c8" : r);
|
|
3472
3472
|
}
|
|
3473
|
-
return /* @__PURE__ */ O.jsx(Jt, { value: t, onChange: u, children: ({ open: F }) => /* @__PURE__ */ O.jsxs("div", { className:
|
|
3474
|
-
/* @__PURE__ */ O.jsx("div", { className:
|
|
3473
|
+
return /* @__PURE__ */ O.jsx(Jt, { value: t, onChange: u, children: ({ open: F }) => /* @__PURE__ */ O.jsxs("div", { className: Me.select, children: [
|
|
3474
|
+
/* @__PURE__ */ O.jsx("div", { className: Me.selectContainer, ref: b, children: /* @__PURE__ */ O.jsxs(
|
|
3475
3475
|
Jt.Button,
|
|
3476
3476
|
{
|
|
3477
3477
|
"data-testid": "select-options",
|
|
@@ -3482,13 +3482,13 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3482
3482
|
(R.key === " " || R.code === "Space" || R.code === "Enter") && y();
|
|
3483
3483
|
},
|
|
3484
3484
|
style: { borderBottomColor: r && (o || F) ? a : "" },
|
|
3485
|
-
className: `${
|
|
3485
|
+
className: `${Me.selectButton} ${F ? Me.open : ""}`,
|
|
3486
3486
|
children: [
|
|
3487
|
-
t && /* @__PURE__ */ O.jsxs("span", { className:
|
|
3488
|
-
t.avatar && /* @__PURE__ */ O.jsx("img", { src: t.avatar, alt: "", className:
|
|
3489
|
-
/* @__PURE__ */ O.jsx("span", { className:
|
|
3487
|
+
t && /* @__PURE__ */ O.jsxs("span", { className: Me.selectValue, children: [
|
|
3488
|
+
t.avatar && /* @__PURE__ */ O.jsx("img", { src: t.avatar, alt: "", className: Me.seletIcon }),
|
|
3489
|
+
/* @__PURE__ */ O.jsx("span", { className: Me.selectText, children: t.label })
|
|
3490
3490
|
] }),
|
|
3491
|
-
/* @__PURE__ */ O.jsx("span", { className:
|
|
3491
|
+
/* @__PURE__ */ O.jsx("span", { className: Me.chevronDownIconSpan, children: /* @__PURE__ */ O.jsx(_o, { className: Me.chevronDownIcon, "aria-hidden": "true" }) })
|
|
3492
3492
|
]
|
|
3493
3493
|
}
|
|
3494
3494
|
) }),
|
|
@@ -3525,15 +3525,15 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3525
3525
|
Oo,
|
|
3526
3526
|
{
|
|
3527
3527
|
as: ot,
|
|
3528
|
-
leave:
|
|
3529
|
-
leaveFrom:
|
|
3530
|
-
leaveTo:
|
|
3528
|
+
leave: Me.leave,
|
|
3529
|
+
leaveFrom: Me.leaveFrom,
|
|
3530
|
+
leaveTo: Me.leaveTo,
|
|
3531
3531
|
afterLeave: () => t(""),
|
|
3532
|
-
children: /* @__PURE__ */ O.jsx(Jt.Options, { className:
|
|
3532
|
+
children: /* @__PURE__ */ O.jsx(Jt.Options, { className: Me.selectOptions, children: e })
|
|
3533
3533
|
}
|
|
3534
3534
|
), uc = dt((e, t) => /* @__PURE__ */ O.jsx(Jt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3535
3535
|
uc.displayName = "SelectOption";
|
|
3536
|
-
const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc = "_disable_1ue23_7", bc = "_autocompleteInput_1ue23_16", vc = "_autocompleteButton_1ue23_25", mc = "_chevronDownIcon_1ue23_28", hc = "_leave_1ue23_35", gc = "_leaveFrom_1ue23_39", wc = "_leaveTo_1ue23_43", xc = "_autocompleteOptions_1ue23_47",
|
|
3536
|
+
const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc = "_disable_1ue23_7", bc = "_autocompleteInput_1ue23_16", vc = "_autocompleteButton_1ue23_25", mc = "_chevronDownIcon_1ue23_28", hc = "_leave_1ue23_35", gc = "_leaveFrom_1ue23_39", wc = "_leaveTo_1ue23_43", xc = "_autocompleteOptions_1ue23_47", Ye = {
|
|
3537
3537
|
autocomplete: dc,
|
|
3538
3538
|
autocompleteContainer: fc,
|
|
3539
3539
|
disable: pc,
|
|
@@ -3597,18 +3597,18 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3597
3597
|
};
|
|
3598
3598
|
if (i) {
|
|
3599
3599
|
const _ = pt(i);
|
|
3600
|
-
i =
|
|
3600
|
+
i = Ze.convert3HexTo6(i), (_ === "dark" || _ === "light") && (x = {
|
|
3601
3601
|
borderBottomColor: i === "#ffffff" ? "#c8c8c8" : v ? i : "#333333"
|
|
3602
3602
|
});
|
|
3603
3603
|
}
|
|
3604
|
-
return /* @__PURE__ */ O.jsx(Pt, { value: t, onChange: q, disabled: o, children: ({ open: _ }) => /* @__PURE__ */ O.jsxs("div", { className:
|
|
3605
|
-
/* @__PURE__ */ O.jsxs("div", { ref: d, className: `${
|
|
3604
|
+
return /* @__PURE__ */ O.jsx(Pt, { value: t, onChange: q, disabled: o, children: ({ open: _ }) => /* @__PURE__ */ O.jsxs("div", { className: Ye.autocomplete, children: [
|
|
3605
|
+
/* @__PURE__ */ O.jsxs("div", { ref: d, className: `${Ye.autocompleteContainer} ${o ? Ye.disable : ""}`, children: [
|
|
3606
3606
|
/* @__PURE__ */ O.jsx(
|
|
3607
3607
|
Pt.Input,
|
|
3608
3608
|
{
|
|
3609
3609
|
ref: f,
|
|
3610
3610
|
"data-testid": "select-input",
|
|
3611
|
-
className:
|
|
3611
|
+
className: Ye.autocompleteInput,
|
|
3612
3612
|
displayValue: C,
|
|
3613
3613
|
onChange: (G) => {
|
|
3614
3614
|
r(G.target.value), R();
|
|
@@ -3627,11 +3627,17 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3627
3627
|
/* @__PURE__ */ O.jsx(
|
|
3628
3628
|
Pt.Button,
|
|
3629
3629
|
{
|
|
3630
|
-
className:
|
|
3630
|
+
className: Ye.autocompleteButton,
|
|
3631
3631
|
"data-testid": "select-button",
|
|
3632
3632
|
ref: b,
|
|
3633
3633
|
onClick: R,
|
|
3634
|
-
children: /* @__PURE__ */ O.jsx(
|
|
3634
|
+
children: /* @__PURE__ */ O.jsx(
|
|
3635
|
+
_o,
|
|
3636
|
+
{
|
|
3637
|
+
className: `${Ye.chevronDownIcon} ${o ? Ye.disable : ""}`,
|
|
3638
|
+
"aria-hidden": "true"
|
|
3639
|
+
}
|
|
3640
|
+
)
|
|
3635
3641
|
}
|
|
3636
3642
|
)
|
|
3637
3643
|
] }),
|
|
@@ -3668,11 +3674,11 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3668
3674
|
Oo,
|
|
3669
3675
|
{
|
|
3670
3676
|
as: ot,
|
|
3671
|
-
leave:
|
|
3672
|
-
leaveFrom:
|
|
3673
|
-
leaveTo:
|
|
3677
|
+
leave: Ye.leave,
|
|
3678
|
+
leaveFrom: Ye.leaveFrom,
|
|
3679
|
+
leaveTo: Ye.leaveTo,
|
|
3674
3680
|
afterLeave: () => t(""),
|
|
3675
|
-
children: /* @__PURE__ */ O.jsx(Pt.Options, { className:
|
|
3681
|
+
children: /* @__PURE__ */ O.jsx(Pt.Options, { className: Ye.autocompleteOptions, children: e })
|
|
3676
3682
|
}
|
|
3677
3683
|
), yc = dt((e, t) => /* @__PURE__ */ O.jsx(Pt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
|
|
3678
3684
|
yc.displayName = "AutoCompleteOption";
|
|
@@ -3685,7 +3691,7 @@ const Oc = "_textInputWrapper_gym4n_1", _c = "_textInput_gym4n_1", nr = {
|
|
|
3685
3691
|
const [f, b] = ie(!1);
|
|
3686
3692
|
let v = {};
|
|
3687
3693
|
const m = [nr.textInput, n].filter(Boolean).join(" ");
|
|
3688
|
-
e =
|
|
3694
|
+
e = Ze.convert3HexTo6(e);
|
|
3689
3695
|
const h = () => {
|
|
3690
3696
|
b(!0);
|
|
3691
3697
|
}, l = () => {
|
|
@@ -3715,7 +3721,7 @@ export {
|
|
|
3715
3721
|
Fc as AutoCompleteOptions,
|
|
3716
3722
|
ir as Button,
|
|
3717
3723
|
ar as Checkbox,
|
|
3718
|
-
|
|
3724
|
+
Ze as ColorsService,
|
|
3719
3725
|
Ec as MultiLineInput,
|
|
3720
3726
|
Tc as MultiSelect,
|
|
3721
3727
|
Cc as QuickMultiSelect,
|