@zyzgroup/core-web 0.1.82 → 0.1.84
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/zyzgroup_core_web.iife.js +14 -14
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +402 -404
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +14 -14
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/WebSocketClient.d.ts.map +1 -1
|
@@ -290,11 +290,11 @@ function Da(n) {
|
|
|
290
290
|
}
|
|
291
291
|
return t;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Vu(n) {
|
|
294
294
|
return n.slice(0);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
const e = t ?
|
|
296
|
+
function $u(n, t = !0) {
|
|
297
|
+
const e = t ? Vu(n.buffer) : n.buffer;
|
|
298
298
|
return new n.constructor(
|
|
299
299
|
e,
|
|
300
300
|
n.byteOffset,
|
|
@@ -318,7 +318,7 @@ function sl(n) {
|
|
|
318
318
|
function nl(n) {
|
|
319
319
|
return !!n && typeof n == "object";
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Ds(n) {
|
|
322
322
|
return nl(n) && !sl(n);
|
|
323
323
|
}
|
|
324
324
|
function rl(n) {
|
|
@@ -328,20 +328,20 @@ function rl(n) {
|
|
|
328
328
|
return t;
|
|
329
329
|
}
|
|
330
330
|
function Ts(n, t, e = !1) {
|
|
331
|
-
if (
|
|
331
|
+
if (Ds(n) && Ds(t))
|
|
332
332
|
for (const s in t)
|
|
333
|
-
|
|
333
|
+
Ds(t[s]) ? (typeof n[s] > "u" && Object.assign(n, { [s]: {} }), Ts(n[s], t[s], e)) : (e || typeof n[s] > "u") && Object.assign(n, { [s]: t[s] });
|
|
334
334
|
return n;
|
|
335
335
|
}
|
|
336
336
|
function Ra(n, ...t) {
|
|
337
337
|
return new n.constructor(...t);
|
|
338
338
|
}
|
|
339
339
|
function hs(n) {
|
|
340
|
-
if (!
|
|
340
|
+
if (!Ds(n))
|
|
341
341
|
return "" + n;
|
|
342
342
|
const t = [];
|
|
343
343
|
return rl(n).forEach((e) => {
|
|
344
|
-
|
|
344
|
+
Ds(n[e]) ? t.push(hs(n[e])) : t.push(`${e}: ${n[e]}`);
|
|
345
345
|
}), `{ ${t.join(", ")} }`;
|
|
346
346
|
}
|
|
347
347
|
function il(n, t = "", e = ["", "sign", "key"]) {
|
|
@@ -406,13 +406,13 @@ function z(n, t, e) {
|
|
|
406
406
|
function hl(n, t) {
|
|
407
407
|
return (n % t + t) % t;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function vn(n, t, e) {
|
|
410
410
|
return (1 - e) * n + e * t;
|
|
411
411
|
}
|
|
412
412
|
function cl(n, t, e) {
|
|
413
413
|
const s = n.length, r = new Array(s);
|
|
414
414
|
for (let i = 0; i < s; i++)
|
|
415
|
-
r[i] = Z(
|
|
415
|
+
r[i] = Z(vn(n[i], t[i], e), 6);
|
|
416
416
|
return r;
|
|
417
417
|
}
|
|
418
418
|
const ul = (n, t, e) => (s) => {
|
|
@@ -725,7 +725,7 @@ function Na(n) {
|
|
|
725
725
|
function oe(n) {
|
|
726
726
|
Na({ level: "info", msg: n }), za() && (!console || typeof console != "object" || typeof console.log != "function" || console.log(n));
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function _n(n) {
|
|
729
729
|
Na({ level: "warn", msg: n }), za() && (!console || typeof console != "object" || typeof console.warn != "function" || console.warn(n));
|
|
730
730
|
}
|
|
731
731
|
const vo = () => {
|
|
@@ -1036,7 +1036,7 @@ var Ml = function() {
|
|
|
1036
1036
|
try {
|
|
1037
1037
|
e.next(t);
|
|
1038
1038
|
} catch (s) {
|
|
1039
|
-
|
|
1039
|
+
hn(s);
|
|
1040
1040
|
}
|
|
1041
1041
|
}, n.prototype.error = function(t) {
|
|
1042
1042
|
var e = this.partialObserver;
|
|
@@ -1044,17 +1044,17 @@ var Ml = function() {
|
|
|
1044
1044
|
try {
|
|
1045
1045
|
e.error(t);
|
|
1046
1046
|
} catch (s) {
|
|
1047
|
-
|
|
1047
|
+
hn(s);
|
|
1048
1048
|
}
|
|
1049
1049
|
else
|
|
1050
|
-
|
|
1050
|
+
hn(t);
|
|
1051
1051
|
}, n.prototype.complete = function() {
|
|
1052
1052
|
var t = this.partialObserver;
|
|
1053
1053
|
if (t.complete)
|
|
1054
1054
|
try {
|
|
1055
1055
|
t.complete();
|
|
1056
1056
|
} catch (e) {
|
|
1057
|
-
|
|
1057
|
+
hn(e);
|
|
1058
1058
|
}
|
|
1059
1059
|
}, n;
|
|
1060
1060
|
}(), Fr = function(n) {
|
|
@@ -1081,7 +1081,7 @@ var Ml = function() {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
return t;
|
|
1083
1083
|
}(wi);
|
|
1084
|
-
function
|
|
1084
|
+
function hn(n) {
|
|
1085
1085
|
Tl(n);
|
|
1086
1086
|
}
|
|
1087
1087
|
function Al(n) {
|
|
@@ -1211,14 +1211,14 @@ function Ol(n) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
}, t;
|
|
1213
1213
|
})(wi);
|
|
1214
|
-
let
|
|
1214
|
+
let Ls;
|
|
1215
1215
|
function Zt(n) {
|
|
1216
|
-
|
|
1216
|
+
Ls = n, n(), Ls = null;
|
|
1217
1217
|
}
|
|
1218
1218
|
class zl {
|
|
1219
1219
|
subscribers = /* @__PURE__ */ new Set();
|
|
1220
1220
|
add() {
|
|
1221
|
-
|
|
1221
|
+
Ls && !this.subscribers.has(Ls) && this.subscribers.add(Ls);
|
|
1222
1222
|
}
|
|
1223
1223
|
notify() {
|
|
1224
1224
|
this.subscribers.forEach((t) => t());
|
|
@@ -1329,7 +1329,7 @@ function vi(n, t = !1) {
|
|
|
1329
1329
|
return new Proxy(n, e);
|
|
1330
1330
|
}
|
|
1331
1331
|
const Xa = vi;
|
|
1332
|
-
class
|
|
1332
|
+
class Vn {
|
|
1333
1333
|
events;
|
|
1334
1334
|
constructor() {
|
|
1335
1335
|
this.events = {};
|
|
@@ -1540,7 +1540,7 @@ function Ua(n, t = {}, e) {
|
|
|
1540
1540
|
function Ga(n) {
|
|
1541
1541
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1542
1542
|
}
|
|
1543
|
-
var
|
|
1543
|
+
var Va = { exports: {} };
|
|
1544
1544
|
(function(n, t) {
|
|
1545
1545
|
(function(e) {
|
|
1546
1546
|
n.exports = e();
|
|
@@ -1690,20 +1690,20 @@ var $a = { exports: {} };
|
|
|
1690
1690
|
return v ? g(w) : w;
|
|
1691
1691
|
}, b;
|
|
1692
1692
|
});
|
|
1693
|
-
})(
|
|
1694
|
-
var Gl =
|
|
1695
|
-
const
|
|
1696
|
-
function
|
|
1693
|
+
})(Va);
|
|
1694
|
+
var Gl = Va.exports;
|
|
1695
|
+
const Vl = /* @__PURE__ */ Ga(Gl);
|
|
1696
|
+
function $a(n, t) {
|
|
1697
1697
|
return function() {
|
|
1698
1698
|
return n.apply(t, arguments);
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
const { toString:
|
|
1702
|
-
const e =
|
|
1701
|
+
const { toString: $l } = Object.prototype, { getPrototypeOf: _i } = Object, $n = ((n) => (t) => {
|
|
1702
|
+
const e = $l.call(t);
|
|
1703
1703
|
return n[e] || (n[e] = e.slice(8, -1).toLowerCase());
|
|
1704
|
-
})(/* @__PURE__ */ Object.create(null)), Kt = (n) => (n = n.toLowerCase(), (t) =>
|
|
1704
|
+
})(/* @__PURE__ */ Object.create(null)), Kt = (n) => (n = n.toLowerCase(), (t) => $n(t) === n), qn = (n) => (t) => typeof t === n, { isArray: fs } = Array, Fs = qn("undefined");
|
|
1705
1705
|
function ql(n) {
|
|
1706
|
-
return n !== null && !
|
|
1706
|
+
return n !== null && !Fs(n) && n.constructor !== null && !Fs(n.constructor) && Ot(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
1707
1707
|
}
|
|
1708
1708
|
const qa = Kt("ArrayBuffer");
|
|
1709
1709
|
function jl(n) {
|
|
@@ -1711,13 +1711,13 @@ function jl(n) {
|
|
|
1711
1711
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(n) : t = n && n.buffer && qa(n.buffer), t;
|
|
1712
1712
|
}
|
|
1713
1713
|
const Hl = qn("string"), Ot = qn("function"), ja = qn("number"), jn = (n) => n !== null && typeof n == "object", Wl = (n) => n === !0 || n === !1, Cn = (n) => {
|
|
1714
|
-
if (
|
|
1714
|
+
if ($n(n) !== "object")
|
|
1715
1715
|
return !1;
|
|
1716
1716
|
const t = _i(n);
|
|
1717
1717
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
|
|
1718
1718
|
}, Zl = Kt("Date"), Jl = Kt("File"), Ql = Kt("Blob"), Kl = Kt("FileList"), tf = (n) => jn(n) && Ot(n.pipe), ef = (n) => {
|
|
1719
1719
|
let t;
|
|
1720
|
-
return n && (typeof FormData == "function" && n instanceof FormData || Ot(n.append) && ((t =
|
|
1720
|
+
return n && (typeof FormData == "function" && n instanceof FormData || Ot(n.append) && ((t = $n(n)) === "formdata" || // detect form-data instance
|
|
1721
1721
|
t === "object" && Ot(n.toString) && n.toString() === "[object FormData]"));
|
|
1722
1722
|
}, sf = Kt("URLSearchParams"), [nf, rf, of, af] = ["ReadableStream", "Request", "Response", "Headers"].map(Kt), hf = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1723
1723
|
function Vs(n, t, { allOwnKeys: e = !1 } = {}) {
|
|
@@ -1743,7 +1743,7 @@ function Ha(n, t) {
|
|
|
1743
1743
|
return r;
|
|
1744
1744
|
return null;
|
|
1745
1745
|
}
|
|
1746
|
-
const Fe = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Wa = (n) => !
|
|
1746
|
+
const Fe = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Wa = (n) => !Fs(n) && n !== Fe;
|
|
1747
1747
|
function Yr() {
|
|
1748
1748
|
const { caseless: n } = Wa(this) && this || {}, t = {}, e = (s, r) => {
|
|
1749
1749
|
const i = n && Ha(t, r) || r;
|
|
@@ -1754,7 +1754,7 @@ function Yr() {
|
|
|
1754
1754
|
return t;
|
|
1755
1755
|
}
|
|
1756
1756
|
const cf = (n, t, e, { allOwnKeys: s } = {}) => (Vs(t, (r, i) => {
|
|
1757
|
-
e && Ot(r) ? n[i] =
|
|
1757
|
+
e && Ot(r) ? n[i] = $a(r, e) : n[i] = r;
|
|
1758
1758
|
}, { allOwnKeys: s }), n), uf = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), lf = (n, t, e, s) => {
|
|
1759
1759
|
n.prototype = Object.create(t.prototype, s), n.prototype.constructor = n, Object.defineProperty(n, "super", {
|
|
1760
1760
|
value: t.prototype
|
|
@@ -1847,7 +1847,7 @@ const Ef = (n) => {
|
|
|
1847
1847
|
const i = fs(s) ? [] : {};
|
|
1848
1848
|
return Vs(s, (o, a) => {
|
|
1849
1849
|
const h = e(o, r + 1);
|
|
1850
|
-
!
|
|
1850
|
+
!Fs(h) && (i[a] = h);
|
|
1851
1851
|
}), t[r] = void 0, i;
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
@@ -1876,7 +1876,7 @@ const Ef = (n) => {
|
|
|
1876
1876
|
isRequest: rf,
|
|
1877
1877
|
isResponse: of,
|
|
1878
1878
|
isHeaders: af,
|
|
1879
|
-
isUndefined:
|
|
1879
|
+
isUndefined: Fs,
|
|
1880
1880
|
isDate: Zl,
|
|
1881
1881
|
isFile: Jl,
|
|
1882
1882
|
isBlob: Ql,
|
|
@@ -1893,7 +1893,7 @@ const Ef = (n) => {
|
|
|
1893
1893
|
stripBOM: uf,
|
|
1894
1894
|
inherits: lf,
|
|
1895
1895
|
toFlatObject: ff,
|
|
1896
|
-
kindOf:
|
|
1896
|
+
kindOf: $n,
|
|
1897
1897
|
kindOfTest: Kt,
|
|
1898
1898
|
endsWith: df,
|
|
1899
1899
|
toArray: mf,
|
|
@@ -2181,10 +2181,10 @@ function Gf(n, t) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
}, t));
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Vf(n) {
|
|
2185
2185
|
return M.matchAll(/\w+|\[(\w*)]/g, n).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function $f(n) {
|
|
2188
2188
|
const t = {}, e = Object.keys(n);
|
|
2189
2189
|
let s;
|
|
2190
2190
|
const r = e.length;
|
|
@@ -2199,12 +2199,12 @@ function rh(n) {
|
|
|
2199
2199
|
if (o === "__proto__")
|
|
2200
2200
|
return !0;
|
|
2201
2201
|
const a = Number.isFinite(+o), h = i >= e.length;
|
|
2202
|
-
return o = !o && M.isArray(r) ? r.length : o, h ? (M.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !M.isObject(r[o])) && (r[o] = []), t(e, s, r[o], i) && M.isArray(r[o]) && (r[o] =
|
|
2202
|
+
return o = !o && M.isArray(r) ? r.length : o, h ? (M.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !a) : ((!r[o] || !M.isObject(r[o])) && (r[o] = []), t(e, s, r[o], i) && M.isArray(r[o]) && (r[o] = $f(r[o])), !a);
|
|
2203
2203
|
}
|
|
2204
2204
|
if (M.isFormData(n) && M.isFunction(n.entries)) {
|
|
2205
2205
|
const e = {};
|
|
2206
2206
|
return M.forEachEntry(n, (s, r) => {
|
|
2207
|
-
t(
|
|
2207
|
+
t(Vf(s), r, e, 0);
|
|
2208
2208
|
}), e;
|
|
2209
2209
|
}
|
|
2210
2210
|
return null;
|
|
@@ -3283,7 +3283,7 @@ function vd(n) {
|
|
|
3283
3283
|
function _d(n) {
|
|
3284
3284
|
return M.isObject(n) && n.isAxiosError === !0;
|
|
3285
3285
|
}
|
|
3286
|
-
const
|
|
3286
|
+
const Vr = {
|
|
3287
3287
|
Continue: 100,
|
|
3288
3288
|
SwitchingProtocols: 101,
|
|
3289
3289
|
Processing: 102,
|
|
@@ -3348,12 +3348,12 @@ const $r = {
|
|
|
3348
3348
|
NotExtended: 510,
|
|
3349
3349
|
NetworkAuthenticationRequired: 511
|
|
3350
3350
|
};
|
|
3351
|
-
Object.entries(
|
|
3352
|
-
|
|
3351
|
+
Object.entries(Vr).forEach(([n, t]) => {
|
|
3352
|
+
Vr[t] = n;
|
|
3353
3353
|
});
|
|
3354
|
-
const Sd =
|
|
3354
|
+
const Sd = Vr;
|
|
3355
3355
|
function dh(n) {
|
|
3356
|
-
const t = new Pn(n), e =
|
|
3356
|
+
const t = new Pn(n), e = $a(Pn.prototype.request, t);
|
|
3357
3357
|
return M.extend(e, Pn.prototype, t, { allOwnKeys: !0 }), M.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(r) {
|
|
3358
3358
|
return dh(Ue(n, r));
|
|
3359
3359
|
}, e;
|
|
@@ -3588,7 +3588,7 @@ async function Ed(n, t = 1 * 1024 * 1024) {
|
|
|
3588
3588
|
(e, s) => xh(
|
|
3589
3589
|
e,
|
|
3590
3590
|
s,
|
|
3591
|
-
new
|
|
3591
|
+
new Vl.ArrayBuffer(),
|
|
3592
3592
|
n,
|
|
3593
3593
|
t,
|
|
3594
3594
|
0,
|
|
@@ -3750,7 +3750,7 @@ var wh = { exports: {} };
|
|
|
3750
3750
|
function U(p) {
|
|
3751
3751
|
return p.trim().split(/\s+/g);
|
|
3752
3752
|
}
|
|
3753
|
-
function
|
|
3753
|
+
function V(p, _, E) {
|
|
3754
3754
|
if (p.indexOf && !E)
|
|
3755
3755
|
return p.indexOf(_);
|
|
3756
3756
|
for (var P = 0; P < p.length; ) {
|
|
@@ -3766,7 +3766,7 @@ var wh = { exports: {} };
|
|
|
3766
3766
|
function K(p, _, E) {
|
|
3767
3767
|
for (var P = [], k = [], R = 0; R < p.length; ) {
|
|
3768
3768
|
var G = _ ? p[R][_] : p[R];
|
|
3769
|
-
|
|
3769
|
+
V(k, G) < 0 && P.push(p[R]), k[R] = G, R++;
|
|
3770
3770
|
}
|
|
3771
3771
|
return E && (_ ? P = P.sort(function(pt, Ct) {
|
|
3772
3772
|
return pt[_] > Ct[_];
|
|
@@ -3780,15 +3780,15 @@ var wh = { exports: {} };
|
|
|
3780
3780
|
}
|
|
3781
3781
|
return r;
|
|
3782
3782
|
}
|
|
3783
|
-
var
|
|
3783
|
+
var $t = 1;
|
|
3784
3784
|
function It() {
|
|
3785
|
-
return
|
|
3785
|
+
return $t++;
|
|
3786
3786
|
}
|
|
3787
3787
|
function Ft(p) {
|
|
3788
3788
|
var _ = p.ownerDocument || p;
|
|
3789
3789
|
return _.defaultView || _.parentWindow || t;
|
|
3790
3790
|
}
|
|
3791
|
-
var qt = /mobile|tablet|ip(ad|hone|od)|android/i, L = "ontouchstart" in t, I = J(t, "PointerEvent") !== r, Y = L && qt.test(navigator.userAgent), q = "touch", St = "pen", jt = "mouse",
|
|
3791
|
+
var qt = /mobile|tablet|ip(ad|hone|od)|android/i, L = "ontouchstart" in t, I = J(t, "PointerEvent") !== r, Y = L && qt.test(navigator.userAgent), q = "touch", St = "pen", jt = "mouse", Zs = "kinect", Js = 25, lt = 1, te = 2, tt = 4, yt = 8, He = 1, Ie = 2, De = 4, we = 8, A = 16, rt = Ie | De, Le = we | A, Zi = rt | Le, Ji = ["x", "y"], Qs = ["clientX", "clientY"];
|
|
3792
3792
|
function Yt(p, _) {
|
|
3793
3793
|
var E = this;
|
|
3794
3794
|
this.manager = p, this.callback = _, this.element = p.element, this.target = p.options.inputTarget, this.domHandler = function(P) {
|
|
@@ -3817,7 +3817,7 @@ var wh = { exports: {} };
|
|
|
3817
3817
|
};
|
|
3818
3818
|
function hu(p) {
|
|
3819
3819
|
var _, E = p.options.inputClass;
|
|
3820
|
-
return E ? _ = E : I ? _ = ir : Y ? _ =
|
|
3820
|
+
return E ? _ = E : I ? _ = ir : Y ? _ = en : L ? _ = or : _ = tn, new _(p, cu);
|
|
3821
3821
|
}
|
|
3822
3822
|
function cu(p, _, E) {
|
|
3823
3823
|
var P = E.pointers.length, k = E.changedPointers.length, R = _ & lt && P - k === 0, G = _ & (tt | yt) && P - k === 0;
|
|
@@ -3827,7 +3827,7 @@ var wh = { exports: {} };
|
|
|
3827
3827
|
var E = p.session, P = _.pointers, k = P.length;
|
|
3828
3828
|
E.firstInput || (E.firstInput = Qi(_)), k > 1 && !E.firstMultiple ? E.firstMultiple = Qi(_) : k === 1 && (E.firstMultiple = !1);
|
|
3829
3829
|
var R = E.firstInput, G = E.firstMultiple, ft = G ? G.center : R.center, pt = _.center = Ki(P);
|
|
3830
|
-
_.timeStamp = u(), _.deltaTime = _.timeStamp - R.timeStamp, _.angle = rr(ft, pt), _.distance =
|
|
3830
|
+
_.timeStamp = u(), _.deltaTime = _.timeStamp - R.timeStamp, _.angle = rr(ft, pt), _.distance = Ks(ft, pt), lu(E, _), _.offsetDirection = eo(_.deltaX, _.deltaY);
|
|
3831
3831
|
var Ct = to(_.deltaTime, _.deltaX, _.deltaY);
|
|
3832
3832
|
_.overallVelocityX = Ct.x, _.overallVelocityY = Ct.y, _.overallVelocity = c(Ct.x) > c(Ct.y) ? Ct.x : Ct.y, _.scale = G ? mu(G.pointers, P) : 1, _.rotation = G ? du(G.pointers, P) : 0, _.maxPointers = E.prevInput ? _.pointers.length > E.prevInput.maxPointers ? _.pointers.length : E.prevInput.maxPointers : _.pointers.length, fu(E, _);
|
|
3833
3833
|
var se = p.element;
|
|
@@ -3845,7 +3845,7 @@ var wh = { exports: {} };
|
|
|
3845
3845
|
}
|
|
3846
3846
|
function fu(p, _) {
|
|
3847
3847
|
var E = p.lastInterval || _, P = _.timeStamp - E.timeStamp, k, R, G, ft;
|
|
3848
|
-
if (_.eventType != yt && (P >
|
|
3848
|
+
if (_.eventType != yt && (P > Js || E.velocity === r)) {
|
|
3849
3849
|
var pt = _.deltaX - E.deltaX, Ct = _.deltaY - E.deltaY, se = to(P, pt, Ct);
|
|
3850
3850
|
R = se.x, G = se.y, k = c(se.x) > c(se.y) ? se.x : se.y, ft = eo(pt, Ct), p.lastInterval = _;
|
|
3851
3851
|
} else
|
|
@@ -3889,7 +3889,7 @@ var wh = { exports: {} };
|
|
|
3889
3889
|
function eo(p, _) {
|
|
3890
3890
|
return p === _ ? He : c(p) >= c(_) ? p < 0 ? Ie : De : _ < 0 ? we : A;
|
|
3891
3891
|
}
|
|
3892
|
-
function
|
|
3892
|
+
function Ks(p, _, E) {
|
|
3893
3893
|
E || (E = Ji);
|
|
3894
3894
|
var P = _[E[0]] - p[E[0]], k = _[E[1]] - p[E[1]];
|
|
3895
3895
|
return Math.sqrt(P * P + k * k);
|
|
@@ -3900,20 +3900,20 @@ var wh = { exports: {} };
|
|
|
3900
3900
|
return Math.atan2(k, P) * 180 / Math.PI;
|
|
3901
3901
|
}
|
|
3902
3902
|
function du(p, _) {
|
|
3903
|
-
return rr(_[1], _[0],
|
|
3903
|
+
return rr(_[1], _[0], Qs) + rr(p[1], p[0], Qs);
|
|
3904
3904
|
}
|
|
3905
3905
|
function mu(p, _) {
|
|
3906
|
-
return
|
|
3906
|
+
return Ks(_[0], _[1], Qs) / Ks(p[0], p[1], Qs);
|
|
3907
3907
|
}
|
|
3908
3908
|
var pu = {
|
|
3909
3909
|
mousedown: lt,
|
|
3910
3910
|
mousemove: te,
|
|
3911
3911
|
mouseup: tt
|
|
3912
3912
|
}, gu = "mousedown", yu = "mousemove mouseup";
|
|
3913
|
-
function
|
|
3913
|
+
function tn() {
|
|
3914
3914
|
this.evEl = gu, this.evWin = yu, this.pressed = !1, Yt.apply(this, arguments);
|
|
3915
3915
|
}
|
|
3916
|
-
v(
|
|
3916
|
+
v(tn, Yt, {
|
|
3917
3917
|
/**
|
|
3918
3918
|
* handle mouse events
|
|
3919
3919
|
* @param {Object} ev
|
|
@@ -3938,7 +3938,7 @@ var wh = { exports: {} };
|
|
|
3938
3938
|
2: q,
|
|
3939
3939
|
3: St,
|
|
3940
3940
|
4: jt,
|
|
3941
|
-
5:
|
|
3941
|
+
5: Zs
|
|
3942
3942
|
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
3943
3943
|
}, so = "pointerdown", no = "pointermove pointerup pointercancel";
|
|
3944
3944
|
t.MSPointerEvent && !t.PointerEvent && (so = "MSPointerDown", no = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
@@ -3951,7 +3951,7 @@ var wh = { exports: {} };
|
|
|
3951
3951
|
* @param {Object} ev
|
|
3952
3952
|
*/
|
|
3953
3953
|
handler: function(_) {
|
|
3954
|
-
var E = this.store, P = !1, k = _.type.toLowerCase().replace("ms", ""), R = xu[k], G = wu[_.pointerType] || _.pointerType, ft = G == q, pt =
|
|
3954
|
+
var E = this.store, P = !1, k = _.type.toLowerCase().replace("ms", ""), R = xu[k], G = wu[_.pointerType] || _.pointerType, ft = G == q, pt = V(E, _.pointerId, "pointerId");
|
|
3955
3955
|
R & lt && (_.button === 0 || ft) ? pt < 0 && (E.push(_), pt = E.length - 1) : R & (tt | yt) && (P = !0), !(pt < 0) && (E[pt] = _, this.callback(this.manager, R, {
|
|
3956
3956
|
pointers: E,
|
|
3957
3957
|
changedPointers: [_],
|
|
@@ -3993,10 +3993,10 @@ var wh = { exports: {} };
|
|
|
3993
3993
|
touchend: tt,
|
|
3994
3994
|
touchcancel: yt
|
|
3995
3995
|
}, Tu = "touchstart touchmove touchend touchcancel";
|
|
3996
|
-
function
|
|
3996
|
+
function en() {
|
|
3997
3997
|
this.evTarget = Tu, this.targetIds = {}, Yt.apply(this, arguments);
|
|
3998
3998
|
}
|
|
3999
|
-
v(
|
|
3999
|
+
v(en, Yt, {
|
|
4000
4000
|
handler: function(_) {
|
|
4001
4001
|
var E = Cu[_.type], P = Eu.call(this, _, E);
|
|
4002
4002
|
P && this.callback(this.manager, E, {
|
|
@@ -4030,7 +4030,7 @@ var wh = { exports: {} };
|
|
|
4030
4030
|
function or() {
|
|
4031
4031
|
Yt.apply(this, arguments);
|
|
4032
4032
|
var p = x(this.handler, this);
|
|
4033
|
-
this.touch = new
|
|
4033
|
+
this.touch = new en(this.manager, p), this.mouse = new tn(this.manager, p), this.primaryTouch = null, this.lastTouches = [];
|
|
4034
4034
|
}
|
|
4035
4035
|
v(or, Yt, {
|
|
4036
4036
|
/**
|
|
@@ -4079,7 +4079,7 @@ var wh = { exports: {} };
|
|
|
4079
4079
|
}
|
|
4080
4080
|
return !1;
|
|
4081
4081
|
}
|
|
4082
|
-
var ao = J(o.style, "touchAction"), ho = ao !== r, co = "compute", uo = "auto", ar = "manipulation", Re = "none", ys = "pan-x", xs = "pan-y",
|
|
4082
|
+
var ao = J(o.style, "touchAction"), ho = ao !== r, co = "compute", uo = "auto", ar = "manipulation", Re = "none", ys = "pan-x", xs = "pan-y", sn = Iu();
|
|
4083
4083
|
function hr(p, _) {
|
|
4084
4084
|
this.manager = p, this.set(_);
|
|
4085
4085
|
}
|
|
@@ -4089,7 +4089,7 @@ var wh = { exports: {} };
|
|
|
4089
4089
|
* @param {String} value
|
|
4090
4090
|
*/
|
|
4091
4091
|
set: function(p) {
|
|
4092
|
-
p == co && (p = this.compute()), ho && this.manager.element.style &&
|
|
4092
|
+
p == co && (p = this.compute()), ho && this.manager.element.style && sn[p] && (this.manager.element.style[ao] = p), this.actions = p.toLowerCase().trim();
|
|
4093
4093
|
},
|
|
4094
4094
|
/**
|
|
4095
4095
|
* just re-set the touchAction value
|
|
@@ -4117,7 +4117,7 @@ var wh = { exports: {} };
|
|
|
4117
4117
|
_.preventDefault();
|
|
4118
4118
|
return;
|
|
4119
4119
|
}
|
|
4120
|
-
var P = this.actions, k = F(P, Re) && !
|
|
4120
|
+
var P = this.actions, k = F(P, Re) && !sn[Re], R = F(P, xs) && !sn[xs], G = F(P, ys) && !sn[ys];
|
|
4121
4121
|
if (k) {
|
|
4122
4122
|
var ft = p.pointers.length === 1, pt = p.distance < 2, Ct = p.deltaTime < 250;
|
|
4123
4123
|
if (ft && pt && Ct)
|
|
@@ -4148,9 +4148,9 @@ var wh = { exports: {} };
|
|
|
4148
4148
|
p[E] = _ ? t.CSS.supports("touch-action", E) : !0;
|
|
4149
4149
|
}), p;
|
|
4150
4150
|
}
|
|
4151
|
-
var
|
|
4151
|
+
var nn = 1, Bt = 2, We = 4, be = 8, he = be, ws = 16, ee = 32;
|
|
4152
4152
|
function ce(p) {
|
|
4153
|
-
this.options = g({}, this.defaults, p || {}), this.id = It(), this.manager = null, this.options.enable = C(this.options.enable, !0), this.state =
|
|
4153
|
+
this.options = g({}, this.defaults, p || {}), this.id = It(), this.manager = null, this.options.enable = C(this.options.enable, !0), this.state = nn, this.simultaneous = {}, this.requireFail = [];
|
|
4154
4154
|
}
|
|
4155
4155
|
ce.prototype = {
|
|
4156
4156
|
/**
|
|
@@ -4175,7 +4175,7 @@ var wh = { exports: {} };
|
|
|
4175
4175
|
if (d(p, "recognizeWith", this))
|
|
4176
4176
|
return this;
|
|
4177
4177
|
var _ = this.simultaneous;
|
|
4178
|
-
return p =
|
|
4178
|
+
return p = rn(p, this), _[p.id] || (_[p.id] = p, p.recognizeWith(this)), this;
|
|
4179
4179
|
},
|
|
4180
4180
|
/**
|
|
4181
4181
|
* drop the simultaneous link. it doesnt remove the link on the other recognizer.
|
|
@@ -4183,7 +4183,7 @@ var wh = { exports: {} };
|
|
|
4183
4183
|
* @returns {Recognizer} this
|
|
4184
4184
|
*/
|
|
4185
4185
|
dropRecognizeWith: function(p) {
|
|
4186
|
-
return d(p, "dropRecognizeWith", this) ? this : (p =
|
|
4186
|
+
return d(p, "dropRecognizeWith", this) ? this : (p = rn(p, this), delete this.simultaneous[p.id], this);
|
|
4187
4187
|
},
|
|
4188
4188
|
/**
|
|
4189
4189
|
* recognizer can only run when an other is failing
|
|
@@ -4194,7 +4194,7 @@ var wh = { exports: {} };
|
|
|
4194
4194
|
if (d(p, "requireFailure", this))
|
|
4195
4195
|
return this;
|
|
4196
4196
|
var _ = this.requireFail;
|
|
4197
|
-
return p =
|
|
4197
|
+
return p = rn(p, this), V(_, p) === -1 && (_.push(p), p.requireFailure(this)), this;
|
|
4198
4198
|
},
|
|
4199
4199
|
/**
|
|
4200
4200
|
* drop the requireFailure link. it does not remove the link on the other recognizer.
|
|
@@ -4204,8 +4204,8 @@ var wh = { exports: {} };
|
|
|
4204
4204
|
dropRequireFailure: function(p) {
|
|
4205
4205
|
if (d(p, "dropRequireFailure", this))
|
|
4206
4206
|
return this;
|
|
4207
|
-
p =
|
|
4208
|
-
var _ =
|
|
4207
|
+
p = rn(p, this);
|
|
4208
|
+
var _ = V(this.requireFail, p);
|
|
4209
4209
|
return _ > -1 && this.requireFail.splice(_, 1), this;
|
|
4210
4210
|
},
|
|
4211
4211
|
/**
|
|
@@ -4252,7 +4252,7 @@ var wh = { exports: {} };
|
|
|
4252
4252
|
*/
|
|
4253
4253
|
canEmit: function() {
|
|
4254
4254
|
for (var p = 0; p < this.requireFail.length; ) {
|
|
4255
|
-
if (!(this.requireFail[p].state & (ee |
|
|
4255
|
+
if (!(this.requireFail[p].state & (ee | nn)))
|
|
4256
4256
|
return !1;
|
|
4257
4257
|
p++;
|
|
4258
4258
|
}
|
|
@@ -4268,7 +4268,7 @@ var wh = { exports: {} };
|
|
|
4268
4268
|
this.reset(), this.state = ee;
|
|
4269
4269
|
return;
|
|
4270
4270
|
}
|
|
4271
|
-
this.state & (he | ws | ee) && (this.state =
|
|
4271
|
+
this.state & (he | ws | ee) && (this.state = nn), this.state = this.process(_), this.state & (Bt | We | be | ws) && this.tryEmit(_);
|
|
4272
4272
|
},
|
|
4273
4273
|
/**
|
|
4274
4274
|
* return the state of the recognizer
|
|
@@ -4301,7 +4301,7 @@ var wh = { exports: {} };
|
|
|
4301
4301
|
function fo(p) {
|
|
4302
4302
|
return p == A ? "down" : p == we ? "up" : p == Ie ? "left" : p == De ? "right" : "";
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4304
|
+
function rn(p, _) {
|
|
4305
4305
|
var E = _.manager;
|
|
4306
4306
|
return E ? E.get(p) : p;
|
|
4307
4307
|
}
|
|
@@ -4341,10 +4341,10 @@ var wh = { exports: {} };
|
|
|
4341
4341
|
return P && (E & yt || !k) ? _ | ws : P || k ? E & tt ? _ | be : _ & Bt ? _ | We : Bt : ee;
|
|
4342
4342
|
}
|
|
4343
4343
|
});
|
|
4344
|
-
function
|
|
4344
|
+
function on() {
|
|
4345
4345
|
Ht.apply(this, arguments), this.pX = null, this.pY = null;
|
|
4346
4346
|
}
|
|
4347
|
-
v(
|
|
4347
|
+
v(on, Ht, {
|
|
4348
4348
|
/**
|
|
4349
4349
|
* @namespace
|
|
4350
4350
|
* @memberof PanRecognizer
|
|
@@ -4473,7 +4473,7 @@ var wh = { exports: {} };
|
|
|
4473
4473
|
pointers: 1
|
|
4474
4474
|
},
|
|
4475
4475
|
getTouchAction: function() {
|
|
4476
|
-
return
|
|
4476
|
+
return on.prototype.getTouchAction.call(this);
|
|
4477
4477
|
},
|
|
4478
4478
|
attrTest: function(p) {
|
|
4479
4479
|
var _ = this.options.direction, E;
|
|
@@ -4484,10 +4484,10 @@ var wh = { exports: {} };
|
|
|
4484
4484
|
_ && this.manager.emit(this.options.event + _, p), this.manager.emit(this.options.event, p);
|
|
4485
4485
|
}
|
|
4486
4486
|
});
|
|
4487
|
-
function
|
|
4487
|
+
function an() {
|
|
4488
4488
|
ce.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
|
|
4489
4489
|
}
|
|
4490
|
-
v(
|
|
4490
|
+
v(an, ce, {
|
|
4491
4491
|
/**
|
|
4492
4492
|
* @namespace
|
|
4493
4493
|
* @memberof PinchRecognizer
|
|
@@ -4515,7 +4515,7 @@ var wh = { exports: {} };
|
|
|
4515
4515
|
if (P && k && E) {
|
|
4516
4516
|
if (p.eventType != tt)
|
|
4517
4517
|
return this.failTimeout();
|
|
4518
|
-
var R = this.pTime ? p.timeStamp - this.pTime < _.interval : !0, G = !this.pCenter ||
|
|
4518
|
+
var R = this.pTime ? p.timeStamp - this.pTime < _.interval : !0, G = !this.pCenter || Ks(this.pCenter, p.center) < _.posThreshold;
|
|
4519
4519
|
this.pTime = p.timeStamp, this.pCenter = p.center, !G || !R ? this.count = 1 : this.count += 1, this._input = p;
|
|
4520
4520
|
var ft = this.count % _.taps;
|
|
4521
4521
|
if (ft === 0)
|
|
@@ -4584,9 +4584,9 @@ var wh = { exports: {} };
|
|
|
4584
4584
|
[lr, { enable: !1 }],
|
|
4585
4585
|
[cr, { enable: !1 }, ["rotate"]],
|
|
4586
4586
|
[fr, { direction: rt }],
|
|
4587
|
-
[
|
|
4588
|
-
[
|
|
4589
|
-
[
|
|
4587
|
+
[on, { direction: rt }, ["swipe"]],
|
|
4588
|
+
[an],
|
|
4589
|
+
[an, { event: "doubletap", taps: 2 }, ["tap"]],
|
|
4590
4590
|
[ur]
|
|
4591
4591
|
],
|
|
4592
4592
|
/**
|
|
@@ -4713,7 +4713,7 @@ var wh = { exports: {} };
|
|
|
4713
4713
|
if (d(p, "remove", this))
|
|
4714
4714
|
return this;
|
|
4715
4715
|
if (p = this.get(p), p) {
|
|
4716
|
-
var _ = this.recognizers, E =
|
|
4716
|
+
var _ = this.recognizers, E = V(_, p);
|
|
4717
4717
|
E !== -1 && (_.splice(E, 1), this.touchAction.update());
|
|
4718
4718
|
}
|
|
4719
4719
|
return this;
|
|
@@ -4742,7 +4742,7 @@ var wh = { exports: {} };
|
|
|
4742
4742
|
if (p !== r) {
|
|
4743
4743
|
var E = this.handlers;
|
|
4744
4744
|
return f(U(p), function(P) {
|
|
4745
|
-
_ ? E[P] && E[P].splice(
|
|
4745
|
+
_ ? E[P] && E[P].splice(V(E[P], _), 1) : delete E[P];
|
|
4746
4746
|
}), this;
|
|
4747
4747
|
}
|
|
4748
4748
|
},
|
|
@@ -4788,7 +4788,7 @@ var wh = { exports: {} };
|
|
|
4788
4788
|
INPUT_MOVE: te,
|
|
4789
4789
|
INPUT_END: tt,
|
|
4790
4790
|
INPUT_CANCEL: yt,
|
|
4791
|
-
STATE_POSSIBLE:
|
|
4791
|
+
STATE_POSSIBLE: nn,
|
|
4792
4792
|
STATE_BEGAN: Bt,
|
|
4793
4793
|
STATE_CHANGED: We,
|
|
4794
4794
|
STATE_ENDED: be,
|
|
@@ -4806,15 +4806,15 @@ var wh = { exports: {} };
|
|
|
4806
4806
|
Manager: dr,
|
|
4807
4807
|
Input: Yt,
|
|
4808
4808
|
TouchAction: hr,
|
|
4809
|
-
TouchInput:
|
|
4810
|
-
MouseInput:
|
|
4809
|
+
TouchInput: en,
|
|
4810
|
+
MouseInput: tn,
|
|
4811
4811
|
PointerEventInput: ir,
|
|
4812
4812
|
TouchMouseInput: or,
|
|
4813
4813
|
SingleTouchInput: ro,
|
|
4814
4814
|
Recognizer: ce,
|
|
4815
4815
|
AttrRecognizer: Ht,
|
|
4816
|
-
Tap:
|
|
4817
|
-
Pan:
|
|
4816
|
+
Tap: an,
|
|
4817
|
+
Pan: on,
|
|
4818
4818
|
Swipe: fr,
|
|
4819
4819
|
Pinch: cr,
|
|
4820
4820
|
Rotate: lr,
|
|
@@ -4837,18 +4837,18 @@ var wh = { exports: {} };
|
|
|
4837
4837
|
})(wh);
|
|
4838
4838
|
var Pd = wh.exports;
|
|
4839
4839
|
const st = /* @__PURE__ */ Ga(Pd);
|
|
4840
|
-
var
|
|
4841
|
-
return
|
|
4840
|
+
var $r = function(n, t) {
|
|
4841
|
+
return $r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, s) {
|
|
4842
4842
|
e.__proto__ = s;
|
|
4843
4843
|
} || function(e, s) {
|
|
4844
4844
|
for (var r in s)
|
|
4845
4845
|
Object.prototype.hasOwnProperty.call(s, r) && (e[r] = s[r]);
|
|
4846
|
-
},
|
|
4846
|
+
}, $r(n, t);
|
|
4847
4847
|
};
|
|
4848
4848
|
function xe(n, t) {
|
|
4849
4849
|
if (typeof t != "function" && t !== null)
|
|
4850
4850
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4851
|
-
|
|
4851
|
+
$r(n, t);
|
|
4852
4852
|
function e() {
|
|
4853
4853
|
this.constructor = n;
|
|
4854
4854
|
}
|
|
@@ -4978,7 +4978,7 @@ function Pe(n, t) {
|
|
|
4978
4978
|
}
|
|
4979
4979
|
return i;
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4981
|
+
function Ve(n, t, e) {
|
|
4982
4982
|
if (e || arguments.length === 2)
|
|
4983
4983
|
for (var s = 0, r = t.length, i; s < r; s++)
|
|
4984
4984
|
(i || !(s in t)) && (i || (i = Array.prototype.slice.call(t, 0, s)), i[s] = t[s]);
|
|
@@ -5064,7 +5064,7 @@ var wr = Mi(function(n) {
|
|
|
5064
5064
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
5065
5065
|
};
|
|
5066
5066
|
});
|
|
5067
|
-
function
|
|
5067
|
+
function Ys(n, t) {
|
|
5068
5068
|
if (n) {
|
|
5069
5069
|
var e = n.indexOf(t);
|
|
5070
5070
|
0 <= e && n.splice(e, 1);
|
|
@@ -5114,7 +5114,7 @@ var ms = function() {
|
|
|
5114
5114
|
try {
|
|
5115
5115
|
Xo(m);
|
|
5116
5116
|
} catch (g) {
|
|
5117
|
-
i = i ?? [], g instanceof wr ? i =
|
|
5117
|
+
i = i ?? [], g instanceof wr ? i = Ve(Ve([], Pe(i)), Pe(g.errors)) : i.push(g);
|
|
5118
5118
|
}
|
|
5119
5119
|
}
|
|
5120
5120
|
} catch (g) {
|
|
@@ -5152,10 +5152,10 @@ var ms = function() {
|
|
|
5152
5152
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
5153
5153
|
}, n.prototype._removeParent = function(t) {
|
|
5154
5154
|
var e = this._parentage;
|
|
5155
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
5155
|
+
e === t ? this._parentage = null : Array.isArray(e) && Ys(e, t);
|
|
5156
5156
|
}, n.prototype.remove = function(t) {
|
|
5157
5157
|
var e = this._finalizers;
|
|
5158
|
-
e &&
|
|
5158
|
+
e && Ys(e, t), t instanceof n && t._removeParent(this);
|
|
5159
5159
|
}, n.EMPTY = function() {
|
|
5160
5160
|
var t = new n();
|
|
5161
5161
|
return t.closed = !0, t;
|
|
@@ -5178,7 +5178,7 @@ var Sh = {
|
|
|
5178
5178
|
for (var e = [], s = 2; s < arguments.length; s++)
|
|
5179
5179
|
e[s - 2] = arguments[s];
|
|
5180
5180
|
var r = qr.delegate;
|
|
5181
|
-
return r?.setTimeout ? r.setTimeout.apply(r,
|
|
5181
|
+
return r?.setTimeout ? r.setTimeout.apply(r, Ve([n, t], Pe(e))) : setTimeout.apply(void 0, Ve([n, t], Pe(e)));
|
|
5182
5182
|
},
|
|
5183
5183
|
clearTimeout: function(n) {
|
|
5184
5184
|
var t = qr.delegate;
|
|
@@ -5191,7 +5191,7 @@ function Ch(n) {
|
|
|
5191
5191
|
throw n;
|
|
5192
5192
|
});
|
|
5193
5193
|
}
|
|
5194
|
-
function
|
|
5194
|
+
function Bs() {
|
|
5195
5195
|
}
|
|
5196
5196
|
function Mn(n) {
|
|
5197
5197
|
n();
|
|
@@ -5241,7 +5241,7 @@ var Dd = function() {
|
|
|
5241
5241
|
try {
|
|
5242
5242
|
e.next(t);
|
|
5243
5243
|
} catch (s) {
|
|
5244
|
-
|
|
5244
|
+
cn(s);
|
|
5245
5245
|
}
|
|
5246
5246
|
}, n.prototype.error = function(t) {
|
|
5247
5247
|
var e = this.partialObserver;
|
|
@@ -5249,17 +5249,17 @@ var Dd = function() {
|
|
|
5249
5249
|
try {
|
|
5250
5250
|
e.error(t);
|
|
5251
5251
|
} catch (s) {
|
|
5252
|
-
|
|
5252
|
+
cn(s);
|
|
5253
5253
|
}
|
|
5254
5254
|
else
|
|
5255
|
-
|
|
5255
|
+
cn(t);
|
|
5256
5256
|
}, n.prototype.complete = function() {
|
|
5257
5257
|
var t = this.partialObserver;
|
|
5258
5258
|
if (t.complete)
|
|
5259
5259
|
try {
|
|
5260
5260
|
t.complete();
|
|
5261
5261
|
} catch (e) {
|
|
5262
|
-
|
|
5262
|
+
cn(e);
|
|
5263
5263
|
}
|
|
5264
5264
|
}, n;
|
|
5265
5265
|
}(), On = function(n) {
|
|
@@ -5286,7 +5286,7 @@ var Dd = function() {
|
|
|
5286
5286
|
}
|
|
5287
5287
|
return t;
|
|
5288
5288
|
}(Ai);
|
|
5289
|
-
function
|
|
5289
|
+
function cn(n) {
|
|
5290
5290
|
Ch(n);
|
|
5291
5291
|
}
|
|
5292
5292
|
function Ld(n) {
|
|
@@ -5294,9 +5294,9 @@ function Ld(n) {
|
|
|
5294
5294
|
}
|
|
5295
5295
|
var Rd = {
|
|
5296
5296
|
closed: !0,
|
|
5297
|
-
next:
|
|
5297
|
+
next: Bs,
|
|
5298
5298
|
error: Ld,
|
|
5299
|
-
complete:
|
|
5299
|
+
complete: Bs
|
|
5300
5300
|
}, ki = function() {
|
|
5301
5301
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
5302
5302
|
}();
|
|
@@ -5507,7 +5507,7 @@ var Yd = function(n) {
|
|
|
5507
5507
|
}, t.prototype._innerSubscribe = function(e) {
|
|
5508
5508
|
var s = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
|
|
5509
5509
|
return i || o ? vh : (this.currentObservers = null, a.push(e), new ms(function() {
|
|
5510
|
-
s.currentObservers = null,
|
|
5510
|
+
s.currentObservers = null, Ys(a, e);
|
|
5511
5511
|
}));
|
|
5512
5512
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
5513
5513
|
var s = this, r = s.hasError, i = s.thrownError, o = s.isStopped;
|
|
@@ -5578,7 +5578,7 @@ var Yd = function(n) {
|
|
|
5578
5578
|
for (var e = [], s = 2; s < arguments.length; s++)
|
|
5579
5579
|
e[s - 2] = arguments[s];
|
|
5580
5580
|
var r = zn.delegate;
|
|
5581
|
-
return r?.setInterval ? r.setInterval.apply(r,
|
|
5581
|
+
return r?.setInterval ? r.setInterval.apply(r, Ve([n, t], Pe(e))) : setInterval.apply(void 0, Ve([n, t], Pe(e)));
|
|
5582
5582
|
},
|
|
5583
5583
|
clearInterval: function(n) {
|
|
5584
5584
|
var t = zn.delegate;
|
|
@@ -5624,20 +5624,20 @@ var Yd = function(n) {
|
|
|
5624
5624
|
}, t.prototype.unsubscribe = function() {
|
|
5625
5625
|
if (!this.closed) {
|
|
5626
5626
|
var e = this, s = e.id, r = e.scheduler, i = r.actions;
|
|
5627
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
5627
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, Ys(i, this), s != null && (this.id = this.recycleAsyncId(r, s, null)), this.delay = null, n.prototype.unsubscribe.call(this);
|
|
5628
5628
|
}
|
|
5629
5629
|
}, t;
|
|
5630
|
-
}(Ud),
|
|
5630
|
+
}(Ud), Vo = function() {
|
|
5631
5631
|
function n(t, e) {
|
|
5632
5632
|
e === void 0 && (e = n.now), this.schedulerActionCtor = t, this.now = e;
|
|
5633
5633
|
}
|
|
5634
5634
|
return n.prototype.schedule = function(t, e, s) {
|
|
5635
5635
|
return e === void 0 && (e = 0), new this.schedulerActionCtor(this, t).schedule(s, e);
|
|
5636
5636
|
}, n.now = Th.now, n;
|
|
5637
|
-
}(),
|
|
5637
|
+
}(), Vd = function(n) {
|
|
5638
5638
|
xe(t, n);
|
|
5639
5639
|
function t(e, s) {
|
|
5640
|
-
s === void 0 && (s =
|
|
5640
|
+
s === void 0 && (s = Vo.now);
|
|
5641
5641
|
var r = n.call(this, e, s) || this;
|
|
5642
5642
|
return r.actions = [], r._active = !1, r;
|
|
5643
5643
|
}
|
|
@@ -5659,7 +5659,7 @@ var Yd = function(n) {
|
|
|
5659
5659
|
throw r;
|
|
5660
5660
|
}
|
|
5661
5661
|
}, t;
|
|
5662
|
-
}(
|
|
5662
|
+
}(Vo), Ii = new Vd(Gd), $d = Ii, Eh = new et(function(n) {
|
|
5663
5663
|
return n.complete();
|
|
5664
5664
|
});
|
|
5665
5665
|
function Ph(n) {
|
|
@@ -5671,7 +5671,7 @@ function Di(n) {
|
|
|
5671
5671
|
function qd(n) {
|
|
5672
5672
|
return j(Di(n)) ? n.pop() : void 0;
|
|
5673
5673
|
}
|
|
5674
|
-
function
|
|
5674
|
+
function $s(n) {
|
|
5675
5675
|
return Ph(Di(n)) ? n.pop() : void 0;
|
|
5676
5676
|
}
|
|
5677
5677
|
function jd(n, t) {
|
|
@@ -5947,14 +5947,14 @@ function om(n, t) {
|
|
|
5947
5947
|
}
|
|
5948
5948
|
throw Ih(n);
|
|
5949
5949
|
}
|
|
5950
|
-
function
|
|
5950
|
+
function qs(n, t) {
|
|
5951
5951
|
return t ? om(n, t) : _t(n);
|
|
5952
5952
|
}
|
|
5953
5953
|
function am() {
|
|
5954
5954
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
5955
5955
|
n[t] = arguments[t];
|
|
5956
|
-
var e =
|
|
5957
|
-
return
|
|
5956
|
+
var e = $s(n);
|
|
5957
|
+
return qs(n, e);
|
|
5958
5958
|
}
|
|
5959
5959
|
var hm = Mi(function(n) {
|
|
5960
5960
|
return function() {
|
|
@@ -5989,7 +5989,7 @@ function it(n, t) {
|
|
|
5989
5989
|
}
|
|
5990
5990
|
var lm = Array.isArray;
|
|
5991
5991
|
function fm(n, t) {
|
|
5992
|
-
return lm(t) ? n.apply(void 0,
|
|
5992
|
+
return lm(t) ? n.apply(void 0, Ve([], Pe(t))) : n(t);
|
|
5993
5993
|
}
|
|
5994
5994
|
function Oi(n) {
|
|
5995
5995
|
return it(function(t) {
|
|
@@ -6025,9 +6025,9 @@ function wm(n, t) {
|
|
|
6025
6025
|
function bm() {
|
|
6026
6026
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
6027
6027
|
n[t] = arguments[t];
|
|
6028
|
-
var e =
|
|
6028
|
+
var e = $s(n), s = qd(n), r = ym(n), i = r.args, o = r.keys;
|
|
6029
6029
|
if (i.length === 0)
|
|
6030
|
-
return
|
|
6030
|
+
return qs([], e);
|
|
6031
6031
|
var a = new et(vm(i, e, o ? function(h) {
|
|
6032
6032
|
return wm(o, h);
|
|
6033
6033
|
} : je));
|
|
@@ -6035,10 +6035,10 @@ function bm() {
|
|
|
6035
6035
|
}
|
|
6036
6036
|
function vm(n, t, e) {
|
|
6037
6037
|
return e === void 0 && (e = je), function(s) {
|
|
6038
|
-
|
|
6038
|
+
$o(t, function() {
|
|
6039
6039
|
for (var r = n.length, i = new Array(r), o = r, a = r, h = function(u) {
|
|
6040
|
-
|
|
6041
|
-
var l =
|
|
6040
|
+
$o(t, function() {
|
|
6041
|
+
var l = qs(n[u], t), d = !1;
|
|
6042
6042
|
l.subscribe(ut(s, function(f) {
|
|
6043
6043
|
i[u] = f, d || (d = !0, a--), a || s.next(e(i.slice()));
|
|
6044
6044
|
}, function() {
|
|
@@ -6050,7 +6050,7 @@ function vm(n, t, e) {
|
|
|
6050
6050
|
}, s);
|
|
6051
6051
|
};
|
|
6052
6052
|
}
|
|
6053
|
-
function
|
|
6053
|
+
function $o(n, t, e) {
|
|
6054
6054
|
n ? ye(e, n, t) : t();
|
|
6055
6055
|
}
|
|
6056
6056
|
function _m(n, t, e, s, r, i, o, a) {
|
|
@@ -6106,7 +6106,7 @@ function Sm() {
|
|
|
6106
6106
|
function qo() {
|
|
6107
6107
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
6108
6108
|
n[t] = arguments[t];
|
|
6109
|
-
return Sm()(
|
|
6109
|
+
return Sm()(qs(n, $s(n)));
|
|
6110
6110
|
}
|
|
6111
6111
|
var Cm = ["addListener", "removeListener"], Tm = ["addEventListener", "removeEventListener"], Em = ["on", "off"];
|
|
6112
6112
|
function jr(n, t, e, s) {
|
|
@@ -6163,7 +6163,7 @@ function nt(n, t, e) {
|
|
|
6163
6163
|
});
|
|
6164
6164
|
}
|
|
6165
6165
|
function km(n, t, e) {
|
|
6166
|
-
n === void 0 && (n = 0), e === void 0 && (e =
|
|
6166
|
+
n === void 0 && (n = 0), e === void 0 && (e = $d);
|
|
6167
6167
|
var s = -1;
|
|
6168
6168
|
return t != null && (Ph(t) ? e = t : s = t), new et(function(r) {
|
|
6169
6169
|
var i = um(n) ? +n - e.now() : n;
|
|
@@ -6177,8 +6177,8 @@ function km(n, t, e) {
|
|
|
6177
6177
|
function Im() {
|
|
6178
6178
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
6179
6179
|
n[t] = arguments[t];
|
|
6180
|
-
var e =
|
|
6181
|
-
return r.length ? r.length === 1 ? _t(r[0]) : Yh(s)(
|
|
6180
|
+
var e = $s(n), s = jd(n, 1 / 0), r = n;
|
|
6181
|
+
return r.length ? r.length === 1 ? _t(r[0]) : Yh(s)(qs(r, e)) : Eh;
|
|
6182
6182
|
}
|
|
6183
6183
|
var Dm = Array.isArray;
|
|
6184
6184
|
function Lm(n) {
|
|
@@ -6245,7 +6245,7 @@ function Xh(n, t) {
|
|
|
6245
6245
|
function Ae() {
|
|
6246
6246
|
for (var n = [], t = 0; t < arguments.length; t++)
|
|
6247
6247
|
n[t] = arguments[t];
|
|
6248
|
-
var e =
|
|
6248
|
+
var e = $s(n);
|
|
6249
6249
|
return Nt(function(s, r) {
|
|
6250
6250
|
(e ? qo(n, s, e) : qo(n, s)).subscribe(r);
|
|
6251
6251
|
});
|
|
@@ -6275,10 +6275,10 @@ function Fi(n) {
|
|
|
6275
6275
|
return Nt(function(t, e) {
|
|
6276
6276
|
_t(n).subscribe(ut(e, function() {
|
|
6277
6277
|
return e.complete();
|
|
6278
|
-
},
|
|
6278
|
+
}, Bs)), !e.closed && t.subscribe(e);
|
|
6279
6279
|
});
|
|
6280
6280
|
}
|
|
6281
|
-
function
|
|
6281
|
+
function $e(n, t, e) {
|
|
6282
6282
|
var s = j(n) || t || e ? { next: n, error: t, complete: e } : n;
|
|
6283
6283
|
return s ? Nt(function(r, i) {
|
|
6284
6284
|
var o;
|
|
@@ -6339,7 +6339,7 @@ function Ym(n, t) {
|
|
|
6339
6339
|
var a = new ps();
|
|
6340
6340
|
r.push(a);
|
|
6341
6341
|
var h = new ms(), c = function() {
|
|
6342
|
-
|
|
6342
|
+
Ys(r, a), a.complete(), h.unsubscribe();
|
|
6343
6343
|
}, u;
|
|
6344
6344
|
try {
|
|
6345
6345
|
u = _t(t(o));
|
|
@@ -6347,8 +6347,8 @@ function Ym(n, t) {
|
|
|
6347
6347
|
i(l);
|
|
6348
6348
|
return;
|
|
6349
6349
|
}
|
|
6350
|
-
s.next(a.asObservable()), h.add(u.subscribe(ut(s, c,
|
|
6351
|
-
},
|
|
6350
|
+
s.next(a.asObservable()), h.add(u.subscribe(ut(s, c, Bs, i)));
|
|
6351
|
+
}, Bs)), e.subscribe(ut(s, function(o) {
|
|
6352
6352
|
var a, h, c = r.slice();
|
|
6353
6353
|
try {
|
|
6354
6354
|
for (var u = Ge(c), l = u.next(); !l.done; l = u.next()) {
|
|
@@ -6427,12 +6427,12 @@ const Xm = [
|
|
|
6427
6427
|
"mouseout",
|
|
6428
6428
|
"mouseenter",
|
|
6429
6429
|
"mouseleave"
|
|
6430
|
-
], Um = ["keydown", "keyup", "keypress"], Gm = ["touchstart", "touchend", "touchcancel", "touchmove"],
|
|
6430
|
+
], Um = ["keydown", "keyup", "keypress"], Gm = ["touchstart", "touchend", "touchcancel", "touchmove"], Vm = [
|
|
6431
6431
|
"pointerdown",
|
|
6432
6432
|
"pointerup",
|
|
6433
6433
|
"pointercancel",
|
|
6434
6434
|
"pointermove"
|
|
6435
|
-
],
|
|
6435
|
+
], $m = [
|
|
6436
6436
|
"dragstart",
|
|
6437
6437
|
"drag",
|
|
6438
6438
|
"dragend",
|
|
@@ -6449,7 +6449,7 @@ function g0(n, t, e = {
|
|
|
6449
6449
|
return;
|
|
6450
6450
|
let s;
|
|
6451
6451
|
try {
|
|
6452
|
-
Xm.includes(t) ? s = new MouseEvent(t, e) : Um.includes(t) ? s = new KeyboardEvent(t, e) : Gm.includes(t) ? s = new TouchEvent(t, e) :
|
|
6452
|
+
Xm.includes(t) ? s = new MouseEvent(t, e) : Um.includes(t) ? s = new KeyboardEvent(t, e) : Gm.includes(t) ? s = new TouchEvent(t, e) : Vm.includes(t) ? s = new PointerEvent(t, e) : $m.includes(t) ? s = new DragEvent(t, e) : qm.includes(t) ? s = new Event(t, e) : s = new CustomEvent(t, e);
|
|
6453
6453
|
} catch {
|
|
6454
6454
|
document.createEvent ? s = document.createEvent("HTMLEvents").initEvent(t, !0, !0) : document.createEventObject && (s = document.createEventObject());
|
|
6455
6455
|
}
|
|
@@ -6589,10 +6589,10 @@ function Zm(n, t) {
|
|
|
6589
6589
|
vr = !1, Wo.idleCallback(s);
|
|
6590
6590
|
}));
|
|
6591
6591
|
}
|
|
6592
|
-
class
|
|
6592
|
+
class js {
|
|
6593
6593
|
static _nextId = 0;
|
|
6594
6594
|
static nextId() {
|
|
6595
|
-
return
|
|
6595
|
+
return js._nextId++;
|
|
6596
6596
|
}
|
|
6597
6597
|
}
|
|
6598
6598
|
const O = {
|
|
@@ -6832,21 +6832,21 @@ function Jm(n) {
|
|
|
6832
6832
|
return n;
|
|
6833
6833
|
}
|
|
6834
6834
|
}
|
|
6835
|
-
const Qm = 4, Km = 1e-3, tp = 1e-7, ep = 10,
|
|
6836
|
-
function
|
|
6835
|
+
const Qm = 4, Km = 1e-3, tp = 1e-7, ep = 10, Ps = 11, un = 1 / (Ps - 1), sp = typeof Float32Array == "function";
|
|
6836
|
+
function Vh(n, t) {
|
|
6837
6837
|
return 1 - 3 * t + 3 * n;
|
|
6838
6838
|
}
|
|
6839
|
-
function
|
|
6839
|
+
function $h(n, t) {
|
|
6840
6840
|
return 3 * t - 6 * n;
|
|
6841
6841
|
}
|
|
6842
6842
|
function qh(n) {
|
|
6843
6843
|
return 3 * n;
|
|
6844
6844
|
}
|
|
6845
6845
|
function Nn(n, t, e) {
|
|
6846
|
-
return ((
|
|
6846
|
+
return ((Vh(t, e) * n + $h(t, e)) * n + qh(t)) * n;
|
|
6847
6847
|
}
|
|
6848
6848
|
function jh(n, t, e) {
|
|
6849
|
-
return 3 *
|
|
6849
|
+
return 3 * Vh(t, e) * n * n + 2 * $h(t, e) * n + qh(t);
|
|
6850
6850
|
}
|
|
6851
6851
|
function np(n, t, e, s, r) {
|
|
6852
6852
|
let i, o, a = 0;
|
|
@@ -6873,20 +6873,20 @@ function Hh(n, t, e, s) {
|
|
|
6873
6873
|
throw new Error("bezier x values must be in [0, 1] range");
|
|
6874
6874
|
if (n === t && e === s)
|
|
6875
6875
|
return ip;
|
|
6876
|
-
const r = sp ? new Float32Array(
|
|
6877
|
-
for (let o = 0; o <
|
|
6878
|
-
r[o] = Nn(o *
|
|
6876
|
+
const r = sp ? new Float32Array(Ps) : new Array(Ps);
|
|
6877
|
+
for (let o = 0; o < Ps; ++o)
|
|
6878
|
+
r[o] = Nn(o * un, n, e);
|
|
6879
6879
|
function i(o) {
|
|
6880
6880
|
let a = 0, h = 1;
|
|
6881
|
-
const c =
|
|
6881
|
+
const c = Ps - 1;
|
|
6882
6882
|
for (; h !== c && r[h] <= o; ++h)
|
|
6883
|
-
a +=
|
|
6883
|
+
a += un;
|
|
6884
6884
|
--h;
|
|
6885
|
-
const u = (o - r[h]) / (r[h + 1] - r[h]), l = a + u *
|
|
6885
|
+
const u = (o - r[h]) / (r[h + 1] - r[h]), l = a + u * un, d = jh(l, n, e);
|
|
6886
6886
|
return d >= Km ? rp(o, l, n, e) : d === 0 ? l : np(
|
|
6887
6887
|
o,
|
|
6888
6888
|
a,
|
|
6889
|
-
a +
|
|
6889
|
+
a + un,
|
|
6890
6890
|
n,
|
|
6891
6891
|
e
|
|
6892
6892
|
);
|
|
@@ -7013,7 +7013,7 @@ class Jh {
|
|
|
7013
7013
|
constructor(t, e = Gt) {
|
|
7014
7014
|
this._object = t, this._group = e;
|
|
7015
7015
|
}
|
|
7016
|
-
_id =
|
|
7016
|
+
_id = js.nextId();
|
|
7017
7017
|
// 是否正在执行
|
|
7018
7018
|
_isPlaying = !1;
|
|
7019
7019
|
// 动画开始时间
|
|
@@ -7245,9 +7245,9 @@ class Jh {
|
|
|
7245
7245
|
typeof s == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(s) : this._valuesStartRepeat[t] = s, this._valuesEnd[t] = e;
|
|
7246
7246
|
}
|
|
7247
7247
|
}
|
|
7248
|
-
const hp =
|
|
7248
|
+
const hp = js.nextId, cp = Gt.getAll.bind(Gt), up = Gt.removeAll.bind(Gt), lp = Gt.add.bind(Gt), fp = Gt.remove.bind(Gt), dp = Gt.update.bind(Gt), S0 = {
|
|
7249
7249
|
now: ct,
|
|
7250
|
-
Sequence:
|
|
7250
|
+
Sequence: js,
|
|
7251
7251
|
Easing: O,
|
|
7252
7252
|
Interpolation: Ee,
|
|
7253
7253
|
Group: Zh,
|
|
@@ -7414,17 +7414,17 @@ function ec() {
|
|
|
7414
7414
|
timeout: 50
|
|
7415
7415
|
});
|
|
7416
7416
|
}
|
|
7417
|
-
function
|
|
7417
|
+
function $(n) {
|
|
7418
7418
|
return n * Math.PI / 180;
|
|
7419
7419
|
}
|
|
7420
7420
|
function kt(n) {
|
|
7421
7421
|
return n * 180 / Math.PI;
|
|
7422
7422
|
}
|
|
7423
|
-
function
|
|
7423
|
+
function Xs(n, t, e = 0) {
|
|
7424
7424
|
return Math.sqrt(n * n + t * t + e * e);
|
|
7425
7425
|
}
|
|
7426
7426
|
function Be(n, t, e, s) {
|
|
7427
|
-
return
|
|
7427
|
+
return Xs(e - n, s - t);
|
|
7428
7428
|
}
|
|
7429
7429
|
function ae(n, t, e, s) {
|
|
7430
7430
|
let r = Math.atan2(s - t, e - n);
|
|
@@ -7438,14 +7438,14 @@ function qe(n, t) {
|
|
|
7438
7438
|
}
|
|
7439
7439
|
function T0(n, t, e) {
|
|
7440
7440
|
if (typeof e == "number") {
|
|
7441
|
-
const s =
|
|
7441
|
+
const s = Xs(n, t, e);
|
|
7442
7442
|
return {
|
|
7443
7443
|
x: n /= s,
|
|
7444
7444
|
y: t /= s,
|
|
7445
7445
|
z: e /= s
|
|
7446
7446
|
};
|
|
7447
7447
|
} else {
|
|
7448
|
-
const s =
|
|
7448
|
+
const s = Xs(n, t);
|
|
7449
7449
|
return {
|
|
7450
7450
|
x: n /= s,
|
|
7451
7451
|
y: t /= s
|
|
@@ -7479,7 +7479,7 @@ function Tt(n, t) {
|
|
|
7479
7479
|
);
|
|
7480
7480
|
return n;
|
|
7481
7481
|
}
|
|
7482
|
-
function
|
|
7482
|
+
function ln(n) {
|
|
7483
7483
|
let t, e;
|
|
7484
7484
|
if (!n)
|
|
7485
7485
|
throw new Error(
|
|
@@ -8061,7 +8061,7 @@ let _r = class {
|
|
|
8061
8061
|
const i = this.__createElement(
|
|
8062
8062
|
"linearGradient",
|
|
8063
8063
|
{
|
|
8064
|
-
id:
|
|
8064
|
+
id: ln(this.__ids),
|
|
8065
8065
|
x1: t + "px",
|
|
8066
8066
|
x2: s + "px",
|
|
8067
8067
|
y1: e + "px",
|
|
@@ -8080,7 +8080,7 @@ let _r = class {
|
|
|
8080
8080
|
const a = this.__createElement(
|
|
8081
8081
|
"radialGradient",
|
|
8082
8082
|
{
|
|
8083
|
-
id:
|
|
8083
|
+
id: ln(this.__ids),
|
|
8084
8084
|
cx: r + "px",
|
|
8085
8085
|
cy: i + "px",
|
|
8086
8086
|
r: o + "px",
|
|
@@ -8197,7 +8197,7 @@ let _r = class {
|
|
|
8197
8197
|
* Generates a ClipPath from the clip command.
|
|
8198
8198
|
*/
|
|
8199
8199
|
clip() {
|
|
8200
|
-
const t = this.__closestGroupOrSvg(), e = this.__createElement("clipPath"), s =
|
|
8200
|
+
const t = this.__closestGroupOrSvg(), e = this.__createElement("clipPath"), s = ln(this.__ids), r = this.__createElement("g");
|
|
8201
8201
|
this.__applyCurrentDefaultPath(), t.removeChild(this.__currentElement), e.setAttribute("id", s), e.appendChild(this.__currentElement), this.__SVGdefs.appendChild(e), t.setAttribute("clip-path", Tt("url(#{id})", { id: s })), t.appendChild(r), this.__currentElement = r;
|
|
8202
8202
|
}
|
|
8203
8203
|
/**
|
|
@@ -8244,7 +8244,7 @@ let _r = class {
|
|
|
8244
8244
|
const s = this.__document.createElementNS(
|
|
8245
8245
|
"http://www.w3.org/2000/svg",
|
|
8246
8246
|
"pattern"
|
|
8247
|
-
), r =
|
|
8247
|
+
), r = ln(this.__ids);
|
|
8248
8248
|
let i;
|
|
8249
8249
|
return s.setAttribute("id", r), t.nodeName === "CANVAS" || t.nodeName === "IMG" ? (i = this.__document.createElementNS(
|
|
8250
8250
|
"http://www.w3.org/2000/svg",
|
|
@@ -8669,15 +8669,15 @@ let _r = class {
|
|
|
8669
8669
|
convert(t, e, s, r, i, o, a, h, c) {
|
|
8670
8670
|
const u = a / 180 * Math.PI, l = (t - s) / 2, d = (e - r) / 2, f = Math.cos(u) * l + Math.sin(u) * d, m = -Math.sin(u) * l + Math.cos(u) * d, g = f * f / (i * i) + m * m / (o * o);
|
|
8671
8671
|
if (g > 1) {
|
|
8672
|
-
const
|
|
8673
|
-
throw i =
|
|
8672
|
+
const V = Math.sqrt(g);
|
|
8673
|
+
throw i = V * i, o = V * o, new Error(
|
|
8674
8674
|
`Radii are too small to build an arc. Correcting them to ${i}/${o}.`
|
|
8675
8675
|
);
|
|
8676
8676
|
}
|
|
8677
8677
|
const b = Math.sqrt(
|
|
8678
8678
|
(i * i * o * o - i * i * m * m - o * o * f * f) / (i * i * m * m + o * o * f * f)
|
|
8679
|
-
), y = h != c ? 1 : -1, v = y * b * i * m / o, x = y * b * -o * f / i, w = (t + s) / 2, C = (e + r) / 2, S = Math.cos(u) * v - Math.sin(u) * x + w, D = Math.sin(u) * v + Math.cos(u) * x + C, N = (
|
|
8680
|
-
(
|
|
8679
|
+
), y = h != c ? 1 : -1, v = y * b * i * m / o, x = y * b * -o * f / i, w = (t + s) / 2, C = (e + r) / 2, S = Math.cos(u) * v - Math.sin(u) * x + w, D = Math.sin(u) * v + Math.cos(u) * x + C, N = (V, W, K, J) => (V * J >= W * K ? 1 : -1) * Math.acos(
|
|
8680
|
+
(V * K + W * J) / (Math.sqrt(V * V + W * W) * Math.sqrt(K * K + J * J))
|
|
8681
8681
|
), F = N(1, 0, t - S, e - D) - u, U = N(t - S, e - D, s - S, r - D);
|
|
8682
8682
|
return [S, D, i, o, u, F, F + U];
|
|
8683
8683
|
}
|
|
@@ -8728,7 +8728,7 @@ let bp = class extends Yi {
|
|
|
8728
8728
|
}
|
|
8729
8729
|
};
|
|
8730
8730
|
const vp = bp;
|
|
8731
|
-
let _p = class
|
|
8731
|
+
let _p = class Ms extends Yi {
|
|
8732
8732
|
c1x;
|
|
8733
8733
|
c1y;
|
|
8734
8734
|
c2x;
|
|
@@ -8826,7 +8826,7 @@ let _p = class As extends Yi {
|
|
|
8826
8826
|
return u * f;
|
|
8827
8827
|
}
|
|
8828
8828
|
length(t = 1) {
|
|
8829
|
-
return
|
|
8829
|
+
return Ms.bezlen(
|
|
8830
8830
|
this.x,
|
|
8831
8831
|
this.y,
|
|
8832
8832
|
this.c1x,
|
|
@@ -8841,12 +8841,12 @@ let _p = class As extends Yi {
|
|
|
8841
8841
|
/// get position on the curve (0..1)
|
|
8842
8842
|
getTatLen(t) {
|
|
8843
8843
|
const e = this.x, s = this.y, r = this.c1x, i = this.c1y, o = this.c2x, a = this.c2y, h = this.toX, c = this.toY;
|
|
8844
|
-
if (t < 0 ||
|
|
8844
|
+
if (t < 0 || Ms.bezlen(e, s, r, i, o, a, h, c) < t)
|
|
8845
8845
|
return 0;
|
|
8846
8846
|
const u = 1;
|
|
8847
|
-
let l = u / 2, d = u - l, f =
|
|
8847
|
+
let l = u / 2, d = u - l, f = Ms.bezlen(e, s, r, i, o, a, h, c, d);
|
|
8848
8848
|
for (; Math.abs(f - t) > 0.01; )
|
|
8849
|
-
l /= 2, d += (f < t ? 1 : -1) * l, f =
|
|
8849
|
+
l /= 2, d += (f < t ? 1 : -1) * l, f = Ms.bezlen(e, s, r, i, o, a, h, c, d);
|
|
8850
8850
|
return d;
|
|
8851
8851
|
}
|
|
8852
8852
|
/// Find dot coordinates on the given cubic bezier curve at the given t
|
|
@@ -8886,7 +8886,7 @@ let _p = class As extends Yi {
|
|
|
8886
8886
|
};
|
|
8887
8887
|
}
|
|
8888
8888
|
};
|
|
8889
|
-
const _e = _p,
|
|
8889
|
+
const _e = _p, Rs = Math.PI * 2;
|
|
8890
8890
|
function ta(n, t, e, s) {
|
|
8891
8891
|
const r = n * s - t * e < 0 ? -1 : 1;
|
|
8892
8892
|
let i = n * e + t * s;
|
|
@@ -8898,7 +8898,7 @@ function Sp(n, t, e, s, r, i, o, a, h, c) {
|
|
|
8898
8898
|
b < 0 && (b = 0), b /= d * g + f * m, b = Math.sqrt(b) * (r === i ? -1 : 1);
|
|
8899
8899
|
const y = b * o / a * l, v = b * -a / o * u, x = c * y - h * v + (n + e) / 2, w = h * y + c * v + (t + s) / 2, C = (u - y) / o, S = (l - v) / a, D = (-u - y) / o, N = (-l - v) / a, F = ta(1, 0, C, S);
|
|
8900
8900
|
let U = ta(C, S, D, N);
|
|
8901
|
-
return i === 0 && U > 0 && (U -=
|
|
8901
|
+
return i === 0 && U > 0 && (U -= Rs), i === 1 && U < 0 && (U += Rs), [x, w, F, U];
|
|
8902
8902
|
}
|
|
8903
8903
|
function Cp(n, t) {
|
|
8904
8904
|
const e = 1.3333333333333333 * Math.tan(t / 4), s = Math.cos(n), r = Math.sin(n), i = Math.cos(n + t), o = Math.sin(n + t);
|
|
@@ -8914,7 +8914,7 @@ function Cp(n, t) {
|
|
|
8914
8914
|
];
|
|
8915
8915
|
}
|
|
8916
8916
|
function sc(n, t, e, s, r, i, o, a, h) {
|
|
8917
|
-
const c = Math.sin(h *
|
|
8917
|
+
const c = Math.sin(h * Rs / 360), u = Math.cos(h * Rs / 360), l = u * (n - e) / 2 + c * (t - s) / 2, d = -c * (n - e) / 2 + u * (t - s) / 2;
|
|
8918
8918
|
if (l === 0 && d === 0)
|
|
8919
8919
|
return [];
|
|
8920
8920
|
if (o === 0 || a === 0)
|
|
@@ -8924,7 +8924,7 @@ function sc(n, t, e, s, r, i, o, a, h) {
|
|
|
8924
8924
|
f > 1 && (o *= Math.sqrt(f), a *= Math.sqrt(f));
|
|
8925
8925
|
const m = Sp(n, t, e, s, r, i, o, a, c, u), g = [];
|
|
8926
8926
|
let b = m[2], y = m[3];
|
|
8927
|
-
const v = Math.max(Math.ceil(Math.abs(y) / (
|
|
8927
|
+
const v = Math.max(Math.ceil(Math.abs(y) / (Rs / 4)), 1);
|
|
8928
8928
|
y /= v;
|
|
8929
8929
|
for (let x = 0; x < v; x++)
|
|
8930
8930
|
g.push(Cp(b, y)), b += y;
|
|
@@ -8948,10 +8948,10 @@ function Qr(n, t, e, s, r, i) {
|
|
|
8948
8948
|
i
|
|
8949
8949
|
];
|
|
8950
8950
|
}
|
|
8951
|
-
function
|
|
8951
|
+
function As(n, t, e, s) {
|
|
8952
8952
|
return [n, t, e, s, e, s];
|
|
8953
8953
|
}
|
|
8954
|
-
const
|
|
8954
|
+
const fn = {
|
|
8955
8955
|
a: 7,
|
|
8956
8956
|
// A rx,ry xAxisRotate LargeArcFlag,SweepFlag x,y
|
|
8957
8957
|
c: 6,
|
|
@@ -9030,17 +9030,17 @@ class Ke {
|
|
|
9030
9030
|
(s, r, i) => {
|
|
9031
9031
|
let o = r.toLowerCase();
|
|
9032
9032
|
const a = di(i);
|
|
9033
|
-
for (o == "m" && a.length >
|
|
9033
|
+
for (o == "m" && a.length > fn[o] && (e.push([
|
|
9034
9034
|
r,
|
|
9035
|
-
...a.splice(0,
|
|
9035
|
+
...a.splice(0, fn[o])
|
|
9036
9036
|
]), o = "l", r = r == "m" ? "l" : "L"); a.length; ) {
|
|
9037
|
-
if (a.length <
|
|
9037
|
+
if (a.length < fn[o])
|
|
9038
9038
|
throw new Error(
|
|
9039
9039
|
`parseSVGPath substring:{ ${s} } command:{ ${r} } args:{ ${a} }`
|
|
9040
9040
|
);
|
|
9041
9041
|
e.push([
|
|
9042
9042
|
r,
|
|
9043
|
-
...a.splice(0,
|
|
9043
|
+
...a.splice(0, fn[o])
|
|
9044
9044
|
]);
|
|
9045
9045
|
}
|
|
9046
9046
|
return o == "z" && e.push([r]), "";
|
|
@@ -9151,8 +9151,8 @@ class Ke {
|
|
|
9151
9151
|
if (!b.length)
|
|
9152
9152
|
continue;
|
|
9153
9153
|
b.forEach((x, w) => {
|
|
9154
|
-
const [C, S, D, N, F, U,
|
|
9155
|
-
m = ["C", D, N, F, U,
|
|
9154
|
+
const [C, S, D, N, F, U, V, W] = x;
|
|
9155
|
+
m = ["C", D, N, F, U, V, W], w < b.length - 1 && e.push(m);
|
|
9156
9156
|
});
|
|
9157
9157
|
break;
|
|
9158
9158
|
case "S":
|
|
@@ -9166,16 +9166,16 @@ class Ke {
|
|
|
9166
9166
|
a = m[1], h = m[2], m = ["C", ...Qr(i, o, m[1], m[2], m[3], m[4])];
|
|
9167
9167
|
break;
|
|
9168
9168
|
case "L":
|
|
9169
|
-
m = ["C", ...
|
|
9169
|
+
m = ["C", ...As(i, o, m[1], m[2])];
|
|
9170
9170
|
break;
|
|
9171
9171
|
case "H":
|
|
9172
|
-
m = ["C", ...
|
|
9172
|
+
m = ["C", ...As(i, o, m[1], o)];
|
|
9173
9173
|
break;
|
|
9174
9174
|
case "V":
|
|
9175
|
-
m = ["C", ...
|
|
9175
|
+
m = ["C", ...As(i, o, i, m[1])];
|
|
9176
9176
|
break;
|
|
9177
9177
|
case "Z":
|
|
9178
|
-
m = ["C", ...
|
|
9178
|
+
m = ["C", ...As(i, o, s, r)];
|
|
9179
9179
|
break;
|
|
9180
9180
|
}
|
|
9181
9181
|
l = g, i = m[m.length - 2], o = m[m.length - 1], m.length > 4 ? (c = m[m.length - 4], u = m[m.length - 3]) : (c = i, u = o), e.push(m);
|
|
@@ -9397,7 +9397,7 @@ let Tp = class de {
|
|
|
9397
9397
|
t.cy,
|
|
9398
9398
|
t.toX,
|
|
9399
9399
|
t.toY
|
|
9400
|
-
) : [e, s, r, i, o, a] =
|
|
9400
|
+
) : [e, s, r, i, o, a] = As(
|
|
9401
9401
|
this.prevPathX,
|
|
9402
9402
|
this.prevPathY,
|
|
9403
9403
|
t.toX,
|
|
@@ -9634,7 +9634,7 @@ let Tp = class de {
|
|
|
9634
9634
|
)
|
|
9635
9635
|
).toSVGPathData();
|
|
9636
9636
|
}
|
|
9637
|
-
}, Ep = class extends
|
|
9637
|
+
}, Ep = class extends Vn {
|
|
9638
9638
|
// [index: string | number | symbol]: any;
|
|
9639
9639
|
id;
|
|
9640
9640
|
originD;
|
|
@@ -9835,12 +9835,12 @@ let Tp = class de {
|
|
|
9835
9835
|
}
|
|
9836
9836
|
followTo(t, e = 3) {
|
|
9837
9837
|
this.rotateTo(t);
|
|
9838
|
-
const { dx: s, dy: r } = qe(
|
|
9838
|
+
const { dx: s, dy: r } = qe($(this.degree), e);
|
|
9839
9839
|
this.vx = s, this.vy = r, this.run();
|
|
9840
9840
|
}
|
|
9841
9841
|
followAccelerationTo(t, e = 0.05) {
|
|
9842
9842
|
this.rotateTo(t);
|
|
9843
|
-
const { dx: s, dy: r } = qe(
|
|
9843
|
+
const { dx: s, dy: r } = qe($(this.degree), e);
|
|
9844
9844
|
this.ax = s, this.ay = r, this.run();
|
|
9845
9845
|
}
|
|
9846
9846
|
/// 碰撞检测
|
|
@@ -9944,13 +9944,13 @@ class Pp extends Ep {
|
|
|
9944
9944
|
this.cX = t, this.cY = e, this.cZ = s;
|
|
9945
9945
|
}
|
|
9946
9946
|
rotateX(t) {
|
|
9947
|
-
({ x: this.y, y: this.z } = re(
|
|
9947
|
+
({ x: this.y, y: this.z } = re($(t), this.y, this.z));
|
|
9948
9948
|
}
|
|
9949
9949
|
rotateY(t) {
|
|
9950
|
-
({ x: this.x, y: this.z } = re(
|
|
9950
|
+
({ x: this.x, y: this.z } = re($(t), this.x, this.z));
|
|
9951
9951
|
}
|
|
9952
9952
|
rotateZ(t) {
|
|
9953
|
-
({ x: this.x, y: this.y } = re(
|
|
9953
|
+
({ x: this.x, y: this.y } = re($(t), this.x, this.y));
|
|
9954
9954
|
}
|
|
9955
9955
|
getScreenX() {
|
|
9956
9956
|
const t = this.fl / (this.fl + this.z + this.cZ);
|
|
@@ -9964,7 +9964,7 @@ class Pp extends Ep {
|
|
|
9964
9964
|
return this.x === t.x && this.y === t.y && this.z === t.z && this.radius === t.radius && this.mass === t.mass;
|
|
9965
9965
|
}
|
|
9966
9966
|
length() {
|
|
9967
|
-
return
|
|
9967
|
+
return Xs(this.x, this.y, this.z);
|
|
9968
9968
|
}
|
|
9969
9969
|
distance(t) {
|
|
9970
9970
|
const e = t.x - this.x, s = t.y - this.y, r = t.z - this.z;
|
|
@@ -10033,7 +10033,7 @@ class Pp extends Ep {
|
|
|
10033
10033
|
};
|
|
10034
10034
|
}
|
|
10035
10035
|
}
|
|
10036
|
-
const
|
|
10036
|
+
const dn = Pp;
|
|
10037
10037
|
class Bi {
|
|
10038
10038
|
// x, y, z 表示旋转轴的方向
|
|
10039
10039
|
_x;
|
|
@@ -10512,7 +10512,7 @@ class er {
|
|
|
10512
10512
|
yield this.x, yield this.y;
|
|
10513
10513
|
}
|
|
10514
10514
|
}
|
|
10515
|
-
class
|
|
10515
|
+
class Vt {
|
|
10516
10516
|
x = 0;
|
|
10517
10517
|
y = 0;
|
|
10518
10518
|
z = 0;
|
|
@@ -10563,7 +10563,7 @@ class $t {
|
|
|
10563
10563
|
}
|
|
10564
10564
|
}
|
|
10565
10565
|
clone() {
|
|
10566
|
-
return new
|
|
10566
|
+
return new Vt(this.x, this.y, this.z);
|
|
10567
10567
|
}
|
|
10568
10568
|
copy(t) {
|
|
10569
10569
|
return this.x = t.x, this.y = t.y, this.z = t.z, this;
|
|
@@ -11032,7 +11032,7 @@ class nc {
|
|
|
11032
11032
|
yield this.x, yield this.y, yield this.z, yield this.w;
|
|
11033
11033
|
}
|
|
11034
11034
|
}
|
|
11035
|
-
const ea = new er(), Sr = new
|
|
11035
|
+
const ea = new er(), Sr = new Vt(), sa = new Bi(), mn = 2e3, na = 2001, ra = [1, 0, 0, 1], ia = [1, 0, 0, 1, 0, 0], oa = [1, 0, 0, 0, 1, 0, 0, 0, 1], aa = [
|
|
11036
11036
|
1,
|
|
11037
11037
|
0,
|
|
11038
11038
|
0,
|
|
@@ -11122,7 +11122,7 @@ class rc {
|
|
|
11122
11122
|
return this.m11 * this.m22 - this.m21 * this.m12;
|
|
11123
11123
|
}
|
|
11124
11124
|
}
|
|
11125
|
-
class
|
|
11125
|
+
class Hs {
|
|
11126
11126
|
/// 按列顺序
|
|
11127
11127
|
value;
|
|
11128
11128
|
constructor(t = oa) {
|
|
@@ -11197,7 +11197,7 @@ class Ws {
|
|
|
11197
11197
|
return this.m11 = t.m11, this.m12 = t.m12, this.m13 = t.m13, this.m21 = t.m21, this.m22 = t.m22, this.m23 = t.m23, this.m31 = t.m31, this.m32 = t.m32, this.m33 = t.m33, this;
|
|
11198
11198
|
}
|
|
11199
11199
|
clone() {
|
|
11200
|
-
return new
|
|
11200
|
+
return new Hs(this.value);
|
|
11201
11201
|
}
|
|
11202
11202
|
fromArray(t, e = 0) {
|
|
11203
11203
|
for (let s = 0; s < 9; s++)
|
|
@@ -11513,7 +11513,7 @@ class Rt {
|
|
|
11513
11513
|
this.m31 * this.m31 + this.m32 * this.m32 + this.m33 * this.m33
|
|
11514
11514
|
), r = kt(z(Math.asin(-this.m13), -1, 1));
|
|
11515
11515
|
let i = kt(Math.atan2(this.m23, this.m33));
|
|
11516
|
-
Math.cos(
|
|
11516
|
+
Math.cos($(r)) === 0 && (i = kt(Math.atan2(-this.m31, this.m22)));
|
|
11517
11517
|
let o = kt(Math.atan2(this.m12, this.m11));
|
|
11518
11518
|
return this.m11 < 0 && this.m22 >= 0 && (o += 180), {
|
|
11519
11519
|
x: this.m41,
|
|
@@ -11564,11 +11564,11 @@ class Rt {
|
|
|
11564
11564
|
}
|
|
11565
11565
|
lookAt(t, e, s) {
|
|
11566
11566
|
const r = this.value;
|
|
11567
|
-
return Dt.subVectors(t, e), Dt.lengthSq() === 0 && (Dt.z = 1), Dt.normalize(), Se.crossVectors(s, Dt), Se.lengthSq() === 0 && (Math.abs(s.z) === 1 ? Dt.x += 1e-4 : Dt.z += 1e-4, Dt.normalize(), Se.crossVectors(s, Dt)), Se.normalize(),
|
|
11567
|
+
return Dt.subVectors(t, e), Dt.lengthSq() === 0 && (Dt.z = 1), Dt.normalize(), Se.crossVectors(s, Dt), Se.lengthSq() === 0 && (Math.abs(s.z) === 1 ? Dt.x += 1e-4 : Dt.z += 1e-4, Dt.normalize(), Se.crossVectors(s, Dt)), Se.normalize(), pn.crossVectors(Dt, Se), r[0] = Se.x, r[4] = pn.x, r[8] = Dt.x, r[1] = Se.y, r[5] = pn.y, r[9] = Dt.y, r[2] = Se.z, r[6] = pn.z, r[10] = Dt.z, this;
|
|
11568
11568
|
}
|
|
11569
11569
|
multiplyMatrices(t, e) {
|
|
11570
|
-
const s = t.value, r = e.value, i = this.value, o = s[0], a = s[4], h = s[8], c = s[12], u = s[1], l = s[5], d = s[9], f = s[13], m = s[2], g = s[6], b = s[10], y = s[14], v = s[3], x = s[7], w = s[11], C = s[15], S = r[0], D = r[4], N = r[8], F = r[12], U = r[1],
|
|
11571
|
-
return i[0] = o * S + a * U + h * J + c * qt, i[4] = o * D + a *
|
|
11570
|
+
const s = t.value, r = e.value, i = this.value, o = s[0], a = s[4], h = s[8], c = s[12], u = s[1], l = s[5], d = s[9], f = s[13], m = s[2], g = s[6], b = s[10], y = s[14], v = s[3], x = s[7], w = s[11], C = s[15], S = r[0], D = r[4], N = r[8], F = r[12], U = r[1], V = r[5], W = r[9], K = r[13], J = r[2], $t = r[6], It = r[10], Ft = r[14], qt = r[3], L = r[7], I = r[11], Y = r[15];
|
|
11571
|
+
return i[0] = o * S + a * U + h * J + c * qt, i[4] = o * D + a * V + h * $t + c * L, i[8] = o * N + a * W + h * It + c * I, i[12] = o * F + a * K + h * Ft + c * Y, i[1] = u * S + l * U + d * J + f * qt, i[5] = u * D + l * V + d * $t + f * L, i[9] = u * N + l * W + d * It + f * I, i[13] = u * F + l * K + d * Ft + f * Y, i[2] = m * S + g * U + b * J + y * qt, i[6] = m * D + g * V + b * $t + y * L, i[10] = m * N + g * W + b * It + y * I, i[14] = m * F + g * K + b * Ft + y * Y, i[3] = v * S + x * U + w * J + C * qt, i[7] = v * D + x * V + w * $t + C * L, i[11] = v * N + x * W + w * It + C * I, i[15] = v * F + x * K + w * Ft + C * Y, this;
|
|
11572
11572
|
}
|
|
11573
11573
|
multiply(t) {
|
|
11574
11574
|
return this.multiplyMatrices(this, t);
|
|
@@ -11591,7 +11591,7 @@ class Rt {
|
|
|
11591
11591
|
}
|
|
11592
11592
|
setPosition(t, e, s) {
|
|
11593
11593
|
const r = this.value;
|
|
11594
|
-
return t instanceof
|
|
11594
|
+
return t instanceof Vt ? (r[12] = t.x, r[13] = t.y, r[14] = t.z) : typeof t == "number" && typeof e == "number" && typeof s == "number" && (r[12] = t, r[13] = e, r[14] = s), this;
|
|
11595
11595
|
}
|
|
11596
11596
|
/**
|
|
11597
11597
|
* Inverts the matrix
|
|
@@ -11610,7 +11610,7 @@ class Rt {
|
|
|
11610
11610
|
return Math.sqrt(Math.max(e, s, r));
|
|
11611
11611
|
}
|
|
11612
11612
|
makeTranslation(t, e, s) {
|
|
11613
|
-
return t instanceof
|
|
11613
|
+
return t instanceof Vt ? this.set(1, 0, 0, t.x, 0, 1, 0, t.y, 0, 0, 1, t.z, 0, 0, 0, 1) : this.set(1, 0, 0, t, 0, 1, 0, e, 0, 0, 1, s, 0, 0, 0, 1), this;
|
|
11614
11614
|
}
|
|
11615
11615
|
makeRotationX(t) {
|
|
11616
11616
|
const e = Math.cos(t), s = Math.sin(t);
|
|
@@ -11651,10 +11651,10 @@ class Rt {
|
|
|
11651
11651
|
makeShear(t, e, s, r, i, o) {
|
|
11652
11652
|
return this.set(1, s, i, 0, t, 1, o, 0, e, r, 1, 0, 0, 0, 0, 1), this;
|
|
11653
11653
|
}
|
|
11654
|
-
makePerspective(t, e, s, r, i, o, a =
|
|
11654
|
+
makePerspective(t, e, s, r, i, o, a = mn) {
|
|
11655
11655
|
const h = this.value, c = 2 * i / (e - t), u = 2 * i / (s - r), l = (e + t) / (e - t), d = (s + r) / (s - r);
|
|
11656
11656
|
let f, m;
|
|
11657
|
-
if (a ===
|
|
11657
|
+
if (a === mn)
|
|
11658
11658
|
f = -(o + i) / (o - i), m = -2 * o * i / (o - i);
|
|
11659
11659
|
else if (a === na)
|
|
11660
11660
|
f = -o / (o - i), m = -o * i / (o - i);
|
|
@@ -11664,10 +11664,10 @@ class Rt {
|
|
|
11664
11664
|
);
|
|
11665
11665
|
return h[0] = c, h[4] = 0, h[8] = l, h[12] = 0, h[1] = 0, h[5] = u, h[9] = d, h[13] = 0, h[2] = 0, h[6] = 0, h[10] = f, h[14] = m, h[3] = 0, h[7] = 0, h[11] = -1, h[15] = 0, this;
|
|
11666
11666
|
}
|
|
11667
|
-
makeOrthographic(t, e, s, r, i, o, a =
|
|
11667
|
+
makeOrthographic(t, e, s, r, i, o, a = mn) {
|
|
11668
11668
|
const h = this.value, c = 1 / (e - t), u = 1 / (s - r), l = 1 / (o - i), d = (e + t) * c, f = (s + r) * u;
|
|
11669
11669
|
let m, g;
|
|
11670
|
-
if (a ===
|
|
11670
|
+
if (a === mn)
|
|
11671
11671
|
m = (o + i) * l, g = -2 * l;
|
|
11672
11672
|
else if (a === na)
|
|
11673
11673
|
m = i * l, g = -1 * l;
|
|
@@ -11738,14 +11738,14 @@ class Rt {
|
|
|
11738
11738
|
// return this;
|
|
11739
11739
|
// }
|
|
11740
11740
|
rotateX(t) {
|
|
11741
|
-
const e =
|
|
11741
|
+
const e = $(t), s = Math.cos(e), r = Math.sin(e);
|
|
11742
11742
|
return this.multiply(
|
|
11743
11743
|
// new Matrix4([1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1])
|
|
11744
11744
|
new Rt([1, 0, 0, 0, 0, s, r, 0, 0, -r, s, 0, 0, 0, 0, 1])
|
|
11745
11745
|
);
|
|
11746
11746
|
}
|
|
11747
11747
|
rotateY(t) {
|
|
11748
|
-
const e =
|
|
11748
|
+
const e = $(t), s = Math.cos(e), r = Math.sin(e);
|
|
11749
11749
|
return this.multiply(
|
|
11750
11750
|
// new Matrix4([c, 0, s, 0, 0, 1, 0, 0, -s, 0, c, 0, 0, 0, 0, 1])
|
|
11751
11751
|
new Rt([s, 0, -r, 0, 0, 1, 0, 0, r, 0, s, 0, 0, 0, 0, 1])
|
|
@@ -11754,7 +11754,7 @@ class Rt {
|
|
|
11754
11754
|
/// this.multiply([c, s, -s, c, 0, 0]);
|
|
11755
11755
|
rotateZ(t) {
|
|
11756
11756
|
this.is3dSpecial = !0;
|
|
11757
|
-
const e =
|
|
11757
|
+
const e = $(t), s = Math.cos(e), r = Math.sin(e);
|
|
11758
11758
|
return this.multiply(
|
|
11759
11759
|
// new Matrix4([c, -s, 0, 0, s, c, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])
|
|
11760
11760
|
new Rt([s, r, 0, 0, -r, s, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])
|
|
@@ -11766,15 +11766,15 @@ class Rt {
|
|
|
11766
11766
|
1,
|
|
11767
11767
|
0,
|
|
11768
11768
|
0,
|
|
11769
|
-
|
|
11769
|
+
$(t),
|
|
11770
11770
|
0,
|
|
11771
11771
|
1,
|
|
11772
11772
|
0,
|
|
11773
|
-
|
|
11773
|
+
$(e),
|
|
11774
11774
|
0,
|
|
11775
11775
|
0,
|
|
11776
11776
|
1,
|
|
11777
|
-
|
|
11777
|
+
$(s),
|
|
11778
11778
|
0,
|
|
11779
11779
|
0,
|
|
11780
11780
|
0,
|
|
@@ -11821,7 +11821,7 @@ class Rt {
|
|
|
11821
11821
|
return i == 0 && (i = 1e-4), s /= i, r /= i, i < 0 && (s -= this.m41, r -= this.m42, s *= 1 / i, r *= 1 / i, s += this.m41, r += this.m42), { x: s, y: r, z: e, mass: i };
|
|
11822
11822
|
}
|
|
11823
11823
|
bounds(t, e, s, r) {
|
|
11824
|
-
const i = new
|
|
11824
|
+
const i = new dn({ x: t, y: e }), o = new dn({ x: t + s, y: e }), a = new dn({ x: t + s, y: e + r }), h = new dn({ x: t, y: e + r });
|
|
11825
11825
|
({ x: i.x, y: i.y, z: i.z, mass: i.mass } = this.project(i)), { x: o.x, y: o.y, z: o.z, mass: o.mass } = this.project(o), { x: a.x, y: a.y, z: a.z, mass: a.mass } = this.project(a), { x: h.x, y: h.y, z: h.z, mass: h.mass } = this.project(h);
|
|
11826
11826
|
const c = Math.min(i.x, o.x, a.x, h.x), u = Math.min(i.y, o.y, a.y, h.y), l = Math.max(i.x, o.x, a.x, h.x) - c, d = Math.max(i.y, o.y, a.y, h.y) - u;
|
|
11827
11827
|
return { x: c, y: u, width: l, height: d };
|
|
@@ -12035,7 +12035,7 @@ class Mt {
|
|
|
12035
12035
|
), this;
|
|
12036
12036
|
}
|
|
12037
12037
|
rotate(t, e = 0, s = 0) {
|
|
12038
|
-
const r =
|
|
12038
|
+
const r = $(t), i = Math.cos(r), o = Math.sin(r);
|
|
12039
12039
|
return this.translate(e, s), this.multiply([i, o, -o, i, 0, 0]), this.translate(-e, -s), this.toMatrix4(), this;
|
|
12040
12040
|
}
|
|
12041
12041
|
rotateTo(t, e = 0, s = 0) {
|
|
@@ -12109,10 +12109,10 @@ class Mt {
|
|
|
12109
12109
|
}
|
|
12110
12110
|
skew(t, e = t) {
|
|
12111
12111
|
return this.multiply([
|
|
12112
|
-
Math.cos(
|
|
12113
|
-
Math.sin(
|
|
12114
|
-
-Math.sin(
|
|
12115
|
-
Math.cos(
|
|
12112
|
+
Math.cos($(e)),
|
|
12113
|
+
Math.sin($(e)),
|
|
12114
|
+
-Math.sin($(t)),
|
|
12115
|
+
Math.cos($(t)),
|
|
12116
12116
|
0,
|
|
12117
12117
|
0
|
|
12118
12118
|
]), this.toMatrix4(), this;
|
|
@@ -12153,7 +12153,7 @@ class Mt {
|
|
|
12153
12153
|
return this.matrix4.perspective(t), this.matrix4.toMatrix(this), this;
|
|
12154
12154
|
}
|
|
12155
12155
|
}
|
|
12156
|
-
const Mp = new
|
|
12156
|
+
const Mp = new Vt(0, 0, 0), Ap = new Vt(1, 1, 1), Se = new Vt(), pn = new Vt(), Dt = new Vt(), Je = new Vt(), Cr = new Hs(), Wt = new Rt();
|
|
12157
12157
|
function ic(n) {
|
|
12158
12158
|
const t = new Mt();
|
|
12159
12159
|
return n.replace(
|
|
@@ -12252,7 +12252,7 @@ function re(n, t, e) {
|
|
|
12252
12252
|
return s.rotate(kt(n)), s.transformPoint({ x: t, y: e });
|
|
12253
12253
|
}
|
|
12254
12254
|
function oc(n) {
|
|
12255
|
-
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, r = typeof n?.scalarX == "number" ? n?.scalarX : 1, i = typeof n?.scalarY == "number" ? n?.scalarY : 1, o =
|
|
12255
|
+
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, r = typeof n?.scalarX == "number" ? n?.scalarX : 1, i = typeof n?.scalarY == "number" ? n?.scalarY : 1, o = $(s), a = Math.cos(o), h = Math.sin(o), c = new DOMMatrix([
|
|
12256
12256
|
a * r,
|
|
12257
12257
|
h * r,
|
|
12258
12258
|
-h * i,
|
|
@@ -12541,7 +12541,7 @@ function uc(n) {
|
|
|
12541
12541
|
function Ip(n, t) {
|
|
12542
12542
|
return t === "style" ? hc(n) : n.getAttribute(vt(t));
|
|
12543
12543
|
}
|
|
12544
|
-
function
|
|
12544
|
+
function Us(n, t, e) {
|
|
12545
12545
|
return n.setAttribute(vt(t), "" + e);
|
|
12546
12546
|
}
|
|
12547
12547
|
function F0(n, t) {
|
|
@@ -12801,7 +12801,7 @@ const U0 = (n, t, e) => {
|
|
|
12801
12801
|
function G0(n, t) {
|
|
12802
12802
|
return createImageBitmap(n, t);
|
|
12803
12803
|
}
|
|
12804
|
-
function
|
|
12804
|
+
function V0(n) {
|
|
12805
12805
|
const t = [], e = [], s = [];
|
|
12806
12806
|
let r = 0;
|
|
12807
12807
|
for (let h = 0, c = n.data.length; h < c; h += 4)
|
|
@@ -12826,7 +12826,7 @@ function Tr(n) {
|
|
|
12826
12826
|
return;
|
|
12827
12827
|
return e[o];
|
|
12828
12828
|
}
|
|
12829
|
-
const
|
|
12829
|
+
const $0 = (n) => {
|
|
12830
12830
|
const { data: t, width: e, height: s } = n, r = new Uint8ClampedArray(t.length);
|
|
12831
12831
|
for (let o = 0; o < s; o++)
|
|
12832
12832
|
for (let a = 0; a < e; a++) {
|
|
@@ -13342,7 +13342,7 @@ const dc = function() {
|
|
|
13342
13342
|
MODE_ALPHA_NUM: 2,
|
|
13343
13343
|
MODE_8BIT_BYTE: 4,
|
|
13344
13344
|
MODE_KANJI: 8
|
|
13345
|
-
},
|
|
13345
|
+
}, ks = {
|
|
13346
13346
|
M: 0,
|
|
13347
13347
|
L: 1,
|
|
13348
13348
|
H: 2,
|
|
@@ -13814,13 +13814,13 @@ class pe {
|
|
|
13814
13814
|
}
|
|
13815
13815
|
static getRsBlockTable(t, e) {
|
|
13816
13816
|
switch (e) {
|
|
13817
|
-
case
|
|
13817
|
+
case ks.L:
|
|
13818
13818
|
return pe.RS_BLOCK_TABLE[(t - 1) * 4 + 0];
|
|
13819
|
-
case
|
|
13819
|
+
case ks.M:
|
|
13820
13820
|
return pe.RS_BLOCK_TABLE[(t - 1) * 4 + 1];
|
|
13821
|
-
case
|
|
13821
|
+
case ks.Q:
|
|
13822
13822
|
return pe.RS_BLOCK_TABLE[(t - 1) * 4 + 2];
|
|
13823
|
-
case
|
|
13823
|
+
case ks.H:
|
|
13824
13824
|
return pe.RS_BLOCK_TABLE[(t - 1) * 4 + 3];
|
|
13825
13825
|
default:
|
|
13826
13826
|
return;
|
|
@@ -13873,7 +13873,7 @@ class Xe {
|
|
|
13873
13873
|
dataCache;
|
|
13874
13874
|
dataList;
|
|
13875
13875
|
constructor(t, e) {
|
|
13876
|
-
this.typeNumber = t, this.errorCorrectLevel =
|
|
13876
|
+
this.typeNumber = t, this.errorCorrectLevel = ks[e], this.modules = [], this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
13877
13877
|
}
|
|
13878
13878
|
addData(t) {
|
|
13879
13879
|
const e = new Np(t);
|
|
@@ -14059,27 +14059,27 @@ class Xe {
|
|
|
14059
14059
|
return c;
|
|
14060
14060
|
}
|
|
14061
14061
|
}
|
|
14062
|
-
const ca = Math.ceil,
|
|
14062
|
+
const ca = Math.ceil, Os = Math.floor, ua = Math.round;
|
|
14063
14063
|
function b1(n, t) {
|
|
14064
14064
|
const e = Da(n), s = t?.ecc || "H", r = t?.size || 256, i = -1, o = t?.padding || 0, a = t?.color || "#000000", h = t?.background || "#ffffff", c = new Xe(i, s);
|
|
14065
14065
|
c.addData(e), c.make();
|
|
14066
14066
|
const u = c.getModuleCount(), l = (r - o * 2) / u, d = o, f = r - o;
|
|
14067
14067
|
return zp(r, a, h, function(m, g) {
|
|
14068
14068
|
if (d <= m && m < f && d <= g && g < f) {
|
|
14069
|
-
const b =
|
|
14069
|
+
const b = Os((m - d) / l), y = Os((g - d) / l);
|
|
14070
14070
|
return c.isDark(y, b) ? 0 : 1;
|
|
14071
14071
|
} else
|
|
14072
14072
|
return 1;
|
|
14073
14073
|
});
|
|
14074
14074
|
}
|
|
14075
14075
|
function v1(n, t) {
|
|
14076
|
-
const e = t.x || 0, s = t.y || 0, r = Da(n), i = t.ctx, o = t.ecc || "H", a = typeof t.size == "number" ?
|
|
14076
|
+
const e = t.x || 0, s = t.y || 0, r = Da(n), i = t.ctx, o = t.ecc || "H", a = typeof t.size == "number" ? Os(t.size) : 256, h = t.padding || 0, c = -1, u = t.color || "#000000", l = t.background || "#ffffff", d = new Xe(c, o);
|
|
14077
14077
|
d.addData(r), d.make();
|
|
14078
14078
|
const f = d.getModuleCount(), m = (a - h * 2) / f;
|
|
14079
14079
|
i.fillStyle = l, i.fillRect(e, s, a, a);
|
|
14080
14080
|
for (let g = 0; g < f; g++)
|
|
14081
14081
|
for (let b = 0; b < f; b++) {
|
|
14082
|
-
const y = ca((b + 1) * m) -
|
|
14082
|
+
const y = ca((b + 1) * m) - Os(b * m), v = ca((g + 1) * m) - Os(g * m);
|
|
14083
14083
|
i.fillStyle = d.isDark(g, b) ? u : l, i.fillRect(
|
|
14084
14084
|
e + ua(b * m) + h,
|
|
14085
14085
|
s + ua(g * m) + h,
|
|
@@ -14191,7 +14191,7 @@ function L1() {
|
|
|
14191
14191
|
function R1() {
|
|
14192
14192
|
return Up() && navigator.userAgent.match(/miniprogram/i);
|
|
14193
14193
|
}
|
|
14194
|
-
const O1 = typeof document < "u", Gp = typeof window < "u", z1 = typeof history < "u", N1 = Gp && window.File && window.FileReader && window.FileList && window.Blob,
|
|
14194
|
+
const O1 = typeof document < "u", Gp = typeof window < "u", z1 = typeof history < "u", N1 = Gp && window.File && window.FileReader && window.FileList && window.Blob, Vp = (() => !!(xt.Worker && xt.Blob && xt.Promise && xt.OffscreenCanvas && xt.OffscreenCanvasRenderingContext2D && xt.HTMLCanvasElement && xt.HTMLCanvasElement.prototype.transferControlToOffscreen && xt.URL && xt.URL.createObjectURL))(), F1 = typeof Path2D == "function" && typeof DOMMatrix == "function", $p = function() {
|
|
14195
14195
|
if (!xt.OffscreenCanvas)
|
|
14196
14196
|
return !1;
|
|
14197
14197
|
const n = new OffscreenCanvas(1, 1), t = n.getContext("2d");
|
|
@@ -14211,7 +14211,7 @@ const O1 = typeof document < "u", Gp = typeof window < "u", z1 = typeof history
|
|
|
14211
14211
|
function X1() {
|
|
14212
14212
|
return "ontouchstart" in window || "ontouchend" in document || navigator.maxTouchPoints > 0;
|
|
14213
14213
|
}
|
|
14214
|
-
const
|
|
14214
|
+
const gn = new er(), ot = new Vt();
|
|
14215
14215
|
function _s(n, t) {
|
|
14216
14216
|
switch (t.constructor) {
|
|
14217
14217
|
case Float32Array:
|
|
@@ -14276,7 +14276,7 @@ class ke {
|
|
|
14276
14276
|
this.updateRanges.length = 0;
|
|
14277
14277
|
}
|
|
14278
14278
|
copy(t) {
|
|
14279
|
-
return this.array =
|
|
14279
|
+
return this.array = $u(t.array), this.itemSize = t.itemSize, this.count = t.count, this.normalized = t.normalized, this;
|
|
14280
14280
|
}
|
|
14281
14281
|
copyAt(t, e, s) {
|
|
14282
14282
|
t *= this.itemSize, s *= e.itemSize;
|
|
@@ -14290,7 +14290,7 @@ class ke {
|
|
|
14290
14290
|
applyMatrix3(t) {
|
|
14291
14291
|
if (this.itemSize === 2)
|
|
14292
14292
|
for (let e = 0, s = this.count; e < s; e++)
|
|
14293
|
-
|
|
14293
|
+
gn.fromBufferAttribute(this, e), gn.applyMatrix3(t), this.setXY(e, gn.x, gn.y);
|
|
14294
14294
|
else if (this.itemSize === 3)
|
|
14295
14295
|
for (let e = 0, s = this.count; e < s; e++)
|
|
14296
14296
|
ot.fromBufferAttribute(this, e), ot.applyMatrix3(t), this.setXYZ(e, ot.x, ot.y, ot.z);
|
|
@@ -14388,12 +14388,12 @@ class G1 extends ke {
|
|
|
14388
14388
|
super(new Uint8Array(t), e, s);
|
|
14389
14389
|
}
|
|
14390
14390
|
}
|
|
14391
|
-
class
|
|
14391
|
+
class V1 extends ke {
|
|
14392
14392
|
constructor(t, e, s = !1) {
|
|
14393
14393
|
super(new Uint8ClampedArray(t), e, s);
|
|
14394
14394
|
}
|
|
14395
14395
|
}
|
|
14396
|
-
class
|
|
14396
|
+
class $1 extends ke {
|
|
14397
14397
|
constructor(t, e, s = !1) {
|
|
14398
14398
|
super(new Int16Array(t), e, s);
|
|
14399
14399
|
}
|
|
@@ -14426,7 +14426,7 @@ const qp = {
|
|
|
14426
14426
|
// a performant manner, but also not store them forever so that we don't
|
|
14427
14427
|
// have a memory leak
|
|
14428
14428
|
transform: function(n) {
|
|
14429
|
-
if (
|
|
14429
|
+
if ($p)
|
|
14430
14430
|
return n;
|
|
14431
14431
|
if (this.map.has(n))
|
|
14432
14432
|
return this.map.get(n);
|
|
@@ -14826,10 +14826,10 @@ function Uy(n = document.documentElement, t = !1) {
|
|
|
14826
14826
|
function Gy(n = document.documentElement, t = !1) {
|
|
14827
14827
|
return X(n, "click", t);
|
|
14828
14828
|
}
|
|
14829
|
-
function
|
|
14829
|
+
function Vy(n = document.documentElement, t = !1) {
|
|
14830
14830
|
return X(n, "dblclick", t);
|
|
14831
14831
|
}
|
|
14832
|
-
function
|
|
14832
|
+
function $y(n = document.documentElement, t = !1) {
|
|
14833
14833
|
return X(
|
|
14834
14834
|
n,
|
|
14835
14835
|
"onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll",
|
|
@@ -15151,12 +15151,12 @@ function vx(n = document.documentElement, t) {
|
|
|
15151
15151
|
return Gi(n).pipe(
|
|
15152
15152
|
Ym(
|
|
15153
15153
|
rg(n).pipe(
|
|
15154
|
-
|
|
15154
|
+
$e((s) => {
|
|
15155
15155
|
e.setStart(mt(s, n), !0), t?.start?.(s, e);
|
|
15156
15156
|
})
|
|
15157
15157
|
),
|
|
15158
15158
|
() => ig(n).pipe(
|
|
15159
|
-
|
|
15159
|
+
$e((s) => {
|
|
15160
15160
|
e.setCurrent(mt(s, n), !1), t?.end?.(s, e);
|
|
15161
15161
|
})
|
|
15162
15162
|
)
|
|
@@ -15168,7 +15168,7 @@ function vx(n = document.documentElement, t) {
|
|
|
15168
15168
|
function _x(n = document.documentElement, t) {
|
|
15169
15169
|
const e = t?.useMousePoint || gs();
|
|
15170
15170
|
return ag(n).pipe(
|
|
15171
|
-
|
|
15171
|
+
$e((s) => {
|
|
15172
15172
|
const r = s.changedTouches[0];
|
|
15173
15173
|
e.setStart(mt(r, n), !0), t?.start?.(r, e);
|
|
15174
15174
|
}),
|
|
@@ -15176,7 +15176,7 @@ function _x(n = document.documentElement, t) {
|
|
|
15176
15176
|
() => og(n).pipe(
|
|
15177
15177
|
Fi(
|
|
15178
15178
|
Ni(hg(n), cg(n)).pipe(
|
|
15179
|
-
|
|
15179
|
+
$e((s) => {
|
|
15180
15180
|
const r = s.changedTouches[0];
|
|
15181
15181
|
e.setCurrent(mt(r, n), !1), t?.end?.(r, e);
|
|
15182
15182
|
})
|
|
@@ -15193,14 +15193,14 @@ function _x(n = document.documentElement, t) {
|
|
|
15193
15193
|
function ti(n = document.documentElement, t) {
|
|
15194
15194
|
const e = t?.useMousePoint || gs();
|
|
15195
15195
|
return Cc(n).pipe(
|
|
15196
|
-
|
|
15196
|
+
$e((s) => {
|
|
15197
15197
|
e.setStart(mt(s, n), !0), t?.start?.(s, e);
|
|
15198
15198
|
}),
|
|
15199
15199
|
Kn(
|
|
15200
15200
|
() => Sc(n).pipe(
|
|
15201
15201
|
Fi(
|
|
15202
15202
|
Ni(Tc(n), Ec(n)).pipe(
|
|
15203
|
-
|
|
15203
|
+
$e((s) => {
|
|
15204
15204
|
e.setCurrent(mt(s, n), !1), t?.end?.(s, e);
|
|
15205
15205
|
})
|
|
15206
15206
|
)
|
|
@@ -15216,7 +15216,7 @@ function wg(n = document.documentElement, t) {
|
|
|
15216
15216
|
Xh((s) => s instanceof PointerEvent ? (e.setStart(mt(s, n), !0), t?.start?.(s, e), Sc(n).pipe(
|
|
15217
15217
|
Fi(
|
|
15218
15218
|
Ni(Tc(n), Ec(n)).pipe(
|
|
15219
|
-
|
|
15219
|
+
$e((r) => {
|
|
15220
15220
|
e.setCurrent(mt(r, n), !1), t?.end?.(r, e);
|
|
15221
15221
|
})
|
|
15222
15222
|
)
|
|
@@ -15241,7 +15241,7 @@ function Sx(n) {
|
|
|
15241
15241
|
}).unsubscribe).pipe(Me());
|
|
15242
15242
|
}
|
|
15243
15243
|
function Cx(n, t) {
|
|
15244
|
-
|
|
15244
|
+
Us(n, "draggable", "true");
|
|
15245
15245
|
const e = lg(n, !0).subscribe(
|
|
15246
15246
|
(i) => {
|
|
15247
15247
|
Ye(i), Bm(i);
|
|
@@ -15590,7 +15590,7 @@ function Eg() {
|
|
|
15590
15590
|
};
|
|
15591
15591
|
}
|
|
15592
15592
|
function Bx(n = document.documentElement) {
|
|
15593
|
-
const t = new
|
|
15593
|
+
const t = new Vn(), e = new st(n);
|
|
15594
15594
|
let s = [];
|
|
15595
15595
|
const r = Eg(), i = r.mousePoint, o = (A) => {
|
|
15596
15596
|
t.emit("mouseDown", A);
|
|
@@ -15635,7 +15635,7 @@ function Bx(n = document.documentElement) {
|
|
|
15635
15635
|
t.emit("pan", A);
|
|
15636
15636
|
}, U = (A) => {
|
|
15637
15637
|
t.emit("panStart", A);
|
|
15638
|
-
},
|
|
15638
|
+
}, V = (A) => {
|
|
15639
15639
|
t.emit("panMove", A);
|
|
15640
15640
|
}, W = (A) => {
|
|
15641
15641
|
t.emit("panEnd", A);
|
|
@@ -15643,7 +15643,7 @@ function Bx(n = document.documentElement) {
|
|
|
15643
15643
|
t.emit("panCancel", A);
|
|
15644
15644
|
}, J = (A) => {
|
|
15645
15645
|
t.emit("panLeft", A);
|
|
15646
|
-
},
|
|
15646
|
+
}, $t = (A) => {
|
|
15647
15647
|
t.emit("panRight", A);
|
|
15648
15648
|
}, It = (A) => {
|
|
15649
15649
|
t.emit("panUp", A);
|
|
@@ -15663,9 +15663,9 @@ function Bx(n = document.documentElement) {
|
|
|
15663
15663
|
t.emit("swipe", A);
|
|
15664
15664
|
}, jt = (A) => {
|
|
15665
15665
|
t.emit("swipeLeft", A);
|
|
15666
|
-
},
|
|
15666
|
+
}, Zs = (A) => {
|
|
15667
15667
|
t.emit("swipeRight", A);
|
|
15668
|
-
},
|
|
15668
|
+
}, Js = (A) => {
|
|
15669
15669
|
t.emit("swipeUp", A);
|
|
15670
15670
|
}, lt = (A) => {
|
|
15671
15671
|
t.emit("swipeDown", A);
|
|
@@ -15702,7 +15702,7 @@ function Bx(n = document.documentElement) {
|
|
|
15702
15702
|
// older Firefox
|
|
15703
15703
|
g
|
|
15704
15704
|
)
|
|
15705
|
-
), s.push(H(n, "contextmenu", b)), s.push(H(n, "touchstart", y)), s.push(H(n, "touchend", v)), s.push(H(n, "touchcancel", x)), s.push(H(n, "touchmove", w)), s.push(H(n, "pointerdown", C)), s.push(H(n, "pointerup", S)), s.push(H(n, "pointercancel", D)), s.push(H(n, "pointermove", N)), e.on("pan", F), e.on("panstart", U), e.on("panmove",
|
|
15705
|
+
), s.push(H(n, "contextmenu", b)), s.push(H(n, "touchstart", y)), s.push(H(n, "touchend", v)), s.push(H(n, "touchcancel", x)), s.push(H(n, "touchmove", w)), s.push(H(n, "pointerdown", C)), s.push(H(n, "pointerup", S)), s.push(H(n, "pointercancel", D)), s.push(H(n, "pointermove", N)), e.on("pan", F), e.on("panstart", U), e.on("panmove", V), e.on("panend", W), e.on("pancancel", K), e.on("panleft", J), e.on("panright", $t), e.on("panup", It), e.on("pandown", Ft), e.on("pinch", qt), e.on("pinchin", L), e.on("pinchout", I), e.on("press", Y), e.on("rotate", q), e.on("swipe", St), e.on("swipeleft", jt), e.on("swiperight", Zs), e.on("swipeup", Js), e.on("swipedown", lt), e.on("tap", te), s.push(H(document, "pointerdown", tt)), s.push(H(n, "transitionstart", yt)), s.push(H(n, "transitionend", He)), s.push(H(n, "animationstart", Ie)), s.push(H(n, "animationend", De));
|
|
15706
15706
|
const A = await Tg(n, (rt) => {
|
|
15707
15707
|
we = rt, t.emit("resize", rt);
|
|
15708
15708
|
});
|
|
@@ -15721,7 +15721,7 @@ function Bx(n = document.documentElement) {
|
|
|
15721
15721
|
);
|
|
15722
15722
|
},
|
|
15723
15723
|
end: () => {
|
|
15724
|
-
t.removeAllListeners(), s.forEach((A) => A()), s = [], e.off("pan", F), e.off("panstart", U), e.off("panmove",
|
|
15724
|
+
t.removeAllListeners(), s.forEach((A) => A()), s = [], e.off("pan", F), e.off("panstart", U), e.off("panmove", V), e.off("panend", W), e.off("pancancel", K), e.off("panleft", J), e.off("panright", $t), e.off("panup", It), e.off("pandown", Ft), e.off("pinch", qt), e.off("pinchin", L), e.off("pinchout", I), e.off("press", Y), e.off("rotate", q), e.off("swipe", St), e.off("swipeleft", jt), e.off("swiperight", Zs), e.off("swipeup", Js), e.off("swipedown", lt), e.off("tap", te);
|
|
15725
15725
|
}
|
|
15726
15726
|
};
|
|
15727
15727
|
}
|
|
@@ -15763,7 +15763,7 @@ function Ux(n, t) {
|
|
|
15763
15763
|
};
|
|
15764
15764
|
return e.on("touchStart", s), () => e.off("touchStart", s);
|
|
15765
15765
|
}
|
|
15766
|
-
let
|
|
15766
|
+
let Vi = class {
|
|
15767
15767
|
x;
|
|
15768
15768
|
y;
|
|
15769
15769
|
toX;
|
|
@@ -15820,7 +15820,7 @@ let $i = class {
|
|
|
15820
15820
|
return isNaN(u) || isNaN(l) ? null : { x: u, y: l };
|
|
15821
15821
|
}
|
|
15822
15822
|
};
|
|
15823
|
-
class ei extends
|
|
15823
|
+
class ei extends Vi {
|
|
15824
15824
|
rx;
|
|
15825
15825
|
ry;
|
|
15826
15826
|
xAxisRotate;
|
|
@@ -15870,20 +15870,20 @@ class ei extends $i {
|
|
|
15870
15870
|
convert(t, e, s, r, i, o, a, h, c) {
|
|
15871
15871
|
const u = a / 180 * Math.PI, l = (t - s) / 2, d = (e - r) / 2, f = Math.cos(u) * l + Math.sin(u) * d, m = -Math.sin(u) * l + Math.cos(u) * d, g = f * f / (i * i) + m * m / (o * o);
|
|
15872
15872
|
if (g > 1) {
|
|
15873
|
-
const
|
|
15874
|
-
throw i =
|
|
15873
|
+
const V = Math.sqrt(g);
|
|
15874
|
+
throw i = V * i, o = V * o, new Error(
|
|
15875
15875
|
`Radii are too small to build an arc. Correcting them to ${i}/${o}.`
|
|
15876
15876
|
);
|
|
15877
15877
|
}
|
|
15878
15878
|
const b = Math.sqrt(
|
|
15879
15879
|
(i * i * o * o - i * i * m * m - o * o * f * f) / (i * i * m * m + o * o * f * f)
|
|
15880
|
-
), y = h != c ? 1 : -1, v = y * b * i * m / o, x = y * b * -o * f / i, w = (t + s) / 2, C = (e + r) / 2, S = Math.cos(u) * v - Math.sin(u) * x + w, D = Math.sin(u) * v + Math.cos(u) * x + C, N = (
|
|
15881
|
-
(
|
|
15880
|
+
), y = h != c ? 1 : -1, v = y * b * i * m / o, x = y * b * -o * f / i, w = (t + s) / 2, C = (e + r) / 2, S = Math.cos(u) * v - Math.sin(u) * x + w, D = Math.sin(u) * v + Math.cos(u) * x + C, N = (V, W, K, J) => (V * J >= W * K ? 1 : -1) * Math.acos(
|
|
15881
|
+
(V * K + W * J) / (Math.sqrt(V * V + W * W) * Math.sqrt(K * K + J * J))
|
|
15882
15882
|
), F = N(1, 0, t - S, e - D) - u, U = N(t - S, e - D, s - S, r - D);
|
|
15883
15883
|
return [S, D, i, o, u, F, F + U];
|
|
15884
15884
|
}
|
|
15885
15885
|
}
|
|
15886
|
-
class Ag extends
|
|
15886
|
+
class Ag extends Vi {
|
|
15887
15887
|
cx;
|
|
15888
15888
|
cy;
|
|
15889
15889
|
isLineThrough;
|
|
@@ -15928,7 +15928,7 @@ class Ag extends $i {
|
|
|
15928
15928
|
}
|
|
15929
15929
|
}
|
|
15930
15930
|
const kg = Ag;
|
|
15931
|
-
class gt extends
|
|
15931
|
+
class gt extends Vi {
|
|
15932
15932
|
c1x;
|
|
15933
15933
|
c1y;
|
|
15934
15934
|
c2x;
|
|
@@ -16099,7 +16099,7 @@ class gt extends $i {
|
|
|
16099
16099
|
};
|
|
16100
16100
|
}
|
|
16101
16101
|
}
|
|
16102
|
-
const
|
|
16102
|
+
const zs = Math.PI * 2;
|
|
16103
16103
|
function ga(n, t, e, s) {
|
|
16104
16104
|
const r = n * s - t * e < 0 ? -1 : 1;
|
|
16105
16105
|
let i = n * e + t * s;
|
|
@@ -16111,7 +16111,7 @@ function Ig(n, t, e, s, r, i, o, a, h, c) {
|
|
|
16111
16111
|
b < 0 && (b = 0), b /= d * g + f * m, b = Math.sqrt(b) * (r === i ? -1 : 1);
|
|
16112
16112
|
const y = b * o / a * l, v = b * -a / o * u, x = c * y - h * v + (n + e) / 2, w = h * y + c * v + (t + s) / 2, C = (u - y) / o, S = (l - v) / a, D = (-u - y) / o, N = (-l - v) / a, F = ga(1, 0, C, S);
|
|
16113
16113
|
let U = ga(C, S, D, N);
|
|
16114
|
-
return i === 0 && U > 0 && (U -=
|
|
16114
|
+
return i === 0 && U > 0 && (U -= zs), i === 1 && U < 0 && (U += zs), [x, w, F, U];
|
|
16115
16115
|
}
|
|
16116
16116
|
function Dg(n, t) {
|
|
16117
16117
|
const e = 1.3333333333333333 * Math.tan(t / 4), s = Math.cos(n), r = Math.sin(n), i = Math.cos(n + t), o = Math.sin(n + t);
|
|
@@ -16127,7 +16127,7 @@ function Dg(n, t) {
|
|
|
16127
16127
|
];
|
|
16128
16128
|
}
|
|
16129
16129
|
function Ac(n, t, e, s, r, i, o, a, h) {
|
|
16130
|
-
const c = Math.sin(h *
|
|
16130
|
+
const c = Math.sin(h * zs / 360), u = Math.cos(h * zs / 360), l = u * (n - e) / 2 + c * (t - s) / 2, d = -c * (n - e) / 2 + u * (t - s) / 2;
|
|
16131
16131
|
if (l === 0 && d === 0)
|
|
16132
16132
|
return [];
|
|
16133
16133
|
if (o === 0 || a === 0)
|
|
@@ -16137,7 +16137,7 @@ function Ac(n, t, e, s, r, i, o, a, h) {
|
|
|
16137
16137
|
f > 1 && (o *= Math.sqrt(f), a *= Math.sqrt(f));
|
|
16138
16138
|
const m = Ig(n, t, e, s, r, i, o, a, c, u), g = [];
|
|
16139
16139
|
let b = m[2], y = m[3];
|
|
16140
|
-
const v = Math.max(Math.ceil(Math.abs(y) / (
|
|
16140
|
+
const v = Math.max(Math.ceil(Math.abs(y) / (zs / 4)), 1);
|
|
16141
16141
|
y /= v;
|
|
16142
16142
|
for (let x = 0; x < v; x++)
|
|
16143
16143
|
g.push(Dg(b, y)), b += y;
|
|
@@ -16161,10 +16161,10 @@ function si(n, t, e, s, r, i) {
|
|
|
16161
16161
|
i
|
|
16162
16162
|
];
|
|
16163
16163
|
}
|
|
16164
|
-
function
|
|
16164
|
+
function Is(n, t, e, s) {
|
|
16165
16165
|
return [n, t, e, s, e, s];
|
|
16166
16166
|
}
|
|
16167
|
-
const
|
|
16167
|
+
const yn = {
|
|
16168
16168
|
a: 7,
|
|
16169
16169
|
// A rx,ry xAxisRotate LargeArcFlag,SweepFlag x,y
|
|
16170
16170
|
c: 6,
|
|
@@ -16231,14 +16231,14 @@ function Dc(n) {
|
|
|
16231
16231
|
(e, s, r) => {
|
|
16232
16232
|
let i = s.toLowerCase();
|
|
16233
16233
|
const o = di(r);
|
|
16234
|
-
for (i == "m" && o.length >
|
|
16235
|
-
if (o.length <
|
|
16234
|
+
for (i == "m" && o.length > yn[i] && (t.push([s, ...o.splice(0, yn[i])]), i = "l", s = s == "m" ? "l" : "L"); o.length; ) {
|
|
16235
|
+
if (o.length < yn[i])
|
|
16236
16236
|
throw new Error(
|
|
16237
16237
|
`parseSVGPath substring:{ ${e} } command:{ ${s} } args:{ ${o} }`
|
|
16238
16238
|
);
|
|
16239
16239
|
t.push([
|
|
16240
16240
|
s,
|
|
16241
|
-
...o.splice(0,
|
|
16241
|
+
...o.splice(0, yn[i])
|
|
16242
16242
|
]);
|
|
16243
16243
|
}
|
|
16244
16244
|
return i == "z" && t.push([s]), "";
|
|
@@ -16308,8 +16308,8 @@ function zg(n) {
|
|
|
16308
16308
|
if (!g.length)
|
|
16309
16309
|
continue;
|
|
16310
16310
|
g.forEach((v, x) => {
|
|
16311
|
-
const [w, C, S, D, N, F, U,
|
|
16312
|
-
f = ["C", S, D, N, F, U,
|
|
16311
|
+
const [w, C, S, D, N, F, U, V] = v;
|
|
16312
|
+
f = ["C", S, D, N, F, U, V], x < g.length - 1 && t.push(f);
|
|
16313
16313
|
});
|
|
16314
16314
|
break;
|
|
16315
16315
|
case "S":
|
|
@@ -16323,16 +16323,16 @@ function zg(n) {
|
|
|
16323
16323
|
o = f[1], a = f[2], f = ["C", ...si(r, i, f[1], f[2], f[3], f[4])];
|
|
16324
16324
|
break;
|
|
16325
16325
|
case "L":
|
|
16326
|
-
f = ["C", ...
|
|
16326
|
+
f = ["C", ...Is(r, i, f[1], f[2])];
|
|
16327
16327
|
break;
|
|
16328
16328
|
case "H":
|
|
16329
|
-
f = ["C", ...
|
|
16329
|
+
f = ["C", ...Is(r, i, f[1], i)];
|
|
16330
16330
|
break;
|
|
16331
16331
|
case "V":
|
|
16332
|
-
f = ["C", ...
|
|
16332
|
+
f = ["C", ...Is(r, i, r, f[1])];
|
|
16333
16333
|
break;
|
|
16334
16334
|
case "Z":
|
|
16335
|
-
f = ["C", ...
|
|
16335
|
+
f = ["C", ...Is(r, i, e, s)];
|
|
16336
16336
|
break;
|
|
16337
16337
|
}
|
|
16338
16338
|
u = m, r = f[f.length - 2], i = f[f.length - 1], f.length > 4 ? (h = f[f.length - 4], c = f[f.length - 3]) : (h = r, c = i), t.push(f);
|
|
@@ -16384,7 +16384,7 @@ class Yn {
|
|
|
16384
16384
|
document.addEventListener("click", e), document.addEventListener("touchend", e);
|
|
16385
16385
|
}
|
|
16386
16386
|
}
|
|
16387
|
-
class Rc extends
|
|
16387
|
+
class Rc extends Vn {
|
|
16388
16388
|
source;
|
|
16389
16389
|
raw = "";
|
|
16390
16390
|
mode = "text";
|
|
@@ -16801,7 +16801,7 @@ function Oc(n, t = {}) {
|
|
|
16801
16801
|
}) : h("@page missing '}'");
|
|
16802
16802
|
}
|
|
16803
16803
|
}
|
|
16804
|
-
function
|
|
16804
|
+
function V() {
|
|
16805
16805
|
var L = i(), I = f(/^@([-\w]+)?document *([^{]+)/);
|
|
16806
16806
|
if (I) {
|
|
16807
16807
|
var Y = fe(I[1]), q = fe(I[2]);
|
|
@@ -16829,7 +16829,7 @@ function Oc(n, t = {}) {
|
|
|
16829
16829
|
}) : h("@font-face missing '}'");
|
|
16830
16830
|
}
|
|
16831
16831
|
}
|
|
16832
|
-
var K = It("import"), J = It("charset"),
|
|
16832
|
+
var K = It("import"), J = It("charset"), $t = It("namespace");
|
|
16833
16833
|
function It(L) {
|
|
16834
16834
|
var I = new RegExp("^@" + L + "\\s*([^;]+);");
|
|
16835
16835
|
return function() {
|
|
@@ -16842,7 +16842,7 @@ function Oc(n, t = {}) {
|
|
|
16842
16842
|
}
|
|
16843
16843
|
function Ft() {
|
|
16844
16844
|
if (n[0] == "@")
|
|
16845
|
-
return C() || N() || F() || S() || K() || J() ||
|
|
16845
|
+
return C() || N() || F() || S() || K() || J() || $t() || V() || U() || D() || W();
|
|
16846
16846
|
}
|
|
16847
16847
|
function qt() {
|
|
16848
16848
|
var L = i(), I = y();
|
|
@@ -17138,7 +17138,7 @@ class wt {
|
|
|
17138
17138
|
t.cy,
|
|
17139
17139
|
t.toX,
|
|
17140
17140
|
t.toY
|
|
17141
|
-
) : [e, s, r, i, o, a] =
|
|
17141
|
+
) : [e, s, r, i, o, a] = Is(
|
|
17142
17142
|
this.prevPathX,
|
|
17143
17143
|
this.prevPathY,
|
|
17144
17144
|
t.toX,
|
|
@@ -17385,7 +17385,7 @@ function Et(n, t) {
|
|
|
17385
17385
|
);
|
|
17386
17386
|
return n;
|
|
17387
17387
|
}
|
|
17388
|
-
function
|
|
17388
|
+
function xn(n) {
|
|
17389
17389
|
let t, e;
|
|
17390
17390
|
if (!n)
|
|
17391
17391
|
throw new Error(
|
|
@@ -17969,7 +17969,7 @@ class Bn {
|
|
|
17969
17969
|
const i = this.__createElement(
|
|
17970
17970
|
"linearGradient",
|
|
17971
17971
|
{
|
|
17972
|
-
id:
|
|
17972
|
+
id: xn(this.__ids),
|
|
17973
17973
|
x1: t + "px",
|
|
17974
17974
|
x2: s + "px",
|
|
17975
17975
|
y1: e + "px",
|
|
@@ -17988,7 +17988,7 @@ class Bn {
|
|
|
17988
17988
|
const a = this.__createElement(
|
|
17989
17989
|
"radialGradient",
|
|
17990
17990
|
{
|
|
17991
|
-
id:
|
|
17991
|
+
id: xn(this.__ids),
|
|
17992
17992
|
cx: r + "px",
|
|
17993
17993
|
cy: i + "px",
|
|
17994
17994
|
r: o + "px",
|
|
@@ -18105,7 +18105,7 @@ class Bn {
|
|
|
18105
18105
|
* Generates a ClipPath from the clip command.
|
|
18106
18106
|
*/
|
|
18107
18107
|
clip() {
|
|
18108
|
-
const t = this.__closestGroupOrSvg(), e = this.__createElement("clipPath"), s =
|
|
18108
|
+
const t = this.__closestGroupOrSvg(), e = this.__createElement("clipPath"), s = xn(this.__ids), r = this.__createElement("g");
|
|
18109
18109
|
this.__applyCurrentDefaultPath(), t.removeChild(this.__currentElement), e.setAttribute("id", s), e.appendChild(this.__currentElement), this.__SVGdefs.appendChild(e), t.setAttribute("clip-path", Et("url(#{id})", { id: s })), t.appendChild(r), this.__currentElement = r;
|
|
18110
18110
|
}
|
|
18111
18111
|
/**
|
|
@@ -18152,7 +18152,7 @@ class Bn {
|
|
|
18152
18152
|
const s = this.__document.createElementNS(
|
|
18153
18153
|
"http://www.w3.org/2000/svg",
|
|
18154
18154
|
"pattern"
|
|
18155
|
-
), r =
|
|
18155
|
+
), r = xn(this.__ids);
|
|
18156
18156
|
let i;
|
|
18157
18157
|
return s.setAttribute("id", r), t.nodeName === "CANVAS" || t.nodeName === "IMG" ? (i = this.__document.createElementNS(
|
|
18158
18158
|
"http://www.w3.org/2000/svg",
|
|
@@ -18470,7 +18470,7 @@ class ii {
|
|
|
18470
18470
|
return { raw: "", element: null };
|
|
18471
18471
|
}
|
|
18472
18472
|
}
|
|
18473
|
-
const
|
|
18473
|
+
const wn = {
|
|
18474
18474
|
1: 705234,
|
|
18475
18475
|
// rgb(10,194,210)
|
|
18476
18476
|
2: 8108026,
|
|
@@ -18930,15 +18930,15 @@ class Xt {
|
|
|
18930
18930
|
static nextIndex = 0;
|
|
18931
18931
|
static next(t = Xt.nextIndex) {
|
|
18932
18932
|
Xt.nextIndex = t;
|
|
18933
|
-
const e = Object.keys(
|
|
18934
|
-
return Te.setHEX(
|
|
18933
|
+
const e = Object.keys(wn), s = e.length;
|
|
18934
|
+
return Te.setHEX(wn[e[Xt.nextIndex++ % s]]).toString();
|
|
18935
18935
|
}
|
|
18936
18936
|
setColorName(t) {
|
|
18937
|
-
const e =
|
|
18937
|
+
const e = wn[t.toLowerCase()];
|
|
18938
18938
|
return e !== void 0 ? this.setHEX(e) : t === "none" ? this.a = 0 : (this.a = 1, console.warn("Color.setColorName: Unknown color " + t)), this;
|
|
18939
18939
|
}
|
|
18940
18940
|
static getColors() {
|
|
18941
|
-
return Object.values(
|
|
18941
|
+
return Object.values(wn).map((t) => Te.setHEX(t).toString());
|
|
18942
18942
|
}
|
|
18943
18943
|
setRGB(t, e, s, r = 1) {
|
|
18944
18944
|
return this.r = t, this.g = e, this.b = s, this.a = r, this;
|
|
@@ -19005,7 +19005,7 @@ class Xt {
|
|
|
19005
19005
|
return this.setHSL(r.h + t, r.s + e, r.l + s);
|
|
19006
19006
|
}
|
|
19007
19007
|
lerpHSL(t, e) {
|
|
19008
|
-
const s = this.getHSL(), r = t.getHSL(), i =
|
|
19008
|
+
const s = this.getHSL(), r = t.getHSL(), i = vn(s.h, r.h, e), o = vn(s.s, r.s, e), a = vn(s.l, r.l, e);
|
|
19009
19009
|
return this.setHSL(i, o, a), this;
|
|
19010
19010
|
}
|
|
19011
19011
|
/// hsv(a) / hsb(a) : hue 色相 + saturation 饱和度 + value or brightness 明度
|
|
@@ -19053,7 +19053,7 @@ function rs(n) {
|
|
|
19053
19053
|
function is(n) {
|
|
19054
19054
|
return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;
|
|
19055
19055
|
}
|
|
19056
|
-
const va = new
|
|
19056
|
+
const va = new Hs().set(
|
|
19057
19057
|
0.4123908,
|
|
19058
19058
|
0.3575843,
|
|
19059
19059
|
0.1804808,
|
|
@@ -19063,7 +19063,7 @@ const va = new Ws().set(
|
|
|
19063
19063
|
0.0193308,
|
|
19064
19064
|
0.1191948,
|
|
19065
19065
|
0.9505322
|
|
19066
|
-
), _a = new
|
|
19066
|
+
), _a = new Hs().set(
|
|
19067
19067
|
3.2409699,
|
|
19068
19068
|
-1.5373832,
|
|
19069
19069
|
-0.4986108,
|
|
@@ -19408,12 +19408,12 @@ class ht {
|
|
|
19408
19408
|
}
|
|
19409
19409
|
followTo(t, e = 3) {
|
|
19410
19410
|
this.rotateToTarget(t);
|
|
19411
|
-
const { dx: s, dy: r } = qe(
|
|
19411
|
+
const { dx: s, dy: r } = qe($(this.degree), e);
|
|
19412
19412
|
this.vx = s, this.vy = r, this.animate();
|
|
19413
19413
|
}
|
|
19414
19414
|
followAccelerationTo(t, e = 0.05) {
|
|
19415
19415
|
this.rotateToTarget(t);
|
|
19416
|
-
const { dx: s, dy: r } = qe(
|
|
19416
|
+
const { dx: s, dy: r } = qe($(this.degree), e);
|
|
19417
19417
|
this.ax = s, this.ay = r, this.animate();
|
|
19418
19418
|
}
|
|
19419
19419
|
// 物体之间引力
|
|
@@ -19653,7 +19653,7 @@ class zt {
|
|
|
19653
19653
|
}
|
|
19654
19654
|
}
|
|
19655
19655
|
}
|
|
19656
|
-
function
|
|
19656
|
+
function $x(n, t) {
|
|
19657
19657
|
n.forEach((s) => {
|
|
19658
19658
|
s.animate(), t?.wall && s.checkWall({ wall: t.wall, bounce: t.bounce });
|
|
19659
19659
|
});
|
|
@@ -19884,7 +19884,7 @@ class Qx {
|
|
|
19884
19884
|
...s.getAttrs()
|
|
19885
19885
|
});
|
|
19886
19886
|
}
|
|
19887
|
-
if (this.ctx && (this.ctx.save(), this.ctx.translate(s.x, s.y), this.ctx.rotate(
|
|
19887
|
+
if (this.ctx && (this.ctx.save(), this.ctx.translate(s.x, s.y), this.ctx.rotate($(s.degree), i, o), this.ctx.scale(s.scaleX, s.scaleY, i, o), s.toCanvasContext(this.ctx), Dp(this.ctx, s.getAttrs()), this.ctx.hasSetCustomStrokeStyle && this.ctx.stroke(), this.ctx.hasSetCustomFillStyle && this.ctx.fill()), this.SVG_EL ? s.isMouseIn = s.isPointInPath(
|
|
19888
19888
|
this.SVG_EL,
|
|
19889
19889
|
this.mpg.current.x,
|
|
19890
19890
|
this.mpg.current.y
|
|
@@ -19983,7 +19983,7 @@ class os extends ht {
|
|
|
19983
19983
|
endColor;
|
|
19984
19984
|
constructor(t) {
|
|
19985
19985
|
if (super(t), t?.lineLength) {
|
|
19986
|
-
const e = qe(
|
|
19986
|
+
const e = qe($(t?.lineDegree || 0), t.lineLength);
|
|
19987
19987
|
this.dx = e.dx, this.dy = e.dy;
|
|
19988
19988
|
} else
|
|
19989
19989
|
t?.lineDx || t?.lineDy ? (this.dx = t?.lineDx || 0, this.dy = t?.lineDy || 0) : (this.dx = 0, this.dy = 0);
|
|
@@ -20091,13 +20091,13 @@ class Bc extends zt {
|
|
|
20091
20091
|
);
|
|
20092
20092
|
}
|
|
20093
20093
|
}
|
|
20094
|
-
class
|
|
20094
|
+
class Gs extends ht {
|
|
20095
20095
|
radius;
|
|
20096
20096
|
constructor(t) {
|
|
20097
20097
|
super(t), this.radius = t?.ballRadius || 0;
|
|
20098
20098
|
}
|
|
20099
20099
|
cloneShape() {
|
|
20100
|
-
return new
|
|
20100
|
+
return new Gs({
|
|
20101
20101
|
...super.getBaseOptions(),
|
|
20102
20102
|
ballRadius: this.radius
|
|
20103
20103
|
});
|
|
@@ -20131,7 +20131,7 @@ class $s extends ht {
|
|
|
20131
20131
|
};
|
|
20132
20132
|
}
|
|
20133
20133
|
length() {
|
|
20134
|
-
return
|
|
20134
|
+
return Xs(this.x, this.y);
|
|
20135
20135
|
}
|
|
20136
20136
|
scalar(t) {
|
|
20137
20137
|
return this.moveTo(this.x * t, this.y * t), this;
|
|
@@ -20415,13 +20415,13 @@ class Gc extends ht {
|
|
|
20415
20415
|
];
|
|
20416
20416
|
}
|
|
20417
20417
|
}
|
|
20418
|
-
class
|
|
20418
|
+
class Vc extends ht {
|
|
20419
20419
|
r;
|
|
20420
20420
|
constructor(t) {
|
|
20421
20421
|
super(t), this.r = t?.starR || 20;
|
|
20422
20422
|
}
|
|
20423
20423
|
cloneShape() {
|
|
20424
|
-
return new
|
|
20424
|
+
return new Vc({
|
|
20425
20425
|
...super.getBaseOptions(),
|
|
20426
20426
|
starR: this.r
|
|
20427
20427
|
});
|
|
@@ -20429,18 +20429,18 @@ class $c extends ht {
|
|
|
20429
20429
|
toSVGPathData() {
|
|
20430
20430
|
const t = [["m", 0, -this.r]];
|
|
20431
20431
|
for (let e = 0; e < 6; e += 1) {
|
|
20432
|
-
const s = 288 + e * 144, r = this.r * Math.cos(
|
|
20432
|
+
const s = 288 + e * 144, r = this.r * Math.cos($(s)), i = this.r * Math.sin($(s));
|
|
20433
20433
|
t.push(["l", r, i]);
|
|
20434
20434
|
}
|
|
20435
20435
|
return t;
|
|
20436
20436
|
}
|
|
20437
20437
|
}
|
|
20438
|
-
class
|
|
20438
|
+
class $c extends ht {
|
|
20439
20439
|
constructor(t) {
|
|
20440
20440
|
super(t);
|
|
20441
20441
|
}
|
|
20442
20442
|
cloneShape() {
|
|
20443
|
-
return new
|
|
20443
|
+
return new $c({
|
|
20444
20444
|
...super.getBaseOptions()
|
|
20445
20445
|
});
|
|
20446
20446
|
}
|
|
@@ -20594,7 +20594,7 @@ class Zc extends zt {
|
|
|
20594
20594
|
rectBorderRadius: this.cornerRadius
|
|
20595
20595
|
});
|
|
20596
20596
|
this.addShape(s);
|
|
20597
|
-
const r = new
|
|
20597
|
+
const r = new Gs({
|
|
20598
20598
|
...e,
|
|
20599
20599
|
drag: {
|
|
20600
20600
|
...e?.drag,
|
|
@@ -20605,7 +20605,7 @@ class Zc extends zt {
|
|
|
20605
20605
|
ballRadius: 2
|
|
20606
20606
|
});
|
|
20607
20607
|
this.addShape(r);
|
|
20608
|
-
const i = new
|
|
20608
|
+
const i = new Gs({
|
|
20609
20609
|
...e,
|
|
20610
20610
|
drag: {
|
|
20611
20611
|
...e?.drag,
|
|
@@ -20639,8 +20639,8 @@ class Zc extends zt {
|
|
|
20639
20639
|
getPin() {
|
|
20640
20640
|
const t = this.shapes[1];
|
|
20641
20641
|
return {
|
|
20642
|
-
x: t.x + Math.cos(
|
|
20643
|
-
y: t.y + Math.sin(
|
|
20642
|
+
x: t.x + Math.cos($(t.degree)) * this.width,
|
|
20643
|
+
y: t.y + Math.sin($(t.degree)) * this.width
|
|
20644
20644
|
};
|
|
20645
20645
|
}
|
|
20646
20646
|
}
|
|
@@ -20683,7 +20683,7 @@ class Jc extends zt {
|
|
|
20683
20683
|
}
|
|
20684
20684
|
});
|
|
20685
20685
|
this.addShape(b);
|
|
20686
|
-
const y = new
|
|
20686
|
+
const y = new Gs({
|
|
20687
20687
|
...e,
|
|
20688
20688
|
x: c * h,
|
|
20689
20689
|
y: l,
|
|
@@ -20737,13 +20737,13 @@ class Xn extends ht {
|
|
|
20737
20737
|
this.radius = t.radius;
|
|
20738
20738
|
else if (this.half) {
|
|
20739
20739
|
const i = Math.min(e / 2, s) - this.lineWidth;
|
|
20740
|
-
this.radius = Math.max(0, i - i * Math.sin(
|
|
20740
|
+
this.radius = Math.max(0, i - i * Math.sin($(r)));
|
|
20741
20741
|
} else
|
|
20742
20742
|
this.radius = Math.max(
|
|
20743
20743
|
0,
|
|
20744
20744
|
Math.min(e / 2, s / 2) - this.lineWidth
|
|
20745
20745
|
);
|
|
20746
|
-
t.x || (this.x = e / 2), t.y || (this.half ? this.y = s - this.lineWidth - this.radius * Math.sin(
|
|
20746
|
+
t.x || (this.x = e / 2), t.y || (this.half ? this.y = s - this.lineWidth - this.radius * Math.sin($(r)) : this.y = s / 2), t.forceCoordinate ? (this.startDegree = t.startDegree, this.endDegree = t.endDegree) : (this.startDegree = -90 + t.startDegree, this.endDegree = -90 + t.endDegree), this.startColor = t?.startColor, this.endColor = t?.endColor, this.setAttr({
|
|
20747
20747
|
"stroke-linecap": "round",
|
|
20748
20748
|
"stroke-width": String(this.lineWidth),
|
|
20749
20749
|
stroke: this.startColor || "#000000"
|
|
@@ -20779,10 +20779,10 @@ class Xn extends ht {
|
|
|
20779
20779
|
}
|
|
20780
20780
|
toSVGPathData() {
|
|
20781
20781
|
const { dx: t, dy: e } = qe(
|
|
20782
|
-
|
|
20782
|
+
$(this.startDegree),
|
|
20783
20783
|
this.radius
|
|
20784
20784
|
), { dx: s, dy: r } = qe(
|
|
20785
|
-
|
|
20785
|
+
$(this.percentDegree),
|
|
20786
20786
|
this.radius
|
|
20787
20787
|
);
|
|
20788
20788
|
return [
|
|
@@ -20829,8 +20829,8 @@ class Xn extends ht {
|
|
|
20829
20829
|
0,
|
|
20830
20830
|
0,
|
|
20831
20831
|
this.radius,
|
|
20832
|
-
|
|
20833
|
-
|
|
20832
|
+
$(this.startDegree),
|
|
20833
|
+
$(this.percentDegree),
|
|
20834
20834
|
!1
|
|
20835
20835
|
);
|
|
20836
20836
|
}
|
|
@@ -20874,8 +20874,8 @@ class Qc extends zt {
|
|
|
20874
20874
|
const o = this.ringBg.radius - 20 - 17;
|
|
20875
20875
|
for (let a = 0; a < this.indicatorLineCount; a++) {
|
|
20876
20876
|
const h = -90 + this.startDegree + (this.endDegree - this.startDegree) / (this.indicatorLineCount - 1) * a, c = new os({
|
|
20877
|
-
x: this.ringBg.x + Math.cos(
|
|
20878
|
-
y: this.ringBg.y + Math.sin(
|
|
20877
|
+
x: this.ringBg.x + Math.cos($(h)) * o,
|
|
20878
|
+
y: this.ringBg.y + Math.sin($(h)) * o,
|
|
20879
20879
|
lineLength: 17,
|
|
20880
20880
|
lineDegree: h,
|
|
20881
20881
|
attrs: {
|
|
@@ -20929,7 +20929,7 @@ function Gg(n, t = {
|
|
|
20929
20929
|
};
|
|
20930
20930
|
});
|
|
20931
20931
|
}
|
|
20932
|
-
function
|
|
20932
|
+
function Vg(n, t = {
|
|
20933
20933
|
root: null
|
|
20934
20934
|
// default browser viewport 必须是目标元素的父级元素
|
|
20935
20935
|
// threshold: 0.5, // 表示重叠面积占被观察者的比例,从 0 - 1 取值,1 表示完全被包含
|
|
@@ -20961,7 +20961,7 @@ function Kx(n, t) {
|
|
|
20961
20961
|
}
|
|
20962
20962
|
function tw(n, t) {
|
|
20963
20963
|
const e = typeof t?.threshold == "number" ? t.threshold : 0.5;
|
|
20964
|
-
return
|
|
20964
|
+
return Vg(n, {
|
|
20965
20965
|
threshold: e,
|
|
20966
20966
|
root: t?.root
|
|
20967
20967
|
}).pipe(
|
|
@@ -20970,7 +20970,7 @@ function tw(n, t) {
|
|
|
20970
20970
|
);
|
|
20971
20971
|
}
|
|
20972
20972
|
let Ea = !1;
|
|
20973
|
-
function
|
|
20973
|
+
function $g() {
|
|
20974
20974
|
Ea || (Ea = !0, kp(`
|
|
20975
20975
|
:root {
|
|
20976
20976
|
--sat:env(safe-area-inset-top, 0px);
|
|
@@ -20986,7 +20986,7 @@ function Vg() {
|
|
|
20986
20986
|
}
|
|
20987
20987
|
`));
|
|
20988
20988
|
}
|
|
20989
|
-
|
|
20989
|
+
$g();
|
|
20990
20990
|
function ew() {
|
|
20991
20991
|
return Mc(document.documentElement).pipe(
|
|
20992
20992
|
Ri(Ii),
|
|
@@ -21161,11 +21161,11 @@ const { get: tu, set: Wg } = Hg(
|
|
|
21161
21161
|
function Jg(n) {
|
|
21162
21162
|
switch (Wg(n), n) {
|
|
21163
21163
|
case "dark":
|
|
21164
|
-
document.documentElement.classList.add("dark"),
|
|
21164
|
+
document.documentElement.classList.add("dark"), Us(document.documentElement, "data-theme", "dark");
|
|
21165
21165
|
break;
|
|
21166
21166
|
case "light":
|
|
21167
21167
|
default:
|
|
21168
|
-
document.documentElement.classList.remove("dark"),
|
|
21168
|
+
document.documentElement.classList.remove("dark"), Us(document.documentElement, "data-theme", "light");
|
|
21169
21169
|
break;
|
|
21170
21170
|
}
|
|
21171
21171
|
return eu.next(n), n;
|
|
@@ -21281,7 +21281,7 @@ const ai = new ls();
|
|
|
21281
21281
|
function su(n, t) {
|
|
21282
21282
|
return fi({ url: n, ...t });
|
|
21283
21283
|
}
|
|
21284
|
-
async function
|
|
21284
|
+
async function $i(n, t) {
|
|
21285
21285
|
if (typeof fetch > "u")
|
|
21286
21286
|
throw new Error("fetch() not supported!");
|
|
21287
21287
|
if (typeof AbortController > "u")
|
|
@@ -21305,7 +21305,7 @@ async function Vi(n, t) {
|
|
|
21305
21305
|
})
|
|
21306
21306
|
);
|
|
21307
21307
|
if (ai.delete(e), clearTimeout(a), h.status === 200 || h.status === 0) {
|
|
21308
|
-
if (h.status === 0 &&
|
|
21308
|
+
if (h.status === 0 && _n("useFetch: HTTP Status 0 received."), typeof ReadableStream < "u" && h.body && h.body.getReader && i) {
|
|
21309
21309
|
const c = h.body.getReader(), u = h.headers.get("X-File-Size") || h.headers.get("Content-Length"), l = u ? parseInt(u) : 0, d = l !== 0;
|
|
21310
21310
|
let f = 0;
|
|
21311
21311
|
const m = new ReadableStream({
|
|
@@ -21347,13 +21347,13 @@ function ww(n, t) {
|
|
|
21347
21347
|
e && e.abort();
|
|
21348
21348
|
}
|
|
21349
21349
|
function bw(n = 3, t) {
|
|
21350
|
-
return pi(
|
|
21350
|
+
return pi($i, n, t);
|
|
21351
21351
|
}
|
|
21352
21352
|
function vw(n = 6e4) {
|
|
21353
|
-
return gi(
|
|
21353
|
+
return gi($i, n);
|
|
21354
21354
|
}
|
|
21355
21355
|
function _w(n = 6e4, t = 3, e) {
|
|
21356
|
-
return gi(pi(
|
|
21356
|
+
return gi(pi($i, t, e), n);
|
|
21357
21357
|
}
|
|
21358
21358
|
const Kg = {
|
|
21359
21359
|
name: "zh-cn",
|
|
@@ -21418,12 +21418,12 @@ const Kg = {
|
|
|
21418
21418
|
return `[${n}${t[(e - 20) % 10] || t[e] || t[0]}]`;
|
|
21419
21419
|
}
|
|
21420
21420
|
}, ze = new ls();
|
|
21421
|
-
let
|
|
21421
|
+
let bn = "zh-cn";
|
|
21422
21422
|
nu(t0);
|
|
21423
21423
|
nu(Kg);
|
|
21424
21424
|
function nu(n, t) {
|
|
21425
21425
|
if (!n)
|
|
21426
|
-
return ze.get(
|
|
21426
|
+
return ze.get(bn);
|
|
21427
21427
|
let e;
|
|
21428
21428
|
if (typeof n == "string") {
|
|
21429
21429
|
const s = n.toLowerCase();
|
|
@@ -21432,12 +21432,12 @@ function nu(n, t) {
|
|
|
21432
21432
|
else if (t)
|
|
21433
21433
|
ze.set(s, t), e = s;
|
|
21434
21434
|
else
|
|
21435
|
-
return ze.get(
|
|
21435
|
+
return ze.get(bn);
|
|
21436
21436
|
} else {
|
|
21437
21437
|
const { name: s } = n;
|
|
21438
21438
|
ze.set(s, n), e = s;
|
|
21439
21439
|
}
|
|
21440
|
-
return e && (
|
|
21440
|
+
return e && (bn = e), ze.get(e) || ze.get(bn);
|
|
21441
21441
|
}
|
|
21442
21442
|
let e0 = 0;
|
|
21443
21443
|
function Qe(n, t = {}, e = [], s) {
|
|
@@ -21457,16 +21457,16 @@ function qi(n) {
|
|
|
21457
21457
|
n
|
|
21458
21458
|
);
|
|
21459
21459
|
}
|
|
21460
|
-
function
|
|
21460
|
+
function Ns(n, t = document.documentElement) {
|
|
21461
21461
|
if (n.el)
|
|
21462
21462
|
return n.el;
|
|
21463
21463
|
if (n.el = document.createElement(n.tag), n.props)
|
|
21464
21464
|
for (const e in n.props) {
|
|
21465
21465
|
const s = n.props[e];
|
|
21466
|
-
e.startsWith("on") ? n.el.addEventListener(e.slice(2).toLowerCase(), s) : e === "style" ? Xi(n.el, n.props[e]) :
|
|
21466
|
+
e.startsWith("on") ? n.el.addEventListener(e.slice(2).toLowerCase(), s) : e === "style" ? Xi(n.el, n.props[e]) : Us(n.el, e, s);
|
|
21467
21467
|
}
|
|
21468
21468
|
return n.children && (typeof n.children == "string" ? n.el.appendChild(document.createTextNode(n.children)) : n.children.forEach((e) => {
|
|
21469
|
-
|
|
21469
|
+
Ns(e, n.el);
|
|
21470
21470
|
})), t.appendChild(n.el), n.el;
|
|
21471
21471
|
}
|
|
21472
21472
|
function ji(n, t) {
|
|
@@ -21474,7 +21474,7 @@ function ji(n, t) {
|
|
|
21474
21474
|
return;
|
|
21475
21475
|
if (n.tag !== t.tag) {
|
|
21476
21476
|
(n.el.parentElement || document.body).replaceChild(
|
|
21477
|
-
|
|
21477
|
+
Ns(t),
|
|
21478
21478
|
n.el
|
|
21479
21479
|
);
|
|
21480
21480
|
return;
|
|
@@ -21493,21 +21493,21 @@ function ji(n, t) {
|
|
|
21493
21493
|
u in c || cc(e, u);
|
|
21494
21494
|
Xi(e, c);
|
|
21495
21495
|
} else
|
|
21496
|
-
|
|
21496
|
+
Us(e, a, c);
|
|
21497
21497
|
}
|
|
21498
21498
|
const i = n.children || [], o = t.children || [];
|
|
21499
21499
|
if (typeof o == "string")
|
|
21500
21500
|
e.innerHTML = o;
|
|
21501
21501
|
else if (typeof i == "string")
|
|
21502
21502
|
e.innerHTML = "", o.forEach((a) => {
|
|
21503
|
-
|
|
21503
|
+
Ns(a, e);
|
|
21504
21504
|
});
|
|
21505
21505
|
else {
|
|
21506
21506
|
const a = Math.min(i.length, o.length);
|
|
21507
21507
|
for (let h = 0; h < a; h++)
|
|
21508
21508
|
ji(i[h], o[h]);
|
|
21509
21509
|
o.length > i.length && o.slice(i.length).forEach((h) => {
|
|
21510
|
-
|
|
21510
|
+
Ns(h, e);
|
|
21511
21511
|
}), o.length < i.length && i.slice(o.length).forEach((h) => {
|
|
21512
21512
|
h.el && e.removeChild(h.el);
|
|
21513
21513
|
});
|
|
@@ -21699,9 +21699,9 @@ class me {
|
|
|
21699
21699
|
this.socketCreatorProtocols,
|
|
21700
21700
|
this.socketCreatorOptions
|
|
21701
21701
|
), this.socket.onopen = () => {
|
|
21702
|
-
oe(`ws(${this.url}) onopen`), this.state = me.OPEN, this.
|
|
21702
|
+
oe(`ws(${this.url}) onopen`), this.state = me.OPEN, this.reconnectTimerID && (clearTimeout(this.reconnectTimerID), this.reconnectTimerID = void 0);
|
|
21703
21703
|
const t = this.messageQueue.slice();
|
|
21704
|
-
this.messageQueue = [], t.forEach(this._send.bind(this)), this.onopen?.();
|
|
21704
|
+
this.messageQueue = [], t.forEach(this._send.bind(this)), this.ping(), this.pingTimerID = setInterval(this.ping.bind(this), this.pingInterval), this.onopen?.();
|
|
21705
21705
|
}, this.socket.onclose = (t) => {
|
|
21706
21706
|
const { code: e, reason: s, wasClean: r } = t;
|
|
21707
21707
|
oe(
|
|
@@ -21711,9 +21711,9 @@ class me {
|
|
|
21711
21711
|
Fa(this.reconnectAttempts++)
|
|
21712
21712
|
));
|
|
21713
21713
|
}, this.socket.onerror = (t) => {
|
|
21714
|
-
oe(`ws(${this.url}) onerror: ${t
|
|
21714
|
+
oe(`ws(${this.url}) onerror: ${t}`), this.onerror?.(t);
|
|
21715
21715
|
}, this.socket.onmessage = (t) => {
|
|
21716
|
-
if (oe(`ws(${this.url}) onmessage: { type: ${t.type}, data: ${t.data}}`), typeof t.data == "string") {
|
|
21716
|
+
if (oe(`ws(${this.url}) onmessage: { type: ${t.type}, data: ${t.data} }`), typeof t.data == "string") {
|
|
21717
21717
|
let e;
|
|
21718
21718
|
try {
|
|
21719
21719
|
e = JSON.parse(t.data.substring(1));
|
|
@@ -21730,7 +21730,7 @@ class me {
|
|
|
21730
21730
|
const r = JSON.parse(s);
|
|
21731
21731
|
if (r.body && Object.prototype.hasOwnProperty.call(r.body, "requestid")) {
|
|
21732
21732
|
const i = this.waitings[r.body.requestid];
|
|
21733
|
-
i ? i.resolve?.(r.body) :
|
|
21733
|
+
i ? i.resolve?.(r.body) : _n(
|
|
21734
21734
|
`ws(${this.url}) onmessage: found no associated request, already timed out`
|
|
21735
21735
|
);
|
|
21736
21736
|
} else if (this.listeners[r.address]) {
|
|
@@ -21742,10 +21742,10 @@ class me {
|
|
|
21742
21742
|
message: r.message
|
|
21743
21743
|
}) : i[o](null, r.body);
|
|
21744
21744
|
} else
|
|
21745
|
-
|
|
21745
|
+
this.onunhandled(r);
|
|
21746
21746
|
});
|
|
21747
21747
|
} else
|
|
21748
|
-
t.data instanceof ArrayBuffer ?
|
|
21748
|
+
t.data instanceof ArrayBuffer ? _n(`ws(${this.url}) onmessage: unhandle ArrayBuffer`) : t.data instanceof Blob && _n(`ws(${this.url}) onmessage: unhandle Blob`);
|
|
21749
21749
|
});
|
|
21750
21750
|
}
|
|
21751
21751
|
onunhandled(t) {
|
|
@@ -21760,9 +21760,7 @@ class me {
|
|
|
21760
21760
|
}
|
|
21761
21761
|
// 可能需要根据协议变更传输格式
|
|
21762
21762
|
_send(t) {
|
|
21763
|
-
this.socket?.readyState === me.OPEN ? this.socket.send(
|
|
21764
|
-
JSON.stringify([JSON.stringify(t)])
|
|
21765
|
-
) : (this.messageQueue.push(t), this._connect());
|
|
21763
|
+
this.socket?.readyState === me.OPEN ? this.socket.send(JSON.stringify([JSON.stringify(t)])) : (this.messageQueue.push(t), this._connect());
|
|
21766
21764
|
}
|
|
21767
21765
|
ping() {
|
|
21768
21766
|
this._send({ type: "ping" });
|
|
@@ -21902,7 +21900,7 @@ class Iw {
|
|
|
21902
21900
|
worker;
|
|
21903
21901
|
cbs = {};
|
|
21904
21902
|
constructor(t) {
|
|
21905
|
-
if (
|
|
21903
|
+
if (Vp)
|
|
21906
21904
|
try {
|
|
21907
21905
|
this.worker = new Worker(
|
|
21908
21906
|
URL.createObjectURL(
|
|
@@ -22585,10 +22583,10 @@ function Uw(n) {
|
|
|
22585
22583
|
function Gw(n) {
|
|
22586
22584
|
wx.previewImage(n);
|
|
22587
22585
|
}
|
|
22588
|
-
function
|
|
22586
|
+
function Vw(n) {
|
|
22589
22587
|
wx.uploadImage(n);
|
|
22590
22588
|
}
|
|
22591
|
-
function
|
|
22589
|
+
function $w(n) {
|
|
22592
22590
|
wx.downloadImage(n);
|
|
22593
22591
|
}
|
|
22594
22592
|
function qw(n) {
|
|
@@ -22652,7 +22650,7 @@ function h2(n, t, e = "snsapi_userinfo", s = "") {
|
|
|
22652
22650
|
function c2(n) {
|
|
22653
22651
|
window.AlipayJSBridge ? n && n() : document.addEventListener("AlipayJSBridgeReady", n, !1);
|
|
22654
22652
|
}
|
|
22655
|
-
function
|
|
22653
|
+
function Ws(n, t) {
|
|
22656
22654
|
let e = "未知错误";
|
|
22657
22655
|
switch (n.error) {
|
|
22658
22656
|
case 1:
|
|
@@ -22727,7 +22725,7 @@ function l2(n, t, e) {
|
|
|
22727
22725
|
ap.scan(
|
|
22728
22726
|
Object.assign(n, {
|
|
22729
22727
|
fail: (s) => {
|
|
22730
|
-
e?.(
|
|
22728
|
+
e?.(Ws(s));
|
|
22731
22729
|
}
|
|
22732
22730
|
}),
|
|
22733
22731
|
function(s) {
|
|
@@ -22739,7 +22737,7 @@ function f2(n, t, e) {
|
|
|
22739
22737
|
ap.getLocation(
|
|
22740
22738
|
Object.assign(n, {
|
|
22741
22739
|
fail: (s) => {
|
|
22742
|
-
e?.(
|
|
22740
|
+
e?.(Ws(s));
|
|
22743
22741
|
}
|
|
22744
22742
|
}),
|
|
22745
22743
|
function(s) {
|
|
@@ -22751,7 +22749,7 @@ function d2(n, t, e) {
|
|
|
22751
22749
|
ap.openLocation(
|
|
22752
22750
|
Object.assign(n, {
|
|
22753
22751
|
fail: (s) => {
|
|
22754
|
-
e?.(
|
|
22752
|
+
e?.(Ws(s));
|
|
22755
22753
|
}
|
|
22756
22754
|
}),
|
|
22757
22755
|
function() {
|
|
@@ -22763,7 +22761,7 @@ function m2(n, t, e) {
|
|
|
22763
22761
|
ap.chooseImage(
|
|
22764
22762
|
Object.assign(n, {
|
|
22765
22763
|
fail: (s) => {
|
|
22766
|
-
e?.(
|
|
22764
|
+
e?.(Ws(s, "chooseImage"));
|
|
22767
22765
|
}
|
|
22768
22766
|
}),
|
|
22769
22767
|
function(s) {
|
|
@@ -22775,7 +22773,7 @@ function p2(n, t, e) {
|
|
|
22775
22773
|
ap.previewImage(
|
|
22776
22774
|
Object.assign(n, {
|
|
22777
22775
|
fail: (s) => {
|
|
22778
|
-
e?.(
|
|
22776
|
+
e?.(Ws(s));
|
|
22779
22777
|
}
|
|
22780
22778
|
}),
|
|
22781
22779
|
function() {
|
|
@@ -22818,7 +22816,7 @@ class x2 {
|
|
|
22818
22816
|
totalPages;
|
|
22819
22817
|
parentVNode;
|
|
22820
22818
|
constructor(t, e, s) {
|
|
22821
|
-
this.currentPage = s?.currentPage || 0, this.itemsPerPage = s?.itemsPerPage || 10, this.entriesInterval = s?.entriesInterval || 5, this.entriesEdge = s?.entriesEdge || 1, this.linkTo = s?.linkTo || "javascript:;", this.prevText = s?.prevText || "上一页", this.nextText = s?.nextText || "下一页", this.ellipseText = s?.ellipseText || "...", this.prevShowAlways = typeof s?.prevShowAlways == "boolean" ? s?.prevShowAlways : !0, this.nextShowAlways = typeof s?.nextShowAlways == "boolean" ? s?.nextShowAlways : !0, this.callback = s?.callback || ((r) => !1), this.totalPages = Math.ceil(e / this.itemsPerPage), this.parentVNode = this.createParentVNode(),
|
|
22819
|
+
this.currentPage = s?.currentPage || 0, this.itemsPerPage = s?.itemsPerPage || 10, this.entriesInterval = s?.entriesInterval || 5, this.entriesEdge = s?.entriesEdge || 1, this.linkTo = s?.linkTo || "javascript:;", this.prevText = s?.prevText || "上一页", this.nextText = s?.nextText || "下一页", this.ellipseText = s?.ellipseText || "...", this.prevShowAlways = typeof s?.prevShowAlways == "boolean" ? s?.prevShowAlways : !0, this.nextShowAlways = typeof s?.nextShowAlways == "boolean" ? s?.nextShowAlways : !0, this.callback = s?.callback || ((r) => !1), this.totalPages = Math.ceil(e / this.itemsPerPage), this.parentVNode = this.createParentVNode(), Ns(this.parentVNode, t), this.selectPage(this.currentPage);
|
|
22822
22820
|
}
|
|
22823
22821
|
createParentVNode() {
|
|
22824
22822
|
return Qe("div", { class: "pagination" }, []);
|
|
@@ -22897,7 +22895,7 @@ class w2 {
|
|
|
22897
22895
|
this.config.store?.reducer || (() => e),
|
|
22898
22896
|
e,
|
|
22899
22897
|
this.config.store?.enhancer
|
|
22900
|
-
), this.eb = new
|
|
22898
|
+
), this.eb = new Vn(), this.axios = new mh({
|
|
22901
22899
|
baseURL: this.config.axios?.baseURL,
|
|
22902
22900
|
timeout: this.config.axios?.timeout,
|
|
22903
22901
|
headers: this.config.axios?.headers,
|
|
@@ -22911,10 +22909,10 @@ class w2 {
|
|
|
22911
22909
|
}
|
|
22912
22910
|
export {
|
|
22913
22911
|
Xc as ArrowShape,
|
|
22914
|
-
|
|
22912
|
+
Gs as BallShape,
|
|
22915
22913
|
Hh as BezierEasing,
|
|
22916
22914
|
ke as BufferAttribute,
|
|
22917
|
-
|
|
22915
|
+
wn as COLOR_NAMES,
|
|
22918
22916
|
v0 as CSSToJSEasing,
|
|
22919
22917
|
Zo as Clock,
|
|
22920
22918
|
Xt as Color,
|
|
@@ -22936,10 +22934,10 @@ export {
|
|
|
22936
22934
|
mh as FetchWithAxios,
|
|
22937
22935
|
p0 as FileUpload,
|
|
22938
22936
|
W1 as Float32BufferAttribute,
|
|
22939
|
-
|
|
22937
|
+
$c as FoxShape,
|
|
22940
22938
|
Uc as HeartShape,
|
|
22941
22939
|
Gc as HeartVariantShape,
|
|
22942
|
-
|
|
22940
|
+
$1 as Int16BufferAttribute,
|
|
22943
22941
|
j1 as Int32BufferAttribute,
|
|
22944
22942
|
U1 as Int8BufferAttribute,
|
|
22945
22943
|
Ee as Interpolation,
|
|
@@ -22951,7 +22949,7 @@ export {
|
|
|
22951
22949
|
Sw as MVVM,
|
|
22952
22950
|
Mt as Matrix,
|
|
22953
22951
|
rc as Matrix2,
|
|
22954
|
-
|
|
22952
|
+
Hs as Matrix3,
|
|
22955
22953
|
Rt as Matrix4,
|
|
22956
22954
|
Xg as NoColorSpace,
|
|
22957
22955
|
x2 as Pagination,
|
|
@@ -22964,13 +22962,13 @@ export {
|
|
|
22964
22962
|
rs as SRGBToLinear,
|
|
22965
22963
|
oi as SRGBTransfer,
|
|
22966
22964
|
Ow as SVGParse,
|
|
22967
|
-
|
|
22965
|
+
fn as SVGParsedPathArgsLength,
|
|
22968
22966
|
Zc as SegmentShapeCombo,
|
|
22969
22967
|
ht as Shape,
|
|
22970
22968
|
zt as ShapeCombo,
|
|
22971
22969
|
Wc as ShipShapeCombo,
|
|
22972
22970
|
Jc as SliderShapeCombo,
|
|
22973
|
-
|
|
22971
|
+
Vc as StarShape,
|
|
22974
22972
|
S0 as TWEEN,
|
|
22975
22973
|
tr as Timeline,
|
|
22976
22974
|
Bc as TreeShapeCombo,
|
|
@@ -22978,11 +22976,11 @@ export {
|
|
|
22978
22976
|
q1 as Uint16BufferAttribute,
|
|
22979
22977
|
H1 as Uint32BufferAttribute,
|
|
22980
22978
|
G1 as Uint8BufferAttribute,
|
|
22981
|
-
|
|
22979
|
+
V1 as Uint8ClampedBufferAttribute,
|
|
22982
22980
|
er as Vector2,
|
|
22983
|
-
|
|
22981
|
+
Vt as Vector3,
|
|
22984
22982
|
nc as Vector4,
|
|
22985
|
-
|
|
22983
|
+
mn as WebGLCoordinateSystem,
|
|
22986
22984
|
Nw as WebGLRenderer,
|
|
22987
22985
|
na as WebGPUCoordinateSystem,
|
|
22988
22986
|
zw as WebRTCClient,
|
|
@@ -23003,7 +23001,7 @@ export {
|
|
|
23003
23001
|
l2 as aliJsScan,
|
|
23004
23002
|
u2 as aliJsTradePay,
|
|
23005
23003
|
ae as angle,
|
|
23006
|
-
|
|
23004
|
+
$x as animateShapes,
|
|
23007
23005
|
jx as animateSpringChainShapes,
|
|
23008
23006
|
Hx as animateSpringConnectShapes,
|
|
23009
23007
|
Wx as animateSpringMassShapes,
|
|
@@ -23018,15 +23016,15 @@ export {
|
|
|
23018
23016
|
F0 as atomRemoveAttribute,
|
|
23019
23017
|
aw as atomRemoveDataset,
|
|
23020
23018
|
cc as atomRemoveStyle,
|
|
23021
|
-
|
|
23019
|
+
Us as atomWriteAttribute,
|
|
23022
23020
|
Xi as atomWriteStyle,
|
|
23023
23021
|
Rp as base64EncodeOutputStream,
|
|
23024
23022
|
qp as bitmapMapper,
|
|
23025
23023
|
G0 as blobToImageData,
|
|
23026
23024
|
dc as byteArrayOutputStream,
|
|
23027
|
-
|
|
23025
|
+
$p as canDrawBitmap,
|
|
23028
23026
|
F1 as canUsePaths,
|
|
23029
|
-
|
|
23027
|
+
Vp as canUseWorker,
|
|
23030
23028
|
Bm as cancelBubble,
|
|
23031
23029
|
ww as cancelFetch,
|
|
23032
23030
|
p1 as changeBrightness,
|
|
@@ -23070,7 +23068,7 @@ export {
|
|
|
23070
23068
|
Wh as easeNameToCubicBezier,
|
|
23071
23069
|
Kp as empty,
|
|
23072
23070
|
g0 as fireEvent,
|
|
23073
|
-
|
|
23071
|
+
$0 as flipSideToSide,
|
|
23074
23072
|
q0 as flipUpsideDown,
|
|
23075
23073
|
i0 as flushURL,
|
|
23076
23074
|
Aw as flushURLRecord,
|
|
@@ -23096,7 +23094,7 @@ export {
|
|
|
23096
23094
|
Rw as getFormSubmitData,
|
|
23097
23095
|
Lp as getImageData,
|
|
23098
23096
|
w1 as getImageDataByAIData,
|
|
23099
|
-
|
|
23097
|
+
V0 as getImageMainColor,
|
|
23100
23098
|
Ay as getInnerText,
|
|
23101
23099
|
Bp as getInternetExplorerVersion,
|
|
23102
23100
|
zx as getKeyCode,
|
|
@@ -23172,14 +23170,14 @@ export {
|
|
|
23172
23170
|
xx as keyPress$,
|
|
23173
23171
|
xg as keyUp$,
|
|
23174
23172
|
j0 as leftRotate,
|
|
23175
|
-
|
|
23173
|
+
Xs as length,
|
|
23176
23174
|
g2 as mapTDTJSSDK,
|
|
23177
23175
|
c1 as marginSharpen,
|
|
23178
23176
|
x1 as mosaic,
|
|
23179
|
-
|
|
23177
|
+
Ns as mount,
|
|
23180
23178
|
Gy as mouseClick$,
|
|
23181
23179
|
qy as mouseContextMenu$,
|
|
23182
|
-
|
|
23180
|
+
Vy as mouseDoubleClick$,
|
|
23183
23181
|
rg as mouseDown$,
|
|
23184
23182
|
Xy as mouseEnter$,
|
|
23185
23183
|
Uy as mouseLeave$,
|
|
@@ -23187,7 +23185,7 @@ export {
|
|
|
23187
23185
|
By as mouseOut$,
|
|
23188
23186
|
Yy as mouseOver$,
|
|
23189
23187
|
ig as mouseUp$,
|
|
23190
|
-
|
|
23188
|
+
$y as mouseWheel$,
|
|
23191
23189
|
dy as nearestElement,
|
|
23192
23190
|
xy as nextElementSibling,
|
|
23193
23191
|
T0 as normalizePoint,
|
|
@@ -23282,7 +23280,7 @@ export {
|
|
|
23282
23280
|
W0 as toGrey,
|
|
23283
23281
|
Z0 as toGrey2,
|
|
23284
23282
|
Q0 as toOpposite,
|
|
23285
|
-
|
|
23283
|
+
$ as toRadian,
|
|
23286
23284
|
K0 as toRed,
|
|
23287
23285
|
n1 as toRedAndBlue,
|
|
23288
23286
|
s1 as toRedAndGreen,
|
|
@@ -23311,7 +23309,7 @@ export {
|
|
|
23311
23309
|
Bx as useElementEventBus,
|
|
23312
23310
|
X as useEvent$,
|
|
23313
23311
|
H as useEventListener,
|
|
23314
|
-
|
|
23312
|
+
$i as useFetch,
|
|
23315
23313
|
vw as useFetchCache,
|
|
23316
23314
|
bw as useFetchRetry,
|
|
23317
23315
|
_w as useFetchRetryCache,
|
|
@@ -23320,7 +23318,7 @@ export {
|
|
|
23320
23318
|
Fx as useHotKeyFile,
|
|
23321
23319
|
Cg as useHotKeyFile$,
|
|
23322
23320
|
Nx as useHotKeyUp$,
|
|
23323
|
-
|
|
23321
|
+
Vg as useIntersection$,
|
|
23324
23322
|
Zp as useLoadImage,
|
|
23325
23323
|
ty as useLoadLink,
|
|
23326
23324
|
K1 as useLoadScript,
|
|
@@ -23358,7 +23356,7 @@ export {
|
|
|
23358
23356
|
ey as waitForStyleSheetsLoaded,
|
|
23359
23357
|
xw as writeToIndexDB,
|
|
23360
23358
|
Uw as wxJsChooseImage,
|
|
23361
|
-
|
|
23359
|
+
$w as wxJsDownloadImage,
|
|
23362
23360
|
e2 as wxJsDownloadVoice,
|
|
23363
23361
|
qw as wxJsGetLocalImgData,
|
|
23364
23362
|
i2 as wxJsGetLocation,
|
|
@@ -23378,7 +23376,7 @@ export {
|
|
|
23378
23376
|
s2 as wxJsTranslateVoice,
|
|
23379
23377
|
Bw as wxJsUpdateAppMessageShareData,
|
|
23380
23378
|
Xw as wxJsUpdateTimelineShareData,
|
|
23381
|
-
|
|
23379
|
+
Vw as wxJsUploadImage,
|
|
23382
23380
|
t2 as wxJsUploadVoice
|
|
23383
23381
|
};
|
|
23384
23382
|
//# sourceMappingURL=zyzgroup_core_web.js.map
|