bilitoolkit-ui 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { reactive as Ce, watch as le, ref as z, onMounted as ne, onUnmounted as ce, computed as C, toValue as te, shallowRef as Bt, useTemplateRef as K, defineComponent as B, openBlock as r, createElementBlock as f, createElementVNode as a, toDisplayString as m, renderSlot as I, normalizeClass as se, createVNode as v, createCommentVNode as $, useModel as he, createBlock as k, withCtx as d, unref as h, createTextVNode as A, mergeModels as J, withDirectives as W, Fragment as R, renderList as O, normalizeStyle as xe, toRaw as St, render as me, vShow as ge, createApp as ze, useCssVars as $t, mergeProps as G, normalizeProps as zt, guardReactiveProps as Dt, withModifiers as Ee, nextTick as we, useSlots as Oe, useAttrs as Pt, h as It } from "vue";
2
- import { defineStore as je, storeToRefs as Mt } from "pinia";
3
- import { defaultAppThemeState as Ne, APP_THEME_STATE as He, UI_DB_KEYS as Te } from "./common.js";
4
- import { setupToolkitApi as Vt } from "bilitoolkit-runtime";
1
+ import { reactive as Ce, watch as le, ref as z, onMounted as ne, onUnmounted as ce, computed as C, toValue as se, shallowRef as Bt, useTemplateRef as Y, defineComponent as B, openBlock as r, createElementBlock as g, createElementVNode as a, toDisplayString as p, renderSlot as I, normalizeClass as W, createVNode as v, createCommentVNode as $, useModel as he, createBlock as k, withCtx as d, unref as h, createTextVNode as A, mergeModels as K, withDirectives as G, Fragment as R, renderList as j, normalizeStyle as xe, toRaw as St, render as me, vShow as ge, createApp as De, useCssVars as $t, mergeProps as J, normalizeProps as zt, guardReactiveProps as Dt, withModifiers as Ee, nextTick as we, useSlots as je, useAttrs as Pt, h as It } from "vue";
2
+ import { defineStore as Oe, storeToRefs as Vt } from "pinia";
3
+ import { defaultAppThemeState as Ne, APP_THEME_STATE as He, UI_DB_KEYS as Le } from "./common.js";
4
+ import { setupToolkitApi as Qt } from "bilitoolkit-runtime";
5
5
  import Ze from "lodash-es/cloneDeep";
6
6
  import "element-plus/theme-chalk/dark/css-vars.css";
7
7
  import "element-plus/theme-chalk/el-loading.css";
8
8
  import "element-plus/theme-chalk/el-message.css";
9
9
  import "element-plus/theme-chalk/el-message-box.css";
10
- import { ElMessageBox as Qt, ElMessage as Ht } from "element-plus";
11
- import { BiliApiBusinessError as Tt, BiliClient as Lt, audioQualityMap as Rt, videoQualityMap as Ft, videoCodecIdMap as Ut, parseVideoZoneV1 as qt, parseVideoZoneV2 as Ot } from "@ybgnb/bili-api";
12
- import { isCanceledError as jt, getErrorMessage as Nt, createAbortError as We, serializeError as Zt, getFormattedDateTime as Wt, unwrapBizResult as Gt, inArray as Jt, formatFileSizeFromKB as Kt, formatDuration as De, formatTime as fe } from "@ybgnb/utils";
10
+ import { ElMessageBox as Mt, ElMessage as Tt } from "element-plus";
11
+ import { BiliApiBusinessError as Ht, BiliClient as Lt, audioQualityMap as Rt, videoQualityMap as Ft, videoCodecIdMap as Ut, parseVideoZoneV1 as qt, parseVideoZoneV2 as jt } from "@ybgnb/bili-api";
12
+ import { isCanceledError as Ot, getErrorMessage as Nt, createAbortError as We, serializeError as Zt, getFormattedDateTime as Wt, unwrapBizResult as Gt, inArray as Jt, formatFileSizeFromKB as Kt, formatDuration as Pe, formatTime as fe } from "@ybgnb/utils";
13
13
  import { AppError as Yt, downloadTaskStatusMap as Ge, downloadResourceNameMap as Xt } from "bilitoolkit-types";
14
- import { ElDialog as re, ElButton as Z, ElLoadingDirective as Pe, ElRow as es, ElCol as ts, ElInput as Je, ElProgress as Ke, ElIcon as Ie, ElTooltip as Ye, ElPopconfirm as ss, ElMenuItem as Xe, ElSubMenu as ls, ElMenu as ns, ElPopover as as, ElDropdown as os, ElDropdownMenu as is, ElDropdownItem as cs, ElTable as rs, ElTableColumn as us, ElEmpty as et, ElPagination as tt, ElCheckbox as ds, ElTag as st, ElText as vs, ElImage as lt, ElDescriptions as ps, ElDescriptionsItem as ms, ElRadioGroup as gs, ElRadioButton as fs } from "element-plus/es";
14
+ import { ElDialog as re, ElButton as Z, ElLoadingDirective as Ie, ElRow as es, ElCol as ts, ElInput as Je, ElProgress as Ke, ElIcon as Ve, ElTooltip as Ye, ElPopconfirm as ss, ElMenuItem as Xe, ElSubMenu as ls, ElMenu as ns, ElPopover as as, ElDropdown as os, ElDropdownMenu as is, ElDropdownItem as cs, ElTable as rs, ElTableColumn as us, ElEmpty as et, ElPagination as tt, ElCheckbox as ds, ElTag as st, ElText as vs, ElImage as lt, ElDescriptions as ps, ElDescriptionsItem as ms, ElRadioGroup as gs, ElRadioButton as fs } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/dialog/style/css";
17
17
  import "element-plus/es/components/button/style/css";
@@ -42,45 +42,45 @@ import "element-plus/es/components/image/style/css";
42
42
  import "element-plus/es/components/text/style/css";
43
43
  import "element-plus/es/components/radio-group/style/css";
44
44
  import "element-plus/es/components/radio-button/style/css";
45
- const H = Vt();
46
- var T = (e, l, s, t = "srgb", i) => `color-mix(in ${t}, ${e} ${s}%, ${l} ${100 - s}%)`, nt = (e) => {
45
+ const T = Qt();
46
+ var H = (e, l, s, t = "srgb", i) => `color-mix(in ${t}, ${e} ${s}%, ${l} ${100 - s}%)`, nt = (e) => {
47
47
  let l = parseInt(e.slice(1, 3), 16), s = parseInt(e.slice(3, 5), 16), t = parseInt(e.slice(5, 7), 16);
48
48
  return { r: l, g: s, b: t };
49
49
  }, _s = (e, l) => {
50
50
  document.documentElement.style.setProperty(e, l);
51
51
  };
52
- const Le = "#ffffff", Re = "#000000", ke = (e, l, s) => {
52
+ const Re = "#ffffff", Fe = "#000000", ke = (e, l, s) => {
53
53
  const { r: t, g: i, b: n } = nt(e);
54
54
  for (let o = 2; o < 100; ) {
55
55
  const c = o / 100;
56
56
  l[`${s}-transparent-${o}`] = `rgba(${t}, ${i}, ${n}, ${c})`, o >= 10 ? o += 5 : o++;
57
57
  }
58
- }, Me = (e, l, s) => {
58
+ }, Qe = (e, l, s) => {
59
59
  const t = {};
60
60
  s ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
61
- const i = t["--app-color-foreground"] = s ? Le : Re, n = t["--app-color-background"] = s ? Re : Le;
62
- t["--app-primary-color"] = e, t["--el-color-primary"] = e, t["--el-color-primary-light-1"] = T(e, n, 90), t["--el-color-primary-light-2"] = T(e, n, 80), t["--el-color-primary-light-3"] = T(e, n, 70), t["--el-color-primary-light-4"] = T(e, n, 60), t["--el-color-primary-light-5"] = T(e, n, 50), t["--el-color-primary-light-6"] = T(e, n, 40), t["--el-color-primary-light-7"] = T(e, n, 30), t["--el-color-primary-light-8"] = T(e, n, 20), t["--el-color-primary-light-9"] = T(e, n, 12), t["--el-color-primary-dark-1"] = T(e, i, 90), t["--el-color-primary-dark-2"] = T(e, i, 80), t["--el-color-primary-dark-3"] = T(e, i, 70), t["--el-color-primary-dark-4"] = T(e, i, 60), t["--el-color-primary-dark-5"] = T(e, i, 50), t["--el-color-primary-dark-6"] = T(e, i, 40), t["--el-color-primary-dark-7"] = T(e, i, 30), t["--el-color-primary-dark-8"] = T(e, i, 20), t["--el-color-primary-dark-9"] = T(e, i, 12);
61
+ const i = t["--app-color-foreground"] = s ? Re : Fe, n = t["--app-color-background"] = s ? Fe : Re;
62
+ t["--app-primary-color"] = e, t["--el-color-primary"] = e, t["--el-color-primary-light-1"] = H(e, n, 90), t["--el-color-primary-light-2"] = H(e, n, 80), t["--el-color-primary-light-3"] = H(e, n, 70), t["--el-color-primary-light-4"] = H(e, n, 60), t["--el-color-primary-light-5"] = H(e, n, 50), t["--el-color-primary-light-6"] = H(e, n, 40), t["--el-color-primary-light-7"] = H(e, n, 30), t["--el-color-primary-light-8"] = H(e, n, 20), t["--el-color-primary-light-9"] = H(e, n, 12), t["--el-color-primary-dark-1"] = H(e, i, 90), t["--el-color-primary-dark-2"] = H(e, i, 80), t["--el-color-primary-dark-3"] = H(e, i, 70), t["--el-color-primary-dark-4"] = H(e, i, 60), t["--el-color-primary-dark-5"] = H(e, i, 50), t["--el-color-primary-dark-6"] = H(e, i, 40), t["--el-color-primary-dark-7"] = H(e, i, 30), t["--el-color-primary-dark-8"] = H(e, i, 20), t["--el-color-primary-dark-9"] = H(e, i, 12);
63
63
  const { r: o, g: c, b: u } = nt(e);
64
64
  t["--app-bg-color-overlay"] = `rgba(${o}, ${c}, ${u}, 0.05)`, t["--app-bg-color-overlay-hover"] = `rgba(${o}, ${c}, ${u}, 0.15)`, t["--app-bg-color-page"] = s ? "var(--el-fill-color-blank)" : "transparent", t["--app-bg-color-menus"] = "var(--app-bg-color-page)", s ? t["--app-text-shadow"] = " 0px 1px 2px rgba(255, 255, 255, .4)" : t["--app-text-shadow"] = " 0px 1px 2px rgba(0, 0, 0, .4)", ke(e, t, "--app-color-primary"), ke(n, t, "--app-color-background"), ke(i, t, "--app-color-foreground");
65
- for (const p in t)
66
- _s(p, t[p]);
67
- }, Ve = async (e) => {
68
- const l = e ?? (await H.system.getAppThemeState()).themeMode;
69
- return l === "system" ? await H.system.shouldUseDarkColors() : l === "dark";
65
+ for (const m in t)
66
+ _s(m, t[m]);
67
+ }, Me = async (e) => {
68
+ const l = e ?? (await T.system.getAppThemeState()).themeMode;
69
+ return l === "system" ? await T.system.shouldUseDarkColors() : l === "dark";
70
70
  }, _e = async (e) => {
71
- const l = e ?? await H.system.getAppThemeState(), s = await Ve(l.themeMode);
72
- Me(l.primaryColor, l.themeMode, s);
73
- }, fo = async () => {
71
+ const l = e ?? await T.system.getAppThemeState(), s = await Me(l.themeMode);
72
+ Qe(l.primaryColor, l.themeMode, s);
73
+ }, Ao = async () => {
74
74
  await _e(void 0);
75
- }, _o = async () => {
75
+ }, ko = async () => {
76
76
  await _e(Ne);
77
- }, ho = async (e) => {
78
- const s = ye().state, t = await Ve(e);
79
- s.dark = t, s.themeMode = e, Me(s.primaryColor, e, t);
80
- }, wo = async (e) => {
81
- const s = ye().state, t = await Ve(s.themeMode);
82
- s.primaryColor = e, Me(e, s.themeMode, t);
83
- }, ye = je(
77
+ }, bo = async (e) => {
78
+ const s = ye().state, t = await Me(e);
79
+ s.dark = t, s.themeMode = e, Qe(s.primaryColor, e, t);
80
+ }, Co = async (e) => {
81
+ const s = ye().state, t = await Me(s.themeMode);
82
+ s.primaryColor = e, Qe(e, s.themeMode, t);
83
+ }, ye = Oe(
84
84
  "biliToolkit-ui-theme",
85
85
  () => {
86
86
  const e = Ce(Ne);
@@ -90,9 +90,9 @@ const Le = "#ffffff", Re = "#000000", ke = (e, l, s) => {
90
90
  Object.assign(e, c), await _e(c), n && o && (l = !0, le(
91
91
  () => e,
92
92
  (u) => {
93
- const p = Ze(u);
94
- window.toolkitApi.db.write(n, p).then(async () => {
95
- await window.toolkitApi.event.emit(o, p);
93
+ const m = Ze(u);
94
+ window.toolkitApi.db.write(n, m).then(async () => {
95
+ await window.toolkitApi.event.emit(o, m);
96
96
  });
97
97
  },
98
98
  { deep: !0 }
@@ -113,10 +113,10 @@ const Le = "#ffffff", Re = "#000000", ke = (e, l, s) => {
113
113
  persist: !1
114
114
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
115
115
  }
116
- ), at = je("biliToolkit-ui-selected-user", () => {
116
+ ), at = Oe("biliToolkit-ui-selected-user", () => {
117
117
  const e = z(null), l = async () => {
118
118
  try {
119
- e.value = (await window.toolkitApi.db.init(Te.UI_SELECTED_USER))?.user ?? null;
119
+ e.value = (await window.toolkitApi.db.init(Le.UI_SELECTED_USER))?.user ?? null;
120
120
  } catch {
121
121
  }
122
122
  };
@@ -124,7 +124,7 @@ const Le = "#ffffff", Re = "#000000", ke = (e, l, s) => {
124
124
  () => e.value,
125
125
  async (n) => {
126
126
  let o = n != null ? Ze(n) : null;
127
- await window.toolkitApi.db.write(Te.UI_SELECTED_USER, {
127
+ await window.toolkitApi.db.write(Le.UI_SELECTED_USER, {
128
128
  user: o
129
129
  }), o && await window.toolkitApi.user.switchCurrUser(o);
130
130
  },
@@ -137,56 +137,56 @@ const Le = "#ffffff", Re = "#000000", ke = (e, l, s) => {
137
137
  if (e.value == null)
138
138
  throw new Error("请先登录");
139
139
  } };
140
- }), yo = async (e, l) => (Promise.resolve({ }), Promise.resolve({ }), Promise.resolve({ }), await ye(e).init(l?.appThemeDBName, l?.appThemeUpdateEvent), await at(e).init(), {
140
+ }), xo = async (e, l) => (Promise.resolve({ }), Promise.resolve({ }), Promise.resolve({ }), await ye(e).init(l?.appThemeDBName, l?.appThemeUpdateEvent), await at(e).init(), {
141
141
  install(s) {
142
142
  }
143
143
  });
144
144
  function hs(e) {
145
- H.system.saveLog({
145
+ T.system.saveLog({
146
146
  level: "error",
147
147
  data: [JSON.stringify(Zt(e))]
148
148
  }).catch();
149
149
  }
150
- function Fe(e, l) {
150
+ function Ue(e, l) {
151
151
  return e == null ? !1 : e instanceof l || typeof e == "object" && "name" in e && e.name === l.name;
152
152
  }
153
- const Ao = (e) => {
154
- if (!jt(e))
153
+ const Eo = (e) => {
154
+ if (!Ot(e))
155
155
  if (e) {
156
156
  console.error(e);
157
157
  const l = () => {
158
- H && H.system && hs(e);
158
+ T && T.system && hs(e);
159
159
  };
160
- Fe(e, Yt) ? ie(`${e.message}`) : Fe(e, Tt) ? (ie(`${e.message} (${e.responseCode})`), l()) : (ie(Nt(e)), l());
160
+ Ue(e, Yt) ? ie(`${e.message}`) : Ue(e, Ht) ? (ie(`${e.message} (${e.responseCode})`), l()) : (ie(Nt(e)), l());
161
161
  } else
162
- Y({
162
+ X({
163
163
  message: "未知错误",
164
164
  type: "error"
165
165
  });
166
166
  };
167
- function Y(e) {
167
+ function X(e) {
168
168
  const l = {
169
169
  message: "",
170
170
  type: "success",
171
171
  duration: 3e3
172
172
  };
173
- typeof e == "string" ? l.message = e : Object.assign(l, e), Ht(l);
173
+ typeof e == "string" ? l.message = e : Object.assign(l, e), Tt(l);
174
174
  }
175
175
  function ie(e) {
176
- Y({
176
+ X({
177
177
  message: e,
178
178
  type: "error"
179
179
  });
180
180
  }
181
- function ko(e) {
182
- Y({
181
+ function Bo(e) {
182
+ X({
183
183
  message: e,
184
184
  type: "warning"
185
185
  });
186
186
  }
187
187
  function ws(e, l = "提示", s = {}) {
188
188
  return new Promise((t, i) => {
189
- Qt.confirm(
189
+ Mt.confirm(
190
190
  e,
191
191
  l,
192
192
  Object.assign(
@@ -206,11 +206,11 @@ function ws(e, l = "提示", s = {}) {
206
206
  });
207
207
  });
208
208
  }
209
- async function bo(e) {
209
+ async function So(e) {
210
210
  for (const [l, s, t] of e)
211
211
  await ws(l, s, t);
212
212
  }
213
- const Qe = (e) => {
213
+ const Te = (e) => {
214
214
  const l = e?.loading ?? z(!1);
215
215
  let s = null;
216
216
  const t = z(!1);
@@ -226,8 +226,8 @@ const Qe = (e) => {
226
226
  }
227
227
  })()), s)
228
228
  };
229
- }, Co = (e, l = 3e3) => {
230
- const { loading: s, loadingData: t } = Qe({ singleFlight: !0 }), i = t(e);
229
+ }, $o = (e, l = 3e3) => {
230
+ const { loading: s, loadingData: t } = Te({ singleFlight: !0 }), i = t(e);
231
231
  let n = null;
232
232
  return ne(async () => {
233
233
  n = setInterval(i, l);
@@ -238,27 +238,27 @@ const Qe = (e) => {
238
238
  } };
239
239
  }, ot = (e) => {
240
240
  const { fetchPage: l, pageParams: s, queryParams: t, autoLoad: i, onLoaded: n } = e, o = C(() => {
241
- const D = te(s);
241
+ const D = se(s);
242
242
  return {
243
243
  pageNum: D?.pageNum ?? 1,
244
244
  pageSize: D?.pageSize ?? 20,
245
245
  totalPages: 0,
246
246
  total: 0
247
247
  };
248
- }), c = z(o.value), u = z([]), { loading: p, loadingData: _ } = Qe(), w = _(async () => {
249
- const D = te(t), V = {
248
+ }), c = z(o.value), u = z([]), { loading: m, loadingData: _ } = Te(), w = _(async () => {
249
+ const D = se(t), Q = {
250
250
  pageNum: c.value.pageNum,
251
251
  pageSize: c.value.pageSize
252
- }, { data: F, ...P } = D ? await l(V, D) : await l(V);
252
+ }, { data: F, ...P } = D ? await l(Q, D) : await l(Q);
253
253
  u.value = F, c.value = P, n?.();
254
- }), g = () => {
255
- const { pageSize: D, ...V } = o.value;
256
- Object.assign(c.value, V);
254
+ }), f = () => {
255
+ const { pageSize: D, ...Q } = o.value;
256
+ Object.assign(c.value, Q);
257
257
  }, b = async () => {
258
- g(), await w();
258
+ f(), await w();
259
259
  }, x = async () => {
260
260
  c.value.pageNum = 1, await w();
261
- }, M = async () => {
261
+ }, V = async () => {
262
262
  await x();
263
263
  }, E = async () => {
264
264
  await w();
@@ -268,41 +268,41 @@ const Qe = (e) => {
268
268
  }), {
269
269
  pageData: c,
270
270
  tableData: u,
271
- loading: p,
271
+ loading: m,
272
272
  refresh: w,
273
273
  resetAndRefresh: b,
274
274
  resetPageAndRefresh: x,
275
- handleSizeChange: M,
275
+ handleSizeChange: V,
276
276
  handleCurrPageChange: E
277
277
  };
278
- }, xo = (e, l, s = []) => {
278
+ }, zo = (e, l, s = []) => {
279
279
  const t = Bt([...s]);
280
- function i(g) {
281
- return t.value.includes(l(g));
280
+ function i(f) {
281
+ return t.value.includes(l(f));
282
282
  }
283
- function n(g) {
284
- const b = l(g);
285
- i(g) ? t.value = t.value.filter((x) => x !== b) : t.value = [...t.value, b];
283
+ function n(f) {
284
+ const b = l(f);
285
+ i(f) ? t.value = t.value.filter((x) => x !== b) : t.value = [...t.value, b];
286
286
  }
287
287
  const o = C(() => {
288
- const g = te(e);
289
- return g.length > 0 && g.every((b) => t.value.includes(l(b)));
288
+ const f = se(e);
289
+ return f.length > 0 && f.every((b) => t.value.includes(l(b)));
290
290
  });
291
291
  function c() {
292
- o.value ? t.value = [] : t.value = te(e).map(l);
292
+ o.value ? t.value = [] : t.value = se(e).map(l);
293
293
  }
294
294
  function u() {
295
- return te(e).filter((g) => t.value.includes(l(g)));
295
+ return se(e).filter((f) => t.value.includes(l(f)));
296
296
  }
297
- function p() {
298
- const g = new Set(te(e).map(l));
299
- t.value = t.value.filter((b) => g.has(b));
297
+ function m() {
298
+ const f = new Set(se(e).map(l));
299
+ t.value = t.value.filter((b) => f.has(b));
300
300
  }
301
301
  function _() {
302
302
  t.value = [];
303
303
  }
304
- function w(g) {
305
- t.value = [...g];
304
+ function w(f) {
305
+ t.value = [...f];
306
306
  }
307
307
  return {
308
308
  selectedIds: t,
@@ -311,12 +311,12 @@ const Qe = (e) => {
311
311
  isAllSelected: o,
312
312
  toggleAll: c,
313
313
  getSelectedData: u,
314
- cleanupSelected: p,
314
+ cleanupSelected: m,
315
315
  clearSelected: _,
316
316
  select: w
317
317
  };
318
318
  }, ys = (e) => {
319
- const l = K(e), s = z(0), t = () => {
319
+ const l = Y(e), s = z(0), t = () => {
320
320
  l.value?.clientHeight && (s.value = l.value.clientHeight);
321
321
  };
322
322
  let i, n = 0;
@@ -331,15 +331,15 @@ const Qe = (e) => {
331
331
  height: s,
332
332
  updateHeight: t
333
333
  };
334
- }, As = { class: "setting-group" }, ks = { class: "setting-group__name" }, bs = { class: "setting-group__list" }, Eo = /* @__PURE__ */ B({
334
+ }, As = { class: "setting-group" }, ks = { class: "setting-group__name" }, bs = { class: "setting-group__list" }, Do = /* @__PURE__ */ B({
335
335
  __name: "SettingGroup",
336
336
  props: {
337
337
  name: {}
338
338
  },
339
339
  setup(e) {
340
340
  const l = e;
341
- return (s, t) => (r(), f("div", As, [
342
- a("div", ks, m(l.name), 1),
341
+ return (s, t) => (r(), g("div", As, [
342
+ a("div", ks, p(l.name), 1),
343
343
  a("div", bs, [
344
344
  I(s.$slots, "default")
345
345
  ])
@@ -352,8 +352,8 @@ const Qe = (e) => {
352
352
  },
353
353
  setup(e) {
354
354
  const l = e, s = ye(), t = C(() => s.state.dark ? `ri-${l.icon}-fill` : `ri-${l.icon}-line`);
355
- return (i, n) => (r(), f("i", {
356
- class: se([t.value, "icon-font"])
355
+ return (i, n) => (r(), g("i", {
356
+ class: W([t.value, "icon-font"])
357
357
  }, null, 2));
358
358
  }
359
359
  }), Cs = { class: "setting-item" }, xs = { class: "setting-item__content" }, Es = { class: "setting-item__content__title" }, Bs = {
@@ -370,14 +370,14 @@ const Qe = (e) => {
370
370
  const l = e, s = z("equalizer-2");
371
371
  return (t, i) => {
372
372
  const n = N;
373
- return r(), f("div", Cs, [
373
+ return r(), g("div", Cs, [
374
374
  v(n, {
375
375
  class: "setting-item__icon",
376
376
  icon: l.iconClass || s.value
377
377
  }, null, 8, ["icon"]),
378
378
  a("div", xs, [
379
- a("div", Es, m(l.title), 1),
380
- l.desc ? (r(), f("div", Bs, m(l.desc), 1)) : $("", !0)
379
+ a("div", Es, p(l.title), 1),
380
+ l.desc ? (r(), g("div", Bs, p(l.desc), 1)) : $("", !0)
381
381
  ]),
382
382
  a("div", Ss, [
383
383
  I(t.$slots, "default", {}, void 0, !0)
@@ -390,7 +390,7 @@ const Qe = (e) => {
390
390
  for (const [t, i] of l)
391
391
  s[t] = i;
392
392
  return s;
393
- }, Bo = /* @__PURE__ */ L($s, [["__scopeId", "data-v-bb581bf5"]]);
393
+ }, Po = /* @__PURE__ */ L($s, [["__scopeId", "data-v-bb581bf5"]]);
394
394
  function zs(e) {
395
395
  const l = z(e), s = z(null), t = (n) => {
396
396
  l.value = e, s.value = setInterval(() => {
@@ -401,9 +401,9 @@ function zs(e) {
401
401
  };
402
402
  return ce(i), { countdown: l, start: t, stop: i };
403
403
  }
404
- const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
404
+ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
405
405
  __name: "CountdownDialog",
406
- props: /* @__PURE__ */ J({
406
+ props: /* @__PURE__ */ K({
407
407
  content: {},
408
408
  countdown: {},
409
409
  title: { default: "提示" },
@@ -414,22 +414,22 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
414
414
  modelValue: { type: Boolean, required: !0 },
415
415
  modelModifiers: {}
416
416
  }),
417
- emits: /* @__PURE__ */ J(["onConfirm", "onCancel"], ["update:modelValue"]),
417
+ emits: /* @__PURE__ */ K(["onConfirm", "onCancel"], ["update:modelValue"]),
418
418
  setup(e, { expose: l, emit: s }) {
419
419
  const t = e, i = he(e, "modelValue"), n = s, { countdown: o, start: c, stop: u } = zs(t.countdown);
420
- let p = !1;
420
+ let m = !1;
421
421
  const _ = (x) => {
422
- p || (p = !0, u(), n(x === "confirm" ? "onConfirm" : "onCancel", x), i.value = !1, p = !1);
423
- }, w = () => _("confirm"), g = () => _("cancel"), b = () => {
424
- i.value = !0, c(g);
422
+ m || (m = !0, u(), n(x === "confirm" ? "onConfirm" : "onCancel", x), i.value = !1, m = !1);
423
+ }, w = () => _("confirm"), f = () => _("cancel"), b = () => {
424
+ i.value = !0, c(f);
425
425
  };
426
- return le(i, (x, M) => {
427
- x && !M && c(g);
428
- }), l({ show: b }), (x, M) => {
426
+ return le(i, (x, V) => {
427
+ x && !V && c(f);
428
+ }), l({ show: b }), (x, V) => {
429
429
  const E = Z, D = re;
430
430
  return r(), k(D, {
431
431
  modelValue: i.value,
432
- "onUpdate:modelValue": M[0] || (M[0] = (V) => i.value = V),
432
+ "onUpdate:modelValue": V[0] || (V[0] = (Q) => i.value = Q),
433
433
  title: e.title,
434
434
  width: e.width,
435
435
  "close-on-click-modal": !1,
@@ -439,9 +439,9 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
439
439
  }, {
440
440
  footer: d(() => [
441
441
  a("div", Ds, [
442
- v(E, { onClick: g }, {
442
+ v(E, { onClick: f }, {
443
443
  default: d(() => [
444
- A(m(e.cancelBtnText) + "(" + m(h(o)) + "s)", 1)
444
+ A(p(e.cancelBtnText) + "(" + p(h(o)) + "s)", 1)
445
445
  ]),
446
446
  _: 1
447
447
  }),
@@ -451,23 +451,23 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
451
451
  onClick: w
452
452
  }, {
453
453
  default: d(() => [
454
- A(m(e.confirmBtnText), 1)
454
+ A(p(e.confirmBtnText), 1)
455
455
  ]),
456
456
  _: 1
457
457
  }, 8, ["disabled"])
458
458
  ])
459
459
  ]),
460
460
  default: d(() => [
461
- a("div", null, m(e.content), 1),
462
- a("div", null, m(h(o)) + "秒后自动取消", 1)
461
+ a("div", null, p(e.content), 1),
462
+ a("div", null, p(h(o)) + "秒后自动取消", 1)
463
463
  ]),
464
464
  _: 1
465
465
  }, 8, ["modelValue", "title", "width"]);
466
466
  };
467
467
  }
468
- }), Ps = { class: "select-dialog" }, Is = ["onClick"], Ms = { class: "option-item-label" }, Vs = { key: 0 }, Qs = { key: 1 }, Hs = /* @__PURE__ */ B({
468
+ }), Ps = { class: "select-dialog" }, Is = ["onClick"], Vs = { class: "option-item-label" }, Qs = { key: 0 }, Ms = { key: 1 }, Ts = /* @__PURE__ */ B({
469
469
  __name: "SelectDialog",
470
- props: /* @__PURE__ */ J({
470
+ props: /* @__PURE__ */ K({
471
471
  title: { default: "请选择" },
472
472
  options: {},
473
473
  defaultSelectedList: { default: () => [] },
@@ -483,9 +483,9 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
483
483
  modelValue: { type: Boolean, required: !0 },
484
484
  modelModifiers: {}
485
485
  }),
486
- emits: /* @__PURE__ */ J(["confirm"], ["update:modelValue"]),
486
+ emits: /* @__PURE__ */ K(["confirm"], ["update:modelValue"]),
487
487
  setup(e, { emit: l }) {
488
- const s = e, t = he(e, "modelValue"), i = Ce([]), n = Ce([]), o = z(0), c = K("listRef"), { loading: u, loadingData: p } = Qe(), _ = z(!1), w = p(async (y) => {
488
+ const s = e, t = he(e, "modelValue"), i = Ce([]), n = Ce([]), o = z(0), c = Y("listRef"), { loading: u, loadingData: m } = Te(), _ = z(!1), w = m(async (y) => {
489
489
  n.splice(0, n.length, ...s.defaultSelectedList);
490
490
  let S = !1;
491
491
  y(() => {
@@ -493,7 +493,7 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
493
493
  });
494
494
  const U = typeof s.options == "function" ? await s.options() : s.options;
495
495
  S || i.splice(0, i.length, ...U);
496
- }), g = () => {
496
+ }), f = () => {
497
497
  o.value = c.value?.clientWidth ?? 0, _.value = !0;
498
498
  };
499
499
  le(
@@ -509,22 +509,22 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
509
509
  );
510
510
  const b = l, x = () => {
511
511
  t.value = !1;
512
- }, M = () => {
512
+ }, V = () => {
513
513
  if (!n || n.length === 0) {
514
514
  ie(s.noSelectionTip);
515
515
  return;
516
516
  }
517
517
  b("confirm", St(n)), t.value = !1;
518
- }, E = C(() => s.showCurrentSelection && _.value && !u.value && n.length > 0), D = (y) => n.includes(y), V = (y) => {
518
+ }, E = C(() => s.showCurrentSelection && _.value && !u.value && n.length > 0), D = (y) => n.includes(y), Q = (y) => {
519
519
  const S = n.indexOf(y);
520
520
  S > -1 ? n.splice(S, 1) : s.multiple ? n.push(y) : n.splice(0, n.length, y);
521
521
  }, F = C(() => i.every((y) => n.includes(y))), P = () => {
522
522
  F.value ? n.splice(0, n.length) : n.splice(0, n.length, ...i);
523
523
  };
524
524
  return (y, S) => {
525
- const U = Z, X = re, ee = Pe;
526
- return r(), f("div", Ps, [
527
- v(X, {
525
+ const U = Z, ee = re, te = Ie;
526
+ return r(), g("div", Ps, [
527
+ v(ee, {
528
528
  title: e.title,
529
529
  modelValue: t.value,
530
530
  "onUpdate:modelValue": S[0] || (S[0] = (q) => t.value = q),
@@ -533,12 +533,12 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
533
533
  "close-on-press-escape": !1,
534
534
  "show-close": !0,
535
535
  "align-center": "",
536
- onOpened: g
536
+ onOpened: f
537
537
  }, {
538
538
  footer: d(() => [
539
- e.multiple && e.canSelectAll ? (r(), f("span", {
539
+ e.multiple && e.canSelectAll ? (r(), g("span", {
540
540
  key: 0,
541
- class: se(["select-all", F.value ? "selected" : ""]),
541
+ class: W(["select-all", F.value ? "selected" : ""]),
542
542
  onClick: P
543
543
  }, [...S[1] || (S[1] = [
544
544
  a("span", { class: "select-icon" }, null, -1),
@@ -546,64 +546,64 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
546
546
  ])], 2)) : $("", !0),
547
547
  v(U, { onClick: x }, {
548
548
  default: d(() => [
549
- A(m(e.cancelText), 1)
549
+ A(p(e.cancelText), 1)
550
550
  ]),
551
551
  _: 1
552
552
  }),
553
553
  v(U, {
554
554
  type: "primary",
555
- onClick: M,
555
+ onClick: V,
556
556
  disabled: h(u)
557
557
  }, {
558
558
  default: d(() => [
559
- A(m(e.confirmText), 1)
559
+ A(p(e.confirmText), 1)
560
560
  ]),
561
561
  _: 1
562
562
  }, 8, ["disabled"])
563
563
  ]),
564
564
  default: d(() => [
565
- W((r(), f("div", {
566
- class: se(["dialog-content", h(u) ? "loading" : ""])
565
+ G((r(), g("div", {
566
+ class: W(["dialog-content", h(u) ? "loading" : ""])
567
567
  }, [
568
568
  a("div", {
569
569
  ref_key: "listRef",
570
570
  ref: c,
571
571
  class: "option-list"
572
572
  }, [
573
- (r(!0), f(R, null, O(i, (q) => (r(), f("div", {
574
- class: se(["option-item", D(q) ? "selected" : ""]),
573
+ (r(!0), g(R, null, j(i, (q) => (r(), g("div", {
574
+ class: W(["option-item", D(q) ? "selected" : ""]),
575
575
  key: e.getDataId(q),
576
- onClick: (ue) => V(q)
576
+ onClick: (ue) => Q(q)
577
577
  }, [
578
578
  I(y.$slots, "item", {}, () => [
579
579
  a("span", {
580
- class: se(["select-icon", e.multiple ? "checkbox" : "radio"])
580
+ class: W(["select-icon", e.multiple ? "checkbox" : "radio"])
581
581
  }, null, 2),
582
- a("span", Ms, [
582
+ a("span", Vs, [
583
583
  I(y.$slots, "item-label", {}, () => [
584
- A(m(e.getDataLabel(q)), 1)
584
+ A(p(e.getDataLabel(q)), 1)
585
585
  ], !0)
586
586
  ])
587
587
  ], !0)
588
588
  ], 10, Is))), 128))
589
589
  ], 512),
590
- E.value ? (r(), f("div", {
590
+ E.value ? (r(), g("div", {
591
591
  key: 0,
592
592
  class: "current-selection",
593
593
  style: xe({ width: `${o.value}px` })
594
594
  }, [
595
- e.multiple ? (r(), f("span", Vs, "已选择(" + m(n.length) + "):", 1)) : (r(), f("span", Qs, "已选择:")),
595
+ e.multiple ? (r(), g("span", Qs, "已选择(" + p(n.length) + "):", 1)) : (r(), g("span", Ms, "已选择:")),
596
596
  a("div", {
597
597
  class: "current-selection-list",
598
598
  style: xe({ display: e.multiple ? "flex" : "contents" })
599
599
  }, [
600
- (r(!0), f(R, null, O(n, (q) => (r(), f("span", {
600
+ (r(!0), g(R, null, j(n, (q) => (r(), g("span", {
601
601
  key: e.getDataId(q)
602
- }, m(e.getDataLabel(q)), 1))), 128))
602
+ }, p(e.getDataLabel(q)), 1))), 128))
603
603
  ], 4)
604
604
  ], 4)) : $("", !0)
605
605
  ], 2)), [
606
- [ee, h(u)]
606
+ [te, h(u)]
607
607
  ])
608
608
  ]),
609
609
  _: 3
@@ -611,11 +611,11 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
611
611
  ]);
612
612
  };
613
613
  }
614
- }), Ts = /* @__PURE__ */ L(Hs, [["__scopeId", "data-v-2ad04bd4"]]), $o = (e) => new Promise((l) => {
614
+ }), Hs = /* @__PURE__ */ L(Ts, [["__scopeId", "data-v-2ad04bd4"]]), Vo = (e) => new Promise((l) => {
615
615
  let s = document.createElement("div");
616
616
  const t = (n) => {
617
617
  l(n), s && (me(null, s), s.remove(), s = null);
618
- }, i = v(Ts, {
618
+ }, i = v(Hs, {
619
619
  ...e,
620
620
  modelValue: !0,
621
621
  "onUpdate:modelValue": (n) => {
@@ -629,9 +629,9 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
629
629
  }), Ls = { class: "dialog-content" }, Rs = { class: "header" }, Fs = {
630
630
  key: 0,
631
631
  class: "total-desc"
632
- }, Us = { class: "page-size-desc" }, qs = { class: "range-desc" }, Os = /* @__PURE__ */ B({
632
+ }, Us = { class: "page-size-desc" }, qs = { class: "range-desc" }, js = /* @__PURE__ */ B({
633
633
  __name: "PageRangeDialog",
634
- props: /* @__PURE__ */ J({
634
+ props: /* @__PURE__ */ K({
635
635
  title: { default: "请选择页码范围" },
636
636
  defaultRange: { default: () => [1, 1] },
637
637
  total: {},
@@ -644,9 +644,9 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
644
644
  modelValue: { type: Boolean, required: !0 },
645
645
  modelModifiers: {}
646
646
  }),
647
- emits: /* @__PURE__ */ J(["confirm"], ["update:modelValue"]),
647
+ emits: /* @__PURE__ */ K(["confirm"], ["update:modelValue"]),
648
648
  setup(e, { emit: l }) {
649
- const s = e, t = he(e, "modelValue"), i = C(() => s.total != null && s.maxPage != null ? Math.min(s.maxPage, Math.ceil(s.total / s.pageSize)) : s.total != null ? Math.ceil(s.total / s.pageSize) : s.maxPage), n = z(1), o = z(1), c = C(() => `共有 ${s.total} 条数据`), u = C(() => `每页可获取 ${s.pageSize} 条数据`), p = C(() => {
649
+ const s = e, t = he(e, "modelValue"), i = C(() => s.total != null && s.maxPage != null ? Math.min(s.maxPage, Math.ceil(s.total / s.pageSize)) : s.total != null ? Math.ceil(s.total / s.pageSize) : s.maxPage), n = z(1), o = z(1), c = C(() => `共有 ${s.total} 条数据`), u = C(() => `每页可获取 ${s.pageSize} 条数据`), m = C(() => {
650
650
  if (s.total != null) {
651
651
  const b = s.pageSize - Math.max(o.value * s.pageSize - s.total, 0);
652
652
  return `共选择 ${(o.value - n.value) * s.pageSize + b} 条数据`;
@@ -662,11 +662,11 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
662
662
  );
663
663
  const _ = l, w = () => {
664
664
  t.value = !1;
665
- }, g = () => {
665
+ }, f = () => {
666
666
  _("confirm", [n.value, o.value]), t.value = !1;
667
667
  };
668
668
  return (b, x) => {
669
- const M = Je, E = ts, D = es, V = Z, F = re;
669
+ const V = Je, E = ts, D = es, Q = Z, F = re;
670
670
  return r(), k(F, {
671
671
  title: e.title,
672
672
  modelValue: t.value,
@@ -678,18 +678,18 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
678
678
  "align-center": ""
679
679
  }, {
680
680
  footer: d(() => [
681
- v(V, { onClick: w }, {
681
+ v(Q, { onClick: w }, {
682
682
  default: d(() => [
683
- A(m(e.cancelText), 1)
683
+ A(p(e.cancelText), 1)
684
684
  ]),
685
685
  _: 1
686
686
  }),
687
- v(V, {
687
+ v(Q, {
688
688
  type: "primary",
689
- onClick: g
689
+ onClick: f
690
690
  }, {
691
691
  default: d(() => [
692
- A(m(e.confirmText), 1)
692
+ A(p(e.confirmText), 1)
693
693
  ]),
694
694
  _: 1
695
695
  })
@@ -697,14 +697,14 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
697
697
  default: d(() => [
698
698
  a("div", Ls, [
699
699
  a("div", Rs, [
700
- e.total ? (r(), f("div", Fs, m(c.value), 1)) : $("", !0),
701
- a("div", Us, m(u.value), 1)
700
+ e.total ? (r(), g("div", Fs, p(c.value), 1)) : $("", !0),
701
+ a("div", Us, p(u.value), 1)
702
702
  ]),
703
703
  v(D, { class: "page-range" }, {
704
704
  default: d(() => [
705
705
  v(E, { span: 11 }, {
706
706
  default: d(() => [
707
- v(M, {
707
+ v(V, {
708
708
  type: "number",
709
709
  modelValue: n.value,
710
710
  "onUpdate:modelValue": x[0] || (x[0] = (P) => n.value = P),
@@ -725,7 +725,7 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
725
725
  }),
726
726
  v(E, { span: 11 }, {
727
727
  default: d(() => [
728
- v(M, {
728
+ v(V, {
729
729
  type: "number",
730
730
  modelValue: o.value,
731
731
  "onUpdate:modelValue": x[1] || (x[1] = (P) => o.value = P),
@@ -738,18 +738,18 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
738
738
  ]),
739
739
  _: 1
740
740
  }),
741
- a("div", qs, m(p.value), 1)
741
+ a("div", qs, p(m.value), 1)
742
742
  ])
743
743
  ]),
744
744
  _: 1
745
745
  }, 8, ["title", "modelValue"]);
746
746
  };
747
747
  }
748
- }), js = /* @__PURE__ */ L(Os, [["__scopeId", "data-v-715af5da"]]), zo = (e) => new Promise((l) => {
748
+ }), Os = /* @__PURE__ */ L(js, [["__scopeId", "data-v-715af5da"]]), Qo = (e) => new Promise((l) => {
749
749
  let s = document.createElement("div");
750
750
  const t = (n) => {
751
751
  s && (me(null, s), s.remove(), s = null), l(n);
752
- }, i = v(js, {
752
+ }, i = v(Os, {
753
753
  ...e,
754
754
  modelValue: !0,
755
755
  "onUpdate:modelValue"(n) {
@@ -773,7 +773,7 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
773
773
  t.value = _;
774
774
  }, u = () => {
775
775
  s.value = !1;
776
- }, p = async () => {
776
+ }, m = async () => {
777
777
  await n?.(), u();
778
778
  };
779
779
  return l({
@@ -781,19 +781,19 @@ const Ds = { class: "dialog-footer" }, So = /* @__PURE__ */ B({
781
781
  update: c,
782
782
  close: u
783
783
  }), (_, w) => {
784
- const g = Pe;
785
- return W((r(), f("div", Ns, [
784
+ const f = Ie;
785
+ return G((r(), g("div", Ns, [
786
786
  a("div", Zs, [
787
- W(a("div", {
787
+ G(a("div", {
788
788
  class: "options-close-btn",
789
- onClick: p
789
+ onClick: m
790
790
  }, null, 512), [
791
791
  [ge, i.value]
792
792
  ]),
793
- W(a("div", Ws, null, 512), [
794
- [g, !0]
793
+ G(a("div", Ws, null, 512), [
794
+ [f, !0]
795
795
  ]),
796
- a("div", Gs, m(t.value), 1)
796
+ a("div", Gs, p(t.value), 1)
797
797
  ])
798
798
  ], 512)), [
799
799
  [ge, s.value]
@@ -805,9 +805,9 @@ let ve = null;
805
805
  function be() {
806
806
  if (ve) return ve;
807
807
  const e = document.createElement("div");
808
- return document.body.appendChild(e), ve = ze(Ks).mount(e), ve;
808
+ return document.body.appendChild(e), ve = De(Ks).mount(e), ve;
809
809
  }
810
- const Do = {
810
+ const Mo = {
811
811
  show(e) {
812
812
  be().show(e);
813
813
  },
@@ -822,7 +822,7 @@ var Ys = /* @__PURE__ */ B({
822
822
  name: "CircleCheck",
823
823
  __name: "circle-check",
824
824
  setup(e) {
825
- return (l, s) => (r(), f("svg", {
825
+ return (l, s) => (r(), g("svg", {
826
826
  xmlns: "http://www.w3.org/2000/svg",
827
827
  viewBox: "0 0 1024 1024"
828
828
  }, [
@@ -840,7 +840,7 @@ var Ys = /* @__PURE__ */ B({
840
840
  name: "CircleClose",
841
841
  __name: "circle-close",
842
842
  setup(e) {
843
- return (l, s) => (r(), f("svg", {
843
+ return (l, s) => (r(), g("svg", {
844
844
  xmlns: "http://www.w3.org/2000/svg",
845
845
  viewBox: "0 0 1024 1024"
846
846
  }, [
@@ -858,7 +858,7 @@ var Ys = /* @__PURE__ */ B({
858
858
  name: "Picture",
859
859
  __name: "picture",
860
860
  setup(e) {
861
- return (l, s) => (r(), f("svg", {
861
+ return (l, s) => (r(), g("svg", {
862
862
  xmlns: "http://www.w3.org/2000/svg",
863
863
  viewBox: "0 0 1024 1024"
864
864
  }, [
@@ -878,39 +878,39 @@ const ll = { class: "loading-mask el-overlay" }, nl = { class: "loading-content"
878
878
  setup(e, { expose: l }) {
879
879
  const s = z(!1), t = z(""), i = z(0), n = z("loading"), o = z(!1);
880
880
  let c, u;
881
- const p = (E = {}) => {
881
+ const m = (E = {}) => {
882
882
  t.value = E.message ?? "加载中", o.value = E.showCancel ?? !1, i.value = E.percentage ?? 0, n.value = "loading", c = E.onCancel, u = E.onConfirm, s.value = !0;
883
883
  }, _ = (E, D) => {
884
884
  E != null && (i.value = E), D != null && (t.value = D);
885
885
  }, w = (E = "操作成功") => {
886
886
  n.value = "success", t.value = E;
887
- }, g = (E = "操作失败") => {
887
+ }, f = (E = "操作失败") => {
888
888
  n.value = "error", t.value = E;
889
889
  }, b = () => {
890
890
  s.value = !1;
891
891
  }, x = async () => {
892
892
  await c?.(), b();
893
- }, M = async () => {
893
+ }, V = async () => {
894
894
  await u?.(n.value), b();
895
895
  };
896
896
  return l({
897
- show: p,
897
+ show: m,
898
898
  update: _,
899
899
  setSuccess: w,
900
- setError: g,
900
+ setError: f,
901
901
  close: b
902
902
  }), (E, D) => {
903
- const V = Ke, F = Ie, P = Z;
904
- return W((r(), f("div", ll, [
903
+ const Q = Ke, F = Ve, P = Z;
904
+ return G((r(), g("div", ll, [
905
905
  a("div", nl, [
906
- W(a("div", {
906
+ G(a("div", {
907
907
  class: "options-close-btn",
908
908
  onClick: x
909
909
  }, null, 512), [
910
910
  [ge, o.value && n.value === "loading"]
911
911
  ]),
912
912
  a("div", al, [
913
- n.value === "loading" ? (r(), k(V, {
913
+ n.value === "loading" ? (r(), k(Q, {
914
914
  key: 0,
915
915
  type: "circle",
916
916
  percentage: i.value,
@@ -933,7 +933,7 @@ const ll = { class: "loading-mask el-overlay" }, nl = { class: "loading-content"
933
933
  _: 1
934
934
  }))
935
935
  ]),
936
- a("div", ol, m(t.value), 1),
936
+ a("div", ol, p(t.value), 1),
937
937
  a("div", il, [
938
938
  o.value && n.value === "loading" ? (r(), k(P, {
939
939
  key: 0,
@@ -947,7 +947,7 @@ const ll = { class: "loading-mask el-overlay" }, nl = { class: "loading-content"
947
947
  n.value !== "loading" ? (r(), k(P, {
948
948
  key: 1,
949
949
  type: "primary",
950
- onClick: M
950
+ onClick: V
951
951
  }, {
952
952
  default: d(() => [...D[1] || (D[1] = [
953
953
  A(" 确定 ", -1)
@@ -966,9 +966,9 @@ let pe = null;
966
966
  function oe() {
967
967
  if (pe) return pe;
968
968
  const e = document.createElement("div");
969
- return document.body.appendChild(e), pe = ze(rl).mount(e), pe;
969
+ return document.body.appendChild(e), pe = De(rl).mount(e), pe;
970
970
  }
971
- const Po = {
971
+ const To = {
972
972
  show(e) {
973
973
  oe().show(e);
974
974
  },
@@ -1000,7 +1000,7 @@ const Po = {
1000
1000
  "txt-ellipsis-right": l.ellipsis === "right",
1001
1001
  "txt-ellipsis-left": l.ellipsis === "left",
1002
1002
  "single-line": l.lines === 1
1003
- }), i = z(!1), n = K("refContent"), o = new ResizeObserver(() => {
1003
+ }), i = z(!1), n = Y("refContent"), o = new ResizeObserver(() => {
1004
1004
  n.value && (l.lines === 1 ? i.value = n.value.scrollWidth > n.value.clientWidth : i.value = n.value.scrollHeight > n.value.clientHeight);
1005
1005
  });
1006
1006
  return ne(() => {
@@ -1008,15 +1008,15 @@ const Po = {
1008
1008
  }), ce(() => {
1009
1009
  o.disconnect();
1010
1010
  }), (c, u) => {
1011
- const p = Ye;
1012
- return r(), f("div", ul, [
1011
+ const m = Ye;
1012
+ return r(), g("div", ul, [
1013
1013
  a("div", dl, [
1014
1014
  e.iconClass ? (r(), k(N, {
1015
1015
  key: 0,
1016
1016
  icon: e.iconClass
1017
1017
  }, null, 8, ["icon"])) : $("", !0)
1018
1018
  ]),
1019
- e.content ? (r(), k(p, {
1019
+ e.content ? (r(), k(m, {
1020
1020
  key: 0,
1021
1021
  effect: "light",
1022
1022
  content: e.content,
@@ -1028,7 +1028,7 @@ const Po = {
1028
1028
  I(c.$slots, "tooltipContent")
1029
1029
  ]),
1030
1030
  default: d(() => [
1031
- a("div", G({
1031
+ a("div", J({
1032
1032
  ref_key: "refContent",
1033
1033
  ref: n
1034
1034
  }, c.$attrs, {
@@ -1036,7 +1036,7 @@ const Po = {
1036
1036
  }), [
1037
1037
  a("span", null, [
1038
1038
  I(c.$slots, "default", {}, () => [
1039
- A(m(e.content), 1)
1039
+ A(p(e.content), 1)
1040
1040
  ])
1041
1041
  ])
1042
1042
  ], 16)
@@ -1046,7 +1046,7 @@ const Po = {
1046
1046
  ]);
1047
1047
  };
1048
1048
  }
1049
- }), Io = /* @__PURE__ */ B({
1049
+ }), Ho = /* @__PURE__ */ B({
1050
1050
  inheritAttrs: !1,
1051
1051
  __name: "IconButton",
1052
1052
  props: {
@@ -1061,7 +1061,7 @@ const Po = {
1061
1061
  };
1062
1062
  return (i, n) => {
1063
1063
  const o = Ye, c = ss;
1064
- return e.tip ? (r(), f(R, { key: 0 }, [
1064
+ return e.tip ? (r(), g(R, { key: 0 }, [
1065
1065
  e.confirm ? (r(), k(c, {
1066
1066
  key: 0,
1067
1067
  title: e.confirm,
@@ -1095,7 +1095,7 @@ const Po = {
1095
1095
  "show-after": 800
1096
1096
  }, {
1097
1097
  default: d(() => [
1098
- v(N, G({
1098
+ v(N, J({
1099
1099
  class: "icon-btn",
1100
1100
  icon: e.icon,
1101
1101
  onClick: Ee(t, ["stop"])
@@ -1103,7 +1103,7 @@ const Po = {
1103
1103
  ]),
1104
1104
  _: 1
1105
1105
  }, 8, ["content"]))
1106
- ], 64)) : (r(), f(R, { key: 1 }, [
1106
+ ], 64)) : (r(), g(R, { key: 1 }, [
1107
1107
  e.confirm ? (r(), k(c, {
1108
1108
  key: 0,
1109
1109
  title: e.confirm,
@@ -1111,13 +1111,13 @@ const Po = {
1111
1111
  onConfirm: t
1112
1112
  }, {
1113
1113
  reference: d(() => [
1114
- v(N, G({
1114
+ v(N, J({
1115
1115
  class: "icon-btn",
1116
1116
  icon: e.icon
1117
1117
  }, i.$attrs), null, 16, ["icon"])
1118
1118
  ]),
1119
1119
  _: 1
1120
- }, 8, ["title"])) : (r(), k(N, G({
1120
+ }, 8, ["title"])) : (r(), k(N, J({
1121
1121
  key: 1,
1122
1122
  class: "icon-btn",
1123
1123
  icon: e.icon,
@@ -1132,31 +1132,31 @@ const Po = {
1132
1132
  icon: {}
1133
1133
  },
1134
1134
  setup(e) {
1135
- return (l, s) => (r(), f("div", vl, [
1135
+ return (l, s) => (r(), g("div", vl, [
1136
1136
  v(N, { icon: e.icon }, null, 8, ["icon"]),
1137
1137
  I(l.$slots, "default")
1138
1138
  ]));
1139
1139
  }
1140
- }), Mo = /* @__PURE__ */ B({
1140
+ }), Lo = /* @__PURE__ */ B({
1141
1141
  __name: "ExternalLink",
1142
1142
  props: {
1143
1143
  url: {}
1144
1144
  },
1145
1145
  setup(e) {
1146
1146
  const l = e, s = () => {
1147
- H.system.browsePage(l.url);
1147
+ T.system.browsePage(l.url);
1148
1148
  };
1149
- return (t, i) => (r(), f("span", {
1149
+ return (t, i) => (r(), g("span", {
1150
1150
  class: "external-link",
1151
1151
  onClick: Ee(s, ["prevent"])
1152
1152
  }, [
1153
1153
  I(t.$slots, "default")
1154
1154
  ]));
1155
1155
  }
1156
- }), pl = ["innerHTML"], Vo = /* @__PURE__ */ B({
1156
+ }), pl = ["innerHTML"], Ro = /* @__PURE__ */ B({
1157
1157
  __name: "LogPrint",
1158
1158
  setup(e, { expose: l }) {
1159
- const s = z([]), t = K("logBoxRef");
1159
+ const s = z([]), t = Y("logBoxRef");
1160
1160
  function i(o) {
1161
1161
  s.value.push(`[${Wt()}] ${o}`), s.value.length > 500 && s.value.shift(), we(() => {
1162
1162
  t.value && (t.value.scrollTop = t.value.scrollHeight);
@@ -1167,13 +1167,13 @@ const Po = {
1167
1167
  reset: () => {
1168
1168
  s.value = [];
1169
1169
  }
1170
- }), (o, c) => (r(), f("div", {
1170
+ }), (o, c) => (r(), g("div", {
1171
1171
  ref_key: "logBoxRef",
1172
1172
  ref: t,
1173
1173
  class: "log-print-box"
1174
1174
  }, [
1175
- (r(!0), f(R, null, O(s.value, (u, p) => (r(), f("div", {
1176
- key: p,
1175
+ (r(!0), g(R, null, j(s.value, (u, m) => (r(), g("div", {
1176
+ key: m,
1177
1177
  innerHTML: u,
1178
1178
  class: "log-print-box__line"
1179
1179
  }, null, 8, pl))), 128))
@@ -1191,7 +1191,7 @@ const Po = {
1191
1191
  const l = e, s = C(() => l.user.face || Be), t = C(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": rt, "../../assets/images/user_level/level_2.svg": ut, "../../assets/images/user_level/level_3.svg": dt, "../../assets/images/user_level/level_4.svg": vt, "../../assets/images/user_level/level_5.svg": pt, "../../assets/images/user_level/level_6.svg": mt }))[`../../assets/images/user_level/level_${l.user.level}.svg`], import.meta.url).href);
1192
1192
  return (i, n) => {
1193
1193
  const o = ae;
1194
- return r(), f("div", ml, [
1194
+ return r(), g("div", ml, [
1195
1195
  I(i.$slots, "default"),
1196
1196
  a("div", gl, [
1197
1197
  a("img", {
@@ -1199,7 +1199,7 @@ const Po = {
1199
1199
  alt: "face",
1200
1200
  src: s.value
1201
1201
  }, null, 8, fl),
1202
- e.user.silence === 1 ? (r(), f("span", _l, "账号已封禁")) : $("", !0)
1202
+ e.user.silence === 1 ? (r(), g("span", _l, "账号已封禁")) : $("", !0)
1203
1203
  ]),
1204
1204
  a("div", hl, [
1205
1205
  a("div", wl, [
@@ -1215,19 +1215,19 @@ const Po = {
1215
1215
  ]),
1216
1216
  a("div", Al, [
1217
1217
  n[0] || (n[0] = a("span", { class: "user-card__uid-icon" }, null, -1)),
1218
- a("span", kl, m(e.user.mid), 1)
1218
+ a("span", kl, p(e.user.mid), 1)
1219
1219
  ]),
1220
1220
  a("div", bl, [
1221
1221
  a("span", Cl, [
1222
- a("span", xl, m(e.user.following), 1),
1222
+ a("span", xl, p(e.user.following), 1),
1223
1223
  n[1] || (n[1] = a("span", { class: "user-card__stat__label" }, "关注", -1))
1224
1224
  ]),
1225
1225
  a("span", El, [
1226
- a("span", Bl, m(e.user.follower), 1),
1226
+ a("span", Bl, p(e.user.follower), 1),
1227
1227
  n[2] || (n[2] = a("span", { class: "user-card__stat__label" }, "粉丝", -1))
1228
1228
  ]),
1229
1229
  a("span", Sl, [
1230
- a("span", $l, m(e.user.coins), 1),
1230
+ a("span", $l, p(e.user.coins), 1),
1231
1231
  n[3] || (n[3] = a("span", { class: "user-card__stat__label" }, "硬币", -1))
1232
1232
  ])
1233
1233
  ])
@@ -1235,7 +1235,7 @@ const Po = {
1235
1235
  ]);
1236
1236
  };
1237
1237
  }
1238
- }), Dl = { class: "bili-user-info" }, Pl = ["src"], Il = { class: "bili-user-info__right" }, Ml = { class: "bili-user-info__info-row" }, Vl = { class: "bili-user-info__uid" }, Ql = /* @__PURE__ */ B({
1238
+ }), Dl = { class: "bili-user-info" }, Pl = ["src"], Il = { class: "bili-user-info__right" }, Vl = { class: "bili-user-info__info-row" }, Ql = { class: "bili-user-info__uid" }, Ml = /* @__PURE__ */ B({
1239
1239
  __name: "BiliUserInfo",
1240
1240
  props: {
1241
1241
  user: {}
@@ -1243,8 +1243,8 @@ const Po = {
1243
1243
  setup(e) {
1244
1244
  return (l, s) => {
1245
1245
  const t = ae;
1246
- return r(), f("div", Dl, [
1247
- e.user.face ? (r(), f("img", {
1246
+ return r(), g("div", Dl, [
1247
+ e.user.face ? (r(), g("img", {
1248
1248
  key: 0,
1249
1249
  class: "bili-user-info__face",
1250
1250
  src: e.user.face,
@@ -1255,15 +1255,15 @@ const Po = {
1255
1255
  class: "bili-user-info__name",
1256
1256
  content: e.user.name
1257
1257
  }, null, 8, ["content"]),
1258
- a("div", Ml, [
1258
+ a("div", Vl, [
1259
1259
  s[0] || (s[0] = a("span", { class: "bili-user-info__uid-icon" }, null, -1)),
1260
- a("span", Vl, m(e.user.mid), 1)
1260
+ a("span", Ql, p(e.user.mid), 1)
1261
1261
  ])
1262
1262
  ])
1263
1263
  ]);
1264
1264
  };
1265
1265
  }
1266
- }), Qo = /* @__PURE__ */ L(Ql, [["__scopeId", "data-v-a22bf16f"]]), gt = /* @__PURE__ */ B({
1266
+ }), Fo = /* @__PURE__ */ L(Ml, [["__scopeId", "data-v-a22bf16f"]]), gt = /* @__PURE__ */ B({
1267
1267
  __name: "PluginMenuItem",
1268
1268
  props: {
1269
1269
  menu: {}
@@ -1276,7 +1276,7 @@ const Po = {
1276
1276
  index: e.menu.path
1277
1277
  }, {
1278
1278
  title: d(() => [
1279
- A(m(e.menu.title), 1)
1279
+ A(p(e.menu.title), 1)
1280
1280
  ]),
1281
1281
  _: 1
1282
1282
  }, 8, ["index"])) : (r(), k(i, {
@@ -1284,10 +1284,10 @@ const Po = {
1284
1284
  index: e.menu.path
1285
1285
  }, {
1286
1286
  title: d(() => [
1287
- A(m(e.menu.title), 1)
1287
+ A(p(e.menu.title), 1)
1288
1288
  ]),
1289
1289
  default: d(() => [
1290
- (r(!0), f(R, null, O(e.menu.children, (n) => (r(), k(gt, {
1290
+ (r(!0), g(R, null, j(e.menu.children, (n) => (r(), k(gt, {
1291
1291
  key: n.path,
1292
1292
  menu: n
1293
1293
  }, null, 8, ["menu"]))), 128))
@@ -1296,7 +1296,7 @@ const Po = {
1296
1296
  }, 8, ["index"]));
1297
1297
  };
1298
1298
  }
1299
- }), Hl = /* @__PURE__ */ B({
1299
+ }), Tl = /* @__PURE__ */ B({
1300
1300
  __name: "PluginMenus",
1301
1301
  props: {
1302
1302
  menus: {},
@@ -1304,14 +1304,14 @@ const Po = {
1304
1304
  },
1305
1305
  emits: ["handleSelect"],
1306
1306
  setup(e, { emit: l }) {
1307
- const s = e, t = (_, w = /* @__PURE__ */ new Map()) => (_.forEach((g) => {
1308
- w.set(g.path, g), g.children && g.children.length > 0 && t(g.children, w);
1307
+ const s = e, t = (_, w = /* @__PURE__ */ new Map()) => (_.forEach((f) => {
1308
+ w.set(f.path, f), f.children && f.children.length > 0 && t(f.children, w);
1309
1309
  }), w), i = C(() => t(s.menus)), n = l, o = (_) => {
1310
1310
  const w = i.value.get(_);
1311
1311
  w && n("handleSelect", w);
1312
- }, c = Oe(), u = C(() => !!c["left-item"] || !!c.left), p = C(() => !!c["right-item"] || !!c.right);
1312
+ }, c = je(), u = C(() => !!c["left-item"] || !!c.left), m = C(() => !!c["right-item"] || !!c.right);
1313
1313
  return (_, w) => {
1314
- const g = Xe, b = ns;
1314
+ const f = Xe, b = ns;
1315
1315
  return r(), k(b, {
1316
1316
  "default-active": e.activeIndex,
1317
1317
  class: "plugin-menus",
@@ -1321,7 +1321,7 @@ const Po = {
1321
1321
  }, {
1322
1322
  default: d(() => [
1323
1323
  u.value ? I(_.$slots, "left-item", { key: 0 }, () => [
1324
- v(g, {
1324
+ v(f, {
1325
1325
  index: "-left",
1326
1326
  style: { "margin-right": "auto" }
1327
1327
  }, {
@@ -1331,13 +1331,13 @@ const Po = {
1331
1331
  _: 3
1332
1332
  })
1333
1333
  ], !0) : $("", !0),
1334
- (r(!0), f(R, null, O(e.menus, (x) => (r(), k(gt, {
1334
+ (r(!0), g(R, null, j(e.menus, (x) => (r(), k(gt, {
1335
1335
  key: x.path,
1336
1336
  menu: x,
1337
1337
  index: String(x.path)
1338
1338
  }, null, 8, ["menu", "index"]))), 128)),
1339
- p.value ? I(_.$slots, "right-item", { key: 1 }, () => [
1340
- v(g, {
1339
+ m.value ? I(_.$slots, "right-item", { key: 1 }, () => [
1340
+ v(f, {
1341
1341
  index: "-right",
1342
1342
  style: { "margin-left": "auto" }
1343
1343
  }, {
@@ -1352,7 +1352,7 @@ const Po = {
1352
1352
  }, 8, ["default-active"]);
1353
1353
  };
1354
1354
  }
1355
- }), Tl = /* @__PURE__ */ L(Hl, [["__scopeId", "data-v-6dfc7821"]]);
1355
+ }), Hl = /* @__PURE__ */ L(Tl, [["__scopeId", "data-v-6dfc7821"]]);
1356
1356
  new Lt();
1357
1357
  var Se = /* @__PURE__ */ new Map(), ft = async (e, l) => {
1358
1358
  const s = await window.toolkitApi.bili.createBiliClient({
@@ -1403,10 +1403,10 @@ function _t(e, l = []) {
1403
1403
  async function ql(e, l) {
1404
1404
  return _t(await Rl.reset(e, l));
1405
1405
  }
1406
- const Ol = { class: "plugin-page-header" }, jl = { class: "plugin-page-header__user-container" }, Nl = { class: "plugin-page-header__user-container__info" }, Zl = ["src"], Wl = ["src"], Gl = {
1406
+ const jl = { class: "plugin-page-header" }, Ol = { class: "plugin-page-header__user-container" }, Nl = { class: "plugin-page-header__user-container__info" }, Zl = ["src"], Wl = ["src"], Gl = {
1407
1407
  key: 1,
1408
1408
  class: "plugin-page-header__user-container__info"
1409
- }, Ho = /* @__PURE__ */ B({
1409
+ }, Uo = /* @__PURE__ */ B({
1410
1410
  __name: "PluginPageHeader",
1411
1411
  props: {
1412
1412
  menus: {},
@@ -1414,33 +1414,33 @@ const Ol = { class: "plugin-page-header" }, jl = { class: "plugin-page-header__u
1414
1414
  },
1415
1415
  emits: ["handleMenuSelect"],
1416
1416
  setup(e, { emit: l }) {
1417
- const s = at(), { user: t } = Mt(s), i = C(() => t.value?.face || Be), n = C(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": rt, "../../assets/images/user_level/level_2.svg": ut, "../../assets/images/user_level/level_3.svg": dt, "../../assets/images/user_level/level_4.svg": vt, "../../assets/images/user_level/level_5.svg": pt, "../../assets/images/user_level/level_6.svg": mt }))[`../../assets/images/user_level/level_${t.value?.level ?? 0}.svg`], import.meta.url).href), o = async () => {
1418
- const _ = await H.user.switchUser(!0);
1417
+ const s = at(), { user: t } = Vt(s), i = C(() => t.value?.face || Be), n = C(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": rt, "../../assets/images/user_level/level_2.svg": ut, "../../assets/images/user_level/level_3.svg": dt, "../../assets/images/user_level/level_4.svg": vt, "../../assets/images/user_level/level_5.svg": pt, "../../assets/images/user_level/level_6.svg": mt }))[`../../assets/images/user_level/level_${t.value?.level ?? 0}.svg`], import.meta.url).href), o = async () => {
1418
+ const _ = await T.user.switchUser(!0);
1419
1419
  s.setUser(_), await ql(_);
1420
1420
  }, c = () => {
1421
1421
  s.deleteUser();
1422
- }, u = l, p = (_) => {
1422
+ }, u = l, m = (_) => {
1423
1423
  _ && u("handleMenuSelect", _);
1424
1424
  };
1425
1425
  return ne(async () => {
1426
1426
  if (t.value)
1427
1427
  try {
1428
- const _ = await H.user.getMyInfoByCookie(t.value.userCookie);
1428
+ const _ = await T.user.getMyInfoByCookie(t.value.userCookie);
1429
1429
  s.setUser(_);
1430
1430
  } catch {
1431
1431
  ie("当前用户 cookie 已失效"), s.deleteUser();
1432
1432
  }
1433
1433
  }), (_, w) => {
1434
- const g = Tl, b = ae, x = zl, M = as, E = cs, D = is, V = os;
1435
- return r(), f("div", Ol, [
1436
- v(g, {
1434
+ const f = Hl, b = ae, x = zl, V = as, E = cs, D = is, Q = os;
1435
+ return r(), g("div", jl, [
1436
+ v(f, {
1437
1437
  class: "plugin-page-header__menus",
1438
1438
  "active-index": e.activeIndex,
1439
1439
  menus: e.menus,
1440
- onHandleSelect: p
1440
+ onHandleSelect: m
1441
1441
  }, null, 8, ["active-index", "menus"]),
1442
- a("div", jl, [
1443
- h(t) ? (r(), k(M, {
1442
+ a("div", Ol, [
1443
+ h(t) ? (r(), k(V, {
1444
1444
  key: 0,
1445
1445
  placement: "bottom-end",
1446
1446
  width: "auto",
@@ -1468,7 +1468,7 @@ const Ol = { class: "plugin-page-header" }, jl = { class: "plugin-page-header__u
1468
1468
  v(x, { user: h(t) }, null, 8, ["user"])
1469
1469
  ]),
1470
1470
  _: 1
1471
- })) : (r(), f("div", Gl, [...w[0] || (w[0] = [
1471
+ })) : (r(), g("div", Gl, [...w[0] || (w[0] = [
1472
1472
  a("img", {
1473
1473
  class: "plugin-page-header__user-container__info__face",
1474
1474
  alt: "",
@@ -1476,7 +1476,7 @@ const Ol = { class: "plugin-page-header" }, jl = { class: "plugin-page-header__u
1476
1476
  }, null, -1),
1477
1477
  a("span", { class: "plugin-page-header__user-container__info__name" }, "未登录", -1)
1478
1478
  ])])),
1479
- v(V, {
1479
+ v(Q, {
1480
1480
  placement: "bottom-end",
1481
1481
  trigger: "click",
1482
1482
  size: "default"
@@ -1514,11 +1514,11 @@ const Ol = { class: "plugin-page-header" }, jl = { class: "plugin-page-header__u
1514
1514
  }
1515
1515
  }), Jl = {}, Kl = { class: "plugin-page-container" };
1516
1516
  function Yl(e, l) {
1517
- return r(), f("div", Kl, [
1517
+ return r(), g("div", Kl, [
1518
1518
  I(e.$slots, "default", {}, void 0, !0)
1519
1519
  ]);
1520
1520
  }
1521
- const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392"]]), Xl = { class: "page-table__toolbar" }, en = { class: "page-table__actions" }, tn = /* @__PURE__ */ B({
1521
+ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392"]]), Xl = { class: "page-table__toolbar" }, en = { class: "page-table__actions" }, tn = /* @__PURE__ */ B({
1522
1522
  inheritAttrs: !1,
1523
1523
  __name: "PageTable",
1524
1524
  props: {
@@ -1539,19 +1539,19 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1539
1539
  class: t.class,
1540
1540
  style: t.style
1541
1541
  })), n = C(() => {
1542
- const { class: Q, style: j, ...de } = t;
1542
+ const { class: M, style: O, ...de } = t;
1543
1543
  return de;
1544
1544
  }), o = e, c = z(!1), u = C(() => o.pageParams ? o.pageParams : {
1545
1545
  pageNum: 1,
1546
1546
  pageSize: o.pageSizes[0]
1547
1547
  }), {
1548
- pageData: p,
1548
+ pageData: m,
1549
1549
  tableData: _,
1550
1550
  loading: w,
1551
- refresh: g,
1551
+ refresh: f,
1552
1552
  resetAndRefresh: b,
1553
1553
  resetPageAndRefresh: x,
1554
- handleSizeChange: M,
1554
+ handleSizeChange: V,
1555
1555
  handleCurrPageChange: E
1556
1556
  } = ot({
1557
1557
  fetchPage: o.fetchPage,
@@ -1561,20 +1561,20 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1561
1561
  onLoaded: () => {
1562
1562
  c.value = !0, S.value?.setScrollTop(0);
1563
1563
  }
1564
- }), D = s, V = () => {
1565
- D("search"), g();
1564
+ }), D = s, Q = () => {
1565
+ D("search"), f();
1566
1566
  }, F = async () => {
1567
1567
  D("reset"), await we(), await b();
1568
- }, { elementRef: P, height: y } = ys("tableWrapperRef"), S = K("tableRef"), U = C(() => o.tableHeight ? o.tableHeight : y.value), X = C(() => ({
1568
+ }, { elementRef: P, height: y } = ys("tableWrapperRef"), S = Y("tableRef"), U = C(() => o.tableHeight ? o.tableHeight : y.value), ee = C(() => ({
1569
1569
  search: o.actions.includes("search"),
1570
1570
  resetQuery: o.actions.includes("resetQuery")
1571
- })), ee = C(() => o.pageSizes && o.pageSizes.length > 1 ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), ue = !!Oe().query;
1571
+ })), te = C(() => o.pageSizes && o.pageSizes.length > 1 ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), ue = !!je().query;
1572
1572
  return l({
1573
1573
  loading: w,
1574
1574
  tableRef: S,
1575
1575
  tableData: _,
1576
- pageData: p,
1577
- refresh: g,
1576
+ pageData: m,
1577
+ refresh: f,
1578
1578
  resetAndRefresh: b,
1579
1579
  resetPageAndRefresh: x,
1580
1580
  getSelectionRows: S.value?.getSelectionRows,
@@ -1582,31 +1582,31 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1582
1582
  setCurrentRow: S.value?.setCurrentRow,
1583
1583
  clearSelection: S.value?.clearSelection,
1584
1584
  scrollTo: S.value?.scrollTo
1585
- }), (Q, j) => {
1586
- const de = Z, kt = us, bt = et, Ct = rs, xt = tt, Et = Pe;
1587
- return W((r(), f("div", G({ class: "page-table" }, i.value), [
1585
+ }), (M, O) => {
1586
+ const de = Z, kt = us, bt = et, Ct = rs, xt = tt, Et = Ie;
1587
+ return G((r(), g("div", J({ class: "page-table" }, i.value), [
1588
1588
  a("div", Xl, [
1589
1589
  a("div", {
1590
- class: se(["page-table__query", ue ? "has-query" : ""])
1590
+ class: W(["page-table__query", ue ? "has-query" : ""])
1591
1591
  }, [
1592
- I(Q.$slots, "query", {}, void 0, !0),
1592
+ I(M.$slots, "query", {}, void 0, !0),
1593
1593
  a("div", en, [
1594
- I(Q.$slots, "actions", {}, void 0, !0),
1595
- X.value.search ? (r(), k(de, {
1594
+ I(M.$slots, "actions", {}, void 0, !0),
1595
+ ee.value.search ? (r(), k(de, {
1596
1596
  key: 0,
1597
1597
  type: "primary",
1598
- onClick: V
1598
+ onClick: Q
1599
1599
  }, {
1600
1600
  default: d(() => [
1601
- A(m(e.searchActionLabel), 1)
1601
+ A(p(e.searchActionLabel), 1)
1602
1602
  ]),
1603
1603
  _: 1
1604
1604
  })) : $("", !0),
1605
- X.value.resetQuery ? (r(), k(de, {
1605
+ ee.value.resetQuery ? (r(), k(de, {
1606
1606
  key: 1,
1607
1607
  onClick: F
1608
1608
  }, {
1609
- default: d(() => [...j[2] || (j[2] = [
1609
+ default: d(() => [...O[2] || (O[2] = [
1610
1610
  A("重置", -1)
1611
1611
  ])]),
1612
1612
  _: 1
@@ -1619,7 +1619,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1619
1619
  ref: P,
1620
1620
  class: "page-table__table-wrapper"
1621
1621
  }, [
1622
- c.value ? (r(), k(Ct, G({
1622
+ c.value ? (r(), k(Ct, J({
1623
1623
  key: 0,
1624
1624
  ref_key: "tableRef",
1625
1625
  ref: S
@@ -1632,7 +1632,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1632
1632
  "highlight-current-row": e.selectionMode === "single"
1633
1633
  }), {
1634
1634
  empty: d(() => [
1635
- I(Q.$slots, "empty", {}, () => [
1635
+ I(M.$slots, "empty", {}, () => [
1636
1636
  v(bt, { description: "没有数据" })
1637
1637
  ], !0)
1638
1638
  ]),
@@ -1642,29 +1642,29 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1642
1642
  type: "selection",
1643
1643
  width: "55"
1644
1644
  })) : $("", !0),
1645
- I(Q.$slots, "default", {}, void 0, !0)
1645
+ I(M.$slots, "default", {}, void 0, !0)
1646
1646
  ]),
1647
1647
  _: 3
1648
1648
  }, 16, ["data", "height", "table-layout", "highlight-current-row"])) : $("", !0)
1649
1649
  ], 512),
1650
1650
  v(xt, {
1651
1651
  class: "page-table__pagination",
1652
- "current-page": h(p).pageNum,
1653
- "onUpdate:currentPage": j[0] || (j[0] = (Ae) => h(p).pageNum = Ae),
1654
- "page-size": h(p).pageSize,
1655
- "onUpdate:pageSize": j[1] || (j[1] = (Ae) => h(p).pageSize = Ae),
1652
+ "current-page": h(m).pageNum,
1653
+ "onUpdate:currentPage": O[0] || (O[0] = (Ae) => h(m).pageNum = Ae),
1654
+ "page-size": h(m).pageSize,
1655
+ "onUpdate:pageSize": O[1] || (O[1] = (Ae) => h(m).pageSize = Ae),
1656
1656
  "page-sizes": e.pageSizes,
1657
- total: h(p).total,
1658
- layout: ee.value,
1657
+ total: h(m).total,
1658
+ layout: te.value,
1659
1659
  onCurrentChange: h(E),
1660
- onSizeChange: h(M)
1660
+ onSizeChange: h(V)
1661
1661
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout", "onCurrentChange", "onSizeChange"])
1662
1662
  ], 16)), [
1663
1663
  [Et, h(w)]
1664
1664
  ]);
1665
1665
  };
1666
1666
  }
1667
- }), Lo = /* @__PURE__ */ L(tn, [["__scopeId", "data-v-293a15d1"]]), Ue = "delete-confirm-dialog:delete-source-file", sn = /* @__PURE__ */ B({
1667
+ }), jo = /* @__PURE__ */ L(tn, [["__scopeId", "data-v-293a15d1"]]), qe = "delete-confirm-dialog:delete-source-file", sn = /* @__PURE__ */ B({
1668
1668
  __name: "DeleteConfirmDialog",
1669
1669
  props: {
1670
1670
  visible: { type: Boolean },
@@ -1675,9 +1675,9 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1675
1675
  },
1676
1676
  emits: ["confirm", "cancel"],
1677
1677
  setup(e, { emit: l }) {
1678
- const s = l, t = z(localStorage.getItem(Ue) === "true");
1678
+ const s = l, t = z(localStorage.getItem(qe) === "true");
1679
1679
  function i() {
1680
- localStorage.setItem(Ue, String(t.value));
1680
+ localStorage.setItem(qe, String(t.value));
1681
1681
  }
1682
1682
  function n() {
1683
1683
  s("confirm", t.value);
@@ -1686,7 +1686,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1686
1686
  s("cancel");
1687
1687
  }
1688
1688
  return (c, u) => {
1689
- const p = ds, _ = Z, w = re;
1689
+ const m = ds, _ = Z, w = re;
1690
1690
  return r(), k(w, {
1691
1691
  "model-value": e.visible,
1692
1692
  title: e.title,
@@ -1698,7 +1698,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1698
1698
  footer: d(() => [
1699
1699
  v(_, { onClick: o }, {
1700
1700
  default: d(() => [
1701
- A(m(e.cancelButtonText), 1)
1701
+ A(p(e.cancelButtonText), 1)
1702
1702
  ]),
1703
1703
  _: 1
1704
1704
  }),
@@ -1707,16 +1707,16 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1707
1707
  onClick: n
1708
1708
  }, {
1709
1709
  default: d(() => [
1710
- A(m(e.confirmButtonText), 1)
1710
+ A(p(e.confirmButtonText), 1)
1711
1711
  ]),
1712
1712
  _: 1
1713
1713
  })
1714
1714
  ]),
1715
1715
  default: d(() => [
1716
- a("div", null, m(e.message), 1),
1717
- v(p, {
1716
+ a("div", null, p(e.message), 1),
1717
+ v(m, {
1718
1718
  modelValue: t.value,
1719
- "onUpdate:modelValue": u[0] || (u[0] = (g) => t.value = g),
1719
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => t.value = f),
1720
1720
  style: { "margin-top": "16px" },
1721
1721
  onChange: i
1722
1722
  }, {
@@ -1764,7 +1764,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1764
1764
  size: "small"
1765
1765
  }, {
1766
1766
  default: d(() => [
1767
- A(m(t.value), 1)
1767
+ A(p(t.value), 1)
1768
1768
  ]),
1769
1769
  _: 1
1770
1770
  }, 8, ["type"]);
@@ -1799,7 +1799,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1799
1799
  }, null, 8, ["percentage", "status", "striped", "striped-flow"]);
1800
1800
  };
1801
1801
  }
1802
- }), $e = (e) => Kt(e / 1024), ln = (e) => e === 0 ? "0 KB/s" : e < 1024 ? e.toFixed(1) + " KB/s" : (e / 1024).toFixed(1) + " MB/s", qe = (e) => e <= 1e4 ? String(e) : (e / 1e4).toFixed(1) + "万", nn = { class: "detail-item" }, an = { class: "value" }, on = { class: "detail-item" }, cn = { class: "value" }, rn = { class: "detail-item" }, un = { class: "value" }, dn = /* @__PURE__ */ B({
1802
+ }), $e = (e) => Kt(e / 1024), ln = (e) => e === 0 ? "0 KB/s" : e < 1024 ? e.toFixed(1) + " KB/s" : (e / 1024).toFixed(1) + " MB/s", ze = (e) => e <= 1e4 ? String(e) : e < 1e8 ? (e / 1e4).toFixed(1) + "万" : (e / 1e8).toFixed(1) + "亿", nn = { class: "detail-item" }, an = { class: "value" }, on = { class: "detail-item" }, cn = { class: "value" }, rn = { class: "detail-item" }, un = { class: "value" }, dn = /* @__PURE__ */ B({
1803
1803
  __name: "DownloadProgressDetails",
1804
1804
  props: {
1805
1805
  task: {},
@@ -1807,29 +1807,29 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1807
1807
  isCompact: { type: Boolean }
1808
1808
  },
1809
1809
  setup(e) {
1810
- return (l, s) => (r(), f("div", {
1810
+ return (l, s) => (r(), g("div", {
1811
1811
  class: "download-progress-details",
1812
1812
  style: xe({ gap: e.isCompact ? "10px" : "20px" })
1813
1813
  }, [
1814
- e.task.progress ? (r(), f(R, { key: 0 }, [
1814
+ e.task.progress ? (r(), g(R, { key: 0 }, [
1815
1815
  a("div", nn, [
1816
1816
  s[0] || (s[0] = a("span", { class: "label" }, "速度:", -1)),
1817
- a("span", an, m(h(ln)(e.task.progress.speedKBps)), 1)
1817
+ a("span", an, p(h(ln)(e.task.progress.speedKBps)), 1)
1818
1818
  ]),
1819
1819
  a("div", on, [
1820
1820
  s[2] || (s[2] = a("span", { class: "label" }, "文件:", -1)),
1821
1821
  a("div", cn, [
1822
- a("span", null, m(e.task.progress?.currentItem), 1),
1822
+ a("span", null, p(e.task.progress?.currentItem), 1),
1823
1823
  s[1] || (s[1] = a("span", null, " / ", -1)),
1824
- a("span", null, m(e.resourceCount), 1)
1824
+ a("span", null, p(e.resourceCount), 1)
1825
1825
  ])
1826
1826
  ]),
1827
1827
  a("div", rn, [
1828
1828
  s[4] || (s[4] = a("span", { class: "label" }, "已完成:", -1)),
1829
1829
  a("div", un, [
1830
- a("span", null, m(h($e)(e.task.progress.completedBytes)), 1),
1830
+ a("span", null, p(h($e)(e.task.progress.completedBytes)), 1),
1831
1831
  s[3] || (s[3] = a("span", null, " / ", -1)),
1832
- a("span", null, m(h($e)(e.task.progress.totalBytes)), 1)
1832
+ a("span", null, p(h($e)(e.task.progress.totalBytes)), 1)
1833
1833
  ])
1834
1834
  ])
1835
1835
  ], 64)) : $("", !0)
@@ -1848,18 +1848,18 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1848
1848
  setup(e) {
1849
1849
  return (l, s) => {
1850
1850
  const t = N;
1851
- return r(), f("div", vn, [
1851
+ return r(), g("div", vn, [
1852
1852
  s[0] || (s[0] = a("span", { class: "hint" }, "总共:", -1)),
1853
- e.task.result ? (r(), f("span", pn, [
1854
- a("span", null, m(h($e)(e.task.result.totalBytes)), 1)
1853
+ e.task.result ? (r(), g("span", pn, [
1854
+ a("span", null, p(h($e)(e.task.result.totalBytes)), 1)
1855
1855
  ])) : $("", !0),
1856
1856
  a("span", mn, [
1857
1857
  v(t, { icon: "video" }),
1858
- a("span", null, m(e.videoCount) + " 个视频", 1)
1858
+ a("span", null, p(e.videoCount) + " 个视频", 1)
1859
1859
  ]),
1860
1860
  a("span", gn, [
1861
1861
  v(t, { icon: "file" }),
1862
- a("span", null, m(e.resourceCount) + " 个文件", 1)
1862
+ a("span", null, p(e.resourceCount) + " 个文件", 1)
1863
1863
  ])
1864
1864
  ]);
1865
1865
  };
@@ -1872,7 +1872,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1872
1872
  },
1873
1873
  setup(e) {
1874
1874
  const l = e, s = {
1875
- like: "heart",
1875
+ like: "thumb-up",
1876
1876
  coin: "money-cny-circle",
1877
1877
  favorite: "star",
1878
1878
  share: "share-forward",
@@ -1882,26 +1882,26 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1882
1882
  for (const n of l.fields)
1883
1883
  i.push({
1884
1884
  icon: s[n],
1885
- value: l.stat[n]
1885
+ value: ze(l.stat[n])
1886
1886
  });
1887
1887
  return i;
1888
1888
  });
1889
1889
  return (i, n) => {
1890
1890
  const o = N;
1891
- return r(), f("div", _n, [
1892
- (r(!0), f(R, null, O(t.value, (c) => (r(), f("div", {
1891
+ return r(), g("div", _n, [
1892
+ (r(!0), g(R, null, j(t.value, (c) => (r(), g("div", {
1893
1893
  class: "stat-item",
1894
1894
  key: c.icon
1895
1895
  }, [
1896
1896
  v(o, {
1897
1897
  icon: c.icon
1898
1898
  }, null, 8, ["icon"]),
1899
- a("span", hn, m(c.value), 1)
1899
+ a("span", hn, p(c.value), 1)
1900
1900
  ]))), 128))
1901
1901
  ]);
1902
1902
  };
1903
1903
  }
1904
- }), yn = /* @__PURE__ */ L(wn, [["__scopeId", "data-v-503952a4"]]), An = /* @__PURE__ */ B({
1904
+ }), yn = /* @__PURE__ */ L(wn, [["__scopeId", "data-v-f75c0017"]]), An = /* @__PURE__ */ B({
1905
1905
  __name: "DownloadResourceTag",
1906
1906
  props: {
1907
1907
  type: {}
@@ -1927,7 +1927,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1927
1927
  icon: t[e.type]
1928
1928
  }, {
1929
1929
  default: d(() => [
1930
- A(m(s.value), 1)
1930
+ A(p(s.value), 1)
1931
1931
  ]),
1932
1932
  _: 1
1933
1933
  }, 8, ["icon"])
@@ -1945,14 +1945,14 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1945
1945
  const l = e, s = C(() => l.part.resources.find((n) => n.type === "audio")?.source.audioQuality), t = C(() => l.part.resources.find((n) => n.type === "video")?.source.videoQuality), i = C(() => l.part.resources.find((n) => n.type === "video")?.source.videoCodec);
1946
1946
  return (n, o) => {
1947
1947
  const c = ae, u = vs;
1948
- return r(), f("div", kn, [
1948
+ return r(), g("div", kn, [
1949
1949
  a("div", bn, [
1950
- a("div", null, m(e.part.snapshot.page) + "P", 1),
1950
+ a("div", null, p(e.part.snapshot.page) + "P", 1),
1951
1951
  v(c, {
1952
1952
  content: e.part.snapshot.part
1953
1953
  }, {
1954
1954
  default: d(() => [
1955
- A(m(e.part.snapshot.part), 1)
1955
+ A(p(e.part.snapshot.part), 1)
1956
1956
  ]),
1957
1957
  _: 1
1958
1958
  }, 8, ["content"])
@@ -1964,7 +1964,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1964
1964
  effect: "plain"
1965
1965
  }, {
1966
1966
  default: d(() => [
1967
- A(m(h(Rt)[s.value]), 1)
1967
+ A(p(h(Rt)[s.value]), 1)
1968
1968
  ]),
1969
1969
  _: 1
1970
1970
  })) : $("", !0),
@@ -1974,7 +1974,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1974
1974
  effect: "plain"
1975
1975
  }, {
1976
1976
  default: d(() => [
1977
- A(m(h(Ft)[t.value]), 1)
1977
+ A(p(h(Ft)[t.value]), 1)
1978
1978
  ]),
1979
1979
  _: 1
1980
1980
  })) : $("", !0),
@@ -1984,19 +1984,19 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
1984
1984
  effect: "plain"
1985
1985
  }, {
1986
1986
  default: d(() => [
1987
- A(m(h(Ut)[i.value]), 1)
1987
+ A(p(h(Ut)[i.value]), 1)
1988
1988
  ]),
1989
1989
  _: 1
1990
1990
  })) : $("", !0),
1991
- a("span", null, m(h(De)(e.part.snapshot.duration)), 1)
1991
+ a("span", null, p(h(Pe)(e.part.snapshot.duration)), 1)
1992
1992
  ])
1993
1993
  ]);
1994
1994
  };
1995
1995
  }
1996
1996
  }), En = /* @__PURE__ */ L(xn, [["__scopeId", "data-v-84c28695"]]), Bn = (e) => {
1997
- const l = qt(e.tid), s = Ot(e.tid_v2);
1997
+ const l = qt(e.tid), s = jt(e.tid_v2);
1998
1998
  return s ? s.subZoneName ? `${s.mainZoneName} > ${s.subZoneName}` : s.mainZoneName : l ? l.subZoneName ? `${l.mainZoneName} > ${l.subZoneName}` : l.mainZoneName : "";
1999
- }, Sn = { class: "download-video-card" }, $n = { class: "info-row" }, zn = { class: "info-left" }, Dn = { class: "cover-image" }, Pn = { class: "cover-placeholder" }, In = { class: "download-cover-stats" }, Mn = { class: "download-cover-stats__duration" }, Vn = { class: "info-right" }, Qn = { class: "info-row" }, Hn = { class: "info-row" }, Tn = { class: "user-info" }, Ln = ["src"], Rn = { class: "user-name" }, Fn = { class: "zone" }, Un = { class: "pubdate" }, qn = { class: "info-row stats" }, On = { class: "bvid" }, jn = { class: "info-row" }, Nn = { class: "part-list" }, Zn = /* @__PURE__ */ B({
1999
+ }, Sn = { class: "download-video-card" }, $n = { class: "info-row" }, zn = { class: "info-left" }, Dn = { class: "cover-image" }, Pn = { class: "cover-placeholder" }, In = { class: "download-cover-stats" }, Vn = { class: "download-cover-stats__duration" }, Qn = { class: "info-right" }, Mn = { class: "info-row" }, Tn = { class: "info-row" }, Hn = { class: "user-info" }, Ln = ["src"], Rn = { class: "user-name" }, Fn = { class: "zone" }, Un = { class: "pubdate" }, qn = { class: "info-row stats" }, jn = { class: "bvid" }, On = { class: "info-row" }, Nn = { class: "part-list" }, Zn = /* @__PURE__ */ B({
2000
2000
  __name: "DownloadVideoCard",
2001
2001
  props: {
2002
2002
  video: {}
@@ -2010,8 +2010,8 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2010
2010
  window.open(`https://www.bilibili.com/video/${t.value.bvid}`);
2011
2011
  }, o = l;
2012
2012
  return (c, u) => {
2013
- const p = Ie, _ = lt, w = ct, g = ae;
2014
- return r(), f("div", Sn, [
2013
+ const m = Ve, _ = lt, w = ct, f = ae;
2014
+ return r(), g("div", Sn, [
2015
2015
  a("div", $n, [
2016
2016
  a("div", zn, [
2017
2017
  a("div", {
@@ -2025,7 +2025,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2025
2025
  }, {
2026
2026
  error: d(() => [
2027
2027
  a("div", Pn, [
2028
- v(p, null, {
2028
+ v(m, null, {
2029
2029
  default: d(() => [
2030
2030
  v(h(it))
2031
2031
  ]),
@@ -2038,56 +2038,56 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2038
2038
  a("div", In, [
2039
2039
  v(w, { icon: "video" }, {
2040
2040
  default: d(() => [
2041
- A(m(h(qe)(t.value.stat.view)), 1)
2041
+ A(p(h(ze)(t.value.stat.view)), 1)
2042
2042
  ]),
2043
2043
  _: 1
2044
2044
  }),
2045
2045
  v(w, { icon: "keyboard" }, {
2046
2046
  default: d(() => [
2047
- A(m(h(qe)(t.value.stat.danmaku)), 1)
2047
+ A(p(h(ze)(t.value.stat.danmaku)), 1)
2048
2048
  ]),
2049
2049
  _: 1
2050
2050
  }),
2051
2051
  u[0] || (u[0] = a("span", null, null, -1)),
2052
2052
  u[1] || (u[1] = a("span", null, null, -1)),
2053
- a("span", Mn, m(h(De)(t.value.duration)), 1)
2053
+ a("span", Vn, p(h(Pe)(t.value.duration)), 1)
2054
2054
  ])
2055
2055
  ])
2056
2056
  ])
2057
2057
  ]),
2058
- a("div", Vn, [
2059
- a("div", Qn, [
2060
- v(g, {
2058
+ a("div", Qn, [
2059
+ a("div", Mn, [
2060
+ v(f, {
2061
2061
  class: "title",
2062
2062
  content: t.value.title
2063
2063
  }, {
2064
2064
  default: d(() => [
2065
- A(m(t.value.title), 1)
2065
+ A(p(t.value.title), 1)
2066
2066
  ]),
2067
2067
  _: 1
2068
2068
  }, 8, ["content"])
2069
2069
  ]),
2070
- a("div", Hn, [
2071
- a("div", Tn, [
2070
+ a("div", Tn, [
2071
+ a("div", Hn, [
2072
2072
  a("img", {
2073
2073
  class: "user-face",
2074
2074
  src: t.value.owner.face,
2075
2075
  alt: "face"
2076
2076
  }, null, 8, Ln),
2077
- a("div", Rn, m(t.value.owner.name), 1)
2077
+ a("div", Rn, p(t.value.owner.name), 1)
2078
2078
  ]),
2079
- a("div", Fn, m(h(Bn)(t.value)), 1),
2080
- a("div", Un, m(h(fe)(t.value.pubdate)), 1)
2079
+ a("div", Fn, p(h(Bn)(t.value)), 1),
2080
+ a("div", Un, p(h(fe)(t.value.pubdate)), 1)
2081
2081
  ]),
2082
2082
  a("div", qn, [
2083
- a("div", On, m(t.value.bvid), 1),
2083
+ a("div", jn, p(t.value.bvid), 1),
2084
2084
  v(yn, {
2085
2085
  stat: t.value.stat
2086
2086
  }, null, 8, ["stat"])
2087
2087
  ]),
2088
- a("div", jn, [
2088
+ a("div", On, [
2089
2089
  u[2] || (u[2] = a("div", null, "下载的资源:", -1)),
2090
- (r(!0), f(R, null, O(i.value, (b) => (r(), k(An, {
2090
+ (r(!0), g(R, null, j(i.value, (b) => (r(), k(An, {
2091
2091
  key: b,
2092
2092
  type: b
2093
2093
  }, null, 8, ["type"]))), 128))
@@ -2096,10 +2096,10 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2096
2096
  ]),
2097
2097
  a("div", Nn, [
2098
2098
  u[3] || (u[3] = a("div", { class: "header" }, "视频分P:", -1)),
2099
- (r(!0), f(R, null, O(e.video.parts, (b, x) => (r(), k(En, {
2099
+ (r(!0), g(R, null, j(e.video.parts, (b, x) => (r(), k(En, {
2100
2100
  key: b.snapshot.cid,
2101
2101
  part: b,
2102
- onClick: (M) => o("open-folder", x)
2102
+ onClick: (V) => o("open-folder", x)
2103
2103
  }, null, 8, ["part", "onClick"]))), 128))
2104
2104
  ])
2105
2105
  ]);
@@ -2110,7 +2110,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2110
2110
  class: "dialog-content"
2111
2111
  }, Kn = { key: 1 }, Yn = { class: "video-list-container" }, Xn = { class: "header" }, ea = /* @__PURE__ */ B({
2112
2112
  __name: "DownloadDetailsDialog",
2113
- props: /* @__PURE__ */ J({
2113
+ props: /* @__PURE__ */ K({
2114
2114
  task: {}
2115
2115
  }, {
2116
2116
  modelValue: { required: !0, type: Boolean },
@@ -2118,7 +2118,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2118
2118
  }),
2119
2119
  emits: ["update:modelValue"],
2120
2120
  setup(e) {
2121
- const l = e, s = he(e, "modelValue"), t = C(() => l.task?.videos.reduce((c, u) => c + u.parts.length, 0) ?? 0), i = C(() => l.task?.videos.reduce((c, u) => c + u.parts.reduce((p, _) => p + _.resources.length, 0), 0) ?? 0), n = K("refVideoList");
2121
+ const l = e, s = he(e, "modelValue"), t = C(() => l.task?.videos.reduce((c, u) => c + u.parts.length, 0) ?? 0), i = C(() => l.task?.videos.reduce((c, u) => c + u.parts.reduce((m, _) => m + _.resources.length, 0), 0) ?? 0), n = Y("refVideoList");
2122
2122
  le(
2123
2123
  () => s.value,
2124
2124
  (c) => {
@@ -2128,15 +2128,15 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2128
2128
  }
2129
2129
  );
2130
2130
  const o = async (c, u) => {
2131
- l.task && await H.download.openFolder(l.task.id, c, u);
2131
+ l.task && await T.download.openFolder(l.task.id, c, u);
2132
2132
  };
2133
2133
  return (c, u) => {
2134
- const p = ms, _ = ps, w = re;
2135
- return r(), f("div", Gn, [
2134
+ const m = ms, _ = ps, w = re;
2135
+ return r(), g("div", Gn, [
2136
2136
  v(w, {
2137
2137
  title: "任务详情",
2138
2138
  modelValue: s.value,
2139
- "onUpdate:modelValue": u[0] || (u[0] = (g) => s.value = g),
2139
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => s.value = f),
2140
2140
  width: "80%",
2141
2141
  style: { "max-height": "88vh" },
2142
2142
  "close-on-click-modal": !0,
@@ -2148,52 +2148,52 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2148
2148
  a("div", { class: "dialog-footer" }, null, -1)
2149
2149
  ])]),
2150
2150
  default: d(() => [
2151
- e.task ? (r(), f("div", Jn, [
2151
+ e.task ? (r(), g("div", Jn, [
2152
2152
  v(_, {
2153
2153
  border: "",
2154
2154
  column: 2
2155
2155
  }, {
2156
2156
  default: d(() => [
2157
- v(p, { label: "任务 ID" }, {
2157
+ v(m, { label: "任务 ID" }, {
2158
2158
  default: d(() => [
2159
- A(m(e.task.id), 1)
2159
+ A(p(e.task.id), 1)
2160
2160
  ]),
2161
2161
  _: 1
2162
2162
  }),
2163
- v(p, { label: "任务类型" }, {
2163
+ v(m, { label: "任务类型" }, {
2164
2164
  default: d(() => [
2165
- A(m(e.task.title), 1)
2165
+ A(p(e.task.title), 1)
2166
2166
  ]),
2167
2167
  _: 1
2168
2168
  }),
2169
- v(p, { label: "创建时间" }, {
2169
+ v(m, { label: "创建时间" }, {
2170
2170
  default: d(() => [
2171
- A(m(h(fe)(e.task.createdAt)), 1)
2171
+ A(p(h(fe)(e.task.createdAt)), 1)
2172
2172
  ]),
2173
2173
  _: 1
2174
2174
  }),
2175
- v(p, { label: "更新时间" }, {
2175
+ v(m, { label: "更新时间" }, {
2176
2176
  default: d(() => [
2177
- A(m(e.task.updatedAt ? h(fe)(e.task.updatedAt) : "-"), 1)
2177
+ A(p(e.task.updatedAt ? h(fe)(e.task.updatedAt) : "-"), 1)
2178
2178
  ]),
2179
2179
  _: 1
2180
2180
  }),
2181
- v(p, { label: "任务状态" }, {
2181
+ v(m, { label: "任务状态" }, {
2182
2182
  default: d(() => [
2183
2183
  v(ht, { task: e.task }, null, 8, ["task"])
2184
2184
  ]),
2185
2185
  _: 1
2186
2186
  }),
2187
- v(p, { label: "任务进度" }, {
2187
+ v(m, { label: "任务进度" }, {
2188
2188
  default: d(() => [
2189
2189
  e.task.progress ? (r(), k(wt, {
2190
2190
  key: 0,
2191
2191
  task: e.task
2192
- }, null, 8, ["task"])) : (r(), f("span", Kn, "-"))
2192
+ }, null, 8, ["task"])) : (r(), g("span", Kn, "-"))
2193
2193
  ]),
2194
2194
  _: 1
2195
2195
  }),
2196
- e.task.progress ? (r(), k(p, {
2196
+ e.task.progress ? (r(), k(m, {
2197
2197
  key: 0,
2198
2198
  label: "进度详情",
2199
2199
  span: 2
@@ -2206,7 +2206,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2206
2206
  ]),
2207
2207
  _: 1
2208
2208
  })) : $("", !0),
2209
- e.task.result ? (r(), k(p, {
2209
+ e.task.result ? (r(), k(m, {
2210
2210
  key: 1,
2211
2211
  label: "任务结果",
2212
2212
  span: 2
@@ -2220,24 +2220,24 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2220
2220
  ]),
2221
2221
  _: 1
2222
2222
  })) : $("", !0),
2223
- e.task.error ? (r(), k(p, {
2223
+ e.task.error ? (r(), k(m, {
2224
2224
  key: 2,
2225
2225
  label: "错误信息",
2226
2226
  span: 2,
2227
2227
  style: { color: "var(--el-color-danger)" }
2228
2228
  }, {
2229
2229
  default: d(() => [
2230
- A(m(e.task.error), 1)
2230
+ A(p(e.task.error), 1)
2231
2231
  ]),
2232
2232
  _: 1
2233
2233
  })) : $("", !0),
2234
- v(p, { label: "操作用户" }, {
2234
+ v(m, { label: "操作用户" }, {
2235
2235
  default: d(() => [
2236
2236
  u[1] || (u[1] = a("div", {
2237
2237
  class: "uid-icon",
2238
2238
  style: { display: "inline-block" }
2239
2239
  }, null, -1)),
2240
- A(" " + m(e.task.userCookie.uid), 1)
2240
+ A(" " + p(e.task.userCookie.uid), 1)
2241
2241
  ]),
2242
2242
  _: 1
2243
2243
  }),
@@ -2252,15 +2252,15 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2252
2252
  ref_key: "refVideoList",
2253
2253
  ref: n
2254
2254
  }, [
2255
- (r(!0), f(R, null, O(e.task.videos, (g, b) => (r(), f("div", {
2255
+ (r(!0), g(R, null, j(e.task.videos, (f, b) => (r(), g("div", {
2256
2256
  class: "video-item",
2257
- key: g.snapshot.aid
2257
+ key: f.snapshot.aid
2258
2258
  }, [
2259
2259
  a("div", Xn, [
2260
- a("span", null, "#" + m(b + 1), 1)
2260
+ a("span", null, "#" + p(b + 1), 1)
2261
2261
  ]),
2262
2262
  v(Wn, {
2263
- video: g,
2263
+ video: f,
2264
2264
  onOpenFolder: (x) => o(b, x)
2265
2265
  }, null, 8, ["video", "onOpenFolder"])
2266
2266
  ]))), 128))
@@ -2281,16 +2281,16 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2281
2281
  emits: ["action"],
2282
2282
  setup(e) {
2283
2283
  const l = e, s = C(() => l.task.videos[0].snapshot.pic), t = C(() => l.task.videos.reduce((o, c) => o + c.parts.length, 0)), i = C(
2284
- () => l.task.videos.reduce((o, c) => o + c.parts.reduce((u, p) => u + p.resources.length, 0), 0)
2284
+ () => l.task.videos.reduce((o, c) => o + c.parts.reduce((u, m) => u + m.resources.length, 0), 0)
2285
2285
  ), n = C(
2286
- () => l.task.videos.reduce((o, c) => o + c.parts.reduce((u, p) => u + p.snapshot.duration, 0), 0)
2286
+ () => l.task.videos.reduce((o, c) => o + c.parts.reduce((u, m) => u + m.snapshot.duration, 0), 0)
2287
2287
  );
2288
2288
  return (o, c) => {
2289
- const u = Ie, p = lt, _ = ae, w = Z;
2290
- return r(), f("div", sa, [
2289
+ const u = Ve, m = lt, _ = ae, w = Z;
2290
+ return r(), g("div", sa, [
2291
2291
  a("div", la, [
2292
2292
  a("div", na, [
2293
- v(p, {
2293
+ v(m, {
2294
2294
  src: s.value,
2295
2295
  fit: "cover"
2296
2296
  }, {
@@ -2308,10 +2308,10 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2308
2308
  }, 8, ["src"]),
2309
2309
  a("div", oa, [
2310
2310
  c[6] || (c[6] = a("span", null, null, -1)),
2311
- a("span", ia, m(h(De)(n.value)), 1)
2311
+ a("span", ia, p(h(Pe)(n.value)), 1)
2312
2312
  ])
2313
2313
  ]),
2314
- a("span", ca, m(h(fe)(e.task.createdAt)), 1)
2314
+ a("span", ca, p(h(fe)(e.task.createdAt)), 1)
2315
2315
  ]),
2316
2316
  a("div", ra, [
2317
2317
  a("div", ua, [
@@ -2320,7 +2320,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2320
2320
  content: e.task.title
2321
2321
  }, {
2322
2322
  default: d(() => [
2323
- A(m(e.task.title), 1)
2323
+ A(p(e.task.title), 1)
2324
2324
  ]),
2325
2325
  _: 1
2326
2326
  }, 8, ["content"]),
@@ -2343,14 +2343,14 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2343
2343
  content: e.task.error
2344
2344
  }, {
2345
2345
  default: d(() => [
2346
- A(m(e.task.error), 1)
2346
+ A(p(e.task.error), 1)
2347
2347
  ]),
2348
2348
  _: 1
2349
2349
  }, 8, ["content"])) : $("", !0),
2350
2350
  a("div", da, [
2351
2351
  v(w, {
2352
2352
  size: "small",
2353
- onClick: c[0] || (c[0] = (g) => o.$emit("action", "show-details", e.task))
2353
+ onClick: c[0] || (c[0] = (f) => o.$emit("action", "show-details", e.task))
2354
2354
  }, {
2355
2355
  default: d(() => [...c[7] || (c[7] = [
2356
2356
  A(" 详情 ", -1)
@@ -2359,7 +2359,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2359
2359
  }),
2360
2360
  v(w, {
2361
2361
  size: "small",
2362
- onClick: c[1] || (c[1] = (g) => o.$emit("action", "open-folder", e.task))
2362
+ onClick: c[1] || (c[1] = (f) => o.$emit("action", "open-folder", e.task))
2363
2363
  }, {
2364
2364
  default: d(() => [...c[8] || (c[8] = [
2365
2365
  A(" 打开文件夹 ", -1)
@@ -2369,7 +2369,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2369
2369
  e.task.status === "downloading" ? (r(), k(w, {
2370
2370
  key: 0,
2371
2371
  size: "small",
2372
- onClick: c[2] || (c[2] = (g) => o.$emit("action", "pause", e.task))
2372
+ onClick: c[2] || (c[2] = (f) => o.$emit("action", "pause", e.task))
2373
2373
  }, {
2374
2374
  default: d(() => [...c[9] || (c[9] = [
2375
2375
  A(" 暂停 ", -1)
@@ -2379,7 +2379,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2379
2379
  e.task.status === "paused" || e.task.status === "pending" ? (r(), k(w, {
2380
2380
  key: 1,
2381
2381
  size: "small",
2382
- onClick: c[3] || (c[3] = (g) => o.$emit("action", "cancel", e.task))
2382
+ onClick: c[3] || (c[3] = (f) => o.$emit("action", "cancel", e.task))
2383
2383
  }, {
2384
2384
  default: d(() => [...c[10] || (c[10] = [
2385
2385
  A(" 取消 ", -1)
@@ -2389,7 +2389,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2389
2389
  e.task.status === "paused" ? (r(), k(w, {
2390
2390
  key: 2,
2391
2391
  size: "small",
2392
- onClick: c[4] || (c[4] = (g) => o.$emit("action", "resume", e.task))
2392
+ onClick: c[4] || (c[4] = (f) => o.$emit("action", "resume", e.task))
2393
2393
  }, {
2394
2394
  default: d(() => [...c[11] || (c[11] = [
2395
2395
  A(" 继续 ", -1)
@@ -2398,7 +2398,7 @@ const To = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
2398
2398
  })) : $("", !0),
2399
2399
  v(w, {
2400
2400
  size: "small",
2401
- onClick: c[5] || (c[5] = (g) => o.$emit("action", "delete", e.task))
2401
+ onClick: c[5] || (c[5] = (f) => o.$emit("action", "delete", e.task))
2402
2402
  }, {
2403
2403
  default: d(() => [...c[12] || (c[12] = [
2404
2404
  A(" 删除 ", -1)
@@ -2421,7 +2421,7 @@ function ma(e) {
2421
2421
  n?.unmount(), i.remove();
2422
2422
  });
2423
2423
  }
2424
- n = ze({
2424
+ n = De({
2425
2425
  render() {
2426
2426
  return It(sn, {
2427
2427
  ...e,
@@ -2440,18 +2440,18 @@ function ma(e) {
2440
2440
  });
2441
2441
  }
2442
2442
  const ga = async (e) => {
2443
- await H.download.openFolder(e.id, 0, 0);
2443
+ await T.download.openFolder(e.id, 0, 0);
2444
2444
  }, fa = async (e) => {
2445
- await H.download.pause(e.id), Y("暂停任务成功");
2445
+ await T.download.pause(e.id), X("暂停任务成功");
2446
2446
  }, _a = async (e) => {
2447
- await H.download.resume(e.id), Y("正在继续下载");
2447
+ await T.download.resume(e.id), X("正在继续下载");
2448
2448
  }, ha = async (e) => {
2449
- await H.download.cancel(e.id), Y("取消任务成功");
2449
+ await T.download.cancel(e.id), X("取消任务成功");
2450
2450
  }, wa = async (e) => {
2451
2451
  const { deleteSourceFile: l } = await ma({
2452
2452
  message: "确定删除该下载任务吗?"
2453
2453
  });
2454
- await H.download.remove(e.id, {
2454
+ await T.download.remove(e.id, {
2455
2455
  deleteFiles: l
2456
2456
  });
2457
2457
  }, ya = { class: "header" }, Aa = { class: "query-list" }, ka = { class: "actions" }, ba = { class: "download-list-container" }, Ca = /* @__PURE__ */ B({
@@ -2461,25 +2461,25 @@ const ga = async (e) => {
2461
2461
  pageSizes: { default: () => [20, 40, 100] }
2462
2462
  },
2463
2463
  setup(e, { expose: l }) {
2464
- const s = e, t = K("refList"), i = z({
2464
+ const s = e, t = Y("refList"), i = z({
2465
2465
  pageNum: 1,
2466
2466
  pageSize: s.pageSizes[0]
2467
2467
  }), n = z("all"), o = z({
2468
2468
  status: void 0,
2469
2469
  title: ""
2470
2470
  }), c = () => {
2471
- n.value === "all" ? o.value.status = void 0 : o.value.status = n.value, g();
2471
+ n.value === "all" ? o.value.status = void 0 : o.value.status = n.value, f();
2472
2472
  }, {
2473
2473
  pageData: u,
2474
- tableData: p,
2474
+ tableData: m,
2475
2475
  loading: _,
2476
2476
  refresh: w,
2477
- resetAndRefresh: g,
2477
+ resetAndRefresh: f,
2478
2478
  resetPageAndRefresh: b,
2479
2479
  handleSizeChange: x,
2480
- handleCurrPageChange: M
2480
+ handleCurrPageChange: V
2481
2481
  } = ot({
2482
- fetchPage: H.download.fetchPage,
2482
+ fetchPage: T.download.fetchPage,
2483
2483
  pageParams: () => i.value,
2484
2484
  queryParams: () => o.value,
2485
2485
  autoLoad: !0,
@@ -2507,38 +2507,38 @@ const ga = async (e) => {
2507
2507
  break;
2508
2508
  case "delete":
2509
2509
  await wa(y);
2510
- const S = p.value.findIndex((U) => U.id === y.id);
2511
- S > -1 && p.value.splice(S, 1), p.value.length < 1 && await b(), Y("删除任务成功");
2510
+ const S = m.value.findIndex((U) => U.id === y.id);
2511
+ S > -1 && m.value.splice(S, 1), m.value.length < 1 && await b(), X("删除任务成功");
2512
2512
  break;
2513
2513
  }
2514
2514
  };
2515
- let V = null;
2515
+ let Q = null;
2516
2516
  ne(async () => {
2517
- V = await H.download.onUpdated((P) => {
2518
- for (let y = 0; y < p.value.length; y++) {
2519
- const S = p.value[y];
2517
+ Q = await T.download.onUpdated((P) => {
2518
+ for (let y = 0; y < m.value.length; y++) {
2519
+ const S = m.value[y];
2520
2520
  if (S.id === P.id) {
2521
- n.value === "all" || S.status === P.status ? Object.assign(S, P) : p.value.splice(y, 1);
2521
+ n.value === "all" || S.status === P.status ? Object.assign(S, P) : m.value.splice(y, 1);
2522
2522
  return;
2523
2523
  }
2524
2524
  }
2525
2525
  });
2526
2526
  }), ce(() => {
2527
- V?.();
2527
+ Q?.();
2528
2528
  });
2529
2529
  const F = C(() => o.value.status ? `暂无${Ge[o.value.status]}的任务` : "暂无下载任务");
2530
2530
  return l({
2531
2531
  refresh: w,
2532
- resetAndRefresh: g
2532
+ resetAndRefresh: f
2533
2533
  }), (P, y) => {
2534
- const S = fs, U = gs, X = Je, ee = Z, q = et, ue = tt;
2535
- return r(), f(R, null, [
2534
+ const S = fs, U = gs, ee = Je, te = Z, q = et, ue = tt;
2535
+ return r(), g(R, null, [
2536
2536
  a("div", ya, [
2537
2537
  a("div", Aa, [
2538
2538
  I(P.$slots, "queryList", {}, () => [
2539
2539
  v(U, {
2540
2540
  modelValue: n.value,
2541
- "onUpdate:modelValue": y[0] || (y[0] = (Q) => n.value = Q),
2541
+ "onUpdate:modelValue": y[0] || (y[0] = (M) => n.value = M),
2542
2542
  size: "small",
2543
2543
  onChange: c
2544
2544
  }, {
@@ -2566,9 +2566,9 @@ const ga = async (e) => {
2566
2566
  ]),
2567
2567
  _: 1
2568
2568
  }, 8, ["modelValue"]),
2569
- v(X, {
2569
+ v(ee, {
2570
2570
  modelValue: o.value.title,
2571
- "onUpdate:modelValue": y[1] || (y[1] = (Q) => o.value.title = Q),
2571
+ "onUpdate:modelValue": y[1] || (y[1] = (M) => o.value.title = M),
2572
2572
  onChange: h(b),
2573
2573
  size: "small",
2574
2574
  placeholder: "标题",
@@ -2579,19 +2579,19 @@ const ga = async (e) => {
2579
2579
  ]),
2580
2580
  a("div", ka, [
2581
2581
  I(P.$slots, "actions", {}, void 0, !0),
2582
- e.showDefaultActions ? (r(), f(R, { key: 0 }, [
2583
- v(ee, {
2582
+ e.showDefaultActions ? (r(), g(R, { key: 0 }, [
2583
+ v(te, {
2584
2584
  size: "small",
2585
- onClick: y[2] || (y[2] = (Q) => h(H).download.pauseAll())
2585
+ onClick: y[2] || (y[2] = (M) => h(T).download.pauseAll())
2586
2586
  }, {
2587
2587
  default: d(() => [...y[7] || (y[7] = [
2588
2588
  A("暂停所有任务", -1)
2589
2589
  ])]),
2590
2590
  _: 1
2591
2591
  }),
2592
- v(ee, {
2592
+ v(te, {
2593
2593
  size: "small",
2594
- onClick: y[3] || (y[3] = (Q) => h(H).download.resumeAll())
2594
+ onClick: y[3] || (y[3] = (M) => h(T).download.resumeAll())
2595
2595
  }, {
2596
2596
  default: d(() => [...y[8] || (y[8] = [
2597
2597
  A("继续所有任务", -1)
@@ -2607,17 +2607,17 @@ const ga = async (e) => {
2607
2607
  ref: t,
2608
2608
  class: "download-list"
2609
2609
  }, [
2610
- (r(!0), f(R, null, O(h(p), (Q) => (r(), k(pa, {
2611
- task: Q,
2612
- key: Q.id,
2610
+ (r(!0), g(R, null, j(h(m), (M) => (r(), k(pa, {
2611
+ task: M,
2612
+ key: M.id,
2613
2613
  onAction: D
2614
2614
  }, {
2615
- titleExtra: d((j) => [
2616
- I(P.$slots, "itemTitleExtra", G({ ref_for: !0 }, j), void 0, !0)
2615
+ titleExtra: d((O) => [
2616
+ I(P.$slots, "itemTitleExtra", J({ ref_for: !0 }, O), void 0, !0)
2617
2617
  ]),
2618
2618
  _: 3
2619
2619
  }, 8, ["task"]))), 128)),
2620
- h(p).length ? $("", !0) : (r(), k(q, {
2620
+ h(m).length ? $("", !0) : (r(), k(q, {
2621
2621
  key: 0,
2622
2622
  description: F.value
2623
2623
  }, null, 8, ["description"]))
@@ -2626,18 +2626,18 @@ const ga = async (e) => {
2626
2626
  v(ue, {
2627
2627
  class: "pagination",
2628
2628
  "current-page": h(u).pageNum,
2629
- "onUpdate:currentPage": y[4] || (y[4] = (Q) => h(u).pageNum = Q),
2629
+ "onUpdate:currentPage": y[4] || (y[4] = (M) => h(u).pageNum = M),
2630
2630
  "page-size": h(u).pageSize,
2631
- "onUpdate:pageSize": y[5] || (y[5] = (Q) => h(u).pageSize = Q),
2631
+ "onUpdate:pageSize": y[5] || (y[5] = (M) => h(u).pageSize = M),
2632
2632
  "page-sizes": e.pageSizes,
2633
2633
  total: h(u).total,
2634
2634
  layout: "total, sizes, prev, pager, next, jumper",
2635
- onCurrentChange: h(M),
2635
+ onCurrentChange: h(V),
2636
2636
  onSizeChange: h(x)
2637
2637
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "onCurrentChange", "onSizeChange"]),
2638
2638
  v(ta, {
2639
2639
  modelValue: E.value.visible,
2640
- "onUpdate:modelValue": y[6] || (y[6] = (Q) => E.value.visible = Q),
2640
+ "onUpdate:modelValue": y[6] || (y[6] = (M) => E.value.visible = M),
2641
2641
  task: E.value.task
2642
2642
  }, {
2643
2643
  default: d(() => [
@@ -2651,17 +2651,47 @@ const ga = async (e) => {
2651
2651
  ], 64);
2652
2652
  };
2653
2653
  }
2654
- }), Ro = /* @__PURE__ */ L(Ca, [["__scopeId", "data-v-19b20db4"]]);
2654
+ }), Oo = /* @__PURE__ */ L(Ca, [["__scopeId", "data-v-19b20db4"]]);
2655
+ function No(e) {
2656
+ return `${e}@48w_48h_1s.avif`;
2657
+ }
2658
+ const xa = { class: "key-value-tag" }, Ea = { class: "label" }, Ba = { class: "value" }, Sa = /* @__PURE__ */ B({
2659
+ __name: "KeyValueTag",
2660
+ props: {
2661
+ label: {},
2662
+ value: {}
2663
+ },
2664
+ setup(e) {
2665
+ return (l, s) => (r(), g("div", xa, [
2666
+ a("span", Ea, p(e.label), 1),
2667
+ a("span", Ba, p(e.value), 1)
2668
+ ]));
2669
+ }
2670
+ }), Zo = /* @__PURE__ */ L(Sa, [["__scopeId", "data-v-be2d6a5f"]]), $a = { class: "el-input-group__prepend prefix" }, Wo = /* @__PURE__ */ B({
2671
+ __name: "QueryFormItem",
2672
+ props: {
2673
+ prefix: {},
2674
+ small: { type: Boolean }
2675
+ },
2676
+ setup(e) {
2677
+ return (l, s) => (r(), g("div", {
2678
+ class: W(["el-input el-input-group el-input-group--append el-input-group--prepend app-query-form-item", e.small ? "el-input--small" : ""])
2679
+ }, [
2680
+ a("span", $a, p(e.prefix), 1),
2681
+ I(l.$slots, "default")
2682
+ ], 2));
2683
+ }
2684
+ });
2655
2685
  export {
2656
2686
  N as AppIcon,
2657
2687
  ae as AppTooltip,
2658
2688
  zl as BiliUserCard,
2659
- Qo as BiliUserInfo,
2660
- So as CountdownDialog,
2689
+ Fo as BiliUserInfo,
2690
+ Io as CountdownDialog,
2661
2691
  sn as DeleteConfirmDialog,
2662
2692
  ta as DownloadDetailsDialog,
2663
2693
  pa as DownloadItem,
2664
- Ro as DownloadManagePage,
2694
+ Oo as DownloadManagePage,
2665
2695
  wt as DownloadProgress,
2666
2696
  yt as DownloadProgressDetails,
2667
2697
  An as DownloadResourceTag,
@@ -2669,60 +2699,63 @@ export {
2669
2699
  ht as DownloadStatus,
2670
2700
  Wn as DownloadVideoCard,
2671
2701
  En as DownloadVideoPartCard,
2672
- Mo as ExternalLink,
2673
- Io as IconButton,
2702
+ Lo as ExternalLink,
2703
+ Ho as IconButton,
2674
2704
  ct as IconLabel,
2705
+ Zo as KeyValueTag,
2675
2706
  Ks as LoadingDialog,
2676
- Vo as LogPrint,
2677
- js as PageRangeDialog,
2678
- Lo as PageTable,
2707
+ Ro as LogPrint,
2708
+ Os as PageRangeDialog,
2709
+ jo as PageTable,
2679
2710
  gt as PluginMenuItem,
2680
- Tl as PluginMenus,
2681
- To as PluginPageContent,
2682
- Ho as PluginPageHeader,
2711
+ Hl as PluginMenus,
2712
+ qo as PluginPageContent,
2713
+ Uo as PluginPageHeader,
2683
2714
  rl as ProcessDialog,
2684
- Ts as SelectDialog,
2685
- Eo as SettingGroup,
2686
- Bo as SettingItem,
2715
+ Wo as QueryFormItem,
2716
+ Hs as SelectDialog,
2717
+ Do as SettingGroup,
2718
+ Po as SettingItem,
2687
2719
  yn as VideoStatsInfo,
2688
- Me as baseUpdateThemeColor,
2689
- Re as blackColor,
2720
+ Qe as baseUpdateThemeColor,
2721
+ Fe as blackColor,
2690
2722
  $e as formatBytes,
2691
2723
  ln as formatSpeed,
2692
- qe as formatStatCount,
2724
+ ze as formatStatCount,
2725
+ No as getUserAvatarThumbnail,
2693
2726
  ha as handleCancel,
2694
2727
  wa as handleDelete,
2695
- Ao as handleError,
2728
+ Eo as handleError,
2696
2729
  ga as handleOpenFolder,
2697
2730
  fa as handlePause,
2698
2731
  _a as handleResume,
2699
- fo as initAppTheme,
2700
- yo as initBilitoolkitUi,
2732
+ Ao as initAppTheme,
2733
+ xo as initBilitoolkitUi,
2701
2734
  ke as initTransparentColors,
2702
- Ve as isDarkTheme,
2703
- Do as loadingDialog,
2735
+ Me as isDarkTheme,
2736
+ Mo as loadingDialog,
2704
2737
  Bn as parseVideoZoneLabel,
2705
- Po as processDialog,
2738
+ To as processDialog,
2706
2739
  ws as showConfirm,
2707
- bo as showConfirmSequence,
2740
+ So as showConfirmSequence,
2708
2741
  ma as showDeleteConfirmDialog,
2709
2742
  ie as showError,
2710
- zo as showPageRangeDialog,
2711
- $o as showSelectDialog,
2712
- Y as showToast,
2713
- ko as showWarning,
2714
- _o as switchDefaultTheme,
2715
- ho as switchThemeMode,
2716
- H as toolkitApi,
2743
+ Qo as showPageRangeDialog,
2744
+ Vo as showSelectDialog,
2745
+ X as showToast,
2746
+ Bo as showWarning,
2747
+ ko as switchDefaultTheme,
2748
+ bo as switchThemeMode,
2749
+ T as toolkitApi,
2717
2750
  _e as updateAppTheme,
2718
- wo as updatePrimaryColor,
2751
+ Co as updatePrimaryColor,
2719
2752
  ye as useAppThemeStore,
2720
- Co as useAutoRefreshData,
2753
+ $o as useAutoRefreshData,
2721
2754
  zs as useCountdown,
2722
2755
  ys as useElementHeight,
2723
- Qe as useLoadingData,
2756
+ Te as useLoadingData,
2724
2757
  ot as usePageTable,
2725
- xo as useSelectData,
2758
+ zo as useSelectData,
2726
2759
  at as useSelectedUserStore,
2727
- Le as whiteColor
2760
+ Re as whiteColor
2728
2761
  };