@king-one/antdv 1.0.29 → 1.0.31
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/CHANGELOG.md +12 -0
- package/dist/es/components/index.mjs +8 -8
- package/dist/es/components/pro-dialog/index.mjs +10 -9
- package/dist/es/components/pro-dialog/src/ProDialog.vue.mjs +4 -0
- package/dist/es/components/pro-dialog/src/ProDialog.vue2.mjs +33 -0
- package/dist/es/components/pro-dialog/style/index.mjs +2 -0
- package/dist/es/components/pro-title/index.mjs +11 -0
- package/dist/es/components/pro-title/src/ProTitle.vue.mjs +4 -0
- package/dist/es/components/pro-title/src/ProTitle.vue2.mjs +32 -0
- package/dist/es/components/pro-title/src/types.mjs +17 -0
- package/dist/es/components/pro-title/style/index.mjs +2 -0
- package/dist/es/components/scale-virtual-list/hooks/useVirtualList.mjs +1 -1
- package/dist/es/index.mjs +23 -23
- package/dist/es/installer.mjs +8 -9
- package/dist/lib/components/index.js +1 -0
- package/dist/lib/components/pro-dialog/index.js +1 -0
- package/dist/lib/components/pro-dialog/src/ProDialog.vue.js +1 -0
- package/dist/lib/components/pro-dialog/src/ProDialog.vue2.js +1 -0
- package/dist/lib/components/pro-dialog/style/index.js +1 -0
- package/dist/lib/components/pro-title/index.js +1 -0
- package/dist/lib/components/pro-title/src/ProTitle.vue.js +1 -0
- package/dist/lib/components/pro-title/src/ProTitle.vue2.js +1 -0
- package/dist/lib/components/pro-title/src/types.js +1 -0
- package/dist/lib/components/pro-title/style/index.js +1 -0
- package/dist/lib/components/scale-virtual-list/hooks/useVirtualList.js +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/installer.js +1 -0
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/pro-title.css +1 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/pro-dialog/index.d.ts +4 -0
- package/dist/types/components/pro-dialog/src/{pro-dialog.vue.d.ts → ProDialog.vue.d.ts} +4 -0
- package/dist/types/components/pro-title/index.d.ts +82 -0
- package/dist/types/components/pro-title/src/ProTitle.vue.d.ts +46 -0
- package/dist/types/components/pro-title/src/types.d.ts +17 -0
- package/package.json +2 -1
- package/dist/es/components/pro-dialog/src/pro-dialog.vue.mjs +0 -4
- package/dist/es/components/pro-dialog/src/pro-dialog.vue2.mjs +0 -21
- package/dist/es/components/virtual-list/index.mjs +0 -10
- package/dist/es/components/virtual-list/src/types.mjs +0 -30
- package/dist/es/components/virtual-list/src/virtual-list.vue.mjs +0 -4
- package/dist/es/components/virtual-list/src/virtual-list.vue2.mjs +0 -87
- package/dist/es/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.4.38/node_modules/@vueuse/shared/index.mjs +0 -1189
- package/dist/lib/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.4.38/node_modules/@vueuse/shared/index.js +0 -1
- package/dist/lib/packages/antdv/components/index.js +0 -1
- package/dist/lib/packages/antdv/components/pro-dialog/index.js +0 -1
- package/dist/lib/packages/antdv/components/pro-dialog/src/pro-dialog.vue.js +0 -1
- package/dist/lib/packages/antdv/components/pro-dialog/src/pro-dialog.vue2.js +0 -1
- package/dist/lib/packages/antdv/components/scale-virtual-list/hooks/useVirtualList.js +0 -1
- package/dist/lib/packages/antdv/components/virtual-list/index.js +0 -1
- package/dist/lib/packages/antdv/components/virtual-list/src/types.js +0 -1
- package/dist/lib/packages/antdv/components/virtual-list/src/virtual-list.vue.js +0 -1
- package/dist/lib/packages/antdv/components/virtual-list/src/virtual-list.vue2.js +0 -1
- package/dist/lib/packages/antdv/index.js +0 -1
- package/dist/lib/packages/antdv/installer.js +0 -1
- package/dist/types/components/virtual-list/index.d.ts +0 -163
- package/dist/types/components/virtual-list/src/types.d.ts +0 -39
- package/dist/types/components/virtual-list/src/virtual-list.vue.d.ts +0 -364
- /package/dist/lib/{packages/antdv/components → components}/base/style/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/collapse-transtion/hooks/use-collapse-transtion.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/collapse-transtion/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/collapse-transtion/src/collapse-transtion.vue.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/collapse-transtion/src/collapse-transtion.vue2.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/collapse-transtion/src/types.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/collapse-transtion/style/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/form/component/form.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/form/component/form.vue.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/form/component/form.vue2.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/form/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/pro-dialog/hooks/useProDialog.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/pro-dialog/src/types.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scale-virtual-list/component/scale-virtual-list.vue.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scale-virtual-list/component/scale-virtual-list.vue2.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scale-virtual-list/component/types.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scale-virtual-list/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scale-virtual-list/style/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scroll-bar/index.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scroll-bar/src/scroll-bar.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/scroll-bar/src/types.js +0 -0
- /package/dist/lib/{packages/antdv/components → components}/utils/install.js +0 -0
- /package/dist/lib/{packages/antdv/hooks → hooks}/use-namespace/index.js +0 -0
|
@@ -1,1189 +0,0 @@
|
|
|
1
|
-
import { shallowRef as ee, watchEffect as te, readonly as N, ref as w, watch as y, customRef as F, getCurrentScope as ne, onScopeDispose as re, effectScope as z, getCurrentInstance as $, provide as oe, inject as ue, isVue3 as I, version as ie, isRef as S, unref as M, computed as p, reactive as Y, toRefs as C, toRef as se, isVue2 as ce, set as le, onBeforeMount as ae, nextTick as _, onBeforeUnmount as fe, onMounted as de, onUnmounted as me, isReactive as ve } from "vue-demi";
|
|
2
|
-
function ze(e, t) {
|
|
3
|
-
var n;
|
|
4
|
-
const r = ee();
|
|
5
|
-
return te(() => {
|
|
6
|
-
r.value = e();
|
|
7
|
-
}, {
|
|
8
|
-
...t,
|
|
9
|
-
flush: (n = t == null ? void 0 : t.flush) != null ? n : "sync"
|
|
10
|
-
}), N(r);
|
|
11
|
-
}
|
|
12
|
-
function Ze(e, t) {
|
|
13
|
-
let n, r, o;
|
|
14
|
-
const u = w(!0), s = () => {
|
|
15
|
-
u.value = !0, o();
|
|
16
|
-
};
|
|
17
|
-
y(e, s, { flush: "sync" });
|
|
18
|
-
const i = typeof t == "function" ? t : t.get, l = typeof t == "function" ? void 0 : t.set, m = F((d, f) => (r = d, o = f, {
|
|
19
|
-
get() {
|
|
20
|
-
return u.value && (n = i(), u.value = !1), r(), n;
|
|
21
|
-
},
|
|
22
|
-
set(a) {
|
|
23
|
-
l == null || l(a);
|
|
24
|
-
}
|
|
25
|
-
}));
|
|
26
|
-
return Object.isExtensible(m) && (m.trigger = s), m;
|
|
27
|
-
}
|
|
28
|
-
function T(e) {
|
|
29
|
-
return ne() ? (re(e), !0) : !1;
|
|
30
|
-
}
|
|
31
|
-
function qe() {
|
|
32
|
-
const e = /* @__PURE__ */ new Set(), t = (o) => {
|
|
33
|
-
e.delete(o);
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
on: (o) => {
|
|
37
|
-
e.add(o);
|
|
38
|
-
const u = () => t(o);
|
|
39
|
-
return T(u), {
|
|
40
|
-
off: u
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
off: t,
|
|
44
|
-
trigger: (...o) => Promise.all(Array.from(e).map((u) => u(...o)))
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function Xe(e) {
|
|
48
|
-
let t = !1, n;
|
|
49
|
-
const r = z(!0);
|
|
50
|
-
return (...o) => (t || (n = r.run(() => e(...o)), t = !0), n);
|
|
51
|
-
}
|
|
52
|
-
const P = /* @__PURE__ */ new WeakMap(), pe = (e, t) => {
|
|
53
|
-
var n;
|
|
54
|
-
const r = (n = $()) == null ? void 0 : n.proxy;
|
|
55
|
-
if (r == null)
|
|
56
|
-
throw new Error("provideLocal must be called in setup");
|
|
57
|
-
P.has(r) || P.set(r, /* @__PURE__ */ Object.create(null));
|
|
58
|
-
const o = P.get(r);
|
|
59
|
-
o[e] = t, oe(e, t);
|
|
60
|
-
}, he = (...e) => {
|
|
61
|
-
var t;
|
|
62
|
-
const n = e[0], r = (t = $()) == null ? void 0 : t.proxy;
|
|
63
|
-
if (r == null)
|
|
64
|
-
throw new Error("injectLocal must be called in setup");
|
|
65
|
-
return P.has(r) && n in P.get(r) ? P.get(r)[n] : ue(...e);
|
|
66
|
-
};
|
|
67
|
-
function Je(e, t) {
|
|
68
|
-
const n = (t == null ? void 0 : t.injectionKey) || Symbol(e.name || "InjectionState"), r = t == null ? void 0 : t.defaultValue;
|
|
69
|
-
return [(...s) => {
|
|
70
|
-
const i = e(...s);
|
|
71
|
-
return pe(n, i), i;
|
|
72
|
-
}, () => he(n, r)];
|
|
73
|
-
}
|
|
74
|
-
function Ke(e) {
|
|
75
|
-
let t = 0, n, r;
|
|
76
|
-
const o = () => {
|
|
77
|
-
t -= 1, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
|
|
78
|
-
};
|
|
79
|
-
return (...u) => (t += 1, n || (r = z(!0), n = r.run(() => e(...u))), T(o), n);
|
|
80
|
-
}
|
|
81
|
-
function ye(e, t, { enumerable: n = !1, unwrap: r = !0 } = {}) {
|
|
82
|
-
if (!I && !ie.startsWith("2.7.")) {
|
|
83
|
-
if (process.env.NODE_ENV !== "production")
|
|
84
|
-
throw new Error("[VueUse] extendRef only works in Vue 2.7 or above.");
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
for (const [o, u] of Object.entries(t))
|
|
88
|
-
o !== "value" && (S(u) && r ? Object.defineProperty(e, o, {
|
|
89
|
-
get() {
|
|
90
|
-
return u.value;
|
|
91
|
-
},
|
|
92
|
-
set(s) {
|
|
93
|
-
u.value = s;
|
|
94
|
-
},
|
|
95
|
-
enumerable: n
|
|
96
|
-
}) : Object.defineProperty(e, o, { value: u, enumerable: n }));
|
|
97
|
-
return e;
|
|
98
|
-
}
|
|
99
|
-
function Qe(e, t) {
|
|
100
|
-
return t == null ? M(e) : M(e)[t];
|
|
101
|
-
}
|
|
102
|
-
function et(e) {
|
|
103
|
-
return M(e) != null;
|
|
104
|
-
}
|
|
105
|
-
function tt(e, t) {
|
|
106
|
-
if (typeof Symbol < "u") {
|
|
107
|
-
const n = { ...e };
|
|
108
|
-
return Object.defineProperty(n, Symbol.iterator, {
|
|
109
|
-
enumerable: !1,
|
|
110
|
-
value() {
|
|
111
|
-
let r = 0;
|
|
112
|
-
return {
|
|
113
|
-
next: () => ({
|
|
114
|
-
value: t[r++],
|
|
115
|
-
done: r > t.length
|
|
116
|
-
})
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
}), n;
|
|
120
|
-
} else
|
|
121
|
-
return Object.assign([...t], e);
|
|
122
|
-
}
|
|
123
|
-
function c(e) {
|
|
124
|
-
return typeof e == "function" ? e() : M(e);
|
|
125
|
-
}
|
|
126
|
-
const nt = c;
|
|
127
|
-
function ge(e, t) {
|
|
128
|
-
const n = (t == null ? void 0 : t.computedGetter) === !1 ? M : c;
|
|
129
|
-
return function(...r) {
|
|
130
|
-
return p(() => e.apply(this, r.map((o) => n(o))));
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function rt(e, t = {}) {
|
|
134
|
-
let n = [], r;
|
|
135
|
-
if (Array.isArray(t))
|
|
136
|
-
n = t;
|
|
137
|
-
else {
|
|
138
|
-
r = t;
|
|
139
|
-
const { includeOwnProperties: o = !0 } = t;
|
|
140
|
-
n.push(...Object.keys(e)), o && n.push(...Object.getOwnPropertyNames(e));
|
|
141
|
-
}
|
|
142
|
-
return Object.fromEntries(
|
|
143
|
-
n.map((o) => {
|
|
144
|
-
const u = e[o];
|
|
145
|
-
return [
|
|
146
|
-
o,
|
|
147
|
-
typeof u == "function" ? ge(u.bind(e), r) : u
|
|
148
|
-
];
|
|
149
|
-
})
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
function we(e) {
|
|
153
|
-
if (!S(e))
|
|
154
|
-
return Y(e);
|
|
155
|
-
const t = new Proxy({}, {
|
|
156
|
-
get(n, r, o) {
|
|
157
|
-
return M(Reflect.get(e.value, r, o));
|
|
158
|
-
},
|
|
159
|
-
set(n, r, o) {
|
|
160
|
-
return S(e.value[r]) && !S(o) ? e.value[r].value = o : e.value[r] = o, !0;
|
|
161
|
-
},
|
|
162
|
-
deleteProperty(n, r) {
|
|
163
|
-
return Reflect.deleteProperty(e.value, r);
|
|
164
|
-
},
|
|
165
|
-
has(n, r) {
|
|
166
|
-
return Reflect.has(e.value, r);
|
|
167
|
-
},
|
|
168
|
-
ownKeys() {
|
|
169
|
-
return Object.keys(e.value);
|
|
170
|
-
},
|
|
171
|
-
getOwnPropertyDescriptor() {
|
|
172
|
-
return {
|
|
173
|
-
enumerable: !0,
|
|
174
|
-
configurable: !0
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
return Y(t);
|
|
179
|
-
}
|
|
180
|
-
function Z(e) {
|
|
181
|
-
return we(p(e));
|
|
182
|
-
}
|
|
183
|
-
function ot(e, ...t) {
|
|
184
|
-
const n = t.flat(), r = n[0];
|
|
185
|
-
return Z(() => Object.fromEntries(typeof r == "function" ? Object.entries(C(e)).filter(([o, u]) => !r(c(u), o)) : Object.entries(C(e)).filter((o) => !n.includes(o[0]))));
|
|
186
|
-
}
|
|
187
|
-
const k = typeof window < "u" && typeof document < "u", ut = typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope, it = (e) => typeof e < "u", st = (e) => e != null, ct = (e, ...t) => {
|
|
188
|
-
e || console.warn(...t);
|
|
189
|
-
}, be = Object.prototype.toString, Oe = (e) => be.call(e) === "[object Object]", lt = () => Date.now(), Se = () => +Date.now(), at = (e, t, n) => Math.min(n, Math.max(t, e)), E = () => {
|
|
190
|
-
}, ft = (e, t) => (e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1)) + e), dt = (e, t) => Object.prototype.hasOwnProperty.call(e, t), mt = /* @__PURE__ */ Ae();
|
|
191
|
-
function Ae() {
|
|
192
|
-
var e, t;
|
|
193
|
-
return k && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
194
|
-
}
|
|
195
|
-
function R(e, t) {
|
|
196
|
-
function n(...r) {
|
|
197
|
-
return new Promise((o, u) => {
|
|
198
|
-
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(u);
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
return n;
|
|
202
|
-
}
|
|
203
|
-
const V = (e) => e();
|
|
204
|
-
function q(e, t = {}) {
|
|
205
|
-
let n, r, o = E;
|
|
206
|
-
const u = (i) => {
|
|
207
|
-
clearTimeout(i), o(), o = E;
|
|
208
|
-
};
|
|
209
|
-
return (i) => {
|
|
210
|
-
const l = c(e), m = c(t.maxWait);
|
|
211
|
-
return n && u(n), l <= 0 || m !== void 0 && m <= 0 ? (r && (u(r), r = null), Promise.resolve(i())) : new Promise((d, f) => {
|
|
212
|
-
o = t.rejectOnCancel ? f : d, m && !r && (r = setTimeout(() => {
|
|
213
|
-
n && u(n), r = null, d(i());
|
|
214
|
-
}, m)), n = setTimeout(() => {
|
|
215
|
-
r && u(r), r = null, d(i());
|
|
216
|
-
}, l);
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
function X(...e) {
|
|
221
|
-
let t = 0, n, r = !0, o = E, u, s, i, l, m;
|
|
222
|
-
!S(e[0]) && typeof e[0] == "object" ? { delay: s, trailing: i = !0, leading: l = !0, rejectOnCancel: m = !1 } = e[0] : [s, i = !0, l = !0, m = !1] = e;
|
|
223
|
-
const d = () => {
|
|
224
|
-
n && (clearTimeout(n), n = void 0, o(), o = E);
|
|
225
|
-
};
|
|
226
|
-
return (a) => {
|
|
227
|
-
const v = c(s), h = Date.now() - t, b = () => u = a();
|
|
228
|
-
return d(), v <= 0 ? (t = Date.now(), b()) : (h > v && (l || !r) ? (t = Date.now(), b()) : i && (u = new Promise((g, O) => {
|
|
229
|
-
o = m ? O : g, n = setTimeout(() => {
|
|
230
|
-
t = Date.now(), r = !0, g(b()), d();
|
|
231
|
-
}, Math.max(0, v - h));
|
|
232
|
-
})), !l && !n && (n = setTimeout(() => r = !0, v)), r = !1, u);
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function Me(e = V) {
|
|
236
|
-
const t = w(!0);
|
|
237
|
-
function n() {
|
|
238
|
-
t.value = !1;
|
|
239
|
-
}
|
|
240
|
-
function r() {
|
|
241
|
-
t.value = !0;
|
|
242
|
-
}
|
|
243
|
-
const o = (...u) => {
|
|
244
|
-
t.value && e(...u);
|
|
245
|
-
};
|
|
246
|
-
return { isActive: N(t), pause: n, resume: r, eventFilter: o };
|
|
247
|
-
}
|
|
248
|
-
const vt = {
|
|
249
|
-
mounted: I ? "mounted" : "inserted",
|
|
250
|
-
updated: I ? "updated" : "componentUpdated",
|
|
251
|
-
unmounted: I ? "unmounted" : "unbind"
|
|
252
|
-
};
|
|
253
|
-
function J(e) {
|
|
254
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
255
|
-
return (n) => t[n] || (t[n] = e(n));
|
|
256
|
-
}
|
|
257
|
-
const De = /\B([A-Z])/g, pt = J((e) => e.replace(De, "-$1").toLowerCase()), Pe = /-(\w)/g, ht = J((e) => e.replace(Pe, (t, n) => n ? n.toUpperCase() : ""));
|
|
258
|
-
function H(e, t = !1, n = "Timeout") {
|
|
259
|
-
return new Promise((r, o) => {
|
|
260
|
-
setTimeout(t ? () => o(n) : r, e);
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
function yt(e) {
|
|
264
|
-
return e;
|
|
265
|
-
}
|
|
266
|
-
function gt(e) {
|
|
267
|
-
let t;
|
|
268
|
-
function n() {
|
|
269
|
-
return t || (t = e()), t;
|
|
270
|
-
}
|
|
271
|
-
return n.reset = async () => {
|
|
272
|
-
const r = t;
|
|
273
|
-
t = void 0, r && await r;
|
|
274
|
-
}, n;
|
|
275
|
-
}
|
|
276
|
-
function wt(e) {
|
|
277
|
-
return e();
|
|
278
|
-
}
|
|
279
|
-
function Te(e, ...t) {
|
|
280
|
-
return t.some((n) => n in e);
|
|
281
|
-
}
|
|
282
|
-
function bt(e, t) {
|
|
283
|
-
var n;
|
|
284
|
-
if (typeof e == "number")
|
|
285
|
-
return e + t;
|
|
286
|
-
const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", o = e.slice(r.length), u = Number.parseFloat(r) + t;
|
|
287
|
-
return Number.isNaN(u) ? e : u + o;
|
|
288
|
-
}
|
|
289
|
-
function Ot(e, t, n = !1) {
|
|
290
|
-
return t.reduce((r, o) => (o in e && (!n || e[o] !== void 0) && (r[o] = e[o]), r), {});
|
|
291
|
-
}
|
|
292
|
-
function St(e, t, n = !1) {
|
|
293
|
-
return Object.fromEntries(Object.entries(e).filter(([r, o]) => (!n || o !== void 0) && !t.includes(r)));
|
|
294
|
-
}
|
|
295
|
-
function At(e) {
|
|
296
|
-
return Object.entries(e);
|
|
297
|
-
}
|
|
298
|
-
function L(e) {
|
|
299
|
-
return e || $();
|
|
300
|
-
}
|
|
301
|
-
function K(...e) {
|
|
302
|
-
if (e.length !== 1)
|
|
303
|
-
return se(...e);
|
|
304
|
-
const t = e[0];
|
|
305
|
-
return typeof t == "function" ? N(F(() => ({ get: t, set: E }))) : w(t);
|
|
306
|
-
}
|
|
307
|
-
const Mt = K;
|
|
308
|
-
function Dt(e, ...t) {
|
|
309
|
-
const n = t.flat(), r = n[0];
|
|
310
|
-
return Z(() => Object.fromEntries(typeof r == "function" ? Object.entries(C(e)).filter(([o, u]) => r(c(u), o)) : n.map((o) => [o, K(e, o)])));
|
|
311
|
-
}
|
|
312
|
-
function Pt(e, t = 1e4) {
|
|
313
|
-
return F((n, r) => {
|
|
314
|
-
let o = c(e), u;
|
|
315
|
-
const s = () => setTimeout(() => {
|
|
316
|
-
o = c(e), r();
|
|
317
|
-
}, c(t));
|
|
318
|
-
return T(() => {
|
|
319
|
-
clearTimeout(u);
|
|
320
|
-
}), {
|
|
321
|
-
get() {
|
|
322
|
-
return n(), o;
|
|
323
|
-
},
|
|
324
|
-
set(i) {
|
|
325
|
-
o = i, r(), clearTimeout(u), u = s();
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
function Ee(e, t = 200, n = {}) {
|
|
331
|
-
return R(
|
|
332
|
-
q(t, n),
|
|
333
|
-
e
|
|
334
|
-
);
|
|
335
|
-
}
|
|
336
|
-
function Tt(e, t = 200, n = {}) {
|
|
337
|
-
const r = w(e.value), o = Ee(() => {
|
|
338
|
-
r.value = e.value;
|
|
339
|
-
}, t, n);
|
|
340
|
-
return y(e, () => o()), r;
|
|
341
|
-
}
|
|
342
|
-
function Et(e, t) {
|
|
343
|
-
return p({
|
|
344
|
-
get() {
|
|
345
|
-
var n;
|
|
346
|
-
return (n = e.value) != null ? n : t;
|
|
347
|
-
},
|
|
348
|
-
set(n) {
|
|
349
|
-
e.value = n;
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
function Fe(e, t = 200, n = !1, r = !0, o = !1) {
|
|
354
|
-
return R(
|
|
355
|
-
X(t, n, r, o),
|
|
356
|
-
e
|
|
357
|
-
);
|
|
358
|
-
}
|
|
359
|
-
function Ft(e, t = 200, n = !0, r = !0) {
|
|
360
|
-
if (t <= 0)
|
|
361
|
-
return e;
|
|
362
|
-
const o = w(e.value), u = Fe(() => {
|
|
363
|
-
o.value = e.value;
|
|
364
|
-
}, t, n, r);
|
|
365
|
-
return y(e, () => u()), o;
|
|
366
|
-
}
|
|
367
|
-
function _e(e, t = {}) {
|
|
368
|
-
let n = e, r, o;
|
|
369
|
-
const u = F((a, v) => (r = a, o = v, {
|
|
370
|
-
get() {
|
|
371
|
-
return s();
|
|
372
|
-
},
|
|
373
|
-
set(h) {
|
|
374
|
-
i(h);
|
|
375
|
-
}
|
|
376
|
-
}));
|
|
377
|
-
function s(a = !0) {
|
|
378
|
-
return a && r(), n;
|
|
379
|
-
}
|
|
380
|
-
function i(a, v = !0) {
|
|
381
|
-
var h, b;
|
|
382
|
-
if (a === n)
|
|
383
|
-
return;
|
|
384
|
-
const g = n;
|
|
385
|
-
((h = t.onBeforeChange) == null ? void 0 : h.call(t, a, g)) !== !1 && (n = a, (b = t.onChanged) == null || b.call(t, a, g), v && o());
|
|
386
|
-
}
|
|
387
|
-
return ye(
|
|
388
|
-
u,
|
|
389
|
-
{
|
|
390
|
-
get: s,
|
|
391
|
-
set: i,
|
|
392
|
-
untrackedGet: () => s(!1),
|
|
393
|
-
silentSet: (a) => i(a, !1),
|
|
394
|
-
peek: () => s(!1),
|
|
395
|
-
lay: (a) => i(a, !1)
|
|
396
|
-
},
|
|
397
|
-
{ enumerable: !0 }
|
|
398
|
-
);
|
|
399
|
-
}
|
|
400
|
-
const _t = _e;
|
|
401
|
-
function xt(...e) {
|
|
402
|
-
if (e.length === 2) {
|
|
403
|
-
const [t, n] = e;
|
|
404
|
-
t.value = n;
|
|
405
|
-
}
|
|
406
|
-
if (e.length === 3)
|
|
407
|
-
if (ce)
|
|
408
|
-
le(...e);
|
|
409
|
-
else {
|
|
410
|
-
const [t, n, r] = e;
|
|
411
|
-
t[n] = r;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function j(e, t, n = {}) {
|
|
415
|
-
const {
|
|
416
|
-
eventFilter: r = V,
|
|
417
|
-
...o
|
|
418
|
-
} = n;
|
|
419
|
-
return y(
|
|
420
|
-
e,
|
|
421
|
-
R(
|
|
422
|
-
r,
|
|
423
|
-
t
|
|
424
|
-
),
|
|
425
|
-
o
|
|
426
|
-
);
|
|
427
|
-
}
|
|
428
|
-
function G(e, t, n = {}) {
|
|
429
|
-
const {
|
|
430
|
-
eventFilter: r,
|
|
431
|
-
...o
|
|
432
|
-
} = n, { eventFilter: u, pause: s, resume: i, isActive: l } = Me(r);
|
|
433
|
-
return { stop: j(
|
|
434
|
-
e,
|
|
435
|
-
t,
|
|
436
|
-
{
|
|
437
|
-
...o,
|
|
438
|
-
eventFilter: u
|
|
439
|
-
}
|
|
440
|
-
), pause: s, resume: i, isActive: l };
|
|
441
|
-
}
|
|
442
|
-
function It(e, t, ...[n]) {
|
|
443
|
-
const {
|
|
444
|
-
flush: r = "sync",
|
|
445
|
-
deep: o = !1,
|
|
446
|
-
immediate: u = !0,
|
|
447
|
-
direction: s = "both",
|
|
448
|
-
transform: i = {}
|
|
449
|
-
} = n || {}, l = [], m = "ltr" in i && i.ltr || ((a) => a), d = "rtl" in i && i.rtl || ((a) => a);
|
|
450
|
-
return (s === "both" || s === "ltr") && l.push(G(
|
|
451
|
-
e,
|
|
452
|
-
(a) => {
|
|
453
|
-
l.forEach((v) => v.pause()), t.value = m(a), l.forEach((v) => v.resume());
|
|
454
|
-
},
|
|
455
|
-
{ flush: r, deep: o, immediate: u }
|
|
456
|
-
)), (s === "both" || s === "rtl") && l.push(G(
|
|
457
|
-
t,
|
|
458
|
-
(a) => {
|
|
459
|
-
l.forEach((v) => v.pause()), e.value = d(a), l.forEach((v) => v.resume());
|
|
460
|
-
},
|
|
461
|
-
{ flush: r, deep: o, immediate: u }
|
|
462
|
-
)), () => {
|
|
463
|
-
l.forEach((a) => a.stop());
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
function Ct(e, t, n = {}) {
|
|
467
|
-
const {
|
|
468
|
-
flush: r = "sync",
|
|
469
|
-
deep: o = !1,
|
|
470
|
-
immediate: u = !0
|
|
471
|
-
} = n;
|
|
472
|
-
return Array.isArray(t) || (t = [t]), y(
|
|
473
|
-
e,
|
|
474
|
-
(s) => t.forEach((i) => i.value = s),
|
|
475
|
-
{ flush: r, deep: o, immediate: u }
|
|
476
|
-
);
|
|
477
|
-
}
|
|
478
|
-
function kt(e, t = {}) {
|
|
479
|
-
if (!S(e))
|
|
480
|
-
return C(e);
|
|
481
|
-
const n = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
482
|
-
for (const r in e.value)
|
|
483
|
-
n[r] = F(() => ({
|
|
484
|
-
get() {
|
|
485
|
-
return e.value[r];
|
|
486
|
-
},
|
|
487
|
-
set(o) {
|
|
488
|
-
var u;
|
|
489
|
-
if ((u = c(t.replaceRef)) != null ? u : !0)
|
|
490
|
-
if (Array.isArray(e.value)) {
|
|
491
|
-
const i = [...e.value];
|
|
492
|
-
i[r] = o, e.value = i;
|
|
493
|
-
} else {
|
|
494
|
-
const i = { ...e.value, [r]: o };
|
|
495
|
-
Object.setPrototypeOf(i, Object.getPrototypeOf(e.value)), e.value = i;
|
|
496
|
-
}
|
|
497
|
-
else
|
|
498
|
-
e.value[r] = o;
|
|
499
|
-
}
|
|
500
|
-
}));
|
|
501
|
-
return n;
|
|
502
|
-
}
|
|
503
|
-
function Nt(e, t = !0, n) {
|
|
504
|
-
L(n) ? ae(e, n) : t ? e() : _(e);
|
|
505
|
-
}
|
|
506
|
-
function Rt(e, t) {
|
|
507
|
-
L(t) && fe(e, t);
|
|
508
|
-
}
|
|
509
|
-
function Lt(e, t = !0, n) {
|
|
510
|
-
L() ? de(e, n) : t ? e() : _(e);
|
|
511
|
-
}
|
|
512
|
-
function jt(e, t) {
|
|
513
|
-
L(t) && me(e, t);
|
|
514
|
-
}
|
|
515
|
-
function U(e, t = !1) {
|
|
516
|
-
function n(f, { flush: a = "sync", deep: v = !1, timeout: h, throwOnTimeout: b } = {}) {
|
|
517
|
-
let g = null;
|
|
518
|
-
const W = [new Promise((x) => {
|
|
519
|
-
g = y(
|
|
520
|
-
e,
|
|
521
|
-
(D) => {
|
|
522
|
-
f(D) !== t && (g == null || g(), x(D));
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
flush: a,
|
|
526
|
-
deep: v,
|
|
527
|
-
immediate: !0
|
|
528
|
-
}
|
|
529
|
-
);
|
|
530
|
-
})];
|
|
531
|
-
return h != null && W.push(
|
|
532
|
-
H(h, b).then(() => c(e)).finally(() => g == null ? void 0 : g())
|
|
533
|
-
), Promise.race(W);
|
|
534
|
-
}
|
|
535
|
-
function r(f, a) {
|
|
536
|
-
if (!S(f))
|
|
537
|
-
return n((D) => D === f, a);
|
|
538
|
-
const { flush: v = "sync", deep: h = !1, timeout: b, throwOnTimeout: g } = a ?? {};
|
|
539
|
-
let O = null;
|
|
540
|
-
const x = [new Promise((D) => {
|
|
541
|
-
O = y(
|
|
542
|
-
[e, f],
|
|
543
|
-
([B, Q]) => {
|
|
544
|
-
t !== (B === Q) && (O == null || O(), D(B));
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
flush: v,
|
|
548
|
-
deep: h,
|
|
549
|
-
immediate: !0
|
|
550
|
-
}
|
|
551
|
-
);
|
|
552
|
-
})];
|
|
553
|
-
return b != null && x.push(
|
|
554
|
-
H(b, g).then(() => c(e)).finally(() => (O == null || O(), c(e)))
|
|
555
|
-
), Promise.race(x);
|
|
556
|
-
}
|
|
557
|
-
function o(f) {
|
|
558
|
-
return n((a) => !!a, f);
|
|
559
|
-
}
|
|
560
|
-
function u(f) {
|
|
561
|
-
return r(null, f);
|
|
562
|
-
}
|
|
563
|
-
function s(f) {
|
|
564
|
-
return r(void 0, f);
|
|
565
|
-
}
|
|
566
|
-
function i(f) {
|
|
567
|
-
return n(Number.isNaN, f);
|
|
568
|
-
}
|
|
569
|
-
function l(f, a) {
|
|
570
|
-
return n((v) => {
|
|
571
|
-
const h = Array.from(v);
|
|
572
|
-
return h.includes(f) || h.includes(c(f));
|
|
573
|
-
}, a);
|
|
574
|
-
}
|
|
575
|
-
function m(f) {
|
|
576
|
-
return d(1, f);
|
|
577
|
-
}
|
|
578
|
-
function d(f = 1, a) {
|
|
579
|
-
let v = -1;
|
|
580
|
-
return n(() => (v += 1, v >= f), a);
|
|
581
|
-
}
|
|
582
|
-
return Array.isArray(c(e)) ? {
|
|
583
|
-
toMatch: n,
|
|
584
|
-
toContains: l,
|
|
585
|
-
changed: m,
|
|
586
|
-
changedTimes: d,
|
|
587
|
-
get not() {
|
|
588
|
-
return U(e, !t);
|
|
589
|
-
}
|
|
590
|
-
} : {
|
|
591
|
-
toMatch: n,
|
|
592
|
-
toBe: r,
|
|
593
|
-
toBeTruthy: o,
|
|
594
|
-
toBeNull: u,
|
|
595
|
-
toBeNaN: i,
|
|
596
|
-
toBeUndefined: s,
|
|
597
|
-
changed: m,
|
|
598
|
-
changedTimes: d,
|
|
599
|
-
get not() {
|
|
600
|
-
return U(e, !t);
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
}
|
|
604
|
-
function Wt(e) {
|
|
605
|
-
return U(e);
|
|
606
|
-
}
|
|
607
|
-
function xe(e, t) {
|
|
608
|
-
return e === t;
|
|
609
|
-
}
|
|
610
|
-
function Ut(...e) {
|
|
611
|
-
var t;
|
|
612
|
-
const n = e[0], r = e[1];
|
|
613
|
-
let o = (t = e[2]) != null ? t : xe;
|
|
614
|
-
if (typeof o == "string") {
|
|
615
|
-
const u = o;
|
|
616
|
-
o = (s, i) => s[u] === i[u];
|
|
617
|
-
}
|
|
618
|
-
return p(() => c(n).filter((u) => c(r).findIndex((s) => o(u, s)) === -1));
|
|
619
|
-
}
|
|
620
|
-
function $t(e, t) {
|
|
621
|
-
return p(() => c(e).every((n, r, o) => t(c(n), r, o)));
|
|
622
|
-
}
|
|
623
|
-
function Vt(e, t) {
|
|
624
|
-
return p(() => c(e).map((n) => c(n)).filter(t));
|
|
625
|
-
}
|
|
626
|
-
function Bt(e, t) {
|
|
627
|
-
return p(() => c(
|
|
628
|
-
c(e).find((n, r, o) => t(c(n), r, o))
|
|
629
|
-
));
|
|
630
|
-
}
|
|
631
|
-
function Yt(e, t) {
|
|
632
|
-
return p(() => c(e).findIndex((n, r, o) => t(c(n), r, o)));
|
|
633
|
-
}
|
|
634
|
-
function Ie(e, t) {
|
|
635
|
-
let n = e.length;
|
|
636
|
-
for (; n-- > 0; )
|
|
637
|
-
if (t(e[n], n, e))
|
|
638
|
-
return e[n];
|
|
639
|
-
}
|
|
640
|
-
function Ht(e, t) {
|
|
641
|
-
return p(() => c(
|
|
642
|
-
Array.prototype.findLast ? c(e).findLast((n, r, o) => t(c(n), r, o)) : Ie(c(e), (n, r, o) => t(c(n), r, o))
|
|
643
|
-
));
|
|
644
|
-
}
|
|
645
|
-
function Ce(e) {
|
|
646
|
-
return Oe(e) && Te(e, "formIndex", "comparator");
|
|
647
|
-
}
|
|
648
|
-
function Gt(...e) {
|
|
649
|
-
var t;
|
|
650
|
-
const n = e[0], r = e[1];
|
|
651
|
-
let o = e[2], u = 0;
|
|
652
|
-
if (Ce(o) && (u = (t = o.fromIndex) != null ? t : 0, o = o.comparator), typeof o == "string") {
|
|
653
|
-
const s = o;
|
|
654
|
-
o = (i, l) => i[s] === c(l);
|
|
655
|
-
}
|
|
656
|
-
return o = o ?? ((s, i) => s === c(i)), p(() => c(n).slice(u).some((s, i, l) => o(
|
|
657
|
-
c(s),
|
|
658
|
-
c(r),
|
|
659
|
-
i,
|
|
660
|
-
c(l)
|
|
661
|
-
)));
|
|
662
|
-
}
|
|
663
|
-
function zt(e, t) {
|
|
664
|
-
return p(() => c(e).map((n) => c(n)).join(c(t)));
|
|
665
|
-
}
|
|
666
|
-
function Zt(e, t) {
|
|
667
|
-
return p(() => c(e).map((n) => c(n)).map(t));
|
|
668
|
-
}
|
|
669
|
-
function qt(e, t, ...n) {
|
|
670
|
-
const r = (o, u, s) => t(c(o), c(u), s);
|
|
671
|
-
return p(() => {
|
|
672
|
-
const o = c(e);
|
|
673
|
-
return n.length ? o.reduce(r, c(n[0])) : o.reduce(r);
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
function Xt(e, t) {
|
|
677
|
-
return p(() => c(e).some((n, r, o) => t(c(n), r, o)));
|
|
678
|
-
}
|
|
679
|
-
function ke(e) {
|
|
680
|
-
return Array.from(new Set(e));
|
|
681
|
-
}
|
|
682
|
-
function Ne(e, t) {
|
|
683
|
-
return e.reduce((n, r) => (n.some((o) => t(r, o, e)) || n.push(r), n), []);
|
|
684
|
-
}
|
|
685
|
-
function Jt(e, t) {
|
|
686
|
-
return p(() => {
|
|
687
|
-
const n = c(e).map((r) => c(r));
|
|
688
|
-
return t ? Ne(n, t) : ke(n);
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
function Kt(e = 0, t = {}) {
|
|
692
|
-
let n = M(e);
|
|
693
|
-
const r = w(e), {
|
|
694
|
-
max: o = Number.POSITIVE_INFINITY,
|
|
695
|
-
min: u = Number.NEGATIVE_INFINITY
|
|
696
|
-
} = t, s = (f = 1) => r.value = Math.max(Math.min(o, r.value + f), u), i = (f = 1) => r.value = Math.min(Math.max(u, r.value - f), o), l = () => r.value, m = (f) => r.value = Math.max(u, Math.min(o, f));
|
|
697
|
-
return { count: r, inc: s, dec: i, get: l, set: m, reset: (f = n) => (n = f, m(f)) };
|
|
698
|
-
}
|
|
699
|
-
const Re = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i, Le = /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
|
|
700
|
-
function je(e, t, n, r) {
|
|
701
|
-
let o = e < 12 ? "AM" : "PM";
|
|
702
|
-
return r && (o = o.split("").reduce((u, s) => u += `${s}.`, "")), n ? o.toLowerCase() : o;
|
|
703
|
-
}
|
|
704
|
-
function A(e) {
|
|
705
|
-
const t = ["th", "st", "nd", "rd"], n = e % 100;
|
|
706
|
-
return e + (t[(n - 20) % 10] || t[n] || t[0]);
|
|
707
|
-
}
|
|
708
|
-
function We(e, t, n = {}) {
|
|
709
|
-
var r;
|
|
710
|
-
const o = e.getFullYear(), u = e.getMonth(), s = e.getDate(), i = e.getHours(), l = e.getMinutes(), m = e.getSeconds(), d = e.getMilliseconds(), f = e.getDay(), a = (r = n.customMeridiem) != null ? r : je, v = {
|
|
711
|
-
Yo: () => A(o),
|
|
712
|
-
YY: () => String(o).slice(-2),
|
|
713
|
-
YYYY: () => o,
|
|
714
|
-
M: () => u + 1,
|
|
715
|
-
Mo: () => A(u + 1),
|
|
716
|
-
MM: () => `${u + 1}`.padStart(2, "0"),
|
|
717
|
-
MMM: () => e.toLocaleDateString(n.locales, { month: "short" }),
|
|
718
|
-
MMMM: () => e.toLocaleDateString(n.locales, { month: "long" }),
|
|
719
|
-
D: () => String(s),
|
|
720
|
-
Do: () => A(s),
|
|
721
|
-
DD: () => `${s}`.padStart(2, "0"),
|
|
722
|
-
H: () => String(i),
|
|
723
|
-
Ho: () => A(i),
|
|
724
|
-
HH: () => `${i}`.padStart(2, "0"),
|
|
725
|
-
h: () => `${i % 12 || 12}`.padStart(1, "0"),
|
|
726
|
-
ho: () => A(i % 12 || 12),
|
|
727
|
-
hh: () => `${i % 12 || 12}`.padStart(2, "0"),
|
|
728
|
-
m: () => String(l),
|
|
729
|
-
mo: () => A(l),
|
|
730
|
-
mm: () => `${l}`.padStart(2, "0"),
|
|
731
|
-
s: () => String(m),
|
|
732
|
-
so: () => A(m),
|
|
733
|
-
ss: () => `${m}`.padStart(2, "0"),
|
|
734
|
-
SSS: () => `${d}`.padStart(3, "0"),
|
|
735
|
-
d: () => f,
|
|
736
|
-
dd: () => e.toLocaleDateString(n.locales, { weekday: "narrow" }),
|
|
737
|
-
ddd: () => e.toLocaleDateString(n.locales, { weekday: "short" }),
|
|
738
|
-
dddd: () => e.toLocaleDateString(n.locales, { weekday: "long" }),
|
|
739
|
-
A: () => a(i, l),
|
|
740
|
-
AA: () => a(i, l, !1, !0),
|
|
741
|
-
a: () => a(i, l, !0),
|
|
742
|
-
aa: () => a(i, l, !0, !0)
|
|
743
|
-
};
|
|
744
|
-
return t.replace(Le, (h, b) => {
|
|
745
|
-
var g, O;
|
|
746
|
-
return (O = b ?? ((g = v[h]) == null ? void 0 : g.call(v))) != null ? O : h;
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
function Ue(e) {
|
|
750
|
-
if (e === null)
|
|
751
|
-
return new Date(Number.NaN);
|
|
752
|
-
if (e === void 0)
|
|
753
|
-
return /* @__PURE__ */ new Date();
|
|
754
|
-
if (e instanceof Date)
|
|
755
|
-
return new Date(e);
|
|
756
|
-
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
757
|
-
const t = e.match(Re);
|
|
758
|
-
if (t) {
|
|
759
|
-
const n = t[2] - 1 || 0, r = (t[7] || "0").substring(0, 3);
|
|
760
|
-
return new Date(t[1], n, t[3] || 1, t[4] || 0, t[5] || 0, t[6] || 0, r);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
return new Date(e);
|
|
764
|
-
}
|
|
765
|
-
function Qt(e, t = "HH:mm:ss", n = {}) {
|
|
766
|
-
return p(() => We(Ue(c(e)), c(t), n));
|
|
767
|
-
}
|
|
768
|
-
function $e(e, t = 1e3, n = {}) {
|
|
769
|
-
const {
|
|
770
|
-
immediate: r = !0,
|
|
771
|
-
immediateCallback: o = !1
|
|
772
|
-
} = n;
|
|
773
|
-
let u = null;
|
|
774
|
-
const s = w(!1);
|
|
775
|
-
function i() {
|
|
776
|
-
u && (clearInterval(u), u = null);
|
|
777
|
-
}
|
|
778
|
-
function l() {
|
|
779
|
-
s.value = !1, i();
|
|
780
|
-
}
|
|
781
|
-
function m() {
|
|
782
|
-
const d = c(t);
|
|
783
|
-
d <= 0 || (s.value = !0, o && e(), i(), u = setInterval(e, d));
|
|
784
|
-
}
|
|
785
|
-
if (r && k && m(), S(t) || typeof t == "function") {
|
|
786
|
-
const d = y(t, () => {
|
|
787
|
-
s.value && k && m();
|
|
788
|
-
});
|
|
789
|
-
T(d);
|
|
790
|
-
}
|
|
791
|
-
return T(l), {
|
|
792
|
-
isActive: s,
|
|
793
|
-
pause: l,
|
|
794
|
-
resume: m
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
function en(e = 1e3, t = {}) {
|
|
798
|
-
const {
|
|
799
|
-
controls: n = !1,
|
|
800
|
-
immediate: r = !0,
|
|
801
|
-
callback: o
|
|
802
|
-
} = t, u = w(0), s = () => u.value += 1, i = () => {
|
|
803
|
-
u.value = 0;
|
|
804
|
-
}, l = $e(
|
|
805
|
-
o ? () => {
|
|
806
|
-
s(), o(u.value);
|
|
807
|
-
} : s,
|
|
808
|
-
e,
|
|
809
|
-
{ immediate: r }
|
|
810
|
-
);
|
|
811
|
-
return n ? {
|
|
812
|
-
counter: u,
|
|
813
|
-
reset: i,
|
|
814
|
-
...l
|
|
815
|
-
} : u;
|
|
816
|
-
}
|
|
817
|
-
function tn(e, t = {}) {
|
|
818
|
-
var n;
|
|
819
|
-
const r = w((n = t.initialValue) != null ? n : null);
|
|
820
|
-
return y(
|
|
821
|
-
e,
|
|
822
|
-
() => r.value = Se(),
|
|
823
|
-
t
|
|
824
|
-
), r;
|
|
825
|
-
}
|
|
826
|
-
function Ve(e, t, n = {}) {
|
|
827
|
-
const {
|
|
828
|
-
immediate: r = !0
|
|
829
|
-
} = n, o = w(!1);
|
|
830
|
-
let u = null;
|
|
831
|
-
function s() {
|
|
832
|
-
u && (clearTimeout(u), u = null);
|
|
833
|
-
}
|
|
834
|
-
function i() {
|
|
835
|
-
o.value = !1, s();
|
|
836
|
-
}
|
|
837
|
-
function l(...m) {
|
|
838
|
-
s(), o.value = !0, u = setTimeout(() => {
|
|
839
|
-
o.value = !1, u = null, e(...m);
|
|
840
|
-
}, c(t));
|
|
841
|
-
}
|
|
842
|
-
return r && (o.value = !0, k && l()), T(i), {
|
|
843
|
-
isPending: N(o),
|
|
844
|
-
start: l,
|
|
845
|
-
stop: i
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
function nn(e = 1e3, t = {}) {
|
|
849
|
-
const {
|
|
850
|
-
controls: n = !1,
|
|
851
|
-
callback: r
|
|
852
|
-
} = t, o = Ve(
|
|
853
|
-
r ?? E,
|
|
854
|
-
e,
|
|
855
|
-
t
|
|
856
|
-
), u = p(() => !o.isPending.value);
|
|
857
|
-
return n ? {
|
|
858
|
-
ready: u,
|
|
859
|
-
...o
|
|
860
|
-
} : u;
|
|
861
|
-
}
|
|
862
|
-
function rn(e, t = {}) {
|
|
863
|
-
const {
|
|
864
|
-
method: n = "parseFloat",
|
|
865
|
-
radix: r,
|
|
866
|
-
nanToZero: o
|
|
867
|
-
} = t;
|
|
868
|
-
return p(() => {
|
|
869
|
-
let u = c(e);
|
|
870
|
-
return typeof u == "string" && (u = Number[n](u, r)), o && Number.isNaN(u) && (u = 0), u;
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
function on(e) {
|
|
874
|
-
return p(() => `${c(e)}`);
|
|
875
|
-
}
|
|
876
|
-
function un(e = !1, t = {}) {
|
|
877
|
-
const {
|
|
878
|
-
truthyValue: n = !0,
|
|
879
|
-
falsyValue: r = !1
|
|
880
|
-
} = t, o = S(e), u = w(e);
|
|
881
|
-
function s(i) {
|
|
882
|
-
if (arguments.length)
|
|
883
|
-
return u.value = i, u.value;
|
|
884
|
-
{
|
|
885
|
-
const l = c(n);
|
|
886
|
-
return u.value = u.value === l ? c(r) : l, u.value;
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
return o ? s : [u, s];
|
|
890
|
-
}
|
|
891
|
-
function sn(e, t, n) {
|
|
892
|
-
let r = n != null && n.immediate ? [] : [...e instanceof Function ? e() : Array.isArray(e) ? e : c(e)];
|
|
893
|
-
return y(e, (o, u, s) => {
|
|
894
|
-
const i = Array.from({ length: r.length }), l = [];
|
|
895
|
-
for (const d of o) {
|
|
896
|
-
let f = !1;
|
|
897
|
-
for (let a = 0; a < r.length; a++)
|
|
898
|
-
if (!i[a] && d === r[a]) {
|
|
899
|
-
i[a] = !0, f = !0;
|
|
900
|
-
break;
|
|
901
|
-
}
|
|
902
|
-
f || l.push(d);
|
|
903
|
-
}
|
|
904
|
-
const m = r.filter((d, f) => !i[f]);
|
|
905
|
-
t(o, r, l, m, s), r = [...o];
|
|
906
|
-
}, n);
|
|
907
|
-
}
|
|
908
|
-
function cn(e, t, n) {
|
|
909
|
-
const {
|
|
910
|
-
count: r,
|
|
911
|
-
...o
|
|
912
|
-
} = n, u = w(0), s = j(
|
|
913
|
-
e,
|
|
914
|
-
(...i) => {
|
|
915
|
-
u.value += 1, u.value >= c(r) && _(() => s()), t(...i);
|
|
916
|
-
},
|
|
917
|
-
o
|
|
918
|
-
);
|
|
919
|
-
return { count: u, stop: s };
|
|
920
|
-
}
|
|
921
|
-
function ln(e, t, n = {}) {
|
|
922
|
-
const {
|
|
923
|
-
debounce: r = 0,
|
|
924
|
-
maxWait: o = void 0,
|
|
925
|
-
...u
|
|
926
|
-
} = n;
|
|
927
|
-
return j(
|
|
928
|
-
e,
|
|
929
|
-
t,
|
|
930
|
-
{
|
|
931
|
-
...u,
|
|
932
|
-
eventFilter: q(r, { maxWait: o })
|
|
933
|
-
}
|
|
934
|
-
);
|
|
935
|
-
}
|
|
936
|
-
function an(e, t, n) {
|
|
937
|
-
return y(
|
|
938
|
-
e,
|
|
939
|
-
t,
|
|
940
|
-
{
|
|
941
|
-
...n,
|
|
942
|
-
deep: !0
|
|
943
|
-
}
|
|
944
|
-
);
|
|
945
|
-
}
|
|
946
|
-
function Be(e, t, n = {}) {
|
|
947
|
-
const {
|
|
948
|
-
eventFilter: r = V,
|
|
949
|
-
...o
|
|
950
|
-
} = n, u = R(
|
|
951
|
-
r,
|
|
952
|
-
t
|
|
953
|
-
);
|
|
954
|
-
let s, i, l;
|
|
955
|
-
if (o.flush === "sync") {
|
|
956
|
-
const m = w(!1);
|
|
957
|
-
i = () => {
|
|
958
|
-
}, s = (d) => {
|
|
959
|
-
m.value = !0, d(), m.value = !1;
|
|
960
|
-
}, l = y(
|
|
961
|
-
e,
|
|
962
|
-
(...d) => {
|
|
963
|
-
m.value || u(...d);
|
|
964
|
-
},
|
|
965
|
-
o
|
|
966
|
-
);
|
|
967
|
-
} else {
|
|
968
|
-
const m = [], d = w(0), f = w(0);
|
|
969
|
-
i = () => {
|
|
970
|
-
d.value = f.value;
|
|
971
|
-
}, m.push(
|
|
972
|
-
y(
|
|
973
|
-
e,
|
|
974
|
-
() => {
|
|
975
|
-
f.value++;
|
|
976
|
-
},
|
|
977
|
-
{ ...o, flush: "sync" }
|
|
978
|
-
)
|
|
979
|
-
), s = (a) => {
|
|
980
|
-
const v = f.value;
|
|
981
|
-
a(), d.value += f.value - v;
|
|
982
|
-
}, m.push(
|
|
983
|
-
y(
|
|
984
|
-
e,
|
|
985
|
-
(...a) => {
|
|
986
|
-
const v = d.value > 0 && d.value === f.value;
|
|
987
|
-
d.value = 0, f.value = 0, !v && u(...a);
|
|
988
|
-
},
|
|
989
|
-
o
|
|
990
|
-
)
|
|
991
|
-
), l = () => {
|
|
992
|
-
m.forEach((a) => a());
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
return { stop: l, ignoreUpdates: s, ignorePrevAsyncUpdates: i };
|
|
996
|
-
}
|
|
997
|
-
function fn(e, t, n) {
|
|
998
|
-
return y(
|
|
999
|
-
e,
|
|
1000
|
-
t,
|
|
1001
|
-
{
|
|
1002
|
-
...n,
|
|
1003
|
-
immediate: !0
|
|
1004
|
-
}
|
|
1005
|
-
);
|
|
1006
|
-
}
|
|
1007
|
-
function dn(e, t, n) {
|
|
1008
|
-
const r = y(e, (...o) => (_(() => r()), t(...o)), n);
|
|
1009
|
-
return r;
|
|
1010
|
-
}
|
|
1011
|
-
function mn(e, t, n = {}) {
|
|
1012
|
-
const {
|
|
1013
|
-
throttle: r = 0,
|
|
1014
|
-
trailing: o = !0,
|
|
1015
|
-
leading: u = !0,
|
|
1016
|
-
...s
|
|
1017
|
-
} = n;
|
|
1018
|
-
return j(
|
|
1019
|
-
e,
|
|
1020
|
-
t,
|
|
1021
|
-
{
|
|
1022
|
-
...s,
|
|
1023
|
-
eventFilter: X(r, o, u)
|
|
1024
|
-
}
|
|
1025
|
-
);
|
|
1026
|
-
}
|
|
1027
|
-
function vn(e, t, n = {}) {
|
|
1028
|
-
let r;
|
|
1029
|
-
function o() {
|
|
1030
|
-
if (!r)
|
|
1031
|
-
return;
|
|
1032
|
-
const d = r;
|
|
1033
|
-
r = void 0, d();
|
|
1034
|
-
}
|
|
1035
|
-
function u(d) {
|
|
1036
|
-
r = d;
|
|
1037
|
-
}
|
|
1038
|
-
const s = (d, f) => (o(), t(d, f, u)), i = Be(e, s, n), { ignoreUpdates: l } = i;
|
|
1039
|
-
return {
|
|
1040
|
-
...i,
|
|
1041
|
-
trigger: () => {
|
|
1042
|
-
let d;
|
|
1043
|
-
return l(() => {
|
|
1044
|
-
d = s(Ye(e), He(e));
|
|
1045
|
-
}), d;
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
}
|
|
1049
|
-
function Ye(e) {
|
|
1050
|
-
return ve(e) ? e : Array.isArray(e) ? e.map((t) => c(t)) : c(e);
|
|
1051
|
-
}
|
|
1052
|
-
function He(e) {
|
|
1053
|
-
return Array.isArray(e) ? e.map(() => {
|
|
1054
|
-
}) : void 0;
|
|
1055
|
-
}
|
|
1056
|
-
function pn(e, t, n) {
|
|
1057
|
-
const r = y(
|
|
1058
|
-
e,
|
|
1059
|
-
(o, u, s) => {
|
|
1060
|
-
o && (n != null && n.once && _(() => r()), t(o, u, s));
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
...n,
|
|
1064
|
-
once: !1
|
|
1065
|
-
}
|
|
1066
|
-
);
|
|
1067
|
-
return r;
|
|
1068
|
-
}
|
|
1069
|
-
export {
|
|
1070
|
-
ct as assert,
|
|
1071
|
-
Pt as autoResetRef,
|
|
1072
|
-
V as bypassFilter,
|
|
1073
|
-
ht as camelize,
|
|
1074
|
-
at as clamp,
|
|
1075
|
-
ze as computedEager,
|
|
1076
|
-
Ze as computedWithControl,
|
|
1077
|
-
Te as containsProp,
|
|
1078
|
-
Ze as controlledComputed,
|
|
1079
|
-
_t as controlledRef,
|
|
1080
|
-
qe as createEventHook,
|
|
1081
|
-
R as createFilterWrapper,
|
|
1082
|
-
Xe as createGlobalState,
|
|
1083
|
-
Je as createInjectionState,
|
|
1084
|
-
ge as createReactiveFn,
|
|
1085
|
-
Ke as createSharedComposable,
|
|
1086
|
-
gt as createSingletonPromise,
|
|
1087
|
-
q as debounceFilter,
|
|
1088
|
-
Tt as debouncedRef,
|
|
1089
|
-
ln as debouncedWatch,
|
|
1090
|
-
vt as directiveHooks,
|
|
1091
|
-
ze as eagerComputed,
|
|
1092
|
-
ye as extendRef,
|
|
1093
|
-
We as formatDate,
|
|
1094
|
-
Qe as get,
|
|
1095
|
-
L as getLifeCycleTarget,
|
|
1096
|
-
dt as hasOwn,
|
|
1097
|
-
pt as hyphenate,
|
|
1098
|
-
yt as identity,
|
|
1099
|
-
Be as ignorableWatch,
|
|
1100
|
-
bt as increaseWithUnit,
|
|
1101
|
-
he as injectLocal,
|
|
1102
|
-
wt as invoke,
|
|
1103
|
-
k as isClient,
|
|
1104
|
-
it as isDef,
|
|
1105
|
-
et as isDefined,
|
|
1106
|
-
mt as isIOS,
|
|
1107
|
-
Oe as isObject,
|
|
1108
|
-
ut as isWorker,
|
|
1109
|
-
tt as makeDestructurable,
|
|
1110
|
-
E as noop,
|
|
1111
|
-
Ue as normalizeDate,
|
|
1112
|
-
st as notNullish,
|
|
1113
|
-
lt as now,
|
|
1114
|
-
At as objectEntries,
|
|
1115
|
-
St as objectOmit,
|
|
1116
|
-
Ot as objectPick,
|
|
1117
|
-
Me as pausableFilter,
|
|
1118
|
-
G as pausableWatch,
|
|
1119
|
-
H as promiseTimeout,
|
|
1120
|
-
pe as provideLocal,
|
|
1121
|
-
ft as rand,
|
|
1122
|
-
ge as reactify,
|
|
1123
|
-
rt as reactifyObject,
|
|
1124
|
-
Z as reactiveComputed,
|
|
1125
|
-
ot as reactiveOmit,
|
|
1126
|
-
Dt as reactivePick,
|
|
1127
|
-
Pt as refAutoReset,
|
|
1128
|
-
Tt as refDebounced,
|
|
1129
|
-
Et as refDefault,
|
|
1130
|
-
Ft as refThrottled,
|
|
1131
|
-
_e as refWithControl,
|
|
1132
|
-
Mt as resolveRef,
|
|
1133
|
-
nt as resolveUnref,
|
|
1134
|
-
xt as set,
|
|
1135
|
-
It as syncRef,
|
|
1136
|
-
Ct as syncRefs,
|
|
1137
|
-
X as throttleFilter,
|
|
1138
|
-
Ft as throttledRef,
|
|
1139
|
-
mn as throttledWatch,
|
|
1140
|
-
Se as timestamp,
|
|
1141
|
-
we as toReactive,
|
|
1142
|
-
K as toRef,
|
|
1143
|
-
kt as toRefs,
|
|
1144
|
-
c as toValue,
|
|
1145
|
-
Nt as tryOnBeforeMount,
|
|
1146
|
-
Rt as tryOnBeforeUnmount,
|
|
1147
|
-
Lt as tryOnMounted,
|
|
1148
|
-
T as tryOnScopeDispose,
|
|
1149
|
-
jt as tryOnUnmounted,
|
|
1150
|
-
Wt as until,
|
|
1151
|
-
Ut as useArrayDifference,
|
|
1152
|
-
$t as useArrayEvery,
|
|
1153
|
-
Vt as useArrayFilter,
|
|
1154
|
-
Bt as useArrayFind,
|
|
1155
|
-
Yt as useArrayFindIndex,
|
|
1156
|
-
Ht as useArrayFindLast,
|
|
1157
|
-
Gt as useArrayIncludes,
|
|
1158
|
-
zt as useArrayJoin,
|
|
1159
|
-
Zt as useArrayMap,
|
|
1160
|
-
qt as useArrayReduce,
|
|
1161
|
-
Xt as useArraySome,
|
|
1162
|
-
Jt as useArrayUnique,
|
|
1163
|
-
Kt as useCounter,
|
|
1164
|
-
Qt as useDateFormat,
|
|
1165
|
-
Tt as useDebounce,
|
|
1166
|
-
Ee as useDebounceFn,
|
|
1167
|
-
en as useInterval,
|
|
1168
|
-
$e as useIntervalFn,
|
|
1169
|
-
tn as useLastChanged,
|
|
1170
|
-
Ft as useThrottle,
|
|
1171
|
-
Fe as useThrottleFn,
|
|
1172
|
-
nn as useTimeout,
|
|
1173
|
-
Ve as useTimeoutFn,
|
|
1174
|
-
rn as useToNumber,
|
|
1175
|
-
on as useToString,
|
|
1176
|
-
un as useToggle,
|
|
1177
|
-
sn as watchArray,
|
|
1178
|
-
cn as watchAtMost,
|
|
1179
|
-
ln as watchDebounced,
|
|
1180
|
-
an as watchDeep,
|
|
1181
|
-
Be as watchIgnorable,
|
|
1182
|
-
fn as watchImmediate,
|
|
1183
|
-
dn as watchOnce,
|
|
1184
|
-
G as watchPausable,
|
|
1185
|
-
mn as watchThrottled,
|
|
1186
|
-
vn as watchTriggerable,
|
|
1187
|
-
j as watchWithFilter,
|
|
1188
|
-
pn as whenever
|
|
1189
|
-
};
|