@zyzgroup/core-web 0.1.75 → 0.1.77

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.
@@ -15,7 +15,7 @@ function ui(n) {
15
15
  function Un(n) {
16
16
  return n = ui(n), n = Dr(n), typeof Symbol == "function" ? Symbol(n) : `Symbol(${n})`;
17
17
  }
18
- const Ts = Un("TIMESTAMP"), Fu = Un("META");
18
+ const Cs = Un("TIMESTAMP"), Fu = Un("META");
19
19
  function Yu(n, t) {
20
20
  const e = t.toString();
21
21
  if (!ci(e))
@@ -35,7 +35,7 @@ function go(n) {
35
35
  return n;
36
36
  switch (n = ui(n), n) {
37
37
  case Dr("TIMESTAMP"):
38
- return Ts;
38
+ return Cs;
39
39
  case Dr("META"):
40
40
  return Fu;
41
41
  default:
@@ -260,7 +260,7 @@ function yo(n, t) {
260
260
  const e = n.codePointAt(t);
261
261
  return e ? String.fromCodePoint(e) : void 0;
262
262
  }
263
- function cs(n = 12, t = "all") {
263
+ function as(n = 12, t = "all") {
264
264
  let e = "ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789";
265
265
  t == "number" && (e = "0123456789");
266
266
  const s = e.length;
@@ -327,21 +327,21 @@ function rl(n) {
327
327
  Object.prototype.hasOwnProperty.call(n, e) && t.push(e);
328
328
  return t;
329
329
  }
330
- function Es(n, t, e = !1) {
330
+ function Ts(n, t, e = !1) {
331
331
  if (Ls(n) && Ls(t))
332
332
  for (const s in t)
333
- Ls(t[s]) ? (typeof n[s] > "u" && Object.assign(n, { [s]: {} }), Es(n[s], t[s], e)) : (e || typeof n[s] > "u") && Object.assign(n, { [s]: t[s] });
333
+ Ls(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
- function Ue(n) {
339
+ function hs(n) {
340
340
  if (!Ls(n))
341
341
  return "" + n;
342
342
  const t = [];
343
343
  return rl(n).forEach((e) => {
344
- Ls(n[e]) ? t.push(Ue(n[e])) : t.push(`${e}: ${n[e]}`);
344
+ Ls(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"]) {
@@ -438,7 +438,7 @@ function di(n) {
438
438
  const t = Aa("number", n);
439
439
  return t ? Array.isArray(t) ? t.map((e) => Number(e.fullMatch)) : [Number(t.fullMatch)] : [];
440
440
  }
441
- const Je = (n, t = 16) => {
441
+ const Ze = (n, t = 16) => {
442
442
  let e = n.toLowerCase();
443
443
  const s = e.indexOf("0b") == 0, r = e.indexOf("0o") == 0, i = e.indexOf("0x") == 0;
444
444
  (s || r || i) && (e = e.slice(2)), s && (t = 2), r && (t = 8), i && (t = 16);
@@ -552,7 +552,7 @@ function wl(n, t = !1) {
552
552
  function bl(n, t = 1, e = !1) {
553
553
  return n[n.length - 1] += t, wl(n, e);
554
554
  }
555
- const Ps = {
555
+ const Es = {
556
556
  THROW: 1,
557
557
  DROP: 2,
558
558
  SLIDE: 3,
@@ -562,7 +562,7 @@ class vl {
562
562
  queue;
563
563
  limit;
564
564
  overflow;
565
- constructor(t = 10, e = Ps.EXPAND) {
565
+ constructor(t = 10, e = Es.EXPAND) {
566
566
  this.queue = [], this.limit = t, this.overflow = e;
567
567
  }
568
568
  length() {
@@ -588,13 +588,13 @@ class vl {
588
588
  return;
589
589
  }
590
590
  switch (this.overflow) {
591
- case Ps.EXPAND:
591
+ case Es.EXPAND:
592
592
  this.limit *= 2, this.queue.push(t);
593
593
  break;
594
- case Ps.SLIDE:
594
+ case Es.SLIDE:
595
595
  this.deleteIndex(0), this.queue.push(t);
596
596
  break;
597
- case Ps.THROW:
597
+ case Es.THROW:
598
598
  throw new Error(`Queue limit(${this.limit}) overflow!`);
599
599
  }
600
600
  }
@@ -635,8 +635,8 @@ class vl {
635
635
  return t;
636
636
  }
637
637
  }
638
- const _l = (n) => new vl(n, Ps.EXPAND);
639
- class fs {
638
+ const _l = (n) => new vl(n, Es.EXPAND);
639
+ class ls {
640
640
  maps = /* @__PURE__ */ new Map();
641
641
  constructor() {
642
642
  }
@@ -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 Ke(n) {
728
+ function Ps(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 = () => {
@@ -741,7 +741,7 @@ function Fa(n = 0, t) {
741
741
  }
742
742
  function pi(n, t = 3, e, s) {
743
743
  return async function(...r) {
744
- const i = `retry(${n.name})(${r.map(Ue)})`;
744
+ const i = `retry(${n.name})(${r.map(hs)})`;
745
745
  let o;
746
746
  for (let a = 0; a < t; a++)
747
747
  try {
@@ -759,15 +759,15 @@ function pi(n, t = 3, e, s) {
759
759
  );
760
760
  }
761
761
  throw oe(
762
- `(${i}) 已 ${t} 次失败,不再重试。 Last error: ${Ue(
762
+ `(${i}) 已 ${t} 次失败,不再重试。 Last error: ${hs(
763
763
  o
764
764
  )}`
765
765
  ), o;
766
766
  };
767
767
  }
768
- function gi(n, t = 60, e = new fs(), s) {
768
+ function gi(n, t = 60, e = new ls(), s) {
769
769
  return async function(...r) {
770
- const i = `cache(${n.name})(${r.map(Ue)})`, o = Date.now();
770
+ const i = `cache(${n.name})(${r.map(hs)})`, o = Date.now();
771
771
  t && e.update((c, u) => o - u.timestamp < t * 1e3);
772
772
  const a = fi(r), h = e.get(a);
773
773
  if (h) {
@@ -783,7 +783,7 @@ function gi(n, t = 60, e = new fs(), s) {
783
783
  timestamp: Date.now()
784
784
  }), c;
785
785
  } catch (c) {
786
- throw oe(`${i} 执行失败 : ${Ue(c)}`), c;
786
+ throw oe(`${i} 执行失败 : ${hs(c)}`), c;
787
787
  }
788
788
  };
789
789
  }
@@ -1701,7 +1701,7 @@ function Va(n, t) {
1701
1701
  const { toString: Vl } = Object.prototype, { getPrototypeOf: _i } = Object, Vn = ((n) => (t) => {
1702
1702
  const e = Vl.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) => Vn(t) === n), qn = (n) => (t) => typeof t === n, { isArray: ds } = Array, Ys = qn("undefined");
1704
+ })(/* @__PURE__ */ Object.create(null)), Kt = (n) => (n = n.toLowerCase(), (t) => Vn(t) === n), qn = (n) => (t) => typeof t === n, { isArray: fs } = Array, Ys = qn("undefined");
1705
1705
  function ql(n) {
1706
1706
  return n !== null && !Ys(n) && n.constructor !== null && !Ys(n.constructor) && Ot(n.constructor.isBuffer) && n.constructor.isBuffer(n);
1707
1707
  }
@@ -1724,7 +1724,7 @@ function Vs(n, t, { allOwnKeys: e = !1 } = {}) {
1724
1724
  if (n === null || typeof n > "u")
1725
1725
  return;
1726
1726
  let s, r;
1727
- if (typeof n != "object" && (n = [n]), ds(n))
1727
+ if (typeof n != "object" && (n = [n]), fs(n))
1728
1728
  for (s = 0, r = n.length; s < r; s++)
1729
1729
  t.call(null, n[s], s, n);
1730
1730
  else {
@@ -1747,7 +1747,7 @@ const Fe = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? sel
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;
1750
- Cn(t[i]) && Cn(s) ? t[i] = Yr(t[i], s) : Cn(s) ? t[i] = Yr({}, s) : ds(s) ? t[i] = s.slice() : t[i] = s;
1750
+ Cn(t[i]) && Cn(s) ? t[i] = Yr(t[i], s) : Cn(s) ? t[i] = Yr({}, s) : fs(s) ? t[i] = s.slice() : t[i] = s;
1751
1751
  };
1752
1752
  for (let s = 0, r = arguments.length; s < r; s++)
1753
1753
  arguments[s] && Vs(arguments[s], e);
@@ -1777,7 +1777,7 @@ const cf = (n, t, e, { allOwnKeys: s } = {}) => (Vs(t, (r, i) => {
1777
1777
  }, mf = (n) => {
1778
1778
  if (!n)
1779
1779
  return null;
1780
- if (ds(n))
1780
+ if (fs(n))
1781
1781
  return n;
1782
1782
  let t = n.length;
1783
1783
  if (!ja(t))
@@ -1831,7 +1831,7 @@ const cf = (n, t, e, { allOwnKeys: s } = {}) => (Vs(t, (r, i) => {
1831
1831
  e[i] = !0;
1832
1832
  });
1833
1833
  };
1834
- return ds(n) ? s(n) : s(String(n).split(t)), e;
1834
+ return fs(n) ? s(n) : s(String(n).split(t)), e;
1835
1835
  }, Sf = () => {
1836
1836
  }, Cf = (n, t) => n != null && Number.isFinite(n = +n) ? n : t;
1837
1837
  function Tf(n) {
@@ -1844,7 +1844,7 @@ const Ef = (n) => {
1844
1844
  return;
1845
1845
  if (!("toJSON" in s)) {
1846
1846
  t[r] = s;
1847
- const i = ds(s) ? [] : {};
1847
+ const i = fs(s) ? [] : {};
1848
1848
  return Vs(s, (o, a) => {
1849
1849
  const h = e(o, r + 1);
1850
1850
  !Ys(h) && (i[a] = h);
@@ -1862,7 +1862,7 @@ const Ef = (n) => {
1862
1862
  typeof setImmediate == "function",
1863
1863
  Ot(Fe.postMessage)
1864
1864
  ), Af = typeof queueMicrotask < "u" ? queueMicrotask.bind(Fe) : typeof process < "u" && process.nextTick || Ja, M = {
1865
- isArray: ds,
1865
+ isArray: fs,
1866
1866
  isArrayBuffer: qa,
1867
1867
  isBuffer: ql,
1868
1868
  isFormData: ef,
@@ -2314,7 +2314,7 @@ const Ei = Ti, jf = M.toObjectSet([
2314
2314
  r = o.indexOf(":"), e = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!e || t[e] && jf[e]) && (e === "set-cookie" ? t[e] ? t[e].push(s) : t[e] = [s] : t[e] = t[e] ? t[e] + ", " + s : s);
2315
2315
  }), t;
2316
2316
  }, Do = Symbol("internals");
2317
- function vs(n) {
2317
+ function bs(n) {
2318
2318
  return n && String(n).trim().toLowerCase();
2319
2319
  }
2320
2320
  function Tn(n) {
@@ -2359,7 +2359,7 @@ class Wn {
2359
2359
  set(t, e, s) {
2360
2360
  const r = this;
2361
2361
  function i(a, h, c) {
2362
- const u = vs(h);
2362
+ const u = bs(h);
2363
2363
  if (!u)
2364
2364
  throw new Error("header name must be a non-empty string");
2365
2365
  const l = M.findKey(r, u);
@@ -2378,7 +2378,7 @@ class Wn {
2378
2378
  return this;
2379
2379
  }
2380
2380
  get(t, e) {
2381
- if (t = vs(t), t) {
2381
+ if (t = bs(t), t) {
2382
2382
  const s = M.findKey(this, t);
2383
2383
  if (s) {
2384
2384
  const r = this[s];
@@ -2395,7 +2395,7 @@ class Wn {
2395
2395
  }
2396
2396
  }
2397
2397
  has(t, e) {
2398
- if (t = vs(t), t) {
2398
+ if (t = bs(t), t) {
2399
2399
  const s = M.findKey(this, t);
2400
2400
  return !!(s && this[s] !== void 0 && (!e || gr(this, this[s], s, e)));
2401
2401
  }
@@ -2405,7 +2405,7 @@ class Wn {
2405
2405
  const s = this;
2406
2406
  let r = !1;
2407
2407
  function i(o) {
2408
- if (o = vs(o), o) {
2408
+ if (o = bs(o), o) {
2409
2409
  const a = M.findKey(s, o);
2410
2410
  a && (!e || gr(s, s[a], a, e)) && (delete s[a], r = !0);
2411
2411
  }
@@ -2464,7 +2464,7 @@ class Wn {
2464
2464
  accessors: {}
2465
2465
  }).accessors, r = this.prototype;
2466
2466
  function i(o) {
2467
- const a = vs(o);
2467
+ const a = bs(o);
2468
2468
  s[a] || (Qf(r, o), s[a] = !0);
2469
2469
  }
2470
2470
  return M.isArray(t) ? t.forEach(i) : i(t), this;
@@ -2492,10 +2492,10 @@ function yr(n, t) {
2492
2492
  function ih(n) {
2493
2493
  return !!(n && n.__CANCEL__);
2494
2494
  }
2495
- function ms(n, t, e) {
2495
+ function ds(n, t, e) {
2496
2496
  B.call(this, n ?? "canceled", B.ERR_CANCELED, t, e), this.name = "CanceledError";
2497
2497
  }
2498
- M.inherits(ms, B, {
2498
+ M.inherits(ds, B, {
2499
2499
  __CANCEL__: !0
2500
2500
  });
2501
2501
  function oh(n, t, e) {
@@ -2607,7 +2607,7 @@ function ah(n, t, e) {
2607
2607
  return n && (s || e == !1) ? id(n, t) : t;
2608
2608
  }
2609
2609
  const Oo = (n) => n instanceof Qt ? { ...n } : n;
2610
- function Ge(n, t) {
2610
+ function Ue(n, t) {
2611
2611
  t = t || {};
2612
2612
  const e = {};
2613
2613
  function s(c, u, l, d) {
@@ -2674,7 +2674,7 @@ function Ge(n, t) {
2674
2674
  }), e;
2675
2675
  }
2676
2676
  const hh = (n) => {
2677
- const t = Ge({}, n);
2677
+ const t = Ue({}, n);
2678
2678
  let { data: e, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: i, headers: o, auth: a } = t;
2679
2679
  t.headers = o = Qt.from(o), t.url = sh(ah(t.baseURL, t.url, t.allowAbsoluteUrls), n.params, n.paramsSerializer), a && o.set(
2680
2680
  "Authorization",
@@ -2742,7 +2742,7 @@ const hh = (n) => {
2742
2742
  }, i === void 0 && o.setContentType(null), "setRequestHeader" in b && M.forEach(o.toJSON(), function(w, C) {
2743
2743
  b.setRequestHeader(C, w);
2744
2744
  }), M.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), a && a !== "json" && (b.responseType = r.responseType), c && ([d, m] = Dn(c, !0), b.addEventListener("progress", d)), h && b.upload && ([l, f] = Dn(h), b.upload.addEventListener("progress", l), b.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (u = (x) => {
2745
- b && (s(!x || x.type ? new ms(null, n, b) : x), b.abort(), b = null);
2745
+ b && (s(!x || x.type ? new ds(null, n, b) : x), b.abort(), b = null);
2746
2746
  }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
2747
2747
  const v = Kf(r.url);
2748
2748
  if (v && bt.protocols.indexOf(v) === -1) {
@@ -2759,7 +2759,7 @@ const hh = (n) => {
2759
2759
  if (!r) {
2760
2760
  r = !0, a();
2761
2761
  const u = c instanceof Error ? c : this.reason;
2762
- s.abort(u instanceof B ? u : new ms(u instanceof Error ? u.message : u));
2762
+ s.abort(u instanceof B ? u : new ds(u instanceof Error ? u.message : u));
2763
2763
  }
2764
2764
  };
2765
2765
  let o = t && setTimeout(() => {
@@ -3006,7 +3006,7 @@ const Fo = (n) => `- ${n}`, xd = (n) => M.isFunction(n) || n === null || n === !
3006
3006
  };
3007
3007
  function xr(n) {
3008
3008
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
3009
- throw new ms(null, n);
3009
+ throw new ds(null, n);
3010
3010
  }
3011
3011
  function Yo(n) {
3012
3012
  return xr(n), n.headers = Qt.from(n.headers), n.data = yr.call(
@@ -3108,7 +3108,7 @@ class Rn {
3108
3108
  }
3109
3109
  }
3110
3110
  _request(t, e) {
3111
- typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = Ge(this.defaults, e);
3111
+ typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = Ue(this.defaults, e);
3112
3112
  const { transitional: s, paramsSerializer: r, headers: i } = e;
3113
3113
  s !== void 0 && En.assertOptions(s, {
3114
3114
  silentJSONParsing: ne.transitional(ne.boolean),
@@ -3170,14 +3170,14 @@ class Rn {
3170
3170
  return u;
3171
3171
  }
3172
3172
  getUri(t) {
3173
- t = Ge(this.defaults, t);
3173
+ t = Ue(this.defaults, t);
3174
3174
  const e = ah(t.baseURL, t.url, t.allowAbsoluteUrls);
3175
3175
  return sh(e, t.params, t.paramsSerializer);
3176
3176
  }
3177
3177
  }
3178
3178
  M.forEach(["delete", "get", "head", "options"], function(t) {
3179
3179
  Rn.prototype[t] = function(e, s) {
3180
- return this.request(Ge(s || {}, {
3180
+ return this.request(Ue(s || {}, {
3181
3181
  method: t,
3182
3182
  url: e,
3183
3183
  data: (s || {}).data
@@ -3187,7 +3187,7 @@ M.forEach(["delete", "get", "head", "options"], function(t) {
3187
3187
  M.forEach(["post", "put", "patch"], function(t) {
3188
3188
  function e(s) {
3189
3189
  return function(i, o, a) {
3190
- return this.request(Ge(a || {}, {
3190
+ return this.request(Ue(a || {}, {
3191
3191
  method: t,
3192
3192
  headers: s ? {
3193
3193
  "Content-Type": "multipart/form-data"
@@ -3225,7 +3225,7 @@ class Pi {
3225
3225
  s.unsubscribe(i);
3226
3226
  }, o;
3227
3227
  }, t(function(i, o, a) {
3228
- s.reason || (s.reason = new ms(i, o, a), e(s.reason));
3228
+ s.reason || (s.reason = new ds(i, o, a), e(s.reason));
3229
3229
  });
3230
3230
  }
3231
3231
  /**
@@ -3355,12 +3355,12 @@ const Sd = $r;
3355
3355
  function dh(n) {
3356
3356
  const t = new Pn(n), e = Va(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
- return dh(Ge(n, r));
3358
+ return dh(Ue(n, r));
3359
3359
  }, e;
3360
3360
  }
3361
3361
  const at = dh(Ei);
3362
3362
  at.Axios = Pn;
3363
- at.CanceledError = ms;
3363
+ at.CanceledError = ds;
3364
3364
  at.CancelToken = bd;
3365
3365
  at.isCancel = ih;
3366
3366
  at.VERSION = fh;
@@ -3372,7 +3372,7 @@ at.all = function(t) {
3372
3372
  };
3373
3373
  at.spread = vd;
3374
3374
  at.isAxiosError = _d;
3375
- at.mergeConfig = Ge;
3375
+ at.mergeConfig = Ue;
3376
3376
  at.AxiosHeaders = Qt;
3377
3377
  at.formToJSON = (n) => rh(M.isHTMLForm(n) ? new FormData(n) : n);
3378
3378
  at.getAdapter = lh.getAdapter;
@@ -3384,7 +3384,7 @@ class mh {
3384
3384
  canceler;
3385
3385
  retryCount = 0;
3386
3386
  cacheTime = 0;
3387
- caches = new fs();
3387
+ caches = new ls();
3388
3388
  constructor(t) {
3389
3389
  this.instance = Cd.create(t), this.canceler = new Td(), this.retryCount = t?.retry || 0, this.cacheTime = t?.cache || 0, this.instance.interceptors.request.use(
3390
3390
  (e) => (this.canceler.pendingRequest(e), t?.interceptor?.request?.(e), e),
@@ -3788,7 +3788,7 @@ var wh = { exports: {} };
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", Js = "kinect", Qs = 25, lt = 1, te = 2, tt = 4, yt = 8, We = 1, Ie = 2, De = 4, we = 8, A = 16, rt = Ie | De, Le = we | A, Zi = rt | Le, Ji = ["x", "y"], Ks = ["clientX", "clientY"];
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", Js = "kinect", Qs = 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"], Ks = ["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) {
@@ -3887,7 +3887,7 @@ var wh = { exports: {} };
3887
3887
  };
3888
3888
  }
3889
3889
  function eo(p, _) {
3890
- return p === _ ? We : c(p) >= c(_) ? p < 0 ? Ie : De : _ < 0 ? we : A;
3890
+ return p === _ ? He : c(p) >= c(_) ? p < 0 ? Ie : De : _ < 0 ? we : A;
3891
3891
  }
3892
3892
  function tn(p, _, E) {
3893
3893
  E || (E = Ji);
@@ -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", xs = "pan-x", ws = "pan-y", nn = Iu();
4082
+ var ao = J(o.style, "touchAction"), ho = ao !== r, co = "compute", uo = "auto", ar = "manipulation", Re = "none", ys = "pan-x", xs = "pan-y", nn = Iu();
4083
4083
  function hr(p, _) {
4084
4084
  this.manager = p, this.set(_);
4085
4085
  }
@@ -4117,7 +4117,7 @@ var wh = { exports: {} };
4117
4117
  _.preventDefault();
4118
4118
  return;
4119
4119
  }
4120
- var P = this.actions, k = F(P, Re) && !nn[Re], R = F(P, ws) && !nn[ws], G = F(P, xs) && !nn[xs];
4120
+ var P = this.actions, k = F(P, Re) && !nn[Re], R = F(P, xs) && !nn[xs], G = F(P, ys) && !nn[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)
@@ -4137,8 +4137,8 @@ var wh = { exports: {} };
4137
4137
  function ku(p) {
4138
4138
  if (F(p, Re))
4139
4139
  return Re;
4140
- var _ = F(p, xs), E = F(p, ws);
4141
- return _ && E ? Re : _ || E ? _ ? xs : ws : F(p, ar) ? ar : uo;
4140
+ var _ = F(p, ys), E = F(p, xs);
4141
+ return _ && E ? Re : _ || E ? _ ? ys : xs : F(p, ar) ? ar : uo;
4142
4142
  }
4143
4143
  function Iu() {
4144
4144
  if (!ho)
@@ -4148,7 +4148,7 @@ var wh = { exports: {} };
4148
4148
  p[E] = _ ? t.CSS.supports("touch-action", E) : !0;
4149
4149
  }), p;
4150
4150
  }
4151
- var rn = 1, Bt = 2, Ze = 4, be = 8, he = be, bs = 16, ee = 32;
4151
+ var rn = 1, Bt = 2, We = 4, be = 8, he = be, ws = 16, ee = 32;
4152
4152
  function ce(p) {
4153
4153
  this.options = g({}, this.defaults, p || {}), this.id = It(), this.manager = null, this.options.enable = C(this.options.enable, !0), this.state = rn, this.simultaneous = {}, this.requireFail = [];
4154
4154
  }
@@ -4268,7 +4268,7 @@ var wh = { exports: {} };
4268
4268
  this.reset(), this.state = ee;
4269
4269
  return;
4270
4270
  }
4271
- this.state & (he | bs | ee) && (this.state = rn), this.state = this.process(_), this.state & (Bt | Ze | be | bs) && this.tryEmit(_);
4271
+ this.state & (he | ws | ee) && (this.state = rn), this.state = this.process(_), this.state & (Bt | We | be | ws) && this.tryEmit(_);
4272
4272
  },
4273
4273
  /**
4274
4274
  * return the state of the recognizer
@@ -4296,7 +4296,7 @@ var wh = { exports: {} };
4296
4296
  }
4297
4297
  };
4298
4298
  function lo(p) {
4299
- return p & bs ? "cancel" : p & be ? "end" : p & Ze ? "move" : p & Bt ? "start" : "";
4299
+ return p & ws ? "cancel" : p & be ? "end" : p & We ? "move" : p & Bt ? "start" : "";
4300
4300
  }
4301
4301
  function fo(p) {
4302
4302
  return p == A ? "down" : p == we ? "up" : p == Ie ? "left" : p == De ? "right" : "";
@@ -4337,8 +4337,8 @@ var wh = { exports: {} };
4337
4337
  * @returns {*} State
4338
4338
  */
4339
4339
  process: function(p) {
4340
- var _ = this.state, E = p.eventType, P = _ & (Bt | Ze), k = this.attrTest(p);
4341
- return P && (E & yt || !k) ? _ | bs : P || k ? E & tt ? _ | be : _ & Bt ? _ | Ze : Bt : ee;
4340
+ var _ = this.state, E = p.eventType, P = _ & (Bt | We), k = this.attrTest(p);
4341
+ return P && (E & yt || !k) ? _ | ws : P || k ? E & tt ? _ | be : _ & Bt ? _ | We : Bt : ee;
4342
4342
  }
4343
4343
  });
4344
4344
  function an() {
@@ -4357,11 +4357,11 @@ var wh = { exports: {} };
4357
4357
  },
4358
4358
  getTouchAction: function() {
4359
4359
  var p = this.options.direction, _ = [];
4360
- return p & rt && _.push(ws), p & Le && _.push(xs), _;
4360
+ return p & rt && _.push(xs), p & Le && _.push(ys), _;
4361
4361
  },
4362
4362
  directionTest: function(p) {
4363
4363
  var _ = this.options, E = !0, P = p.distance, k = p.direction, R = p.deltaX, G = p.deltaY;
4364
- return k & _.direction || (_.direction & rt ? (k = R === 0 ? We : R < 0 ? Ie : De, E = R != this.pX, P = Math.abs(p.deltaX)) : (k = G === 0 ? We : G < 0 ? we : A, E = G != this.pY, P = Math.abs(p.deltaY))), p.direction = k, E && P > _.threshold && k & _.direction;
4364
+ return k & _.direction || (_.direction & rt ? (k = R === 0 ? He : R < 0 ? Ie : De, E = R != this.pX, P = Math.abs(p.deltaX)) : (k = G === 0 ? He : G < 0 ? we : A, E = G != this.pY, P = Math.abs(p.deltaY))), p.direction = k, E && P > _.threshold && k & _.direction;
4365
4365
  },
4366
4366
  attrTest: function(p) {
4367
4367
  return Ht.prototype.attrTest.call(this, p) && (this.state & Bt || !(this.state & Bt) && this.directionTest(p));
@@ -4676,7 +4676,7 @@ var wh = { exports: {} };
4676
4676
  for (var R = 0; R < P.length; )
4677
4677
  E = P[R], _.stopped !== mo && // 1
4678
4678
  (!k || E == k || // 2
4679
- E.canRecognizeWith(k)) ? E.recognize(p) : E.reset(), !k && E.state & (Bt | Ze | be) && (k = _.curRecognizer = E), R++;
4679
+ E.canRecognizeWith(k)) ? E.recognize(p) : E.reset(), !k && E.state & (Bt | We | be) && (k = _.curRecognizer = E), R++;
4680
4680
  }
4681
4681
  },
4682
4682
  /**
@@ -4790,12 +4790,12 @@ var wh = { exports: {} };
4790
4790
  INPUT_CANCEL: yt,
4791
4791
  STATE_POSSIBLE: rn,
4792
4792
  STATE_BEGAN: Bt,
4793
- STATE_CHANGED: Ze,
4793
+ STATE_CHANGED: We,
4794
4794
  STATE_ENDED: be,
4795
4795
  STATE_RECOGNIZED: he,
4796
- STATE_CANCELLED: bs,
4796
+ STATE_CANCELLED: ws,
4797
4797
  STATE_FAILED: ee,
4798
- DIRECTION_NONE: We,
4798
+ DIRECTION_NONE: He,
4799
4799
  DIRECTION_LEFT: Ie,
4800
4800
  DIRECTION_RIGHT: De,
4801
4801
  DIRECTION_UP: we,
@@ -4946,7 +4946,7 @@ function bh(n, t) {
4946
4946
  return { value: c[0] ? c[1] : void 0, done: !0 };
4947
4947
  }
4948
4948
  }
4949
- function $e(n) {
4949
+ function Ge(n) {
4950
4950
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && n[t], s = 0;
4951
4951
  if (e)
4952
4952
  return e.call(n);
@@ -4978,14 +4978,14 @@ function Pe(n, t) {
4978
4978
  }
4979
4979
  return i;
4980
4980
  }
4981
- function Ve(n, t, e) {
4981
+ function $e(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]);
4985
4985
  return n.concat(i || Array.prototype.slice.call(t));
4986
4986
  }
4987
- function ns(n) {
4988
- return this instanceof ns ? (this.v = n, this) : new ns(n);
4987
+ function es(n) {
4988
+ return this instanceof es ? (this.v = n, this) : new es(n);
4989
4989
  }
4990
4990
  function Ad(n, t, e) {
4991
4991
  if (!Symbol.asyncIterator)
@@ -5014,7 +5014,7 @@ function Ad(n, t, e) {
5014
5014
  }
5015
5015
  }
5016
5016
  function c(f) {
5017
- f.value instanceof ns ? Promise.resolve(f.value.v).then(u, l) : d(i[0][2], f);
5017
+ f.value instanceof es ? Promise.resolve(f.value.v).then(u, l) : d(i[0][2], f);
5018
5018
  }
5019
5019
  function u(f) {
5020
5020
  h("next", f);
@@ -5030,7 +5030,7 @@ function kd(n) {
5030
5030
  if (!Symbol.asyncIterator)
5031
5031
  throw new TypeError("Symbol.asyncIterator is not defined.");
5032
5032
  var t = n[Symbol.asyncIterator], e;
5033
- return t ? t.call(n) : (n = typeof $e == "function" ? $e(n) : n[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
5033
+ return t ? t.call(n) : (n = typeof Ge == "function" ? Ge(n) : n[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
5034
5034
  return this;
5035
5035
  }, e);
5036
5036
  function s(i) {
@@ -5070,7 +5070,7 @@ function Bs(n, t) {
5070
5070
  0 <= e && n.splice(e, 1);
5071
5071
  }
5072
5072
  }
5073
- var ps = function() {
5073
+ var ms = function() {
5074
5074
  function n(t) {
5075
5075
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
5076
5076
  }
@@ -5082,7 +5082,7 @@ var ps = function() {
5082
5082
  if (o)
5083
5083
  if (this._parentage = null, Array.isArray(o))
5084
5084
  try {
5085
- for (var a = $e(o), h = a.next(); !h.done; h = a.next()) {
5085
+ for (var a = Ge(o), h = a.next(); !h.done; h = a.next()) {
5086
5086
  var c = h.value;
5087
5087
  c.remove(this);
5088
5088
  }
@@ -5109,12 +5109,12 @@ var ps = function() {
5109
5109
  if (l) {
5110
5110
  this._finalizers = null;
5111
5111
  try {
5112
- for (var d = $e(l), f = d.next(); !f.done; f = d.next()) {
5112
+ for (var d = Ge(l), f = d.next(); !f.done; f = d.next()) {
5113
5113
  var m = f.value;
5114
5114
  try {
5115
5115
  Xo(m);
5116
5116
  } catch (g) {
5117
- i = i ?? [], g instanceof wr ? i = Ve(Ve([], Pe(i)), Pe(g.errors)) : i.push(g);
5117
+ i = i ?? [], g instanceof wr ? i = $e($e([], Pe(i)), Pe(g.errors)) : i.push(g);
5118
5118
  }
5119
5119
  }
5120
5120
  } catch (g) {
@@ -5160,9 +5160,9 @@ var ps = function() {
5160
5160
  var t = new n();
5161
5161
  return t.closed = !0, t;
5162
5162
  }(), n;
5163
- }(), vh = ps.EMPTY;
5163
+ }(), vh = ms.EMPTY;
5164
5164
  function _h(n) {
5165
- return n instanceof ps || n && "closed" in n && j(n.remove) && j(n.add) && j(n.unsubscribe);
5165
+ return n instanceof ms || n && "closed" in n && j(n.remove) && j(n.add) && j(n.unsubscribe);
5166
5166
  }
5167
5167
  function Xo(n) {
5168
5168
  j(n) ? n() : n.unsubscribe();
@@ -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, Ve([n, t], Pe(e))) : setTimeout.apply(void 0, Ve([n, t], Pe(e)));
5181
+ return r?.setTimeout ? r.setTimeout.apply(r, $e([n, t], Pe(e))) : setTimeout.apply(void 0, $e([n, t], Pe(e)));
5182
5182
  },
5183
5183
  clearTimeout: function(n) {
5184
5184
  var t = qr.delegate;
@@ -5227,7 +5227,7 @@ var Ai = function(n) {
5227
5227
  this.unsubscribe();
5228
5228
  }
5229
5229
  }, t;
5230
- }(ps), Id = Function.prototype.bind;
5230
+ }(ms), Id = Function.prototype.bind;
5231
5231
  function br(n, t) {
5232
5232
  return Id.call(n, t);
5233
5233
  }
@@ -5300,11 +5300,11 @@ var Rd = {
5300
5300
  }, ki = function() {
5301
5301
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
5302
5302
  }();
5303
- function He(n) {
5303
+ function je(n) {
5304
5304
  return n;
5305
5305
  }
5306
5306
  function Od(n) {
5307
- return n.length === 0 ? He : n.length === 1 ? n[0] : function(e) {
5307
+ return n.length === 0 ? je : n.length === 1 ? n[0] : function(e) {
5308
5308
  return n.reduce(function(s, r) {
5309
5309
  return r(s);
5310
5310
  }, e);
@@ -5438,7 +5438,7 @@ var Yd = function(n) {
5438
5438
  return function() {
5439
5439
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
5440
5440
  };
5441
- }), gs = function(n) {
5441
+ }), ps = function(n) {
5442
5442
  xe(t, n);
5443
5443
  function t() {
5444
5444
  var e = n.call(this) || this;
@@ -5457,7 +5457,7 @@ var Yd = function(n) {
5457
5457
  if (s._throwIfClosed(), !s.isStopped) {
5458
5458
  s.currentObservers || (s.currentObservers = Array.from(s.observers));
5459
5459
  try {
5460
- for (var o = $e(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
5460
+ for (var o = Ge(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
5461
5461
  var h = a.value;
5462
5462
  h.next(e);
5463
5463
  }
@@ -5506,7 +5506,7 @@ var Yd = function(n) {
5506
5506
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
5507
5507
  }, t.prototype._innerSubscribe = function(e) {
5508
5508
  var s = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
5509
- return i || o ? vh : (this.currentObservers = null, a.push(e), new ps(function() {
5509
+ return i || o ? vh : (this.currentObservers = null, a.push(e), new ms(function() {
5510
5510
  s.currentObservers = null, Bs(a, e);
5511
5511
  }));
5512
5512
  }, t.prototype._checkFinalizedStatuses = function(e) {
@@ -5537,7 +5537,7 @@ var Yd = function(n) {
5537
5537
  var s, r;
5538
5538
  return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && r !== void 0 ? r : vh;
5539
5539
  }, t;
5540
- }(gs), Xd = function(n) {
5540
+ }(ps), Xd = function(n) {
5541
5541
  xe(t, n);
5542
5542
  function t(e) {
5543
5543
  var s = n.call(this) || this;
@@ -5560,7 +5560,7 @@ var Yd = function(n) {
5560
5560
  }, t.prototype.next = function(e) {
5561
5561
  n.prototype.next.call(this, this._value = e);
5562
5562
  }, t;
5563
- }(gs), Th = {
5563
+ }(ps), Th = {
5564
5564
  now: function() {
5565
5565
  return (Th.delegate || Date).now();
5566
5566
  },
@@ -5573,12 +5573,12 @@ var Yd = function(n) {
5573
5573
  return t.prototype.schedule = function(e, s) {
5574
5574
  return this;
5575
5575
  }, t;
5576
- }(ps), zn = {
5576
+ }(ms), zn = {
5577
5577
  setInterval: function(n, t) {
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, Ve([n, t], Pe(e))) : setInterval.apply(void 0, Ve([n, t], Pe(e)));
5581
+ return r?.setInterval ? r.setInterval.apply(r, $e([n, t], Pe(e))) : setInterval.apply(void 0, $e([n, t], Pe(e)));
5582
5582
  },
5583
5583
  clearInterval: function(n) {
5584
5584
  var t = zn.delegate;
@@ -5709,13 +5709,13 @@ function Rh(n) {
5709
5709
  case 1:
5710
5710
  o.trys.push([1, , 9, 10]), o.label = 2;
5711
5711
  case 2:
5712
- return [4, ns(e.read())];
5712
+ return [4, es(e.read())];
5713
5713
  case 3:
5714
- return s = o.sent(), r = s.value, i = s.done, i ? [4, ns(void 0)] : [3, 5];
5714
+ return s = o.sent(), r = s.value, i = s.done, i ? [4, es(void 0)] : [3, 5];
5715
5715
  case 4:
5716
5716
  return [2, o.sent()];
5717
5717
  case 5:
5718
- return [4, ns(r)];
5718
+ return [4, es(r)];
5719
5719
  case 6:
5720
5720
  return [4, o.sent()];
5721
5721
  case 7:
@@ -5780,7 +5780,7 @@ function Qd(n) {
5780
5780
  return new et(function(t) {
5781
5781
  var e, s;
5782
5782
  try {
5783
- for (var r = $e(n), i = r.next(); !i.done; i = r.next()) {
5783
+ for (var r = Ge(n), i = r.next(); !i.done; i = r.next()) {
5784
5784
  var o = i.value;
5785
5785
  if (t.next(o), t.closed)
5786
5786
  return;
@@ -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, Ve([], Pe(t))) : n(t);
5992
+ return lm(t) ? n.apply(void 0, $e([], Pe(t))) : n(t);
5993
5993
  }
5994
5994
  function Oi(n) {
5995
5995
  return it(function(t) {
@@ -6030,11 +6030,11 @@ function bm() {
6030
6030
  return js([], e);
6031
6031
  var a = new et(vm(i, e, o ? function(h) {
6032
6032
  return wm(o, h);
6033
- } : He));
6033
+ } : je));
6034
6034
  return s ? a.pipe(Oi(s)) : a;
6035
6035
  }
6036
6036
  function vm(n, t, e) {
6037
- return e === void 0 && (e = He), function(s) {
6037
+ return e === void 0 && (e = je), function(s) {
6038
6038
  Vo(t, function() {
6039
6039
  for (var r = n.length, i = new Array(r), o = r, a = r, h = function(u) {
6040
6040
  Vo(t, function() {
@@ -6098,7 +6098,7 @@ function zi(n, t, e) {
6098
6098
  }));
6099
6099
  }
6100
6100
  function Yh(n) {
6101
- return n === void 0 && (n = 1 / 0), zi(He, n);
6101
+ return n === void 0 && (n = 1 / 0), zi(je, n);
6102
6102
  }
6103
6103
  function Sm() {
6104
6104
  return Yh(1);
@@ -6213,7 +6213,7 @@ function Rm(n) {
6213
6213
  };
6214
6214
  }
6215
6215
  function Me(n, t) {
6216
- return t === void 0 && (t = He), n = n ?? Om, Nt(function(e, s) {
6216
+ return t === void 0 && (t = je), n = n ?? Om, Nt(function(e, s) {
6217
6217
  var r, i = !0;
6218
6218
  e.subscribe(ut(s, function(o) {
6219
6219
  var a = t(o);
@@ -6269,7 +6269,7 @@ function Kn(n, t) {
6269
6269
  });
6270
6270
  }
6271
6271
  function zm() {
6272
- return Kn(He);
6272
+ return Kn(je);
6273
6273
  }
6274
6274
  function Fi(n) {
6275
6275
  return Nt(function(t, e) {
@@ -6278,7 +6278,7 @@ function Fi(n) {
6278
6278
  }, Xs)), !e.closed && t.subscribe(e);
6279
6279
  });
6280
6280
  }
6281
- function qe(n, t, e) {
6281
+ function Ve(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;
@@ -6297,7 +6297,7 @@ function qe(n, t, e) {
6297
6297
  var h, c;
6298
6298
  a && ((h = s.unsubscribe) === null || h === void 0 || h.call(s)), (c = s.finalize) === null || c === void 0 || c.call(s);
6299
6299
  }));
6300
- }) : He;
6300
+ }) : je;
6301
6301
  }
6302
6302
  function Nm(n, t) {
6303
6303
  return Nt(function(e, s) {
@@ -6336,9 +6336,9 @@ function Ym(n, t) {
6336
6336
  s.error(o);
6337
6337
  };
6338
6338
  _t(n).subscribe(ut(s, function(o) {
6339
- var a = new gs();
6339
+ var a = new ps();
6340
6340
  r.push(a);
6341
- var h = new ps(), c = function() {
6341
+ var h = new ms(), c = function() {
6342
6342
  Bs(r, a), a.complete(), h.unsubscribe();
6343
6343
  }, u;
6344
6344
  try {
@@ -6351,7 +6351,7 @@ function Ym(n, t) {
6351
6351
  }, Xs)), e.subscribe(ut(s, function(o) {
6352
6352
  var a, h, c = r.slice();
6353
6353
  try {
6354
- for (var u = $e(c), l = u.next(); !l.done; l = u.next()) {
6354
+ for (var u = Ge(c), l = u.next(); !l.done; l = u.next()) {
6355
6355
  var d = l.value;
6356
6356
  d.next(o);
6357
6357
  }
@@ -7387,7 +7387,7 @@ class tr {
7387
7387
  this.pausedDuration += this.pausedClock.getElapsedTime(), this.pausedClock.stop(), this.isPaused = !1;
7388
7388
  }
7389
7389
  }
7390
- const Fn = new fs();
7390
+ const Fn = new ls();
7391
7391
  function Qh(n) {
7392
7392
  const t = Fn.getEntry((s, r) => r.el == n);
7393
7393
  if (t)
@@ -7430,7 +7430,7 @@ function ae(n, t, e, s) {
7430
7430
  let r = Math.atan2(s - t, e - n);
7431
7431
  return r < 0 && (r += Math.PI * 2), r;
7432
7432
  }
7433
- function je(n, t) {
7433
+ function qe(n, t) {
7434
7434
  return {
7435
7435
  dx: Math.cos(n) * t,
7436
7436
  dy: Math.sin(n) * t
@@ -7513,7 +7513,7 @@ function gp(n) {
7513
7513
  };
7514
7514
  return t[n] || t.alphabetic;
7515
7515
  }
7516
- const _s = {
7516
+ const vs = {
7517
7517
  strokeStyle: {
7518
7518
  svgAttr: "stroke",
7519
7519
  canvas: "#000000",
@@ -7660,17 +7660,17 @@ let _r = class {
7660
7660
  * Applies default canvas styles to the context
7661
7661
  */
7662
7662
  __setDefaultStyles() {
7663
- const t = Object.keys(_s);
7663
+ const t = Object.keys(vs);
7664
7664
  for (let e = 0, s = t.length; e < s; e++) {
7665
7665
  const r = t[e];
7666
- this[r] = _s[r].canvas;
7666
+ this[r] = vs[r].canvas;
7667
7667
  }
7668
7668
  }
7669
7669
  /**
7670
7670
  * Gets the current style state
7671
7671
  */
7672
7672
  __getStyleState() {
7673
- const t = {}, e = Object.keys(_s);
7673
+ const t = {}, e = Object.keys(vs);
7674
7674
  for (let s = 0, r = e.length; s < r; s++) {
7675
7675
  const i = e[s];
7676
7676
  t[i] = this[i];
@@ -7711,9 +7711,9 @@ let _r = class {
7711
7711
  s && (e.setAttribute(t, ""), e = s.element, s.children.forEach((i) => {
7712
7712
  i.setAttribute(t, "");
7713
7713
  }));
7714
- const r = Object.keys(_s);
7714
+ const r = Object.keys(vs);
7715
7715
  for (let i = 0; i < r.length; i++) {
7716
- const o = _s[r[i]], a = this[r[i]];
7716
+ const o = vs[r[i]], a = this[r[i]];
7717
7717
  if (o.apply) {
7718
7718
  if (a instanceof Qo) {
7719
7719
  if (a.__ctx)
@@ -8974,17 +8974,17 @@ const dn = {
8974
8974
  // Z
8975
8975
  // r: 4
8976
8976
  };
8977
- class es {
8977
+ class Ke {
8978
8978
  static createSVGElement(t = "path", e) {
8979
8979
  const s = document.createElementNS.call(
8980
8980
  document,
8981
8981
  "http://www.w3.org/2000/svg",
8982
8982
  t
8983
8983
  );
8984
- return e && is(s, e), s;
8984
+ return e && ns(s, e), s;
8985
8985
  }
8986
8986
  static createSvgPath(t, e) {
8987
- return this.createSVGElement("path", { d: t, id: e || cs() });
8987
+ return this.createSVGElement("path", { d: t, id: e || as() });
8988
8988
  }
8989
8989
  static downloadFromSVGElement(t, e = "shape") {
8990
8990
  return Kr(
@@ -9025,7 +9025,7 @@ class es {
9025
9025
  /// parse an svg path data string to `[[command, arg1, arg2, ...], ...]`
9026
9026
  static parseSVGPath(t) {
9027
9027
  const e = [];
9028
- return es.isSVGPath(t) && t.replace(
9028
+ return Ke.isSVGPath(t) && t.replace(
9029
9029
  /([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,
9030
9030
  (s, r, i) => {
9031
9031
  let o = r.toLowerCase();
@@ -9289,12 +9289,12 @@ let Tp = class de {
9289
9289
  this.cX = 0, this.cY = 0, this.x = t?.x || 0, this.y = t?.y || 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && (this.cX = t.centerX - this.x, this.cY = t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.reset(t?.d, t?.originMatrix);
9290
9290
  }
9291
9291
  reset(t, e) {
9292
- typeof t == "string" ? this.resetFromSVGPathData(es.parseSVGPath(t), e) : t instanceof de ? this.resetFromSVGPathData(t.toSVGPathData(), e) : this.resetFromSVGPathData(t || [], e);
9292
+ typeof t == "string" ? this.resetFromSVGPathData(Ke.parseSVGPath(t), e) : t instanceof de ? this.resetFromSVGPathData(t.toSVGPathData(), e) : this.resetFromSVGPathData(t || [], e);
9293
9293
  }
9294
9294
  resetFromSVGPathData(t, e) {
9295
9295
  this.normalizedLines = [];
9296
- const s = es.normalizeSVGPath(
9297
- es.absolutizeSVGPath(t)
9296
+ const s = Ke.normalizeSVGPath(
9297
+ Ke.absolutizeSVGPath(t)
9298
9298
  );
9299
9299
  this.prevPathX = this.startPathX = 0, this.prevPathY = this.startPathY = 0;
9300
9300
  let r = !1;
@@ -9424,7 +9424,7 @@ let Tp = class de {
9424
9424
  return r;
9425
9425
  }
9426
9426
  toSVGPathD() {
9427
- return es.SVGPathDataToD(this.toSVGPathData());
9427
+ return Ke.SVGPathDataToD(this.toSVGPathData());
9428
9428
  }
9429
9429
  /// PathD 自己管理 canvas transform
9430
9430
  toCanvasContext(t) {
@@ -9676,7 +9676,7 @@ let Tp = class de {
9676
9676
  parent;
9677
9677
  shapes = [];
9678
9678
  constructor(t) {
9679
- if (super(), this.id = cs(), t?.d && (this.originD = t?.d), t?.originMatrix && (this.originMatrix = t.originMatrix), this.independentTransformInGroup = typeof t?.independentTransformInGroup == "boolean" ? t.independentTransformInGroup : !1, this.x = t?.x || 0, this.y = t?.y || 0, this.cX = 0, this.cY = 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && this.forceSetCXY(t.centerX - this.x, t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.diffXInGroup = t?.diffXInGroup || 0, this.diffYInGroup = t?.diffYInGroup || 0, this.diffDegreeInGroup = t?.diffDegreeInGroup || 0, this.diffScalarXInGroup = t?.diffScalarXInGroup || 1, this.diffScalarYInGroup = t?.diffScalarYInGroup || 1, this.vx = t?.vx || 0, this.vy = t?.vy || 0, this.ax = t?.ax || 0, this.ay = t?.ay || 0, this.mass = t?.mass || 1, this.attrs = {
9679
+ if (super(), this.id = as(), t?.d && (this.originD = t?.d), t?.originMatrix && (this.originMatrix = t.originMatrix), this.independentTransformInGroup = typeof t?.independentTransformInGroup == "boolean" ? t.independentTransformInGroup : !1, this.x = t?.x || 0, this.y = t?.y || 0, this.cX = 0, this.cY = 0, typeof t?.centerX == "number" && typeof t?.centerY == "number" && this.forceSetCXY(t.centerX - this.x, t.centerY - this.y), this.degree = t?.degree || 0, this.scalarX = 1, this.scalarY = 1, t?.scalar !== void 0 && (this.scalarX = t.scalar, this.scalarY = t.scalar), t?.scalarX !== void 0 && (this.scalarX = t.scalarX), t?.scalarY !== void 0 && (this.scalarY = t.scalarY), this.diffXInGroup = t?.diffXInGroup || 0, this.diffYInGroup = t?.diffYInGroup || 0, this.diffDegreeInGroup = t?.diffDegreeInGroup || 0, this.diffScalarXInGroup = t?.diffScalarXInGroup || 1, this.diffScalarYInGroup = t?.diffScalarYInGroup || 1, this.vx = t?.vx || 0, this.vy = t?.vy || 0, this.ax = t?.ax || 0, this.ay = t?.ay || 0, this.mass = t?.mass || 1, this.attrs = {
9680
9680
  // "paint-order": "markers stroke fill", // 先 stroke 再 fill
9681
9681
  // "paint-order": "fill stroke markers", // default
9682
9682
  stroke: "none",
@@ -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 } = je(V(this.degree), e);
9838
+ const { dx: s, dy: r } = qe(V(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 } = je(V(this.degree), e);
9843
+ const { dx: s, dy: r } = qe(V(this.degree), e);
9844
9844
  this.ax = s, this.ay = r, this.run();
9845
9845
  }
9846
9846
  /// 碰撞检测
@@ -11533,7 +11533,7 @@ class Rt {
11533
11533
  };
11534
11534
  }
11535
11535
  extractRotation(t) {
11536
- const e = this.value, s = t.value, r = 1 / Qe.setFromMatrix4Column(t, 0).length(), i = 1 / Qe.setFromMatrix4Column(t, 1).length(), o = 1 / Qe.setFromMatrix4Column(t, 2).length();
11536
+ const e = this.value, s = t.value, r = 1 / Je.setFromMatrix4Column(t, 0).length(), i = 1 / Je.setFromMatrix4Column(t, 1).length(), o = 1 / Je.setFromMatrix4Column(t, 2).length();
11537
11537
  return e[0] = s[0] * r, e[1] = s[1] * r, e[2] = s[2] * r, e[3] = 0, e[4] = s[4] * i, e[5] = s[5] * i, e[6] = s[6] * i, e[7] = 0, e[8] = s[8] * o, e[9] = s[9] * o, e[10] = s[10] * o, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, this;
11538
11538
  }
11539
11539
  makeRotationFromEuler(t) {
@@ -11683,8 +11683,8 @@ class Rt {
11683
11683
  }
11684
11684
  decompose(t, e, s) {
11685
11685
  const r = this.value;
11686
- let i = Qe.set(r[0], r[1], r[2]).length();
11687
- const o = Qe.set(r[4], r[5], r[6]).length(), a = Qe.set(r[8], r[9], r[10]).length();
11686
+ let i = Je.set(r[0], r[1], r[2]).length();
11687
+ const o = Je.set(r[4], r[5], r[6]).length(), a = Je.set(r[8], r[9], r[10]).length();
11688
11688
  this.determinant() < 0 && (i = -i), t.x = r[12], t.y = r[13], t.z = r[14], Wt.copy(this);
11689
11689
  const c = 1 / i, u = 1 / o, l = 1 / a;
11690
11690
  return Wt.value[0] *= c, Wt.value[1] *= c, Wt.value[2] *= c, Wt.value[4] *= u, Wt.value[5] *= u, Wt.value[6] *= u, Wt.value[8] *= l, Wt.value[9] *= l, Wt.value[10] *= l, e.setFromRotationMatrix4(Wt), s.x = i, s.y = o, s.z = a, 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 $t(0, 0, 0), Ap = new $t(1, 1, 1), Se = new $t(), gn = new $t(), Dt = new $t(), Qe = new $t(), Cr = new Ws(), Wt = new Rt();
12156
+ const Mp = new $t(0, 0, 0), Ap = new $t(1, 1, 1), Se = new $t(), gn = new $t(), Dt = new $t(), Je = new $t(), Cr = new Ws(), Wt = new Rt();
12157
12157
  function ic(n) {
12158
12158
  const t = new Mt();
12159
12159
  return n.replace(
@@ -12266,7 +12266,7 @@ function R0(n, t) {
12266
12266
  const e = new Path2D(n), s = new Path2D();
12267
12267
  return s.addPath(e, oc(t)), s;
12268
12268
  }
12269
- function rs(n, t, e) {
12269
+ function ss(n, t, e) {
12270
12270
  const s = Qh(n);
12271
12271
  return s.props.style = s.props.style || {}, t ? s.props.style[t] || s.props.style[Ia(t)] || s.props.style[vt(t)] || "" : s.props.style;
12272
12272
  }
@@ -12337,7 +12337,7 @@ function kp(n, t) {
12337
12337
  }
12338
12338
  function z0(n, t, e = {}) {
12339
12339
  Object.prototype.hasOwnProperty.call(e, "transform") || Object.assign(e, {
12340
- transform: rs(n, "transform") || ""
12340
+ transform: ss(n, "transform") || ""
12341
12341
  });
12342
12342
  const s = ic(e.transform), r = {};
12343
12343
  for (const i in t) {
@@ -12507,7 +12507,7 @@ function z0(n, t, e = {}) {
12507
12507
  s.perspective(o || 0);
12508
12508
  break;
12509
12509
  default:
12510
- Object.prototype.hasOwnProperty.call(e, i) || (e[i] = rs(n, i)), Object.assign(r, {
12510
+ Object.prototype.hasOwnProperty.call(e, i) || (e[i] = ss(n, i)), Object.assign(r, {
12511
12511
  [i]: `${o}`
12512
12512
  });
12513
12513
  break;
@@ -12517,7 +12517,7 @@ function z0(n, t, e = {}) {
12517
12517
  transform: s.toString()
12518
12518
  }), r;
12519
12519
  }
12520
- function is(n, t, e) {
12520
+ function ns(n, t, e) {
12521
12521
  if (t === void 0 && e === void 0)
12522
12522
  return uc(n);
12523
12523
  if (typeof t == "string" && e === void 0)
@@ -13315,7 +13315,7 @@ const dc = function() {
13315
13315
  s[h * n + a] = c;
13316
13316
  },
13317
13317
  write(a) {
13318
- a.writeString("GIF87a"), a.writeShort(n), a.writeShort(n), a.writeByte(128), a.writeByte(0), a.writeByte(0), a.writeByte(Je("0x" + t[1] + t[2])), a.writeByte(Je("0x" + t[3] + t[4])), a.writeByte(Je("0x" + t[5] + t[6])), a.writeByte(Je("0x" + e[1] + e[2])), a.writeByte(Je("0x" + e[3] + e[4])), a.writeByte(Je("0x" + e[5] + e[6])), a.writeString(","), a.writeShort(0), a.writeShort(0), a.writeShort(n), a.writeShort(n), a.writeByte(0);
13318
+ a.writeString("GIF87a"), a.writeShort(n), a.writeShort(n), a.writeByte(128), a.writeByte(0), a.writeByte(0), a.writeByte(Ze("0x" + t[1] + t[2])), a.writeByte(Ze("0x" + t[3] + t[4])), a.writeByte(Ze("0x" + t[5] + t[6])), a.writeByte(Ze("0x" + e[1] + e[2])), a.writeByte(Ze("0x" + e[3] + e[4])), a.writeByte(Ze("0x" + e[5] + e[6])), a.writeString(","), a.writeShort(0), a.writeShort(0), a.writeShort(n), a.writeShort(n), a.writeByte(0);
13319
13319
  const h = 2, c = i(h);
13320
13320
  a.writeByte(h);
13321
13321
  let u = 0;
@@ -13468,9 +13468,9 @@ const Q = {
13468
13468
  }
13469
13469
  },
13470
13470
  getErrorCorrectPolynomial: function(n) {
13471
- let t = new us([1], 0);
13471
+ let t = new cs([1], 0);
13472
13472
  for (let e = 0; e < n; e++)
13473
- t = t.multiply(new us([1, dt.gexp(e)], 0));
13473
+ t = t.multiply(new cs([1, dt.gexp(e)], 0));
13474
13474
  return t;
13475
13475
  },
13476
13476
  getLengthInBits: function(n, t) {
@@ -13548,7 +13548,7 @@ const Q = {
13548
13548
  return e += r * 10, e;
13549
13549
  }
13550
13550
  };
13551
- class us {
13551
+ class cs {
13552
13552
  num;
13553
13553
  constructor(t, e) {
13554
13554
  if (t.length == null)
@@ -13573,7 +13573,7 @@ class us {
13573
13573
  e[s + r] ^= dt.gexp(
13574
13574
  dt.glog(this.get(s)) + dt.glog(t.get(r))
13575
13575
  );
13576
- return new us(e, 0);
13576
+ return new cs(e, 0);
13577
13577
  }
13578
13578
  mod(t) {
13579
13579
  if (this.getLength() - t.getLength() < 0)
@@ -13583,7 +13583,7 @@ class us {
13583
13583
  s[r] = this.get(r);
13584
13584
  for (let r = 0; r < t.getLength(); r++)
13585
13585
  s[r] ^= dt.gexp(dt.glog(t.get(r)) + e);
13586
- return new us(s, 0).mod(t);
13586
+ return new cs(s, 0).mod(t);
13587
13587
  }
13588
13588
  }
13589
13589
  class pe {
@@ -14038,7 +14038,7 @@ class Xe {
14038
14038
  for (let y = 0; y < o[l].length; y++)
14039
14039
  o[l][y] = 255 & t.buffer[y + s];
14040
14040
  s += d;
14041
- const m = Q.getErrorCorrectPolynomial(f), b = new us(o[l], m.getLength() - 1).mod(m);
14041
+ const m = Q.getErrorCorrectPolynomial(f), b = new cs(o[l], m.getLength() - 1).mod(m);
14042
14042
  a[l] = new Array(m.getLength() - 1);
14043
14043
  for (let y = 0; y < a[l].length; y++) {
14044
14044
  const v = y + b.getLength() - a[l].length;
@@ -14212,7 +14212,7 @@ function X1() {
14212
14212
  return "ontouchstart" in window || "ontouchend" in document || navigator.maxTouchPoints > 0;
14213
14213
  }
14214
14214
  const yn = new er(), ot = new $t();
14215
- function Ss(n, t) {
14215
+ function _s(n, t) {
14216
14216
  switch (t.constructor) {
14217
14217
  case Float32Array:
14218
14218
  return n;
@@ -14316,35 +14316,35 @@ class ke {
14316
14316
  }
14317
14317
  getComponent(t, e) {
14318
14318
  let s = this.array[t * this.itemSize + e];
14319
- return this.normalized && (s = Ss(s, this.array)), s;
14319
+ return this.normalized && (s = _s(s, this.array)), s;
14320
14320
  }
14321
14321
  setComponent(t, e, s) {
14322
14322
  return this.normalized && (s = At(s, this.array)), this.array[t * this.itemSize + e] = s, this;
14323
14323
  }
14324
14324
  getX(t) {
14325
14325
  let e = this.array[t * this.itemSize];
14326
- return this.normalized && (e = Ss(e, this.array)), e;
14326
+ return this.normalized && (e = _s(e, this.array)), e;
14327
14327
  }
14328
14328
  setX(t, e) {
14329
14329
  return this.normalized && (e = At(e, this.array)), this.array[t * this.itemSize] = e, this;
14330
14330
  }
14331
14331
  getY(t) {
14332
14332
  let e = this.array[t * this.itemSize + 1];
14333
- return this.normalized && (e = Ss(e, this.array)), e;
14333
+ return this.normalized && (e = _s(e, this.array)), e;
14334
14334
  }
14335
14335
  setY(t, e) {
14336
14336
  return this.normalized && (e = At(e, this.array)), this.array[t * this.itemSize + 1] = e, this;
14337
14337
  }
14338
14338
  getZ(t) {
14339
14339
  let e = this.array[t * this.itemSize + 2];
14340
- return this.normalized && (e = Ss(e, this.array)), e;
14340
+ return this.normalized && (e = _s(e, this.array)), e;
14341
14341
  }
14342
14342
  setZ(t, e) {
14343
14343
  return this.normalized && (e = At(e, this.array)), this.array[t * this.itemSize + 2] = e, this;
14344
14344
  }
14345
14345
  getW(t) {
14346
14346
  let e = this.array[t * this.itemSize + 3];
14347
- return this.normalized && (e = Ss(e, this.array)), e;
14347
+ return this.normalized && (e = _s(e, this.array)), e;
14348
14348
  }
14349
14349
  setW(t, e) {
14350
14350
  return this.normalized && (e = At(e, this.array)), this.array[t * this.itemSize + 3] = e, this;
@@ -14523,7 +14523,7 @@ function ey() {
14523
14523
  });
14524
14524
  });
14525
14525
  }
14526
- const la = new fs();
14526
+ const la = new ls();
14527
14527
  async function Zp(n, t = 6e4) {
14528
14528
  return new Promise((e, s) => {
14529
14529
  const r = typeof n == "string" ? n : jp(n), i = la.get(r);
@@ -14627,7 +14627,7 @@ function py(n) {
14627
14627
  const t = yc(n);
14628
14628
  for (let e = 0, s = t.length; e < s; e++)
14629
14629
  if (/(auto|scroll)/.test(
14630
- rs(t[e], "overflow") + rs(t[e], "overflow-y") + rs(t[e], "overflow-x")
14630
+ ss(t[e], "overflow") + ss(t[e], "overflow-y") + ss(t[e], "overflow-x")
14631
14631
  ))
14632
14632
  return t[e];
14633
14633
  return document.scrollingElement || document.documentElement;
@@ -14678,7 +14678,7 @@ const kn = (n, t, e = "append") => {
14678
14678
  return t;
14679
14679
  }, ky = (n) => n.remove();
14680
14680
  function Iy(n, t) {
14681
- rs(n, "display") == "none" && t === void 0 || t === !0 ? tg(n) : eg(n);
14681
+ ss(n, "display") == "none" && t === void 0 || t === !0 ? tg(n) : eg(n);
14682
14682
  }
14683
14683
  function tg(n) {
14684
14684
  ac(
@@ -14716,7 +14716,7 @@ function vc(n, t, e = "toggle") {
14716
14716
  break;
14717
14717
  }
14718
14718
  }
14719
- }), i && is(
14719
+ }), i && ns(
14720
14720
  n,
14721
14721
  "class",
14722
14722
  r.join(" ").replace(/^\s+/, "").replace(/\s+$/, "")
@@ -14789,7 +14789,7 @@ function da() {
14789
14789
  isDown: !1
14790
14790
  };
14791
14791
  }
14792
- function ys() {
14792
+ function gs() {
14793
14793
  const n = da(), t = da();
14794
14794
  return {
14795
14795
  start: n,
@@ -15141,22 +15141,22 @@ function xx(n = document.documentElement, t = !1) {
15141
15141
  return X(n, "keypress", t);
15142
15142
  }
15143
15143
  function bx(n = document.documentElement, t) {
15144
- const e = t?.useMousePoint || ys();
15144
+ const e = t?.useMousePoint || gs();
15145
15145
  return Gi(n).pipe(
15146
15146
  it((s) => (e.setCurrent(mt(s, n)), e))
15147
15147
  );
15148
15148
  }
15149
15149
  function vx(n = document.documentElement, t) {
15150
- const e = t?.useMousePoint || ys();
15150
+ const e = t?.useMousePoint || gs();
15151
15151
  return Gi(n).pipe(
15152
15152
  Ym(
15153
15153
  rg(n).pipe(
15154
- qe((s) => {
15154
+ Ve((s) => {
15155
15155
  e.setStart(mt(s, n), !0), t?.start?.(s, e);
15156
15156
  })
15157
15157
  ),
15158
15158
  () => ig(n).pipe(
15159
- qe((s) => {
15159
+ Ve((s) => {
15160
15160
  e.setCurrent(mt(s, n), !1), t?.end?.(s, e);
15161
15161
  })
15162
15162
  )
@@ -15166,9 +15166,9 @@ function vx(n = document.documentElement, t) {
15166
15166
  );
15167
15167
  }
15168
15168
  function _x(n = document.documentElement, t) {
15169
- const e = t?.useMousePoint || ys();
15169
+ const e = t?.useMousePoint || gs();
15170
15170
  return ag(n).pipe(
15171
- qe((s) => {
15171
+ Ve((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
- qe((s) => {
15179
+ Ve((s) => {
15180
15180
  const r = s.changedTouches[0];
15181
15181
  e.setCurrent(mt(r, n), !1), t?.end?.(r, e);
15182
15182
  })
@@ -15191,16 +15191,16 @@ function _x(n = document.documentElement, t) {
15191
15191
  );
15192
15192
  }
15193
15193
  function ti(n = document.documentElement, t) {
15194
- const e = t?.useMousePoint || ys();
15194
+ const e = t?.useMousePoint || gs();
15195
15195
  return Cc(n).pipe(
15196
- qe((s) => {
15196
+ Ve((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
- qe((s) => {
15203
+ Ve((s) => {
15204
15204
  e.setCurrent(mt(s, n), !1), t?.end?.(s, e);
15205
15205
  })
15206
15206
  )
@@ -15211,12 +15211,12 @@ function ti(n = document.documentElement, t) {
15211
15211
  );
15212
15212
  }
15213
15213
  function wg(n = document.documentElement, t) {
15214
- const e = t?.useMousePoint || ys();
15214
+ const e = t?.useMousePoint || gs();
15215
15215
  return Im(Gi(n), Cc(n)).pipe(
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
- qe((r) => {
15219
+ Ve((r) => {
15220
15220
  e.setCurrent(mt(r, n), !1), t?.end?.(r, e);
15221
15221
  })
15222
15222
  )
@@ -15675,7 +15675,7 @@ function Bx(n = document.documentElement) {
15675
15675
  !A.target || n == A.target || n.contains(A.target) || t.emit("tapOutSide", A);
15676
15676
  }, yt = (A) => {
15677
15677
  t.emit("transitionstart", A);
15678
- }, We = (A) => {
15678
+ }, He = (A) => {
15679
15679
  t.emit("transitionend", A);
15680
15680
  }, Ie = (A) => {
15681
15681
  t.emit("animationstart", 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", $), e.on("panend", W), e.on("pancancel", K), e.on("panleft", J), e.on("panright", Vt), 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", Js), e.on("swipeup", Qs), 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", We)), s.push(H(n, "animationstart", Ie)), s.push(H(n, "animationend", De));
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", $), e.on("panend", W), e.on("pancancel", K), e.on("panleft", J), e.on("panright", Vt), 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", Js), e.on("swipeup", Qs), 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
  });
@@ -16193,10 +16193,10 @@ function kc(n = "path", t) {
16193
16193
  "http://www.w3.org/2000/svg",
16194
16194
  n
16195
16195
  );
16196
- return t && is(e, t), e;
16196
+ return t && ns(e, t), e;
16197
16197
  }
16198
16198
  function Lg(n, t) {
16199
- return kc("path", { d: n, id: t || cs() });
16199
+ return kc("path", { d: n, id: t || as() });
16200
16200
  }
16201
16201
  function Rg(n, t = "shape") {
16202
16202
  return Kr(
@@ -17419,7 +17419,7 @@ function Bg(n) {
17419
17419
  };
17420
17420
  return t[n] || t.alphabetic;
17421
17421
  }
17422
- const Cs = {
17422
+ const Ss = {
17423
17423
  strokeStyle: {
17424
17424
  svgAttr: "stroke",
17425
17425
  canvas: "#000000",
@@ -17568,17 +17568,17 @@ class Bn {
17568
17568
  * Applies default canvas styles to the context
17569
17569
  */
17570
17570
  __setDefaultStyles() {
17571
- const t = Object.keys(Cs);
17571
+ const t = Object.keys(Ss);
17572
17572
  for (let e = 0, s = t.length; e < s; e++) {
17573
17573
  const r = t[e];
17574
- this[r] = Cs[r].canvas;
17574
+ this[r] = Ss[r].canvas;
17575
17575
  }
17576
17576
  }
17577
17577
  /**
17578
17578
  * Gets the current style state
17579
17579
  */
17580
17580
  __getStyleState() {
17581
- const t = {}, e = Object.keys(Cs);
17581
+ const t = {}, e = Object.keys(Ss);
17582
17582
  for (let s = 0, r = e.length; s < r; s++) {
17583
17583
  const i = e[s];
17584
17584
  t[i] = this[i];
@@ -17619,9 +17619,9 @@ class Bn {
17619
17619
  s && (e.setAttribute(t, ""), e = s.element, s.children.forEach((i) => {
17620
17620
  i.setAttribute(t, "");
17621
17621
  }));
17622
- const r = Object.keys(Cs);
17622
+ const r = Object.keys(Ss);
17623
17623
  for (let i = 0; i < r.length; i++) {
17624
- const o = Cs[r[i]], a = this[r[i]];
17624
+ const o = Ss[r[i]], a = this[r[i]];
17625
17625
  if (o.apply) {
17626
17626
  if (a instanceof ba) {
17627
17627
  if (a.__ctx)
@@ -18829,10 +18829,10 @@ class Xt {
18829
18829
  toString() {
18830
18830
  return this.a === 1 ? "#" + this.toHexString() : this.toRGBString();
18831
18831
  }
18832
- toColorSpaceString(t = ss) {
18832
+ toColorSpaceString(t = ts) {
18833
18833
  Fc.fromWorkingColorSpace(Te.copy(this), t);
18834
18834
  const e = Te.r, s = Te.g, r = Te.b;
18835
- return t !== ss ? `color(${t} ${e.toFixed(3)} ${s.toFixed(3)} ${r.toFixed(
18835
+ return t !== ts ? `color(${t} ${e.toFixed(3)} ${s.toFixed(3)} ${r.toFixed(
18836
18836
  3
18837
18837
  )})` : this.toRGBString();
18838
18838
  }
@@ -18846,10 +18846,10 @@ class Xt {
18846
18846
  return this.setColor(t.color), this;
18847
18847
  }
18848
18848
  copySRGBToLinear(t) {
18849
- return this.r = os(t.r), this.g = os(t.g), this.b = os(t.b), this;
18849
+ return this.r = rs(t.r), this.g = rs(t.g), this.b = rs(t.b), this;
18850
18850
  }
18851
18851
  copyLinearToSRGB(t) {
18852
- return this.r = as(t.r), this.g = as(t.g), this.b = as(t.b), this;
18852
+ return this.r = is(t.r), this.g = is(t.g), this.b = is(t.b), this;
18853
18853
  }
18854
18854
  convertSRGBToLinear() {
18855
18855
  return this.copySRGBToLinear(this), this;
@@ -19046,11 +19046,11 @@ class Xt {
19046
19046
  };
19047
19047
  }
19048
19048
  }
19049
- const Te = new Xt(), Xg = "", ss = "srgb", zc = "srgb-linear", Nc = "linear", oi = "srgb";
19050
- function os(n) {
19049
+ const Te = new Xt(), Xg = "", ts = "srgb", zc = "srgb-linear", Nc = "linear", oi = "srgb";
19050
+ function rs(n) {
19051
19051
  return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
19052
19052
  }
19053
- function as(n) {
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
19056
  const va = new Ws().set(
@@ -19096,7 +19096,7 @@ const va = new Ws().set(
19096
19096
  */
19097
19097
  spaces: {},
19098
19098
  convert: function(n, t, e) {
19099
- return this.enabled === !1 || t === e || !t || !e || (this.spaces[t].transfer === oi && (n.r = os(n.r), n.g = os(n.g), n.b = os(n.b)), this.spaces[t].primaries !== this.spaces[e].primaries && (n.applyMatrix3(this.spaces[t].toXYZ), n.applyMatrix3(this.spaces[e].fromXYZ)), this.spaces[e].transfer === oi && (n.r = as(n.r), n.g = as(n.g), n.b = as(n.b))), n;
19099
+ return this.enabled === !1 || t === e || !t || !e || (this.spaces[t].transfer === oi && (n.r = rs(n.r), n.g = rs(n.g), n.b = rs(n.b)), this.spaces[t].primaries !== this.spaces[e].primaries && (n.applyMatrix3(this.spaces[t].toXYZ), n.applyMatrix3(this.spaces[e].fromXYZ)), this.spaces[e].transfer === oi && (n.r = is(n.r), n.g = is(n.g), n.b = is(n.b))), n;
19100
19100
  },
19101
19101
  fromWorkingColorSpace: function(n, t) {
19102
19102
  return this.convert(n, this.workingColorSpace, t);
@@ -19135,17 +19135,17 @@ Fc.define({
19135
19135
  toXYZ: va,
19136
19136
  fromXYZ: _a,
19137
19137
  luminanceCoefficients: Ca,
19138
- workingColorSpaceConfig: { unpackColorSpace: ss },
19139
- outputColorSpaceConfig: { drawingBufferColorSpace: ss }
19138
+ workingColorSpaceConfig: { unpackColorSpace: ts },
19139
+ outputColorSpaceConfig: { drawingBufferColorSpace: ts }
19140
19140
  },
19141
- [ss]: {
19141
+ [ts]: {
19142
19142
  primaries: Sa,
19143
19143
  whitePoint: Ta,
19144
19144
  transfer: oi,
19145
19145
  toXYZ: va,
19146
19146
  fromXYZ: _a,
19147
19147
  luminanceCoefficients: Ca,
19148
- outputColorSpaceConfig: { drawingBufferColorSpace: ss }
19148
+ outputColorSpaceConfig: { drawingBufferColorSpace: ts }
19149
19149
  }
19150
19150
  });
19151
19151
  function Ar(n, t, e) {
@@ -19172,14 +19172,14 @@ class ht {
19172
19172
  show;
19173
19173
  followMouse;
19174
19174
  drag;
19175
- transform$ = new gs();
19175
+ transform$ = new ps();
19176
19176
  // useDraw 动态注入参数
19177
19177
  isMouseIn = !1;
19178
19178
  isDragging = !1;
19179
19179
  // for svg
19180
19180
  el;
19181
19181
  constructor(t) {
19182
- this.id = cs(), this.d = t?.d, this.attrs = {
19182
+ this.id = as(), this.d = t?.d, this.attrs = {
19183
19183
  // "paint-order": "markers stroke fill", // 先 stroke 再 fill
19184
19184
  // "paint-order": "fill stroke markers", // default
19185
19185
  stroke: "none",
@@ -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 } = je(V(this.degree), e);
19411
+ const { dx: s, dy: r } = qe(V(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 } = je(V(this.degree), e);
19416
+ const { dx: s, dy: r } = qe(V(this.degree), e);
19417
19417
  this.ax = s, this.ay = r, this.animate();
19418
19418
  }
19419
19419
  // 物体之间引力
@@ -19819,7 +19819,7 @@ class Qx {
19819
19819
  };
19820
19820
  size$ = new Xd(null);
19821
19821
  resizeSubscription;
19822
- mpg = ys();
19822
+ mpg = gs();
19823
19823
  mouseSubscription;
19824
19824
  shapes = [];
19825
19825
  lastMouseInShapeId = "";
@@ -19829,11 +19829,11 @@ class Qx {
19829
19829
  constructor(t = document.documentElement, e = "canvas", s = !1) {
19830
19830
  this.PARENT_EL = t, (e == "svg" || e == "canvas") && Kp(this.PARENT_EL), e == "svg" && (this.SVG_EL = kc("svg"), kn(this.PARENT_EL, this.SVG_EL)), e == "canvas" && (this.CANVAS_EL = ng("canvas"), kn(this.PARENT_EL, this.CANVAS_EL)), this.resizeSubscription = Mc(this.PARENT_EL).subscribe(
19831
19831
  (r) => {
19832
- this.rect.x = r.x, this.rect.y = r.y, this.rect.width = r.width, this.rect.height = r.height, this.SVG_EL && is(this.SVG_EL, {
19832
+ this.rect.x = r.x, this.rect.y = r.y, this.rect.width = r.width, this.rect.height = r.height, this.SVG_EL && ns(this.SVG_EL, {
19833
19833
  viewBox: `0 0 ${this.rect.width} ${this.rect.height}`,
19834
19834
  width: `${this.rect.width}`,
19835
19835
  height: `${this.rect.height}`
19836
- }), this.CANVAS_EL && (is(this.CANVAS_EL, {
19836
+ }), this.CANVAS_EL && (ns(this.CANVAS_EL, {
19837
19837
  width: `${this.rect.width}`,
19838
19838
  height: `${this.rect.height}`
19839
19839
  }), this.ctx = new ii(
@@ -19878,7 +19878,7 @@ class Qx {
19878
19878
  const a = s.toSVGPathD();
19879
19879
  s.el || (s.el = Lg(a, s.id), kn(this.SVG_EL, s.el));
19880
19880
  const h = new Mt();
19881
- h.translate(s.x, s.y), h.rotate(s.degree, i, o), h.scale(s.scaleX, s.scaleY, i, o), is(s.el, {
19881
+ h.translate(s.x, s.y), h.rotate(s.degree, i, o), h.scale(s.scaleX, s.scaleY, i, o), ns(s.el, {
19882
19882
  d: a,
19883
19883
  transform: h.toString(),
19884
19884
  ...s.getAttrs()
@@ -19976,14 +19976,14 @@ class Qx {
19976
19976
  this.SVG_EL && Rg(this.SVG_EL);
19977
19977
  };
19978
19978
  }
19979
- class hs extends ht {
19979
+ class os extends ht {
19980
19980
  dx;
19981
19981
  dy;
19982
19982
  startColor;
19983
19983
  endColor;
19984
19984
  constructor(t) {
19985
19985
  if (super(t), t?.lineLength) {
19986
- const e = je(V(t?.lineDegree || 0), t.lineLength);
19986
+ const e = qe(V(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);
@@ -19992,7 +19992,7 @@ class hs extends ht {
19992
19992
  });
19993
19993
  }
19994
19994
  cloneShape() {
19995
- return new hs({
19995
+ return new os({
19996
19996
  ...super.getBaseOptions(),
19997
19997
  lineDx: this.dx,
19998
19998
  lineDy: this.dy
@@ -20051,7 +20051,7 @@ class hs extends ht {
20051
20051
  class Bc extends zt {
20052
20052
  constructor(t, e) {
20053
20053
  super(t, e);
20054
- const s = new hs({
20054
+ const s = new os({
20055
20055
  ...e,
20056
20056
  drag: {
20057
20057
  ...e?.drag,
@@ -20061,7 +20061,7 @@ class Bc extends zt {
20061
20061
  lineDegree: 90
20062
20062
  });
20063
20063
  this.addShape(s);
20064
- const r = new hs({
20064
+ const r = new os({
20065
20065
  ...e,
20066
20066
  drag: {
20067
20067
  ...e?.drag,
@@ -20072,7 +20072,7 @@ class Bc extends zt {
20072
20072
  lineDegree: Math.random() * 120 - 150
20073
20073
  });
20074
20074
  this.addShape(r);
20075
- const i = new hs({
20075
+ const i = new os({
20076
20076
  ...e,
20077
20077
  drag: {
20078
20078
  ...e?.drag,
@@ -20235,7 +20235,7 @@ class Xc extends ht {
20235
20235
  t.beginPath(), t.moveTo(-50, -25), t.lineTo(0, -25), t.lineTo(0, -50), t.lineTo(50, 0), t.lineTo(0, 50), t.lineTo(0, 25), t.lineTo(-50, 25), t.lineTo(-50, -25), t.closePath();
20236
20236
  }
20237
20237
  }
20238
- class ls extends ht {
20238
+ class us extends ht {
20239
20239
  width;
20240
20240
  height;
20241
20241
  // x y width height 包含 borderRadius
@@ -20244,7 +20244,7 @@ class ls extends ht {
20244
20244
  super(t), this.width = t.rectWidth, this.height = t.rectHeight, this.borderRadius = t.rectBorderRadius || 0;
20245
20245
  }
20246
20246
  cloneShape() {
20247
- return new ls({
20247
+ return new us({
20248
20248
  ...super.getBaseOptions(),
20249
20249
  rectWidth: this.width,
20250
20250
  rectHeight: this.height,
@@ -20262,7 +20262,7 @@ class ls extends ht {
20262
20262
  toX: a,
20263
20263
  toY: h
20264
20264
  }).getBoundingClientRect();
20265
- return new ls({
20265
+ return new us({
20266
20266
  x: u.x,
20267
20267
  y: u.y,
20268
20268
  rectWidth: u.width,
@@ -20581,7 +20581,7 @@ class Zc extends zt {
20581
20581
  cornerRadius;
20582
20582
  constructor(t, e) {
20583
20583
  super(t, e), this.width = t.segmentWidth, this.height = t.segmentHeight, this.cornerRadius = typeof t.segmentCornerRadius == "number" ? t.segmentCornerRadius : this.height * 0.5;
20584
- const s = new ls({
20584
+ const s = new us({
20585
20585
  ...e,
20586
20586
  drag: {
20587
20587
  ...e?.drag,
@@ -20645,7 +20645,7 @@ class Zc extends zt {
20645
20645
  }
20646
20646
  }
20647
20647
  class Jc extends zt {
20648
- value$ = new gs();
20648
+ value$ = new ps();
20649
20649
  subscription;
20650
20650
  constructor(t, e) {
20651
20651
  super(t, e);
@@ -20653,7 +20653,7 @@ class Jc extends zt {
20653
20653
  typeof t?.sliderDefaultValue == "number" ? z(t.sliderDefaultValue, s, r) : s
20654
20654
  );
20655
20655
  this.value$.next(a);
20656
- const h = a / (r - s), c = t?.sliderWidth || 100, u = t?.sliderHeight || 4, l = u * 0.5, d = u * 2.5, f = t?.sliderBackgroundColor || "#f5f5f5", m = t?.sliderForegroundColor || "#5a82f0", g = new ls({
20656
+ const h = a / (r - s), c = t?.sliderWidth || 100, u = t?.sliderHeight || 4, l = u * 0.5, d = u * 2.5, f = t?.sliderBackgroundColor || "#f5f5f5", m = t?.sliderForegroundColor || "#5a82f0", g = new us({
20657
20657
  ...e,
20658
20658
  rectWidth: c,
20659
20659
  rectHeight: u,
@@ -20668,7 +20668,7 @@ class Jc extends zt {
20668
20668
  }
20669
20669
  });
20670
20670
  this.addShape(g);
20671
- const b = new ls({
20671
+ const b = new us({
20672
20672
  ...e,
20673
20673
  rectWidth: c * h,
20674
20674
  rectHeight: u,
@@ -20778,10 +20778,10 @@ class Xn extends ht {
20778
20778
  });
20779
20779
  }
20780
20780
  toSVGPathData() {
20781
- const { dx: t, dy: e } = je(
20781
+ const { dx: t, dy: e } = qe(
20782
20782
  V(this.startDegree),
20783
20783
  this.radius
20784
- ), { dx: s, dy: r } = je(
20784
+ ), { dx: s, dy: r } = qe(
20785
20785
  V(this.percentDegree),
20786
20786
  this.radius
20787
20787
  );
@@ -20873,7 +20873,7 @@ class Qc extends zt {
20873
20873
  }), this.addShape(this.ring), this.indicatorLineCount = 22 + 1, this.half) {
20874
20874
  const o = this.ringBg.radius - 20 - 17;
20875
20875
  for (let a = 0; a < this.indicatorLineCount; a++) {
20876
- const h = -90 + this.startDegree + (this.endDegree - this.startDegree) / (this.indicatorLineCount - 1) * a, c = new hs({
20876
+ const h = -90 + this.startDegree + (this.endDegree - this.startDegree) / (this.indicatorLineCount - 1) * a, c = new os({
20877
20877
  x: this.ringBg.x + Math.cos(V(h)) * o,
20878
20878
  y: this.ringBg.y + Math.sin(V(h)) * o,
20879
20879
  lineLength: 17,
@@ -21109,13 +21109,13 @@ function aw(n, t) {
21109
21109
  function Kc(n, t) {
21110
21110
  const e = typeof t?.aliveInSeconds == "number" ? Math.max(t.aliveInSeconds, 0) : -1, s = typeof t?.aliveUntilTimestamp == "number" ? Math.max(t.aliveUntilTimestamp, 0) : -1;
21111
21111
  function r(o, a = !1) {
21112
- return el(o) || !Yu(o, Ts) ? { v: o, [Ts]: ie() } : a ? o : { ...o, [Ts]: ie() };
21112
+ return el(o) || !Yu(o, Cs) ? { v: o, [Cs]: ie() } : a ? o : { ...o, [Cs]: ie() };
21113
21113
  }
21114
21114
  let i = r(n, !0);
21115
21115
  return {
21116
21116
  get: () => {
21117
21117
  let o = i.v;
21118
- return (e >= 0 && ie() > i[Ts] + e * 1e3 || s >= 0 && ie() > s) && (o = void 0), {
21118
+ return (e >= 0 && ie() > i[Cs] + e * 1e3 || s >= 0 && ie() > s) && (o = void 0), {
21119
21119
  value: typeof o < "u" ? i : void 0,
21120
21120
  rawValue: o
21121
21121
  };
@@ -21157,7 +21157,7 @@ function hw() {
21157
21157
  }
21158
21158
  const { get: tu, set: Wg } = Hg(
21159
21159
  Un("theme")
21160
- ), eu = new gs(), Zg = eu.pipe(Ae(void 0));
21160
+ ), eu = new ps(), Zg = eu.pipe(Ae(void 0));
21161
21161
  function Jg(n) {
21162
21162
  switch (Wg(n), n) {
21163
21163
  case "dark":
@@ -21277,7 +21277,7 @@ function xw(n, t, e = { id: 1, name: "xxx" }) {
21277
21277
  };
21278
21278
  });
21279
21279
  }
21280
- const ai = new fs();
21280
+ const ai = new ls();
21281
21281
  function su(n, t) {
21282
21282
  return fi({ url: n, ...t });
21283
21283
  }
@@ -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 && Ke("useFetch: HTTP Status 0 received."), typeof ReadableStream < "u" && h.body && h.body.getReader && i) {
21308
+ if (h.status === 0 && Ps("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({
@@ -21417,7 +21417,7 @@ const Kg = {
21417
21417
  const t = ["th", "st", "nd", "rd"], e = n % 100;
21418
21418
  return `[${n}${t[(e - 20) % 10] || t[e] || t[0]}]`;
21419
21419
  }
21420
- }, ze = new fs();
21420
+ }, ze = new ls();
21421
21421
  let vn = "zh-cn";
21422
21422
  nu(t0);
21423
21423
  nu(Kg);
@@ -21440,7 +21440,7 @@ function nu(n, t) {
21440
21440
  return e && (vn = e), ze.get(e) || ze.get(vn);
21441
21441
  }
21442
21442
  let e0 = 0;
21443
- function ts(n, t = {}, e = [], s) {
21443
+ function Qe(n, t = {}, e = [], s) {
21444
21444
  return {
21445
21445
  name: String(++e0),
21446
21446
  tag: n,
@@ -21450,7 +21450,7 @@ function ts(n, t = {}, e = [], s) {
21450
21450
  };
21451
21451
  }
21452
21452
  function qi(n) {
21453
- return ts(
21453
+ return Qe(
21454
21454
  n.tagName,
21455
21455
  uc(n),
21456
21456
  Array.from(n.children).map((t) => qi(t)),
@@ -21649,7 +21649,7 @@ function s0(n, t, e) {
21649
21649
  return new WebSocket(n);
21650
21650
  }
21651
21651
  function Cw(n) {
21652
- return `${n}eventbus/${cs(3, "number")}/${cs(
21652
+ return `${n}eventbus/${as(3, "number")}/${as(
21653
21653
  8
21654
21654
  )}/websocket`;
21655
21655
  }
@@ -21701,7 +21701,7 @@ class me {
21701
21701
  ), this.socket.onopen = () => {
21702
21702
  oe(`ws(${this.url}) onopen`), this.state = me.OPEN, this.ping(), this.pingTimerID = setInterval(this.ping.bind(this), this.pingInterval), this.reconnectTimerID && (clearTimeout(this.reconnectTimerID), this.reconnectTimerID = void 0);
21703
21703
  const t = this.messageQueue.slice();
21704
- this.messageQueue = [], t.forEach(this._send), this.onopen?.();
21704
+ this.messageQueue = [], t.forEach(this._send.bind(this)), this.onopen?.();
21705
21705
  }, this.socket.onclose = (t) => {
21706
21706
  const { code: e, reason: s, wasClean: r } = t;
21707
21707
  oe(
@@ -21709,7 +21709,7 @@ class me {
21709
21709
  ), this.state = me.CLOSED, this.pingTimerID && (clearInterval(this.pingTimerID), this.pingTimerID = void 0), this.onclose?.(t), this.reconnect && this.reconnectAttempts < this.maxReconnectAttempts && (this.socket = void 0, this.reconnectTimerID = setTimeout(
21710
21710
  this._connect.bind(this),
21711
21711
  Fa(this.reconnectAttempts++)
21712
- ), console.log(this.reconnectAttempts));
21712
+ ));
21713
21713
  }, this.socket.onerror = (t) => {
21714
21714
  oe(`ws(${this.url}) onerror: ${t.type} ${t}`), this.onerror?.(t);
21715
21715
  }, this.socket.onmessage = (t) => {
@@ -21718,29 +21718,34 @@ class me {
21718
21718
  try {
21719
21719
  e = JSON.parse(t.data.substring(1));
21720
21720
  } catch (s) {
21721
- e = {
21722
- type: "err",
21723
- failureType: s.toString(),
21724
- message: t.data
21725
- }, Ke(`${Ue(e)}`);
21721
+ e = [
21722
+ JSON.stringify({
21723
+ type: "err",
21724
+ failureType: s.toString(),
21725
+ message: t.data
21726
+ })
21727
+ ];
21726
21728
  }
21727
- if (e.body && Object.prototype.hasOwnProperty.call(e.body, "requestid")) {
21728
- const s = this.waitings[e.body.requestid];
21729
- s ? s.resolve?.(e.body) : Ke(
21730
- `ws(${this.url}) onmessage: found no associated request, already timed out`
21731
- );
21732
- } else if (this.listeners[e.address]) {
21733
- const s = this.listeners[e.address];
21734
- for (let r = 0; r < s.length; r++)
21735
- e.type === "err" ? s[r]({
21736
- failureCode: e.failureCode,
21737
- failureType: e.failureType,
21738
- message: e.message
21739
- }) : s[r](null, e.body);
21740
- } else
21741
- Ke(`ws(${this.url}) onmessage: unhandle string`), this.onunhandled(e);
21729
+ e.forEach((s) => {
21730
+ const r = JSON.parse(s);
21731
+ if (r.body && Object.prototype.hasOwnProperty.call(r.body, "requestid")) {
21732
+ const i = this.waitings[r.body.requestid];
21733
+ i ? i.resolve?.(r.body) : Ps(
21734
+ `ws(${this.url}) onmessage: found no associated request, already timed out`
21735
+ );
21736
+ } else if (this.listeners[r.address]) {
21737
+ const i = this.listeners[r.address];
21738
+ for (let o = 0; o < i.length; o++)
21739
+ r.type === "err" ? i[o]({
21740
+ failureCode: r.failureCode,
21741
+ failureType: r.failureType,
21742
+ message: r.message
21743
+ }) : i[o](null, r.body);
21744
+ } else
21745
+ Ps(`ws(${this.url}) onmessage: unhandle string`), this.onunhandled(r);
21746
+ });
21742
21747
  } else
21743
- t.data instanceof ArrayBuffer ? Ke(`ws(${this.url}) onmessage: unhandle ArrayBuffer`) : t.data instanceof Blob && Ke(`ws(${this.url}) onmessage: unhandle Blob`);
21748
+ t.data instanceof ArrayBuffer ? Ps(`ws(${this.url}) onmessage: unhandle ArrayBuffer`) : t.data instanceof Blob && Ps(`ws(${this.url}) onmessage: unhandle Blob`);
21744
21749
  });
21745
21750
  }
21746
21751
  onunhandled(t) {
@@ -21755,7 +21760,9 @@ class me {
21755
21760
  }
21756
21761
  // 可能需要根据协议变更传输格式
21757
21762
  _send(t) {
21758
- this.socket && this.socket.readyState === me.OPEN ? this.socket.send(JSON.stringify(t)) : (this.messageQueue.push(t), this._connect());
21763
+ this.socket?.readyState === me.OPEN ? this.socket.send(
21764
+ JSON.stringify({ data: JSON.stringify([JSON.stringify(t)]) })
21765
+ ) : (this.messageQueue.push(t), this._connect());
21759
21766
  }
21760
21767
  ping() {
21761
21768
  this._send({ type: "ping" });
@@ -21765,7 +21772,7 @@ class me {
21765
21772
  this.listeners[t] || (this.listeners[t] = [], this._send({
21766
21773
  type: "register",
21767
21774
  address: t,
21768
- headers: Es(s, this.socketCreatorOptions.headers)
21775
+ headers: Ts(s, this.socketCreatorOptions.headers)
21769
21776
  })), this.listeners[t].push(e);
21770
21777
  }
21771
21778
  // 取消注册监听
@@ -21776,7 +21783,7 @@ class me {
21776
21783
  i != -1 && (r.splice(i, 1), r.length === 0 && (this._send({
21777
21784
  type: "unregister",
21778
21785
  address: t,
21779
- headers: Es(s, this.socketCreatorOptions.headers)
21786
+ headers: Ts(s, this.socketCreatorOptions.headers)
21780
21787
  }), delete this.listeners[t]));
21781
21788
  }
21782
21789
  }
@@ -21785,7 +21792,7 @@ class me {
21785
21792
  this._send({
21786
21793
  type: "publish",
21787
21794
  address: t,
21788
- headers: Es(s, this.socketCreatorOptions.headers),
21795
+ headers: Ts(s, this.socketCreatorOptions.headers),
21789
21796
  body: e
21790
21797
  });
21791
21798
  }
@@ -21798,14 +21805,14 @@ class me {
21798
21805
  i.resolve = a, this._send({
21799
21806
  type: "send",
21800
21807
  address: t,
21801
- headers: Es(s, this.socketCreatorOptions.headers),
21808
+ headers: Ts(s, this.socketCreatorOptions.headers),
21802
21809
  body: {
21803
21810
  requestid: i.requestid,
21804
21811
  ...e
21805
21812
  }
21806
21813
  }), setTimeout(() => {
21807
21814
  h(
21808
- `ws(${this.url}) send(${i.requestid}: ${Ue(
21815
+ `ws(${this.url}) send(${i.requestid}: ${hs(
21809
21816
  e
21810
21817
  )}) Timeout!`
21811
21818
  );
@@ -22814,13 +22821,13 @@ class x2 {
22814
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(), Fs(this.parentVNode, t), this.selectPage(this.currentPage);
22815
22822
  }
22816
22823
  createParentVNode() {
22817
- return ts("div", { class: "pagination" }, []);
22824
+ return Qe("div", { class: "pagination" }, []);
22818
22825
  }
22819
22826
  appendVNode(t, e, s) {
22820
22827
  e = e < 0 ? 0 : e < this.totalPages ? e : this.totalPages - 1;
22821
22828
  const r = s?.text || String(e + 1), i = s?.classes || "";
22822
22829
  t.children.push(
22823
- e == this.currentPage && i.indexOf("prev") == -1 && i.indexOf("next") == -1 ? ts("span", { class: `current ${i}` }, r) : ts(
22830
+ e == this.currentPage && i.indexOf("prev") == -1 && i.indexOf("next") == -1 ? Qe("span", { class: `current ${i}` }, r) : Qe(
22824
22831
  "a",
22825
22832
  {
22826
22833
  class: i,
@@ -22847,14 +22854,14 @@ class x2 {
22847
22854
  for (let o = 0; o < i; o++)
22848
22855
  this.appendVNode(t, o);
22849
22856
  this.entriesEdge < s && this.ellipseText && t.children.push(
22850
- ts("span", {}, this.ellipseText)
22857
+ Qe("span", {}, this.ellipseText)
22851
22858
  );
22852
22859
  }
22853
22860
  for (let i = s; i < r; i++)
22854
22861
  this.appendVNode(t, i);
22855
22862
  if (r < this.totalPages && this.entriesEdge > 0) {
22856
22863
  this.totalPages - this.entriesEdge > r && this.ellipseText && t.children.push(
22857
- ts("span", {}, this.ellipseText)
22864
+ Qe("span", {}, this.ellipseText)
22858
22865
  );
22859
22866
  const i = Math.max(this.totalPages - this.entriesEdge, r);
22860
22867
  for (let o = i; o < this.totalPages; o++)
@@ -22919,7 +22926,7 @@ export {
22919
22926
  _r as CustomCanvasGradient,
22920
22927
  Qo as CustomCanvasPattern,
22921
22928
  Rc as DOMParse,
22922
- es as DOMSVGUtil,
22929
+ Ke as DOMSVGUtil,
22923
22930
  gh as DOMToBlob,
22924
22931
  ph as DOMToString,
22925
22932
  Yn as DOMVideo,
@@ -22936,9 +22943,9 @@ export {
22936
22943
  j1 as Int32BufferAttribute,
22937
22944
  U1 as Int8BufferAttribute,
22938
22945
  Ee as Interpolation,
22939
- hs as LineShape,
22946
+ os as LineShape,
22940
22947
  zc as LinearSRGBColorSpace,
22941
- as as LinearToSRGB,
22948
+ is as LinearToSRGB,
22942
22949
  Nc as LinearTransfer,
22943
22950
  ze as Ls,
22944
22951
  Sw as MVVM,
@@ -22950,11 +22957,11 @@ export {
22950
22957
  x2 as Pagination,
22951
22958
  Xe as QRCode,
22952
22959
  qc as RabbitShape,
22953
- ls as RectShape,
22960
+ us as RectShape,
22954
22961
  Qc as RingIndicatorShapeCombo,
22955
22962
  Xn as RingShape,
22956
- ss as SRGBColorSpace,
22957
- os as SRGBToLinear,
22963
+ ts as SRGBColorSpace,
22964
+ rs as SRGBToLinear,
22958
22965
  oi as SRGBTransfer,
22959
22966
  Ow as SVGParse,
22960
22967
  dn as SVGParsedPathArgsLength,
@@ -23108,7 +23115,7 @@ export {
23108
23115
  gc as getRemSize,
23109
23116
  Px as getScreenPosition,
23110
23117
  ny as getSelectedText,
23111
- rs as getStyle,
23118
+ ss as getStyle,
23112
23119
  uw as getTheme$,
23113
23120
  E1 as getTimeZone,
23114
23121
  Hi as getURL,
@@ -23118,7 +23125,7 @@ export {
23118
23125
  Qh as getVnode,
23119
23126
  Op as gifImage,
23120
23127
  qx as gravitateShapes,
23121
- ts as h,
23128
+ Qe as h,
23122
23129
  qi as hFromEl,
23123
23130
  Ry as hasClass,
23124
23131
  O1 as hasDocument,
@@ -23212,7 +23219,7 @@ export {
23212
23219
  Cc as pointerDown$,
23213
23220
  Sc as pointerMove$,
23214
23221
  Tc as pointerUp$,
23215
- je as polar,
23222
+ qe as polar,
23216
23223
  Zx as polymorphShapesTween,
23217
23224
  B1 as prefixes,
23218
23225
  ix as press$,
@@ -23292,7 +23299,7 @@ export {
23292
23299
  mx as transitionStart$,
23293
23300
  n0 as trimHash,
23294
23301
  Kh as updateVnode,
23295
- is as useAttribute,
23302
+ ns as useAttribute,
23296
23303
  Kr as useClickA,
23297
23304
  oy as useClipboard,
23298
23305
  pw as useCookie,
@@ -23324,7 +23331,7 @@ export {
23324
23331
  wg as useMouseAndPointerDownMovePoint$,
23325
23332
  vx as useMouseDownMovePoint$,
23326
23333
  bx as useMouseMovePoint$,
23327
- ys as useMousePoint,
23334
+ gs as useMousePoint,
23328
23335
  Gg as useMutation$,
23329
23336
  ti as usePointerDownMovePoint$,
23330
23337
  iw as usePopStateChange$,