delta-comic-core 0.0.1 → 0.0.3
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/LICENSE +661 -21
- package/README.md +30 -30
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +989 -490
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +2 -2
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/components/content/unitCard.vue.d.ts +2263 -77
- package/dist/components/content.vue.d.ts +3 -3
- package/dist/components/floatPopup.vue.d.ts +1 -1
- package/dist/components/image.vue.d.ts +1104 -9
- package/dist/components/list.vue.d.ts +4 -4
- package/dist/components/loading.vue.d.ts +1 -1
- package/dist/components/popup.vue.d.ts +3 -3
- package/dist/components/text.vue.d.ts +1 -1
- package/dist/components/toggleIcon.vue.d.ts +4 -4
- package/dist/components/waterfall.vue.d.ts +6 -6
- package/dist/config/index.d.ts +38 -29
- package/dist/index.d.ts +2761 -289
- package/dist/pack.tgz +0 -0
- package/dist/{plugin.d.ts → plugin/define.d.ts} +64 -21
- package/dist/plugin/index.d.ts +2 -0
- package/dist/stores/temp.d.ts +1 -1
- package/dist/struct/comment.d.ts +2 -6
- package/dist/struct/content.d.ts +21 -7
- package/dist/struct/image.d.ts +2 -2
- package/dist/struct/item.d.ts +13 -3
- package/dist/struct/user.d.ts +2 -0
- package/dist/utils/data.d.ts +5 -4
- package/dist/utils/eventBus.d.ts +5 -4
- package/dist/utils/request.d.ts +3 -1
- package/package.json +18 -26
- package/dist/components/user/previewUser.vue.d.ts +0 -94
package/dist/bundle.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, hasInjectionContext, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onBeforeUpdate, onDeactivated, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveDynamicComponent, shallowReactive, shallowReadonly, shallowRef, toDisplayString, toRef, toValue, unref, useCssVars, useModel, useTemplateRef, vShow, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { onBeforeRouteLeave, useRoute } from "vue-router";
|
|
2
|
+
import { onBeforeRouteLeave, routerKey, useRoute } from "vue-router";
|
|
4
3
|
import { NButton, NEmpty, NIcon, NImage, NPopconfirm, NResult, NVirtualList, useThemeVars } from "naive-ui";
|
|
5
4
|
import { showImagePreview } from "vant";
|
|
6
5
|
import { defineStore } from "pinia";
|
|
7
|
-
import axios, { isAxiosError, isCancel } from "axios";
|
|
6
|
+
import axios, { getAdapter, isAxiosError, isCancel } from "axios";
|
|
8
7
|
import { AnimatePresence, motion } from "motion-v";
|
|
9
8
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), __export = (e) => {
|
|
10
9
|
let n = {};
|
|
@@ -39,11 +38,11 @@ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDes
|
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
function noop$2() {}
|
|
42
|
-
var extend = Object.assign, inBrowser = typeof window < "u", isObject$
|
|
43
|
-
function get(e, n) {
|
|
41
|
+
var extend = Object.assign, inBrowser = typeof window < "u", isObject$3 = (e) => typeof e == "object" && !!e, isDef$1 = (e) => e != null, isFunction$1 = (e) => typeof e == "function", isPromise = (e) => isObject$3(e) && isFunction$1(e.then) && isFunction$1(e.catch), isNumeric = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
|
|
42
|
+
function get$1(e, n) {
|
|
44
43
|
let r = n.split("."), i = e;
|
|
45
44
|
return r.forEach((e) => {
|
|
46
|
-
i = isObject$
|
|
45
|
+
i = isObject$3(i) ? i[e] ?? "" : "";
|
|
47
46
|
}), i;
|
|
48
47
|
}
|
|
49
48
|
function pick(e, n, r) {
|
|
@@ -93,11 +92,9 @@ function useParent(e) {
|
|
|
93
92
|
let n = inject(e, null);
|
|
94
93
|
if (n) {
|
|
95
94
|
let e = getCurrentInstance(), { link: r, unlink: a, internalChildren: o } = n;
|
|
96
|
-
r(e), onUnmounted(() => a(e))
|
|
97
|
-
let s = computed(() => o.indexOf(e));
|
|
98
|
-
return {
|
|
95
|
+
return r(e), onUnmounted(() => a(e)), {
|
|
99
96
|
parent: n,
|
|
100
|
-
index:
|
|
97
|
+
index: computed(() => o.indexOf(e))
|
|
101
98
|
};
|
|
102
99
|
}
|
|
103
100
|
return {
|
|
@@ -121,10 +118,7 @@ function sortChildren(e, n, r) {
|
|
|
121
118
|
let i = flattenVNodes(e.subTree.children);
|
|
122
119
|
r.sort((e, n) => findVNodeIndex(i, e.vnode) - findVNodeIndex(i, n.vnode));
|
|
123
120
|
let a = r.map((e) => e.proxy);
|
|
124
|
-
n.sort((e, n) =>
|
|
125
|
-
let r = a.indexOf(e), i = a.indexOf(n);
|
|
126
|
-
return r - i;
|
|
127
|
-
});
|
|
121
|
+
n.sort((e, n) => a.indexOf(e) - a.indexOf(n));
|
|
128
122
|
}
|
|
129
123
|
function useChildren(e) {
|
|
130
124
|
let n = reactive([]), r = reactive([]), i = getCurrentInstance();
|
|
@@ -295,10 +289,10 @@ function unitToPx(e) {
|
|
|
295
289
|
}
|
|
296
290
|
return parseFloat(e);
|
|
297
291
|
}
|
|
298
|
-
var camelizeRE$2 = /-(\w)/g, camelize$2 = (e) => e.replace(camelizeRE$2, (e, n) => n.toUpperCase()), kebabCase = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), clamp$
|
|
292
|
+
var camelizeRE$2 = /-(\w)/g, camelize$2 = (e) => e.replace(camelizeRE$2, (e, n) => n.toUpperCase()), kebabCase = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), clamp$3 = (e, n, r) => Math.min(Math.max(e, n), r), { hasOwnProperty } = Object.prototype;
|
|
299
293
|
function assignKey(e, n, r) {
|
|
300
294
|
let i = n[r];
|
|
301
|
-
isDef$1(i) && (!hasOwnProperty.call(e, r) || !isObject$
|
|
295
|
+
isDef$1(i) && (!hasOwnProperty.call(e, r) || !isObject$3(i) ? e[r] = i : e[r] = deepAssign(Object(e[r]), i));
|
|
302
296
|
}
|
|
303
297
|
function deepAssign(e, n) {
|
|
304
298
|
return Object.keys(n).forEach((r) => {
|
|
@@ -382,7 +376,7 @@ var stdin_default$15 = {
|
|
|
382
376
|
function createTranslate(e) {
|
|
383
377
|
let n = camelize$2(e) + ".";
|
|
384
378
|
return (e, ...r) => {
|
|
385
|
-
let i = stdin_default$14.messages(), a = get(i, n + e) || get(i, e);
|
|
379
|
+
let i = stdin_default$14.messages(), a = get$1(i, n + e) || get$1(i, e);
|
|
386
380
|
return isFunction$1(a) ? a(...r) : a;
|
|
387
381
|
};
|
|
388
382
|
}
|
|
@@ -441,18 +435,18 @@ var routeProps = {
|
|
|
441
435
|
function route({ to: e, url: n, replace: r, $router: i }) {
|
|
442
436
|
e && i ? i[r ? "replace" : "push"](e) : n && (r ? location.replace(n) : location.href = n);
|
|
443
437
|
}
|
|
444
|
-
var [name$14, bem$14] = createNamespace("badge"),
|
|
445
|
-
dot: Boolean,
|
|
446
|
-
max: numericProp,
|
|
447
|
-
tag: makeStringProp("div"),
|
|
448
|
-
color: String,
|
|
449
|
-
offset: Array,
|
|
450
|
-
content: numericProp,
|
|
451
|
-
showZero: truthProp,
|
|
452
|
-
position: makeStringProp("top-right")
|
|
453
|
-
}, stdin_default$13 = defineComponent({
|
|
438
|
+
var [name$14, bem$14] = createNamespace("badge"), Badge = withInstall(defineComponent({
|
|
454
439
|
name: name$14,
|
|
455
|
-
props:
|
|
440
|
+
props: {
|
|
441
|
+
dot: Boolean,
|
|
442
|
+
max: numericProp,
|
|
443
|
+
tag: makeStringProp("div"),
|
|
444
|
+
color: String,
|
|
445
|
+
offset: Array,
|
|
446
|
+
content: numericProp,
|
|
447
|
+
showZero: truthProp,
|
|
448
|
+
position: makeStringProp("top-right")
|
|
449
|
+
},
|
|
456
450
|
setup(e, { slots: n }) {
|
|
457
451
|
let r = () => {
|
|
458
452
|
if (n.content) return !0;
|
|
@@ -485,7 +479,7 @@ var [name$14, bem$14] = createNamespace("badge"), badgeProps = {
|
|
|
485
479
|
return c();
|
|
486
480
|
};
|
|
487
481
|
}
|
|
488
|
-
})
|
|
482
|
+
})), globalZIndex = 2e3, useGlobalZIndex = () => ++globalZIndex, setGlobalZIndex = (e) => {
|
|
489
483
|
globalZIndex = e;
|
|
490
484
|
}, [name$13, bem$13] = createNamespace("config-provider"), CONFIG_PROVIDER_KEY = Symbol(name$13), configProviderProps = {
|
|
491
485
|
tag: makeStringProp("div"),
|
|
@@ -541,18 +535,18 @@ defineComponent({
|
|
|
541
535
|
}, { default: () => [n.default?.call(n)] });
|
|
542
536
|
}
|
|
543
537
|
});
|
|
544
|
-
var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/"),
|
|
545
|
-
dot: Boolean,
|
|
546
|
-
tag: makeStringProp("i"),
|
|
547
|
-
name: String,
|
|
548
|
-
size: numericProp,
|
|
549
|
-
badge: numericProp,
|
|
550
|
-
color: String,
|
|
551
|
-
badgeProps: Object,
|
|
552
|
-
classPrefix: String
|
|
553
|
-
}, stdin_default$11 = defineComponent({
|
|
538
|
+
var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/"), Icon = withInstall(defineComponent({
|
|
554
539
|
name: name$12,
|
|
555
|
-
props:
|
|
540
|
+
props: {
|
|
541
|
+
dot: Boolean,
|
|
542
|
+
tag: makeStringProp("i"),
|
|
543
|
+
name: String,
|
|
544
|
+
size: numericProp,
|
|
545
|
+
badge: numericProp,
|
|
546
|
+
color: String,
|
|
547
|
+
badgeProps: Object,
|
|
548
|
+
classPrefix: String
|
|
549
|
+
},
|
|
556
550
|
setup(e, { slots: n }) {
|
|
557
551
|
let r = inject(CONFIG_PROVIDER_KEY, null), a = computed(() => e.classPrefix || r?.iconPrefix || bem$12());
|
|
558
552
|
return () => {
|
|
@@ -572,7 +566,7 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
|
|
|
572
566
|
}, null)] });
|
|
573
567
|
};
|
|
574
568
|
}
|
|
575
|
-
})
|
|
569
|
+
})), [name$11, bem$11] = createNamespace("loading"), SpinIcon = Array(12).fill(null).map((e, n) => createVNode("i", { class: bem$11("line", String(n + 1)) }, null)), CircularIcon = createVNode("svg", {
|
|
576
570
|
class: bem$11("circular"),
|
|
577
571
|
viewBox: "25 25 50 50"
|
|
578
572
|
}, [createVNode("circle", {
|
|
@@ -580,16 +574,16 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
|
|
|
580
574
|
cy: "50",
|
|
581
575
|
r: "20",
|
|
582
576
|
fill: "none"
|
|
583
|
-
}, null)]),
|
|
584
|
-
size: numericProp,
|
|
585
|
-
type: makeStringProp("circular"),
|
|
586
|
-
color: String,
|
|
587
|
-
vertical: Boolean,
|
|
588
|
-
textSize: numericProp,
|
|
589
|
-
textColor: String
|
|
590
|
-
}, stdin_default$10 = defineComponent({
|
|
577
|
+
}, null)]), Loading = withInstall(defineComponent({
|
|
591
578
|
name: name$11,
|
|
592
|
-
props:
|
|
579
|
+
props: {
|
|
580
|
+
size: numericProp,
|
|
581
|
+
type: makeStringProp("circular"),
|
|
582
|
+
color: String,
|
|
583
|
+
vertical: Boolean,
|
|
584
|
+
textSize: numericProp,
|
|
585
|
+
textColor: String
|
|
586
|
+
},
|
|
593
587
|
setup(e, { slots: n }) {
|
|
594
588
|
let r = computed(() => extend({ color: e.color }, getSizeStyle(e.size))), a = () => {
|
|
595
589
|
let i = e.type === "spinner" ? SpinIcon : CircularIcon;
|
|
@@ -615,7 +609,7 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
|
|
|
615
609
|
}, [a(), o()]);
|
|
616
610
|
};
|
|
617
611
|
}
|
|
618
|
-
})
|
|
612
|
+
})), popupSharedProps = {
|
|
619
613
|
show: Boolean,
|
|
620
614
|
zIndex: numericProp,
|
|
621
615
|
overlay: truthProp,
|
|
@@ -682,19 +676,19 @@ function useLazyRender(e) {
|
|
|
682
676
|
var useScopeId = () => {
|
|
683
677
|
let { scopeId: e } = getCurrentInstance()?.vnode || {};
|
|
684
678
|
return e ? { [e]: "" } : null;
|
|
685
|
-
}, [name$10, bem$10] = createNamespace("overlay"),
|
|
686
|
-
show: Boolean,
|
|
687
|
-
zIndex: numericProp,
|
|
688
|
-
duration: numericProp,
|
|
689
|
-
className: null,
|
|
690
|
-
lockScroll: truthProp,
|
|
691
|
-
lazyRender: truthProp,
|
|
692
|
-
customStyle: Object,
|
|
693
|
-
teleport: [String, Object]
|
|
694
|
-
}, stdin_default$9 = defineComponent({
|
|
679
|
+
}, [name$10, bem$10] = createNamespace("overlay"), Overlay = withInstall(defineComponent({
|
|
695
680
|
name: name$10,
|
|
696
681
|
inheritAttrs: !1,
|
|
697
|
-
props:
|
|
682
|
+
props: {
|
|
683
|
+
show: Boolean,
|
|
684
|
+
zIndex: numericProp,
|
|
685
|
+
duration: numericProp,
|
|
686
|
+
className: null,
|
|
687
|
+
lockScroll: truthProp,
|
|
688
|
+
lazyRender: truthProp,
|
|
689
|
+
customStyle: Object,
|
|
690
|
+
teleport: [String, Object]
|
|
691
|
+
},
|
|
698
692
|
setup(e, { attrs: i, slots: a }) {
|
|
699
693
|
let o = ref(), s = useLazyRender(() => e.show || !e.lazyRender), c = (n) => {
|
|
700
694
|
e.lockScroll && preventDefault(n, !0);
|
|
@@ -714,7 +708,7 @@ var useScopeId = () => {
|
|
|
714
708
|
return e.teleport ? createVNode(Teleport, { to: e.teleport }, { default: () => [i] }) : i;
|
|
715
709
|
};
|
|
716
710
|
}
|
|
717
|
-
})
|
|
711
|
+
})), popupProps = extend({}, popupSharedProps, {
|
|
718
712
|
round: Boolean,
|
|
719
713
|
position: makeStringProp("center"),
|
|
720
714
|
closeIcon: makeStringProp("cross"),
|
|
@@ -726,7 +720,7 @@ var useScopeId = () => {
|
|
|
726
720
|
destroyOnClose: Boolean,
|
|
727
721
|
safeAreaInsetTop: Boolean,
|
|
728
722
|
safeAreaInsetBottom: Boolean
|
|
729
|
-
}), [name$9, bem$9] = createNamespace("popup"),
|
|
723
|
+
}), [name$9, bem$9] = createNamespace("popup"), Popup = withInstall(defineComponent({
|
|
730
724
|
name: name$9,
|
|
731
725
|
inheritAttrs: !1,
|
|
732
726
|
props: popupProps,
|
|
@@ -757,18 +751,15 @@ var useScopeId = () => {
|
|
|
757
751
|
}, y = (e) => {
|
|
758
752
|
o("clickOverlay", e), a.closeOnClickOverlay && v();
|
|
759
753
|
}, b = () => {
|
|
760
|
-
if (a.overlay) {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}, a.overlayProps);
|
|
770
|
-
return createVNode(Overlay, mergeProps(e, useScopeId(), { onClick: y }), { default: c["overlay-content"] });
|
|
771
|
-
}
|
|
754
|
+
if (a.overlay) return createVNode(Overlay, mergeProps(extend({
|
|
755
|
+
show: a.show,
|
|
756
|
+
class: a.overlayClass,
|
|
757
|
+
zIndex: f.value,
|
|
758
|
+
duration: a.duration,
|
|
759
|
+
customStyle: a.overlayStyle,
|
|
760
|
+
role: a.closeOnClickOverlay ? "button" : void 0,
|
|
761
|
+
tabindex: a.closeOnClickOverlay ? 0 : void 0
|
|
762
|
+
}, a.overlayProps), useScopeId(), { onClick: y }), { default: c["overlay-content"] });
|
|
772
763
|
}, S = (e) => {
|
|
773
764
|
o("clickCloseIcon", e), v();
|
|
774
765
|
}, C = () => {
|
|
@@ -824,7 +815,7 @@ var useScopeId = () => {
|
|
|
824
815
|
a.show && a.teleport && (v(), d = !0);
|
|
825
816
|
}), provide(POPUP_TOGGLE_KEY, () => a.show), () => a.teleport ? createVNode(Teleport, { to: a.teleport }, { default: () => [b(), V()] }) : createVNode(Fragment, null, [b(), V()]);
|
|
826
817
|
}
|
|
827
|
-
})
|
|
818
|
+
})), useSyncPropRef = (e, n) => {
|
|
828
819
|
let r = ref(e());
|
|
829
820
|
return watch(e, (e) => {
|
|
830
821
|
e !== r.value && (r.value = e);
|
|
@@ -833,7 +824,7 @@ var useScopeId = () => {
|
|
|
833
824
|
}), r;
|
|
834
825
|
};
|
|
835
826
|
process.env.NODE_ENV === "production" || Object.freeze({}), process.env.NODE_ENV === "production" || Object.freeze([]);
|
|
836
|
-
var isArray$1 = Array.isArray, isString$1 = (e) => typeof e == "string", isObject$
|
|
827
|
+
var isArray$1 = Array.isArray, isString$1 = (e) => typeof e == "string", isObject$2 = (e) => typeof e == "object" && !!e, cacheStringFunction$1 = (e) => {
|
|
837
828
|
let n = /* @__PURE__ */ Object.create(null);
|
|
838
829
|
return ((r) => n[r] || (n[r] = e(r)));
|
|
839
830
|
}, hyphenateRE$1 = /\B([A-Z])/g, hyphenate$1 = cacheStringFunction$1((e) => e.replace(hyphenateRE$1, "-$1").toLowerCase());
|
|
@@ -845,7 +836,7 @@ function normalizeStyle$1(e) {
|
|
|
845
836
|
if (a) for (let e in a) n[e] = a[e];
|
|
846
837
|
}
|
|
847
838
|
return n;
|
|
848
|
-
} else if (isString$1(e) || isObject$
|
|
839
|
+
} else if (isString$1(e) || isObject$2(e)) return e;
|
|
849
840
|
}
|
|
850
841
|
var listDelimiterRE = /;(?![^(]*\))/g, propertyDelimiterRE = /:([^]+)/, styleCommentRE = /\/\*[^]*?\*\//g;
|
|
851
842
|
function parseStringStyle(e) {
|
|
@@ -877,7 +868,7 @@ function normalizeClass$1(e) {
|
|
|
877
868
|
let i = normalizeClass$1(e[r]);
|
|
878
869
|
i && (n += i + " ");
|
|
879
870
|
}
|
|
880
|
-
else if (isObject$
|
|
871
|
+
else if (isObject$2(e)) for (let r in e) e[r] && (n += r + " ");
|
|
881
872
|
return n.trim();
|
|
882
873
|
}
|
|
883
874
|
function scrollLeftTo(e, n, r) {
|
|
@@ -902,8 +893,8 @@ function scrollTopTo(e, n, r, i) {
|
|
|
902
893
|
}
|
|
903
894
|
var current = 0;
|
|
904
895
|
function useId() {
|
|
905
|
-
let
|
|
906
|
-
return process.env.NODE_ENV === "test" ?
|
|
896
|
+
let { name: e = "unknown" } = getCurrentInstance()?.type || {};
|
|
897
|
+
return process.env.NODE_ENV === "test" ? e : `${e}-${++current}`;
|
|
907
898
|
}
|
|
908
899
|
function useRefs() {
|
|
909
900
|
let e = ref([]), n = [];
|
|
@@ -924,15 +915,15 @@ function useVisibilityChange(e, n) {
|
|
|
924
915
|
};
|
|
925
916
|
onDeactivated(a), onBeforeUnmount(a), onMountedOrActivated(i);
|
|
926
917
|
}
|
|
927
|
-
var [name$8, bem$8] = createNamespace("sticky"),
|
|
928
|
-
zIndex: numericProp,
|
|
929
|
-
position: makeStringProp("top"),
|
|
930
|
-
container: Object,
|
|
931
|
-
offsetTop: makeNumericProp(0),
|
|
932
|
-
offsetBottom: makeNumericProp(0)
|
|
933
|
-
}, stdin_default$7 = defineComponent({
|
|
918
|
+
var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComponent({
|
|
934
919
|
name: name$8,
|
|
935
|
-
props:
|
|
920
|
+
props: {
|
|
921
|
+
zIndex: numericProp,
|
|
922
|
+
position: makeStringProp("top"),
|
|
923
|
+
container: Object,
|
|
924
|
+
offsetTop: makeNumericProp(0),
|
|
925
|
+
offsetBottom: makeNumericProp(0)
|
|
926
|
+
},
|
|
936
927
|
emits: ["scroll", "change"],
|
|
937
928
|
setup(e, { emit: n, slots: r }) {
|
|
938
929
|
let a = ref(), o = useScrollParent(a), s = reactive({
|
|
@@ -990,7 +981,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
990
981
|
style: f.value
|
|
991
982
|
}, [r.default?.call(r)])]);
|
|
992
983
|
}
|
|
993
|
-
})
|
|
984
|
+
})), [name$7, bem$7] = createNamespace("swipe"), swipeProps = {
|
|
994
985
|
loop: truthProp,
|
|
995
986
|
width: numericProp,
|
|
996
987
|
height: numericProp,
|
|
@@ -1003,7 +994,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1003
994
|
indicatorColor: String,
|
|
1004
995
|
showIndicators: truthProp,
|
|
1005
996
|
stopPropagation: truthProp
|
|
1006
|
-
}, SWIPE_KEY = Symbol(name$7),
|
|
997
|
+
}, SWIPE_KEY = Symbol(name$7), Swipe = withInstall(defineComponent({
|
|
1007
998
|
name: name$7,
|
|
1008
999
|
props: swipeProps,
|
|
1009
1000
|
emits: [
|
|
@@ -1034,12 +1025,12 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1034
1025
|
return n;
|
|
1035
1026
|
}), w = (n) => {
|
|
1036
1027
|
let { active: r } = s;
|
|
1037
|
-
return n ? e.loop ? clamp$
|
|
1028
|
+
return n ? e.loop ? clamp$3(r + n, -1, p.value) : clamp$3(r + n, 0, v.value) : r;
|
|
1038
1029
|
}, D = (n, r = 0) => {
|
|
1039
1030
|
let i = n * m.value;
|
|
1040
1031
|
e.loop || (i = Math.min(i, -g.value));
|
|
1041
1032
|
let a = r - i;
|
|
1042
|
-
return e.loop || (a = clamp$
|
|
1033
|
+
return e.loop || (a = clamp$3(a, g.value, 0)), a;
|
|
1043
1034
|
}, O = ({ pace: r = 0, offset: i = 0, emitChange: a }) => {
|
|
1044
1035
|
if (p.value <= 1) return;
|
|
1045
1036
|
let { active: o } = s, c = w(r), l = D(c, i);
|
|
@@ -1089,13 +1080,13 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1089
1080
|
}), K();
|
|
1090
1081
|
};
|
|
1091
1082
|
isHidden(a) ? nextTick().then(r) : r();
|
|
1092
|
-
},
|
|
1093
|
-
!e.touchable || n.touches.length > 1 || (l.start(n), c = !1,
|
|
1094
|
-
},
|
|
1083
|
+
}, Dl = () => J(s.active), Ol, kl = (n) => {
|
|
1084
|
+
!e.touchable || n.touches.length > 1 || (l.start(n), c = !1, Ol = Date.now(), W(), k());
|
|
1085
|
+
}, Al = (r) => {
|
|
1095
1086
|
e.touchable && s.swiping && (l.move(r), S.value && (!e.loop && (s.active === 0 && h.value > 0 || s.active === p.value - 1 && h.value < 0) || (preventDefault(r, e.stopPropagation), O({ offset: h.value }), c ||= (n("dragStart", { index: b.value }), !0))));
|
|
1096
|
-
},
|
|
1087
|
+
}, jl = () => {
|
|
1097
1088
|
if (!e.touchable || !s.swiping) return;
|
|
1098
|
-
let r = Date.now() -
|
|
1089
|
+
let r = Date.now() - Ol, i = h.value / r;
|
|
1099
1090
|
if ((Math.abs(i) > .25 || Math.abs(h.value) > m.value / 2) && S.value) {
|
|
1100
1091
|
let n = e.vertical ? l.offsetY.value : l.offsetX.value, r = 0;
|
|
1101
1092
|
r = e.loop ? n > 0 ? h.value > 0 ? -1 : 1 : 0 : -Math[h.value > 0 ? "ceil" : "floor"](h.value / m.value), O({
|
|
@@ -1104,7 +1095,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1104
1095
|
});
|
|
1105
1096
|
} else h.value && O({ pace: 0 });
|
|
1106
1097
|
c = !1, s.swiping = !1, n("dragEnd", { index: b.value }), K();
|
|
1107
|
-
},
|
|
1098
|
+
}, Ml = (n, r = {}) => {
|
|
1108
1099
|
k(), l.reset(), doubleRaf(() => {
|
|
1109
1100
|
let i;
|
|
1110
1101
|
i = e.loop && n === p.value ? s.active === 0 ? 0 : n : n % p.value, r.immediate ? doubleRaf(() => {
|
|
@@ -1114,25 +1105,25 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1114
1105
|
emitChange: !0
|
|
1115
1106
|
});
|
|
1116
1107
|
});
|
|
1117
|
-
},
|
|
1118
|
-
let i = r === b.value
|
|
1108
|
+
}, Nl = (n, r) => {
|
|
1109
|
+
let i = r === b.value;
|
|
1119
1110
|
return createVNode("i", {
|
|
1120
|
-
style:
|
|
1111
|
+
style: i ? { backgroundColor: e.indicatorColor } : void 0,
|
|
1121
1112
|
class: bem$7("indicator", { active: i })
|
|
1122
1113
|
}, null);
|
|
1123
|
-
},
|
|
1114
|
+
}, Pl = () => {
|
|
1124
1115
|
if (r.indicator) return r.indicator({
|
|
1125
1116
|
active: b.value,
|
|
1126
1117
|
total: p.value
|
|
1127
1118
|
});
|
|
1128
|
-
if (e.showIndicators && p.value > 1) return createVNode("div", { class: bem$7("indicators", { vertical: e.vertical }) }, [Array(p.value).fill("").map(
|
|
1119
|
+
if (e.showIndicators && p.value > 1) return createVNode("div", { class: bem$7("indicators", { vertical: e.vertical }) }, [Array(p.value).fill("").map(Nl)]);
|
|
1129
1120
|
};
|
|
1130
1121
|
return useExpose({
|
|
1131
1122
|
prev: M,
|
|
1132
1123
|
next: V,
|
|
1133
1124
|
state: s,
|
|
1134
|
-
resize:
|
|
1135
|
-
swipeTo:
|
|
1125
|
+
resize: Dl,
|
|
1126
|
+
swipeTo: Ml
|
|
1136
1127
|
}), f({
|
|
1137
1128
|
size: m,
|
|
1138
1129
|
props: e,
|
|
@@ -1143,21 +1134,21 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1143
1134
|
windowHeight,
|
|
1144
1135
|
() => e.width,
|
|
1145
1136
|
() => e.height
|
|
1146
|
-
],
|
|
1137
|
+
], Dl), watch(usePageVisibility(), (e) => {
|
|
1147
1138
|
e === "visible" ? K() : W();
|
|
1148
|
-
}), onMounted(J), onActivated(() => J(s.active)), onPopupReopen(() => J(s.active)), onDeactivated(W), onBeforeUnmount(W), useEventListener("touchmove",
|
|
1139
|
+
}), onMounted(J), onActivated(() => J(s.active)), onPopupReopen(() => J(s.active)), onDeactivated(W), onBeforeUnmount(W), useEventListener("touchmove", Al, { target: o }), () => createVNode("div", {
|
|
1149
1140
|
ref: a,
|
|
1150
1141
|
class: bem$7()
|
|
1151
1142
|
}, [createVNode("div", {
|
|
1152
1143
|
ref: o,
|
|
1153
1144
|
style: C.value,
|
|
1154
1145
|
class: bem$7("track", { vertical: e.vertical }),
|
|
1155
|
-
onTouchstartPassive:
|
|
1156
|
-
onTouchend:
|
|
1157
|
-
onTouchcancel:
|
|
1158
|
-
}, [r.default?.call(r)]),
|
|
1146
|
+
onTouchstartPassive: kl,
|
|
1147
|
+
onTouchend: jl,
|
|
1148
|
+
onTouchcancel: jl
|
|
1149
|
+
}, [r.default?.call(r)]), Pl()]);
|
|
1159
1150
|
}
|
|
1160
|
-
})
|
|
1151
|
+
})), [name$6, bem$6] = createNamespace("tabs"), stdin_default$5 = defineComponent({
|
|
1161
1152
|
name: name$6,
|
|
1162
1153
|
props: {
|
|
1163
1154
|
count: makeRequiredProp(Number),
|
|
@@ -1292,29 +1283,26 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1292
1283
|
event: a,
|
|
1293
1284
|
disabled: s
|
|
1294
1285
|
});
|
|
1295
|
-
},
|
|
1286
|
+
}, Dl = (e) => {
|
|
1296
1287
|
s = e.isFixed, n("scroll", e);
|
|
1297
|
-
},
|
|
1288
|
+
}, Ol = (e) => {
|
|
1298
1289
|
nextTick(() => {
|
|
1299
1290
|
W(e), K(!0);
|
|
1300
1291
|
});
|
|
1301
|
-
},
|
|
1292
|
+
}, kl = () => {
|
|
1302
1293
|
for (let e = 0; e < b.length; e++) {
|
|
1303
1294
|
let { top: n } = useRect(b[e].$el);
|
|
1304
1295
|
if (n > M.value) return e === 0 ? 0 : e - 1;
|
|
1305
1296
|
}
|
|
1306
1297
|
return b.length - 1;
|
|
1307
|
-
},
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
H(e);
|
|
1311
|
-
}
|
|
1312
|
-
}, kc = () => {
|
|
1298
|
+
}, Al = () => {
|
|
1299
|
+
e.scrollspy && !o && H(kl());
|
|
1300
|
+
}, jl = () => {
|
|
1313
1301
|
if (e.type === "line" && b.length) return createVNode("div", {
|
|
1314
1302
|
class: bem$5("line"),
|
|
1315
1303
|
style: C.lineStyle
|
|
1316
1304
|
}, null);
|
|
1317
|
-
},
|
|
1305
|
+
}, Ml = () => {
|
|
1318
1306
|
let { type: n, border: i, sticky: a } = e, o = [createVNode("div", {
|
|
1319
1307
|
ref: a ? void 0 : p,
|
|
1320
1308
|
class: [bem$5("wrap"), { [BORDER_TOP_BOTTOM]: n === "line" && i }]
|
|
@@ -1330,11 +1318,11 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1330
1318
|
}, [
|
|
1331
1319
|
r["nav-left"]?.call(r),
|
|
1332
1320
|
b.map((e) => e.renderTitle(J)),
|
|
1333
|
-
|
|
1321
|
+
jl(),
|
|
1334
1322
|
r["nav-right"]?.call(r)
|
|
1335
1323
|
])]), r["nav-bottom"]?.call(r)];
|
|
1336
1324
|
return a ? createVNode("div", { ref: p }, [o]) : o;
|
|
1337
|
-
},
|
|
1325
|
+
}, Nl = () => {
|
|
1338
1326
|
B(), nextTick(() => {
|
|
1339
1327
|
var e;
|
|
1340
1328
|
z(!0), (e = m.value?.swipeRef.value) == null || e.resize();
|
|
@@ -1345,20 +1333,20 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1345
1333
|
e.duration,
|
|
1346
1334
|
e.lineWidth,
|
|
1347
1335
|
e.lineHeight
|
|
1348
|
-
], B), watch(windowWidth,
|
|
1336
|
+
], B), watch(windowWidth, Nl), watch(() => e.active, (e) => {
|
|
1349
1337
|
e !== k.value && W(e);
|
|
1350
1338
|
}), watch(() => b.length, () => {
|
|
1351
1339
|
C.inited && (W(e.active), B(), nextTick(() => {
|
|
1352
1340
|
z(!0);
|
|
1353
1341
|
}));
|
|
1354
1342
|
}), useExpose({
|
|
1355
|
-
resize:
|
|
1356
|
-
scrollTo:
|
|
1343
|
+
resize: Nl,
|
|
1344
|
+
scrollTo: Ol
|
|
1357
1345
|
}), onActivated(B), onPopupReopen(B), onMountedOrActivated(() => {
|
|
1358
1346
|
W(e.active, !0), nextTick(() => {
|
|
1359
1347
|
C.inited = !0, p.value && (a = useRect(p.value).height), z(!0);
|
|
1360
1348
|
});
|
|
1361
|
-
}), useVisibilityChange(d, B), useEventListener("scroll",
|
|
1349
|
+
}), useVisibilityChange(d, B), useEventListener("scroll", Al, {
|
|
1362
1350
|
target: g,
|
|
1363
1351
|
passive: !0
|
|
1364
1352
|
}), S({
|
|
@@ -1376,8 +1364,8 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1376
1364
|
}, [e.showHeader ? e.sticky ? createVNode(Sticky, {
|
|
1377
1365
|
container: d.value,
|
|
1378
1366
|
offsetTop: j.value,
|
|
1379
|
-
onScroll:
|
|
1380
|
-
}, { default: () => [
|
|
1367
|
+
onScroll: Dl
|
|
1368
|
+
}, { default: () => [Ml()] }) : Ml() : null, createVNode(stdin_default$5, {
|
|
1381
1369
|
ref: m,
|
|
1382
1370
|
count: b.length,
|
|
1383
1371
|
inited: C.inited,
|
|
@@ -1441,7 +1429,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1441
1429
|
"data-allow-mismatch": "attribute"
|
|
1442
1430
|
}, [a()]);
|
|
1443
1431
|
}
|
|
1444
|
-
}), [name$3, bem$3] = createNamespace("swipe-item"),
|
|
1432
|
+
}), [name$3, bem$3] = createNamespace("swipe-item"), SwipeItem = withInstall(defineComponent({
|
|
1445
1433
|
name: name$3,
|
|
1446
1434
|
setup(e, { slots: n }) {
|
|
1447
1435
|
let r, a = reactive({
|
|
@@ -1474,18 +1462,18 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1474
1462
|
style: c.value
|
|
1475
1463
|
}, [l.value ? n.default?.call(n) : null]);
|
|
1476
1464
|
}
|
|
1477
|
-
})
|
|
1478
|
-
dot: Boolean,
|
|
1479
|
-
name: numericProp,
|
|
1480
|
-
badge: numericProp,
|
|
1481
|
-
title: String,
|
|
1482
|
-
disabled: Boolean,
|
|
1483
|
-
titleClass: null,
|
|
1484
|
-
titleStyle: [String, Object],
|
|
1485
|
-
showZeroBadge: truthProp
|
|
1486
|
-
}), stdin_default$3 = defineComponent({
|
|
1465
|
+
})), [name$2, bem$2] = createNamespace("tab"), Tab = withInstall(defineComponent({
|
|
1487
1466
|
name: name$2,
|
|
1488
|
-
props:
|
|
1467
|
+
props: extend({}, routeProps, {
|
|
1468
|
+
dot: Boolean,
|
|
1469
|
+
name: numericProp,
|
|
1470
|
+
badge: numericProp,
|
|
1471
|
+
title: String,
|
|
1472
|
+
disabled: Boolean,
|
|
1473
|
+
titleClass: null,
|
|
1474
|
+
titleStyle: [String, Object],
|
|
1475
|
+
showZeroBadge: truthProp
|
|
1476
|
+
}),
|
|
1489
1477
|
setup(e, { slots: n }) {
|
|
1490
1478
|
let r = useId(), a = ref(!1), o = getCurrentInstance(), { parent: s, index: c } = useParent(TABS_KEY);
|
|
1491
1479
|
if (!s) {
|
|
@@ -1560,14 +1548,14 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1560
1548
|
}, [m]), [[vShow, p]]);
|
|
1561
1549
|
};
|
|
1562
1550
|
}
|
|
1563
|
-
})
|
|
1551
|
+
})), Tabs = withInstall(stdin_default$2), floatingPanelProps = {
|
|
1564
1552
|
height: makeNumericProp(0),
|
|
1565
1553
|
anchors: makeArrayProp(),
|
|
1566
1554
|
duration: makeNumericProp(.3),
|
|
1567
1555
|
contentDraggable: truthProp,
|
|
1568
1556
|
lockScroll: Boolean,
|
|
1569
1557
|
safeAreaInsetBottom: truthProp
|
|
1570
|
-
}, [name$1, bem$1] = createNamespace("floating-panel"),
|
|
1558
|
+
}, [name$1, bem$1] = createNamespace("floating-panel"), FloatingPanel = withInstall(defineComponent({
|
|
1571
1559
|
name: name$1,
|
|
1572
1560
|
props: floatingPanelProps,
|
|
1573
1561
|
emits: ["heightChange", "update:height"],
|
|
@@ -1593,8 +1581,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1593
1581
|
if (-h < l.value.max) preventDefault(n, !0);
|
|
1594
1582
|
else if (!(r <= 0 && v.deltaY.value > 0) || g > 0) return;
|
|
1595
1583
|
}
|
|
1596
|
-
|
|
1597
|
-
c.value = -m(i);
|
|
1584
|
+
c.value = -m(v.deltaY.value + h);
|
|
1598
1585
|
}, S = () => {
|
|
1599
1586
|
g = -1, f.value = !1, c.value = closest(d.value, c.value), c.value !== -h && n("heightChange", { height: c.value });
|
|
1600
1587
|
};
|
|
@@ -1614,24 +1601,24 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1614
1601
|
ref: s
|
|
1615
1602
|
}, [r.default?.call(r)])]);
|
|
1616
1603
|
}
|
|
1617
|
-
})
|
|
1604
|
+
})), [name, bem, t] = createNamespace("pull-refresh"), DEFAULT_HEAD_HEIGHT = 50, TEXT_STATUS = [
|
|
1618
1605
|
"pulling",
|
|
1619
1606
|
"loosing",
|
|
1620
1607
|
"success"
|
|
1621
|
-
],
|
|
1622
|
-
disabled: Boolean,
|
|
1623
|
-
modelValue: Boolean,
|
|
1624
|
-
headHeight: makeNumericProp(50),
|
|
1625
|
-
successText: String,
|
|
1626
|
-
pullingText: String,
|
|
1627
|
-
loosingText: String,
|
|
1628
|
-
loadingText: String,
|
|
1629
|
-
pullDistance: numericProp,
|
|
1630
|
-
successDuration: makeNumericProp(500),
|
|
1631
|
-
animationDuration: makeNumericProp(300)
|
|
1632
|
-
}, stdin_default = defineComponent({
|
|
1608
|
+
], PullRefresh = withInstall(defineComponent({
|
|
1633
1609
|
name,
|
|
1634
|
-
props:
|
|
1610
|
+
props: {
|
|
1611
|
+
disabled: Boolean,
|
|
1612
|
+
modelValue: Boolean,
|
|
1613
|
+
headHeight: makeNumericProp(DEFAULT_HEAD_HEIGHT),
|
|
1614
|
+
successText: String,
|
|
1615
|
+
pullingText: String,
|
|
1616
|
+
loosingText: String,
|
|
1617
|
+
loadingText: String,
|
|
1618
|
+
pullDistance: numericProp,
|
|
1619
|
+
successDuration: makeNumericProp(500),
|
|
1620
|
+
animationDuration: makeNumericProp(300)
|
|
1621
|
+
},
|
|
1635
1622
|
emits: [
|
|
1636
1623
|
"change",
|
|
1637
1624
|
"refresh",
|
|
@@ -1643,7 +1630,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1643
1630
|
distance: 0,
|
|
1644
1631
|
duration: 0
|
|
1645
1632
|
}), l = useTouch(), d = () => {
|
|
1646
|
-
if (e.headHeight !==
|
|
1633
|
+
if (e.headHeight !== DEFAULT_HEAD_HEIGHT) return { height: `${e.headHeight}px` };
|
|
1647
1634
|
}, f = () => c.status !== "loading" && c.status !== "success" && !e.disabled, p = (n) => {
|
|
1648
1635
|
let r = +(e.pullDistance || e.headHeight);
|
|
1649
1636
|
return n > r && (n = n < r * 2 ? r + (n - r) / 2 : r * 1.5 + (n - r * 2) / 4), Math.round(n);
|
|
@@ -1701,7 +1688,506 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1701
1688
|
}, [g()]), r.default?.call(r)])]);
|
|
1702
1689
|
};
|
|
1703
1690
|
}
|
|
1704
|
-
})
|
|
1691
|
+
}));
|
|
1692
|
+
function toArray$1(e) {
|
|
1693
|
+
return Array.isArray(e) ? e : Array.from(e);
|
|
1694
|
+
}
|
|
1695
|
+
function isLength(e) {
|
|
1696
|
+
return Number.isSafeInteger(e) && e >= 0;
|
|
1697
|
+
}
|
|
1698
|
+
function isArrayLike(e) {
|
|
1699
|
+
return e != null && typeof e != "function" && isLength(e.length);
|
|
1700
|
+
}
|
|
1701
|
+
function identity$1(e) {
|
|
1702
|
+
return e;
|
|
1703
|
+
}
|
|
1704
|
+
function isUnsafeProperty(e) {
|
|
1705
|
+
return e === "__proto__";
|
|
1706
|
+
}
|
|
1707
|
+
function isDeepKey(e) {
|
|
1708
|
+
switch (typeof e) {
|
|
1709
|
+
case "number":
|
|
1710
|
+
case "symbol": return !1;
|
|
1711
|
+
case "string": return e.includes(".") || e.includes("[") || e.includes("]");
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
function toKey(e) {
|
|
1715
|
+
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
|
|
1716
|
+
}
|
|
1717
|
+
function toString$1(e) {
|
|
1718
|
+
if (e == null) return "";
|
|
1719
|
+
if (typeof e == "string") return e;
|
|
1720
|
+
if (Array.isArray(e)) return e.map(toString$1).join(",");
|
|
1721
|
+
let n = String(e);
|
|
1722
|
+
return n === "0" && Object.is(Number(e), -0) ? "-0" : n;
|
|
1723
|
+
}
|
|
1724
|
+
function toPath(e) {
|
|
1725
|
+
if (Array.isArray(e)) return e.map(toKey);
|
|
1726
|
+
if (typeof e == "symbol") return [e];
|
|
1727
|
+
e = toString$1(e);
|
|
1728
|
+
let n = [], r = e.length;
|
|
1729
|
+
if (r === 0) return n;
|
|
1730
|
+
let i = 0, a = "", o = "", s = !1;
|
|
1731
|
+
for (e.charCodeAt(0) === 46 && (n.push(""), i++); i < r;) {
|
|
1732
|
+
let c = e[i];
|
|
1733
|
+
o ? c === "\\" && i + 1 < r ? (i++, a += e[i]) : c === o ? o = "" : a += c : s ? c === "\"" || c === "'" ? o = c : c === "]" ? (s = !1, n.push(a), a = "") : a += c : c === "[" ? (s = !0, a &&= (n.push(a), "")) : c === "." ? a &&= (n.push(a), "") : a += c, i++;
|
|
1734
|
+
}
|
|
1735
|
+
return a && n.push(a), n;
|
|
1736
|
+
}
|
|
1737
|
+
function get(e, n, r) {
|
|
1738
|
+
if (e == null) return r;
|
|
1739
|
+
switch (typeof n) {
|
|
1740
|
+
case "string": {
|
|
1741
|
+
if (isUnsafeProperty(n)) return r;
|
|
1742
|
+
let i = e[n];
|
|
1743
|
+
return i === void 0 ? isDeepKey(n) ? get(e, toPath(n), r) : r : i;
|
|
1744
|
+
}
|
|
1745
|
+
case "number":
|
|
1746
|
+
case "symbol": {
|
|
1747
|
+
typeof n == "number" && (n = toKey(n));
|
|
1748
|
+
let i = e[n];
|
|
1749
|
+
return i === void 0 ? r : i;
|
|
1750
|
+
}
|
|
1751
|
+
default: {
|
|
1752
|
+
if (Array.isArray(n)) return getWithPath(e, n, r);
|
|
1753
|
+
if (n = Object.is(n?.valueOf(), -0) ? "-0" : String(n), isUnsafeProperty(n)) return r;
|
|
1754
|
+
let i = e[n];
|
|
1755
|
+
return i === void 0 ? r : i;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
function getWithPath(e, n, r) {
|
|
1760
|
+
if (n.length === 0) return r;
|
|
1761
|
+
let i = e;
|
|
1762
|
+
for (let e = 0; e < n.length; e++) {
|
|
1763
|
+
if (i == null || isUnsafeProperty(n[e])) return r;
|
|
1764
|
+
i = i[n[e]];
|
|
1765
|
+
}
|
|
1766
|
+
return i === void 0 ? r : i;
|
|
1767
|
+
}
|
|
1768
|
+
function property(e) {
|
|
1769
|
+
return function(n) {
|
|
1770
|
+
return get(n, e);
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
function isObject$1(e) {
|
|
1774
|
+
return e !== null && (typeof e == "object" || typeof e == "function");
|
|
1775
|
+
}
|
|
1776
|
+
function isPrimitive(e) {
|
|
1777
|
+
return e == null || typeof e != "object" && typeof e != "function";
|
|
1778
|
+
}
|
|
1779
|
+
function eq(e, n) {
|
|
1780
|
+
return e === n || Number.isNaN(e) && Number.isNaN(n);
|
|
1781
|
+
}
|
|
1782
|
+
function isMatchWith(e, n, r) {
|
|
1783
|
+
return typeof r == "function" ? isMatchWithInternal(e, n, function e(n, i, a, o, s, c) {
|
|
1784
|
+
let l = r(n, i, a, o, s, c);
|
|
1785
|
+
return l === void 0 ? isMatchWithInternal(n, i, e, c) : !!l;
|
|
1786
|
+
}, /* @__PURE__ */ new Map()) : isMatch(e, n);
|
|
1787
|
+
}
|
|
1788
|
+
function isMatchWithInternal(e, n, r, i) {
|
|
1789
|
+
if (n === e) return !0;
|
|
1790
|
+
switch (typeof n) {
|
|
1791
|
+
case "object": return isObjectMatch(e, n, r, i);
|
|
1792
|
+
case "function": return Object.keys(n).length > 0 ? isMatchWithInternal(e, { ...n }, r, i) : eq(e, n);
|
|
1793
|
+
default: return isObject$1(e) ? typeof n == "string" ? n === "" : !0 : eq(e, n);
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
function isObjectMatch(e, n, r, i) {
|
|
1797
|
+
if (n == null) return !0;
|
|
1798
|
+
if (Array.isArray(n)) return isArrayMatch(e, n, r, i);
|
|
1799
|
+
if (n instanceof Map) return isMapMatch(e, n, r, i);
|
|
1800
|
+
if (n instanceof Set) return isSetMatch(e, n, r, i);
|
|
1801
|
+
let a = Object.keys(n);
|
|
1802
|
+
if (e == null) return a.length === 0;
|
|
1803
|
+
if (a.length === 0) return !0;
|
|
1804
|
+
if (i && i.has(n)) return i.get(n) === e;
|
|
1805
|
+
i && i.set(n, e);
|
|
1806
|
+
try {
|
|
1807
|
+
for (let o = 0; o < a.length; o++) {
|
|
1808
|
+
let s = a[o];
|
|
1809
|
+
if (!isPrimitive(e) && !(s in e) || n[s] === void 0 && e[s] !== void 0 || n[s] === null && e[s] !== null || !r(e[s], n[s], s, e, n, i)) return !1;
|
|
1810
|
+
}
|
|
1811
|
+
return !0;
|
|
1812
|
+
} finally {
|
|
1813
|
+
i && i.delete(n);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
function isMapMatch(e, n, r, i) {
|
|
1817
|
+
if (n.size === 0) return !0;
|
|
1818
|
+
if (!(e instanceof Map)) return !1;
|
|
1819
|
+
for (let [a, o] of n.entries()) if (r(e.get(a), o, a, e, n, i) === !1) return !1;
|
|
1820
|
+
return !0;
|
|
1821
|
+
}
|
|
1822
|
+
function isArrayMatch(e, n, r, i) {
|
|
1823
|
+
if (n.length === 0) return !0;
|
|
1824
|
+
if (!Array.isArray(e)) return !1;
|
|
1825
|
+
let a = /* @__PURE__ */ new Set();
|
|
1826
|
+
for (let o = 0; o < n.length; o++) {
|
|
1827
|
+
let s = n[o], c = !1;
|
|
1828
|
+
for (let l = 0; l < e.length; l++) {
|
|
1829
|
+
if (a.has(l)) continue;
|
|
1830
|
+
let u = e[l], d = !1;
|
|
1831
|
+
if (r(u, s, o, e, n, i) && (d = !0), d) {
|
|
1832
|
+
a.add(l), c = !0;
|
|
1833
|
+
break;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
if (!c) return !1;
|
|
1837
|
+
}
|
|
1838
|
+
return !0;
|
|
1839
|
+
}
|
|
1840
|
+
function isSetMatch(e, n, r, i) {
|
|
1841
|
+
return n.size === 0 ? !0 : e instanceof Set ? isArrayMatch([...e], [...n], r, i) : !1;
|
|
1842
|
+
}
|
|
1843
|
+
function isMatch(e, n) {
|
|
1844
|
+
return isMatchWith(e, n, () => void 0);
|
|
1845
|
+
}
|
|
1846
|
+
function getSymbols(e) {
|
|
1847
|
+
return Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n));
|
|
1848
|
+
}
|
|
1849
|
+
function getTag(e) {
|
|
1850
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
1851
|
+
}
|
|
1852
|
+
var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
|
|
1853
|
+
function isTypedArray$1(e) {
|
|
1854
|
+
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
1855
|
+
}
|
|
1856
|
+
function cloneDeepWith$1(e, n) {
|
|
1857
|
+
return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), n);
|
|
1858
|
+
}
|
|
1859
|
+
function cloneDeepWithImpl(e, n, r, i = /* @__PURE__ */ new Map(), a = void 0) {
|
|
1860
|
+
let o = a?.(e, n, r, i);
|
|
1861
|
+
if (o !== void 0) return o;
|
|
1862
|
+
if (isPrimitive(e)) return e;
|
|
1863
|
+
if (i.has(e)) return i.get(e);
|
|
1864
|
+
if (Array.isArray(e)) {
|
|
1865
|
+
let n = Array(e.length);
|
|
1866
|
+
i.set(e, n);
|
|
1867
|
+
for (let o = 0; o < e.length; o++) n[o] = cloneDeepWithImpl(e[o], o, r, i, a);
|
|
1868
|
+
return Object.hasOwn(e, "index") && (n.index = e.index), Object.hasOwn(e, "input") && (n.input = e.input), n;
|
|
1869
|
+
}
|
|
1870
|
+
if (e instanceof Date) return new Date(e.getTime());
|
|
1871
|
+
if (e instanceof RegExp) {
|
|
1872
|
+
let n = new RegExp(e.source, e.flags);
|
|
1873
|
+
return n.lastIndex = e.lastIndex, n;
|
|
1874
|
+
}
|
|
1875
|
+
if (e instanceof Map) {
|
|
1876
|
+
let n = /* @__PURE__ */ new Map();
|
|
1877
|
+
i.set(e, n);
|
|
1878
|
+
for (let [o, s] of e) n.set(o, cloneDeepWithImpl(s, o, r, i, a));
|
|
1879
|
+
return n;
|
|
1880
|
+
}
|
|
1881
|
+
if (e instanceof Set) {
|
|
1882
|
+
let n = /* @__PURE__ */ new Set();
|
|
1883
|
+
i.set(e, n);
|
|
1884
|
+
for (let o of e) n.add(cloneDeepWithImpl(o, void 0, r, i, a));
|
|
1885
|
+
return n;
|
|
1886
|
+
}
|
|
1887
|
+
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray();
|
|
1888
|
+
if (isTypedArray$1(e)) {
|
|
1889
|
+
let n = new (Object.getPrototypeOf(e)).constructor(e.length);
|
|
1890
|
+
i.set(e, n);
|
|
1891
|
+
for (let o = 0; o < e.length; o++) n[o] = cloneDeepWithImpl(e[o], o, r, i, a);
|
|
1892
|
+
return n;
|
|
1893
|
+
}
|
|
1894
|
+
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
|
|
1895
|
+
if (e instanceof DataView) {
|
|
1896
|
+
let n = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
|
|
1897
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1898
|
+
}
|
|
1899
|
+
if (typeof File < "u" && e instanceof File) {
|
|
1900
|
+
let n = new File([e], e.name, { type: e.type });
|
|
1901
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1902
|
+
}
|
|
1903
|
+
if (typeof Blob < "u" && e instanceof Blob) {
|
|
1904
|
+
let n = new Blob([e], { type: e.type });
|
|
1905
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1906
|
+
}
|
|
1907
|
+
if (e instanceof Error) {
|
|
1908
|
+
let n = new e.constructor();
|
|
1909
|
+
return i.set(e, n), n.message = e.message, n.name = e.name, n.stack = e.stack, n.cause = e.cause, copyProperties(n, e, r, i, a), n;
|
|
1910
|
+
}
|
|
1911
|
+
if (e instanceof Boolean) {
|
|
1912
|
+
let n = new Boolean(e.valueOf());
|
|
1913
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1914
|
+
}
|
|
1915
|
+
if (e instanceof Number) {
|
|
1916
|
+
let n = new Number(e.valueOf());
|
|
1917
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1918
|
+
}
|
|
1919
|
+
if (e instanceof String) {
|
|
1920
|
+
let n = new String(e.valueOf());
|
|
1921
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1922
|
+
}
|
|
1923
|
+
if (typeof e == "object" && isCloneableObject(e)) {
|
|
1924
|
+
let n = Object.create(Object.getPrototypeOf(e));
|
|
1925
|
+
return i.set(e, n), copyProperties(n, e, r, i, a), n;
|
|
1926
|
+
}
|
|
1927
|
+
return e;
|
|
1928
|
+
}
|
|
1929
|
+
function copyProperties(e, n, r = e, i, a) {
|
|
1930
|
+
let o = [...Object.keys(n), ...getSymbols(n)];
|
|
1931
|
+
for (let s = 0; s < o.length; s++) {
|
|
1932
|
+
let c = o[s], l = Object.getOwnPropertyDescriptor(e, c);
|
|
1933
|
+
(l == null || l.writable) && (e[c] = cloneDeepWithImpl(n[c], c, r, i, a));
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
function isCloneableObject(e) {
|
|
1937
|
+
switch (getTag(e)) {
|
|
1938
|
+
case argumentsTag:
|
|
1939
|
+
case arrayTag:
|
|
1940
|
+
case arrayBufferTag:
|
|
1941
|
+
case dataViewTag:
|
|
1942
|
+
case booleanTag:
|
|
1943
|
+
case dateTag:
|
|
1944
|
+
case float32ArrayTag:
|
|
1945
|
+
case float64ArrayTag:
|
|
1946
|
+
case int8ArrayTag:
|
|
1947
|
+
case int16ArrayTag:
|
|
1948
|
+
case int32ArrayTag:
|
|
1949
|
+
case mapTag:
|
|
1950
|
+
case numberTag:
|
|
1951
|
+
case objectTag:
|
|
1952
|
+
case regexpTag:
|
|
1953
|
+
case setTag:
|
|
1954
|
+
case stringTag:
|
|
1955
|
+
case symbolTag:
|
|
1956
|
+
case uint8ArrayTag:
|
|
1957
|
+
case uint8ClampedArrayTag:
|
|
1958
|
+
case uint16ArrayTag:
|
|
1959
|
+
case uint32ArrayTag: return !0;
|
|
1960
|
+
default: return !1;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
function cloneDeep$1(e) {
|
|
1964
|
+
return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
|
|
1965
|
+
}
|
|
1966
|
+
function matches(e) {
|
|
1967
|
+
return e = cloneDeep$1(e), (n) => isMatch(n, e);
|
|
1968
|
+
}
|
|
1969
|
+
function cloneDeepWith(e, n) {
|
|
1970
|
+
return cloneDeepWith$1(e, (r, i, a, o) => {
|
|
1971
|
+
let s = n?.(r, i, a, o);
|
|
1972
|
+
if (s !== void 0) return s;
|
|
1973
|
+
if (typeof e == "object") switch (Object.prototype.toString.call(e)) {
|
|
1974
|
+
case numberTag:
|
|
1975
|
+
case stringTag:
|
|
1976
|
+
case booleanTag: {
|
|
1977
|
+
let n = new e.constructor(e?.valueOf());
|
|
1978
|
+
return copyProperties(n, e), n;
|
|
1979
|
+
}
|
|
1980
|
+
case argumentsTag: {
|
|
1981
|
+
let n = {};
|
|
1982
|
+
return copyProperties(n, e), n.length = e.length, n[Symbol.iterator] = e[Symbol.iterator], n;
|
|
1983
|
+
}
|
|
1984
|
+
default: return;
|
|
1985
|
+
}
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1988
|
+
function cloneDeep(e) {
|
|
1989
|
+
return cloneDeepWith(e);
|
|
1990
|
+
}
|
|
1991
|
+
var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
|
|
1992
|
+
function isIndex(e, n = 2 ** 53 - 1) {
|
|
1993
|
+
switch (typeof e) {
|
|
1994
|
+
case "number": return Number.isInteger(e) && e >= 0 && e < n;
|
|
1995
|
+
case "symbol": return !1;
|
|
1996
|
+
case "string": return IS_UNSIGNED_INTEGER.test(e);
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
function isArguments(e) {
|
|
2000
|
+
return typeof e == "object" && !!e && getTag(e) === "[object Arguments]";
|
|
2001
|
+
}
|
|
2002
|
+
function has(e, n) {
|
|
2003
|
+
let r;
|
|
2004
|
+
if (r = Array.isArray(n) ? n : typeof n == "string" && isDeepKey(n) && e?.[n] == null ? toPath(n) : [n], r.length === 0) return !1;
|
|
2005
|
+
let i = e;
|
|
2006
|
+
for (let e = 0; e < r.length; e++) {
|
|
2007
|
+
let n = r[e];
|
|
2008
|
+
if ((i == null || !Object.hasOwn(i, n)) && !((Array.isArray(i) || isArguments(i)) && isIndex(n) && n < i.length)) return !1;
|
|
2009
|
+
i = i[n];
|
|
2010
|
+
}
|
|
2011
|
+
return !0;
|
|
2012
|
+
}
|
|
2013
|
+
function matchesProperty(e, n) {
|
|
2014
|
+
switch (typeof e) {
|
|
2015
|
+
case "object":
|
|
2016
|
+
Object.is(e?.valueOf(), -0) && (e = "-0");
|
|
2017
|
+
break;
|
|
2018
|
+
case "number":
|
|
2019
|
+
e = toKey(e);
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
return n = cloneDeep(n), function(r) {
|
|
2023
|
+
let i = get(r, e);
|
|
2024
|
+
return i === void 0 ? has(r, e) : n === void 0 ? i === void 0 : isMatch(i, n);
|
|
2025
|
+
};
|
|
2026
|
+
}
|
|
2027
|
+
function iteratee(e) {
|
|
2028
|
+
if (e == null) return identity$1;
|
|
2029
|
+
switch (typeof e) {
|
|
2030
|
+
case "function": return e;
|
|
2031
|
+
case "object": return Array.isArray(e) && e.length === 2 ? matchesProperty(e[0], e[1]) : matches(e);
|
|
2032
|
+
case "string":
|
|
2033
|
+
case "symbol":
|
|
2034
|
+
case "number": return property(e);
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
function isObjectLike(e) {
|
|
2038
|
+
return typeof e == "object" && !!e;
|
|
2039
|
+
}
|
|
2040
|
+
function isArrayLikeObject(e) {
|
|
2041
|
+
return isObjectLike(e) && isArrayLike(e);
|
|
2042
|
+
}
|
|
2043
|
+
function last$1(e) {
|
|
2044
|
+
return e[e.length - 1];
|
|
2045
|
+
}
|
|
2046
|
+
function last(e) {
|
|
2047
|
+
if (isArrayLike(e)) return last$1(toArray$1(e));
|
|
2048
|
+
}
|
|
2049
|
+
function isString(e) {
|
|
2050
|
+
return typeof e == "string" || e instanceof String;
|
|
2051
|
+
}
|
|
2052
|
+
function isArray(e) {
|
|
2053
|
+
return Array.isArray(e);
|
|
2054
|
+
}
|
|
2055
|
+
function remove$1(e, n) {
|
|
2056
|
+
let r = e.slice(), i = [], a = 0;
|
|
2057
|
+
for (let o = 0; o < e.length; o++) {
|
|
2058
|
+
if (n(e[o], o, r)) {
|
|
2059
|
+
i.push(e[o]);
|
|
2060
|
+
continue;
|
|
2061
|
+
}
|
|
2062
|
+
if (!Object.hasOwn(e, o)) {
|
|
2063
|
+
delete e[a++];
|
|
2064
|
+
continue;
|
|
2065
|
+
}
|
|
2066
|
+
e[a++] = e[o];
|
|
2067
|
+
}
|
|
2068
|
+
return e.length = a, i;
|
|
2069
|
+
}
|
|
2070
|
+
function remove(e, n = identity$1) {
|
|
2071
|
+
return remove$1(e, iteratee(n));
|
|
2072
|
+
}
|
|
2073
|
+
function random$1(e, n) {
|
|
2074
|
+
if (n ?? (n = e, e = 0), e >= n) throw Error("Invalid input: The maximum value must be greater than the minimum value.");
|
|
2075
|
+
return Math.random() * (n - e) + e;
|
|
2076
|
+
}
|
|
2077
|
+
function randomInt(e, n) {
|
|
2078
|
+
return Math.floor(random$1(e, n));
|
|
2079
|
+
}
|
|
2080
|
+
function clamp$2(e, n, r) {
|
|
2081
|
+
return r == null ? Math.min(e, n) : Math.min(Math.max(e, n), r);
|
|
2082
|
+
}
|
|
2083
|
+
function clamp$1(e, n, r) {
|
|
2084
|
+
return Number.isNaN(n) && (n = 0), Number.isNaN(r) && (r = 0), clamp$2(e, n, r);
|
|
2085
|
+
}
|
|
2086
|
+
function isNumber(e) {
|
|
2087
|
+
return typeof e == "number" || e instanceof Number;
|
|
2088
|
+
}
|
|
2089
|
+
function uniqBy$1(e, n) {
|
|
2090
|
+
let r = /* @__PURE__ */ new Map();
|
|
2091
|
+
for (let i = 0; i < e.length; i++) {
|
|
2092
|
+
let a = e[i], o = n(a);
|
|
2093
|
+
r.has(o) || r.set(o, a);
|
|
2094
|
+
}
|
|
2095
|
+
return Array.from(r.values());
|
|
2096
|
+
}
|
|
2097
|
+
function uniqBy(e, n = identity$1) {
|
|
2098
|
+
return isArrayLikeObject(e) ? uniqBy$1(Array.from(e), iteratee(n)) : [];
|
|
2099
|
+
}
|
|
2100
|
+
function debounce$1(e, n, { signal: r, edges: i } = {}) {
|
|
2101
|
+
let a, o = null, s = i != null && i.includes("leading"), c = i == null || i.includes("trailing"), l = () => {
|
|
2102
|
+
o !== null && (e.apply(a, o), a = void 0, o = null);
|
|
2103
|
+
}, u = () => {
|
|
2104
|
+
c && l(), m();
|
|
2105
|
+
}, d = null, f = () => {
|
|
2106
|
+
d != null && clearTimeout(d), d = setTimeout(() => {
|
|
2107
|
+
d = null, u();
|
|
2108
|
+
}, n);
|
|
2109
|
+
}, p = () => {
|
|
2110
|
+
d !== null && (clearTimeout(d), d = null);
|
|
2111
|
+
}, m = () => {
|
|
2112
|
+
p(), a = void 0, o = null;
|
|
2113
|
+
}, h = () => {
|
|
2114
|
+
l();
|
|
2115
|
+
}, g = function(...e) {
|
|
2116
|
+
if (r?.aborted) return;
|
|
2117
|
+
a = this, o = e;
|
|
2118
|
+
let n = d == null;
|
|
2119
|
+
f(), s && n && l();
|
|
2120
|
+
};
|
|
2121
|
+
return g.schedule = f, g.cancel = m, g.flush = h, r?.addEventListener("abort", m, { once: !0 }), g;
|
|
2122
|
+
}
|
|
2123
|
+
function debounce(e, n = 0, r = {}) {
|
|
2124
|
+
typeof r != "object" && (r = {});
|
|
2125
|
+
let { leading: i = !1, trailing: a = !0, maxWait: o } = r, s = [, ,];
|
|
2126
|
+
i && (s[0] = "leading"), a && (s[1] = "trailing");
|
|
2127
|
+
let c, l = null, u = debounce$1(function(...n) {
|
|
2128
|
+
c = e.apply(this, n), l = null;
|
|
2129
|
+
}, n, { edges: s }), d = function(...n) {
|
|
2130
|
+
return o != null && (l === null && (l = Date.now()), Date.now() - l >= o) ? (c = e.apply(this, n), l = Date.now(), u.cancel(), u.schedule(), c) : (u.apply(this, n), c);
|
|
2131
|
+
};
|
|
2132
|
+
return d.cancel = u.cancel, d.flush = () => (u.flush(), c), d;
|
|
2133
|
+
}
|
|
2134
|
+
function decimalAdjust(e, n, r = 0) {
|
|
2135
|
+
if (n = Number(n), Object.is(n, -0) && (n = "-0"), r = Math.min(Number.parseInt(r, 10), 292), r) {
|
|
2136
|
+
let [i, a = 0] = n.toString().split("e"), o = Math[e](Number(`${i}e${Number(a) + r}`));
|
|
2137
|
+
Object.is(o, -0) && (o = "-0");
|
|
2138
|
+
let [s, c = 0] = o.toString().split("e");
|
|
2139
|
+
return Number(`${s}e${Number(c) - r}`);
|
|
2140
|
+
}
|
|
2141
|
+
return Math[e](Number(n));
|
|
2142
|
+
}
|
|
2143
|
+
function ceil(e, n = 0) {
|
|
2144
|
+
return decimalAdjust("ceil", e, n);
|
|
2145
|
+
}
|
|
2146
|
+
function random(...e) {
|
|
2147
|
+
let n = 0, r = 1, i = !1;
|
|
2148
|
+
switch (e.length) {
|
|
2149
|
+
case 1:
|
|
2150
|
+
typeof e[0] == "boolean" ? i = e[0] : r = e[0];
|
|
2151
|
+
break;
|
|
2152
|
+
case 2: typeof e[1] == "boolean" ? (r = e[0], i = e[1]) : (n = e[0], r = e[1]);
|
|
2153
|
+
case 3: typeof e[2] == "object" && e[2] != null && e[2][e[1]] === e[0] ? (n = 0, r = e[0], i = !1) : (n = e[0], r = e[1], i = e[2]);
|
|
2154
|
+
}
|
|
2155
|
+
return typeof n != "number" && (n = Number(n)), typeof r != "number" && (n = Number(r)), n ||= 0, r ||= 0, n > r && ([n, r] = [r, n]), n = clamp$1(n, -(2 ** 53 - 1), 2 ** 53 - 1), r = clamp$1(r, -(2 ** 53 - 1), 2 ** 53 - 1), n === r ? n : i ? random$1(n, r + 1) : randomInt(n, r + 1);
|
|
2156
|
+
}
|
|
2157
|
+
function noop$1(...e) {}
|
|
2158
|
+
function isPrototype(e) {
|
|
2159
|
+
let n = e?.constructor;
|
|
2160
|
+
return e === (typeof n == "function" ? n.prototype : Object.prototype);
|
|
2161
|
+
}
|
|
2162
|
+
function isTypedArray(e) {
|
|
2163
|
+
return isTypedArray$1(e);
|
|
2164
|
+
}
|
|
2165
|
+
function fromPairs(e) {
|
|
2166
|
+
if (!isArrayLike(e)) return {};
|
|
2167
|
+
let n = {};
|
|
2168
|
+
for (let r = 0; r < e.length; r++) {
|
|
2169
|
+
let [i, a] = e[r];
|
|
2170
|
+
n[i] = a;
|
|
2171
|
+
}
|
|
2172
|
+
return n;
|
|
2173
|
+
}
|
|
2174
|
+
function isFunction(e) {
|
|
2175
|
+
return typeof e == "function";
|
|
2176
|
+
}
|
|
2177
|
+
function isEmpty(e) {
|
|
2178
|
+
if (e == null) return !0;
|
|
2179
|
+
if (isArrayLike(e)) return typeof e.splice != "function" && typeof e != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(e)) && !isTypedArray(e) && !isArguments(e) ? !1 : e.length === 0;
|
|
2180
|
+
if (typeof e == "object") {
|
|
2181
|
+
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
2182
|
+
let n = Object.keys(e);
|
|
2183
|
+
return isPrototype(e) ? n.filter((e) => e !== "constructor").length === 0 : n.length === 0;
|
|
2184
|
+
}
|
|
2185
|
+
return !0;
|
|
2186
|
+
}
|
|
2187
|
+
function isError(e) {
|
|
2188
|
+
return getTag(e) === "[object Error]";
|
|
2189
|
+
}
|
|
2190
|
+
var loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
1705
2191
|
__name: "loading",
|
|
1706
2192
|
props: {
|
|
1707
2193
|
size: {},
|
|
@@ -1712,7 +2198,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1712
2198
|
textColor: {}
|
|
1713
2199
|
},
|
|
1714
2200
|
setup(e) {
|
|
1715
|
-
useCssVars((e) => ({
|
|
2201
|
+
useCssVars((e) => ({ v6a9760b4: r.value }));
|
|
1716
2202
|
let n = e, r = computed(() => isNumber(n.size) ? `${n.size}px` : n.size);
|
|
1717
2203
|
return (e, r) => {
|
|
1718
2204
|
let i = Loading;
|
|
@@ -1726,7 +2212,22 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
|
|
|
1726
2212
|
let r = e.__vccOpts || e;
|
|
1727
2213
|
for (let [e, i] of n) r[e] = i;
|
|
1728
2214
|
return r;
|
|
1729
|
-
}, loading_default = /* @__PURE__ */ __plugin_vue_export_helper_default(loading_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
2215
|
+
}, loading_default = /* @__PURE__ */ __plugin_vue_export_helper_default(loading_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-472e17a3"]]);
|
|
2216
|
+
const useGlobalVar = (e, n) => (window.$api.__core_lib__ ??= {})[n] ??= e;
|
|
2217
|
+
var layout_exports = /* @__PURE__ */ __export({ useZIndex: () => useZIndex }), allLayers = useGlobalVar(shallowReactive([]), "utils/layers");
|
|
2218
|
+
const useZIndex = (e) => {
|
|
2219
|
+
let n = Symbol("layer"), r = watch(toRef(e), (e) => {
|
|
2220
|
+
e ? allLayers.push(n) : remove(allLayers, (e) => e === n);
|
|
2221
|
+
}, { immediate: !0 });
|
|
2222
|
+
try {
|
|
2223
|
+
onUnmounted(r);
|
|
2224
|
+
} catch {}
|
|
2225
|
+
return [
|
|
2226
|
+
computed(() => (allLayers.indexOf(n) + 1) * 10),
|
|
2227
|
+
computed(() => last(allLayers) === n),
|
|
2228
|
+
r
|
|
2229
|
+
];
|
|
2230
|
+
};
|
|
1730
2231
|
function tryOnScopeDispose(e) {
|
|
1731
2232
|
return getCurrentScope() ? (onScopeDispose(e), !0) : !1;
|
|
1732
2233
|
}
|
|
@@ -1753,13 +2254,13 @@ function makeDestructurable(e, n) {
|
|
|
1753
2254
|
}
|
|
1754
2255
|
var isClient = typeof window < "u" && typeof document < "u";
|
|
1755
2256
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1756
|
-
var notNullish = (e) => e != null, toString = Object.prototype.toString, isObject = (e) => toString.call(e) === "[object Object]", noop
|
|
2257
|
+
var notNullish = (e) => e != null, toString = Object.prototype.toString, isObject = (e) => toString.call(e) === "[object Object]", noop = () => {};
|
|
1757
2258
|
function toRef$1(...e) {
|
|
1758
2259
|
if (e.length !== 1) return toRef(...e);
|
|
1759
2260
|
let n = e[0];
|
|
1760
2261
|
return typeof n == "function" ? readonly(customRef(() => ({
|
|
1761
2262
|
get: n,
|
|
1762
|
-
set: noop
|
|
2263
|
+
set: noop
|
|
1763
2264
|
}))) : ref(n);
|
|
1764
2265
|
}
|
|
1765
2266
|
function createFilterWrapper(e, n) {
|
|
@@ -1776,8 +2277,8 @@ function createFilterWrapper(e, n) {
|
|
|
1776
2277
|
}
|
|
1777
2278
|
var bypassFilter = (e) => e();
|
|
1778
2279
|
function debounceFilter(e, n = {}) {
|
|
1779
|
-
let r, i, a = noop
|
|
1780
|
-
clearTimeout(e), a(), a = noop
|
|
2280
|
+
let r, i, a = noop, o = (e) => {
|
|
2281
|
+
clearTimeout(e), a(), a = noop;
|
|
1781
2282
|
}, s;
|
|
1782
2283
|
return (c) => {
|
|
1783
2284
|
let l = toValue(e), u = toValue(n.maxWait);
|
|
@@ -1791,10 +2292,10 @@ function debounceFilter(e, n = {}) {
|
|
|
1791
2292
|
};
|
|
1792
2293
|
}
|
|
1793
2294
|
function throttleFilter(...e) {
|
|
1794
|
-
let n = 0, r, i = !0, a = noop
|
|
2295
|
+
let n = 0, r, i = !0, a = noop, o, s, c, l, u;
|
|
1795
2296
|
!isRef(e[0]) && typeof e[0] == "object" ? {delay: s, trailing: c = !0, leading: l = !0, rejectOnCancel: u = !1} = e[0] : [s, c = !0, l = !0, u = !1] = e;
|
|
1796
2297
|
let d = () => {
|
|
1797
|
-
r && (clearTimeout(r), r = void 0, a(), a = noop
|
|
2298
|
+
r && (clearTimeout(r), r = void 0, a(), a = noop);
|
|
1798
2299
|
};
|
|
1799
2300
|
return (e) => {
|
|
1800
2301
|
let f = toValue(s), p = Date.now() - n, m = () => o = e();
|
|
@@ -1959,7 +2460,7 @@ function watchOnce(e, n, r) {
|
|
|
1959
2460
|
function computedAsync(e, n, r) {
|
|
1960
2461
|
let a;
|
|
1961
2462
|
a = isRef(r) ? { evaluating: r } : r || {};
|
|
1962
|
-
let { lazy: o = !1, flush: s = "pre", evaluating: c = void 0, shallow: l = !0, onError: u = globalThis.reportError ?? noop
|
|
2463
|
+
let { lazy: o = !1, flush: s = "pre", evaluating: c = void 0, shallow: l = !0, onError: u = globalThis.reportError ?? noop } = a, d = shallowRef(!o), f = l ? shallowRef(n) : ref(n), p = 0;
|
|
1963
2464
|
return watchEffect(async (n) => {
|
|
1964
2465
|
if (!d.value) return;
|
|
1965
2466
|
p++;
|
|
@@ -2052,23 +2553,24 @@ function useSupported(e) {
|
|
|
2052
2553
|
function useMutationObserver(e, n, r = {}) {
|
|
2053
2554
|
let { window: a = defaultWindow,...o } = r, s, c = /* @__PURE__ */ useSupported(() => a && "MutationObserver" in a), l = () => {
|
|
2054
2555
|
s &&= (s.disconnect(), void 0);
|
|
2055
|
-
}, u = computed(() => {
|
|
2056
|
-
let n = toValue(e)
|
|
2057
|
-
return new Set(
|
|
2058
|
-
}),
|
|
2556
|
+
}, u = watch(computed(() => {
|
|
2557
|
+
let n = toArray(toValue(e)).map(unrefElement).filter(notNullish);
|
|
2558
|
+
return new Set(n);
|
|
2559
|
+
}), (e) => {
|
|
2059
2560
|
l(), c.value && e.size && (s = new MutationObserver(n), e.forEach((e) => s.observe(e, o)));
|
|
2060
2561
|
}, {
|
|
2061
2562
|
immediate: !0,
|
|
2062
2563
|
flush: "post"
|
|
2063
|
-
}),
|
|
2064
|
-
|
|
2564
|
+
}), d = () => s?.takeRecords(), f = () => {
|
|
2565
|
+
u(), l();
|
|
2065
2566
|
};
|
|
2066
|
-
return tryOnScopeDispose(
|
|
2567
|
+
return tryOnScopeDispose(f), {
|
|
2067
2568
|
isSupported: c,
|
|
2068
|
-
stop:
|
|
2069
|
-
takeRecords:
|
|
2569
|
+
stop: f,
|
|
2570
|
+
takeRecords: d
|
|
2070
2571
|
};
|
|
2071
2572
|
}
|
|
2573
|
+
var DEFAULT_DELAY = 500, DEFAULT_THRESHOLD = 10;
|
|
2072
2574
|
function onLongPress(e, n, r) {
|
|
2073
2575
|
let a = computed(() => unrefElement(e)), o, s, c, l = !1;
|
|
2074
2576
|
function u() {
|
|
@@ -2076,7 +2578,7 @@ function onLongPress(e, n, r) {
|
|
|
2076
2578
|
}
|
|
2077
2579
|
function d(e) {
|
|
2078
2580
|
let n = r?.delay;
|
|
2079
|
-
return typeof n == "function" ? n(e) : n ??
|
|
2581
|
+
return typeof n == "function" ? n(e) : n ?? DEFAULT_DELAY;
|
|
2080
2582
|
}
|
|
2081
2583
|
function f(e) {
|
|
2082
2584
|
let [n, i, o] = [
|
|
@@ -2101,7 +2603,7 @@ function onLongPress(e, n, r) {
|
|
|
2101
2603
|
if (r?.modifiers?.self && e.target !== a.value || !s || r?.distanceThreshold === !1) return;
|
|
2102
2604
|
r?.modifiers?.prevent && e.preventDefault(), r?.modifiers?.stop && e.stopPropagation();
|
|
2103
2605
|
let n = e.x - s.x, i = e.y - s.y;
|
|
2104
|
-
Math.sqrt(n * n + i * i) >= (r?.distanceThreshold ??
|
|
2606
|
+
Math.sqrt(n * n + i * i) >= (r?.distanceThreshold ?? DEFAULT_THRESHOLD) && u();
|
|
2105
2607
|
}
|
|
2106
2608
|
let h = {
|
|
2107
2609
|
capture: r?.modifiers?.capture,
|
|
@@ -2136,7 +2638,7 @@ function useMediaQuery(e, n = {}) {
|
|
|
2136
2638
|
}
|
|
2137
2639
|
var _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__", handlers = /* @__PURE__ */ getHandlers();
|
|
2138
2640
|
function getHandlers() {
|
|
2139
|
-
return
|
|
2641
|
+
return globalKey in _global || (_global[globalKey] = _global[globalKey] || {}), _global[globalKey];
|
|
2140
2642
|
}
|
|
2141
2643
|
function getSSRHandler(e, n) {
|
|
2142
2644
|
return handlers[e] || n;
|
|
@@ -2268,10 +2770,10 @@ function useStorage(e, n, r, a = {}) {
|
|
|
2268
2770
|
function useResizeObserver(e, n, r = {}) {
|
|
2269
2771
|
let { window: a = defaultWindow,...o } = r, s, c = /* @__PURE__ */ useSupported(() => a && "ResizeObserver" in a), l = () => {
|
|
2270
2772
|
s &&= (s.disconnect(), void 0);
|
|
2271
|
-
}, u = computed(() => {
|
|
2773
|
+
}, u = watch(computed(() => {
|
|
2272
2774
|
let n = toValue(e);
|
|
2273
2775
|
return Array.isArray(n) ? n.map((e) => unrefElement(e)) : [unrefElement(n)];
|
|
2274
|
-
}),
|
|
2776
|
+
}), (e) => {
|
|
2275
2777
|
if (l(), c.value && a) {
|
|
2276
2778
|
s = new ResizeObserver(n);
|
|
2277
2779
|
for (let n of e) n && s.observe(n, o);
|
|
@@ -2279,49 +2781,17 @@ function useResizeObserver(e, n, r = {}) {
|
|
|
2279
2781
|
}, {
|
|
2280
2782
|
immediate: !0,
|
|
2281
2783
|
flush: "post"
|
|
2282
|
-
}),
|
|
2283
|
-
l(),
|
|
2784
|
+
}), d = () => {
|
|
2785
|
+
l(), u();
|
|
2284
2786
|
};
|
|
2285
|
-
return tryOnScopeDispose(
|
|
2787
|
+
return tryOnScopeDispose(d), {
|
|
2286
2788
|
isSupported: c,
|
|
2287
|
-
stop:
|
|
2288
|
-
};
|
|
2289
|
-
}
|
|
2290
|
-
function useElementSize(e, n = {
|
|
2291
|
-
width: 0,
|
|
2292
|
-
height: 0
|
|
2293
|
-
}, r = {}) {
|
|
2294
|
-
let { window: a = defaultWindow, box: o = "content-box" } = r, s = computed(() => (unrefElement(e)?.namespaceURI)?.includes("svg")), c = shallowRef(n.width), l = shallowRef(n.height), { stop: u } = useResizeObserver(e, ([n]) => {
|
|
2295
|
-
let r = o === "border-box" ? n.borderBoxSize : o === "content-box" ? n.contentBoxSize : n.devicePixelContentBoxSize;
|
|
2296
|
-
if (a && s.value) {
|
|
2297
|
-
let n = unrefElement(e);
|
|
2298
|
-
if (n) {
|
|
2299
|
-
let e = n.getBoundingClientRect();
|
|
2300
|
-
c.value = e.width, l.value = e.height;
|
|
2301
|
-
}
|
|
2302
|
-
} else if (r) {
|
|
2303
|
-
let e = toArray(r);
|
|
2304
|
-
c.value = e.reduce((e, { inlineSize: n }) => e + n, 0), l.value = e.reduce((e, { blockSize: n }) => e + n, 0);
|
|
2305
|
-
} else c.value = n.contentRect.width, l.value = n.contentRect.height;
|
|
2306
|
-
}, r);
|
|
2307
|
-
tryOnMounted(() => {
|
|
2308
|
-
let r = unrefElement(e);
|
|
2309
|
-
r && (c.value = "offsetWidth" in r ? r.offsetWidth : n.width, l.value = "offsetHeight" in r ? r.offsetHeight : n.height);
|
|
2310
|
-
});
|
|
2311
|
-
let d = watch(() => unrefElement(e), (e) => {
|
|
2312
|
-
c.value = e ? n.width : 0, l.value = e ? n.height : 0;
|
|
2313
|
-
});
|
|
2314
|
-
function f() {
|
|
2315
|
-
u(), d();
|
|
2316
|
-
}
|
|
2317
|
-
return {
|
|
2318
|
-
width: c,
|
|
2319
|
-
height: l,
|
|
2320
|
-
stop: f
|
|
2789
|
+
stop: d
|
|
2321
2790
|
};
|
|
2322
2791
|
}
|
|
2792
|
+
var ARRIVED_STATE_THRESHOLD_PIXELS = 1;
|
|
2323
2793
|
function useScroll(e, n = {}) {
|
|
2324
|
-
let { throttle: r = 0, idle: a = 200, onStop: o = noop
|
|
2794
|
+
let { throttle: r = 0, idle: a = 200, onStop: o = noop, onScroll: s = noop, offset: c = {
|
|
2325
2795
|
left: 0,
|
|
2326
2796
|
right: 0,
|
|
2327
2797
|
top: 0,
|
|
@@ -2375,16 +2845,14 @@ function useScroll(e, n = {}) {
|
|
|
2375
2845
|
if (!f) return;
|
|
2376
2846
|
let n = e?.document?.documentElement || e?.documentElement || unrefElement(e), { display: r, flexDirection: i, direction: a } = getComputedStyle(n), o = a === "rtl" ? -1 : 1, s = n.scrollLeft;
|
|
2377
2847
|
w.left = s < h.value, w.right = s > h.value;
|
|
2378
|
-
let l = Math.abs(s * o) <= (c.left || 0), u = Math.abs(s * o) + n.clientWidth >= n.scrollWidth - (c.right || 0) -
|
|
2848
|
+
let l = Math.abs(s * o) <= (c.left || 0), u = Math.abs(s * o) + n.clientWidth >= n.scrollWidth - (c.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
|
|
2379
2849
|
r === "flex" && i === "row-reverse" ? (C.left = u, C.right = l) : (C.left = l, C.right = u), h.value = s;
|
|
2380
2850
|
let d = n.scrollTop;
|
|
2381
2851
|
e === f.document && !d && (d = f.document.body.scrollTop), w.top = d < g.value, w.bottom = d > g.value;
|
|
2382
|
-
let p = Math.abs(d) <= (c.top || 0), m = Math.abs(d) + n.clientHeight >= n.scrollHeight - (c.bottom || 0) -
|
|
2852
|
+
let p = Math.abs(d) <= (c.top || 0), m = Math.abs(d) + n.clientHeight >= n.scrollHeight - (c.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
|
|
2383
2853
|
r === "flex" && i === "column-reverse" ? (C.top = m, C.bottom = p) : (C.top = p, C.bottom = m), g.value = d;
|
|
2384
2854
|
}, k = (e) => {
|
|
2385
|
-
|
|
2386
|
-
let n = e.target.documentElement ?? e.target;
|
|
2387
|
-
O(n), S.value = !0, D(e), s(e);
|
|
2855
|
+
f && (O(e.target.documentElement ?? e.target), S.value = !0, D(e), s(e));
|
|
2388
2856
|
};
|
|
2389
2857
|
return useEventListener$1(e, "scroll", r ? /* @__PURE__ */ useThrottleFn(k, r, !0, !1) : k, u), tryOnMounted(() => {
|
|
2390
2858
|
try {
|
|
@@ -2428,30 +2896,11 @@ function useWindowSize(e = {}) {
|
|
|
2428
2896
|
};
|
|
2429
2897
|
u(), tryOnMounted(u);
|
|
2430
2898
|
let d = { passive: !0 };
|
|
2431
|
-
|
|
2432
|
-
let e = useMediaQuery("(orientation: portrait)");
|
|
2433
|
-
watch(e, () => u());
|
|
2434
|
-
}
|
|
2435
|
-
return {
|
|
2899
|
+
return useEventListener$1("resize", u, d), n && s === "visual" && n.visualViewport && useEventListener$1(n.visualViewport, "resize", u, d), a && watch(useMediaQuery("(orientation: portrait)"), () => u()), {
|
|
2436
2900
|
width: c,
|
|
2437
2901
|
height: l
|
|
2438
2902
|
};
|
|
2439
2903
|
}
|
|
2440
|
-
const useGlobalVar = (e, n) => (window.$api.__core_lib__ ??= {})[n] ??= e;
|
|
2441
|
-
var layout_exports = /* @__PURE__ */ __export({ useZIndex: () => useZIndex }), allLayers = useGlobalVar(shallowReactive([]), "utils/layers");
|
|
2442
|
-
const useZIndex = (e) => {
|
|
2443
|
-
let n = Symbol("layer"), r = toRef$1(e), a = watch(r, (e) => {
|
|
2444
|
-
e ? allLayers.push(n) : remove(allLayers, (e) => e === n);
|
|
2445
|
-
}, { immediate: !0 });
|
|
2446
|
-
try {
|
|
2447
|
-
onUnmounted(a);
|
|
2448
|
-
} catch {}
|
|
2449
|
-
return [
|
|
2450
|
-
computed(() => (allLayers.indexOf(n) + 1) * 10),
|
|
2451
|
-
computed(() => last(allLayers) === n),
|
|
2452
|
-
a
|
|
2453
|
-
];
|
|
2454
|
-
};
|
|
2455
2904
|
var floatPopup_default = /* @__PURE__ */ defineComponent({
|
|
2456
2905
|
__name: "floatPopup",
|
|
2457
2906
|
props: {
|
|
@@ -2481,7 +2930,7 @@ var floatPopup_default = /* @__PURE__ */ defineComponent({
|
|
|
2481
2930
|
Math.round(.3 * p.value),
|
|
2482
2931
|
Math.round(.6 * p.value),
|
|
2483
2932
|
Math.round(.9 * p.value)
|
|
2484
|
-
]), h = shallowRef(0), [g, v] = useZIndex(() => h.value > 0), y = noop;
|
|
2933
|
+
]), h = shallowRef(0), [g, v] = useZIndex(() => h.value > 0), y = noop$1;
|
|
2485
2934
|
return watch(f, () => {
|
|
2486
2935
|
f.value ? y = l.beforeEach(() => v.value ? f.value = !1 : void 0) : y();
|
|
2487
2936
|
}), onBeforeRouteLeave(y), s({
|
|
@@ -2493,22 +2942,22 @@ var floatPopup_default = /* @__PURE__ */ defineComponent({
|
|
|
2493
2942
|
},
|
|
2494
2943
|
isShowing: shallowReadonly(f),
|
|
2495
2944
|
height: shallowReadonly(h)
|
|
2496
|
-
}), (
|
|
2497
|
-
let
|
|
2498
|
-
return openBlock(), createBlock(Teleport, { to: "#popups" }, [e.overlay ? (openBlock(), createBlock(
|
|
2945
|
+
}), (i, s) => {
|
|
2946
|
+
let l = Overlay, d = FloatingPanel;
|
|
2947
|
+
return openBlock(), createBlock(Teleport, { to: "#popups" }, [e.overlay ? (openBlock(), createBlock(l, {
|
|
2499
2948
|
key: 0,
|
|
2500
2949
|
zIndex: unref(g),
|
|
2501
2950
|
show: f.value,
|
|
2502
|
-
onClick:
|
|
2951
|
+
onClick: s[0] ||= (e) => f.value = !1
|
|
2503
2952
|
}, null, 8, ["zIndex", "show"])) : createCommentVNode("", !0), createVNode(Transition, {
|
|
2504
|
-
onAfterLeave:
|
|
2953
|
+
onAfterLeave: s[3] ||= (e) => h.value = 0,
|
|
2505
2954
|
name: "van-slide-up"
|
|
2506
2955
|
}, {
|
|
2507
|
-
default: withCtx(() => [withDirectives(createVNode(
|
|
2508
|
-
onHeightChange:
|
|
2956
|
+
default: withCtx(() => [withDirectives(createVNode(d, {
|
|
2957
|
+
onHeightChange: s[1] ||= ({ height: e }) => e <= 0 && (f.value = !1),
|
|
2509
2958
|
anchors: m.value,
|
|
2510
2959
|
height: h.value,
|
|
2511
|
-
"onUpdate:height":
|
|
2960
|
+
"onUpdate:height": s[2] ||= (e) => h.value = e,
|
|
2512
2961
|
"content-draggable": !1,
|
|
2513
2962
|
"lock-scroll": e.lockScroll,
|
|
2514
2963
|
style: normalizeStyle([e.style, { zIndex: unref(g) }]),
|
|
@@ -2517,7 +2966,7 @@ var floatPopup_default = /* @__PURE__ */ defineComponent({
|
|
|
2517
2966
|
default: withCtx(() => [createElementVNode("div", {
|
|
2518
2967
|
class: "bg-(--van-background) w-full",
|
|
2519
2968
|
style: normalizeStyle({ height: `calc(${h.value}px - var(--van-floating-panel-header-height))` })
|
|
2520
|
-
}, [h.value == 0 ? createCommentVNode("", !0) : renderSlot(
|
|
2969
|
+
}, [h.value == 0 ? createCommentVNode("", !0) : renderSlot(i.$slots, "default", {
|
|
2521
2970
|
key: 0,
|
|
2522
2971
|
height: h.value
|
|
2523
2972
|
})], 4)]),
|
|
@@ -2554,17 +3003,19 @@ const showImagePreview$1 = (e, n = {}) => {
|
|
|
2554
3003
|
r.value = !1;
|
|
2555
3004
|
}
|
|
2556
3005
|
};
|
|
2557
|
-
}
|
|
2558
|
-
|
|
3006
|
+
};
|
|
3007
|
+
var _useTemp = useGlobalVar(defineStore("core:temp", (e) => {
|
|
3008
|
+
let n = shallowReactive(/* @__PURE__ */ new Map());
|
|
2559
3009
|
return {
|
|
2560
|
-
$apply: r,
|
|
2561
|
-
$has:
|
|
2562
|
-
$onlyGet:
|
|
2563
|
-
$applyRaw:
|
|
2564
|
-
$hasRaw:
|
|
2565
|
-
$onlyGetRaw:
|
|
3010
|
+
$apply: (e, r) => (e = `reactive:${e}`, n.has(e) || n.set(e, reactive(r())), n.get(e)),
|
|
3011
|
+
$has: e.action((e) => (e = `reactive:${e}`, n.has(e)), "has"),
|
|
3012
|
+
$onlyGet: e.action((e) => (e = `reactive:${e}`, n.get(e)), "onlyGet"),
|
|
3013
|
+
$applyRaw: e.action((e, r) => (e = `raw:${e}`, n.has(e) || n.set(e, r()), n.get(e)), "applyRaw"),
|
|
3014
|
+
$hasRaw: e.action((e) => (e = `raw:${e}`, n.has(e)), "hasRaw"),
|
|
3015
|
+
$onlyGetRaw: e.action((e) => (e = `raw:${e}`, n.get(e)), "onlyGetRaw")
|
|
2566
3016
|
};
|
|
2567
3017
|
}), "store/temp");
|
|
3018
|
+
const useTemp = () => _useTemp(window.$api.piniaInstance);
|
|
2568
3019
|
var image_default = /* @__PURE__ */ defineComponent({
|
|
2569
3020
|
__name: "image",
|
|
2570
3021
|
props: {
|
|
@@ -2629,10 +3080,10 @@ var image_default = /* @__PURE__ */ defineComponent({
|
|
|
2629
3080
|
isLoaded: S,
|
|
2630
3081
|
imageEl: j.value?.imageRef,
|
|
2631
3082
|
imageIns: j.value
|
|
2632
|
-
}), (
|
|
2633
|
-
let
|
|
3083
|
+
}), (r, i) => {
|
|
3084
|
+
let l = NImage, m = Icon;
|
|
2634
3085
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2635
|
-
y.value ? withDirectives((openBlock(), createBlock(
|
|
3086
|
+
y.value ? withDirectives((openBlock(), createBlock(l, mergeProps({
|
|
2636
3087
|
key: 0,
|
|
2637
3088
|
onError: h
|
|
2638
3089
|
}, d, {
|
|
@@ -2671,9 +3122,9 @@ var image_default = /* @__PURE__ */ defineComponent({
|
|
|
2671
3122
|
d.class
|
|
2672
3123
|
]]),
|
|
2673
3124
|
style: normalizeStyle(n.style),
|
|
2674
|
-
onClick:
|
|
2675
|
-
}, [
|
|
2676
|
-
unref(v).error.has(unref(f)) && !n.hideError ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [n.fallback ? (openBlock(), createBlock(
|
|
3125
|
+
onClick: i[0] ||= (e) => p("click")
|
|
3126
|
+
}, [r.$slots.loading ? renderSlot(r.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(loading_default, { key: 1 }))], 6)) : createCommentVNode("", !0),
|
|
3127
|
+
unref(v).error.has(unref(f)) && !n.hideError ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [n.fallback ? (openBlock(), createBlock(l, mergeProps({
|
|
2677
3128
|
key: 0,
|
|
2678
3129
|
onError: h
|
|
2679
3130
|
}, d, {
|
|
@@ -2706,14 +3157,14 @@ var image_default = /* @__PURE__ */ defineComponent({
|
|
|
2706
3157
|
n.inline ? "inline-flex" : "flex",
|
|
2707
3158
|
d.class
|
|
2708
3159
|
]]),
|
|
2709
|
-
onClick:
|
|
3160
|
+
onClick: i[1] ||= withModifiers(() => {
|
|
2710
3161
|
unref(v).error.delete(unref(f)), b();
|
|
2711
3162
|
}, ["stop"])
|
|
2712
|
-
}, [
|
|
3163
|
+
}, [r.$slots.loading ? renderSlot(r.$slots, "loading", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(m, {
|
|
2713
3164
|
name: "warning-o",
|
|
2714
3165
|
size: "2.5rem",
|
|
2715
3166
|
color: "var(--van-text-color-2)"
|
|
2716
|
-
}),
|
|
3167
|
+
}), i[2] ||= createElementVNode("div", { class: "text-sm text-(--van-text-color-2)" }, "点击重试", -1)], 64))], 2))], 64)) : createCommentVNode("", !0)
|
|
2717
3168
|
], 64);
|
|
2718
3169
|
};
|
|
2719
3170
|
}
|
|
@@ -2829,10 +3280,9 @@ let utilInterceptors;
|
|
|
2829
3280
|
throw r;
|
|
2830
3281
|
}
|
|
2831
3282
|
};
|
|
2832
|
-
e.createAutoRetry = (e,
|
|
2833
|
-
if (!
|
|
2834
|
-
|
|
2835
|
-
return i.config.__retryCount = (i.config.__retryCount ?? 0) + 1, await delay(500 * i.config.__retryCount), e(i.config);
|
|
3283
|
+
e.createAutoRetry = (e, n = 3) => async (r) => {
|
|
3284
|
+
if (!r.config || r.config.disretry || (r.config.__retryCount ?? 0) >= n) throw requestErrorResult("networkError_response", r);
|
|
3285
|
+
return r.config.__retryCount = (r.config.__retryCount ?? 0) + 1, await delay(500 * r.config.__retryCount), e(r.config);
|
|
2836
3286
|
}, e.createCheckIsUnauth = (e, r) => async (i) => {
|
|
2837
3287
|
if (!n(i)) return Promise.reject(i);
|
|
2838
3288
|
if (i?.response?.status === 401) {
|
|
@@ -2849,11 +3299,24 @@ let utilInterceptors;
|
|
|
2849
3299
|
if (!n(e)) return Promise.reject(e);
|
|
2850
3300
|
if (e.code === "ERR_NETWORK" && !e.response) throw requestErrorResult("networkError_request", e);
|
|
2851
3301
|
return Promise.reject(e);
|
|
2852
|
-
}
|
|
3302
|
+
}, e.devProxy = (e) => {
|
|
3303
|
+
let n = getAdapter([
|
|
3304
|
+
"xhr",
|
|
3305
|
+
"fetch",
|
|
3306
|
+
"http"
|
|
3307
|
+
]);
|
|
3308
|
+
if (window.$isDev) return n(e);
|
|
3309
|
+
let r = e.url?.replaceAll("/api0", "") ?? "";
|
|
3310
|
+
return console.log(e), n({
|
|
3311
|
+
...e,
|
|
3312
|
+
baseURL: "",
|
|
3313
|
+
url: `http://${location.host}/api0/${URL.canParse(r) ? r : `${e.baseURL}/${r}`}`
|
|
3314
|
+
});
|
|
3315
|
+
}, e._ = 1;
|
|
2853
3316
|
})(utilInterceptors ||= {});
|
|
2854
3317
|
const createAxios = (e, n = {}, r) => {
|
|
2855
3318
|
let i = axios.create(n);
|
|
2856
|
-
return r?.(i), i.interceptors.request.use(async (n) => (n.baseURL
|
|
3319
|
+
return r?.(i), i.interceptors.request.use(async (n) => (n.baseURL ??= await e(), n)), i.interceptors.response.use(void 0, utilInterceptors.isClientError), i.interceptors.response.use(void 0, utilInterceptors.createAutoRetry(i, 10)), {
|
|
2857
3320
|
get: async (e, n = {}) => utilInterceptors.useUnreadableRetry(() => i.get(e, n)),
|
|
2858
3321
|
post: async (e, n, r = {}) => utilInterceptors.useUnreadableRetry(() => i.post(e, n, r)),
|
|
2859
3322
|
postForm: async (e, n, r = {}) => utilInterceptors.useUnreadableRetry(() => i.postForm(e, n, r)),
|
|
@@ -2871,22 +3334,19 @@ var data_exports = /* @__PURE__ */ __export({
|
|
|
2871
3334
|
callbackToPromise: () => callbackToPromise
|
|
2872
3335
|
}), Struct = class {
|
|
2873
3336
|
toJSON() {
|
|
2874
|
-
return this.$$raw;
|
|
3337
|
+
return JSON.parse(JSON.stringify(this.$$raw));
|
|
2875
3338
|
}
|
|
2876
3339
|
constructor(e) {
|
|
2877
3340
|
this.$$raw = e;
|
|
2878
3341
|
}
|
|
2879
3342
|
}, PromiseContent = class e {
|
|
2880
3343
|
static _this;
|
|
2881
|
-
static
|
|
2882
|
-
this._this = useGlobalVar(this, "data/PromiseContent");
|
|
2883
|
-
}
|
|
3344
|
+
static #_ = this._this = useGlobalVar(this, "data/PromiseContent");
|
|
2884
3345
|
static isPromiseContent(e) {
|
|
2885
3346
|
return e instanceof this._this;
|
|
2886
3347
|
}
|
|
2887
3348
|
static fromPromise(e, n = (e) => e) {
|
|
2888
|
-
|
|
2889
|
-
return markRaw(r);
|
|
3349
|
+
return markRaw(new this._this(e, n));
|
|
2890
3350
|
}
|
|
2891
3351
|
constructor(e, n = (e) => e) {
|
|
2892
3352
|
this.promise = e, this.processor = n, this.loadPromise(e);
|
|
@@ -2897,9 +3357,10 @@ var data_exports = /* @__PURE__ */ __export({
|
|
|
2897
3357
|
let n = await e;
|
|
2898
3358
|
this.data.value = this.processor(n), this.isLoading.value = !1, this.isError.value = !1, this.isEmpty.value = isEmpty(n);
|
|
2899
3359
|
} catch (e) {
|
|
2900
|
-
this.data.value = void 0, this.isError.value = !0, this.errorCause.value = isError(e) ? e : Error(String(e));
|
|
3360
|
+
this.data.value = void 0, this.isError.value = !0, this.errorCause.value = isError(e) ? e : Error(String(e)), console.error("Non-throw Error [PromiseContent]", e);
|
|
2901
3361
|
}
|
|
2902
3362
|
}
|
|
3363
|
+
[Symbol.toStringTag] = "[class PromiseContent]";
|
|
2903
3364
|
setProcessor(n) {
|
|
2904
3365
|
return e.fromPromise(this.promise, n);
|
|
2905
3366
|
}
|
|
@@ -2944,15 +3405,12 @@ var data_exports = /* @__PURE__ */ __export({
|
|
|
2944
3405
|
this.generator = e(this.abortController.signal, this), generatorMap.set(this, e);
|
|
2945
3406
|
}
|
|
2946
3407
|
static _this;
|
|
2947
|
-
static
|
|
2948
|
-
this._this = useGlobalVar(this, "data/Stream");
|
|
2949
|
-
}
|
|
3408
|
+
static #_ = this._this = useGlobalVar(this, "data/Stream");
|
|
2950
3409
|
static isStream(e) {
|
|
2951
3410
|
return e instanceof this._this;
|
|
2952
3411
|
}
|
|
2953
3412
|
static create(e) {
|
|
2954
|
-
|
|
2955
|
-
return markRaw(n);
|
|
3413
|
+
return markRaw(new this._this(e));
|
|
2956
3414
|
}
|
|
2957
3415
|
abortController = new SmartAbortController();
|
|
2958
3416
|
generator;
|
|
@@ -3055,43 +3513,46 @@ const callbackToPromise = (e) => {
|
|
|
3055
3513
|
let { resolve: n, promise: r } = Promise.withResolvers();
|
|
3056
3514
|
return e(n), r;
|
|
3057
3515
|
};
|
|
3058
|
-
var _hoisted_1$
|
|
3516
|
+
var _hoisted_1$5 = {
|
|
3059
3517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3060
3518
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3061
3519
|
viewBox: "0 0 1024 1024"
|
|
3062
3520
|
}, ReloadOutlined_default = defineComponent({
|
|
3063
3521
|
name: "ReloadOutlined",
|
|
3064
3522
|
render: function(e, n) {
|
|
3065
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3523
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$5, n[0] ||= [createElementVNode("path", {
|
|
3066
3524
|
d: "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z",
|
|
3067
3525
|
fill: "currentColor"
|
|
3068
3526
|
}, null, -1)]);
|
|
3069
3527
|
}
|
|
3070
|
-
}), _hoisted_1$
|
|
3528
|
+
}), _hoisted_1$4 = {
|
|
3071
3529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3072
3530
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3073
3531
|
viewBox: "0 0 24 24"
|
|
3074
3532
|
}, MoreVertRound_default = defineComponent({
|
|
3075
3533
|
name: "MoreVertRound",
|
|
3076
3534
|
render: function(e, n) {
|
|
3077
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3535
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$4, n[0] ||= [createElementVNode("path", {
|
|
3078
3536
|
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z",
|
|
3079
3537
|
fill: "currentColor"
|
|
3080
3538
|
}, null, -1)]);
|
|
3081
3539
|
}
|
|
3082
|
-
}), _hoisted_1$
|
|
3540
|
+
}), _hoisted_1$3 = {
|
|
3083
3541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3084
3542
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
3085
3543
|
viewBox: "0 0 24 24"
|
|
3086
3544
|
}, WifiTetheringErrorRound_default = defineComponent({
|
|
3087
3545
|
name: "WifiTetheringErrorRound",
|
|
3088
3546
|
render: function(e, n) {
|
|
3089
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
3547
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$3, n[0] ||= [createElementVNode("path", {
|
|
3090
3548
|
d: "M10.66 7.14c-2.24.48-4.04 2.3-4.52 4.54c-.37 1.75.02 3.38.89 4.66c.34.51 1.08.55 1.51.11c.35-.35.37-.88.1-1.28c-.5-.76-.75-1.71-.61-2.73c.23-1.74 1.67-3.17 3.41-3.4A4.003 4.003 0 0 1 16 13c0 .8-.24 1.54-.64 2.16c-.27.41-.25.95.1 1.29c.43.43 1.17.4 1.51-.11C17.62 15.4 18 14.25 18 13c0-3.75-3.45-6.7-7.34-5.86zm-.41-3.99c-4.05.69-7.19 3.69-8.03 7.72c-.66 3.17.2 6.16 1.97 8.38c.37.46 1.07.49 1.49.07c.36-.36.39-.93.07-1.32a8.004 8.004 0 0 1-1.66-6.28c.55-3.47 3.42-6.24 6.92-6.65c2.76-.33 5.27.74 6.93 2.59c.2.21.47.34.76.34c.85 0 1.34-1.01.77-1.65c-2.19-2.45-5.56-3.82-9.22-3.2zM12 11c-1.1 0-2 .9-2 2c0 .55.23 1.05.59 1.41c.36.36.86.59 1.41.59s1.05-.23 1.41-.59c.36-.36.59-.86.59-1.41c0-1.1-.9-2-2-2zm9-1c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1zm0 8c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1z",
|
|
3091
3549
|
fill: "currentColor"
|
|
3092
3550
|
}, null, -1)]);
|
|
3093
3551
|
}
|
|
3094
|
-
}), _hoisted_1$
|
|
3552
|
+
}), _hoisted_1$2 = { class: "relative size-full overflow-hidden" }, _hoisted_2$1 = { key: 2 }, _hoisted_3$1 = {
|
|
3553
|
+
key: 3,
|
|
3554
|
+
class: "!size-full"
|
|
3555
|
+
}, _hoisted_4$1 = {
|
|
3095
3556
|
key: 4,
|
|
3096
3557
|
class: "flex items-center gap-3 justify-around"
|
|
3097
3558
|
}, _hoisted_5$1 = { class: "flex gap-2 flex-col justify-center text-white" }, _hoisted_6$1 = { class: "text-xs text-wrap" }, content_default = /* @__PURE__ */ defineComponent({
|
|
@@ -3169,7 +3630,8 @@ var _hoisted_1$6 = {
|
|
|
3169
3630
|
left: "50%",
|
|
3170
3631
|
top: "8px",
|
|
3171
3632
|
translateX: "-50%",
|
|
3172
|
-
backgroundColor: "#ffffff"
|
|
3633
|
+
backgroundColor: "#ffffff",
|
|
3634
|
+
borderRadius: "100%"
|
|
3173
3635
|
},
|
|
3174
3636
|
isErrorNoData: {
|
|
3175
3637
|
opacity: 1,
|
|
@@ -3237,16 +3699,16 @@ var _hoisted_1$6 = {
|
|
|
3237
3699
|
borderRadius: "4px"
|
|
3238
3700
|
}
|
|
3239
3701
|
}, h = computed(() => !d.hideLoading && f.value.isLoading ? f.value.isEmpty ? "isLoadingNoData" : "isLoadingData" : !d.hideError && f.value.isError ? f.value.isEmpty ? "isErrorNoData" : "isErrorData" : !d.hideEmpty && f.value.isNoResult ? "isEmpty" : "done"), g = useTemplateRef("cont");
|
|
3240
|
-
return n({ cont: g }), (
|
|
3241
|
-
let
|
|
3242
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3702
|
+
return n({ cont: g }), (n, i) => {
|
|
3703
|
+
let p = Loading, v = NEmpty, y = NButton, b = NIcon, S = NResult, C = AnimatePresence;
|
|
3704
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", {
|
|
3243
3705
|
class: normalizeClass(["relative size-full", [d.class]]),
|
|
3244
3706
|
ref_key: "cont",
|
|
3245
3707
|
ref: g
|
|
3246
|
-
}, [f.value.isEmpty ? createCommentVNode("", !0) : renderSlot(
|
|
3708
|
+
}, [f.value.isEmpty ? createCommentVNode("", !0) : renderSlot(n.$slots, "default", {
|
|
3247
3709
|
key: 0,
|
|
3248
3710
|
data: f.value.data
|
|
3249
|
-
})], 2), createVNode(
|
|
3711
|
+
})], 2), createVNode(C, null, {
|
|
3250
3712
|
default: withCtx(() => [createVNode(unref(motion).div, {
|
|
3251
3713
|
initial: {
|
|
3252
3714
|
opacity: 0,
|
|
@@ -3256,10 +3718,10 @@ var _hoisted_1$6 = {
|
|
|
3256
3718
|
},
|
|
3257
3719
|
variants: m,
|
|
3258
3720
|
animate: h.value,
|
|
3259
|
-
class: "
|
|
3721
|
+
class: "shadow flex justify-center items-center scale-100 absolute whitespace-nowrap"
|
|
3260
3722
|
}, {
|
|
3261
3723
|
default: withCtx(() => [createVNode(Transition, { name: "van-fade" }, {
|
|
3262
|
-
default: withCtx(() => [h.value === "isLoadingNoData" ? (openBlock(), createBlock(
|
|
3724
|
+
default: withCtx(() => [h.value === "isLoadingNoData" ? (openBlock(), createBlock(p, {
|
|
3263
3725
|
key: 0,
|
|
3264
3726
|
size: "25px",
|
|
3265
3727
|
color: "var(--p-color)"
|
|
@@ -3268,28 +3730,28 @@ var _hoisted_1$6 = {
|
|
|
3268
3730
|
size: "10px",
|
|
3269
3731
|
color: "white"
|
|
3270
3732
|
}, {
|
|
3271
|
-
default: withCtx(() => [...
|
|
3733
|
+
default: withCtx(() => [...i[2] ||= [createTextVNode("加载中", -1)]]),
|
|
3272
3734
|
_: 1
|
|
3273
|
-
})) : h.value === "isEmpty" ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(
|
|
3735
|
+
})) : h.value === "isEmpty" ? (openBlock(), createElementBlock("div", _hoisted_2$1, [createVNode(v, {
|
|
3274
3736
|
description: "无结果",
|
|
3275
3737
|
class: normalizeClass(["w-full !justify-center", [e.classEmpty]]),
|
|
3276
3738
|
style: normalizeStyle([e.style, e.styleEmpty])
|
|
3277
|
-
}, null, 8, ["class", "style"])])) : h.value === "isErrorNoData" ? (openBlock(), createElementBlock("div", _hoisted_3$1, [createVNode(
|
|
3739
|
+
}, null, 8, ["class", "style"])])) : h.value === "isErrorNoData" ? (openBlock(), createElementBlock("div", _hoisted_3$1, [createVNode(S, {
|
|
3278
3740
|
class: normalizeClass(["!items-center !justify-center flex flex-col !size-full", [e.classError]]),
|
|
3279
3741
|
status: "error",
|
|
3280
3742
|
title: "网络错误",
|
|
3281
3743
|
style: normalizeStyle([e.style, e.styleError]),
|
|
3282
3744
|
description: f.value.errorCause ?? "未知原因"
|
|
3283
3745
|
}, {
|
|
3284
|
-
footer: withCtx(() => [e.retriable ? (openBlock(), createBlock(
|
|
3746
|
+
footer: withCtx(() => [e.retriable ? (openBlock(), createBlock(y, {
|
|
3285
3747
|
key: 0,
|
|
3286
|
-
onClick:
|
|
3748
|
+
onClick: i[0] ||= (e) => n.$emit("resetRetry"),
|
|
3287
3749
|
type: "primary"
|
|
3288
3750
|
}, {
|
|
3289
|
-
default: withCtx(() => [...
|
|
3751
|
+
default: withCtx(() => [...i[3] ||= [createTextVNode("重试", -1)]]),
|
|
3290
3752
|
_: 1
|
|
3291
3753
|
})) : createCommentVNode("", !0)]),
|
|
3292
|
-
icon: withCtx(() => [createVNode(
|
|
3754
|
+
icon: withCtx(() => [createVNode(b, {
|
|
3293
3755
|
size: "10rem",
|
|
3294
3756
|
color: "var(--nui-error-color)"
|
|
3295
3757
|
}, {
|
|
@@ -3302,21 +3764,21 @@ var _hoisted_1$6 = {
|
|
|
3302
3764
|
"style",
|
|
3303
3765
|
"description"
|
|
3304
3766
|
])])) : h.value === "isErrorData" ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
3305
|
-
createVNode(
|
|
3767
|
+
createVNode(b, {
|
|
3306
3768
|
size: "3rem",
|
|
3307
3769
|
color: "white"
|
|
3308
3770
|
}, {
|
|
3309
3771
|
default: withCtx(() => [createVNode(unref(WifiTetheringErrorRound_default))]),
|
|
3310
3772
|
_: 1
|
|
3311
3773
|
}),
|
|
3312
|
-
createElementVNode("div", _hoisted_5$1, [
|
|
3313
|
-
createVNode(
|
|
3774
|
+
createElementVNode("div", _hoisted_5$1, [i[4] ||= createElementVNode("div", { class: "text-sm" }, "网络错误", -1), createElementVNode("div", _hoisted_6$1, toDisplayString(f.value.errorCause ?? "未知原因"), 1)]),
|
|
3775
|
+
createVNode(y, {
|
|
3314
3776
|
circle: "",
|
|
3315
3777
|
type: "error",
|
|
3316
3778
|
size: "large",
|
|
3317
|
-
onClick:
|
|
3779
|
+
onClick: i[1] ||= (e) => n.$emit("retry")
|
|
3318
3780
|
}, {
|
|
3319
|
-
icon: withCtx(() => [createVNode(
|
|
3781
|
+
icon: withCtx(() => [createVNode(b, { color: "white" }, {
|
|
3320
3782
|
default: withCtx(() => [createVNode(unref(ReloadOutlined_default))]),
|
|
3321
3783
|
_: 1
|
|
3322
3784
|
})]),
|
|
@@ -3415,15 +3877,15 @@ var _hoisted_1$6 = {
|
|
|
3415
3877
|
return n({
|
|
3416
3878
|
scrollTop: f,
|
|
3417
3879
|
listInstance: d
|
|
3418
|
-
}), (
|
|
3419
|
-
let
|
|
3420
|
-
return openBlock(), createBlock(
|
|
3880
|
+
}), (n, r) => {
|
|
3881
|
+
let i = NVirtualList, s = PullRefresh;
|
|
3882
|
+
return openBlock(), createBlock(s, {
|
|
3421
3883
|
modelValue: h.value,
|
|
3422
|
-
"onUpdate:modelValue":
|
|
3884
|
+
"onUpdate:modelValue": r[0] ||= (e) => h.value = e,
|
|
3423
3885
|
class: normalizeClass(["relative", o.class]),
|
|
3424
3886
|
onRefresh: g,
|
|
3425
3887
|
disabled: (unref(Stream).isStream(e.source) ? !1 : unref(isArray)(e.source) ? !0 : e.source.reloadable ?? !0) || l.value.isError || l.value.isRequesting || !!unref(f) && !m.value,
|
|
3426
|
-
onChange:
|
|
3888
|
+
onChange: r[1] ||= ({ distance: e }) => m.value = !!e,
|
|
3427
3889
|
style: normalizeStyle(e.style)
|
|
3428
3890
|
}, {
|
|
3429
3891
|
default: withCtx(() => [createVNode(content_default, {
|
|
@@ -3436,20 +3898,20 @@ var _hoisted_1$6 = {
|
|
|
3436
3898
|
"hide-loading": m.value && l.value.isRequesting
|
|
3437
3899
|
}, {
|
|
3438
3900
|
default: withCtx(() => [createVNode(var_default, { value: l.value.data }, {
|
|
3439
|
-
default: withCtx(({ value:
|
|
3901
|
+
default: withCtx(({ value: r }) => [createVNode(i, mergeProps(e.listProp ?? {}, {
|
|
3440
3902
|
"item-resizable": e.itemResizable,
|
|
3441
3903
|
"item-size": e.itemHeight,
|
|
3442
3904
|
onScroll: unref(p),
|
|
3443
3905
|
class: ["overflow-x-hidden h-full", [m.value ? "overflow-y-hidden" : "overflow-y-auto"]],
|
|
3444
|
-
items:
|
|
3906
|
+
items: r,
|
|
3445
3907
|
ref_key: "vList",
|
|
3446
3908
|
ref: d
|
|
3447
3909
|
}), {
|
|
3448
|
-
default: withCtx(({ item:
|
|
3910
|
+
default: withCtx(({ item: i }) => [renderSlot(n.$slots, "default", {
|
|
3449
3911
|
height: e.itemHeight,
|
|
3450
3912
|
data: {
|
|
3451
|
-
item:
|
|
3452
|
-
index:
|
|
3913
|
+
item: i,
|
|
3914
|
+
index: r.indexOf(i)
|
|
3453
3915
|
}
|
|
3454
3916
|
})]),
|
|
3455
3917
|
_: 2
|
|
@@ -3521,7 +3983,7 @@ var _hoisted_1$6 = {
|
|
|
3521
3983
|
}),
|
|
3522
3984
|
emits: /* @__PURE__ */ mergeModels(["closed"], ["update:show"]),
|
|
3523
3985
|
setup(e, { expose: n }) {
|
|
3524
|
-
let r = window.$router, s = e, c = useModel(e, "show"), l = shallowRef(c.value), [u, d] = useZIndex(computed(() => s.useTrulyShow ? l.value : c.value)), f = noop;
|
|
3986
|
+
let r = window.$router, s = e, c = useModel(e, "show"), l = shallowRef(c.value), [u, d] = useZIndex(computed(() => s.useTrulyShow ? l.value : c.value)), f = noop$1;
|
|
3525
3987
|
return watch(c, (e) => {
|
|
3526
3988
|
e ? f = r.beforeEach(() => {
|
|
3527
3989
|
if (console.log("popup:\n", "isLast:", d.value, "show:", c.value), d.value) return c.value ? c.value = !1 : void 0;
|
|
@@ -3529,22 +3991,22 @@ var _hoisted_1$6 = {
|
|
|
3529
3991
|
}, { immediate: !0 }), n({
|
|
3530
3992
|
zIndex: u,
|
|
3531
3993
|
trulyShow: l
|
|
3532
|
-
}), (
|
|
3533
|
-
let
|
|
3534
|
-
return openBlock(), createBlock(
|
|
3994
|
+
}), (n, r) => {
|
|
3995
|
+
let i = Popup;
|
|
3996
|
+
return openBlock(), createBlock(i, mergeProps(s, {
|
|
3535
3997
|
show: c.value,
|
|
3536
|
-
"onUpdate:show":
|
|
3998
|
+
"onUpdate:show": r[0] ||= (e) => c.value = e,
|
|
3537
3999
|
"z-index": unref(u),
|
|
3538
4000
|
teleport: "#popups",
|
|
3539
|
-
onOpen:
|
|
3540
|
-
onClosed:
|
|
3541
|
-
l.value = !1,
|
|
4001
|
+
onOpen: r[1] ||= (e) => l.value = !0,
|
|
4002
|
+
onClosed: r[2] ||= () => {
|
|
4003
|
+
l.value = !1, n.$emit("closed");
|
|
3542
4004
|
},
|
|
3543
4005
|
class: ["max-h-screen !overflow-y-auto overflow-hidden", !e.noBorder && "border-0 border-t border-solid border-(--van-border-color)"],
|
|
3544
4006
|
overlay: "",
|
|
3545
4007
|
"close-on-click-overlay": ""
|
|
3546
4008
|
}), {
|
|
3547
|
-
default: withCtx(() => [l.value ? renderSlot(
|
|
4009
|
+
default: withCtx(() => [l.value ? renderSlot(n.$slots, "default", { key: 0 }) : createCommentVNode("", !0)]),
|
|
3548
4010
|
_: 3
|
|
3549
4011
|
}, 16, [
|
|
3550
4012
|
"show",
|
|
@@ -3560,42 +4022,42 @@ var _hoisted_1$6 = {
|
|
|
3560
4022
|
routerBase: {}
|
|
3561
4023
|
},
|
|
3562
4024
|
setup(n) {
|
|
3563
|
-
let r = n, i = useRoute(), o = decodeURI(i.path.replaceAll(r.routerBase + "/", "").split("/")[0]), c =
|
|
4025
|
+
let r = n, i = useRoute(), o = ref(decodeURI(i.path.replaceAll(r.routerBase + "/", "").split("/")[0])), c = window.$router, l = useTemplateRef("tab"), u = async (e) => {
|
|
3564
4026
|
let n = "?", i = r.items.find((n) => n.name == e);
|
|
3565
4027
|
for (let e in i.queries ?? {}) if (Object.prototype.hasOwnProperty.call(i.queries ?? {}, e)) {
|
|
3566
4028
|
let r = (i.queries ?? {})[e];
|
|
3567
4029
|
n += `${e}=${r}&`;
|
|
3568
4030
|
}
|
|
3569
|
-
return n = n.replace(/&$/, ""), await
|
|
4031
|
+
return n = n.replace(/&$/, ""), await c.force.replace(`${r.routerBase}/${e.split("/").map(encodeURI).join("/")}${n}`), !0;
|
|
3570
4032
|
};
|
|
3571
4033
|
watch(() => r.items, (e) => {
|
|
3572
|
-
e.find((e) => e.name.startsWith(
|
|
4034
|
+
e.find((e) => e.name.startsWith(o.value)) || console.log(o.value, e);
|
|
3573
4035
|
});
|
|
3574
|
-
let
|
|
4036
|
+
let d = c.afterEach((e) => {
|
|
3575
4037
|
if (e.path.startsWith(r.routerBase)) {
|
|
3576
4038
|
let n = e.path.replaceAll(r.routerBase + "/", "").split("/")[0];
|
|
3577
|
-
n !==
|
|
4039
|
+
n !== o.value && (o.value = n);
|
|
3578
4040
|
}
|
|
3579
4041
|
});
|
|
3580
4042
|
return onUnmounted(() => {
|
|
3581
|
-
|
|
3582
|
-
}), (
|
|
3583
|
-
let
|
|
3584
|
-
return openBlock(), createBlock(
|
|
4043
|
+
d();
|
|
4044
|
+
}), (r, i) => {
|
|
4045
|
+
let c = Tab, d = Tabs;
|
|
4046
|
+
return openBlock(), createBlock(d, {
|
|
3585
4047
|
ref_key: "tab",
|
|
3586
|
-
ref:
|
|
4048
|
+
ref: l,
|
|
3587
4049
|
shrink: "",
|
|
3588
|
-
active:
|
|
3589
|
-
"onUpdate:active":
|
|
3590
|
-
beforeChange:
|
|
4050
|
+
active: o.value,
|
|
4051
|
+
"onUpdate:active": i[0] ||= (e) => o.value = e,
|
|
4052
|
+
beforeChange: u,
|
|
3591
4053
|
class: "w-full"
|
|
3592
4054
|
}, {
|
|
3593
|
-
"nav-left": withCtx(() => [renderSlot(
|
|
3594
|
-
"nav-right": withCtx(() => [renderSlot(
|
|
3595
|
-
"nav-bottom": withCtx(() => [renderSlot(
|
|
3596
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.items, (e) => (openBlock(), createBlock(
|
|
4055
|
+
"nav-left": withCtx(() => [renderSlot(r.$slots, "left")]),
|
|
4056
|
+
"nav-right": withCtx(() => [renderSlot(r.$slots, "right")]),
|
|
4057
|
+
"nav-bottom": withCtx(() => [renderSlot(r.$slots, "bottom")]),
|
|
4058
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.items, (e) => (openBlock(), createBlock(c, {
|
|
3597
4059
|
title: e.title,
|
|
3598
|
-
onClick: (n) =>
|
|
4060
|
+
onClick: (n) => o.value = e.name,
|
|
3599
4061
|
name: e.name
|
|
3600
4062
|
}, null, 8, [
|
|
3601
4063
|
"title",
|
|
@@ -3620,16 +4082,16 @@ var _hoisted_1$6 = {
|
|
|
3620
4082
|
value: e,
|
|
3621
4083
|
mode: "text"
|
|
3622
4084
|
}));
|
|
3623
|
-
return (
|
|
3624
|
-
let
|
|
4085
|
+
return (r, i) => {
|
|
4086
|
+
let u = NButton;
|
|
3625
4087
|
return openBlock(), createElementBlock("div", {
|
|
3626
4088
|
class: normalizeClass([[unref(isNumber)(n.ellipsis) && "overflow-ellipsis overflow-hidden"], "whitespace-pre-wrap text-(--van-text-color)"]),
|
|
3627
4089
|
style: normalizeStyle([unref(isNumber)(n.ellipsis) && `line-break: anywhere;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: ${n.ellipsis};`])
|
|
3628
|
-
}, [renderSlot(
|
|
4090
|
+
}, [renderSlot(r.$slots, "default"), (openBlock(!0), createElementBlock(Fragment, null, renderList(c.value, (n) => (openBlock(), createElementBlock(Fragment, null, [n.mode === "link" ? (openBlock(), createBlock(u, {
|
|
3629
4091
|
key: 0,
|
|
3630
4092
|
tag: "a",
|
|
3631
4093
|
class: "underline",
|
|
3632
|
-
onClick:
|
|
4094
|
+
onClick: i[0] ||= withModifiers(() => {}, ["stop"]),
|
|
3633
4095
|
text: "",
|
|
3634
4096
|
type: "primary",
|
|
3635
4097
|
target: "_blank",
|
|
@@ -3640,7 +4102,7 @@ var _hoisted_1$6 = {
|
|
|
3640
4102
|
}, 1032, ["href"])) : n.mode === "text" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(n.value), 1)], 64)) : createCommentVNode("", !0)], 64))), 256))], 6);
|
|
3641
4103
|
};
|
|
3642
4104
|
}
|
|
3643
|
-
}), _hoisted_1$
|
|
4105
|
+
}), _hoisted_1$1 = { class: "mt-1 text-(--van-text-color-2) text-xs" }, toggleIcon_default = /* @__PURE__ */ defineComponent({
|
|
3644
4106
|
__name: "toggleIcon",
|
|
3645
4107
|
props: /* @__PURE__ */ mergeModels({
|
|
3646
4108
|
icon: {},
|
|
@@ -3668,20 +4130,20 @@ var _hoisted_1$6 = {
|
|
|
3668
4130
|
}, d = useTemplateRef("htmlRefHook");
|
|
3669
4131
|
return onLongPress(d, () => {
|
|
3670
4132
|
i("longClick");
|
|
3671
|
-
}, { modifiers: { prevent: !0 } }), (
|
|
3672
|
-
let
|
|
4133
|
+
}, { modifiers: { prevent: !0 } }), (n, r) => {
|
|
4134
|
+
let i = NIcon;
|
|
3673
4135
|
return openBlock(), createElementBlock("div", {
|
|
3674
4136
|
class: normalizeClass(["flex items-center justify-center **:!transition-colors", [e.rowMode || "flex-col", e.padding && "px-4"]]),
|
|
3675
4137
|
onClick: withModifiers(l, ["stop"]),
|
|
3676
4138
|
ref_key: "htmlRefHook",
|
|
3677
4139
|
ref: d
|
|
3678
|
-
}, [createVNode(
|
|
4140
|
+
}, [createVNode(i, {
|
|
3679
4141
|
size: e.size,
|
|
3680
4142
|
color: o.value ? "var(--p-color)" : "var(--van-gray-7)"
|
|
3681
4143
|
}, {
|
|
3682
4144
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(e.icon)))]),
|
|
3683
4145
|
_: 1
|
|
3684
|
-
}, 8, ["size", "color"]), createElementVNode("span", _hoisted_1$
|
|
4146
|
+
}, 8, ["size", "color"]), createElementVNode("span", _hoisted_1$1, [renderSlot(n.$slots, "default")])], 2);
|
|
3685
4147
|
};
|
|
3686
4148
|
}
|
|
3687
4149
|
}), Z = Object.defineProperty, ee = Object.defineProperties, te = Object.getOwnPropertyDescriptors, I = Object.getOwnPropertySymbols, P = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable, N = (e, n, r) => n in e ? Z(e, n, {
|
|
@@ -3693,7 +4155,7 @@ var _hoisted_1$6 = {
|
|
|
3693
4155
|
for (var r in n ||= {}) P.call(n, r) && N(e, r, n[r]);
|
|
3694
4156
|
if (I) for (var r of I(n)) G.call(n, r) && N(e, r, n[r]);
|
|
3695
4157
|
return e;
|
|
3696
|
-
}, _ = (e, n) => ee(e, te(n)), L = (e, n) => {
|
|
4158
|
+
}, _$1 = (e, n) => ee(e, te(n)), L = (e, n) => {
|
|
3697
4159
|
var r = {};
|
|
3698
4160
|
for (var i in e) P.call(e, i) && n.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3699
4161
|
if (e != null && I) for (var i of I(e)) n.indexOf(i) < 0 && G.call(e, i) && (r[i] = e[i]);
|
|
@@ -3715,7 +4177,7 @@ function Q(e, n = !0, r) {
|
|
|
3715
4177
|
me() ? onMounted(e, r) : n ? e() : nextTick(e);
|
|
3716
4178
|
}
|
|
3717
4179
|
function ge(e, n, r) {
|
|
3718
|
-
return watch(e, n, _(T({}, r), { immediate: !0 }));
|
|
4180
|
+
return watch(e, n, _$1(T({}, r), { immediate: !0 }));
|
|
3719
4181
|
}
|
|
3720
4182
|
var $ = fe ? window : void 0;
|
|
3721
4183
|
function x(e) {
|
|
@@ -3758,8 +4220,8 @@ function we(e, n, r = {}) {
|
|
|
3758
4220
|
let a = r, { window: o = $ } = a, s = L(a, ["window"]), c, l = /* @__PURE__ */ X(() => o && "MutationObserver" in o), u = () => {
|
|
3759
4221
|
c &&= (c.disconnect(), void 0);
|
|
3760
4222
|
}, d = computed(() => {
|
|
3761
|
-
let n = toValue(e)
|
|
3762
|
-
return new Set(
|
|
4223
|
+
let n = R(toValue(e)).map(x).filter(pe);
|
|
4224
|
+
return new Set(n);
|
|
3763
4225
|
}), f = watch(() => d.value, (e) => {
|
|
3764
4226
|
u(), l.value && e.size && (c = new MutationObserver(n), e.forEach((e) => c.observe(e, s)));
|
|
3765
4227
|
}, {
|
|
@@ -3777,10 +4239,10 @@ function we(e, n, r = {}) {
|
|
|
3777
4239
|
function Y(e, n, r = {}) {
|
|
3778
4240
|
let a = r, { window: o = $ } = a, s = L(a, ["window"]), c, l = /* @__PURE__ */ X(() => o && "ResizeObserver" in o), u = () => {
|
|
3779
4241
|
c &&= (c.disconnect(), void 0);
|
|
3780
|
-
}, d = computed(() => {
|
|
4242
|
+
}, d = watch(computed(() => {
|
|
3781
4243
|
let n = toValue(e);
|
|
3782
4244
|
return Array.isArray(n) ? n.map((e) => x(e)) : [x(n)];
|
|
3783
|
-
}),
|
|
4245
|
+
}), (e) => {
|
|
3784
4246
|
if (u(), l.value && o) {
|
|
3785
4247
|
c = new ResizeObserver(n);
|
|
3786
4248
|
for (let n of e) n && c.observe(n, s);
|
|
@@ -3788,12 +4250,12 @@ function Y(e, n, r = {}) {
|
|
|
3788
4250
|
}, {
|
|
3789
4251
|
immediate: !0,
|
|
3790
4252
|
flush: "post"
|
|
3791
|
-
}),
|
|
3792
|
-
u(),
|
|
4253
|
+
}), f = () => {
|
|
4254
|
+
u(), d();
|
|
3793
4255
|
};
|
|
3794
|
-
return F(
|
|
4256
|
+
return F(f), {
|
|
3795
4257
|
isSupported: l,
|
|
3796
|
-
stop:
|
|
4258
|
+
stop: f
|
|
3797
4259
|
};
|
|
3798
4260
|
}
|
|
3799
4261
|
function xe(e, n = {}) {
|
|
@@ -4034,42 +4496,42 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4034
4496
|
deep: 1,
|
|
4035
4497
|
immediate: !0
|
|
4036
4498
|
});
|
|
4037
|
-
let b = useTemplateRef("waterfallEl"), S = useTemp().$
|
|
4038
|
-
for (let e of
|
|
4499
|
+
let b = useTemplateRef("waterfallEl"), S = useTemp().$apply("waterfall", () => ({ top: 0 })), C = S.top++, w = useTemp().$applyRaw(`waterfall:${C}`, () => shallowReactive(/* @__PURE__ */ new Map())), O = [], A = new MutationObserver(([e]) => {
|
|
4500
|
+
for (let e of O) e();
|
|
4039
4501
|
if (!(e.target instanceof HTMLDivElement) || !f.value.data) return;
|
|
4040
4502
|
let n = [...e.target.children];
|
|
4041
4503
|
for (let e of n) {
|
|
4042
4504
|
let n = Number(e.dataset.index), r = f.value.data[n], i = () => {
|
|
4043
4505
|
let n = e.firstElementChild?.getBoundingClientRect();
|
|
4044
|
-
|
|
4506
|
+
w.set(r, n?.height ?? s.minHeight);
|
|
4045
4507
|
}, a = useResizeObserver(e.firstElementChild, i);
|
|
4046
|
-
i(),
|
|
4508
|
+
i(), O.push(() => a.stop());
|
|
4047
4509
|
}
|
|
4048
4510
|
});
|
|
4049
4511
|
watch(b, (e) => {
|
|
4050
|
-
if (!e) return
|
|
4051
|
-
|
|
4512
|
+
if (!e) return A.disconnect();
|
|
4513
|
+
A.observe(e.$el, { childList: !0 });
|
|
4052
4514
|
}), onUnmounted(() => {
|
|
4053
|
-
|
|
4054
|
-
for (let e of
|
|
4515
|
+
A.disconnect();
|
|
4516
|
+
for (let e of O) e();
|
|
4055
4517
|
});
|
|
4056
|
-
let
|
|
4518
|
+
let j = shallowRef(!0);
|
|
4057
4519
|
return n({
|
|
4058
4520
|
scrollTop: y,
|
|
4059
4521
|
scrollParent: v,
|
|
4060
4522
|
async reloadList() {
|
|
4061
|
-
|
|
4523
|
+
j.value = !1, w.clear(), await nextTick(), j.value = !0;
|
|
4062
4524
|
}
|
|
4063
|
-
}), (
|
|
4064
|
-
let
|
|
4065
|
-
return
|
|
4525
|
+
}), (n, r) => {
|
|
4526
|
+
let i = PullRefresh;
|
|
4527
|
+
return j.value ? (openBlock(), createBlock(i, {
|
|
4066
4528
|
key: 0,
|
|
4067
4529
|
modelValue: m.value,
|
|
4068
|
-
"onUpdate:modelValue":
|
|
4530
|
+
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
4069
4531
|
class: normalizeClass(["relative h-full", s.class]),
|
|
4070
4532
|
disabled: e.unReloadable || f.value.isRequesting || !!unref(y) && !p.value,
|
|
4071
4533
|
onRefresh: h,
|
|
4072
|
-
onChange:
|
|
4534
|
+
onChange: r[1] ||= ({ distance: e }) => p.value = !!e,
|
|
4073
4535
|
style: normalizeStyle(e.style)
|
|
4074
4536
|
}, {
|
|
4075
4537
|
default: withCtx(() => [createVNode(content_default, {
|
|
@@ -4092,15 +4554,15 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4092
4554
|
"preload-screen-count": [0, 1],
|
|
4093
4555
|
ref_key: "waterfallEl",
|
|
4094
4556
|
ref: b,
|
|
4095
|
-
"calc-item-height": (n) => unref(
|
|
4557
|
+
"calc-item-height": (n) => unref(w).get(n) ?? e.minHeight,
|
|
4096
4558
|
class: "waterfall",
|
|
4097
4559
|
"min-column-count": d.value[0],
|
|
4098
4560
|
"max-column-count": d.value[1]
|
|
4099
4561
|
}, {
|
|
4100
|
-
default: withCtx(({ item:
|
|
4101
|
-
item:
|
|
4102
|
-
index:
|
|
4103
|
-
height: unref(
|
|
4562
|
+
default: withCtx(({ item: r, index: i }) => [renderSlot(n.$slots, "default", {
|
|
4563
|
+
item: r,
|
|
4564
|
+
index: i,
|
|
4565
|
+
height: unref(w).get(r),
|
|
4104
4566
|
length: f.value.length,
|
|
4105
4567
|
minHeight: e.minHeight
|
|
4106
4568
|
})]),
|
|
@@ -4124,39 +4586,6 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4124
4586
|
])) : createCommentVNode("", !0);
|
|
4125
4587
|
};
|
|
4126
4588
|
}
|
|
4127
|
-
}), _hoisted_1$1 = { class: "overflow-hidden" }, previewUser_default = /* @__PURE__ */ defineComponent({
|
|
4128
|
-
__name: "previewUser",
|
|
4129
|
-
setup(e, { expose: n }) {
|
|
4130
|
-
let r = useTemplateRef("floatPopup"), o = useTemplateRef("contentBox"), { height: s } = useElementSize(o), l = shallowRef();
|
|
4131
|
-
n({
|
|
4132
|
-
show(e) {
|
|
4133
|
-
r.value?.show(1), l.value = e;
|
|
4134
|
-
},
|
|
4135
|
-
isShowing: computed(() => r.value?.isShowing),
|
|
4136
|
-
close() {
|
|
4137
|
-
r.value?.close();
|
|
4138
|
-
}
|
|
4139
|
-
});
|
|
4140
|
-
let u = computed(() => [
|
|
4141
|
-
0,
|
|
4142
|
-
(s.value || Math.floor(window.innerHeight * .2)) + 30,
|
|
4143
|
-
72 + (s.value || Math.floor(window.innerHeight * .2))
|
|
4144
|
-
]);
|
|
4145
|
-
return (e, n) => (openBlock(), createBlock(floatPopup_default, {
|
|
4146
|
-
ref_key: "floatPopup",
|
|
4147
|
-
ref: r,
|
|
4148
|
-
anchors: u.value,
|
|
4149
|
-
overlay: "",
|
|
4150
|
-
class: "overflow-hidden"
|
|
4151
|
-
}, {
|
|
4152
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [createElementVNode("div", {
|
|
4153
|
-
ref_key: "contentBox",
|
|
4154
|
-
ref: o,
|
|
4155
|
-
class: "w-full flex justify-center items-start backdrop-blur-lg van-hairline--bottom"
|
|
4156
|
-
}, null, 512)])]),
|
|
4157
|
-
_: 1
|
|
4158
|
-
}, 8, ["anchors"]));
|
|
4159
|
-
}
|
|
4160
4589
|
}), image_exports$1 = /* @__PURE__ */ __export({ Image: () => Image$1 }), Image$1 = class e extends Struct {
|
|
4161
4590
|
static processInstances = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/image/processInstances");
|
|
4162
4591
|
static setProcess(e, n, r) {
|
|
@@ -4200,15 +4629,14 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4200
4629
|
continue;
|
|
4201
4630
|
}
|
|
4202
4631
|
let o = await a.func(n, this);
|
|
4203
|
-
if (n = o[0], r.ignoreExit || !o[1])
|
|
4204
|
-
break;
|
|
4632
|
+
if (n = o[0], !(r.ignoreExit || !o[1])) break;
|
|
4205
4633
|
}
|
|
4206
|
-
return `${e.activeFork.get(`${this.$$plugin}:${this.forkNamespace}`)}/${n}`;
|
|
4634
|
+
return URL.canParse(n) ? n : `${e.activeFork.get(`${this.$$plugin}:${this.forkNamespace}`)}/${n}`;
|
|
4207
4635
|
}
|
|
4208
|
-
}, require_dayjs_min = /* @__PURE__ */ __commonJSMin(((
|
|
4636
|
+
}, require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, n) => {
|
|
4209
4637
|
(function(r, i) {
|
|
4210
|
-
typeof
|
|
4211
|
-
})(
|
|
4638
|
+
typeof e == "object" && n !== void 0 ? n.exports = i() : typeof define == "function" && define.amd ? define(i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs = i();
|
|
4639
|
+
})(e, (function() {
|
|
4212
4640
|
var e = 1e3, n = 6e4, r = 36e5, i = "millisecond", a = "second", o = "minute", s = "hour", c = "day", l = "week", u = "month", d = "quarter", f = "year", p = "date", m = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = {
|
|
4213
4641
|
name: "en",
|
|
4214
4642
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -4499,7 +4927,7 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4499
4927
|
return O(1e3 * e);
|
|
4500
4928
|
}, O.en = C[S], O.Ls = C, O.p = {}, O;
|
|
4501
4929
|
}));
|
|
4502
|
-
})), import_dayjs_min$2 = /* @__PURE__ */ __toESM(require_dayjs_min()), content_exports = /* @__PURE__ */ __export({ ContentPage: () => ContentPage }), ContentPage = class {
|
|
4930
|
+
})), import_dayjs_min$2 = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), content_exports = /* @__PURE__ */ __export({ ContentPage: () => ContentPage }), ContentPage = class {
|
|
4503
4931
|
static viewLayout = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/viewLayout");
|
|
4504
4932
|
static setViewLayout(e, n) {
|
|
4505
4933
|
let r = this.toContentTypeString(e);
|
|
@@ -4554,6 +4982,30 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4554
4982
|
static toContentTypeString(e) {
|
|
4555
4983
|
return isString(e) ? e : `${e.plugin}:${e.name}`;
|
|
4556
4984
|
}
|
|
4985
|
+
static levelboard = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/levelboard");
|
|
4986
|
+
static setLevelboard(e, n) {
|
|
4987
|
+
let r = this.levelboard.get(e) ?? [];
|
|
4988
|
+
return r.push(n), this.levelboard.set(e, r), e;
|
|
4989
|
+
}
|
|
4990
|
+
static getLevelboard(e) {
|
|
4991
|
+
return this.levelboard.get(e);
|
|
4992
|
+
}
|
|
4993
|
+
static topButton = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/topButton");
|
|
4994
|
+
static setTopButton(e, n) {
|
|
4995
|
+
let r = this.topButton.get(e) ?? [];
|
|
4996
|
+
return r.push(n), this.topButton.set(e, r), e;
|
|
4997
|
+
}
|
|
4998
|
+
static getTopButton(e) {
|
|
4999
|
+
return this.topButton.get(e);
|
|
5000
|
+
}
|
|
5001
|
+
static mainLists = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/mainLists");
|
|
5002
|
+
static setMainList(e, n) {
|
|
5003
|
+
let r = this.mainLists.get(e) ?? [];
|
|
5004
|
+
return r.push(n), this.mainLists.set(e, r), e;
|
|
5005
|
+
}
|
|
5006
|
+
static getMainList(e) {
|
|
5007
|
+
return this.mainLists.get(e);
|
|
5008
|
+
}
|
|
4557
5009
|
constructor(e, n, r) {
|
|
4558
5010
|
this.id = n, this.ep = r, this.preload.value = e;
|
|
4559
5011
|
}
|
|
@@ -4610,7 +5062,7 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4610
5062
|
let e = (e) => /(^|[\((\[\s【])ai[】\))\]\s]?/gi.test(e);
|
|
4611
5063
|
return this.customIsAI || e(this.title) || this.author.some((n) => e(n));
|
|
4612
5064
|
}
|
|
4613
|
-
}, comment_exports = /* @__PURE__ */ __export({ Comment: () => Comment }), import_dayjs_min$1 = /* @__PURE__ */ __toESM(require_dayjs_min()), Comment = class extends Struct {
|
|
5065
|
+
}, comment_exports = /* @__PURE__ */ __export({ Comment: () => Comment }), import_dayjs_min$1 = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), Comment = class extends Struct {
|
|
4614
5066
|
static commentRow = shallowReactive(/* @__PURE__ */ new Map());
|
|
4615
5067
|
static setCommentRow(e, n) {
|
|
4616
5068
|
let r = uni.content.ContentPage.toContentTypeString(e);
|
|
@@ -4640,17 +5092,77 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4640
5092
|
static userBase = shallowReactive(/* @__PURE__ */ new Map());
|
|
4641
5093
|
static userEditorBase = shallowReactive(/* @__PURE__ */ new Map());
|
|
4642
5094
|
constructor(e) {
|
|
4643
|
-
e.avatar && (this.avatar = Image$1.create(e.avatar)), this.name = e.name, this.id = e.id;
|
|
5095
|
+
e.avatar && (this.avatar = Image$1.create(e.avatar)), this.name = e.name, this.id = e.id, this.$$plugin = e.$$plugin;
|
|
4644
5096
|
}
|
|
4645
5097
|
avatar;
|
|
4646
5098
|
name;
|
|
4647
5099
|
id;
|
|
5100
|
+
$$plugin;
|
|
4648
5101
|
};
|
|
4649
5102
|
let uni;
|
|
4650
5103
|
(function(e) {
|
|
4651
5104
|
e.user = user_exports, e.comment = comment_exports, e.content = content_exports, e.image = image_exports$1, e.item = item_exports, e.ep = ep_exports;
|
|
4652
5105
|
})(uni ||= {});
|
|
4653
|
-
var
|
|
5106
|
+
var _useConfig = defineStore("config", (e) => {
|
|
5107
|
+
let n = shallowReactive(/* @__PURE__ */ new Map()), r = e.action((e, r) => {
|
|
5108
|
+
let i = useLocalStorage(`${e}.config`, fromPairs(Object.entries(r).map(([n, r]) => [`${e}.${n}`, r.defaultValue])));
|
|
5109
|
+
return n.set(e, {
|
|
5110
|
+
form: r,
|
|
5111
|
+
value: i
|
|
5112
|
+
}), i.value;
|
|
5113
|
+
}, "useCustomConfig"), a = r("core", {
|
|
5114
|
+
recordHistory: {
|
|
5115
|
+
type: "switch",
|
|
5116
|
+
defaultValue: !1,
|
|
5117
|
+
info: "记录历史记录"
|
|
5118
|
+
},
|
|
5119
|
+
showAIProject: {
|
|
5120
|
+
type: "switch",
|
|
5121
|
+
defaultValue: !0,
|
|
5122
|
+
info: "展示AI作品"
|
|
5123
|
+
},
|
|
5124
|
+
darkMode: {
|
|
5125
|
+
type: "radio",
|
|
5126
|
+
defaultValue: "system",
|
|
5127
|
+
info: "暗色模式配置",
|
|
5128
|
+
comp: "select",
|
|
5129
|
+
selects: [
|
|
5130
|
+
{
|
|
5131
|
+
label: "浅色",
|
|
5132
|
+
value: "light"
|
|
5133
|
+
},
|
|
5134
|
+
{
|
|
5135
|
+
label: "暗色",
|
|
5136
|
+
value: "dark"
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
label: "跟随系统",
|
|
5140
|
+
value: "system"
|
|
5141
|
+
}
|
|
5142
|
+
]
|
|
5143
|
+
},
|
|
5144
|
+
easilyTitle: {
|
|
5145
|
+
type: "switch",
|
|
5146
|
+
defaultValue: !1,
|
|
5147
|
+
info: "简化标题(实验)"
|
|
5148
|
+
}
|
|
5149
|
+
}), o = /* @__PURE__ */ usePreferredDark();
|
|
5150
|
+
return {
|
|
5151
|
+
appConfig: a,
|
|
5152
|
+
isDark: computed(() => {
|
|
5153
|
+
switch (a["core.darkMode"]) {
|
|
5154
|
+
case "light": return !1;
|
|
5155
|
+
case "dark": return !0;
|
|
5156
|
+
case "system": return o.value;
|
|
5157
|
+
default: return !1;
|
|
5158
|
+
}
|
|
5159
|
+
}),
|
|
5160
|
+
form: n,
|
|
5161
|
+
$useCustomConfig: r
|
|
5162
|
+
};
|
|
5163
|
+
});
|
|
5164
|
+
const useConfig = () => _useConfig(window.$api.piniaInstance);
|
|
5165
|
+
var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[calc(70%-14px)] h-[calc(100%-8px)] *:text-justify right-2" }, _hoisted_3 = { class: "van-multi-ellipsis--l2" }, _hoisted_4 = { class: "absolute bottom-2 text-(--van-text-color-2) text-sm" }, _hoisted_5 = ["disabled"], _hoisted_6 = { class: "w-full flex items-center relative" }, _hoisted_7 = { class: "absolute w-full h-6 !text-[10px] text-white bg-[linear-gradient(transparent,rgba(0,0,0,0.9))] bottom-0 flex pb-0.5 gap-1 pl-1 items-end justify-start *:flex *:items-center" }, _hoisted_8 = { class: "w-full overflow-hidden p-1 flex flex-col text-(--van-text-color)" }, _hoisted_9 = { class: "flex flex-nowrap" }, _hoisted_10 = { class: "text-start text-sm" }, _hoisted_11 = { class: "my-1 w-full h-auto flex-nowrap flex items-center" }, unitCard_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
4654
5166
|
__name: "unitCard",
|
|
4655
5167
|
props: {
|
|
4656
5168
|
item: {},
|
|
@@ -4668,20 +5180,20 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
|
|
|
4668
5180
|
},
|
|
4669
5181
|
emits: ["click"],
|
|
4670
5182
|
setup(n, { emit: r }) {
|
|
4671
|
-
useCssVars((e) => ({
|
|
5183
|
+
useCssVars((e) => ({ v0b67184e: h.value }));
|
|
4672
5184
|
let d = n, f = r, p = useTemplateRef("cover"), m = computed(() => uni.item.Item.is(d.item) ? d.item.$cover : uni.image.Image.create(d.item.cover)), h = computed(() => p.value?.isLoaded ? "unset" : `${m.value.aspect?.width || 3} / ${m.value.aspect?.height || 4}`), [g, v] = /* @__PURE__ */ createReusableTemplate(), y = () => {
|
|
4673
|
-
SharedFunction.callWitch("addRecent", "core", d.item);
|
|
4674
|
-
};
|
|
4675
|
-
return (
|
|
4676
|
-
let
|
|
5185
|
+
uni.item.Item.is(d.item) && SharedFunction.callWitch("addRecent", "core", d.item);
|
|
5186
|
+
}, b = useConfig(), S = computed(() => b.appConfig["core.easilyTitle"] ? d.item.title.replace(/(\([^\)]+\)|\[[^\]]+\]|\([^\)]+\)|\【[^\】]+\】)+?/gi, "").trim() : d.item.title);
|
|
5187
|
+
return (r, i) => {
|
|
5188
|
+
let h = NIcon, b = NButton, C = NPopconfirm;
|
|
4677
5189
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(g), null, {
|
|
4678
|
-
default: withCtx(() => [createVNode(
|
|
4679
|
-
trigger: withCtx(() => [createVNode(
|
|
4680
|
-
onClick:
|
|
5190
|
+
default: withCtx(() => [createVNode(C, { onPositiveClick: y }, {
|
|
5191
|
+
trigger: withCtx(() => [createVNode(b, {
|
|
5192
|
+
onClick: i[0] ||= withModifiers(() => {}, ["stop"]),
|
|
4681
5193
|
text: "",
|
|
4682
|
-
class: "!absolute bottom-
|
|
5194
|
+
class: "!absolute bottom-1.5 right-2"
|
|
4683
5195
|
}, {
|
|
4684
|
-
default: withCtx(() => [createVNode(
|
|
5196
|
+
default: withCtx(() => [createVNode(h, {
|
|
4685
5197
|
color: "var(--van-text-color-2)",
|
|
4686
5198
|
size: "1rem"
|
|
4687
5199
|
}, {
|
|
@@ -4690,32 +5202,32 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
|
|
|
4690
5202
|
})]),
|
|
4691
5203
|
_: 1
|
|
4692
5204
|
})]),
|
|
4693
|
-
default: withCtx(() => [
|
|
5205
|
+
default: withCtx(() => [i[3] ||= createTextVNode(" 加入\"稍后再看\"? ", -1)]),
|
|
4694
5206
|
_: 1
|
|
4695
5207
|
})]),
|
|
4696
5208
|
_: 1
|
|
4697
5209
|
}), n.type == "small" ? (openBlock(), createElementBlock("div", {
|
|
4698
5210
|
key: 1,
|
|
4699
5211
|
style: normalizeStyle([{ height: n.freeHeight ? "auto" : "140px" }, n.style]),
|
|
4700
|
-
onClick:
|
|
5212
|
+
onClick: i[2] ||= (e) => f("click"),
|
|
4701
5213
|
disabled: n.disabled,
|
|
4702
5214
|
class: normalizeClass([[{ "van-haptics-feedback": !n.disabled }, d.class], "overflow-hidden w-full rounded-lg block van-hairline--top-bottom bg-center bg-(--van-background-2) text-(--van-text-color) border-none relative p-0 items-center"]),
|
|
4703
5215
|
ref: "container"
|
|
4704
5216
|
}, [
|
|
4705
|
-
createElementVNode("div", _hoisted_6, [
|
|
5217
|
+
createElementVNode("div", _hoisted_6, [r.$slots.cover ? createCommentVNode("", !0) : (openBlock(), createBlock(image_default, {
|
|
4706
5218
|
key: 0,
|
|
4707
5219
|
src: m.value,
|
|
4708
5220
|
class: "rounded-t-lg w-full image-size",
|
|
4709
5221
|
fit: "cover",
|
|
4710
5222
|
ref_key: "cover",
|
|
4711
5223
|
ref: p
|
|
4712
|
-
}, null, 8, ["src"])), createElementVNode("div", _hoisted_7, [renderSlot(
|
|
4713
|
-
createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [createElementVNode("span", _hoisted_10, toDisplayString(
|
|
5224
|
+
}, null, 8, ["src"])), createElementVNode("div", _hoisted_7, [renderSlot(r.$slots, "smallTopInfo", {}, void 0, !0)])]),
|
|
5225
|
+
createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [createElementVNode("span", _hoisted_10, toDisplayString(S.value), 1)]), createElementVNode("div", _hoisted_11, [renderSlot(r.$slots, "default", {}, void 0, !0)])]),
|
|
4714
5226
|
createVNode(unref(v))
|
|
4715
5227
|
], 14, _hoisted_5)) : (openBlock(), createElementBlock("div", {
|
|
4716
5228
|
key: 0,
|
|
4717
5229
|
ref: "container",
|
|
4718
|
-
onClick:
|
|
5230
|
+
onClick: i[1] ||= (e) => f("click"),
|
|
4719
5231
|
disabled: n.disabled,
|
|
4720
5232
|
class: normalizeClass(["overflow-hidden w-full van-hairline--top-bottom bg-(--van-background-2) text-(--van-text-color) relative p-2 flex", [{ "van-haptics-feedback": !n.disabled }, d.class]]),
|
|
4721
5233
|
style: normalizeStyle([{ height: n.freeHeight ? "auto" : "140px" }, n.style])
|
|
@@ -4733,12 +5245,12 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
|
|
|
4733
5245
|
ref_key: "cover",
|
|
4734
5246
|
ref: p
|
|
4735
5247
|
}, null, 8, ["src"]),
|
|
4736
|
-
createElementVNode("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(
|
|
5248
|
+
createElementVNode("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(S.value), 1), createElementVNode("div", _hoisted_4, [renderSlot(r.$slots, "default", {}, void 0, !0)])]),
|
|
4737
5249
|
createVNode(unref(v))
|
|
4738
5250
|
], 14, _hoisted_1))], 64);
|
|
4739
5251
|
};
|
|
4740
5252
|
}
|
|
4741
|
-
}),
|
|
5253
|
+
}), [["__scopeId", "data-v-15d539f3"]]), translate_exports = /* @__PURE__ */ __export({ createDateString: () => createDateString }), import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
|
|
4742
5254
|
const createDateString = (e = (0, import_dayjs_min.default)()) => {
|
|
4743
5255
|
let n = (0, import_dayjs_min.default)(), r = e.isSame(n, "year"), i = r && e.isSame(n, "month"), a = i && e.date() === n.date(), o = i && e.date() === n.date() - 1, s = "";
|
|
4744
5256
|
return r || (s += "YYYY年 "), a ? s += "今天 " : o ? s += "昨天 " : s += "M月D日 ", s += "HH:mm", e.format(s);
|
|
@@ -4781,7 +5293,7 @@ const createLoadingMessage = (e = "加载中", n = window.$message) => {
|
|
|
4781
5293
|
};
|
|
4782
5294
|
return l;
|
|
4783
5295
|
}, createDialog = (e) => {
|
|
4784
|
-
let n = noop
|
|
5296
|
+
let n = noop, r = noop, i = new Promise((e, i) => {
|
|
4785
5297
|
n = e, r = i;
|
|
4786
5298
|
}), a = shallowRef(!0), [o, s, c] = useZIndex(a);
|
|
4787
5299
|
console.log("[createDialog] after useZIndex");
|
|
@@ -4810,11 +5322,11 @@ const createLoadingMessage = (e = "加载中", n = window.$message) => {
|
|
|
4810
5322
|
a.value = !1, f();
|
|
4811
5323
|
},
|
|
4812
5324
|
async onPositiveClick(n) {
|
|
4813
|
-
if (await (e.onPositiveClick ?? noop
|
|
5325
|
+
if (await (e.onPositiveClick ?? noop)(n) === !1) return !1;
|
|
4814
5326
|
p();
|
|
4815
5327
|
},
|
|
4816
5328
|
async onNegativeClick(n) {
|
|
4817
|
-
let r = await (e.onNegativeClick ?? noop
|
|
5329
|
+
let r = await (e.onNegativeClick ?? noop)(n);
|
|
4818
5330
|
if (r) return r;
|
|
4819
5331
|
f();
|
|
4820
5332
|
},
|
|
@@ -4829,45 +5341,32 @@ const createLoadingMessage = (e = "加载中", n = window.$message) => {
|
|
|
4829
5341
|
}
|
|
4830
5342
|
});
|
|
4831
5343
|
return console.log("[createDialog] after const dialog"), i.ins = m, i;
|
|
4832
|
-
}
|
|
4833
|
-
var defaultConfig = {
|
|
4834
|
-
"app.read.preloadImageNumbers": 2,
|
|
4835
|
-
"app.read.watchFullscreen": !0,
|
|
4836
|
-
"app.read.twoImage": !1,
|
|
4837
|
-
"app.search.showAIProject": !0,
|
|
4838
|
-
"app.darkMode": !1,
|
|
4839
|
-
"app.recordHistory": !0
|
|
4840
|
-
};
|
|
4841
|
-
const useConfig = defineStore("config", (e) => {
|
|
4842
|
-
let n = useLocalStorage("app.config", defaultConfig);
|
|
4843
|
-
n.value = defaultsDeep(n.value, defaultConfig);
|
|
4844
|
-
let r = /* @__PURE__ */ usePreferredDark(), a = computed(() => n.value["app.darkMode"] || r.value), o = e.action((e, n) => useLocalStorage(`${e}.config`, fromPairs(entries(n).map(([n, r]) => [`${e}.${n}`, r]))).value, "useCustomConfig");
|
|
4845
|
-
return {
|
|
4846
|
-
...n.value,
|
|
4847
|
-
isDark: a,
|
|
4848
|
-
$useCustomConfig: o
|
|
4849
|
-
};
|
|
4850
|
-
}), definePlugin = (e) => {
|
|
5344
|
+
}, definePlugin = (e) => {
|
|
4851
5345
|
if (isFunction(e)) var n = e(window.$$safe$$);
|
|
4852
5346
|
else var n = e;
|
|
4853
5347
|
console.log("[definePlugin] new plugin defining...", n);
|
|
4854
5348
|
let { name: r, content: i, image: a, search: o, user: s } = n;
|
|
4855
5349
|
if (i) {
|
|
4856
|
-
for (let [e, n] of entries(i.layout)) ContentPage.setViewLayout(e, n);
|
|
4857
|
-
for (let [e, n] of entries(i.itemCard)) ContentPage.setItemCard(e, n);
|
|
4858
|
-
for (let [e, n] of entries(i.contentPage)) ContentPage.setContentPage(e, n);
|
|
4859
|
-
for (let [e, n] of entries(i.commentRow)) Comment.setCommentRow(e, n);
|
|
5350
|
+
for (let [e, n] of Object.entries(i.layout ?? {})) ContentPage.setViewLayout(e, n);
|
|
5351
|
+
for (let [e, n] of Object.entries(i.itemCard ?? {})) ContentPage.setItemCard(e, n);
|
|
5352
|
+
for (let [e, n] of Object.entries(i.contentPage ?? {})) ContentPage.setContentPage(e, n);
|
|
5353
|
+
for (let [e, n] of Object.entries(i.commentRow ?? {})) Comment.setCommentRow(e, n);
|
|
4860
5354
|
}
|
|
4861
5355
|
if (a) {
|
|
4862
|
-
if (a.forks) for (let [e, n] of entries(a.forks)) Image$1.setFork(r, e, n);
|
|
4863
|
-
if (a.process) for (let [e, n] of entries(a.process)) Image$1.setProcess(r, e, n);
|
|
5356
|
+
if (a.forks) for (let [e, n] of Object.entries(a.forks)) Image$1.setFork(r, e, n);
|
|
5357
|
+
if (a.process) for (let [e, n] of Object.entries(a.process)) Image$1.setProcess(r, e, n);
|
|
4864
5358
|
}
|
|
4865
5359
|
if (o) {
|
|
4866
5360
|
if (o.categories) for (let e of o.categories) ContentPage.setCategories(r, e);
|
|
4867
5361
|
if (o.tabbar) for (let e of o.tabbar) ContentPage.setTabbar(r, e);
|
|
5362
|
+
if (o.hotPage) {
|
|
5363
|
+
for (let e of o.hotPage.mainListCard ?? []) ContentPage.setMainList(r, e);
|
|
5364
|
+
for (let e of o.hotPage.levelBoard ?? []) ContentPage.setLevelboard(r, e);
|
|
5365
|
+
for (let e of o.hotPage.topButton ?? []) ContentPage.setTopButton(r, e);
|
|
5366
|
+
}
|
|
4868
5367
|
}
|
|
4869
5368
|
s && User.userEditorBase.set(r, s.edit), SharedFunction.callWitch("addPlugin", "core", n);
|
|
4870
|
-
}, Comp = {
|
|
5369
|
+
}, _ = void 0, Comp = {
|
|
4871
5370
|
Await: await_default,
|
|
4872
5371
|
Loading: loading_default,
|
|
4873
5372
|
Content: content_default,
|
|
@@ -4880,7 +5379,6 @@ const useConfig = defineStore("config", (e) => {
|
|
|
4880
5379
|
ToggleIcon: toggleIcon_default,
|
|
4881
5380
|
Var: var_default,
|
|
4882
5381
|
Waterfall: waterfall_default,
|
|
4883
|
-
user: { PreviewUser: previewUser_default },
|
|
4884
5382
|
content: { UnitCard: unitCard_default }
|
|
4885
5383
|
};
|
|
4886
5384
|
let Utils;
|
|
@@ -4891,6 +5389,7 @@ const Store = {
|
|
|
4891
5389
|
useTemp,
|
|
4892
5390
|
useConfig
|
|
4893
5391
|
};
|
|
4894
|
-
|
|
5392
|
+
console.log(routerKey);
|
|
5393
|
+
export { Comp, Store, Utils, _, definePlugin, uni };
|
|
4895
5394
|
|
|
4896
5395
|
//# sourceMappingURL=bundle.js.map
|