@opentiny/tiny-robot 0.4.2-alpha.7 → 0.4.2-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bubble/index.js +10 -9
- package/dist/index.d.ts +1135 -914
- package/dist/index.js +129 -118
- package/dist/index4.js +380 -317
- package/dist/index5.js +247 -240
- package/dist/index6.js +565 -514
- package/dist/layout/index.js +1243 -0
- package/dist/sender/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index4.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { onMounted as
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { onMounted as se, nextTick as we, watch as C, getCurrentScope as ye, onScopeDispose as be, getCurrentInstance as Q, hasInjectionContext as ue, inject as Te, shallowRef as T, shallowReadonly as Se, toValue as p, isRef as ae, toRefs as Ee, customRef as Oe, computed as R, watchEffect as ce, unref as xe, reactive as ne, ref as G, readonly as Pe } from "vue";
|
|
2
|
+
function B(e) {
|
|
3
|
+
return ye() ? (be(e), !0) : !1;
|
|
4
4
|
}
|
|
5
5
|
// @__NO_SIDE_EFFECTS__
|
|
6
|
-
function
|
|
6
|
+
function oe() {
|
|
7
7
|
const e = /* @__PURE__ */ new Set(), t = (i) => {
|
|
8
8
|
e.delete(i);
|
|
9
9
|
};
|
|
10
10
|
return {
|
|
11
11
|
on: (i) => {
|
|
12
12
|
e.add(i);
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
off:
|
|
13
|
+
const a = () => t(i);
|
|
14
|
+
return B(a), {
|
|
15
|
+
off: a
|
|
16
16
|
};
|
|
17
17
|
},
|
|
18
18
|
off: t,
|
|
19
|
-
trigger: (...i) => Promise.all(Array.from(e).map((
|
|
19
|
+
trigger: (...i) => Promise.all(Array.from(e).map((a) => a(...i))),
|
|
20
20
|
clear: () => {
|
|
21
21
|
e.clear();
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const X = /* @__PURE__ */ new WeakMap(), Me = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
26
26
|
var t;
|
|
27
|
-
const o = e[0], n = (t =
|
|
28
|
-
if (n == null && !
|
|
27
|
+
const o = e[0], n = (t = Q()) == null ? void 0 : t.proxy;
|
|
28
|
+
if (n == null && !ue())
|
|
29
29
|
throw new Error("injectLocal must be called in setup");
|
|
30
|
-
return n &&
|
|
31
|
-
},
|
|
30
|
+
return n && X.has(n) && o in X.get(n) ? X.get(n)[o] : Te(...e);
|
|
31
|
+
}, z = typeof window < "u" && typeof document < "u";
|
|
32
32
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
33
|
-
const
|
|
33
|
+
const _e = (e) => e != null, We = Object.prototype.toString, Re = (e) => We.call(e) === "[object Object]", I = () => {
|
|
34
34
|
}, Ie = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Ae = /* @__PURE__ */ Fe();
|
|
35
35
|
function Fe() {
|
|
36
36
|
var e, t;
|
|
37
|
-
return
|
|
37
|
+
return z && ((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));
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function U(e, t) {
|
|
40
40
|
function o(...n) {
|
|
41
41
|
return new Promise((u, i) => {
|
|
42
42
|
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(u).catch(i);
|
|
@@ -44,91 +44,91 @@ function Y(e, t) {
|
|
|
44
44
|
}
|
|
45
45
|
return o;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
function
|
|
49
|
-
let o, n, u =
|
|
47
|
+
const Ce = (e) => e();
|
|
48
|
+
function fe(e, t = {}) {
|
|
49
|
+
let o, n, u = I;
|
|
50
50
|
const i = (s) => {
|
|
51
|
-
clearTimeout(s), u(), u =
|
|
51
|
+
clearTimeout(s), u(), u = I;
|
|
52
52
|
};
|
|
53
|
-
let
|
|
53
|
+
let a;
|
|
54
54
|
return (s) => {
|
|
55
|
-
const f =
|
|
56
|
-
return o && i(o), f <= 0 ||
|
|
57
|
-
u = t.rejectOnCancel ? d : l,
|
|
58
|
-
o && i(o), n = void 0, l(
|
|
59
|
-
},
|
|
55
|
+
const f = p(e), c = p(t.maxWait);
|
|
56
|
+
return o && i(o), f <= 0 || c !== void 0 && c <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((l, d) => {
|
|
57
|
+
u = t.rejectOnCancel ? d : l, a = s, c && !n && (n = setTimeout(() => {
|
|
58
|
+
o && i(o), n = void 0, l(a());
|
|
59
|
+
}, c)), o = setTimeout(() => {
|
|
60
60
|
n && i(n), n = void 0, l(s());
|
|
61
61
|
}, f);
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
let t = 0, o, n = !0, u =
|
|
67
|
-
!
|
|
68
|
-
const
|
|
69
|
-
o && (clearTimeout(o), o = void 0, u(), u =
|
|
65
|
+
function de(...e) {
|
|
66
|
+
let t = 0, o, n = !0, u = I, i, a, r, s, f;
|
|
67
|
+
!ae(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: r = !0, leading: s = !0, rejectOnCancel: f = !1 } = e[0] : [a, r = !0, s = !0, f = !1] = e;
|
|
68
|
+
const c = () => {
|
|
69
|
+
o && (clearTimeout(o), o = void 0, u(), u = I);
|
|
70
70
|
};
|
|
71
71
|
return (d) => {
|
|
72
|
-
const m =
|
|
73
|
-
return
|
|
74
|
-
u = f ?
|
|
75
|
-
t = Date.now(), n = !0, v(
|
|
76
|
-
}, Math.max(0, m -
|
|
72
|
+
const m = p(a), w = Date.now() - t, E = () => i = d();
|
|
73
|
+
return c(), m <= 0 ? (t = Date.now(), E()) : (w > m && (s || !n) ? (t = Date.now(), E()) : r && (i = new Promise((v, g) => {
|
|
74
|
+
u = f ? g : v, o = setTimeout(() => {
|
|
75
|
+
t = Date.now(), n = !0, v(E()), c();
|
|
76
|
+
}, Math.max(0, m - w));
|
|
77
77
|
})), !s && !o && (o = setTimeout(() => n = !0, m)), n = !1, i);
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function re(e) {
|
|
81
81
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function De(e, t, o = !1) {
|
|
84
84
|
return t.reduce((n, u) => (u in e && (!o || e[u] !== void 0) && (n[u] = e[u]), n), {});
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function H(e) {
|
|
87
87
|
return Array.isArray(e) ? e : [e];
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function ke(e) {
|
|
90
|
+
return Q();
|
|
91
91
|
}
|
|
92
92
|
// @__NO_SIDE_EFFECTS__
|
|
93
93
|
function Le(e, t = 200, o = {}) {
|
|
94
|
-
return
|
|
95
|
-
|
|
94
|
+
return U(
|
|
95
|
+
fe(t, o),
|
|
96
96
|
e
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
// @__NO_SIDE_EFFECTS__
|
|
100
|
-
function
|
|
101
|
-
return
|
|
102
|
-
|
|
100
|
+
function Ve(e, t = 200, o = !1, n = !0, u = !1) {
|
|
101
|
+
return U(
|
|
102
|
+
de(t, o, n, u),
|
|
103
103
|
e
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function ve(e, t, o = {}) {
|
|
107
107
|
const {
|
|
108
|
-
eventFilter: n =
|
|
108
|
+
eventFilter: n = Ce,
|
|
109
109
|
...u
|
|
110
110
|
} = o;
|
|
111
|
-
return
|
|
111
|
+
return C(
|
|
112
112
|
e,
|
|
113
|
-
|
|
113
|
+
U(
|
|
114
114
|
n,
|
|
115
115
|
t
|
|
116
116
|
),
|
|
117
117
|
u
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
if (!
|
|
122
|
-
return
|
|
120
|
+
function pe(e, t = {}) {
|
|
121
|
+
if (!ae(e))
|
|
122
|
+
return Ee(e);
|
|
123
123
|
const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
124
124
|
for (const n in e.value)
|
|
125
|
-
o[n] =
|
|
125
|
+
o[n] = Oe(() => ({
|
|
126
126
|
get() {
|
|
127
127
|
return e.value[n];
|
|
128
128
|
},
|
|
129
129
|
set(u) {
|
|
130
130
|
var i;
|
|
131
|
-
if ((i =
|
|
131
|
+
if ((i = p(t.replaceRef)) != null ? i : !0)
|
|
132
132
|
if (Array.isArray(e.value)) {
|
|
133
133
|
const r = [...e.value];
|
|
134
134
|
r[n] = u, e.value = r;
|
|
@@ -142,28 +142,28 @@ function Ve(e, t = {}) {
|
|
|
142
142
|
}));
|
|
143
143
|
return o;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function j(e, t = !0, o) {
|
|
146
|
+
ke() ? se(e, o) : t ? e() : we(e);
|
|
147
147
|
}
|
|
148
148
|
function Qe(e, t, o = {}) {
|
|
149
149
|
const {
|
|
150
150
|
immediate: n = !0,
|
|
151
151
|
immediateCallback: u = !1
|
|
152
|
-
} = o, i =
|
|
153
|
-
let
|
|
152
|
+
} = o, i = T(!1);
|
|
153
|
+
let a;
|
|
154
154
|
function r() {
|
|
155
|
-
|
|
155
|
+
a && (clearTimeout(a), a = void 0);
|
|
156
156
|
}
|
|
157
157
|
function s() {
|
|
158
158
|
i.value = !1, r();
|
|
159
159
|
}
|
|
160
|
-
function f(...
|
|
161
|
-
u && e(), r(), i.value = !0,
|
|
162
|
-
i.value = !1,
|
|
163
|
-
},
|
|
160
|
+
function f(...c) {
|
|
161
|
+
u && e(), r(), i.value = !0, a = setTimeout(() => {
|
|
162
|
+
i.value = !1, a = void 0, e(...c);
|
|
163
|
+
}, p(t));
|
|
164
164
|
}
|
|
165
|
-
return n && (i.value = !0,
|
|
166
|
-
isPending:
|
|
165
|
+
return n && (i.value = !0, z && f()), B(s), {
|
|
166
|
+
isPending: Se(i),
|
|
167
167
|
start: f,
|
|
168
168
|
stop: s
|
|
169
169
|
};
|
|
@@ -174,17 +174,17 @@ function Ue(e, t, o = {}) {
|
|
|
174
174
|
maxWait: u = void 0,
|
|
175
175
|
...i
|
|
176
176
|
} = o;
|
|
177
|
-
return
|
|
177
|
+
return ve(
|
|
178
178
|
e,
|
|
179
179
|
t,
|
|
180
180
|
{
|
|
181
181
|
...i,
|
|
182
|
-
eventFilter:
|
|
182
|
+
eventFilter: fe(n, { maxWait: u })
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
186
|
function He(e, t, o) {
|
|
187
|
-
return
|
|
187
|
+
return C(
|
|
188
188
|
e,
|
|
189
189
|
t,
|
|
190
190
|
{
|
|
@@ -198,88 +198,88 @@ function qe(e, t, o = {}) {
|
|
|
198
198
|
throttle: n = 0,
|
|
199
199
|
trailing: u = !0,
|
|
200
200
|
leading: i = !0,
|
|
201
|
-
...
|
|
201
|
+
...a
|
|
202
202
|
} = o;
|
|
203
|
-
return
|
|
203
|
+
return ve(
|
|
204
204
|
e,
|
|
205
205
|
t,
|
|
206
206
|
{
|
|
207
|
-
...
|
|
208
|
-
eventFilter:
|
|
207
|
+
...a,
|
|
208
|
+
eventFilter: de(n, u, i)
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
const
|
|
213
|
-
function
|
|
212
|
+
const F = z ? window : void 0, Be = z ? window.document : void 0;
|
|
213
|
+
function x(e) {
|
|
214
214
|
var t;
|
|
215
|
-
const o =
|
|
215
|
+
const o = p(e);
|
|
216
216
|
return (t = o == null ? void 0 : o.$el) != null ? t : o;
|
|
217
217
|
}
|
|
218
218
|
function M(...e) {
|
|
219
219
|
const t = [], o = () => {
|
|
220
220
|
t.forEach((r) => r()), t.length = 0;
|
|
221
|
-
}, n = (r, s, f,
|
|
222
|
-
const r =
|
|
221
|
+
}, n = (r, s, f, c) => (r.addEventListener(s, f, c), () => r.removeEventListener(s, f, c)), u = R(() => {
|
|
222
|
+
const r = H(p(e[0])).filter((s) => s != null);
|
|
223
223
|
return r.every((s) => typeof s != "string") ? r : void 0;
|
|
224
224
|
}), i = He(
|
|
225
225
|
() => {
|
|
226
226
|
var r, s;
|
|
227
227
|
return [
|
|
228
|
-
(s = (r = u.value) == null ? void 0 : r.map((f) =>
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
(s = (r = u.value) == null ? void 0 : r.map((f) => x(f))) != null ? s : [F].filter((f) => f != null),
|
|
229
|
+
H(p(u.value ? e[1] : e[0])),
|
|
230
|
+
H(xe(u.value ? e[2] : e[1])),
|
|
231
231
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
232
|
-
|
|
232
|
+
p(u.value ? e[3] : e[2])
|
|
233
233
|
];
|
|
234
234
|
},
|
|
235
|
-
([r, s, f,
|
|
235
|
+
([r, s, f, c]) => {
|
|
236
236
|
if (o(), !(r != null && r.length) || !(s != null && s.length) || !(f != null && f.length))
|
|
237
237
|
return;
|
|
238
|
-
const l =
|
|
238
|
+
const l = Re(c) ? { ...c } : c;
|
|
239
239
|
t.push(
|
|
240
240
|
...r.flatMap(
|
|
241
241
|
(d) => s.flatMap(
|
|
242
|
-
(m) => f.map((
|
|
242
|
+
(m) => f.map((w) => n(d, m, w, l))
|
|
243
243
|
)
|
|
244
244
|
)
|
|
245
245
|
);
|
|
246
246
|
},
|
|
247
247
|
{ flush: "post" }
|
|
248
|
-
),
|
|
248
|
+
), a = () => {
|
|
249
249
|
i(), o();
|
|
250
250
|
};
|
|
251
|
-
return
|
|
251
|
+
return B(o), a;
|
|
252
252
|
}
|
|
253
|
-
let
|
|
253
|
+
let ie = !1;
|
|
254
254
|
function Je(e, t, o = {}) {
|
|
255
|
-
const { window: n =
|
|
255
|
+
const { window: n = F, ignore: u = [], capture: i = !0, detectIframe: a = !1, controls: r = !1 } = o;
|
|
256
256
|
if (!n)
|
|
257
|
-
return r ? { stop:
|
|
258
|
-
if (Ae && !
|
|
259
|
-
|
|
257
|
+
return r ? { stop: I, cancel: I, trigger: I } : I;
|
|
258
|
+
if (Ae && !ie) {
|
|
259
|
+
ie = !0;
|
|
260
260
|
const v = { passive: !0 };
|
|
261
|
-
Array.from(n.document.body.children).forEach((
|
|
261
|
+
Array.from(n.document.body.children).forEach((g) => g.addEventListener("click", I, v)), n.document.documentElement.addEventListener("click", I, v);
|
|
262
262
|
}
|
|
263
263
|
let s = !0;
|
|
264
|
-
const f = (v) =>
|
|
265
|
-
if (typeof
|
|
266
|
-
return Array.from(n.document.querySelectorAll(
|
|
264
|
+
const f = (v) => p(u).some((g) => {
|
|
265
|
+
if (typeof g == "string")
|
|
266
|
+
return Array.from(n.document.querySelectorAll(g)).some((b) => b === v.target || v.composedPath().includes(b));
|
|
267
267
|
{
|
|
268
|
-
const
|
|
269
|
-
return
|
|
268
|
+
const b = x(g);
|
|
269
|
+
return b && (v.target === b || v.composedPath().includes(b));
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
|
-
function
|
|
273
|
-
const
|
|
274
|
-
return
|
|
272
|
+
function c(v) {
|
|
273
|
+
const g = p(v);
|
|
274
|
+
return g && g.$.subTree.shapeFlag === 16;
|
|
275
275
|
}
|
|
276
|
-
function l(v,
|
|
277
|
-
const
|
|
278
|
-
return O == null || !Array.isArray(O) ? !1 : O.some((
|
|
276
|
+
function l(v, g) {
|
|
277
|
+
const b = p(v), O = b.$.subTree && b.$.subTree.children;
|
|
278
|
+
return O == null || !Array.isArray(O) ? !1 : O.some((_) => _.el === g.target || g.composedPath().includes(_.el));
|
|
279
279
|
}
|
|
280
280
|
const d = (v) => {
|
|
281
|
-
const
|
|
282
|
-
if (v.target != null && !(!(
|
|
281
|
+
const g = x(e);
|
|
282
|
+
if (v.target != null && !(!(g instanceof Element) && c(e) && l(e, v)) && !(!g || g === v.target || v.composedPath().includes(g))) {
|
|
283
283
|
if ("detail" in v && v.detail === 0 && (s = !f(v)), !s) {
|
|
284
284
|
s = !0;
|
|
285
285
|
return;
|
|
@@ -288,228 +288,288 @@ function Je(e, t, o = {}) {
|
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
let m = !1;
|
|
291
|
-
const
|
|
291
|
+
const w = [
|
|
292
292
|
M(n, "click", (v) => {
|
|
293
293
|
m || (m = !0, setTimeout(() => {
|
|
294
294
|
m = !1;
|
|
295
295
|
}, 0), d(v));
|
|
296
296
|
}, { passive: !0, capture: i }),
|
|
297
297
|
M(n, "pointerdown", (v) => {
|
|
298
|
-
const
|
|
299
|
-
s = !f(v) && !!(
|
|
298
|
+
const g = x(e);
|
|
299
|
+
s = !f(v) && !!(g && !v.composedPath().includes(g));
|
|
300
300
|
}, { passive: !0 }),
|
|
301
|
-
|
|
301
|
+
a && M(n, "blur", (v) => {
|
|
302
302
|
setTimeout(() => {
|
|
303
|
-
var
|
|
304
|
-
const
|
|
305
|
-
((
|
|
303
|
+
var g;
|
|
304
|
+
const b = x(e);
|
|
305
|
+
((g = n.document.activeElement) == null ? void 0 : g.tagName) === "IFRAME" && !(b != null && b.contains(n.document.activeElement)) && t(v);
|
|
306
306
|
}, 0);
|
|
307
307
|
}, { passive: !0 })
|
|
308
|
-
].filter(Boolean),
|
|
308
|
+
].filter(Boolean), E = () => w.forEach((v) => v());
|
|
309
309
|
return r ? {
|
|
310
|
-
stop:
|
|
310
|
+
stop: E,
|
|
311
311
|
cancel: () => {
|
|
312
312
|
s = !1;
|
|
313
313
|
},
|
|
314
314
|
trigger: (v) => {
|
|
315
315
|
s = !0, d(v), s = !1;
|
|
316
316
|
}
|
|
317
|
-
} :
|
|
317
|
+
} : E;
|
|
318
318
|
}
|
|
319
319
|
// @__NO_SIDE_EFFECTS__
|
|
320
|
-
function
|
|
321
|
-
const e =
|
|
322
|
-
return t &&
|
|
320
|
+
function ze() {
|
|
321
|
+
const e = T(!1), t = Q();
|
|
322
|
+
return t && se(() => {
|
|
323
323
|
e.value = !0;
|
|
324
324
|
}, t), e;
|
|
325
325
|
}
|
|
326
326
|
// @__NO_SIDE_EFFECTS__
|
|
327
|
-
function
|
|
328
|
-
const t = /* @__PURE__ */
|
|
329
|
-
return
|
|
327
|
+
function q(e) {
|
|
328
|
+
const t = /* @__PURE__ */ ze();
|
|
329
|
+
return R(() => (t.value, !!e()));
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
const { window: n =
|
|
331
|
+
function J(e, t, o = {}) {
|
|
332
|
+
const { window: n = F, ...u } = o;
|
|
333
333
|
let i;
|
|
334
|
-
const
|
|
334
|
+
const a = /* @__PURE__ */ q(() => n && "MutationObserver" in n), r = () => {
|
|
335
335
|
i && (i.disconnect(), i = void 0);
|
|
336
|
-
}, s =
|
|
337
|
-
const d =
|
|
336
|
+
}, s = R(() => {
|
|
337
|
+
const d = p(e), m = H(d).map(x).filter(_e);
|
|
338
338
|
return new Set(m);
|
|
339
|
-
}), f =
|
|
339
|
+
}), f = C(
|
|
340
340
|
s,
|
|
341
341
|
(d) => {
|
|
342
|
-
r(),
|
|
342
|
+
r(), a.value && d.size && (i = new MutationObserver(t), d.forEach((m) => i.observe(m, u)));
|
|
343
343
|
},
|
|
344
344
|
{ immediate: !0, flush: "post" }
|
|
345
|
-
),
|
|
345
|
+
), c = () => i == null ? void 0 : i.takeRecords(), l = () => {
|
|
346
346
|
f(), r();
|
|
347
347
|
};
|
|
348
|
-
return
|
|
349
|
-
isSupported:
|
|
348
|
+
return B(l), {
|
|
349
|
+
isSupported: a,
|
|
350
350
|
stop: l,
|
|
351
|
-
takeRecords:
|
|
351
|
+
takeRecords: c
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const Ne = Symbol("vueuse-ssr-width");
|
|
355
355
|
// @__NO_SIDE_EFFECTS__
|
|
356
|
-
function
|
|
357
|
-
const e =
|
|
356
|
+
function $e() {
|
|
357
|
+
const e = ue() ? /* @__PURE__ */ Me(Ne, null) : null;
|
|
358
358
|
return typeof e == "number" ? e : void 0;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
const { window: o =
|
|
360
|
+
function me(e, t = {}) {
|
|
361
|
+
const { window: o = F, ssrWidth: n = /* @__PURE__ */ $e() } = t, u = /* @__PURE__ */ q(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), i = T(typeof n == "number"), a = T(), r = T(!1), s = (f) => {
|
|
362
362
|
r.value = f.matches;
|
|
363
363
|
};
|
|
364
|
-
return
|
|
364
|
+
return ce(() => {
|
|
365
365
|
if (i.value) {
|
|
366
366
|
i.value = !u.value;
|
|
367
|
-
const f =
|
|
368
|
-
r.value = f.some((
|
|
369
|
-
const l =
|
|
370
|
-
let
|
|
371
|
-
return d &&
|
|
367
|
+
const f = p(e).split(",");
|
|
368
|
+
r.value = f.some((c) => {
|
|
369
|
+
const l = c.includes("not all"), d = c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
370
|
+
let w = !!(d || m);
|
|
371
|
+
return d && w && (w = n >= re(d[1])), m && w && (w = n <= re(m[1])), l ? !w : w;
|
|
372
372
|
});
|
|
373
373
|
return;
|
|
374
374
|
}
|
|
375
|
-
u.value && (
|
|
376
|
-
}), M(
|
|
375
|
+
u.value && (a.value = o.matchMedia(p(e)), r.value = a.value.matches);
|
|
376
|
+
}), M(a, "change", s, { passive: !0 }), R(() => r.value);
|
|
377
377
|
}
|
|
378
378
|
function Ke(e, t, o = {}) {
|
|
379
|
-
const { window: n =
|
|
379
|
+
const { window: n = F, initialValue: u, observe: i = !1 } = o, a = T(u), r = R(() => {
|
|
380
380
|
var f;
|
|
381
|
-
return
|
|
381
|
+
return x(t) || ((f = n == null ? void 0 : n.document) == null ? void 0 : f.documentElement);
|
|
382
382
|
});
|
|
383
383
|
function s() {
|
|
384
384
|
var f;
|
|
385
|
-
const
|
|
386
|
-
if (l && n &&
|
|
387
|
-
const d = (f = n.getComputedStyle(l).getPropertyValue(
|
|
388
|
-
|
|
385
|
+
const c = p(e), l = p(r);
|
|
386
|
+
if (l && n && c) {
|
|
387
|
+
const d = (f = n.getComputedStyle(l).getPropertyValue(c)) == null ? void 0 : f.trim();
|
|
388
|
+
a.value = d || a.value || u;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
return i &&
|
|
391
|
+
return i && J(r, s, {
|
|
392
392
|
attributeFilter: ["style", "class"],
|
|
393
393
|
window: n
|
|
394
|
-
}),
|
|
395
|
-
[r, () =>
|
|
396
|
-
(f,
|
|
397
|
-
|
|
394
|
+
}), C(
|
|
395
|
+
[r, () => p(e)],
|
|
396
|
+
(f, c) => {
|
|
397
|
+
c[0] && c[1] && c[0].style.removeProperty(c[1]), s();
|
|
398
398
|
},
|
|
399
399
|
{ immediate: !0 }
|
|
400
|
-
),
|
|
401
|
-
[
|
|
402
|
-
([f,
|
|
403
|
-
const l =
|
|
404
|
-
|
|
400
|
+
), C(
|
|
401
|
+
[a, r],
|
|
402
|
+
([f, c]) => {
|
|
403
|
+
const l = p(e);
|
|
404
|
+
c != null && c.style && l && (f == null ? c.style.removeProperty(l) : c.style.setProperty(l, f));
|
|
405
405
|
},
|
|
406
406
|
{ immediate: !0 }
|
|
407
|
-
),
|
|
407
|
+
), a;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
|
|
409
|
+
function Ze(e, t = {}) {
|
|
410
|
+
var o;
|
|
411
|
+
const {
|
|
412
|
+
pointerTypes: n,
|
|
413
|
+
preventDefault: u,
|
|
414
|
+
stopPropagation: i,
|
|
415
|
+
exact: a,
|
|
416
|
+
onMove: r,
|
|
417
|
+
onEnd: s,
|
|
418
|
+
onStart: f,
|
|
419
|
+
initialValue: c,
|
|
420
|
+
axis: l = "both",
|
|
421
|
+
draggingElement: d = F,
|
|
422
|
+
containerElement: m,
|
|
423
|
+
handle: w = e,
|
|
424
|
+
buttons: E = [0]
|
|
425
|
+
} = t, v = G(
|
|
426
|
+
(o = p(c)) != null ? o : { x: 0, y: 0 }
|
|
427
|
+
), g = G(), b = (y) => n ? n.includes(y.pointerType) : !0, O = (y) => {
|
|
428
|
+
p(u) && y.preventDefault(), p(i) && y.stopPropagation();
|
|
429
|
+
}, _ = (y) => {
|
|
430
|
+
var W;
|
|
431
|
+
if (!p(E).includes(y.button) || p(t.disabled) || !b(y) || p(a) && y.target !== p(e))
|
|
432
|
+
return;
|
|
433
|
+
const h = p(m), P = (W = h == null ? void 0 : h.getBoundingClientRect) == null ? void 0 : W.call(h), S = p(e).getBoundingClientRect(), D = {
|
|
434
|
+
x: y.clientX - (h ? S.left - P.left + h.scrollLeft : S.left),
|
|
435
|
+
y: y.clientY - (h ? S.top - P.top + h.scrollTop : S.top)
|
|
436
|
+
};
|
|
437
|
+
(f == null ? void 0 : f(D, y)) !== !1 && (g.value = D, O(y));
|
|
438
|
+
}, N = (y) => {
|
|
439
|
+
if (p(t.disabled) || !b(y) || !g.value)
|
|
440
|
+
return;
|
|
441
|
+
const W = p(m), h = p(e).getBoundingClientRect();
|
|
442
|
+
let { x: P, y: S } = v.value;
|
|
443
|
+
(l === "x" || l === "both") && (P = y.clientX - g.value.x, W && (P = Math.min(Math.max(0, P), W.scrollWidth - h.width))), (l === "y" || l === "both") && (S = y.clientY - g.value.y, W && (S = Math.min(Math.max(0, S), W.scrollHeight - h.height))), v.value = {
|
|
444
|
+
x: P,
|
|
445
|
+
y: S
|
|
446
|
+
}, r == null || r(v.value, y), O(y);
|
|
447
|
+
}, Y = (y) => {
|
|
448
|
+
p(t.disabled) || !b(y) || g.value && (g.value = void 0, s == null || s(v.value, y), O(y));
|
|
449
|
+
};
|
|
450
|
+
if (z) {
|
|
451
|
+
const y = () => {
|
|
452
|
+
var W;
|
|
453
|
+
return {
|
|
454
|
+
capture: (W = t.capture) != null ? W : !0,
|
|
455
|
+
passive: !p(u)
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
M(w, "pointerdown", _, y), M(d, "pointermove", N, y), M(d, "pointerup", Y, y);
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
...pe(v),
|
|
462
|
+
position: v,
|
|
463
|
+
isDragging: R(() => !!g.value),
|
|
464
|
+
style: R(
|
|
465
|
+
() => `left:${v.value.x}px;top:${v.value.y}px;`
|
|
466
|
+
)
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
function he(e, t, o = {}) {
|
|
470
|
+
const { window: n = F, ...u } = o;
|
|
411
471
|
let i;
|
|
412
|
-
const
|
|
472
|
+
const a = /* @__PURE__ */ q(() => n && "ResizeObserver" in n), r = () => {
|
|
413
473
|
i && (i.disconnect(), i = void 0);
|
|
414
|
-
}, s =
|
|
415
|
-
const l =
|
|
416
|
-
return Array.isArray(l) ? l.map((d) =>
|
|
417
|
-
}), f =
|
|
474
|
+
}, s = R(() => {
|
|
475
|
+
const l = p(e);
|
|
476
|
+
return Array.isArray(l) ? l.map((d) => x(d)) : [x(l)];
|
|
477
|
+
}), f = C(
|
|
418
478
|
s,
|
|
419
479
|
(l) => {
|
|
420
|
-
if (r(),
|
|
480
|
+
if (r(), a.value && n) {
|
|
421
481
|
i = new ResizeObserver(t);
|
|
422
482
|
for (const d of l)
|
|
423
483
|
d && i.observe(d, u);
|
|
424
484
|
}
|
|
425
485
|
},
|
|
426
486
|
{ immediate: !0, flush: "post" }
|
|
427
|
-
),
|
|
487
|
+
), c = () => {
|
|
428
488
|
r(), f();
|
|
429
489
|
};
|
|
430
|
-
return
|
|
431
|
-
isSupported:
|
|
432
|
-
stop:
|
|
490
|
+
return B(c), {
|
|
491
|
+
isSupported: a,
|
|
492
|
+
stop: c
|
|
433
493
|
};
|
|
434
494
|
}
|
|
435
|
-
function
|
|
495
|
+
function et(e, t = {}) {
|
|
436
496
|
const {
|
|
437
497
|
reset: o = !0,
|
|
438
498
|
windowResize: n = !0,
|
|
439
499
|
windowScroll: u = !0,
|
|
440
500
|
immediate: i = !0,
|
|
441
|
-
updateTiming:
|
|
442
|
-
} = t, r =
|
|
443
|
-
function
|
|
444
|
-
const
|
|
445
|
-
if (!
|
|
446
|
-
o && (r.value = 0, s.value = 0, f.value = 0,
|
|
501
|
+
updateTiming: a = "sync"
|
|
502
|
+
} = t, r = T(0), s = T(0), f = T(0), c = T(0), l = T(0), d = T(0), m = T(0), w = T(0);
|
|
503
|
+
function E() {
|
|
504
|
+
const g = x(e);
|
|
505
|
+
if (!g) {
|
|
506
|
+
o && (r.value = 0, s.value = 0, f.value = 0, c.value = 0, l.value = 0, d.value = 0, m.value = 0, w.value = 0);
|
|
447
507
|
return;
|
|
448
508
|
}
|
|
449
|
-
const
|
|
450
|
-
r.value =
|
|
509
|
+
const b = g.getBoundingClientRect();
|
|
510
|
+
r.value = b.height, s.value = b.bottom, f.value = b.left, c.value = b.right, l.value = b.top, d.value = b.width, m.value = b.x, w.value = b.y;
|
|
451
511
|
}
|
|
452
512
|
function v() {
|
|
453
|
-
|
|
513
|
+
a === "sync" ? E() : a === "next-frame" && requestAnimationFrame(() => E());
|
|
454
514
|
}
|
|
455
|
-
return
|
|
515
|
+
return he(e, v), C(() => x(e), (g) => !g && v()), J(e, v, {
|
|
456
516
|
attributeFilter: ["style", "class"]
|
|
457
|
-
}), u && M("scroll", v, { capture: !0, passive: !0 }), n && M("resize", v, { passive: !0 }),
|
|
517
|
+
}), u && M("scroll", v, { capture: !0, passive: !0 }), n && M("resize", v, { passive: !0 }), j(() => {
|
|
458
518
|
i && v();
|
|
459
519
|
}), {
|
|
460
520
|
height: r,
|
|
461
521
|
bottom: s,
|
|
462
522
|
left: f,
|
|
463
|
-
right:
|
|
523
|
+
right: c,
|
|
464
524
|
top: l,
|
|
465
525
|
width: d,
|
|
466
526
|
x: m,
|
|
467
|
-
y:
|
|
527
|
+
y: w,
|
|
468
528
|
update: v
|
|
469
529
|
};
|
|
470
530
|
}
|
|
471
|
-
function
|
|
472
|
-
const { window: n =
|
|
531
|
+
function tt(e, t = { width: 0, height: 0 }, o = {}) {
|
|
532
|
+
const { window: n = F, box: u = "content-box" } = o, i = R(() => {
|
|
473
533
|
var l, d;
|
|
474
|
-
return (d = (l =
|
|
475
|
-
}),
|
|
534
|
+
return (d = (l = x(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
535
|
+
}), a = T(t.width), r = T(t.height), { stop: s } = he(
|
|
476
536
|
e,
|
|
477
537
|
([l]) => {
|
|
478
538
|
const d = u === "border-box" ? l.borderBoxSize : u === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
479
539
|
if (n && i.value) {
|
|
480
|
-
const m =
|
|
540
|
+
const m = x(e);
|
|
481
541
|
if (m) {
|
|
482
|
-
const
|
|
483
|
-
|
|
542
|
+
const w = m.getBoundingClientRect();
|
|
543
|
+
a.value = w.width, r.value = w.height;
|
|
484
544
|
}
|
|
485
545
|
} else if (d) {
|
|
486
|
-
const m =
|
|
487
|
-
|
|
546
|
+
const m = H(d);
|
|
547
|
+
a.value = m.reduce((w, { inlineSize: E }) => w + E, 0), r.value = m.reduce((w, { blockSize: E }) => w + E, 0);
|
|
488
548
|
} else
|
|
489
|
-
|
|
549
|
+
a.value = l.contentRect.width, r.value = l.contentRect.height;
|
|
490
550
|
},
|
|
491
551
|
o
|
|
492
552
|
);
|
|
493
|
-
|
|
494
|
-
const l =
|
|
495
|
-
l && (
|
|
553
|
+
j(() => {
|
|
554
|
+
const l = x(e);
|
|
555
|
+
l && (a.value = "offsetWidth" in l ? l.offsetWidth : t.width, r.value = "offsetHeight" in l ? l.offsetHeight : t.height);
|
|
496
556
|
});
|
|
497
|
-
const f =
|
|
498
|
-
() =>
|
|
557
|
+
const f = C(
|
|
558
|
+
() => x(e),
|
|
499
559
|
(l) => {
|
|
500
|
-
|
|
560
|
+
a.value = l ? t.width : 0, r.value = l ? t.height : 0;
|
|
501
561
|
}
|
|
502
562
|
);
|
|
503
|
-
function
|
|
563
|
+
function c() {
|
|
504
564
|
s(), f();
|
|
505
565
|
}
|
|
506
566
|
return {
|
|
507
|
-
width:
|
|
567
|
+
width: a,
|
|
508
568
|
height: r,
|
|
509
|
-
stop:
|
|
569
|
+
stop: c
|
|
510
570
|
};
|
|
511
571
|
}
|
|
512
|
-
const
|
|
572
|
+
const je = {
|
|
513
573
|
multiple: !0,
|
|
514
574
|
accept: "*",
|
|
515
575
|
reset: !1,
|
|
@@ -525,52 +585,52 @@ function Ye(e) {
|
|
|
525
585
|
t.items.add(o);
|
|
526
586
|
return t.files;
|
|
527
587
|
}
|
|
528
|
-
function
|
|
588
|
+
function nt(e = {}) {
|
|
529
589
|
const {
|
|
530
|
-
document: t =
|
|
531
|
-
} = e, o =
|
|
590
|
+
document: t = Be
|
|
591
|
+
} = e, o = G(Ye(e.initialFiles)), { on: n, trigger: u } = /* @__PURE__ */ oe(), { on: i, trigger: a } = /* @__PURE__ */ oe(), r = R(() => {
|
|
532
592
|
var l;
|
|
533
|
-
const d = (l =
|
|
593
|
+
const d = (l = x(e.input)) != null ? l : t ? t.createElement("input") : void 0;
|
|
534
594
|
return d && (d.type = "file", d.onchange = (m) => {
|
|
535
|
-
const
|
|
536
|
-
o.value =
|
|
595
|
+
const w = m.target;
|
|
596
|
+
o.value = w.files, u(o.value);
|
|
537
597
|
}, d.oncancel = () => {
|
|
538
|
-
|
|
598
|
+
a();
|
|
539
599
|
}), d;
|
|
540
600
|
}), s = () => {
|
|
541
601
|
o.value = null, r.value && r.value.value && (r.value.value = "", u(null));
|
|
542
602
|
}, f = (l) => {
|
|
543
603
|
const d = r.value;
|
|
544
|
-
d && (d.multiple =
|
|
545
|
-
},
|
|
604
|
+
d && (d.multiple = p(l.multiple), d.accept = p(l.accept), d.webkitdirectory = p(l.directory), Ie(l, "capture") && (d.capture = p(l.capture)));
|
|
605
|
+
}, c = (l) => {
|
|
546
606
|
const d = r.value;
|
|
547
607
|
if (!d)
|
|
548
608
|
return;
|
|
549
609
|
const m = {
|
|
550
|
-
|
|
610
|
+
...je,
|
|
551
611
|
...e,
|
|
552
612
|
...l
|
|
553
613
|
};
|
|
554
|
-
f(m),
|
|
614
|
+
f(m), p(m.reset) && s(), d.click();
|
|
555
615
|
};
|
|
556
|
-
return
|
|
616
|
+
return ce(() => {
|
|
557
617
|
f(e);
|
|
558
618
|
}), {
|
|
559
619
|
files: Pe(o),
|
|
560
|
-
open:
|
|
620
|
+
open: c,
|
|
561
621
|
reset: s,
|
|
562
622
|
onCancel: i,
|
|
563
623
|
onChange: n
|
|
564
624
|
};
|
|
565
625
|
}
|
|
566
|
-
const
|
|
567
|
-
function
|
|
626
|
+
const le = 1;
|
|
627
|
+
function ot(e, t = {}) {
|
|
568
628
|
const {
|
|
569
629
|
throttle: o = 0,
|
|
570
630
|
idle: n = 200,
|
|
571
|
-
onStop: u =
|
|
572
|
-
onScroll: i =
|
|
573
|
-
offset:
|
|
631
|
+
onStop: u = I,
|
|
632
|
+
onScroll: i = I,
|
|
633
|
+
offset: a = {
|
|
574
634
|
left: 0,
|
|
575
635
|
right: 0,
|
|
576
636
|
top: 0,
|
|
@@ -584,92 +644,92 @@ function nt(e, t = {}) {
|
|
|
584
644
|
passive: !0
|
|
585
645
|
},
|
|
586
646
|
behavior: f = "auto",
|
|
587
|
-
window:
|
|
588
|
-
onError: l = (
|
|
589
|
-
console.error(
|
|
647
|
+
window: c = F,
|
|
648
|
+
onError: l = (h) => {
|
|
649
|
+
console.error(h);
|
|
590
650
|
}
|
|
591
651
|
} = t, d = typeof r == "boolean" ? {
|
|
592
652
|
mutation: r
|
|
593
|
-
} : r, m =
|
|
653
|
+
} : r, m = T(0), w = T(0), E = R({
|
|
594
654
|
get() {
|
|
595
655
|
return m.value;
|
|
596
656
|
},
|
|
597
|
-
set(
|
|
598
|
-
h
|
|
657
|
+
set(h) {
|
|
658
|
+
g(h, void 0);
|
|
599
659
|
}
|
|
600
|
-
}), v =
|
|
660
|
+
}), v = R({
|
|
601
661
|
get() {
|
|
602
|
-
return
|
|
662
|
+
return w.value;
|
|
603
663
|
},
|
|
604
|
-
set(
|
|
605
|
-
|
|
664
|
+
set(h) {
|
|
665
|
+
g(void 0, h);
|
|
606
666
|
}
|
|
607
667
|
});
|
|
608
|
-
function h
|
|
609
|
-
var
|
|
610
|
-
if (!
|
|
668
|
+
function g(h, P) {
|
|
669
|
+
var S, D, V, $;
|
|
670
|
+
if (!c)
|
|
611
671
|
return;
|
|
612
|
-
const
|
|
613
|
-
if (!
|
|
672
|
+
const A = p(e);
|
|
673
|
+
if (!A)
|
|
614
674
|
return;
|
|
615
|
-
(
|
|
616
|
-
top: (
|
|
617
|
-
left: (
|
|
618
|
-
behavior:
|
|
675
|
+
(V = A instanceof Document ? c.document.body : A) == null || V.scrollTo({
|
|
676
|
+
top: (S = p(P)) != null ? S : v.value,
|
|
677
|
+
left: (D = p(h)) != null ? D : E.value,
|
|
678
|
+
behavior: p(f)
|
|
619
679
|
});
|
|
620
|
-
const
|
|
621
|
-
|
|
680
|
+
const k = (($ = A == null ? void 0 : A.document) == null ? void 0 : $.documentElement) || (A == null ? void 0 : A.documentElement) || A;
|
|
681
|
+
E != null && (m.value = k.scrollLeft), v != null && (w.value = k.scrollTop);
|
|
622
682
|
}
|
|
623
|
-
const
|
|
683
|
+
const b = T(!1), O = ne({
|
|
624
684
|
left: !0,
|
|
625
685
|
right: !1,
|
|
626
686
|
top: !0,
|
|
627
687
|
bottom: !1
|
|
628
|
-
}),
|
|
688
|
+
}), _ = ne({
|
|
629
689
|
left: !1,
|
|
630
690
|
right: !1,
|
|
631
691
|
top: !1,
|
|
632
692
|
bottom: !1
|
|
633
|
-
}),
|
|
634
|
-
|
|
635
|
-
},
|
|
636
|
-
var
|
|
637
|
-
if (!
|
|
693
|
+
}), N = (h) => {
|
|
694
|
+
b.value && (b.value = !1, _.left = !1, _.right = !1, _.top = !1, _.bottom = !1, u(h));
|
|
695
|
+
}, Y = /* @__PURE__ */ Le(N, o + n), y = (h) => {
|
|
696
|
+
var P;
|
|
697
|
+
if (!c)
|
|
638
698
|
return;
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
let
|
|
644
|
-
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
},
|
|
648
|
-
var
|
|
649
|
-
if (!
|
|
699
|
+
const S = ((P = h == null ? void 0 : h.document) == null ? void 0 : P.documentElement) || (h == null ? void 0 : h.documentElement) || x(h), { display: D, flexDirection: V, direction: $ } = getComputedStyle(S), A = $ === "rtl" ? -1 : 1, k = S.scrollLeft;
|
|
700
|
+
_.left = k < m.value, _.right = k > m.value;
|
|
701
|
+
const K = Math.abs(k * A) <= (a.left || 0), Z = Math.abs(k * A) + S.clientWidth >= S.scrollWidth - (a.right || 0) - le;
|
|
702
|
+
D === "flex" && V === "row-reverse" ? (O.left = Z, O.right = K) : (O.left = K, O.right = Z), m.value = k;
|
|
703
|
+
let L = S.scrollTop;
|
|
704
|
+
h === c.document && !L && (L = c.document.body.scrollTop), _.top = L < w.value, _.bottom = L > w.value;
|
|
705
|
+
const ee = Math.abs(L) <= (a.top || 0), te = Math.abs(L) + S.clientHeight >= S.scrollHeight - (a.bottom || 0) - le;
|
|
706
|
+
D === "flex" && V === "column-reverse" ? (O.top = te, O.bottom = ee) : (O.top = ee, O.bottom = te), w.value = L;
|
|
707
|
+
}, W = (h) => {
|
|
708
|
+
var P;
|
|
709
|
+
if (!c)
|
|
650
710
|
return;
|
|
651
|
-
const
|
|
652
|
-
|
|
711
|
+
const S = (P = h.target.documentElement) != null ? P : h.target;
|
|
712
|
+
y(S), b.value = !0, Y(h), i(h);
|
|
653
713
|
};
|
|
654
714
|
return M(
|
|
655
715
|
e,
|
|
656
716
|
"scroll",
|
|
657
|
-
o ? /* @__PURE__ */
|
|
717
|
+
o ? /* @__PURE__ */ Ve(W, o, !0, !1) : W,
|
|
658
718
|
s
|
|
659
|
-
),
|
|
719
|
+
), j(() => {
|
|
660
720
|
try {
|
|
661
|
-
const
|
|
662
|
-
if (!
|
|
721
|
+
const h = p(e);
|
|
722
|
+
if (!h)
|
|
663
723
|
return;
|
|
664
|
-
|
|
665
|
-
} catch (
|
|
666
|
-
l(
|
|
724
|
+
y(h);
|
|
725
|
+
} catch (h) {
|
|
726
|
+
l(h);
|
|
667
727
|
}
|
|
668
|
-
}), d != null && d.mutation && e != null && e !==
|
|
728
|
+
}), d != null && d.mutation && e != null && e !== c && e !== document && J(
|
|
669
729
|
e,
|
|
670
730
|
() => {
|
|
671
|
-
const
|
|
672
|
-
|
|
731
|
+
const h = p(e);
|
|
732
|
+
h && y(h);
|
|
673
733
|
},
|
|
674
734
|
{
|
|
675
735
|
attributes: !0,
|
|
@@ -679,21 +739,21 @@ function nt(e, t = {}) {
|
|
|
679
739
|
), M(
|
|
680
740
|
e,
|
|
681
741
|
"scrollend",
|
|
682
|
-
|
|
742
|
+
N,
|
|
683
743
|
s
|
|
684
744
|
), {
|
|
685
|
-
x:
|
|
745
|
+
x: E,
|
|
686
746
|
y: v,
|
|
687
|
-
isScrolling:
|
|
747
|
+
isScrolling: b,
|
|
688
748
|
arrivedState: O,
|
|
689
|
-
directions:
|
|
749
|
+
directions: _,
|
|
690
750
|
measure() {
|
|
691
|
-
const
|
|
692
|
-
|
|
751
|
+
const h = p(e);
|
|
752
|
+
c && h && y(h);
|
|
693
753
|
}
|
|
694
754
|
};
|
|
695
755
|
}
|
|
696
|
-
const
|
|
756
|
+
const ge = {
|
|
697
757
|
x: 0,
|
|
698
758
|
y: 0,
|
|
699
759
|
pointerId: 0,
|
|
@@ -704,70 +764,73 @@ const me = {
|
|
|
704
764
|
height: 0,
|
|
705
765
|
twist: 0,
|
|
706
766
|
pointerType: null
|
|
707
|
-
},
|
|
708
|
-
function
|
|
767
|
+
}, Xe = /* @__PURE__ */ Object.keys(ge);
|
|
768
|
+
function rt(e = {}) {
|
|
709
769
|
const {
|
|
710
|
-
target: t =
|
|
711
|
-
} = e, o =
|
|
712
|
-
Object.assign(n.value,
|
|
770
|
+
target: t = F
|
|
771
|
+
} = e, o = T(!1), n = T(e.initialValue || {});
|
|
772
|
+
Object.assign(n.value, ge, n.value);
|
|
713
773
|
const u = (i) => {
|
|
714
|
-
o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value =
|
|
774
|
+
o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value = De(i, Xe, !1));
|
|
715
775
|
};
|
|
716
776
|
if (t) {
|
|
717
777
|
const i = { passive: !0 };
|
|
718
778
|
M(t, ["pointerdown", "pointermove", "pointerup"], u, i), M(t, "pointerleave", () => o.value = !1, i);
|
|
719
779
|
}
|
|
720
780
|
return {
|
|
721
|
-
...
|
|
781
|
+
...pe(n),
|
|
722
782
|
isInside: o
|
|
723
783
|
};
|
|
724
784
|
}
|
|
725
785
|
// @__NO_SIDE_EFFECTS__
|
|
726
|
-
function
|
|
727
|
-
const t =
|
|
728
|
-
return
|
|
786
|
+
function it(e) {
|
|
787
|
+
const t = me("(prefers-reduced-motion: reduce)", e);
|
|
788
|
+
return R(() => t.value ? "reduce" : "no-preference");
|
|
729
789
|
}
|
|
730
790
|
// @__NO_SIDE_EFFECTS__
|
|
731
|
-
function
|
|
791
|
+
function lt(e = {}) {
|
|
732
792
|
const {
|
|
733
|
-
window: t =
|
|
793
|
+
window: t = F,
|
|
734
794
|
initialWidth: o = Number.POSITIVE_INFINITY,
|
|
735
795
|
initialHeight: n = Number.POSITIVE_INFINITY,
|
|
736
796
|
listenOrientation: u = !0,
|
|
737
797
|
includeScrollbar: i = !0,
|
|
738
|
-
type:
|
|
739
|
-
} = e, r =
|
|
798
|
+
type: a = "inner"
|
|
799
|
+
} = e, r = T(o), s = T(n), f = () => {
|
|
740
800
|
if (t)
|
|
741
|
-
if (
|
|
801
|
+
if (a === "outer")
|
|
742
802
|
r.value = t.outerWidth, s.value = t.outerHeight;
|
|
743
|
-
else if (
|
|
803
|
+
else if (a === "visual" && t.visualViewport) {
|
|
744
804
|
const { width: l, height: d, scale: m } = t.visualViewport;
|
|
745
805
|
r.value = Math.round(l * m), s.value = Math.round(d * m);
|
|
746
806
|
} else i ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
|
|
747
807
|
};
|
|
748
|
-
f(),
|
|
749
|
-
const
|
|
750
|
-
if (M("resize", f,
|
|
751
|
-
const l =
|
|
752
|
-
|
|
808
|
+
f(), j(f);
|
|
809
|
+
const c = { passive: !0 };
|
|
810
|
+
if (M("resize", f, c), t && a === "visual" && t.visualViewport && M(t.visualViewport, "resize", f, c), u) {
|
|
811
|
+
const l = me("(orientation: portrait)");
|
|
812
|
+
C(l, () => f());
|
|
753
813
|
}
|
|
754
814
|
return { width: r, height: s };
|
|
755
815
|
}
|
|
756
816
|
export {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
817
|
+
x as a,
|
|
818
|
+
lt as b,
|
|
819
|
+
tt as c,
|
|
820
|
+
et as d,
|
|
821
|
+
nt as e,
|
|
762
822
|
Ue as f,
|
|
763
823
|
M as g,
|
|
764
824
|
Qe as h,
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
825
|
+
it as i,
|
|
826
|
+
he as j,
|
|
827
|
+
me as k,
|
|
828
|
+
ot as l,
|
|
829
|
+
Ze as m,
|
|
830
|
+
J as n,
|
|
770
831
|
Je as o,
|
|
771
|
-
|
|
832
|
+
Ke as p,
|
|
833
|
+
B as t,
|
|
834
|
+
rt as u,
|
|
772
835
|
qe as w
|
|
773
836
|
};
|