@zyzgroup/core-web 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/better.css +0 -5
- package/dist/zyzgroup_core_web.iife.js +13 -11
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +242 -239
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +13 -11
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/env.d.ts +1 -1
- package/types/env.d.ts.map +1 -1
- package/types/hooks/useSafeArea.d.ts.map +1 -1
|
@@ -463,14 +463,14 @@ function la(n) {
|
|
|
463
463
|
Array.prototype.ap = function(n) {
|
|
464
464
|
return this.reduce((t, e) => t.concat(n.map(e)), []);
|
|
465
465
|
};
|
|
466
|
-
let
|
|
466
|
+
let Xe;
|
|
467
467
|
function ut(n) {
|
|
468
|
-
|
|
468
|
+
Xe = n, n(), Xe = null;
|
|
469
469
|
}
|
|
470
470
|
class ua {
|
|
471
471
|
subscribers = /* @__PURE__ */ new Set();
|
|
472
472
|
add() {
|
|
473
|
-
|
|
473
|
+
Xe && !this.subscribers.has(Xe) && this.subscribers.add(Xe);
|
|
474
474
|
}
|
|
475
475
|
notify() {
|
|
476
476
|
this.subscribers.forEach((t) => t());
|
|
@@ -918,12 +918,12 @@ const Ia = (n, t, e, { allOwnKeys: s } = {}) => (He(t, (i, r) => {
|
|
|
918
918
|
for (; (e = n.exec(t)) !== null; )
|
|
919
919
|
s.push(e);
|
|
920
920
|
return s;
|
|
921
|
-
},
|
|
921
|
+
}, Ba = Yt("HTMLFormElement"), Ua = (n) => n.toLowerCase().replace(
|
|
922
922
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
923
923
|
function(e, s, i) {
|
|
924
924
|
return s.toUpperCase() + i;
|
|
925
925
|
}
|
|
926
|
-
), fi = (({ hasOwnProperty: n }) => (t, e) => n.call(t, e))(Object.prototype),
|
|
926
|
+
), fi = (({ hasOwnProperty: n }) => (t, e) => n.call(t, e))(Object.prototype), Xa = Yt("RegExp"), or = (n, t) => {
|
|
927
927
|
const e = Object.getOwnPropertyDescriptors(n), s = {};
|
|
928
928
|
He(e, (i, r) => {
|
|
929
929
|
let o;
|
|
@@ -998,7 +998,7 @@ const $a = (n) => {
|
|
|
998
998
|
isDate: Sa,
|
|
999
999
|
isFile: Ta,
|
|
1000
1000
|
isBlob: Ca,
|
|
1001
|
-
isRegExp:
|
|
1001
|
+
isRegExp: Xa,
|
|
1002
1002
|
isFunction: Ct,
|
|
1003
1003
|
isStream: Ea,
|
|
1004
1004
|
isURLSearchParams: Aa,
|
|
@@ -1017,14 +1017,14 @@ const $a = (n) => {
|
|
|
1017
1017
|
toArray: Oa,
|
|
1018
1018
|
forEachEntry: Fa,
|
|
1019
1019
|
matchAll: Ya,
|
|
1020
|
-
isHTMLForm:
|
|
1020
|
+
isHTMLForm: Ba,
|
|
1021
1021
|
hasOwnProperty: fi,
|
|
1022
1022
|
hasOwnProp: fi,
|
|
1023
1023
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1024
1024
|
reduceDescriptors: or,
|
|
1025
1025
|
freezeMethods: za,
|
|
1026
1026
|
toObjectSet: Ga,
|
|
1027
|
-
toCamelCase:
|
|
1027
|
+
toCamelCase: Ua,
|
|
1028
1028
|
noop: Va,
|
|
1029
1029
|
toFiniteNumber: qa,
|
|
1030
1030
|
findKey: nr,
|
|
@@ -1037,10 +1037,10 @@ const $a = (n) => {
|
|
|
1037
1037
|
isAsyncFn: Wa,
|
|
1038
1038
|
isThenable: Ja
|
|
1039
1039
|
};
|
|
1040
|
-
function
|
|
1040
|
+
function U(n, t, e, s, i) {
|
|
1041
1041
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = n, this.name = "AxiosError", t && (this.code = t), e && (this.config = e), s && (this.request = s), i && (this.response = i);
|
|
1042
1042
|
}
|
|
1043
|
-
A.inherits(
|
|
1043
|
+
A.inherits(U, Error, {
|
|
1044
1044
|
toJSON: function() {
|
|
1045
1045
|
return {
|
|
1046
1046
|
// Standard
|
|
@@ -1061,7 +1061,7 @@ A.inherits(X, Error, {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
1063
|
});
|
|
1064
|
-
const hr =
|
|
1064
|
+
const hr = U.prototype, cr = {};
|
|
1065
1065
|
[
|
|
1066
1066
|
"ERR_BAD_OPTION_VALUE",
|
|
1067
1067
|
"ERR_BAD_OPTION",
|
|
@@ -1079,13 +1079,13 @@ const hr = X.prototype, cr = {};
|
|
|
1079
1079
|
].forEach((n) => {
|
|
1080
1080
|
cr[n] = { value: n };
|
|
1081
1081
|
});
|
|
1082
|
-
Object.defineProperties(
|
|
1082
|
+
Object.defineProperties(U, cr);
|
|
1083
1083
|
Object.defineProperty(hr, "isAxiosError", { value: !0 });
|
|
1084
|
-
|
|
1084
|
+
U.from = (n, t, e, s, i, r) => {
|
|
1085
1085
|
const o = Object.create(hr);
|
|
1086
1086
|
return A.toFlatObject(n, o, function(h) {
|
|
1087
1087
|
return h !== Error.prototype;
|
|
1088
|
-
}, (a) => a !== "isAxiosError"),
|
|
1088
|
+
}, (a) => a !== "isAxiosError"), U.call(o, n.message, t, e, s, i), o.cause = n, o.name = n.name, r && Object.assign(o, r), o;
|
|
1089
1089
|
};
|
|
1090
1090
|
const Za = null;
|
|
1091
1091
|
function un(n) {
|
|
@@ -1124,7 +1124,7 @@ function ks(n, t, e) {
|
|
|
1124
1124
|
if (A.isDate(m))
|
|
1125
1125
|
return m.toISOString();
|
|
1126
1126
|
if (!h && A.isBlob(m))
|
|
1127
|
-
throw new
|
|
1127
|
+
throw new U("Blob is not supported. Use a Buffer instead.");
|
|
1128
1128
|
return A.isArrayBuffer(m) || A.isTypedArray(m) ? h && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
1129
1129
|
}
|
|
1130
1130
|
function l(m, P, E) {
|
|
@@ -1362,7 +1362,7 @@ const En = {
|
|
|
1362
1362
|
return JSON.parse(t);
|
|
1363
1363
|
} catch (a) {
|
|
1364
1364
|
if (o)
|
|
1365
|
-
throw a.name === "SyntaxError" ?
|
|
1365
|
+
throw a.name === "SyntaxError" ? U.from(a, U.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
return t;
|
|
@@ -1589,16 +1589,16 @@ function pr(n) {
|
|
|
1589
1589
|
return !!(n && n.__CANCEL__);
|
|
1590
1590
|
}
|
|
1591
1591
|
function $e(n, t, e) {
|
|
1592
|
-
|
|
1592
|
+
U.call(this, n ?? "canceled", U.ERR_CANCELED, t, e), this.name = "CanceledError";
|
|
1593
1593
|
}
|
|
1594
|
-
A.inherits($e,
|
|
1594
|
+
A.inherits($e, U, {
|
|
1595
1595
|
__CANCEL__: !0
|
|
1596
1596
|
});
|
|
1597
1597
|
function yh(n, t, e) {
|
|
1598
1598
|
const s = e.config.validateStatus;
|
|
1599
|
-
!e.status || !s || s(e.status) ? n(e) : t(new
|
|
1599
|
+
!e.status || !s || s(e.status) ? n(e) : t(new U(
|
|
1600
1600
|
"Request failed with status code " + e.status,
|
|
1601
|
-
[
|
|
1601
|
+
[U.ERR_BAD_REQUEST, U.ERR_BAD_RESPONSE][Math.floor(e.status / 100) - 4],
|
|
1602
1602
|
e.config,
|
|
1603
1603
|
e.request,
|
|
1604
1604
|
e
|
|
@@ -1753,15 +1753,15 @@ const Ch = typeof XMLHttpRequest < "u", Ph = Ch && function(n) {
|
|
|
1753
1753
|
if ("onloadend" in l ? l.onloadend = y : l.onreadystatechange = function() {
|
|
1754
1754
|
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(y);
|
|
1755
1755
|
}, l.onabort = function() {
|
|
1756
|
-
l && (s(new
|
|
1756
|
+
l && (s(new U("Request aborted", U.ECONNABORTED, n, l)), l = null);
|
|
1757
1757
|
}, l.onerror = function() {
|
|
1758
|
-
s(new
|
|
1758
|
+
s(new U("Network Error", U.ERR_NETWORK, n, l)), l = null;
|
|
1759
1759
|
}, l.ontimeout = function() {
|
|
1760
1760
|
let P = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1761
1761
|
const E = n.transitional || dr;
|
|
1762
|
-
n.timeoutErrorMessage && (P = n.timeoutErrorMessage), s(new
|
|
1762
|
+
n.timeoutErrorMessage && (P = n.timeoutErrorMessage), s(new U(
|
|
1763
1763
|
P,
|
|
1764
|
-
E.clarifyTimeoutError ?
|
|
1764
|
+
E.clarifyTimeoutError ? U.ETIMEDOUT : U.ECONNABORTED,
|
|
1765
1765
|
n,
|
|
1766
1766
|
l
|
|
1767
1767
|
)), l = null;
|
|
@@ -1776,7 +1776,7 @@ const Ch = typeof XMLHttpRequest < "u", Ph = Ch && function(n) {
|
|
|
1776
1776
|
}, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a)));
|
|
1777
1777
|
const w = Sh(f);
|
|
1778
1778
|
if (w && Nt.protocols.indexOf(w) === -1) {
|
|
1779
|
-
s(new
|
|
1779
|
+
s(new U("Unsupported protocol " + w + ":", U.ERR_BAD_REQUEST, n));
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
1782
|
l.send(i || null);
|
|
@@ -1804,7 +1804,7 @@ const xi = (n) => `- ${n}`, Eh = (n) => A.isFunction(n) || n === null || n === !
|
|
|
1804
1804
|
e = n[r];
|
|
1805
1805
|
let o;
|
|
1806
1806
|
if (s = e, !Eh(e) && (s = fn[(o = String(e)).toLowerCase()], s === void 0))
|
|
1807
|
-
throw new
|
|
1807
|
+
throw new U(`Unknown adapter '${o}'`);
|
|
1808
1808
|
if (s)
|
|
1809
1809
|
break;
|
|
1810
1810
|
i[o || "#" + r] = s;
|
|
@@ -1816,7 +1816,7 @@ const xi = (n) => `- ${n}`, Eh = (n) => A.isFunction(n) || n === null || n === !
|
|
|
1816
1816
|
let o = t ? r.length > 1 ? `since :
|
|
1817
1817
|
` + r.map(xi).join(`
|
|
1818
1818
|
`) : " " + xi(r[0]) : "as no adapter specified";
|
|
1819
|
-
throw new
|
|
1819
|
+
throw new U(
|
|
1820
1820
|
"There is no suitable adapter to dispatch the request " + o,
|
|
1821
1821
|
"ERR_NOT_SUPPORT"
|
|
1822
1822
|
);
|
|
@@ -1926,9 +1926,9 @@ An.transitional = function(t, e, s) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
return (r, o, a) => {
|
|
1928
1928
|
if (t === !1)
|
|
1929
|
-
throw new
|
|
1929
|
+
throw new U(
|
|
1930
1930
|
i(o, " has been removed" + (e ? " in " + e : "")),
|
|
1931
|
-
|
|
1931
|
+
U.ERR_DEPRECATED
|
|
1932
1932
|
);
|
|
1933
1933
|
return e && !Si[o] && (Si[o] = !0, console.warn(
|
|
1934
1934
|
i(
|
|
@@ -1940,7 +1940,7 @@ An.transitional = function(t, e, s) {
|
|
|
1940
1940
|
};
|
|
1941
1941
|
function _h(n, t, e) {
|
|
1942
1942
|
if (typeof n != "object")
|
|
1943
|
-
throw new
|
|
1943
|
+
throw new U("options must be an object", U.ERR_BAD_OPTION_VALUE);
|
|
1944
1944
|
const s = Object.keys(n);
|
|
1945
1945
|
let i = s.length;
|
|
1946
1946
|
for (; i-- > 0; ) {
|
|
@@ -1948,11 +1948,11 @@ function _h(n, t, e) {
|
|
|
1948
1948
|
if (o) {
|
|
1949
1949
|
const a = n[r], h = a === void 0 || o(a, r, n);
|
|
1950
1950
|
if (h !== !0)
|
|
1951
|
-
throw new
|
|
1951
|
+
throw new U("option " + r + " must be " + h, U.ERR_BAD_OPTION_VALUE);
|
|
1952
1952
|
continue;
|
|
1953
1953
|
}
|
|
1954
1954
|
if (e !== !0)
|
|
1955
|
-
throw new
|
|
1955
|
+
throw new U("Unknown option " + r, U.ERR_BAD_OPTION);
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
1958
|
const dn = {
|
|
@@ -2223,7 +2223,7 @@ Z.CancelToken = Ah;
|
|
|
2223
2223
|
Z.isCancel = pr;
|
|
2224
2224
|
Z.VERSION = wr;
|
|
2225
2225
|
Z.toFormData = ks;
|
|
2226
|
-
Z.AxiosError =
|
|
2226
|
+
Z.AxiosError = U;
|
|
2227
2227
|
Z.Cancel = Z.CanceledError;
|
|
2228
2228
|
Z.all = function(t) {
|
|
2229
2229
|
return Promise.all(t);
|
|
@@ -2532,7 +2532,7 @@ function Tl() {
|
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Bh(n, t) {
|
|
2536
2536
|
const e = ie(t || "");
|
|
2537
2537
|
if (!t)
|
|
2538
2538
|
try {
|
|
@@ -2568,7 +2568,7 @@ function Cl(n, t) {
|
|
|
2568
2568
|
window.sessionStorage.removeItem(n);
|
|
2569
2569
|
}), e;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function Uh(n, t) {
|
|
2572
2572
|
let e;
|
|
2573
2573
|
return n.objectStoreNames.contains(t) || (e = n.createObjectStore(t, { keyPath: "id" })), e;
|
|
2574
2574
|
}
|
|
@@ -2579,7 +2579,7 @@ function Pl(n, t = 1, e) {
|
|
|
2579
2579
|
o.onerror = () => {
|
|
2580
2580
|
i("无法使用IndexDB!");
|
|
2581
2581
|
}, o.onsuccess = (a) => {
|
|
2582
|
-
r = a.target.result,
|
|
2582
|
+
r = a.target.result, Uh(r, e), s(r);
|
|
2583
2583
|
};
|
|
2584
2584
|
});
|
|
2585
2585
|
}
|
|
@@ -2603,7 +2603,7 @@ const pt = (n, t, e) => {
|
|
|
2603
2603
|
return n.addEventListener(t, s, !1), () => {
|
|
2604
2604
|
n.removeEventListener(t, s, !1);
|
|
2605
2605
|
};
|
|
2606
|
-
},
|
|
2606
|
+
}, Xh = [
|
|
2607
2607
|
"click",
|
|
2608
2608
|
"dblclick",
|
|
2609
2609
|
"wheel",
|
|
@@ -2626,7 +2626,7 @@ function _l(n, t, e = {
|
|
|
2626
2626
|
detail: {}
|
|
2627
2627
|
}) {
|
|
2628
2628
|
let s;
|
|
2629
|
-
|
|
2629
|
+
Xh.includes(t) ? s = new MouseEvent(t, e) : zh.includes(t) ? s = new KeyboardEvent(t, e) : Gh.includes(t) ? s = new TouchEvent(t, e) : Vh.includes(t) ? s = new PointerEvent(t, e) : qh.includes(t) ? s = new DragEvent(t, e) : jh.includes(t) ? s = new Event(t, e) : s = new CustomEvent(t, e), Hh(n, s);
|
|
2630
2630
|
}
|
|
2631
2631
|
function Hh(n, t) {
|
|
2632
2632
|
n.dispatchEvent(t);
|
|
@@ -2670,7 +2670,7 @@ function $h(n = "(prefers-color-scheme: dark)") {
|
|
|
2670
2670
|
e.value = s.matches;
|
|
2671
2671
|
}), e;
|
|
2672
2672
|
}
|
|
2673
|
-
const Wh = "__theme__", se =
|
|
2673
|
+
const Wh = "__theme__", se = Bh(Wh);
|
|
2674
2674
|
if (!se.value) {
|
|
2675
2675
|
const n = $h("(prefers-color-scheme: dark)");
|
|
2676
2676
|
se.value = n.value ? "dark" : "light";
|
|
@@ -2695,10 +2695,10 @@ function Dl(n) {
|
|
|
2695
2695
|
function Il() {
|
|
2696
2696
|
return se.value = se.value == "light" ? "dark" : "light", se;
|
|
2697
2697
|
}
|
|
2698
|
-
const
|
|
2698
|
+
const X = Ae();
|
|
2699
2699
|
let Ti = "";
|
|
2700
2700
|
const Jh = new MutationObserver((n, t) => {
|
|
2701
|
-
location.href !== Ti && (Ti = location.href,
|
|
2701
|
+
location.href !== Ti && (Ti = location.href, X.emit("urlchange", location.href));
|
|
2702
2702
|
});
|
|
2703
2703
|
Jh.observe(document, {
|
|
2704
2704
|
attributes: !0,
|
|
@@ -2706,49 +2706,49 @@ Jh.observe(document, {
|
|
|
2706
2706
|
subtree: !0
|
|
2707
2707
|
});
|
|
2708
2708
|
pt(window, "hashchange", () => {
|
|
2709
|
-
|
|
2709
|
+
X.emit("hashchange", location.hash);
|
|
2710
2710
|
});
|
|
2711
2711
|
pt(window, "popstate", (n) => {
|
|
2712
|
-
|
|
2712
|
+
X.emit("popstate", n.state);
|
|
2713
2713
|
});
|
|
2714
2714
|
pt(
|
|
2715
2715
|
window,
|
|
2716
2716
|
"orientationchange" in window ? "orientationchange" : "resize",
|
|
2717
2717
|
(n) => {
|
|
2718
2718
|
const t = n.target.innerWidth, e = n.target.innerHeight;
|
|
2719
|
-
|
|
2719
|
+
X.emit("windowresize", t, e);
|
|
2720
2720
|
}
|
|
2721
2721
|
);
|
|
2722
2722
|
let Pr = !1;
|
|
2723
2723
|
pt(window, "load", () => {
|
|
2724
|
-
|
|
2724
|
+
X.emit("load"), Pr = !0;
|
|
2725
2725
|
});
|
|
2726
2726
|
pt(window, "beforeunload", (n) => {
|
|
2727
|
-
|
|
2727
|
+
X.emit("beforeunload", n);
|
|
2728
2728
|
});
|
|
2729
2729
|
pt(window, "pagehide", (n) => {
|
|
2730
|
-
|
|
2730
|
+
X.emit("pagehide", n);
|
|
2731
2731
|
});
|
|
2732
2732
|
pt(window, "focus", (n) => {
|
|
2733
|
-
|
|
2733
|
+
X.emit("focus", n);
|
|
2734
2734
|
});
|
|
2735
2735
|
pt(window, "blur", (n) => {
|
|
2736
|
-
|
|
2736
|
+
X.emit("blur", n);
|
|
2737
2737
|
});
|
|
2738
2738
|
pt(window, "visibilitychange", (n) => {
|
|
2739
|
-
document.hidden ?
|
|
2739
|
+
document.hidden ? X.emit("windowhidden", n) : X.emit("windowvisible", n);
|
|
2740
2740
|
});
|
|
2741
2741
|
const be = {
|
|
2742
2742
|
getSelectedText: () => window.getSelection()?.toString() || "",
|
|
2743
2743
|
isTabInView: () => !document.hidden,
|
|
2744
|
-
onurlchange: (n) => (
|
|
2745
|
-
|
|
2744
|
+
onurlchange: (n) => (X.on("urlchange", n), () => {
|
|
2745
|
+
X.off("urlchange", n);
|
|
2746
2746
|
}),
|
|
2747
|
-
onhashchange: (n) => (
|
|
2748
|
-
|
|
2747
|
+
onhashchange: (n) => (X.on("hashchange", n), () => {
|
|
2748
|
+
X.off("hashchange", n);
|
|
2749
2749
|
}),
|
|
2750
|
-
onpopstate: (n) => (
|
|
2751
|
-
|
|
2750
|
+
onpopstate: (n) => (X.on("popstate", n), () => {
|
|
2751
|
+
X.off("popstate", n);
|
|
2752
2752
|
}),
|
|
2753
2753
|
// pushstate("/home?name=xxx")
|
|
2754
2754
|
pushstate: (n, t = null) => {
|
|
@@ -2757,32 +2757,32 @@ const be = {
|
|
|
2757
2757
|
replacestate: (n, t = null) => {
|
|
2758
2758
|
history.replaceState(t, "", n);
|
|
2759
2759
|
},
|
|
2760
|
-
onwindowresize: (n) => (
|
|
2761
|
-
|
|
2760
|
+
onwindowresize: (n) => (X.on("windowresize", n), () => {
|
|
2761
|
+
X.off("windowresize", n);
|
|
2762
2762
|
}),
|
|
2763
2763
|
onload: (n) => {
|
|
2764
2764
|
const t = la(n);
|
|
2765
|
-
return
|
|
2766
|
-
|
|
2765
|
+
return X.on("load", t), Pr && t(), () => {
|
|
2766
|
+
X.off("load", t);
|
|
2767
2767
|
};
|
|
2768
2768
|
},
|
|
2769
|
-
onbeforeunload: (n) => (
|
|
2770
|
-
|
|
2769
|
+
onbeforeunload: (n) => (X.on("beforeunload", n), () => {
|
|
2770
|
+
X.off("beforeunload", n);
|
|
2771
2771
|
}),
|
|
2772
|
-
onpagehide: (n) => (
|
|
2773
|
-
|
|
2772
|
+
onpagehide: (n) => (X.on("pagehide", n), () => {
|
|
2773
|
+
X.off("pagehide", n);
|
|
2774
2774
|
}),
|
|
2775
|
-
onfocus: (n) => (
|
|
2776
|
-
|
|
2775
|
+
onfocus: (n) => (X.on("focus", n), () => {
|
|
2776
|
+
X.off("focus", n);
|
|
2777
2777
|
}),
|
|
2778
|
-
onblur: (n) => (
|
|
2779
|
-
|
|
2778
|
+
onblur: (n) => (X.on("blur", n), () => {
|
|
2779
|
+
X.off("blur", n);
|
|
2780
2780
|
}),
|
|
2781
|
-
onwindowvisible: (n) => (
|
|
2782
|
-
|
|
2781
|
+
onwindowvisible: (n) => (X.on("windowvisible", n), () => {
|
|
2782
|
+
X.off("windowvisible", n);
|
|
2783
2783
|
}),
|
|
2784
|
-
onwindowhidden: (n) => (
|
|
2785
|
-
|
|
2784
|
+
onwindowhidden: (n) => (X.on("windowhidden", n), () => {
|
|
2785
|
+
X.off("windowhidden", n);
|
|
2786
2786
|
})
|
|
2787
2787
|
};
|
|
2788
2788
|
function Ml(n) {
|
|
@@ -2801,25 +2801,26 @@ function Ml(n) {
|
|
|
2801
2801
|
const In = () => {
|
|
2802
2802
|
const n = navigator.userAgent.toLowerCase();
|
|
2803
2803
|
let t = "Unknown";
|
|
2804
|
-
return /mac/i.test(n) ? t = "macOS" : /
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2804
|
+
return /mac/i.test(n) ? t = "macOS" : /iphone|ipad|ipod/i.test(n) ? t = "iOS" : /android/i.test(n) ? t = "Android" : /BlackBerry/i.test(n) ? t = "BlackBerry" : /win/i.test(n) ? t = "Windows" : /linux/i.test(n) ? t = "Linux" : /bsd/i.test(n) && (t = "BSD"), t.toLowerCase();
|
|
2805
|
+
};
|
|
2806
|
+
function kl(n = navigator.userAgent) {
|
|
2807
2807
|
let t = "Unknown";
|
|
2808
|
-
if (/
|
|
2809
|
-
const e = n.match(/
|
|
2810
|
-
e && (t = e[1]);
|
|
2811
|
-
} else if (/Mac OS X/.test(n)) {
|
|
2812
|
-
const e = n.match(/Mac OS X (\d+_\d+)/);
|
|
2808
|
+
if (/iPhone|iPad|iPod/i.test(n)) {
|
|
2809
|
+
const e = n.match(/OS (\d+_\d+)/i);
|
|
2813
2810
|
e && (t = e[1].replace("_", "."));
|
|
2814
|
-
} else if (/Android
|
|
2815
|
-
const e = n.match(/Android (\d+\.\d+)/);
|
|
2811
|
+
} else if (/Android/i.test(n)) {
|
|
2812
|
+
const e = n.match(/Android (\d+\.\d+)/i);
|
|
2816
2813
|
e && (t = e[1]);
|
|
2817
|
-
} else if (/
|
|
2818
|
-
const e = n.match(/OS (\d+_\d+)/);
|
|
2814
|
+
} else if (/Mac OS X/i.test(n)) {
|
|
2815
|
+
const e = n.match(/Mac OS X (\d+_\d+)/i);
|
|
2819
2816
|
e && (t = e[1].replace("_", "."));
|
|
2817
|
+
} else if (/Windows NT/i.test(n)) {
|
|
2818
|
+
const e = n.match(/Windows NT (\d+\.\d+)/i);
|
|
2819
|
+
e && (t = e[1]);
|
|
2820
2820
|
}
|
|
2821
2821
|
return t.toLowerCase();
|
|
2822
|
-
}
|
|
2822
|
+
}
|
|
2823
|
+
const Er = () => {
|
|
2823
2824
|
const n = navigator.userAgent.toLowerCase();
|
|
2824
2825
|
let t = "Unknown";
|
|
2825
2826
|
return /opr/i.test(n) || /opera/i.test(n) ? t = "Opera" : /chrome/i.test(n) ? t = "Chrome" : /firefox/i.test(n) ? t = "Firefox" : /safari/i.test(n) ? t = "Safari" : /edge/i.test(n) ? t = "Edge" : /msie|trident/i.test(n) ? t = "IE" : /MicroMessenger/i.test(n) ? t = "Wechat" : /alipay/i.test(n) && (t = "Ali"), t.toLowerCase();
|
|
@@ -2877,7 +2878,7 @@ function Kh() {
|
|
|
2877
2878
|
return s > 0 ? parseInt(n.substring(s + 5, n.indexOf(".", s)), 10) : -1;
|
|
2878
2879
|
}
|
|
2879
2880
|
const Yl = Kh() !== -1;
|
|
2880
|
-
function
|
|
2881
|
+
function Bl() {
|
|
2881
2882
|
const n = document.documentMode;
|
|
2882
2883
|
return n && (n === 9 || n === 10);
|
|
2883
2884
|
}
|
|
@@ -2887,10 +2888,10 @@ function Qh() {
|
|
|
2887
2888
|
function tc() {
|
|
2888
2889
|
return Er() === "ali";
|
|
2889
2890
|
}
|
|
2890
|
-
function
|
|
2891
|
+
function Ul() {
|
|
2891
2892
|
return Qh() && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === "miniprogram";
|
|
2892
2893
|
}
|
|
2893
|
-
function
|
|
2894
|
+
function Xl() {
|
|
2894
2895
|
return tc() && navigator.userAgent.match(/miniprogram/i);
|
|
2895
2896
|
}
|
|
2896
2897
|
const zl = typeof document < "u", ec = typeof window < "u", Gl = typeof history < "u", Vl = ec && window.File && window.FileReader && window.FileList && window.Blob, sc = (() => {
|
|
@@ -3443,7 +3444,7 @@ class Yr {
|
|
|
3443
3444
|
}
|
|
3444
3445
|
}
|
|
3445
3446
|
const Pt = new Yr();
|
|
3446
|
-
class
|
|
3447
|
+
class Br {
|
|
3447
3448
|
constructor(t, e = Pt) {
|
|
3448
3449
|
this._object = t, this._group = e;
|
|
3449
3450
|
}
|
|
@@ -3685,7 +3686,7 @@ const yc = We.nextId, wc = Pt.getAll.bind(Pt), xc = Pt.removeAll.bind(Pt), bc =
|
|
|
3685
3686
|
Easing: R,
|
|
3686
3687
|
Interpolation: te,
|
|
3687
3688
|
Group: Yr,
|
|
3688
|
-
Tween:
|
|
3689
|
+
Tween: Br,
|
|
3689
3690
|
nextId: yc,
|
|
3690
3691
|
getAll: wc,
|
|
3691
3692
|
removeAll: xc,
|
|
@@ -3788,7 +3789,7 @@ class Mn {
|
|
|
3788
3789
|
e.getElapsedTime() - this.pausedDuration
|
|
3789
3790
|
);
|
|
3790
3791
|
t.filter((c) => c.delay * s <= h).forEach((c) => {
|
|
3791
|
-
c.tween || (c.tween = new
|
|
3792
|
+
c.tween || (c.tween = new Br({ ...c.fromValues }).to({ ...c.toValues }, c.frames * s).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete), c.tween.start(a)), /// 进行中的tween
|
|
3792
3793
|
(c.delay + c.frames * (c.repeat + 1)) * s > h ? c.tween.update(a) : (c.tween.isPlaying() && c.tween.end(), xe(t, c));
|
|
3793
3794
|
});
|
|
3794
3795
|
}
|
|
@@ -3823,24 +3824,24 @@ class Mn {
|
|
|
3823
3824
|
this.pausedDuration += this.pausedClock.getElapsedTime(), this.pausedClock.stop(), this.isPaused = !1;
|
|
3824
3825
|
}
|
|
3825
3826
|
}
|
|
3826
|
-
const Ss = new de(),
|
|
3827
|
+
const Ss = new de(), Ur = (n = !0) => {
|
|
3827
3828
|
Ss.filter((t, e) => (e.alternate && (Fn(e, e.alternate), n && Ss.set(t, e.alternate), e.alternate = void 0), n));
|
|
3828
3829
|
};
|
|
3829
|
-
function
|
|
3830
|
+
function Xr(n) {
|
|
3830
3831
|
let t = Ss.get(n);
|
|
3831
3832
|
return t || (t = Nn(n), Ss.set(n, t)), t;
|
|
3832
3833
|
}
|
|
3833
3834
|
function zr(n) {
|
|
3834
|
-
const t =
|
|
3835
|
+
const t = Xr(n);
|
|
3835
3836
|
return t.alternate || (t.alternate = Nn(n)), t.alternate;
|
|
3836
3837
|
}
|
|
3837
3838
|
function Gr(n, t, e = !0) {
|
|
3838
|
-
t(zr(n)), Ir("FLUSH_DOM_ACTION", () =>
|
|
3839
|
+
t(zr(n)), Ir("FLUSH_DOM_ACTION", () => Ur(e), 50);
|
|
3839
3840
|
}
|
|
3840
3841
|
function eu(n, t, e = !0) {
|
|
3841
|
-
t(zr(n)),
|
|
3842
|
+
t(zr(n)), Ur(e);
|
|
3842
3843
|
}
|
|
3843
|
-
function
|
|
3844
|
+
function B(n) {
|
|
3844
3845
|
return n * Math.PI / 180;
|
|
3845
3846
|
}
|
|
3846
3847
|
function at(n) {
|
|
@@ -5383,7 +5384,7 @@ function wn(n, t, e, s, i, r) {
|
|
|
5383
5384
|
r
|
|
5384
5385
|
];
|
|
5385
5386
|
}
|
|
5386
|
-
function
|
|
5387
|
+
function Be(n, t, e, s) {
|
|
5387
5388
|
return [n, t, e, s, e, s];
|
|
5388
5389
|
}
|
|
5389
5390
|
const us = {
|
|
@@ -5422,13 +5423,13 @@ class ve {
|
|
|
5422
5423
|
return this.createSVGElement("path", { d: t, id: e || Hi() });
|
|
5423
5424
|
}
|
|
5424
5425
|
static downloadFromSVGElement(t, e = "shape") {
|
|
5425
|
-
return
|
|
5426
|
+
return Ui(
|
|
5426
5427
|
Fh(t),
|
|
5427
5428
|
`${e}.svg`
|
|
5428
5429
|
);
|
|
5429
5430
|
}
|
|
5430
5431
|
static downloadFromSVGString(t, e = "shape") {
|
|
5431
|
-
return
|
|
5432
|
+
return Ui(Sn(t), `${e}.svg`);
|
|
5432
5433
|
}
|
|
5433
5434
|
static getSVGRawStringFromElement(t) {
|
|
5434
5435
|
return vr(t);
|
|
@@ -5601,16 +5602,16 @@ class ve {
|
|
|
5601
5602
|
a = m[1], h = m[2], m = ["C", ...wn(r, o, m[1], m[2], m[3], m[4])];
|
|
5602
5603
|
break;
|
|
5603
5604
|
case "L":
|
|
5604
|
-
m = ["C", ...
|
|
5605
|
+
m = ["C", ...Be(r, o, m[1], m[2])];
|
|
5605
5606
|
break;
|
|
5606
5607
|
case "H":
|
|
5607
|
-
m = ["C", ...
|
|
5608
|
+
m = ["C", ...Be(r, o, m[1], o)];
|
|
5608
5609
|
break;
|
|
5609
5610
|
case "V":
|
|
5610
|
-
m = ["C", ...
|
|
5611
|
+
m = ["C", ...Be(r, o, r, m[1])];
|
|
5611
5612
|
break;
|
|
5612
5613
|
case "Z":
|
|
5613
|
-
m = ["C", ...
|
|
5614
|
+
m = ["C", ...Be(r, o, s, i)];
|
|
5614
5615
|
break;
|
|
5615
5616
|
}
|
|
5616
5617
|
f = P, r = m[m.length - 2], o = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], l = m[m.length - 3]) : (c = r, l = o), e.push(m);
|
|
@@ -5833,7 +5834,7 @@ class xt {
|
|
|
5833
5834
|
t.cy,
|
|
5834
5835
|
t.toX,
|
|
5835
5836
|
t.toY
|
|
5836
|
-
) : [e, s, i, r, o, a] =
|
|
5837
|
+
) : [e, s, i, r, o, a] = Be(
|
|
5837
5838
|
this.prevPathX,
|
|
5838
5839
|
this.prevPathY,
|
|
5839
5840
|
t.toX,
|
|
@@ -6264,12 +6265,12 @@ class q extends As {
|
|
|
6264
6265
|
}
|
|
6265
6266
|
followTo(t, e = 3) {
|
|
6266
6267
|
this.rotateTo(t);
|
|
6267
|
-
const { dx: s, dy: i } = jt(
|
|
6268
|
+
const { dx: s, dy: i } = jt(B(this.degree), e);
|
|
6268
6269
|
this.vx = s, this.vy = i, this.run();
|
|
6269
6270
|
}
|
|
6270
6271
|
followAccelerationTo(t, e = 0.05) {
|
|
6271
6272
|
this.rotateTo(t);
|
|
6272
|
-
const { dx: s, dy: i } = jt(
|
|
6273
|
+
const { dx: s, dy: i } = jt(B(this.degree), e);
|
|
6273
6274
|
this.ax = s, this.ay = i, this.run();
|
|
6274
6275
|
}
|
|
6275
6276
|
/// 碰撞检测
|
|
@@ -6373,13 +6374,13 @@ class fs extends q {
|
|
|
6373
6374
|
this.cX = t, this.cY = e, this.cZ = s;
|
|
6374
6375
|
}
|
|
6375
6376
|
rotateX(t) {
|
|
6376
|
-
({ x: this.y, y: this.z } = Rt(
|
|
6377
|
+
({ x: this.y, y: this.z } = Rt(B(t), this.y, this.z));
|
|
6377
6378
|
}
|
|
6378
6379
|
rotateY(t) {
|
|
6379
|
-
({ x: this.x, y: this.z } = Rt(
|
|
6380
|
+
({ x: this.x, y: this.z } = Rt(B(t), this.x, this.z));
|
|
6380
6381
|
}
|
|
6381
6382
|
rotateZ(t) {
|
|
6382
|
-
({ x: this.x, y: this.y } = Rt(
|
|
6383
|
+
({ x: this.x, y: this.y } = Rt(B(t), this.x, this.y));
|
|
6383
6384
|
}
|
|
6384
6385
|
getScreenX() {
|
|
6385
6386
|
const t = this.fl / (this.fl + this.z + this.cZ);
|
|
@@ -6687,7 +6688,7 @@ class dt {
|
|
|
6687
6688
|
), this;
|
|
6688
6689
|
}
|
|
6689
6690
|
rotate(t, e = 0, s = 0) {
|
|
6690
|
-
const i =
|
|
6691
|
+
const i = B(t), r = Math.cos(i), o = Math.sin(i);
|
|
6691
6692
|
return this.translate(e, s), this.multiply([r, o, -o, r, 0, 0]), this.translate(-e, -s), this.toMatrix3D(), this;
|
|
6692
6693
|
}
|
|
6693
6694
|
rotateTo(t, e = 0, s = 0) {
|
|
@@ -6761,10 +6762,10 @@ class dt {
|
|
|
6761
6762
|
}
|
|
6762
6763
|
skew(t, e = t) {
|
|
6763
6764
|
return this.multiply([
|
|
6764
|
-
Math.cos(
|
|
6765
|
-
Math.sin(
|
|
6766
|
-
-Math.sin(
|
|
6767
|
-
Math.cos(
|
|
6765
|
+
Math.cos(B(e)),
|
|
6766
|
+
Math.sin(B(e)),
|
|
6767
|
+
-Math.sin(B(t)),
|
|
6768
|
+
Math.cos(B(t)),
|
|
6768
6769
|
0,
|
|
6769
6770
|
0
|
|
6770
6771
|
]), this.toMatrix3D(), this;
|
|
@@ -6964,7 +6965,7 @@ class wt {
|
|
|
6964
6965
|
this.m31 * this.m31 + this.m32 * this.m32 + this.m33 * this.m33
|
|
6965
6966
|
), i = at(j(Math.asin(-this.m13), -1, 1));
|
|
6966
6967
|
let r = at(Math.atan2(this.m23, this.m33));
|
|
6967
|
-
Math.cos(
|
|
6968
|
+
Math.cos(B(i)) === 0 && (r = at(Math.atan2(-this.m31, this.m22)));
|
|
6968
6969
|
let o = at(Math.atan2(this.m12, this.m11));
|
|
6969
6970
|
return this.m11 < 0 && this.m22 >= 0 && (o += 180), {
|
|
6970
6971
|
x: this.m41,
|
|
@@ -7039,14 +7040,14 @@ class wt {
|
|
|
7039
7040
|
// return this;
|
|
7040
7041
|
// }
|
|
7041
7042
|
rotateX(t) {
|
|
7042
|
-
const e =
|
|
7043
|
+
const e = B(t), s = Math.cos(e), i = Math.sin(e);
|
|
7043
7044
|
return this.multiply(
|
|
7044
7045
|
// new Matrix3D([1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1])
|
|
7045
7046
|
new wt([1, 0, 0, 0, 0, s, i, 0, 0, -i, s, 0, 0, 0, 0, 1])
|
|
7046
7047
|
);
|
|
7047
7048
|
}
|
|
7048
7049
|
rotateY(t) {
|
|
7049
|
-
const e =
|
|
7050
|
+
const e = B(t), s = Math.cos(e), i = Math.sin(e);
|
|
7050
7051
|
return this.multiply(
|
|
7051
7052
|
// new Matrix3D([c, 0, s, 0, 0, 1, 0, 0, -s, 0, c, 0, 0, 0, 0, 1])
|
|
7052
7053
|
new wt([s, 0, -i, 0, 0, 1, 0, 0, i, 0, s, 0, 0, 0, 0, 1])
|
|
@@ -7055,7 +7056,7 @@ class wt {
|
|
|
7055
7056
|
/// this.multiply([c, s, -s, c, 0, 0]);
|
|
7056
7057
|
rotateZ(t) {
|
|
7057
7058
|
this.is3dSpecial = !0;
|
|
7058
|
-
const e =
|
|
7059
|
+
const e = B(t), s = Math.cos(e), i = Math.sin(e);
|
|
7059
7060
|
return this.multiply(
|
|
7060
7061
|
// new Matrix3D([c, -s, 0, 0, s, c, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])
|
|
7061
7062
|
new wt([s, i, 0, 0, -i, s, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])
|
|
@@ -7067,15 +7068,15 @@ class wt {
|
|
|
7067
7068
|
1,
|
|
7068
7069
|
0,
|
|
7069
7070
|
0,
|
|
7070
|
-
|
|
7071
|
+
B(t),
|
|
7071
7072
|
0,
|
|
7072
7073
|
1,
|
|
7073
7074
|
0,
|
|
7074
|
-
|
|
7075
|
+
B(e),
|
|
7075
7076
|
0,
|
|
7076
7077
|
0,
|
|
7077
7078
|
1,
|
|
7078
|
-
|
|
7079
|
+
B(s),
|
|
7079
7080
|
0,
|
|
7080
7081
|
0,
|
|
7081
7082
|
0,
|
|
@@ -7226,7 +7227,7 @@ function Rt(n, t, e) {
|
|
|
7226
7227
|
return s.rotate(at(n)), s.transformPoint({ x: t, y: e });
|
|
7227
7228
|
}
|
|
7228
7229
|
function jr(n) {
|
|
7229
|
-
const t = typeof n?.x == "number" ? n?.x : 0, e = typeof n?.y == "number" ? n?.y : 0, s = typeof n?.degree == "number" ? n?.degree : 0, i = typeof n?.scalarX == "number" ? n?.scalarX : 1, r = typeof n?.scalarY == "number" ? n?.scalarY : 1, o =
|
|
7230
|
+
const t = typeof n?.x == "number" ? n?.x : 0, e = typeof n?.y == "number" ? n?.y : 0, s = typeof n?.degree == "number" ? n?.degree : 0, i = typeof n?.scalarX == "number" ? n?.scalarX : 1, r = typeof n?.scalarY == "number" ? n?.scalarY : 1, o = B(s), a = Math.cos(o), h = Math.sin(o), c = new DOMMatrix([
|
|
7230
7231
|
a * i,
|
|
7231
7232
|
h * i,
|
|
7232
7233
|
-h * r,
|
|
@@ -7310,7 +7311,7 @@ function au(n) {
|
|
|
7310
7311
|
return t;
|
|
7311
7312
|
}
|
|
7312
7313
|
function Se(n, t, e) {
|
|
7313
|
-
const s =
|
|
7314
|
+
const s = Xr(n);
|
|
7314
7315
|
return s.props.style = s.props.style || {}, t ? s.props.style[t] || s.props.style[_s(t)] || s.props.style[mt(t)] || "" : s.props.style;
|
|
7315
7316
|
}
|
|
7316
7317
|
function Hr(n, t, e) {
|
|
@@ -7566,10 +7567,12 @@ function cu(n, t, e = {}) {
|
|
|
7566
7567
|
}
|
|
7567
7568
|
Lc(`
|
|
7568
7569
|
:root {
|
|
7570
|
+
/* iOS < 11.2 */
|
|
7569
7571
|
--sat: constant(safe-area-inset-top);
|
|
7570
7572
|
--sar: constant(safe-area-inset-right);
|
|
7571
7573
|
--sab: constant(safe-area-inset-bottom);
|
|
7572
7574
|
--sal: constant(safe-area-inset-left);
|
|
7575
|
+
/* iOS > 11.2 */
|
|
7573
7576
|
--sat: env(safe-area-inset-top);
|
|
7574
7577
|
--sar: env(safe-area-inset-right);
|
|
7575
7578
|
--sab: env(safe-area-inset-bottom);
|
|
@@ -7981,7 +7984,7 @@ const Cu = (n) => {
|
|
|
7981
7984
|
i[h] = t[h], i[h + 1] = c, i[h + 2] = c, i[h + 3] = t[h + 3];
|
|
7982
7985
|
}
|
|
7983
7986
|
return new ImageData(i, e, s);
|
|
7984
|
-
},
|
|
7987
|
+
}, Bu = (n) => {
|
|
7985
7988
|
const { data: t, width: e, height: s } = n, i = new Uint8ClampedArray(t.length);
|
|
7986
7989
|
for (let o = 0; o < s; o++)
|
|
7987
7990
|
for (let a = 0; a < e; a++) {
|
|
@@ -7989,7 +7992,7 @@ const Cu = (n) => {
|
|
|
7989
7992
|
i[h] = c, i[h + 1] = t[h + 1], i[h + 2] = c, i[h + 3] = t[h + 3];
|
|
7990
7993
|
}
|
|
7991
7994
|
return new ImageData(i, e, s);
|
|
7992
|
-
},
|
|
7995
|
+
}, Uu = (n) => {
|
|
7993
7996
|
const { data: t, width: e, height: s } = n, i = new Uint8ClampedArray(t.length);
|
|
7994
7997
|
for (let o = 0; o < s; o++)
|
|
7995
7998
|
for (let a = 0; a < e; a++) {
|
|
@@ -7997,7 +8000,7 @@ const Cu = (n) => {
|
|
|
7997
8000
|
i[h] = c, i[h + 1] = c, i[h + 2] = t[h + 2], i[h + 3] = t[h + 3];
|
|
7998
8001
|
}
|
|
7999
8002
|
return new ImageData(i, e, s);
|
|
8000
|
-
},
|
|
8003
|
+
}, Xu = (n) => to(n, [-1, -1, -1, -1, 9, -1, -1, -1, -1]), zu = (n) => to(n, [-1, -1, -1, -1, 8, -1, -1, -1, -1]), Gu = (n) => {
|
|
8001
8004
|
const { data: t, width: e, height: s } = n, i = new Uint8ClampedArray(t.length);
|
|
8002
8005
|
for (let o = 0; o < s; o++)
|
|
8003
8006
|
for (let a = 0; a < e; a++) {
|
|
@@ -8366,7 +8369,7 @@ const Cu = (n) => {
|
|
|
8366
8369
|
MODE_ALPHA_NUM: 2,
|
|
8367
8370
|
MODE_8BIT_BYTE: 4,
|
|
8368
8371
|
MODE_KANJI: 8
|
|
8369
|
-
},
|
|
8372
|
+
}, Ue = {
|
|
8370
8373
|
M: 0,
|
|
8371
8374
|
L: 1,
|
|
8372
8375
|
H: 2,
|
|
@@ -8838,13 +8841,13 @@ class Vt {
|
|
|
8838
8841
|
}
|
|
8839
8842
|
static getRsBlockTable(t, e) {
|
|
8840
8843
|
switch (e) {
|
|
8841
|
-
case
|
|
8844
|
+
case Ue.L:
|
|
8842
8845
|
return Vt.RS_BLOCK_TABLE[(t - 1) * 4 + 0];
|
|
8843
|
-
case
|
|
8846
|
+
case Ue.M:
|
|
8844
8847
|
return Vt.RS_BLOCK_TABLE[(t - 1) * 4 + 1];
|
|
8845
|
-
case
|
|
8848
|
+
case Ue.Q:
|
|
8846
8849
|
return Vt.RS_BLOCK_TABLE[(t - 1) * 4 + 2];
|
|
8847
|
-
case
|
|
8850
|
+
case Ue.H:
|
|
8848
8851
|
return Vt.RS_BLOCK_TABLE[(t - 1) * 4 + 3];
|
|
8849
8852
|
default:
|
|
8850
8853
|
return;
|
|
@@ -8873,7 +8876,7 @@ class ki {
|
|
|
8873
8876
|
this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
|
|
8874
8877
|
}
|
|
8875
8878
|
}
|
|
8876
|
-
class
|
|
8879
|
+
class Bc {
|
|
8877
8880
|
mode;
|
|
8878
8881
|
data;
|
|
8879
8882
|
constructor(t) {
|
|
@@ -8897,10 +8900,10 @@ class ue {
|
|
|
8897
8900
|
dataCache;
|
|
8898
8901
|
dataList;
|
|
8899
8902
|
constructor(t, e) {
|
|
8900
|
-
this.typeNumber = t, this.errorCorrectLevel =
|
|
8903
|
+
this.typeNumber = t, this.errorCorrectLevel = Ue[e], this.modules = [], this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
8901
8904
|
}
|
|
8902
8905
|
addData(t) {
|
|
8903
|
-
const e = new
|
|
8906
|
+
const e = new Bc(t);
|
|
8904
8907
|
this.dataList.push(e), this.dataCache = null;
|
|
8905
8908
|
}
|
|
8906
8909
|
isDark(t, e) {
|
|
@@ -9482,7 +9485,7 @@ function rn(n) {
|
|
|
9482
9485
|
throw new Error("parseColor 不支持的颜色解析:" + n);
|
|
9483
9486
|
return e.r = j(e.r, 0, 255), e.g = j(e.g, 0, 255), e.b = j(e.b, 0, 255), e.a = j(e.a, 0, 1), e;
|
|
9484
9487
|
}
|
|
9485
|
-
const
|
|
9488
|
+
const Uc = [
|
|
9486
9489
|
"#0ac2d2",
|
|
9487
9490
|
"#7bb7fa",
|
|
9488
9491
|
"#60d7a9",
|
|
@@ -9770,7 +9773,7 @@ var io = { exports: {} };
|
|
|
9770
9773
|
var d = u.ownerDocument || u;
|
|
9771
9774
|
return d.defaultView || d.parentWindow || t;
|
|
9772
9775
|
}
|
|
9773
|
-
var pe = /mobile|tablet|ip(ad|hone|od)|android/i, L = "ontouchstart" in t, M = ct(t, "PointerEvent") !== i, N = L && pe.test(navigator.userAgent), z = "touch", it = "pen", Et = "mouse", Ze = "kinect", Ke = 25, Q = 1, At = 2, $ = 4, D = 8, Qe = 1, De = 2, Ie = 4, Me = 8, ke = 16, Dt = De | Ie, oe = Me | ke,
|
|
9776
|
+
var pe = /mobile|tablet|ip(ad|hone|od)|android/i, L = "ontouchstart" in t, M = ct(t, "PointerEvent") !== i, N = L && pe.test(navigator.userAgent), z = "touch", it = "pen", Et = "mouse", Ze = "kinect", Ke = 25, Q = 1, At = 2, $ = 4, D = 8, Qe = 1, De = 2, Ie = 4, Me = 8, ke = 16, Dt = De | Ie, oe = Me | ke, Un = Dt | oe, Xn = ["x", "y"], ts = ["clientX", "clientY"];
|
|
9774
9777
|
function vt(u, d) {
|
|
9775
9778
|
var v = this;
|
|
9776
9779
|
this.manager = u, this.callback = d, this.element = u.element, this.target = u.options.inputTarget, this.domHandler = function(_) {
|
|
@@ -9799,7 +9802,7 @@ var io = { exports: {} };
|
|
|
9799
9802
|
};
|
|
9800
9803
|
function yo(u) {
|
|
9801
9804
|
var d, v = u.options.inputClass;
|
|
9802
|
-
return v ? d = v : M ? d =
|
|
9805
|
+
return v ? d = v : M ? d = Bs : N ? d = ns : L ? d = Us : d = ss, new d(u, wo);
|
|
9803
9806
|
}
|
|
9804
9807
|
function wo(u, d, v) {
|
|
9805
9808
|
var _ = v.pointers.length, I = v.changedPointers.length, k = d & Q && _ - I === 0, F = d & ($ | D) && _ - I === 0;
|
|
@@ -9872,12 +9875,12 @@ var io = { exports: {} };
|
|
|
9872
9875
|
return u === d ? Qe : c(u) >= c(d) ? u < 0 ? De : Ie : d < 0 ? Me : ke;
|
|
9873
9876
|
}
|
|
9874
9877
|
function es(u, d, v) {
|
|
9875
|
-
v || (v =
|
|
9878
|
+
v || (v = Xn);
|
|
9876
9879
|
var _ = d[v[0]] - u[v[0]], I = d[v[1]] - u[v[1]];
|
|
9877
9880
|
return Math.sqrt(_ * _ + I * I);
|
|
9878
9881
|
}
|
|
9879
9882
|
function Ys(u, d, v) {
|
|
9880
|
-
v || (v =
|
|
9883
|
+
v || (v = Xn);
|
|
9881
9884
|
var _ = d[v[0]] - u[v[0]], I = d[v[1]] - u[v[1]];
|
|
9882
9885
|
return Math.atan2(I, _) * 180 / Math.PI;
|
|
9883
9886
|
}
|
|
@@ -9924,10 +9927,10 @@ var io = { exports: {} };
|
|
|
9924
9927
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
9925
9928
|
}, jn = "pointerdown", Hn = "pointermove pointerup pointercancel";
|
|
9926
9929
|
t.MSPointerEvent && !t.PointerEvent && (jn = "MSPointerDown", Hn = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
9927
|
-
function
|
|
9930
|
+
function Bs() {
|
|
9928
9931
|
this.evEl = jn, this.evWin = Hn, vt.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
9929
9932
|
}
|
|
9930
|
-
x(
|
|
9933
|
+
x(Bs, vt, {
|
|
9931
9934
|
/**
|
|
9932
9935
|
* handle mouse events
|
|
9933
9936
|
* @param {Object} ev
|
|
@@ -10009,12 +10012,12 @@ var io = { exports: {} };
|
|
|
10009
10012
|
];
|
|
10010
10013
|
}
|
|
10011
10014
|
var No = 2500, Wn = 25;
|
|
10012
|
-
function
|
|
10015
|
+
function Us() {
|
|
10013
10016
|
vt.apply(this, arguments);
|
|
10014
10017
|
var u = g(this.handler, this);
|
|
10015
10018
|
this.touch = new ns(this.manager, u), this.mouse = new ss(this.manager, u), this.primaryTouch = null, this.lastTouches = [];
|
|
10016
10019
|
}
|
|
10017
|
-
x(
|
|
10020
|
+
x(Us, vt, {
|
|
10018
10021
|
/**
|
|
10019
10022
|
* handle mouse and touch events
|
|
10020
10023
|
* @param {Hammer} manager
|
|
@@ -10061,7 +10064,7 @@ var io = { exports: {} };
|
|
|
10061
10064
|
}
|
|
10062
10065
|
return !1;
|
|
10063
10066
|
}
|
|
10064
|
-
var Zn = ct(o.style, "touchAction"), Kn = Zn !== i, Qn = "compute", ti = "auto",
|
|
10067
|
+
var Zn = ct(o.style, "touchAction"), Kn = Zn !== i, Qn = "compute", ti = "auto", Xs = "manipulation", ae = "none", Le = "pan-x", Re = "pan-y", is = Uo();
|
|
10065
10068
|
function zs(u, d) {
|
|
10066
10069
|
this.manager = u, this.set(d);
|
|
10067
10070
|
}
|
|
@@ -10087,7 +10090,7 @@ var io = { exports: {} };
|
|
|
10087
10090
|
var u = [];
|
|
10088
10091
|
return w(this.manager.recognizers, function(d) {
|
|
10089
10092
|
p(d.options.enable, [d]) && (u = u.concat(d.getTouchAction()));
|
|
10090
|
-
}),
|
|
10093
|
+
}), Bo(u.join(" "));
|
|
10091
10094
|
},
|
|
10092
10095
|
/**
|
|
10093
10096
|
* this method is called on each input cycle and provides the preventing of the browser behavior
|
|
@@ -10116,13 +10119,13 @@ var io = { exports: {} };
|
|
|
10116
10119
|
this.manager.session.prevented = !0, u.preventDefault();
|
|
10117
10120
|
}
|
|
10118
10121
|
};
|
|
10119
|
-
function
|
|
10122
|
+
function Bo(u) {
|
|
10120
10123
|
if (G(u, ae))
|
|
10121
10124
|
return ae;
|
|
10122
10125
|
var d = G(u, Le), v = G(u, Re);
|
|
10123
|
-
return d && v ? ae : d || v ? d ? Le : Re : G(u,
|
|
10126
|
+
return d && v ? ae : d || v ? d ? Le : Re : G(u, Xs) ? Xs : ti;
|
|
10124
10127
|
}
|
|
10125
|
-
function
|
|
10128
|
+
function Uo() {
|
|
10126
10129
|
if (!Kn)
|
|
10127
10130
|
return !1;
|
|
10128
10131
|
var u = {}, d = t.CSS && t.CSS.supports;
|
|
@@ -10130,11 +10133,11 @@ var io = { exports: {} };
|
|
|
10130
10133
|
u[v] = d ? t.CSS.supports("touch-action", v) : !0;
|
|
10131
10134
|
}), u;
|
|
10132
10135
|
}
|
|
10133
|
-
var rs = 1, St = 2, ge = 4, $t = 8,
|
|
10134
|
-
function
|
|
10136
|
+
var rs = 1, St = 2, ge = 4, $t = 8, Bt = $t, Oe = 16, It = 32;
|
|
10137
|
+
function Ut(u) {
|
|
10135
10138
|
this.options = P({}, this.defaults, u || {}), this.id = Ht(), this.manager = null, this.options.enable = C(this.options.enable, !0), this.state = rs, this.simultaneous = {}, this.requireFail = [];
|
|
10136
10139
|
}
|
|
10137
|
-
|
|
10140
|
+
Ut.prototype = {
|
|
10138
10141
|
/**
|
|
10139
10142
|
* @virtual
|
|
10140
10143
|
* @type {Object}
|
|
@@ -10250,7 +10253,7 @@ var io = { exports: {} };
|
|
|
10250
10253
|
this.reset(), this.state = It;
|
|
10251
10254
|
return;
|
|
10252
10255
|
}
|
|
10253
|
-
this.state & (
|
|
10256
|
+
this.state & (Bt | Oe | It) && (this.state = rs), this.state = this.process(d), this.state & (St | ge | $t | Oe) && this.tryEmit(d);
|
|
10254
10257
|
},
|
|
10255
10258
|
/**
|
|
10256
10259
|
* return the state of the recognizer
|
|
@@ -10288,9 +10291,9 @@ var io = { exports: {} };
|
|
|
10288
10291
|
return v ? v.get(u) : u;
|
|
10289
10292
|
}
|
|
10290
10293
|
function _t() {
|
|
10291
|
-
|
|
10294
|
+
Ut.apply(this, arguments);
|
|
10292
10295
|
}
|
|
10293
|
-
x(_t,
|
|
10296
|
+
x(_t, Ut, {
|
|
10294
10297
|
/**
|
|
10295
10298
|
* @namespace
|
|
10296
10299
|
* @memberof AttrRecognizer
|
|
@@ -10335,7 +10338,7 @@ var io = { exports: {} };
|
|
|
10335
10338
|
event: "pan",
|
|
10336
10339
|
threshold: 10,
|
|
10337
10340
|
pointers: 1,
|
|
10338
|
-
direction:
|
|
10341
|
+
direction: Un
|
|
10339
10342
|
},
|
|
10340
10343
|
getTouchAction: function() {
|
|
10341
10344
|
var u = this.options.direction, d = [];
|
|
@@ -10382,9 +10385,9 @@ var io = { exports: {} };
|
|
|
10382
10385
|
}
|
|
10383
10386
|
});
|
|
10384
10387
|
function Vs() {
|
|
10385
|
-
|
|
10388
|
+
Ut.apply(this, arguments), this._timer = null, this._input = null;
|
|
10386
10389
|
}
|
|
10387
|
-
x(Vs,
|
|
10390
|
+
x(Vs, Ut, {
|
|
10388
10391
|
/**
|
|
10389
10392
|
* @namespace
|
|
10390
10393
|
* @memberof PressRecognizer
|
|
@@ -10406,17 +10409,17 @@ var io = { exports: {} };
|
|
|
10406
10409
|
this.reset();
|
|
10407
10410
|
else if (u.eventType & Q)
|
|
10408
10411
|
this.reset(), this._timer = f(function() {
|
|
10409
|
-
this.state =
|
|
10412
|
+
this.state = Bt, this.tryEmit();
|
|
10410
10413
|
}, d.time, this);
|
|
10411
10414
|
else if (u.eventType & $)
|
|
10412
|
-
return
|
|
10415
|
+
return Bt;
|
|
10413
10416
|
return It;
|
|
10414
10417
|
},
|
|
10415
10418
|
reset: function() {
|
|
10416
10419
|
clearTimeout(this._timer);
|
|
10417
10420
|
},
|
|
10418
10421
|
emit: function(u) {
|
|
10419
|
-
this.state ===
|
|
10422
|
+
this.state === Bt && (u && u.eventType & $ ? this.manager.emit(this.options.event + "up", u) : (this._input.timeStamp = l(), this.manager.emit(this.options.event, this._input)));
|
|
10420
10423
|
}
|
|
10421
10424
|
});
|
|
10422
10425
|
function qs() {
|
|
@@ -10467,9 +10470,9 @@ var io = { exports: {} };
|
|
|
10467
10470
|
}
|
|
10468
10471
|
});
|
|
10469
10472
|
function hs() {
|
|
10470
|
-
|
|
10473
|
+
Ut.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
|
|
10471
10474
|
}
|
|
10472
|
-
x(hs,
|
|
10475
|
+
x(hs, Ut, {
|
|
10473
10476
|
/**
|
|
10474
10477
|
* @namespace
|
|
10475
10478
|
* @memberof PinchRecognizer
|
|
@@ -10488,7 +10491,7 @@ var io = { exports: {} };
|
|
|
10488
10491
|
// a multi-tap can be a bit off the initial position
|
|
10489
10492
|
},
|
|
10490
10493
|
getTouchAction: function() {
|
|
10491
|
-
return [
|
|
10494
|
+
return [Xs];
|
|
10492
10495
|
},
|
|
10493
10496
|
process: function(u) {
|
|
10494
10497
|
var d = this.options, v = u.pointers.length === d.pointers, _ = u.distance < d.threshold, I = u.deltaTime < d.time;
|
|
@@ -10502,8 +10505,8 @@ var io = { exports: {} };
|
|
|
10502
10505
|
var tt = this.count % d.taps;
|
|
10503
10506
|
if (tt === 0)
|
|
10504
10507
|
return this.hasRequireFailures() ? (this._timer = f(function() {
|
|
10505
|
-
this.state =
|
|
10506
|
-
}, d.interval, this), St) :
|
|
10508
|
+
this.state = Bt, this.tryEmit();
|
|
10509
|
+
}, d.interval, this), St) : Bt;
|
|
10507
10510
|
}
|
|
10508
10511
|
return It;
|
|
10509
10512
|
},
|
|
@@ -10516,13 +10519,13 @@ var io = { exports: {} };
|
|
|
10516
10519
|
clearTimeout(this._timer);
|
|
10517
10520
|
},
|
|
10518
10521
|
emit: function() {
|
|
10519
|
-
this.state ==
|
|
10522
|
+
this.state == Bt && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
|
|
10520
10523
|
}
|
|
10521
10524
|
});
|
|
10522
|
-
function
|
|
10523
|
-
return d = d || {}, d.recognizers = C(d.recognizers,
|
|
10525
|
+
function Xt(u, d) {
|
|
10526
|
+
return d = d || {}, d.recognizers = C(d.recognizers, Xt.defaults.preset), new Hs(u, d);
|
|
10524
10527
|
}
|
|
10525
|
-
|
|
10528
|
+
Xt.VERSION = "2.0.7", Xt.defaults = {
|
|
10526
10529
|
/**
|
|
10527
10530
|
* set if DOM events are being triggered.
|
|
10528
10531
|
* But this is slower and unused by simple implementations, so disabled by default.
|
|
@@ -10618,9 +10621,9 @@ var io = { exports: {} };
|
|
|
10618
10621
|
tapHighlightColor: "rgba(0,0,0,0)"
|
|
10619
10622
|
}
|
|
10620
10623
|
};
|
|
10621
|
-
var
|
|
10624
|
+
var Xo = 1, ni = 2;
|
|
10622
10625
|
function Hs(u, d) {
|
|
10623
|
-
this.options = P({},
|
|
10626
|
+
this.options = P({}, Xt.defaults, d || {}), this.options.inputTarget = this.options.inputTarget || u, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = u, this.input = yo(this), this.touchAction = new zs(this, this.options.touchAction), ii(this, !0), w(this.options.recognizers, function(v) {
|
|
10624
10627
|
var _ = this.add(new v[0](v[1]));
|
|
10625
10628
|
v[2] && _.recognizeWith(v[2]), v[3] && _.requireFailure(v[3]);
|
|
10626
10629
|
}, this);
|
|
@@ -10641,7 +10644,7 @@ var io = { exports: {} };
|
|
|
10641
10644
|
* @param {Boolean} [force]
|
|
10642
10645
|
*/
|
|
10643
10646
|
stop: function(u) {
|
|
10644
|
-
this.session.stopped = u ? ni :
|
|
10647
|
+
this.session.stopped = u ? ni : Xo;
|
|
10645
10648
|
},
|
|
10646
10649
|
/**
|
|
10647
10650
|
* run the recognizers!
|
|
@@ -10654,7 +10657,7 @@ var io = { exports: {} };
|
|
|
10654
10657
|
if (!d.stopped) {
|
|
10655
10658
|
this.touchAction.preventDefaults(u);
|
|
10656
10659
|
var v, _ = this.recognizers, I = d.curRecognizer;
|
|
10657
|
-
(!I || I && I.state &
|
|
10660
|
+
(!I || I && I.state & Bt) && (I = d.curRecognizer = null);
|
|
10658
10661
|
for (var k = 0; k < _.length; )
|
|
10659
10662
|
v = _[k], d.stopped !== ni && // 1
|
|
10660
10663
|
(!I || v == I || // 2
|
|
@@ -10667,7 +10670,7 @@ var io = { exports: {} };
|
|
|
10667
10670
|
* @returns {Recognizer|Null}
|
|
10668
10671
|
*/
|
|
10669
10672
|
get: function(u) {
|
|
10670
|
-
if (u instanceof
|
|
10673
|
+
if (u instanceof Ut)
|
|
10671
10674
|
return u;
|
|
10672
10675
|
for (var d = this.recognizers, v = 0; v < d.length; v++)
|
|
10673
10676
|
if (d[v].options.event == u)
|
|
@@ -10765,7 +10768,7 @@ var io = { exports: {} };
|
|
|
10765
10768
|
var v = e.createEvent("Event");
|
|
10766
10769
|
v.initEvent(u, !0, !0), v.gesture = d, d.target.dispatchEvent(v);
|
|
10767
10770
|
}
|
|
10768
|
-
P(
|
|
10771
|
+
P(Xt, {
|
|
10769
10772
|
INPUT_START: Q,
|
|
10770
10773
|
INPUT_MOVE: At,
|
|
10771
10774
|
INPUT_END: $,
|
|
@@ -10774,7 +10777,7 @@ var io = { exports: {} };
|
|
|
10774
10777
|
STATE_BEGAN: St,
|
|
10775
10778
|
STATE_CHANGED: ge,
|
|
10776
10779
|
STATE_ENDED: $t,
|
|
10777
|
-
STATE_RECOGNIZED:
|
|
10780
|
+
STATE_RECOGNIZED: Bt,
|
|
10778
10781
|
STATE_CANCELLED: Oe,
|
|
10779
10782
|
STATE_FAILED: It,
|
|
10780
10783
|
DIRECTION_NONE: Qe,
|
|
@@ -10784,16 +10787,16 @@ var io = { exports: {} };
|
|
|
10784
10787
|
DIRECTION_DOWN: ke,
|
|
10785
10788
|
DIRECTION_HORIZONTAL: Dt,
|
|
10786
10789
|
DIRECTION_VERTICAL: oe,
|
|
10787
|
-
DIRECTION_ALL:
|
|
10790
|
+
DIRECTION_ALL: Un,
|
|
10788
10791
|
Manager: Hs,
|
|
10789
10792
|
Input: vt,
|
|
10790
10793
|
TouchAction: zs,
|
|
10791
10794
|
TouchInput: ns,
|
|
10792
10795
|
MouseInput: ss,
|
|
10793
|
-
PointerEventInput:
|
|
10794
|
-
TouchMouseInput:
|
|
10796
|
+
PointerEventInput: Bs,
|
|
10797
|
+
TouchMouseInput: Us,
|
|
10795
10798
|
SingleTouchInput: $n,
|
|
10796
|
-
Recognizer:
|
|
10799
|
+
Recognizer: Ut,
|
|
10797
10800
|
AttrRecognizer: _t,
|
|
10798
10801
|
Tap: hs,
|
|
10799
10802
|
Pan: as,
|
|
@@ -10812,13 +10815,13 @@ var io = { exports: {} };
|
|
|
10812
10815
|
prefixed: ct
|
|
10813
10816
|
});
|
|
10814
10817
|
var Go = typeof t < "u" ? t : typeof self < "u" ? self : {};
|
|
10815
|
-
Go.Hammer =
|
|
10816
|
-
return
|
|
10817
|
-
}) : n.exports ? n.exports =
|
|
10818
|
+
Go.Hammer = Xt, typeof i == "function" && i.amd ? i(function() {
|
|
10819
|
+
return Xt;
|
|
10820
|
+
}) : n.exports ? n.exports = Xt : t[s] = Xt;
|
|
10818
10821
|
})(window, document, "Hammer");
|
|
10819
10822
|
})(io);
|
|
10820
|
-
var
|
|
10821
|
-
const zc = /* @__PURE__ */ Ki(
|
|
10823
|
+
var Xc = io.exports;
|
|
10824
|
+
const zc = /* @__PURE__ */ Ki(Xc);
|
|
10822
10825
|
function nf() {
|
|
10823
10826
|
const n = window.screen;
|
|
10824
10827
|
return {
|
|
@@ -12708,7 +12711,7 @@ class xf extends q {
|
|
|
12708
12711
|
toSVGPathData() {
|
|
12709
12712
|
const t = [["m", 0, -this.r]];
|
|
12710
12713
|
for (let e = 0; e < 6; e += 1) {
|
|
12711
|
-
const s = 288 + e * 144, i = this.r * Math.cos(
|
|
12714
|
+
const s = 288 + e * 144, i = this.r * Math.cos(B(s)), r = this.r * Math.sin(B(s));
|
|
12712
12715
|
t.push(["l", i, r]);
|
|
12713
12716
|
}
|
|
12714
12717
|
return t;
|
|
@@ -12927,12 +12930,12 @@ class Tf extends ht {
|
|
|
12927
12930
|
frameUpdate(t) {
|
|
12928
12931
|
this.text && !this.defaultShowText && (this.line12.isShow = this.sectorArc.isMouseIn, this.line23.isShow = this.sectorArc.isMouseIn, this.textShape.isShow = this.sectorArc.isMouseIn);
|
|
12929
12932
|
const e = this.startDegree + (this.endDegree - this.startDegree) / 2, { dx: s, dy: i } = jt(
|
|
12930
|
-
|
|
12933
|
+
B(e),
|
|
12931
12934
|
this.sectorArc.radius + this.p1Offset
|
|
12932
12935
|
);
|
|
12933
12936
|
this.p1.x = this.x + s, this.p1.y = this.y + i;
|
|
12934
12937
|
const { dx: r, dy: o } = jt(
|
|
12935
|
-
|
|
12938
|
+
B(e),
|
|
12936
12939
|
this.sectorArc.radius + this.p1Offset + this.p2Offset
|
|
12937
12940
|
);
|
|
12938
12941
|
this.p2.x = this.x + r, this.p2.y = this.y + o, this.line12.x = this.p1.x, this.line12.y = this.p1.y, this.line12.toX = this.p2.x, this.line12.toY = this.p2.y, this.direction = this.p1.x > this.x ? 1 : -1, this.p3.x = this.p2.x + this.direction * this.p3Offset, this.p3.y = this.p2.y, this.p4.x = this.p3.x + this.direction * this.p4Offset, this.p4.y = this.p3.y, this.line23.x = this.p2.x, this.line23.y = this.p2.y, this.line23.toX = this.p3.x, this.line23.toY = this.p3.y, this.textShape.x = this.p4.x, this.textShape.y = this.p4.y, this.textShape.setAttr("textAnchor", this.direction == 1 ? "start" : "end"), this.sectorArc.isMouseIn ? (this.tipShape.isShow = !0, this.tipShape.x = t.x, this.tipShape.y = t.y) : (this.tipShape.isShow = !1, this.tipShape.x = t.x, this.tipShape.y = t.y);
|
|
@@ -12965,9 +12968,9 @@ class Kc extends q {
|
|
|
12965
12968
|
}
|
|
12966
12969
|
toSVGPathData() {
|
|
12967
12970
|
const { dx: t, dy: e } = jt(
|
|
12968
|
-
|
|
12971
|
+
B(this.startDegree),
|
|
12969
12972
|
this.radius
|
|
12970
|
-
), { dx: s, dy: i } = jt(
|
|
12973
|
+
), { dx: s, dy: i } = jt(B(this.endDegree), this.radius);
|
|
12971
12974
|
return [
|
|
12972
12975
|
["m", 0, 0],
|
|
12973
12976
|
["l", t, e],
|
|
@@ -12989,8 +12992,8 @@ class Kc extends q {
|
|
|
12989
12992
|
0,
|
|
12990
12993
|
0,
|
|
12991
12994
|
this.radius,
|
|
12992
|
-
|
|
12993
|
-
|
|
12995
|
+
B(this.startDegree),
|
|
12996
|
+
B(this.endDegree),
|
|
12994
12997
|
!1
|
|
12995
12998
|
), t.closePath();
|
|
12996
12999
|
}
|
|
@@ -13118,8 +13121,8 @@ class Ef extends ht {
|
|
|
13118
13121
|
}
|
|
13119
13122
|
getPin() {
|
|
13120
13123
|
return {
|
|
13121
|
-
x: this.controlPoint.x + Math.cos(
|
|
13122
|
-
y: this.controlPoint.y + Math.sin(
|
|
13124
|
+
x: this.controlPoint.x + Math.cos(B(this.controlPoint.degree)) * this.width,
|
|
13125
|
+
y: this.controlPoint.y + Math.sin(B(this.controlPoint.degree)) * this.width
|
|
13123
13126
|
};
|
|
13124
13127
|
}
|
|
13125
13128
|
}
|
|
@@ -13132,7 +13135,7 @@ class Yi extends q {
|
|
|
13132
13135
|
constructor(t) {
|
|
13133
13136
|
super(t), this.extendDegree = t?.extendDegree || 0, this.x = (t.x || 0) + t.width / 2;
|
|
13134
13137
|
const e = Math.min(t.width / 2, t.height) - t.lineWidth;
|
|
13135
|
-
this.radius = e - e * Math.abs(Math.sin(
|
|
13138
|
+
this.radius = e - e * Math.abs(Math.sin(B(this.extendDegree))), this.y = (t.y || 0) + t.height - t.lineWidth - this.radius * Math.abs(Math.sin(B(this.extendDegree))), this.diffDegree = t.endDegree - t.startDegree, this.startDegree = 180 + t.startDegree - this.extendDegree, this.endDegree = 180 + t.endDegree + this.extendDegree, this.setAttr({
|
|
13136
13139
|
"stroke-linecap": "round",
|
|
13137
13140
|
"stroke-width": String(t.lineWidth),
|
|
13138
13141
|
stroke: t.color || "none"
|
|
@@ -13143,9 +13146,9 @@ class Yi extends q {
|
|
|
13143
13146
|
}
|
|
13144
13147
|
toSVGPathData() {
|
|
13145
13148
|
const { dx: t, dy: e } = jt(
|
|
13146
|
-
|
|
13149
|
+
B(this.startDegree),
|
|
13147
13150
|
this.radius
|
|
13148
|
-
), { dx: s, dy: i } = jt(
|
|
13151
|
+
), { dx: s, dy: i } = jt(B(this.endDegree), this.radius);
|
|
13149
13152
|
return [
|
|
13150
13153
|
["m", t, e],
|
|
13151
13154
|
[
|
|
@@ -13165,8 +13168,8 @@ class Yi extends q {
|
|
|
13165
13168
|
0,
|
|
13166
13169
|
0,
|
|
13167
13170
|
this.radius,
|
|
13168
|
-
|
|
13169
|
-
|
|
13171
|
+
B(this.startDegree),
|
|
13172
|
+
B(this.endDegree),
|
|
13170
13173
|
!1
|
|
13171
13174
|
);
|
|
13172
13175
|
}
|
|
@@ -13393,12 +13396,12 @@ class Df extends ht {
|
|
|
13393
13396
|
gravity: 1,
|
|
13394
13397
|
drift: 0,
|
|
13395
13398
|
ticks: 200,
|
|
13396
|
-
colors:
|
|
13399
|
+
colors: Uc,
|
|
13397
13400
|
scalar: 1,
|
|
13398
13401
|
flat: !1
|
|
13399
13402
|
},
|
|
13400
13403
|
s || {}
|
|
13401
|
-
), x =
|
|
13404
|
+
), x = B(h), g = B(c);
|
|
13402
13405
|
let p = a;
|
|
13403
13406
|
for (; p--; ) {
|
|
13404
13407
|
const C = P[p % P.length], S = new i({
|
|
@@ -13661,11 +13664,11 @@ function sl(n) {
|
|
|
13661
13664
|
function kf(n) {
|
|
13662
13665
|
return window.URL.revokeObjectURL(n);
|
|
13663
13666
|
}
|
|
13664
|
-
const
|
|
13667
|
+
const Bi = new de();
|
|
13665
13668
|
async function nl(n, t = 6e4) {
|
|
13666
13669
|
const e = typeof n == "string" ? n : sl(n);
|
|
13667
13670
|
return new Promise((s, i) => {
|
|
13668
|
-
const r =
|
|
13671
|
+
const r = Bi.get(e);
|
|
13669
13672
|
if (r)
|
|
13670
13673
|
return s(r);
|
|
13671
13674
|
const o = new Image();
|
|
@@ -13678,7 +13681,7 @@ async function nl(n, t = 6e4) {
|
|
|
13678
13681
|
imageData: Oc(o),
|
|
13679
13682
|
element: o
|
|
13680
13683
|
};
|
|
13681
|
-
|
|
13684
|
+
Bi.set(e, f), s(f), o.onerror = o.onload = null;
|
|
13682
13685
|
}, o.onerror = (h) => {
|
|
13683
13686
|
clearTimeout(a), i(h);
|
|
13684
13687
|
}, o.src = e;
|
|
@@ -13831,7 +13834,7 @@ async function Yf(n, t = 6e4) {
|
|
|
13831
13834
|
document.getElementsByTagName("head")[0].appendChild(i);
|
|
13832
13835
|
});
|
|
13833
13836
|
}
|
|
13834
|
-
function
|
|
13837
|
+
function Bf() {
|
|
13835
13838
|
return new Promise((n) => {
|
|
13836
13839
|
const t = Array.from(
|
|
13837
13840
|
document.querySelectorAll("link[rel=stylesheet]")
|
|
@@ -13845,7 +13848,7 @@ function Uf() {
|
|
|
13845
13848
|
});
|
|
13846
13849
|
});
|
|
13847
13850
|
}
|
|
13848
|
-
function
|
|
13851
|
+
function Ui(n, t) {
|
|
13849
13852
|
const e = document.createElement("a");
|
|
13850
13853
|
e.style.visibility = "hidden", e.download = t, typeof n == "string" ? e.href = n : e.href = window.URL.createObjectURL(n), e.click();
|
|
13851
13854
|
}
|
|
@@ -13909,13 +13912,13 @@ async function ol(n, t = {
|
|
|
13909
13912
|
o
|
|
13910
13913
|
);
|
|
13911
13914
|
}
|
|
13912
|
-
const
|
|
13913
|
-
async function
|
|
13915
|
+
const Xi = new de(), hn = new de();
|
|
13916
|
+
async function Uf(n, t = {
|
|
13914
13917
|
responseType: "json"
|
|
13915
13918
|
}) {
|
|
13916
13919
|
const e = On(n, t);
|
|
13917
13920
|
try {
|
|
13918
|
-
const s =
|
|
13921
|
+
const s = Xi.get(e);
|
|
13919
13922
|
if (s)
|
|
13920
13923
|
return s;
|
|
13921
13924
|
const i = hn.get(e);
|
|
@@ -13924,11 +13927,11 @@ async function Xf(n, t = {
|
|
|
13924
13927
|
const r = ol(n, t);
|
|
13925
13928
|
hn.set(e, r);
|
|
13926
13929
|
const o = await r;
|
|
13927
|
-
return
|
|
13930
|
+
return Xi.set(e, o), hn.delete(e), o;
|
|
13928
13931
|
} catch {
|
|
13929
13932
|
}
|
|
13930
13933
|
}
|
|
13931
|
-
function
|
|
13934
|
+
function Xf(n, t = {
|
|
13932
13935
|
responseType: "json"
|
|
13933
13936
|
}) {
|
|
13934
13937
|
const e = vn.get(On(n, t));
|
|
@@ -14642,7 +14645,7 @@ function ld(n = Yn().search) {
|
|
|
14642
14645
|
const ud = (n = window.location.href) => JSON.parse(
|
|
14643
14646
|
'{"' + decodeURI(n.split("?")[1]).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}'
|
|
14644
14647
|
);
|
|
14645
|
-
function
|
|
14648
|
+
function Bn(n) {
|
|
14646
14649
|
return "?" + Object.entries(n).map(([t, e]) => `${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&");
|
|
14647
14650
|
}
|
|
14648
14651
|
function ml(n) {
|
|
@@ -14654,13 +14657,13 @@ function pl(n, t) {
|
|
|
14654
14657
|
return n.replace(/(?:\?.*)?$/, t.replace(/^[&?]/, "?"));
|
|
14655
14658
|
}
|
|
14656
14659
|
function fd(n, t) {
|
|
14657
|
-
return pl(n,
|
|
14660
|
+
return pl(n, Bn(t));
|
|
14658
14661
|
}
|
|
14659
14662
|
function mo(n, t) {
|
|
14660
14663
|
return n + t.replace(/^[&?]/, n.indexOf("?") >= 0 ? "&" : "?");
|
|
14661
14664
|
}
|
|
14662
14665
|
function dd(n, t) {
|
|
14663
|
-
return mo(n,
|
|
14666
|
+
return mo(n, Bn(t));
|
|
14664
14667
|
}
|
|
14665
14668
|
class md {
|
|
14666
14669
|
worker;
|
|
@@ -14857,7 +14860,7 @@ function gd(n, t) {
|
|
|
14857
14860
|
switch (w) {
|
|
14858
14861
|
case "GET":
|
|
14859
14862
|
let x = "";
|
|
14860
|
-
r instanceof FormData ? x = ml(r) : x =
|
|
14863
|
+
r instanceof FormData ? x = ml(r) : x = Bn(r), y.open("GET", mo(n, x), !0), b(), y.send(null);
|
|
14861
14864
|
break;
|
|
14862
14865
|
default:
|
|
14863
14866
|
y.open(w, n, !0), b(), m ? y.sendAsBinary(o) : E ? y.send(JSON.stringify(r)) : P ? y.send(
|
|
@@ -14969,7 +14972,7 @@ class wd {
|
|
|
14969
14972
|
this.currentEnableDragMouseInShape ? (this.app.container.style.cursor = "grab", this.isMouseDown && (this.app.container.style.cursor = "grabbing")) : this.currentMouseInShape ? this.app.container.style.cursor = "pointer" : this.app.container.style.cursor = "default";
|
|
14970
14973
|
}
|
|
14971
14974
|
transformCtxBaseOnShape(t) {
|
|
14972
|
-
t.usePathDtoCanvasContext || (this.ctx.translate(t.x, t.y), this.ctx.rotate(
|
|
14975
|
+
t.usePathDtoCanvasContext || (this.ctx.translate(t.x, t.y), this.ctx.rotate(B(t.degree), t.cX, t.cY), this.ctx.scale(t.scalarX, t.scalarY, t.cX, t.cY));
|
|
14973
14976
|
}
|
|
14974
14977
|
_addDrawShape(t) {
|
|
14975
14978
|
this.shapes.push(t), t instanceof ht && t.shapes.forEach((e) => {
|
|
@@ -15415,13 +15418,13 @@ function Fd(n) {
|
|
|
15415
15418
|
function Yd(n) {
|
|
15416
15419
|
wx.downloadVoice(n);
|
|
15417
15420
|
}
|
|
15418
|
-
function
|
|
15421
|
+
function Bd(n) {
|
|
15419
15422
|
wx.translateVoice(n);
|
|
15420
15423
|
}
|
|
15421
|
-
function
|
|
15424
|
+
function Ud(n) {
|
|
15422
15425
|
wx.getNetworkType(n);
|
|
15423
15426
|
}
|
|
15424
|
-
function
|
|
15427
|
+
function Xd(n) {
|
|
15425
15428
|
wx.openLocation(n);
|
|
15426
15429
|
}
|
|
15427
15430
|
function zd(n) {
|
|
@@ -15704,7 +15707,7 @@ export {
|
|
|
15704
15707
|
rd as MVVM,
|
|
15705
15708
|
dt as Matrix,
|
|
15706
15709
|
wt as Matrix3D,
|
|
15707
|
-
|
|
15710
|
+
Uc as NormalColors,
|
|
15708
15711
|
tm as Pagination,
|
|
15709
15712
|
ee as Point,
|
|
15710
15713
|
fs as Point3D,
|
|
@@ -15731,7 +15734,7 @@ export {
|
|
|
15731
15734
|
Mn as Timeline,
|
|
15732
15735
|
Zc as Tip,
|
|
15733
15736
|
Sf as Tree,
|
|
15734
|
-
|
|
15737
|
+
Br as Tween,
|
|
15735
15738
|
bd as WebGLRenderer,
|
|
15736
15739
|
xd as WebRTCClient,
|
|
15737
15740
|
od as WebSocketClient,
|
|
@@ -15770,7 +15773,7 @@ export {
|
|
|
15770
15773
|
nc as canDrawBitmap,
|
|
15771
15774
|
ql as canUsePaths,
|
|
15772
15775
|
sc as canUseWorker,
|
|
15773
|
-
|
|
15776
|
+
Xf as cancelFetch,
|
|
15774
15777
|
$u as changeBrightness,
|
|
15775
15778
|
Wu as changeDiaphaneity,
|
|
15776
15779
|
Hu as changeSize,
|
|
@@ -15835,7 +15838,7 @@ export {
|
|
|
15835
15838
|
Yn as getURL,
|
|
15836
15839
|
lf as getVerticalScrollPercentInPage,
|
|
15837
15840
|
of as getViewportSize,
|
|
15838
|
-
|
|
15841
|
+
Xr as getVnode,
|
|
15839
15842
|
Fc as gifImage,
|
|
15840
15843
|
we as h,
|
|
15841
15844
|
Nn as hFromEl,
|
|
@@ -15852,13 +15855,13 @@ export {
|
|
|
15852
15855
|
Lc as injectStyle,
|
|
15853
15856
|
vd as injectWxJsConfig,
|
|
15854
15857
|
tc as isAliBrowser,
|
|
15855
|
-
|
|
15858
|
+
Xl as isAliMiniProgram,
|
|
15856
15859
|
Zh as isAndroid,
|
|
15857
15860
|
Nl as isAppleDevice,
|
|
15858
15861
|
Vl as isBrowserSupportFileAPI,
|
|
15859
15862
|
jl as isElement,
|
|
15860
15863
|
Yl as isIE,
|
|
15861
|
-
|
|
15864
|
+
Bl as isIE9or10,
|
|
15862
15865
|
_r as isIOS,
|
|
15863
15866
|
Ar as isMacOS,
|
|
15864
15867
|
Fl as isMobile,
|
|
@@ -15866,7 +15869,7 @@ export {
|
|
|
15866
15869
|
Ks as isNative,
|
|
15867
15870
|
cd as isURL,
|
|
15868
15871
|
Qh as isWxBrowser,
|
|
15869
|
-
|
|
15872
|
+
Ul as isWxMiniProgram,
|
|
15870
15873
|
Gu as jpgToPng,
|
|
15871
15874
|
Eu as leftRotate,
|
|
15872
15875
|
kn as length,
|
|
@@ -15893,7 +15896,7 @@ export {
|
|
|
15893
15896
|
Hl as prefixes,
|
|
15894
15897
|
ju as radiusClip,
|
|
15895
15898
|
Rs as readFileInBrowser,
|
|
15896
|
-
|
|
15899
|
+
Bn as recordToSearch,
|
|
15897
15900
|
qu as rectClip,
|
|
15898
15901
|
jf as removeClass,
|
|
15899
15902
|
Dr as requestAnimationFrameCycle,
|
|
@@ -15915,7 +15918,7 @@ export {
|
|
|
15915
15918
|
ad as setRem,
|
|
15916
15919
|
Hr as setStyle,
|
|
15917
15920
|
Ci as setTimeoutAccurate,
|
|
15918
|
-
|
|
15921
|
+
Xu as sharpen,
|
|
15919
15922
|
hl as showEl,
|
|
15920
15923
|
Lh as signature,
|
|
15921
15924
|
Al as simulateMouseEventFromTouch,
|
|
@@ -15924,14 +15927,14 @@ export {
|
|
|
15924
15927
|
Iu as toBlackAndWhite,
|
|
15925
15928
|
Ru as toBlue,
|
|
15926
15929
|
Fu as toBlueAndGreen,
|
|
15927
|
-
|
|
15930
|
+
Uu as toBlueAndGrey,
|
|
15928
15931
|
at as toDegree,
|
|
15929
15932
|
Lu as toGreen,
|
|
15930
|
-
|
|
15933
|
+
Bu as toGreenAndGrey,
|
|
15931
15934
|
Au as toGrey,
|
|
15932
15935
|
Du as toGrey2,
|
|
15933
15936
|
Mu as toOpposite,
|
|
15934
|
-
|
|
15937
|
+
B as toRadian,
|
|
15935
15938
|
ku as toRed,
|
|
15936
15939
|
Nu as toRedAndBlue,
|
|
15937
15940
|
Ou as toRedAndGreen,
|
|
@@ -15941,7 +15944,7 @@ export {
|
|
|
15941
15944
|
ru as transformPath2D,
|
|
15942
15945
|
dl as trimHash,
|
|
15943
15946
|
le as useAttribute,
|
|
15944
|
-
|
|
15947
|
+
Ui as useClickA,
|
|
15945
15948
|
ed as useClipboard,
|
|
15946
15949
|
Sl as useCookie,
|
|
15947
15950
|
Gf as useDataset,
|
|
@@ -15949,7 +15952,7 @@ export {
|
|
|
15949
15952
|
Ae as useEmit,
|
|
15950
15953
|
pt as useEventListener,
|
|
15951
15954
|
ol as useFetch,
|
|
15952
|
-
|
|
15955
|
+
Uf as useFetchCache,
|
|
15953
15956
|
_l as useFireEvent,
|
|
15954
15957
|
uu as useHistoryRouter,
|
|
15955
15958
|
ao as useHotKey,
|
|
@@ -15958,7 +15961,7 @@ export {
|
|
|
15958
15961
|
nl as useLoadImage,
|
|
15959
15962
|
Yf as useLoadLink,
|
|
15960
15963
|
Ff as useLoadScript,
|
|
15961
|
-
|
|
15964
|
+
Bh as useLocalStorage,
|
|
15962
15965
|
fo as useLocale,
|
|
15963
15966
|
sd as useLocation,
|
|
15964
15967
|
$h as useMedia,
|
|
@@ -15976,18 +15979,18 @@ export {
|
|
|
15976
15979
|
nd as useVibrate,
|
|
15977
15980
|
gu as useVisible,
|
|
15978
15981
|
be as useWindow,
|
|
15979
|
-
|
|
15982
|
+
Bf as waitForStyleSheetsLoaded,
|
|
15980
15983
|
El as writeToIndexDB,
|
|
15981
15984
|
Pd as wxJsChooseImage,
|
|
15982
15985
|
Ad as wxJsDownloadImage,
|
|
15983
15986
|
Yd as wxJsDownloadVoice,
|
|
15984
15987
|
Dd as wxJsGetLocalImgData,
|
|
15985
15988
|
zd as wxJsGetLocation,
|
|
15986
|
-
|
|
15989
|
+
Ud as wxJsGetNetworkType,
|
|
15987
15990
|
qd as wxJsLogin,
|
|
15988
15991
|
Nd as wxJsOnVoicePlayEnd,
|
|
15989
15992
|
kd as wxJsOnVoiceRecordEnd,
|
|
15990
|
-
|
|
15993
|
+
Xd as wxJsOpenLocation,
|
|
15991
15994
|
Rd as wxJsPauseVoice,
|
|
15992
15995
|
Vd as wxJsPay,
|
|
15993
15996
|
Ld as wxJsPlayVoice,
|
|
@@ -15996,7 +15999,7 @@ export {
|
|
|
15996
15999
|
Id as wxJsStartRecord,
|
|
15997
16000
|
Md as wxJsStopRecord,
|
|
15998
16001
|
Od as wxJsStopVoice,
|
|
15999
|
-
|
|
16002
|
+
Bd as wxJsTranslateVoice,
|
|
16000
16003
|
Td as wxJsUpdateAppMessageShareData,
|
|
16001
16004
|
Cd as wxJsUpdateTimelineShareData,
|
|
16002
16005
|
_d as wxJsUploadImage,
|