hocmai-feedback-widget 0.1.4 → 0.1.5
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.
|
@@ -5,7 +5,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
5
5
|
OBJECT: "object",
|
|
6
6
|
STRING: "string",
|
|
7
7
|
UNDEFINED: "undefined"
|
|
8
|
-
}, L = "browser", j = "cpu", B = "device",
|
|
8
|
+
}, L = "browser", j = "cpu", B = "device", z = "engine", D = "os", fe = "result", c = "name", a = "type", d = "vendor", u = "version", O = "architecture", Se = "major", l = "model", Me = "console", g = "mobile", y = "tablet", C = "smarttv", $ = "wearable", Ie = "xr", ke = "embedded", ae = "inapp", st = "brands", te = "formFactors", at = "fullVersionList", pe = "platform", lt = "platformVersion", De = "bitness", K = "sec-ch-ua", xi = K + "-full-version-list", vi = K + "-arch", ki = K + "-" + De, Si = K + "-form-factors", Ci = K + "-" + g, Ei = K + "-" + l, jt = K + "-" + pe, Ii = jt + "-version", Nt = [st, at, g, l, pe, lt, O, te, De], Te = "Amazon", le = "Apple", xt = "ASUS", vt = "BlackBerry", ee = "Google", kt = "Huawei", je = "Lenovo", St = "Honor", Re = "LG", Ne = "Microsoft", Ge = "Motorola", Ct = "Nvidia", Et = "OnePlus", Xe = "OPPO", ge = "Samsung", It = "Sharp", we = "Sony", Ye = "Xiaomi", Qe = "Zebra", Tt = "Chrome", Rt = "Chromium", G = "Chromecast", Ae = "Edge", me = "Firefox", ye = "Opera", Ke = "Facebook", Ot = "Sogou", ce = "Mobile ", xe = " Browser", tt = "Windows", Ti = typeof window !== S.UNDEFINED, F = Ti && window.navigator ? window.navigator : void 0, ie = F && F.userAgentData ? F.userAgentData : void 0, Ri = function(e, t) {
|
|
9
9
|
var i = {}, n = t;
|
|
10
10
|
if (!Fe(t)) {
|
|
11
11
|
n = {};
|
|
@@ -1343,11 +1343,11 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1343
1343
|
[L, [c, u, Se, a]],
|
|
1344
1344
|
[j, [O]],
|
|
1345
1345
|
[B, [a, l, d]],
|
|
1346
|
-
[
|
|
1346
|
+
[z, [c, u]],
|
|
1347
1347
|
[D, [c, u]]
|
|
1348
1348
|
]), q.call(e.isIgnore, [
|
|
1349
1349
|
[L, [u, Se]],
|
|
1350
|
-
[
|
|
1350
|
+
[z, [u]],
|
|
1351
1351
|
[D, [u]]
|
|
1352
1352
|
]), q.call(e.isIgnoreRgx, [
|
|
1353
1353
|
[L, / ?browser$/i],
|
|
@@ -1356,7 +1356,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1356
1356
|
[L, [c, u]],
|
|
1357
1357
|
[j, [O]],
|
|
1358
1358
|
[B, [d, l]],
|
|
1359
|
-
[
|
|
1359
|
+
[z, [c, u]],
|
|
1360
1360
|
[D, [c, u]]
|
|
1361
1361
|
]), e;
|
|
1362
1362
|
})(), Mi = function(e, t) {
|
|
@@ -1453,7 +1453,7 @@ Q.prototype.detectFeature = function() {
|
|
|
1453
1453
|
var e = this.data, t = function(i) {
|
|
1454
1454
|
return e[i].getItem().detectFeature().get();
|
|
1455
1455
|
};
|
|
1456
|
-
this.set(L, t(L)).set(j, t(j)).set(B, t(B)).set(
|
|
1456
|
+
this.set(L, t(L)).set(j, t(j)).set(B, t(B)).set(z, t(z)).set(D, t(D));
|
|
1457
1457
|
}
|
|
1458
1458
|
return this;
|
|
1459
1459
|
};
|
|
@@ -1475,12 +1475,12 @@ Q.prototype.parseCH = function() {
|
|
|
1475
1475
|
var e = this.uaCH, t = this.rgxMap;
|
|
1476
1476
|
switch (this.itemType) {
|
|
1477
1477
|
case L:
|
|
1478
|
-
case
|
|
1478
|
+
case z:
|
|
1479
1479
|
var i = e[at] || e[st], n;
|
|
1480
1480
|
if (i)
|
|
1481
1481
|
for (var o = 0; o < i.length; o++) {
|
|
1482
1482
|
var s = i[o].brand || i[o], r = i[o].version;
|
|
1483
|
-
this.itemType == L && !/not.a.brand/i.test(s) && (!n || /Chrom/.test(n) && s != Rt || n == Ae && /WebView2/.test(s)) && (s = H(s, Oi), n = this.get(c), n && !/Chrom/.test(n) && /Chrom/.test(s) || this.set(c, s).set(u, r).set(Se, nt(r)), n = s), this.itemType ==
|
|
1483
|
+
this.itemType == L && !/not.a.brand/i.test(s) && (!n || /Chrom/.test(n) && s != Rt || n == Ae && /WebView2/.test(s)) && (s = H(s, Oi), n = this.get(c), n && !/Chrom/.test(n) && /Chrom/.test(s) || this.set(c, s).set(u, r).set(Se, nt(r)), n = s), this.itemType == z && s == Rt && this.set(u, r);
|
|
1484
1484
|
}
|
|
1485
1485
|
break;
|
|
1486
1486
|
case j:
|
|
@@ -1511,10 +1511,10 @@ Q.prototype.parseCH = function() {
|
|
|
1511
1511
|
this.get(c) == tt && e[l] == "Xbox" && this.set(c, "Xbox").set(u, void 0);
|
|
1512
1512
|
break;
|
|
1513
1513
|
case fe:
|
|
1514
|
-
var
|
|
1515
|
-
return
|
|
1514
|
+
var U = this.data, M = function(x) {
|
|
1515
|
+
return U[x].getItem().setCH(e).parseCH().get();
|
|
1516
1516
|
};
|
|
1517
|
-
this.set(L, M(L)).set(j, M(j)).set(B, M(B)).set(
|
|
1517
|
+
this.set(L, M(L)).set(j, M(j)).set(B, M(B)).set(z, M(z)).set(D, M(D));
|
|
1518
1518
|
}
|
|
1519
1519
|
return this;
|
|
1520
1520
|
};
|
|
@@ -1544,7 +1544,7 @@ function N(e, t, i) {
|
|
|
1544
1544
|
)
|
|
1545
1545
|
), h = new Gt(i, !0), f = t ? Ri(Ft, t) : Ft, w = function(m) {
|
|
1546
1546
|
return m == fe ? function() {
|
|
1547
|
-
return new Q(m, r, f, h).set("ua", r).set(L, this.getBrowser()).set(j, this.getCPU()).set(B, this.getDevice()).set(
|
|
1547
|
+
return new Q(m, r, f, h).set("ua", r).set(L, this.getBrowser()).set(j, this.getCPU()).set(B, this.getDevice()).set(z, this.getEngine()).set(D, this.getOS()).get();
|
|
1548
1548
|
} : function() {
|
|
1549
1549
|
return new Q(m, r, f[m], h).parseUA().get();
|
|
1550
1550
|
};
|
|
@@ -1553,7 +1553,7 @@ function N(e, t, i) {
|
|
|
1553
1553
|
["getBrowser", w(L)],
|
|
1554
1554
|
["getCPU", w(j)],
|
|
1555
1555
|
["getDevice", w(B)],
|
|
1556
|
-
["getEngine", w(
|
|
1556
|
+
["getEngine", w(z)],
|
|
1557
1557
|
["getOS", w(D)],
|
|
1558
1558
|
["getResult", w(fe)],
|
|
1559
1559
|
["getUA", function() {
|
|
@@ -1647,12 +1647,12 @@ function Pe(e) {
|
|
|
1647
1647
|
}, n.onerror = i, n.crossOrigin = "anonymous", n.decoding = "async", n.src = e;
|
|
1648
1648
|
});
|
|
1649
1649
|
}
|
|
1650
|
-
async function
|
|
1650
|
+
async function zi(e) {
|
|
1651
1651
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
|
|
1652
1652
|
}
|
|
1653
|
-
async function
|
|
1653
|
+
async function Ui(e, t, i) {
|
|
1654
1654
|
const n = "http://www.w3.org/2000/svg", o = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
|
|
1655
|
-
return o.setAttribute("width", `${t}`), o.setAttribute("height", `${i}`), o.setAttribute("viewBox", `0 0 ${t} ${i}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), o.appendChild(s), s.appendChild(e),
|
|
1655
|
+
return o.setAttribute("width", `${t}`), o.setAttribute("height", `${i}`), o.setAttribute("viewBox", `0 0 ${t} ${i}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), o.appendChild(s), s.appendChild(e), zi(o);
|
|
1656
1656
|
}
|
|
1657
1657
|
const _ = (e, t) => {
|
|
1658
1658
|
if (e instanceof t)
|
|
@@ -1775,7 +1775,7 @@ async function Ki(e, t) {
|
|
|
1775
1775
|
var i;
|
|
1776
1776
|
try {
|
|
1777
1777
|
if (!((i = e?.contentDocument) === null || i === void 0) && i.body)
|
|
1778
|
-
return await
|
|
1778
|
+
return await ze(e.contentDocument.body, t, !0);
|
|
1779
1779
|
} catch {
|
|
1780
1780
|
}
|
|
1781
1781
|
return e.cloneNode(!1);
|
|
@@ -1789,7 +1789,7 @@ async function en(e, t, i) {
|
|
|
1789
1789
|
if (Kt(t))
|
|
1790
1790
|
return t;
|
|
1791
1791
|
let s = [];
|
|
1792
|
-
return Zi(e) && e.assignedNodes ? s = Y(e.assignedNodes()) : _(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Y(e.contentDocument.body.childNodes) : s = Y(((o = e.shadowRoot) !== null && o !== void 0 ? o : e).childNodes), s.length === 0 || _(e, HTMLVideoElement) || await s.reduce((r, h) => r.then(() =>
|
|
1792
|
+
return Zi(e) && e.assignedNodes ? s = Y(e.assignedNodes()) : _(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Y(e.contentDocument.body.childNodes) : s = Y(((o = e.shadowRoot) !== null && o !== void 0 ? o : e).childNodes), s.length === 0 || _(e, HTMLVideoElement) || await s.reduce((r, h) => r.then(() => ze(h, i)).then((f) => {
|
|
1793
1793
|
f && t.appendChild(f);
|
|
1794
1794
|
}), Promise.resolve()), t;
|
|
1795
1795
|
}
|
|
@@ -1824,7 +1824,7 @@ async function sn(e, t) {
|
|
|
1824
1824
|
const h = i[s].getAttribute("xlink:href");
|
|
1825
1825
|
if (h) {
|
|
1826
1826
|
const f = e.querySelector(h), w = document.querySelector(h);
|
|
1827
|
-
!f && w && !n[h] && (n[h] = await
|
|
1827
|
+
!f && w && !n[h] && (n[h] = await ze(w, t, !0));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
const o = Object.values(n);
|
|
@@ -1839,7 +1839,7 @@ async function sn(e, t) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return e;
|
|
1841
1841
|
}
|
|
1842
|
-
async function
|
|
1842
|
+
async function ze(e, t, i) {
|
|
1843
1843
|
return !i && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => Ji(n, t)).then((n) => en(e, n, t)).then((n) => on(e, n, t)).then((n) => sn(n, t));
|
|
1844
1844
|
}
|
|
1845
1845
|
const Jt = /url\((['"]?)([^'"]+?)\1\)/g, an = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, ln = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
@@ -1932,7 +1932,7 @@ async function Ht(e) {
|
|
|
1932
1932
|
const n = await (await fetch(e)).text();
|
|
1933
1933
|
return t = { url: e, cssText: n }, Dt[e] = t, t;
|
|
1934
1934
|
}
|
|
1935
|
-
async function
|
|
1935
|
+
async function zt(e, t) {
|
|
1936
1936
|
let i = e.cssText;
|
|
1937
1937
|
const n = /url\(["']?([^"')]+)["']?\)/g, s = (i.match(/url\([^)]+\)/g) || []).map(async (r) => {
|
|
1938
1938
|
let h = r.replace(n, "$1");
|
|
@@ -1940,7 +1940,7 @@ async function Ut(e, t) {
|
|
|
1940
1940
|
});
|
|
1941
1941
|
return Promise.all(s).then(() => i);
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Ut(e) {
|
|
1944
1944
|
if (e == null)
|
|
1945
1945
|
return [];
|
|
1946
1946
|
const t = [], i = /(\/\*[\s\S]*?\*\/)/gi;
|
|
@@ -1974,7 +1974,7 @@ async function wn(e, t) {
|
|
|
1974
1974
|
Y(o.cssRules || []).forEach((s, r) => {
|
|
1975
1975
|
if (s.type === CSSRule.IMPORT_RULE) {
|
|
1976
1976
|
let h = r + 1;
|
|
1977
|
-
const f = s.href, w = Ht(f).then((m) =>
|
|
1977
|
+
const f = s.href, w = Ht(f).then((m) => zt(m, t)).then((m) => Ut(m).forEach((k) => {
|
|
1978
1978
|
try {
|
|
1979
1979
|
o.insertRule(k, k.startsWith("@import") ? h += 1 : o.cssRules.length);
|
|
1980
1980
|
} catch (T) {
|
|
@@ -1991,7 +1991,7 @@ async function wn(e, t) {
|
|
|
1991
1991
|
});
|
|
1992
1992
|
} catch (s) {
|
|
1993
1993
|
const r = e.find((h) => h.href == null) || document.styleSheets[0];
|
|
1994
|
-
o.href != null && n.push(Ht(o.href).then((h) =>
|
|
1994
|
+
o.href != null && n.push(Ht(o.href).then((h) => zt(h, t)).then((h) => Ut(h).forEach((f) => {
|
|
1995
1995
|
r.insertRule(f, r.cssRules.length);
|
|
1996
1996
|
})).catch((h) => {
|
|
1997
1997
|
console.error("Error loading remote stylesheet", h);
|
|
@@ -2047,8 +2047,8 @@ async function kn(e, t) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
async function Sn(e, t = {}) {
|
|
2050
|
-
const { width: i, height: n } = Yt(e, t), o = await
|
|
2051
|
-
return await kn(o, t), await ti(o, t), gn(o, t), await
|
|
2050
|
+
const { width: i, height: n } = Yt(e, t), o = await ze(e, t, !0);
|
|
2051
|
+
return await kn(o, t), await ti(o, t), gn(o, t), await Ui(o, i, n);
|
|
2052
2052
|
}
|
|
2053
2053
|
async function Cn(e, t = {}) {
|
|
2054
2054
|
const { width: i, height: n } = Yt(e, t), o = await Sn(e, t), s = await Pe(o), r = document.createElement("canvas"), h = r.getContext("2d"), f = t.pixelRatio || Di(), w = t.canvasWidth || i, m = t.canvasHeight || n;
|
|
@@ -2165,12 +2165,12 @@ const Hn = [
|
|
|
2165
2165
|
],
|
|
2166
2166
|
["path", { d: "M12 8v6", key: "1ib9pf" }],
|
|
2167
2167
|
["path", { d: "M9 11h6", key: "1fldmi" }]
|
|
2168
|
-
],
|
|
2169
|
-
const
|
|
2168
|
+
], zn = ne("message-square-plus", Hn);
|
|
2169
|
+
const Un = [
|
|
2170
2170
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
2171
2171
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
2172
2172
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
2173
|
-
], $n = ne("monitor",
|
|
2173
|
+
], $n = ne("monitor", Un);
|
|
2174
2174
|
const Bn = [
|
|
2175
2175
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
2176
2176
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
@@ -2197,7 +2197,7 @@ const Wn = [
|
|
|
2197
2197
|
const R = x.touches[0];
|
|
2198
2198
|
h({ x: R.clientX, y: R.clientY });
|
|
2199
2199
|
}
|
|
2200
|
-
},
|
|
2200
|
+
}, U = () => {
|
|
2201
2201
|
M(), document.body.style.overflow = "";
|
|
2202
2202
|
}, M = () => {
|
|
2203
2203
|
if (i) {
|
|
@@ -2232,7 +2232,7 @@ const Wn = [
|
|
|
2232
2232
|
onMouseUp: m,
|
|
2233
2233
|
onTouchStart: k,
|
|
2234
2234
|
onTouchMove: T,
|
|
2235
|
-
onTouchEnd:
|
|
2235
|
+
onTouchEnd: U,
|
|
2236
2236
|
children: [
|
|
2237
2237
|
/* @__PURE__ */ b("div", { style: {
|
|
2238
2238
|
position: "absolute",
|
|
@@ -2281,7 +2281,7 @@ const Wn = [
|
|
|
2281
2281
|
onOpen: h,
|
|
2282
2282
|
onClose: f
|
|
2283
2283
|
}) => {
|
|
2284
|
-
const [w, m] = E(!1), [k, T] = E(""), [
|
|
2284
|
+
const [w, m] = E(!1), [k, T] = E(""), [U, M] = E(e), [x, R] = E(t || ""), [V, J] = E([]), [Ue, $e] = E(null), [oi, ut] = E(!1), [Z, ht] = E(!1), [ft, Ee] = E(!1), [W, re] = E(null), [A, oe] = E({}), [pt, Be] = E("incorrect_content"), [si, Ve] = E(!1), We = r !== void 0 ? r : w, ai = We && !si;
|
|
2285
2285
|
pi.useEffect(() => {
|
|
2286
2286
|
We && (oe({}), M(e), R(t || ""));
|
|
2287
2287
|
}, [We, e, t]);
|
|
@@ -2319,7 +2319,7 @@ const Wn = [
|
|
|
2319
2319
|
f && f(), m(!1), J([]), Ee(!1), $e(null), T(""), oe({}), Be("incorrect_content");
|
|
2320
2320
|
}, hi = async () => {
|
|
2321
2321
|
const p = {};
|
|
2322
|
-
if (
|
|
2322
|
+
if (U ? isNaN(Number(U)) && (p.questionId = "ID câu hỏi phải là số") : p.questionId = "Vui lòng nhập ID câu hỏi", x && isNaN(Number(x)) && (p.questionIdChild = "ID câu hỏi con phải là số"), k.trim() || (p.description = "Vui lòng nhập mô tả lỗi"), Object.keys(p).length > 0) {
|
|
2323
2323
|
oe(p);
|
|
2324
2324
|
return;
|
|
2325
2325
|
}
|
|
@@ -2337,7 +2337,7 @@ const Wn = [
|
|
|
2337
2337
|
})).json()).file_url)
|
|
2338
2338
|
);
|
|
2339
2339
|
await n({
|
|
2340
|
-
idQuestion:
|
|
2340
|
+
idQuestion: U,
|
|
2341
2341
|
idChildQuestion: x,
|
|
2342
2342
|
errorType: pt,
|
|
2343
2343
|
errorDescription: k,
|
|
@@ -2395,9 +2395,14 @@ const Wn = [
|
|
|
2395
2395
|
height: 44px !important;
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
+
@media (max-width: 767px) {
|
|
2399
|
+
.fb-btn-crop {
|
|
2400
|
+
display: none !important;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2398
2403
|
` }),
|
|
2399
2404
|
ft && /* @__PURE__ */ b(qn, { onConfirm: ci, onCancel: di }),
|
|
2400
|
-
|
|
2405
|
+
Ue && /* @__PURE__ */ b(
|
|
2401
2406
|
"div",
|
|
2402
2407
|
{
|
|
2403
2408
|
style: {
|
|
@@ -2416,7 +2421,7 @@ const Wn = [
|
|
|
2416
2421
|
children: /* @__PURE__ */ b(
|
|
2417
2422
|
"img",
|
|
2418
2423
|
{
|
|
2419
|
-
src:
|
|
2424
|
+
src: Ue,
|
|
2420
2425
|
alt: "Zoomed",
|
|
2421
2426
|
draggable: !1,
|
|
2422
2427
|
onContextMenu: (p) => p.preventDefault(),
|
|
@@ -2461,11 +2466,11 @@ const Wn = [
|
|
|
2461
2466
|
title: "Báo lỗi",
|
|
2462
2467
|
onMouseEnter: (p) => p.currentTarget.style.transform = "scale(1.1)",
|
|
2463
2468
|
onMouseLeave: (p) => p.currentTarget.style.transform = "scale(1)",
|
|
2464
|
-
children: /* @__PURE__ */ b(
|
|
2469
|
+
children: /* @__PURE__ */ b(zn, { size: 24 })
|
|
2465
2470
|
}
|
|
2466
2471
|
) }),
|
|
2467
2472
|
oi && /* @__PURE__ */ b("div", { style: { position: "fixed", top: 20, right: 20, background: "rgba(0,0,0,0.8)", color: "white", padding: "8px 12px", borderRadius: "8px", zIndex: 1e4, fontWeight: 500, backdropFilter: "blur(4px)", fontSize: "0.8rem" }, children: "Đang chụp..." }),
|
|
2468
|
-
ai && !ft && !
|
|
2473
|
+
ai && !ft && !Ue && /* @__PURE__ */ v("div", { className: "fb-widget-modal", children: [
|
|
2469
2474
|
/* @__PURE__ */ v("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
2470
2475
|
/* @__PURE__ */ b("h2", { style: { margin: 0, fontSize: "1rem", fontWeight: 700, color: "#111827" }, children: "Báo lỗi" }),
|
|
2471
2476
|
/* @__PURE__ */ b(
|
|
@@ -2513,7 +2518,7 @@ const Wn = [
|
|
|
2513
2518
|
"input",
|
|
2514
2519
|
{
|
|
2515
2520
|
type: "text",
|
|
2516
|
-
value:
|
|
2521
|
+
value: U,
|
|
2517
2522
|
onFocus: () => re("id"),
|
|
2518
2523
|
onBlur: () => re(null),
|
|
2519
2524
|
onChange: (p) => {
|
|
@@ -2619,9 +2624,15 @@ const Wn = [
|
|
|
2619
2624
|
)
|
|
2620
2625
|
] }),
|
|
2621
2626
|
/* @__PURE__ */ v("div", { children: [
|
|
2622
|
-
/* @__PURE__ */ v("
|
|
2623
|
-
"
|
|
2624
|
-
|
|
2627
|
+
/* @__PURE__ */ v("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "2px" }, children: [
|
|
2628
|
+
/* @__PURE__ */ v("label", { style: { fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: [
|
|
2629
|
+
"Mô tả lỗi ",
|
|
2630
|
+
/* @__PURE__ */ b("span", { style: { color: "#ef4444" }, children: "*" })
|
|
2631
|
+
] }),
|
|
2632
|
+
/* @__PURE__ */ v("span", { style: { fontSize: "0.7rem", color: "#9ca3af" }, children: [
|
|
2633
|
+
k.length,
|
|
2634
|
+
"/1000"
|
|
2635
|
+
] })
|
|
2625
2636
|
] }),
|
|
2626
2637
|
/* @__PURE__ */ v("div", { style: { position: "relative" }, children: [
|
|
2627
2638
|
/* @__PURE__ */ b("div", { style: {
|
|
@@ -2762,6 +2773,7 @@ const Wn = [
|
|
|
2762
2773
|
"button",
|
|
2763
2774
|
{
|
|
2764
2775
|
onClick: () => bt("crop"),
|
|
2776
|
+
className: "fb-btn-crop",
|
|
2765
2777
|
style: {
|
|
2766
2778
|
flex: 1,
|
|
2767
2779
|
padding: "12px",
|
|
@@ -2852,8 +2864,8 @@ const Wn = [
|
|
|
2852
2864
|
onSubmit: t,
|
|
2853
2865
|
themeColor: i
|
|
2854
2866
|
}) => {
|
|
2855
|
-
const [n, o] = E(!1), [s, r] = E(null), [h, f] = E(""), [w, m] = E(void 0), k = (
|
|
2856
|
-
r(
|
|
2867
|
+
const [n, o] = E(!1), [s, r] = E(null), [h, f] = E(""), [w, m] = E(void 0), k = (U, M, x) => {
|
|
2868
|
+
r(U), f(M || ""), m(x), o(!0);
|
|
2857
2869
|
}, T = () => {
|
|
2858
2870
|
o(!1);
|
|
2859
2871
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(z,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],f):(z=typeof globalThis<"u"?globalThis:z||self,f(z.SupportFeedbackLib={},z.jsxRuntime,z.React))})(this,(function(z,f,y){"use strict";var ri="2.0.7",ni=500,dt="user-agent",ne="",ut="?",S={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},M="browser",W="cpu",$="device",H="engine",P="os",oe="result",c="name",a="type",d="vendor",u="version",I="architecture",ge="major",l="model",Ee="console",g="mobile",x="tablet",C="smarttv",B="wearable",Ie="xr",we="embedded",se="inapp",$e="brands",J="formFactors",Be="fullVersionList",ae="platform",Ve="platformVersion",Te="bitness",G="sec-ch-ua",oi=G+"-full-version-list",si=G+"-arch",ai=G+"-"+Te,li=G+"-form-factors",ci=G+"-"+g,di=G+"-"+l,ht=G+"-"+ae,ui=ht+"-version",ft=[$e,Be,g,l,ae,Ve,I,J,Te],Oe="Amazon",le="Apple",pt="ASUS",bt="BlackBerry",Z="Google",gt="Huawei",We="Lenovo",wt="Honor",Me="LG",qe="Microsoft",Ne="Motorola",mt="Nvidia",yt="OnePlus",je="OPPO",me="Samsung",xt="Sharp",ye="Sony",Re="Xiaomi",Ge="Zebra",vt="Chrome",kt="Chromium",X="Chromecast",Ae="Edge",xe="Firefox",ve="Opera",Xe="Facebook",St="Sogou",ce="Mobile ",ke=" Browser",Ye="Windows",hi=typeof window!==S.UNDEFINED,A=hi&&window.navigator?window.navigator:void 0,ee=A&&A.userAgentData?A.userAgentData:void 0,fi=function(e,t){var i={},r=t;if(!Fe(t)){r={};for(var o in t)for(var s in t[o])r[s]=t[o][s].concat(r[s]?r[s]:[])}for(var n in e)i[n]=r[n]&&r[n].length%2===0?r[n].concat(e[n]):e[n];return i},_e=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Qe=function(e,t){if(typeof e===S.OBJECT&&e.length>0){for(var i in e)if(Y(t)==Y(e[i]))return!0;return!1}return Se(e)?Y(t)==Y(e):!1},Fe=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(t?Fe(e[i]):!1)},Se=function(e){return typeof e===S.STRING},Ke=function(e){if(e){for(var t=[],i=de(/\\?\"/g,e).split(","),r=0;r<i.length;r++)if(i[r].indexOf(";")>-1){var o=Le(i[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Le(i[r]);return t}},Y=function(e){return Se(e)?e.toLowerCase():e},Je=function(e){return Se(e)?de(/[^\d\.]/g,e).split(".")[0]:void 0},q=function(e){for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];typeof i==S.OBJECT&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},de=function(e,t){return Se(t)?t.replace(e,ne):t},Ce=function(e){return de(/\\?\"/g,e)},Le=function(e,t){return e=de(/^\s\s*/,String(e)),typeof t===S.UNDEFINED?e:e.substring(0,t)},Ze=function(e,t){if(!(!e||!t))for(var i=0,r,o,s,n,h,p;i<t.length&&!h;){var w=t[i],m=t[i+1];for(r=o=0;r<w.length&&!h&&w[r];)if(h=w[r++].exec(e),h)for(s=0;s<m.length;s++)p=h[++o],n=m[s],typeof n===S.OBJECT&&n.length>0?n.length===2?typeof n[1]==S.FUNCTION?this[n[0]]=n[1].call(this,p):this[n[0]]=n[1]:n.length>=3&&(typeof n[1]===S.FUNCTION&&!(n[1].exec&&n[1].test)?n.length>3?this[n[0]]=p?n[1].apply(this,n.slice(2)):void 0:this[n[0]]=p?n[1].call(this,p,n[2]):void 0:n.length==3?this[n[0]]=p?p.replace(n[1],n[2]):void 0:n.length==4?this[n[0]]=p?n[3].call(this,p.replace(n[1],n[2])):void 0:n.length>4&&(this[n[0]]=p?n[3].apply(this,[p.replace(n[1],n[2])].concat(n.slice(4))):void 0)):this[n]=p||void 0;i+=2}},U=function(e,t){for(var i in t)if(typeof t[i]===S.OBJECT&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(Qe(t[i][r],e))return i===ut?void 0:i}else if(Qe(t[i],e))return i===ut?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Ct={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Et={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},pi={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},It={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,ce+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[u,[c,Ae+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[u,[c,ve+" GX"]],[/\bopr\/([\w\.]+)/i],[u,[c,ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[u,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[u,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|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|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[c,u],[/quark(?:pc)?\/([-\w\.]+)/i],[u,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[u,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[u,[c,"Smart "+We+ke]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure"+ke],u],[/\bfocus\/([\w\.]+)/i],[u,[c,xe+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI"+ke]],[/fxios\/([\w\.-]+)/i],[u,[c,ce+xe]],[/\bqihoobrowser\/?([\w\.]*)/i],[u,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],u],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+ke],u],[/samsungbrowser\/([\w\.]+)/i],[u,[c,me+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[u,[c,St+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,St+" Mobile"],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,u],[/(lbbrowser|rekonq|steam(?= (clie|tenf|gameo)))/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[u,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,Xe],u,[a,se]],[/(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,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[c,u,[a,se]],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"],[a,se]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[u,[c,"TikTok"],[a,se]],[/\[(linkedin)app\]/i],[c,[a,se]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[c,/(.+)/,"Zalo"],u,[a,se]],[/(chromium)[\/ ]([-\w\.]+)/i],[c,u],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,vt+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[u,[c,Ae+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,vt+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android"+ke]],[/chrome\/([\w\.]+) mobile/i],[u,[c,ce+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[u,[c,ce+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[c,ce+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[c,ce+xe],u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,xe+" 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|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[u,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[u,/[^\d\.]+./,ne]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[I,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[I,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[I,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[I,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[I,"arm"]],[/ sun4\w[;\)]/i],[[I,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[I,/ower/,ne,Y]],[/mc680.0/i],[[I,"68k"]],[/winnt.+\[axp/i],[[I,"alpha"]]],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,[d,me],[a,x]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,me],[a,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[l,[d,le],[a,g]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[l,[d,le],[a,x]],[/(macintosh);/i],[l,[d,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,xt],[a,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,wt],[a,x]],[/honor([-\w ]+)[;\)]/i],[l,[d,wt],[a,g]],[/\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],[l,[d,gt],[a,x]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[l,[d,gt],[a,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Re],[a,x]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Re],[a,g]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,yt],[a,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,je],[a,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,U,{OnePlus:["203","304","403","404","413","415"],"*":je}],[a,x]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[l,[d,"BLU"],[a,g]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[a,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[a,g]],[/(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],[l,[d,We],[a,x]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[l,[d,We],[a,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[l,[d,Ne],[a,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,Ne],[a,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Me],[a,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Me],[a,g]],[/(nokia) (t[12][01])/i],[d,l,[a,x]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[l,/_/g," "],[a,g],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,Z],[a,x]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[l,[d,Z],[a,g]],[/(google) (pixelbook( go)?)/i],[d,l],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,ye],[a,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,ye],[a,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,Oe],[a,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,Oe],[a,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[a,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[l,[d,bt],[a,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,pt],[a,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,pt],[a,g]],[/(nexus 9)/i],[l,[d,"HTC"],[a,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[a,g]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[l,[d,"TCL"],[a,x]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[l,[d,"TCL"],[a,g]],[/(itel) ((\w+))/i],[[d,Y],l,[a,U,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[a,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[a,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[a,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[a,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[a,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[a,g]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[l,[d,"Nothing"],[a,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[a,x]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[a,g]],[/; (n159v)/i],[l,[d,"HMD"],[a,g]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[d,l,[a,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[d,l,[a,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[d,l,[a,x]],[/(surface duo)/i],[l,[d,qe],[a,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[a,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,mt],[a,x]],[/(sprint) (\w+)/i],[d,l,[a,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,qe],[a,g]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,Ge],[a,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,Ge],[a,g]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[d,[a,C]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,me],[a,C]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[d,l,[a,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Me],[a,C]],[/(apple) ?tv/i],[d,[l,le+" TV"],[a,C]],[/crkey.*devicetype\/chromecast/i],[[l,X+" Third Generation"],[d,Z],[a,C]],[/crkey.*devicetype\/([^/]*)/i],[[l,/^/,"Chromecast "],[d,Z],[a,C]],[/fuchsia.*crkey/i],[[l,X+" Nest Hub"],[d,Z],[a,C]],[/crkey/i],[[l,X],[d,Z],[a,C]],[/(portaltv)/i],[l,[d,Xe],[a,C]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,Oe],[a,C]],[/(shield \w+ tv)/i],[l,[d,mt],[a,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,xt],[a,C]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,ye],[a,C]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Re],[a,C]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[a,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,/.+\/(\w+)/,"$1",U,{LG:"lge"}],[l,Le],[a,C]],[/(playstation \w+)/i],[l,[d,ye],[a,Ee]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,qe],[a,Ee]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[d,U,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],l,[a,Ee]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,me],[a,B]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[a,B]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,je],[a,B]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,le],[a,B]],[/(opwwe\d{3})/i],[l,[d,yt],[a,B]],[/(moto 360)/i],[l,[d,Ne],[a,B]],[/(smartwatch 3)/i],[l,[d,ye],[a,B]],[/(g watch r)/i],[l,[d,Me],[a,B]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,Ge],[a,B]],[/droid.+; (glass) \d/i],[l,[d,Z],[a,Ie]],[/(pico) ([\w ]+) os\d/i],[d,l,[a,Ie]],[/(quest( \d| pro)?s?).+vr/i],[l,[d,Xe],[a,Ie]],[/mobile vr; rv.+firefox/i],[[a,Ie]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[a,we]],[/(aeobc)\b/i],[l,[d,Oe],[a,we]],[/(homepod).+mac os/i],[l,[d,le],[a,we]],[/windows iot/i],[[a,we]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[l,[a,C]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[a,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[l,[a,U,{mobile:"Mobile",xr:"VR","*":x}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[a,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[a,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,Ae+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[c,u],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"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],[c,u],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/(windows nt) (6\.[23]); arm/i],[[c,/N/,"R"],[u,U,Ct]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[c,u],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[u,/(;|\))/g,"",U,Ct],[c,Ye]],[/(windows ce)\/?([\d\.]*)/i],[c,u],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[c,"macOS"],[u,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[u,[c,X+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[u,[c,X+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[u,[c,X+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[u,[c,X+" Linux"]],[/crkey\/([\d\.]+)/i],[u,[c,X]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[u,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],u],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[c,u],[/\(bb(10);/i],[u,[c,bt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,xe+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[u,[c,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[u,U,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,"Chrome OS"],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[c,u],[/(sunos) ?([\d\.]*)/i],[[c,"Solaris"],u],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,u]]},Pe=(function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return q.call(e.init,[[M,[c,u,ge,a]],[W,[I]],[$,[a,l,d]],[H,[c,u]],[P,[c,u]]]),q.call(e.isIgnore,[[M,[u,ge]],[H,[u]],[P,[u]]]),q.call(e.isIgnoreRgx,[[M,/ ?browser$/i],[P,/ ?os$/i]]),q.call(e.toString,[[M,[c,u]],[W,[I]],[$,[d,l]],[H,[c,u]],[P,[c,u]]]),e})(),bi=function(e,t){var i=Pe.init[t],r=Pe.isIgnore[t]||0,o=Pe.isIgnoreRgx[t]||0,s=Pe.toString[t]||0;function n(){q.call(this,i)}return n.prototype.getItem=function(){return e},n.prototype.withClientHints=function(){return ee?ee.getHighEntropyValues(ft).then(function(h){return e.setCH(new Tt(h,!1)).parseCH().get()}):e.parseCH().get()},n.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=oe&&(n.prototype.is=function(h){var p=!1;for(var w in this)if(this.hasOwnProperty(w)&&!Qe(r,w)&&Y(o?de(o,this[w]):this[w])==Y(o?de(o,h):h)){if(p=!0,h!=S.UNDEFINED)break}else if(h==S.UNDEFINED&&p){p=!p;break}return p},n.prototype.toString=function(){var h=ne;for(var p in s)typeof this[s[p]]!==S.UNDEFINED&&(h+=(h?" ":ne)+this[s[p]]);return h||S.UNDEFINED}),n.prototype.then=function(h){var p=this,w=function(){for(var k in p)p.hasOwnProperty(k)&&(this[k]=p[k])};w.prototype={is:n.prototype.is,toString:n.prototype.toString,withClientHints:n.prototype.withClientHints,withFeatureCheck:n.prototype.withFeatureCheck};var m=new w;return h(m),m},new n};function Tt(e,t){if(e=e||{},q.call(this,ft),t)q.call(this,[[$e,Ke(e[G])],[Be,Ke(e[oi])],[g,/\?1/.test(e[ci])],[l,Ce(e[di])],[ae,Ce(e[ht])],[Ve,Ce(e[ui])],[I,Ce(e[si])],[J,Ke(e[li])],[Te,Ce(e[ai])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==S.UNDEFINED&&(this[i]=e[i])}function Q(e,t,i,r){return q.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",i],["data",bi(this,e)]]),this}Q.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},Q.prototype.set=function(e,t){return this.data[e]=t,this},Q.prototype.setCH=function(e){return this.uaCH=e,this},Q.prototype.detectFeature=function(){if(A&&A.userAgent==this.ua)switch(this.itemType){case M:A.brave&&typeof A.brave.isBrave==S.FUNCTION&&this.set(c,"Brave");break;case $:!this.get(a)&&ee&&ee[g]&&this.set(a,g),this.get(l)=="Macintosh"&&A&&typeof A.standalone!==S.UNDEFINED&&A.maxTouchPoints&&A.maxTouchPoints>2&&this.set(l,"iPad").set(a,x);break;case P:!this.get(c)&&ee&&ee[ae]&&this.set(c,ee[ae]);break;case oe:var e=this.data,t=function(i){return e[i].getItem().detectFeature().get()};this.set(M,t(M)).set(W,t(W)).set($,t($)).set(H,t(H)).set(P,t(P))}return this},Q.prototype.parseUA=function(){switch(this.itemType!=oe&&Ze.call(this.data,this.ua,this.rgxMap),this.itemType){case M:this.set(ge,Je(this.get(u)));break;case P:if(this.get(c)=="iOS"&&this.get(u)=="18.6"){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(u,e[1])}break}return this},Q.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case M:case H:var i=e[Be]||e[$e],r;if(i)for(var o=0;o<i.length;o++){var s=i[o].brand||i[o],n=i[o].version;this.itemType==M&&!/not.a.brand/i.test(s)&&(!r||/Chrom/.test(r)&&s!=kt||r==Ae&&/WebView2/.test(s))&&(s=U(s,pi),r=this.get(c),r&&!/Chrom/.test(r)&&/Chrom/.test(s)||this.set(c,s).set(u,n).set(ge,Je(n)),r=s),this.itemType==H&&s==kt&&this.set(u,n)}break;case W:var h=e[I];h&&(h&&e[Te]=="64"&&(h+="64"),Ze.call(this.data,h+";",t));break;case $:if(e[g]&&this.set(a,g),e[l]&&(this.set(l,e[l]),!this.get(a)||!this.get(d))){var p={};Ze.call(p,"droid 9; "+e[l]+")",t),!this.get(a)&&p.type&&this.set(a,p.type),!this.get(d)&&p.vendor&&this.set(d,p.vendor)}if(e[J]){var w;if(typeof e[J]!="string")for(var m=0;!w&&m<e[J].length;)w=U(e[J][m++],Et);else w=U(e[J],Et);this.set(a,w)}break;case P:var k=e[ae];if(k){var T=e[Ve];k==Ye&&(T=parseInt(Je(T),10)>=13?"11":"10"),this.set(c,k).set(u,T)}this.get(c)==Ye&&e[l]=="Xbox"&&this.set(c,"Xbox").set(u,void 0);break;case oe:var V=this.data,F=function(v){return V[v].getItem().setCH(e).parseCH().get()};this.set(M,F(M)).set(W,F(W)).set($,F($)).set(H,F(H)).set(P,F(P))}return this};function N(e,t,i){if(typeof e===S.OBJECT?(Fe(e,!0)?(typeof t===S.OBJECT&&(i=t),t=e):(i=e,t=void 0),e=void 0):typeof e===S.STRING&&!Fe(t,!0)&&(i=t,t=void 0),i)if(typeof i.append===S.FUNCTION){var r={};i.forEach(function(m,k){r[String(k).toLowerCase()]=m}),i=r}else{var o={};for(var s in i)i.hasOwnProperty(s)&&(o[String(s).toLowerCase()]=i[s]);i=o}if(!(this instanceof N))return new N(e,t,i).getResult();var n=typeof e===S.STRING?e:i&&i[dt]?i[dt]:A&&A.userAgent?A.userAgent:ne,h=new Tt(i,!0),p=t?fi(It,t):It,w=function(m){return m==oe?function(){return new Q(m,n,p,h).set("ua",n).set(M,this.getBrowser()).set(W,this.getCPU()).set($,this.getDevice()).set(H,this.getEngine()).set(P,this.getOS()).get()}:function(){return new Q(m,n,p[m],h).parseUA().get()}};return q.call(this,[["getBrowser",w(M)],["getCPU",w(W)],["getDevice",w($)],["getEngine",w(H)],["getOS",w(P)],["getResult",w(oe)],["getUA",function(){return n}],["setUA",function(m){return Se(m)&&(n=Le(m,ni)),this}]]).setUA(n),this}N.VERSION=ri,N.BROWSER=_e([c,u,ge,a]),N.CPU=_e([I]),N.DEVICE=_e([l,d,a,Ee,g,C,x,B,we]),N.ENGINE=N.OS=_e([c,u]);const gi=()=>{const t=new N().getResult();return{os:t.os.name||"unknown",osVersion:t.os.version||"unknown",browser:t.browser.name||"unknown",browserVersion:t.browser.version||"unknown",deviceType:t.device.type||"desktop"}};function wi(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const i=document.implementation.createHTMLDocument(),r=i.createElement("base"),o=i.createElement("a");return i.head.appendChild(r),i.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const mi=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function K(e){const t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i]);return t}let ue=null;function Ot(e={}){return ue||(e.includeStyleProperties?(ue=e.includeStyleProperties,ue):(ue=K(window.getComputedStyle(document.documentElement)),ue))}function De(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function yi(e){const t=De(e,"border-left-width"),i=De(e,"border-right-width");return e.clientWidth+t+i}function xi(e){const t=De(e,"border-top-width"),i=De(e,"border-bottom-width");return e.clientHeight+t+i}function Mt(e,t={}){const i=t.width||yi(e),r=t.height||xi(e);return{width:i,height:r}}function vi(){let e,t;try{t=process}catch{}const i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const D=16384;function ki(e){(e.width>D||e.height>D)&&(e.width>D&&e.height>D?e.width>e.height?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D):e.width>D?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D))}function He(e){return new Promise((t,i)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=i,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Si(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Ci(e,t,i){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${i}`),o.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),o.appendChild(s),s.appendChild(e),Si(o)}const _=(e,t)=>{if(e instanceof t)return!0;const i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||_(i,t)};function Ei(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Ii(e,t){return Ot(t).map(i=>{const r=e.getPropertyValue(i),o=e.getPropertyPriority(i);return`${i}: ${r}${o?" !important":""};`}).join(" ")}function Ti(e,t,i,r){const o=`.${e}:${t}`,s=i.cssText?Ei(i):Ii(i,r);return document.createTextNode(`${o}{${s}}`)}function At(e,t,i,r){const o=window.getComputedStyle(e,i),s=o.getPropertyValue("content");if(s===""||s==="none")return;const n=mi();try{t.className=`${t.className} ${n}`}catch{return}const h=document.createElement("style");h.appendChild(Ti(n,i,o,r)),t.appendChild(h)}function Oi(e,t,i){At(e,t,":before",i),At(e,t,":after",i)}const _t="application/font-woff",Ft="image/jpeg",Mi={woff:_t,woff2:_t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ft,jpeg:Ft,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Ai(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function et(e){const t=Ai(e).toLowerCase();return Mi[t]||""}function _i(e){return e.split(/,/)[1]}function tt(e){return e.search(/^(data:)/)!==-1}function Fi(e,t){return`data:${t};base64,${e}`}async function Lt(e,t,i){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((s,n)=>{const h=new FileReader;h.onerror=n,h.onloadend=()=>{try{s(i({res:r,result:h.result}))}catch(p){n(p)}},h.readAsDataURL(o)})}const it={};function Li(e,t,i){let r=e.replace(/\?.*/,"");return i&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function rt(e,t,i){const r=Li(e,t,i.includeQueryParams);if(it[r]!=null)return it[r];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const s=await Lt(e,i.fetchRequestInit,({res:n,result:h})=>(t||(t=n.headers.get("Content-Type")||""),_i(h)));o=Fi(s,t)}catch(s){o=i.imagePlaceholder||"";let n=`Failed to fetch resource: ${e}`;s&&(n=typeof s=="string"?s:s.message),n&&console.warn(n)}return it[r]=o,o}async function Pi(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):He(t)}async function Di(e,t){if(e.currentSrc){const s=document.createElement("canvas"),n=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,n?.drawImage(e,0,0,s.width,s.height);const h=s.toDataURL();return He(h)}const i=e.poster,r=et(i),o=await rt(i,r,t);return He(o)}async function Hi(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await Ue(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Ui(e,t){return _(e,HTMLCanvasElement)?Pi(e):_(e,HTMLVideoElement)?Di(e,t):_(e,HTMLIFrameElement)?Hi(e,t):e.cloneNode(Pt(e))}const zi=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Pt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function $i(e,t,i){var r,o;if(Pt(t))return t;let s=[];return zi(e)&&e.assignedNodes?s=K(e.assignedNodes()):_(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?s=K(e.contentDocument.body.childNodes):s=K(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),s.length===0||_(e,HTMLVideoElement)||await s.reduce((n,h)=>n.then(()=>Ue(h,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bi(e,t,i){const r=t.style;if(!r)return;const o=window.getComputedStyle(e);o.cssText?(r.cssText=o.cssText,r.transformOrigin=o.transformOrigin):Ot(i).forEach(s=>{let n=o.getPropertyValue(s);s==="font-size"&&n.endsWith("px")&&(n=`${Math.floor(parseFloat(n.substring(0,n.length-2)))-.1}px`),_(e,HTMLIFrameElement)&&s==="display"&&n==="inline"&&(n="block"),s==="d"&&t.getAttribute("d")&&(n=`path(${t.getAttribute("d")})`),r.setProperty(s,n,o.getPropertyPriority(s))})}function Vi(e,t){_(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Wi(e,t){if(_(e,HTMLSelectElement)){const r=Array.from(t.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function qi(e,t,i){return _(t,Element)&&(Bi(e,t,i),Oi(e,t,i),Vi(e,t),Wi(e,t)),t}async function Ni(e,t){const i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;const r={};for(let s=0;s<i.length;s++){const h=i[s].getAttribute("xlink:href");if(h){const p=e.querySelector(h),w=document.querySelector(h);!p&&w&&!r[h]&&(r[h]=await Ue(w,t,!0))}}const o=Object.values(r);if(o.length){const s="http://www.w3.org/1999/xhtml",n=document.createElementNS(s,"svg");n.setAttribute("xmlns",s),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const h=document.createElementNS(s,"defs");n.appendChild(h);for(let p=0;p<o.length;p++)h.appendChild(o[p]);e.appendChild(n)}return e}async function Ue(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>Ui(r,t)).then(r=>$i(e,r,t)).then(r=>qi(e,r,t)).then(r=>Ni(r,t))}const Dt=/url\((['"]?)([^'"]+?)\1\)/g,ji=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Ri=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Gi(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Xi(e){const t=[];return e.replace(Dt,(i,r,o)=>(t.push(o),i)),t.filter(i=>!tt(i))}async function Yi(e,t,i,r,o){try{const s=i?wi(t,i):t,n=et(t);let h;return o||(h=await rt(s,n,r)),e.replace(Gi(t),`$1${h}$3`)}catch{}return e}function Qi(e,{preferredFontFormat:t}){return t?e.replace(Ri,i=>{for(;;){const[r,,o]=ji.exec(i)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function Ht(e){return e.search(Dt)!==-1}async function Ut(e,t,i){if(!Ht(e))return e;const r=Qi(e,i);return Xi(r).reduce((s,n)=>s.then(h=>Yi(h,n,t,i)),Promise.resolve(r))}async function he(e,t,i){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const s=await Ut(o,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Ki(e,t){await he("background",e,t)||await he("background-image",e,t),await he("mask",e,t)||await he("-webkit-mask",e,t)||await he("mask-image",e,t)||await he("-webkit-mask-image",e,t)}async function Ji(e,t){const i=_(e,HTMLImageElement);if(!(i&&!tt(e.src))&&!(_(e,SVGImageElement)&&!tt(e.href.baseVal)))return;const r=i?e.src:e.href.baseVal,o=await rt(r,et(r),t);await new Promise((s,n)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(w){n(w)}}:n;const h=e;h.decode&&(h.decode=s),h.loading==="lazy"&&(h.loading="eager"),i?(e.srcset="",e.src=o):e.href.baseVal=o})}async function Zi(e,t){const r=K(e.childNodes).map(o=>zt(o,t));await Promise.all(r).then(()=>e)}async function zt(e,t){_(e,Element)&&(await Ki(e,t),await Ji(e,t),await Zi(e,t))}function er(e,t){const{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{i[o]=r[o]}),e}const $t={};async function Bt(e){let t=$t[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},$t[e]=t,t}async function Vt(e,t){let i=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async n=>{let h=n.replace(r,"$1");return h.startsWith("https://")||(h=new URL(h,e.url).href),Lt(h,t.fetchRequestInit,({result:p})=>(i=i.replace(n,`url(${p})`),[n,p]))});return Promise.all(s).then(()=>i)}function Wt(e){if(e==null)return[];const t=[],i=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(i,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const p=o.exec(r);if(p===null)break;t.push(p[0])}r=r.replace(o,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,n="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",h=new RegExp(n,"gi");for(;;){let p=s.exec(r);if(p===null){if(p=h.exec(r),p===null)break;s.lastIndex=h.lastIndex}else h.lastIndex=s.lastIndex;t.push(p[0])}return t}async function tr(e,t){const i=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach((s,n)=>{if(s.type===CSSRule.IMPORT_RULE){let h=n+1;const p=s.href,w=Bt(p).then(m=>Vt(m,t)).then(m=>Wt(m).forEach(k=>{try{o.insertRule(k,k.startsWith("@import")?h+=1:o.cssRules.length)}catch(T){console.error("Error inserting rule from remote css",{rule:k,error:T})}})).catch(m=>{console.error("Error loading remote css",m.toString())});r.push(w)}})}catch(s){const n=e.find(h=>h.href==null)||document.styleSheets[0];o.href!=null&&r.push(Bt(o.href).then(h=>Vt(h,t)).then(h=>Wt(h).forEach(p=>{n.insertRule(p,n.cssRules.length)})).catch(h=>{console.error("Error loading remote stylesheet",h)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${o.href}`,s)}}),i))}function ir(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ht(t.style.getPropertyValue("src")))}async function rr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=K(e.ownerDocument.styleSheets),r=await tr(i,t);return ir(r)}function qt(e){return e.trim().replace(/["']/g,"")}function nr(e){const t=new Set;function i(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(s=>{t.add(qt(s))}),Array.from(r.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function or(e,t){const i=await rr(e,t),r=nr(e);return(await Promise.all(i.filter(s=>r.has(qt(s.style.fontFamily))).map(s=>{const n=s.parentStyleSheet?s.parentStyleSheet.href:null;return Ut(s.cssText,n,t)}))).join(`
|
|
2
|
-
`)}async function sr(e,t){const i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await or(e,t);if(i){const r=document.createElement("style"),o=document.createTextNode(i);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function ar(e,t={}){const{width:i,height:r}=Mt(e,t),o=await
|
|
1
|
+
(function(U,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],f):(U=typeof globalThis<"u"?globalThis:U||self,f(U.SupportFeedbackLib={},U.jsxRuntime,U.React))})(this,(function(U,f,y){"use strict";var ri="2.0.7",ni=500,dt="user-agent",ne="",ut="?",S={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},M="browser",W="cpu",$="device",H="engine",P="os",oe="result",c="name",a="type",d="vendor",u="version",I="architecture",ge="major",l="model",Ee="console",g="mobile",x="tablet",C="smarttv",B="wearable",Ie="xr",we="embedded",se="inapp",$e="brands",J="formFactors",Be="fullVersionList",ae="platform",Ve="platformVersion",Te="bitness",G="sec-ch-ua",oi=G+"-full-version-list",si=G+"-arch",ai=G+"-"+Te,li=G+"-form-factors",ci=G+"-"+g,di=G+"-"+l,ht=G+"-"+ae,ui=ht+"-version",ft=[$e,Be,g,l,ae,Ve,I,J,Te],Oe="Amazon",le="Apple",pt="ASUS",bt="BlackBerry",Z="Google",gt="Huawei",We="Lenovo",wt="Honor",Me="LG",qe="Microsoft",Ne="Motorola",mt="Nvidia",yt="OnePlus",je="OPPO",me="Samsung",xt="Sharp",ye="Sony",Re="Xiaomi",Ge="Zebra",vt="Chrome",kt="Chromium",X="Chromecast",Ae="Edge",xe="Firefox",ve="Opera",Xe="Facebook",St="Sogou",ce="Mobile ",ke=" Browser",Ye="Windows",hi=typeof window!==S.UNDEFINED,A=hi&&window.navigator?window.navigator:void 0,ee=A&&A.userAgentData?A.userAgentData:void 0,fi=function(e,t){var i={},r=t;if(!Fe(t)){r={};for(var o in t)for(var s in t[o])r[s]=t[o][s].concat(r[s]?r[s]:[])}for(var n in e)i[n]=r[n]&&r[n].length%2===0?r[n].concat(e[n]):e[n];return i},_e=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Qe=function(e,t){if(typeof e===S.OBJECT&&e.length>0){for(var i in e)if(Y(t)==Y(e[i]))return!0;return!1}return Se(e)?Y(t)==Y(e):!1},Fe=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(t?Fe(e[i]):!1)},Se=function(e){return typeof e===S.STRING},Ke=function(e){if(e){for(var t=[],i=de(/\\?\"/g,e).split(","),r=0;r<i.length;r++)if(i[r].indexOf(";")>-1){var o=Le(i[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Le(i[r]);return t}},Y=function(e){return Se(e)?e.toLowerCase():e},Je=function(e){return Se(e)?de(/[^\d\.]/g,e).split(".")[0]:void 0},q=function(e){for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];typeof i==S.OBJECT&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},de=function(e,t){return Se(t)?t.replace(e,ne):t},Ce=function(e){return de(/\\?\"/g,e)},Le=function(e,t){return e=de(/^\s\s*/,String(e)),typeof t===S.UNDEFINED?e:e.substring(0,t)},Ze=function(e,t){if(!(!e||!t))for(var i=0,r,o,s,n,h,p;i<t.length&&!h;){var w=t[i],m=t[i+1];for(r=o=0;r<w.length&&!h&&w[r];)if(h=w[r++].exec(e),h)for(s=0;s<m.length;s++)p=h[++o],n=m[s],typeof n===S.OBJECT&&n.length>0?n.length===2?typeof n[1]==S.FUNCTION?this[n[0]]=n[1].call(this,p):this[n[0]]=n[1]:n.length>=3&&(typeof n[1]===S.FUNCTION&&!(n[1].exec&&n[1].test)?n.length>3?this[n[0]]=p?n[1].apply(this,n.slice(2)):void 0:this[n[0]]=p?n[1].call(this,p,n[2]):void 0:n.length==3?this[n[0]]=p?p.replace(n[1],n[2]):void 0:n.length==4?this[n[0]]=p?n[3].call(this,p.replace(n[1],n[2])):void 0:n.length>4&&(this[n[0]]=p?n[3].apply(this,[p.replace(n[1],n[2])].concat(n.slice(4))):void 0)):this[n]=p||void 0;i+=2}},z=function(e,t){for(var i in t)if(typeof t[i]===S.OBJECT&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(Qe(t[i][r],e))return i===ut?void 0:i}else if(Qe(t[i],e))return i===ut?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Ct={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Et={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},pi={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},It={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,ce+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[u,[c,Ae+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[u,[c,ve+" GX"]],[/\bopr\/([\w\.]+)/i],[u,[c,ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[u,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[u,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|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|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[c,u],[/quark(?:pc)?\/([-\w\.]+)/i],[u,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[u,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[u,[c,"Smart "+We+ke]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure"+ke],u],[/\bfocus\/([\w\.]+)/i],[u,[c,xe+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI"+ke]],[/fxios\/([\w\.-]+)/i],[u,[c,ce+xe]],[/\bqihoobrowser\/?([\w\.]*)/i],[u,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],u],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+ke],u],[/samsungbrowser\/([\w\.]+)/i],[u,[c,me+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[u,[c,St+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,St+" Mobile"],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,u],[/(lbbrowser|rekonq|steam(?= (clie|tenf|gameo)))/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[u,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,Xe],u,[a,se]],[/(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,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[c,u,[a,se]],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"],[a,se]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[u,[c,"TikTok"],[a,se]],[/\[(linkedin)app\]/i],[c,[a,se]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[c,/(.+)/,"Zalo"],u,[a,se]],[/(chromium)[\/ ]([-\w\.]+)/i],[c,u],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,vt+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[u,[c,Ae+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,vt+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android"+ke]],[/chrome\/([\w\.]+) mobile/i],[u,[c,ce+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[u,[c,ce+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[c,ce+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[c,ce+xe],u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,xe+" 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|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[u,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[u,/[^\d\.]+./,ne]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[I,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[I,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[I,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[I,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[I,"arm"]],[/ sun4\w[;\)]/i],[[I,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[I,/ower/,ne,Y]],[/mc680.0/i],[[I,"68k"]],[/winnt.+\[axp/i],[[I,"alpha"]]],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,[d,me],[a,x]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,me],[a,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[l,[d,le],[a,g]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[l,[d,le],[a,x]],[/(macintosh);/i],[l,[d,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,xt],[a,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,wt],[a,x]],[/honor([-\w ]+)[;\)]/i],[l,[d,wt],[a,g]],[/\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],[l,[d,gt],[a,x]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[l,[d,gt],[a,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Re],[a,x]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Re],[a,g]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,yt],[a,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,je],[a,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,z,{OnePlus:["203","304","403","404","413","415"],"*":je}],[a,x]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[l,[d,"BLU"],[a,g]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[a,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[a,g]],[/(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],[l,[d,We],[a,x]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[l,[d,We],[a,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[l,[d,Ne],[a,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,Ne],[a,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Me],[a,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Me],[a,g]],[/(nokia) (t[12][01])/i],[d,l,[a,x]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[l,/_/g," "],[a,g],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,Z],[a,x]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[l,[d,Z],[a,g]],[/(google) (pixelbook( go)?)/i],[d,l],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,ye],[a,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,ye],[a,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,Oe],[a,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,Oe],[a,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[a,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[l,[d,bt],[a,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,pt],[a,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,pt],[a,g]],[/(nexus 9)/i],[l,[d,"HTC"],[a,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[a,g]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[l,[d,"TCL"],[a,x]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[l,[d,"TCL"],[a,g]],[/(itel) ((\w+))/i],[[d,Y],l,[a,z,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[a,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[a,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[a,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[a,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[a,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[a,g]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[l,[d,"Nothing"],[a,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[a,x]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[a,g]],[/; (n159v)/i],[l,[d,"HMD"],[a,g]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[d,l,[a,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[d,l,[a,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[d,l,[a,x]],[/(surface duo)/i],[l,[d,qe],[a,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[a,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,mt],[a,x]],[/(sprint) (\w+)/i],[d,l,[a,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,qe],[a,g]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,Ge],[a,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,Ge],[a,g]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[d,[a,C]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,me],[a,C]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[d,l,[a,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Me],[a,C]],[/(apple) ?tv/i],[d,[l,le+" TV"],[a,C]],[/crkey.*devicetype\/chromecast/i],[[l,X+" Third Generation"],[d,Z],[a,C]],[/crkey.*devicetype\/([^/]*)/i],[[l,/^/,"Chromecast "],[d,Z],[a,C]],[/fuchsia.*crkey/i],[[l,X+" Nest Hub"],[d,Z],[a,C]],[/crkey/i],[[l,X],[d,Z],[a,C]],[/(portaltv)/i],[l,[d,Xe],[a,C]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,Oe],[a,C]],[/(shield \w+ tv)/i],[l,[d,mt],[a,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,xt],[a,C]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,ye],[a,C]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Re],[a,C]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[a,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,/.+\/(\w+)/,"$1",z,{LG:"lge"}],[l,Le],[a,C]],[/(playstation \w+)/i],[l,[d,ye],[a,Ee]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,qe],[a,Ee]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[d,z,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],l,[a,Ee]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,me],[a,B]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[a,B]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,je],[a,B]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,le],[a,B]],[/(opwwe\d{3})/i],[l,[d,yt],[a,B]],[/(moto 360)/i],[l,[d,Ne],[a,B]],[/(smartwatch 3)/i],[l,[d,ye],[a,B]],[/(g watch r)/i],[l,[d,Me],[a,B]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,Ge],[a,B]],[/droid.+; (glass) \d/i],[l,[d,Z],[a,Ie]],[/(pico) ([\w ]+) os\d/i],[d,l,[a,Ie]],[/(quest( \d| pro)?s?).+vr/i],[l,[d,Xe],[a,Ie]],[/mobile vr; rv.+firefox/i],[[a,Ie]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[a,we]],[/(aeobc)\b/i],[l,[d,Oe],[a,we]],[/(homepod).+mac os/i],[l,[d,le],[a,we]],[/windows iot/i],[[a,we]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[l,[a,C]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[a,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[l,[a,z,{mobile:"Mobile",xr:"VR","*":x}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[a,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[a,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,Ae+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[c,u],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"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],[c,u],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/(windows nt) (6\.[23]); arm/i],[[c,/N/,"R"],[u,z,Ct]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[c,u],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[u,/(;|\))/g,"",z,Ct],[c,Ye]],[/(windows ce)\/?([\d\.]*)/i],[c,u],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[c,"macOS"],[u,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[u,[c,X+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[u,[c,X+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[u,[c,X+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[u,[c,X+" Linux"]],[/crkey\/([\d\.]+)/i],[u,[c,X]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[u,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],u],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[c,u],[/\(bb(10);/i],[u,[c,bt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,xe+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[u,[c,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[u,z,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,"Chrome OS"],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[c,u],[/(sunos) ?([\d\.]*)/i],[[c,"Solaris"],u],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,u]]},Pe=(function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return q.call(e.init,[[M,[c,u,ge,a]],[W,[I]],[$,[a,l,d]],[H,[c,u]],[P,[c,u]]]),q.call(e.isIgnore,[[M,[u,ge]],[H,[u]],[P,[u]]]),q.call(e.isIgnoreRgx,[[M,/ ?browser$/i],[P,/ ?os$/i]]),q.call(e.toString,[[M,[c,u]],[W,[I]],[$,[d,l]],[H,[c,u]],[P,[c,u]]]),e})(),bi=function(e,t){var i=Pe.init[t],r=Pe.isIgnore[t]||0,o=Pe.isIgnoreRgx[t]||0,s=Pe.toString[t]||0;function n(){q.call(this,i)}return n.prototype.getItem=function(){return e},n.prototype.withClientHints=function(){return ee?ee.getHighEntropyValues(ft).then(function(h){return e.setCH(new Tt(h,!1)).parseCH().get()}):e.parseCH().get()},n.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=oe&&(n.prototype.is=function(h){var p=!1;for(var w in this)if(this.hasOwnProperty(w)&&!Qe(r,w)&&Y(o?de(o,this[w]):this[w])==Y(o?de(o,h):h)){if(p=!0,h!=S.UNDEFINED)break}else if(h==S.UNDEFINED&&p){p=!p;break}return p},n.prototype.toString=function(){var h=ne;for(var p in s)typeof this[s[p]]!==S.UNDEFINED&&(h+=(h?" ":ne)+this[s[p]]);return h||S.UNDEFINED}),n.prototype.then=function(h){var p=this,w=function(){for(var k in p)p.hasOwnProperty(k)&&(this[k]=p[k])};w.prototype={is:n.prototype.is,toString:n.prototype.toString,withClientHints:n.prototype.withClientHints,withFeatureCheck:n.prototype.withFeatureCheck};var m=new w;return h(m),m},new n};function Tt(e,t){if(e=e||{},q.call(this,ft),t)q.call(this,[[$e,Ke(e[G])],[Be,Ke(e[oi])],[g,/\?1/.test(e[ci])],[l,Ce(e[di])],[ae,Ce(e[ht])],[Ve,Ce(e[ui])],[I,Ce(e[si])],[J,Ke(e[li])],[Te,Ce(e[ai])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==S.UNDEFINED&&(this[i]=e[i])}function Q(e,t,i,r){return q.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",i],["data",bi(this,e)]]),this}Q.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},Q.prototype.set=function(e,t){return this.data[e]=t,this},Q.prototype.setCH=function(e){return this.uaCH=e,this},Q.prototype.detectFeature=function(){if(A&&A.userAgent==this.ua)switch(this.itemType){case M:A.brave&&typeof A.brave.isBrave==S.FUNCTION&&this.set(c,"Brave");break;case $:!this.get(a)&&ee&&ee[g]&&this.set(a,g),this.get(l)=="Macintosh"&&A&&typeof A.standalone!==S.UNDEFINED&&A.maxTouchPoints&&A.maxTouchPoints>2&&this.set(l,"iPad").set(a,x);break;case P:!this.get(c)&&ee&&ee[ae]&&this.set(c,ee[ae]);break;case oe:var e=this.data,t=function(i){return e[i].getItem().detectFeature().get()};this.set(M,t(M)).set(W,t(W)).set($,t($)).set(H,t(H)).set(P,t(P))}return this},Q.prototype.parseUA=function(){switch(this.itemType!=oe&&Ze.call(this.data,this.ua,this.rgxMap),this.itemType){case M:this.set(ge,Je(this.get(u)));break;case P:if(this.get(c)=="iOS"&&this.get(u)=="18.6"){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(u,e[1])}break}return this},Q.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case M:case H:var i=e[Be]||e[$e],r;if(i)for(var o=0;o<i.length;o++){var s=i[o].brand||i[o],n=i[o].version;this.itemType==M&&!/not.a.brand/i.test(s)&&(!r||/Chrom/.test(r)&&s!=kt||r==Ae&&/WebView2/.test(s))&&(s=z(s,pi),r=this.get(c),r&&!/Chrom/.test(r)&&/Chrom/.test(s)||this.set(c,s).set(u,n).set(ge,Je(n)),r=s),this.itemType==H&&s==kt&&this.set(u,n)}break;case W:var h=e[I];h&&(h&&e[Te]=="64"&&(h+="64"),Ze.call(this.data,h+";",t));break;case $:if(e[g]&&this.set(a,g),e[l]&&(this.set(l,e[l]),!this.get(a)||!this.get(d))){var p={};Ze.call(p,"droid 9; "+e[l]+")",t),!this.get(a)&&p.type&&this.set(a,p.type),!this.get(d)&&p.vendor&&this.set(d,p.vendor)}if(e[J]){var w;if(typeof e[J]!="string")for(var m=0;!w&&m<e[J].length;)w=z(e[J][m++],Et);else w=z(e[J],Et);this.set(a,w)}break;case P:var k=e[ae];if(k){var T=e[Ve];k==Ye&&(T=parseInt(Je(T),10)>=13?"11":"10"),this.set(c,k).set(u,T)}this.get(c)==Ye&&e[l]=="Xbox"&&this.set(c,"Xbox").set(u,void 0);break;case oe:var V=this.data,F=function(v){return V[v].getItem().setCH(e).parseCH().get()};this.set(M,F(M)).set(W,F(W)).set($,F($)).set(H,F(H)).set(P,F(P))}return this};function N(e,t,i){if(typeof e===S.OBJECT?(Fe(e,!0)?(typeof t===S.OBJECT&&(i=t),t=e):(i=e,t=void 0),e=void 0):typeof e===S.STRING&&!Fe(t,!0)&&(i=t,t=void 0),i)if(typeof i.append===S.FUNCTION){var r={};i.forEach(function(m,k){r[String(k).toLowerCase()]=m}),i=r}else{var o={};for(var s in i)i.hasOwnProperty(s)&&(o[String(s).toLowerCase()]=i[s]);i=o}if(!(this instanceof N))return new N(e,t,i).getResult();var n=typeof e===S.STRING?e:i&&i[dt]?i[dt]:A&&A.userAgent?A.userAgent:ne,h=new Tt(i,!0),p=t?fi(It,t):It,w=function(m){return m==oe?function(){return new Q(m,n,p,h).set("ua",n).set(M,this.getBrowser()).set(W,this.getCPU()).set($,this.getDevice()).set(H,this.getEngine()).set(P,this.getOS()).get()}:function(){return new Q(m,n,p[m],h).parseUA().get()}};return q.call(this,[["getBrowser",w(M)],["getCPU",w(W)],["getDevice",w($)],["getEngine",w(H)],["getOS",w(P)],["getResult",w(oe)],["getUA",function(){return n}],["setUA",function(m){return Se(m)&&(n=Le(m,ni)),this}]]).setUA(n),this}N.VERSION=ri,N.BROWSER=_e([c,u,ge,a]),N.CPU=_e([I]),N.DEVICE=_e([l,d,a,Ee,g,C,x,B,we]),N.ENGINE=N.OS=_e([c,u]);const gi=()=>{const t=new N().getResult();return{os:t.os.name||"unknown",osVersion:t.os.version||"unknown",browser:t.browser.name||"unknown",browserVersion:t.browser.version||"unknown",deviceType:t.device.type||"desktop"}};function wi(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const i=document.implementation.createHTMLDocument(),r=i.createElement("base"),o=i.createElement("a");return i.head.appendChild(r),i.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const mi=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function K(e){const t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i]);return t}let ue=null;function Ot(e={}){return ue||(e.includeStyleProperties?(ue=e.includeStyleProperties,ue):(ue=K(window.getComputedStyle(document.documentElement)),ue))}function De(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function yi(e){const t=De(e,"border-left-width"),i=De(e,"border-right-width");return e.clientWidth+t+i}function xi(e){const t=De(e,"border-top-width"),i=De(e,"border-bottom-width");return e.clientHeight+t+i}function Mt(e,t={}){const i=t.width||yi(e),r=t.height||xi(e);return{width:i,height:r}}function vi(){let e,t;try{t=process}catch{}const i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const D=16384;function ki(e){(e.width>D||e.height>D)&&(e.width>D&&e.height>D?e.width>e.height?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D):e.width>D?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D))}function He(e){return new Promise((t,i)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=i,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Si(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Ci(e,t,i){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${i}`),o.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),o.appendChild(s),s.appendChild(e),Si(o)}const _=(e,t)=>{if(e instanceof t)return!0;const i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||_(i,t)};function Ei(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Ii(e,t){return Ot(t).map(i=>{const r=e.getPropertyValue(i),o=e.getPropertyPriority(i);return`${i}: ${r}${o?" !important":""};`}).join(" ")}function Ti(e,t,i,r){const o=`.${e}:${t}`,s=i.cssText?Ei(i):Ii(i,r);return document.createTextNode(`${o}{${s}}`)}function At(e,t,i,r){const o=window.getComputedStyle(e,i),s=o.getPropertyValue("content");if(s===""||s==="none")return;const n=mi();try{t.className=`${t.className} ${n}`}catch{return}const h=document.createElement("style");h.appendChild(Ti(n,i,o,r)),t.appendChild(h)}function Oi(e,t,i){At(e,t,":before",i),At(e,t,":after",i)}const _t="application/font-woff",Ft="image/jpeg",Mi={woff:_t,woff2:_t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ft,jpeg:Ft,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Ai(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function et(e){const t=Ai(e).toLowerCase();return Mi[t]||""}function _i(e){return e.split(/,/)[1]}function tt(e){return e.search(/^(data:)/)!==-1}function Fi(e,t){return`data:${t};base64,${e}`}async function Lt(e,t,i){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((s,n)=>{const h=new FileReader;h.onerror=n,h.onloadend=()=>{try{s(i({res:r,result:h.result}))}catch(p){n(p)}},h.readAsDataURL(o)})}const it={};function Li(e,t,i){let r=e.replace(/\?.*/,"");return i&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function rt(e,t,i){const r=Li(e,t,i.includeQueryParams);if(it[r]!=null)return it[r];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const s=await Lt(e,i.fetchRequestInit,({res:n,result:h})=>(t||(t=n.headers.get("Content-Type")||""),_i(h)));o=Fi(s,t)}catch(s){o=i.imagePlaceholder||"";let n=`Failed to fetch resource: ${e}`;s&&(n=typeof s=="string"?s:s.message),n&&console.warn(n)}return it[r]=o,o}async function Pi(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):He(t)}async function Di(e,t){if(e.currentSrc){const s=document.createElement("canvas"),n=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,n?.drawImage(e,0,0,s.width,s.height);const h=s.toDataURL();return He(h)}const i=e.poster,r=et(i),o=await rt(i,r,t);return He(o)}async function Hi(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await ze(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function zi(e,t){return _(e,HTMLCanvasElement)?Pi(e):_(e,HTMLVideoElement)?Di(e,t):_(e,HTMLIFrameElement)?Hi(e,t):e.cloneNode(Pt(e))}const Ui=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Pt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function $i(e,t,i){var r,o;if(Pt(t))return t;let s=[];return Ui(e)&&e.assignedNodes?s=K(e.assignedNodes()):_(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?s=K(e.contentDocument.body.childNodes):s=K(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),s.length===0||_(e,HTMLVideoElement)||await s.reduce((n,h)=>n.then(()=>ze(h,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bi(e,t,i){const r=t.style;if(!r)return;const o=window.getComputedStyle(e);o.cssText?(r.cssText=o.cssText,r.transformOrigin=o.transformOrigin):Ot(i).forEach(s=>{let n=o.getPropertyValue(s);s==="font-size"&&n.endsWith("px")&&(n=`${Math.floor(parseFloat(n.substring(0,n.length-2)))-.1}px`),_(e,HTMLIFrameElement)&&s==="display"&&n==="inline"&&(n="block"),s==="d"&&t.getAttribute("d")&&(n=`path(${t.getAttribute("d")})`),r.setProperty(s,n,o.getPropertyPriority(s))})}function Vi(e,t){_(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Wi(e,t){if(_(e,HTMLSelectElement)){const r=Array.from(t.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function qi(e,t,i){return _(t,Element)&&(Bi(e,t,i),Oi(e,t,i),Vi(e,t),Wi(e,t)),t}async function Ni(e,t){const i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;const r={};for(let s=0;s<i.length;s++){const h=i[s].getAttribute("xlink:href");if(h){const p=e.querySelector(h),w=document.querySelector(h);!p&&w&&!r[h]&&(r[h]=await ze(w,t,!0))}}const o=Object.values(r);if(o.length){const s="http://www.w3.org/1999/xhtml",n=document.createElementNS(s,"svg");n.setAttribute("xmlns",s),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const h=document.createElementNS(s,"defs");n.appendChild(h);for(let p=0;p<o.length;p++)h.appendChild(o[p]);e.appendChild(n)}return e}async function ze(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>zi(r,t)).then(r=>$i(e,r,t)).then(r=>qi(e,r,t)).then(r=>Ni(r,t))}const Dt=/url\((['"]?)([^'"]+?)\1\)/g,ji=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Ri=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Gi(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Xi(e){const t=[];return e.replace(Dt,(i,r,o)=>(t.push(o),i)),t.filter(i=>!tt(i))}async function Yi(e,t,i,r,o){try{const s=i?wi(t,i):t,n=et(t);let h;return o||(h=await rt(s,n,r)),e.replace(Gi(t),`$1${h}$3`)}catch{}return e}function Qi(e,{preferredFontFormat:t}){return t?e.replace(Ri,i=>{for(;;){const[r,,o]=ji.exec(i)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function Ht(e){return e.search(Dt)!==-1}async function zt(e,t,i){if(!Ht(e))return e;const r=Qi(e,i);return Xi(r).reduce((s,n)=>s.then(h=>Yi(h,n,t,i)),Promise.resolve(r))}async function he(e,t,i){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const s=await zt(o,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Ki(e,t){await he("background",e,t)||await he("background-image",e,t),await he("mask",e,t)||await he("-webkit-mask",e,t)||await he("mask-image",e,t)||await he("-webkit-mask-image",e,t)}async function Ji(e,t){const i=_(e,HTMLImageElement);if(!(i&&!tt(e.src))&&!(_(e,SVGImageElement)&&!tt(e.href.baseVal)))return;const r=i?e.src:e.href.baseVal,o=await rt(r,et(r),t);await new Promise((s,n)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(w){n(w)}}:n;const h=e;h.decode&&(h.decode=s),h.loading==="lazy"&&(h.loading="eager"),i?(e.srcset="",e.src=o):e.href.baseVal=o})}async function Zi(e,t){const r=K(e.childNodes).map(o=>Ut(o,t));await Promise.all(r).then(()=>e)}async function Ut(e,t){_(e,Element)&&(await Ki(e,t),await Ji(e,t),await Zi(e,t))}function er(e,t){const{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{i[o]=r[o]}),e}const $t={};async function Bt(e){let t=$t[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},$t[e]=t,t}async function Vt(e,t){let i=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async n=>{let h=n.replace(r,"$1");return h.startsWith("https://")||(h=new URL(h,e.url).href),Lt(h,t.fetchRequestInit,({result:p})=>(i=i.replace(n,`url(${p})`),[n,p]))});return Promise.all(s).then(()=>i)}function Wt(e){if(e==null)return[];const t=[],i=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(i,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const p=o.exec(r);if(p===null)break;t.push(p[0])}r=r.replace(o,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,n="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",h=new RegExp(n,"gi");for(;;){let p=s.exec(r);if(p===null){if(p=h.exec(r),p===null)break;s.lastIndex=h.lastIndex}else h.lastIndex=s.lastIndex;t.push(p[0])}return t}async function tr(e,t){const i=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach((s,n)=>{if(s.type===CSSRule.IMPORT_RULE){let h=n+1;const p=s.href,w=Bt(p).then(m=>Vt(m,t)).then(m=>Wt(m).forEach(k=>{try{o.insertRule(k,k.startsWith("@import")?h+=1:o.cssRules.length)}catch(T){console.error("Error inserting rule from remote css",{rule:k,error:T})}})).catch(m=>{console.error("Error loading remote css",m.toString())});r.push(w)}})}catch(s){const n=e.find(h=>h.href==null)||document.styleSheets[0];o.href!=null&&r.push(Bt(o.href).then(h=>Vt(h,t)).then(h=>Wt(h).forEach(p=>{n.insertRule(p,n.cssRules.length)})).catch(h=>{console.error("Error loading remote stylesheet",h)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${o.href}`,s)}}),i))}function ir(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ht(t.style.getPropertyValue("src")))}async function rr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=K(e.ownerDocument.styleSheets),r=await tr(i,t);return ir(r)}function qt(e){return e.trim().replace(/["']/g,"")}function nr(e){const t=new Set;function i(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(s=>{t.add(qt(s))}),Array.from(r.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function or(e,t){const i=await rr(e,t),r=nr(e);return(await Promise.all(i.filter(s=>r.has(qt(s.style.fontFamily))).map(s=>{const n=s.parentStyleSheet?s.parentStyleSheet.href:null;return zt(s.cssText,n,t)}))).join(`
|
|
2
|
+
`)}async function sr(e,t){const i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await or(e,t);if(i){const r=document.createElement("style"),o=document.createTextNode(i);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function ar(e,t={}){const{width:i,height:r}=Mt(e,t),o=await ze(e,t,!0);return await sr(o,t),await Ut(o,t),er(o,t),await Ci(o,i,r)}async function lr(e,t={}){const{width:i,height:r}=Mt(e,t),o=await ar(e,t),s=await He(o),n=document.createElement("canvas"),h=n.getContext("2d"),p=t.pixelRatio||vi(),w=t.canvasWidth||i,m=t.canvasHeight||r;return n.width=w*p,n.height=m*p,t.skipAutoScale||ki(n),n.style.width=`${w}`,n.style.height=`${m}`,t.backgroundColor&&(h.fillStyle=t.backgroundColor,h.fillRect(0,0,n.width,n.height)),h.drawImage(s,0,0,n.width,n.height),n}async function cr(e,t={}){return(await lr(e,t)).toDataURL()}const dr=async e=>{try{const t=document.documentElement,i=e?e.x:0,r=e?e.y:0,o=e?e.width:window.innerWidth,s=e?e.height:window.innerHeight,n=t.getBoundingClientRect(),h=window.getComputedStyle(t),p=parseFloat(h.marginLeft)||0,w=parseFloat(h.marginTop)||0,m=i-n.left+p,k=r-n.top+w;return await cr(t,{quality:.9,pixelRatio:1,cacheBust:!0,skipAutoScale:!0,width:o,height:s,canvasWidth:o,canvasHeight:s,style:{transform:`translate(${-m}px, ${-k}px)`}})}catch(t){return console.error("Screenshot capture failed:",t),null}};const ur=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,r)=>r?r.toUpperCase():i.toLowerCase()),Nt=e=>{const t=hr(e);return t.charAt(0).toUpperCase()+t.slice(1)},jt=(...e)=>e.filter((t,i,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===i).join(" ").trim(),fr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var pr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const br=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:n,...h},p)=>y.createElement("svg",{ref:p,...pr,width:t,height:t,stroke:e,strokeWidth:r?Number(i)*24/Number(t):i,className:jt("lucide",o),...!s&&!fr(h)&&{"aria-hidden":"true"},...h},[...n.map(([w,m])=>y.createElement(w,m)),...Array.isArray(s)?s:[s]]));const te=(e,t)=>{const i=y.forwardRef(({className:r,...o},s)=>y.createElement(br,{ref:s,iconNode:t,className:jt(`lucide-${ur(Nt(e))}`,`lucide-${e}`,r),...o}));return i.displayName=Nt(e),i};const gr=te("crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);const Rt=te("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const wr=te("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const mr=te("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const yr=te("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const xr=te("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);const Gt=te("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),vr=({onConfirm:e,onCancel:t})=>{const[i,r]=y.useState(!1),[o,s]=y.useState({x:0,y:0}),[n,h]=y.useState({x:0,y:0}),p=v=>{r(!0),s({x:v.clientX,y:v.clientY}),h({x:v.clientX,y:v.clientY})},w=v=>{i&&h({x:v.clientX,y:v.clientY})},m=()=>{F()},k=v=>{if(v.touches.length===1){r(!0);const O=v.touches[0];s({x:O.clientX,y:O.clientY}),h({x:O.clientX,y:O.clientY}),document.body.style.overflow="hidden"}},T=v=>{if(i&&v.touches.length===1){const O=v.touches[0];h({x:O.clientX,y:O.clientY})}},V=()=>{F(),document.body.style.overflow=""},F=()=>{if(i){r(!1);const v=Math.min(o.x,n.x),O=Math.min(o.y,n.y),j=Math.abs(n.x-o.x),ie=Math.abs(n.y-o.y);j>10&&ie>10&&e({x:v,y:O,width:j,height:ie})}};return y.useEffect(()=>{const v=O=>{O.key==="Escape"&&t()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[t]),f.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99999,cursor:"crosshair",userSelect:"none"},onMouseDown:p,onMouseMove:w,onMouseUp:m,onTouchStart:k,onTouchMove:T,onTouchEnd:V,children:[f.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)"}}),!i&&f.jsx("div",{style:{position:"absolute",top:"20px",left:"50%",transform:"translateX(-50%)",background:"rgba(0,0,0,0.8)",color:"white",padding:"8px 16px",borderRadius:"20px",pointerEvents:"none",fontSize:"14px"},children:"Kéo chuột hoặc chạm để chọn vùng chụp ảnh (ESC để hủy)"}),i&&f.jsx("div",{style:{position:"absolute",left:Math.min(o.x,n.x),top:Math.min(o.y,n.y),width:Math.abs(n.x-o.x),height:Math.abs(n.y-o.y),border:"2px solid #fff",backgroundColor:"rgba(255, 255, 255, 0.1)",boxShadow:"0 0 0 9999px rgba(0, 0, 0, 0.5)"}})]})},Xt=({questionId:e,questionIdChild:t,contextData:i,onSubmit:r,themeColor:o="#3b82f6",triggerComponent:s,isOpen:n,onOpen:h,onClose:p})=>{const[w,m]=y.useState(!1),[k,T]=y.useState(""),[V,F]=y.useState(e),[v,O]=y.useState(t||""),[j,ie]=y.useState([]),[nt,ot]=y.useState(null),[Cr,Qt]=y.useState(!1),[re,Kt]=y.useState(!1),[Jt,Ue]=y.useState(!1),[R,fe]=y.useState(null),[L,pe]=y.useState({}),[Zt,st]=y.useState("incorrect_content"),[Er,at]=y.useState(!1),lt=n!==void 0?n:w,Ir=lt&&!Er;y.useEffect(()=>{lt&&(pe({}),F(e),O(t||""))},[lt,e,t]);const Tr=()=>{ie([]),T(""),F(e),O(t||""),st("incorrect_content"),pe({}),n===void 0&&m(!0)},ei=async b=>{if(j.length>=3){alert("Bạn chỉ có thể chụp tối đa 3 ảnh.");return}if(at(!0),b==="crop"){setTimeout(()=>Ue(!0),150);return}setTimeout(async()=>{await ti()},150)},ti=async b=>{Qt(!0);try{const E=await dr(b);E?ie(be=>[...be,E]):alert("Không thể chụp ảnh màn hình. Vui lòng thử lại.")}catch(E){console.error(E)}finally{Qt(!1),at(!1)}},Or=b=>{Ue(!1),ti(b)},Mr=()=>{Ue(!1),at(!1)},Ar=b=>{ie(E=>E.filter((be,ii)=>ii!==b))},ct=()=>{p&&p(),m(!1),ie([]),Ue(!1),ot(null),T(""),pe({}),st("incorrect_content")},_r=async()=>{const b={};if(V?isNaN(Number(V))&&(b.questionId="ID câu hỏi phải là số"):b.questionId="Vui lòng nhập ID câu hỏi",v&&isNaN(Number(v))&&(b.questionIdChild="ID câu hỏi con phải là số"),k.trim()||(b.description="Vui lòng nhập mô tả lỗi"),Object.keys(b).length>0){pe(b);return}Kt(!0);try{const E=gi(),be=await Promise.all(j.map(async Fr=>(await(await fetch("https://lcms.icanwork.vn/api/upload-to-s3/upload-image-error-to-s3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({base64:Fr})})).json()).file_url));await r({idQuestion:V,idChildQuestion:v,errorType:Zt,errorDescription:k,listImage:be,deviceInfo:E,contextData:i}),ct()}catch(E){console.error("Submit feedback failed",E)}finally{Kt(!1)}};return f.jsxs(f.Fragment,{children:[f.jsx("style",{id:"feedback-widget-styles",children:`
|
|
3
3
|
@keyframes fb-fade-in {
|
|
4
4
|
from { opacity: 0; transform: translateY(10px); }
|
|
5
5
|
to { opacity: 1; transform: translateY(0); }
|
|
@@ -42,4 +42,9 @@
|
|
|
42
42
|
height: 44px !important;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`}),Jt&&f.jsx(vr,{onConfirm:Or,onCancel:Mr}),nt&&f.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.8)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",cursor:"zoom-out",animation:"fb-fade-in 0.2s ease-out",backdropFilter:"blur(4px)"},onClick:()=>ot(null),children:f.jsx("img",{src:nt,alt:"Zoomed",draggable:!1,onContextMenu:b=>b.preventDefault(),style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:"8px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",backgroundColor:"white",userSelect:"none",WebkitUserSelect:"none"}})}),f.jsx("div",{onClick:()=>{n===void 0?Tr():h&&h()},style:{cursor:"pointer",display:"inline-block"},children:s||f.jsx("button",{className:"fb-widget-trigger",style:{position:"fixed",bottom:"24px",right:"24px",backgroundColor:o,color:"white",border:"none",borderRadius:"50%",width:"48px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer",zIndex:9990,transition:"transform 0.2s"},title:"Báo lỗi",onMouseEnter:b=>b.currentTarget.style.transform="scale(1.1)",onMouseLeave:b=>b.currentTarget.style.transform="scale(1)",children:f.jsx(mr,{size:24})})}),Cr&&f.jsx("div",{style:{position:"fixed",top:20,right:20,background:"rgba(0,0,0,0.8)",color:"white",padding:"8px 12px",borderRadius:"8px",zIndex:1e4,fontWeight:500,backdropFilter:"blur(4px)",fontSize:"0.8rem"},children:"Đang chụp..."}),Ir&&!Jt&&!nt&&f.jsxs("div",{className:"fb-widget-modal",children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx("h2",{style:{margin:0,fontSize:"1rem",fontWeight:700,color:"#111827"},children:"Báo lỗi"}),f.jsx("button",{onClick:ct,style:{background:"transparent",border:"none",cursor:"pointer",color:"#6b7280",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:b=>b.currentTarget.style.backgroundColor="transparent",children:f.jsx(Gt,{size:18})})]}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["ID Câu hỏi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="id"?o:L.questionId?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:V,onFocus:()=>fe("id"),onBlur:()=>fe(null),onChange:b=>{F(b.target.value),L.questionId&&pe(E=>({...E,questionId:void 0}))},disabled:!!e,placeholder:"Nhập ID (ví dụ: 101)",style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionId?"#ef4444":R==="id"?o:"#e5e7eb"}`,boxShadow:R==="id"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionId&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionId})]}),f.jsxs("div",{children:[f.jsx("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:"ID Câu hỏi con"}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="idChild"?o:L.questionIdChild?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:v,onFocus:()=>fe("idChild"),onBlur:()=>fe(null),onChange:b=>{O(b.target.value)},placeholder:"Nhập ID (ví dụ: 101)",disabled:!!t,style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionIdChild?"#ef4444":R==="idChild"?o:"#e5e7eb"}`,boxShadow:R==="idChild"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionIdChild&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionIdChild})]}),f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Loại lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("select",{value:Zt,onChange:b=>st(b.target.value),style:{width:"100%",padding:"6px 10px",borderRadius:"6px",border:"1px solid #e5e7eb",backgroundColor:"#f9fafb",fontSize:"0.85rem",color:"#1f2937",outline:"none",cursor:"pointer",appearance:"none",backgroundImage:`url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 10px center",backgroundSize:"14px"},children:[f.jsx("option",{value:"incorrect_content",children:"Lỗi nội dung"}),f.jsx("option",{value:"display_error",children:"Lỗi hiển thị"}),f.jsx("option",{value:"missing_data",children:"Thiếu thông tin"}),f.jsx("option",{value:"technical_issue",children:"Lỗi kỹ thuật"}),f.jsx("option",{value:"other",children:"Khác"})]})]}),f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Mô tả lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("div",{style:{position:"relative"},children:[f.jsx("div",{style:{position:"absolute",left:"10px",top:"8px",pointerEvents:"none"},children:f.jsx(xr,{size:12,style:{color:R==="desc"?o:L.description?"#ef4444":"#9ca3af",transition:"color 0.2s"}})}),f.jsx("textarea",{value:k,onFocus:()=>fe("desc"),onBlur:()=>fe(null),onChange:b=>{T(b.target.value),L.description&&pe(E=>({...E,description:void 0}))},maxLength:1e3,placeholder:"Mô tả chi tiết...",style:{width:"100%",minHeight:"60px",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.description?"#ef4444":R==="desc"?o:"#e5e7eb"}`,boxShadow:R==="desc"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",resize:"vertical",boxSizing:"border-box",transition:"all 0.2s",backgroundColor:"#f9fafb",lineHeight:"1.4",fontFamily:"inherit"}})]}),L.description&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.description})]})]}),f.jsxs("div",{style:{marginBottom:"2px"},children:[f.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:f.jsxs("label",{style:{fontWeight:600,fontSize:"0.8rem",color:"#374151"},children:["Ảnh chụp (",j.length,"/3)"]})}),j.length>0&&f.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",marginBottom:"8px"},children:j.map((b,E)=>f.jsxs("div",{style:{position:"relative",aspectRatio:"16/9",border:"1px solid #e5e7eb",borderRadius:"6px",overflow:"hidden",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[f.jsx("img",{src:b,alt:`Screenshot ${E+1}`,draggable:!1,onContextMenu:be=>be.preventDefault(),style:{width:"100%",height:"100%",objectFit:"cover",cursor:"zoom-in",transition:"transform 0.2s",userSelect:"none",WebkitUserSelect:"none"},onClick:()=>ot(b)}),f.jsx("button",{onClick:()=>Ar(E),title:"Xóa ảnh",style:{position:"absolute",top:"2px",right:"2px",background:"rgba(239, 68, 68, 0.9)",color:"white",border:"none",borderRadius:"50%",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0,boxShadow:"0 1px 2px rgba(0,0,0,0.2)"},children:f.jsx(Gt,{size:10})})]},E))}),j.length<3&&f.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f.jsxs("button",{onClick:()=>ei("full"),style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(yr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Toàn màn hình"})]}),f.jsxs("button",{onClick:()=>ei("crop"),style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(gr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Chọn vùng"})]})]})]}),f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"auto",paddingTop:"8px",borderTop:"1px solid #f3f4f6"},children:[f.jsx("button",{onClick:ct,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"1px solid #d1d5db",background:"white",cursor:"pointer",color:"#374151",fontWeight:500,fontSize:"0.85rem",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.background="#f9fafb",onMouseLeave:b=>b.currentTarget.style.background="white",children:"Hủy bỏ"}),f.jsx("button",{onClick:_r,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"none",background:o,color:"white",cursor:re?"not-allowed":"pointer",fontWeight:600,fontSize:"0.85rem",opacity:re?.7:1,boxShadow:"0 2px 4px -1px rgba(0, 0, 0, 0.1)",transition:"transform 0.1s, opacity 0.2s"},onMouseDown:b=>!re&&(b.currentTarget.style.transform="scale(0.98)"),onMouseUp:b=>!re&&(b.currentTarget.style.transform="scale(1)"),children:re?f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f.jsx(wr,{size:16,style:{animation:"fb-spin 1s linear infinite"}}),f.jsx("span",{children:"Đang gửi..."})]}):"Gửi báo lỗi"})]})]})]})},Yt=y.createContext(void 0),kr=()=>{const e=y.useContext(Yt);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e},Sr=({children:e,onSubmit:t,themeColor:i})=>{const[r,o]=y.useState(!1),[s,n]=y.useState(null),[h,p]=y.useState(""),[w,m]=y.useState(void 0),k=(V,F,v)=>{n(V),p(F||""),m(v),o(!0)},T=()=>{o(!1)};return f.jsxs(Yt.Provider,{value:{openFeedback:k,closeFeedback:T,isOpen:r,activeQuestionId:s},children:[e,s&&f.jsx(Xt,{questionId:s,questionIdChild:h,contextData:w,onSubmit:t,themeColor:i,isOpen:r,onClose:T,triggerComponent:f.jsx(f.Fragment,{})})]})};z.FeedbackProvider=Sr,z.FeedbackWidget=Xt,z.useFeedback=kr,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
|
|
45
|
+
@media (max-width: 767px) {
|
|
46
|
+
.fb-btn-crop {
|
|
47
|
+
display: none !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
`}),Jt&&f.jsx(vr,{onConfirm:Or,onCancel:Mr}),nt&&f.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.8)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",cursor:"zoom-out",animation:"fb-fade-in 0.2s ease-out",backdropFilter:"blur(4px)"},onClick:()=>ot(null),children:f.jsx("img",{src:nt,alt:"Zoomed",draggable:!1,onContextMenu:b=>b.preventDefault(),style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:"8px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",backgroundColor:"white",userSelect:"none",WebkitUserSelect:"none"}})}),f.jsx("div",{onClick:()=>{n===void 0?Tr():h&&h()},style:{cursor:"pointer",display:"inline-block"},children:s||f.jsx("button",{className:"fb-widget-trigger",style:{position:"fixed",bottom:"24px",right:"24px",backgroundColor:o,color:"white",border:"none",borderRadius:"50%",width:"48px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer",zIndex:9990,transition:"transform 0.2s"},title:"Báo lỗi",onMouseEnter:b=>b.currentTarget.style.transform="scale(1.1)",onMouseLeave:b=>b.currentTarget.style.transform="scale(1)",children:f.jsx(mr,{size:24})})}),Cr&&f.jsx("div",{style:{position:"fixed",top:20,right:20,background:"rgba(0,0,0,0.8)",color:"white",padding:"8px 12px",borderRadius:"8px",zIndex:1e4,fontWeight:500,backdropFilter:"blur(4px)",fontSize:"0.8rem"},children:"Đang chụp..."}),Ir&&!Jt&&!nt&&f.jsxs("div",{className:"fb-widget-modal",children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx("h2",{style:{margin:0,fontSize:"1rem",fontWeight:700,color:"#111827"},children:"Báo lỗi"}),f.jsx("button",{onClick:ct,style:{background:"transparent",border:"none",cursor:"pointer",color:"#6b7280",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:b=>b.currentTarget.style.backgroundColor="transparent",children:f.jsx(Gt,{size:18})})]}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["ID Câu hỏi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="id"?o:L.questionId?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:V,onFocus:()=>fe("id"),onBlur:()=>fe(null),onChange:b=>{F(b.target.value),L.questionId&&pe(E=>({...E,questionId:void 0}))},disabled:!!e,placeholder:"Nhập ID (ví dụ: 101)",style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionId?"#ef4444":R==="id"?o:"#e5e7eb"}`,boxShadow:R==="id"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionId&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionId})]}),f.jsxs("div",{children:[f.jsx("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:"ID Câu hỏi con"}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="idChild"?o:L.questionIdChild?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:v,onFocus:()=>fe("idChild"),onBlur:()=>fe(null),onChange:b=>{O(b.target.value)},placeholder:"Nhập ID (ví dụ: 101)",disabled:!!t,style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionIdChild?"#ef4444":R==="idChild"?o:"#e5e7eb"}`,boxShadow:R==="idChild"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionIdChild&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionIdChild})]}),f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Loại lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("select",{value:Zt,onChange:b=>st(b.target.value),style:{width:"100%",padding:"6px 10px",borderRadius:"6px",border:"1px solid #e5e7eb",backgroundColor:"#f9fafb",fontSize:"0.85rem",color:"#1f2937",outline:"none",cursor:"pointer",appearance:"none",backgroundImage:`url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 10px center",backgroundSize:"14px"},children:[f.jsx("option",{value:"incorrect_content",children:"Lỗi nội dung"}),f.jsx("option",{value:"display_error",children:"Lỗi hiển thị"}),f.jsx("option",{value:"missing_data",children:"Thiếu thông tin"}),f.jsx("option",{value:"technical_issue",children:"Lỗi kỹ thuật"}),f.jsx("option",{value:"other",children:"Khác"})]})]}),f.jsxs("div",{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"2px"},children:[f.jsxs("label",{style:{fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Mô tả lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("span",{style:{fontSize:"0.7rem",color:"#9ca3af"},children:[k.length,"/1000"]})]}),f.jsxs("div",{style:{position:"relative"},children:[f.jsx("div",{style:{position:"absolute",left:"10px",top:"8px",pointerEvents:"none"},children:f.jsx(xr,{size:12,style:{color:R==="desc"?o:L.description?"#ef4444":"#9ca3af",transition:"color 0.2s"}})}),f.jsx("textarea",{value:k,onFocus:()=>fe("desc"),onBlur:()=>fe(null),onChange:b=>{T(b.target.value),L.description&&pe(E=>({...E,description:void 0}))},maxLength:1e3,placeholder:"Mô tả chi tiết...",style:{width:"100%",minHeight:"60px",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.description?"#ef4444":R==="desc"?o:"#e5e7eb"}`,boxShadow:R==="desc"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",resize:"vertical",boxSizing:"border-box",transition:"all 0.2s",backgroundColor:"#f9fafb",lineHeight:"1.4",fontFamily:"inherit"}})]}),L.description&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.description})]})]}),f.jsxs("div",{style:{marginBottom:"2px"},children:[f.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:f.jsxs("label",{style:{fontWeight:600,fontSize:"0.8rem",color:"#374151"},children:["Ảnh chụp (",j.length,"/3)"]})}),j.length>0&&f.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",marginBottom:"8px"},children:j.map((b,E)=>f.jsxs("div",{style:{position:"relative",aspectRatio:"16/9",border:"1px solid #e5e7eb",borderRadius:"6px",overflow:"hidden",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[f.jsx("img",{src:b,alt:`Screenshot ${E+1}`,draggable:!1,onContextMenu:be=>be.preventDefault(),style:{width:"100%",height:"100%",objectFit:"cover",cursor:"zoom-in",transition:"transform 0.2s",userSelect:"none",WebkitUserSelect:"none"},onClick:()=>ot(b)}),f.jsx("button",{onClick:()=>Ar(E),title:"Xóa ảnh",style:{position:"absolute",top:"2px",right:"2px",background:"rgba(239, 68, 68, 0.9)",color:"white",border:"none",borderRadius:"50%",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0,boxShadow:"0 1px 2px rgba(0,0,0,0.2)"},children:f.jsx(Gt,{size:10})})]},E))}),j.length<3&&f.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f.jsxs("button",{onClick:()=>ei("full"),style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(yr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Toàn màn hình"})]}),f.jsxs("button",{onClick:()=>ei("crop"),className:"fb-btn-crop",style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(gr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Chọn vùng"})]})]})]}),f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"auto",paddingTop:"8px",borderTop:"1px solid #f3f4f6"},children:[f.jsx("button",{onClick:ct,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"1px solid #d1d5db",background:"white",cursor:"pointer",color:"#374151",fontWeight:500,fontSize:"0.85rem",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.background="#f9fafb",onMouseLeave:b=>b.currentTarget.style.background="white",children:"Hủy bỏ"}),f.jsx("button",{onClick:_r,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"none",background:o,color:"white",cursor:re?"not-allowed":"pointer",fontWeight:600,fontSize:"0.85rem",opacity:re?.7:1,boxShadow:"0 2px 4px -1px rgba(0, 0, 0, 0.1)",transition:"transform 0.1s, opacity 0.2s"},onMouseDown:b=>!re&&(b.currentTarget.style.transform="scale(0.98)"),onMouseUp:b=>!re&&(b.currentTarget.style.transform="scale(1)"),children:re?f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f.jsx(wr,{size:16,style:{animation:"fb-spin 1s linear infinite"}}),f.jsx("span",{children:"Đang gửi..."})]}):"Gửi báo lỗi"})]})]})]})},Yt=y.createContext(void 0),kr=()=>{const e=y.useContext(Yt);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e},Sr=({children:e,onSubmit:t,themeColor:i})=>{const[r,o]=y.useState(!1),[s,n]=y.useState(null),[h,p]=y.useState(""),[w,m]=y.useState(void 0),k=(V,F,v)=>{n(V),p(F||""),m(v),o(!0)},T=()=>{o(!1)};return f.jsxs(Yt.Provider,{value:{openFeedback:k,closeFeedback:T,isOpen:r,activeQuestionId:s},children:[e,s&&f.jsx(Xt,{questionId:s,questionIdChild:h,contextData:w,onSubmit:t,themeColor:i,isOpen:r,onClose:T,triggerComponent:f.jsx(f.Fragment,{})})]})};U.FeedbackProvider=Sr,U.FeedbackWidget=Xt,U.useFeedback=kr,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|