@opentiny/tiny-robot 0.4.2-alpha.0 → 0.4.2-alpha.2
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/action-group/index.js +1 -1
- package/dist/anchor/index.js +856 -0
- package/dist/feedback/index.js +2 -2
- package/dist/index.d.ts +385 -122
- package/dist/index.js +121 -117
- package/dist/index4.js +85 -79
- package/dist/index5.js +26 -26
- package/dist/index6.js +458 -419
- package/dist/sender/index.js +1446 -1328
- package/dist/style.css +1 -1
- package/dist/suggestion-popover/index.js +1 -1
- package/dist/welcome/index.js +9 -9
- package/package.json +19 -13
package/dist/index4.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { onMounted as ie, nextTick as
|
|
1
|
+
import { onMounted as ie, nextTick as he, watch as A, isRef as le, getCurrentScope as ge, onScopeDispose as we, getCurrentInstance as $, toValue as w, shallowRef as b, shallowReadonly as ye, hasInjectionContext as se, inject as be, toRefs as Te, customRef as Se, computed as _, reactive as ee, unref as Oe, watchEffect as ue, ref as Ee, readonly as Pe } from "vue";
|
|
2
2
|
function V(e) {
|
|
3
|
-
return
|
|
3
|
+
return ge() ? (we(e), !0) : !1;
|
|
4
4
|
}
|
|
5
5
|
// @__NO_SIDE_EFFECTS__
|
|
6
6
|
function te() {
|
|
@@ -22,7 +22,7 @@ function te() {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
const j = /* @__PURE__ */ new WeakMap(),
|
|
25
|
+
const j = /* @__PURE__ */ new WeakMap(), xe = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
26
26
|
var t;
|
|
27
27
|
const o = e[0], n = (t = $()) == null ? void 0 : t.proxy;
|
|
28
28
|
if (n == null && !se())
|
|
@@ -30,9 +30,9 @@ const j = /* @__PURE__ */ new WeakMap(), Pe = /* @__NO_SIDE_EFFECTS__ */ (...e)
|
|
|
30
30
|
return n && j.has(n) && o in j.get(n) ? j.get(n)[o] : be(...e);
|
|
31
31
|
}, N = typeof window < "u" && typeof document < "u";
|
|
32
32
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
33
|
-
const
|
|
34
|
-
},
|
|
35
|
-
function
|
|
33
|
+
const Me = (e) => e != null, We = Object.prototype.toString, _e = (e) => We.call(e) === "[object Object]", x = () => {
|
|
34
|
+
}, Ie = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Ae = /* @__PURE__ */ Fe();
|
|
35
|
+
function Fe() {
|
|
36
36
|
var e, t;
|
|
37
37
|
return N && ((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
|
}
|
|
@@ -44,7 +44,7 @@ function Y(e, t) {
|
|
|
44
44
|
}
|
|
45
45
|
return o;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const Re = (e) => e();
|
|
48
48
|
function ce(e, t = {}) {
|
|
49
49
|
let o, n, u = x;
|
|
50
50
|
const i = (s) => {
|
|
@@ -90,14 +90,14 @@ function Ce(e) {
|
|
|
90
90
|
return $();
|
|
91
91
|
}
|
|
92
92
|
// @__NO_SIDE_EFFECTS__
|
|
93
|
-
function
|
|
93
|
+
function Le(e, t = 200, o = {}) {
|
|
94
94
|
return Y(
|
|
95
95
|
ce(t, o),
|
|
96
96
|
e
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
// @__NO_SIDE_EFFECTS__
|
|
100
|
-
function
|
|
100
|
+
function De(e, t = 200, o = !1, n = !0, u = !1) {
|
|
101
101
|
return Y(
|
|
102
102
|
ae(t, o, n, u),
|
|
103
103
|
e
|
|
@@ -105,7 +105,7 @@ function Le(e, t = 200, o = !1, n = !0, u = !1) {
|
|
|
105
105
|
}
|
|
106
106
|
function fe(e, t, o = {}) {
|
|
107
107
|
const {
|
|
108
|
-
eventFilter: n =
|
|
108
|
+
eventFilter: n = Re,
|
|
109
109
|
...u
|
|
110
110
|
} = o;
|
|
111
111
|
return A(
|
|
@@ -117,12 +117,12 @@ function fe(e, t, o = {}) {
|
|
|
117
117
|
u
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ve(e, t = {}) {
|
|
121
121
|
if (!le(e))
|
|
122
|
-
return
|
|
122
|
+
return Te(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] = Se(() => ({
|
|
126
126
|
get() {
|
|
127
127
|
return e.value[n];
|
|
128
128
|
},
|
|
@@ -143,7 +143,7 @@ function De(e, t = {}) {
|
|
|
143
143
|
return o;
|
|
144
144
|
}
|
|
145
145
|
function B(e, t = !0, o) {
|
|
146
|
-
Ce() ? ie(e, o) : t ? e() :
|
|
146
|
+
Ce() ? ie(e, o) : t ? e() : he(e);
|
|
147
147
|
}
|
|
148
148
|
function Qe(e, t, o = {}) {
|
|
149
149
|
const {
|
|
@@ -163,7 +163,7 @@ function Qe(e, t, o = {}) {
|
|
|
163
163
|
}, w(t));
|
|
164
164
|
}
|
|
165
165
|
return n && (i.value = !0, N && f()), V(s), {
|
|
166
|
-
isPending:
|
|
166
|
+
isPending: ye(i),
|
|
167
167
|
start: f,
|
|
168
168
|
stop: s
|
|
169
169
|
};
|
|
@@ -183,7 +183,7 @@ function Ue(e, t, o = {}) {
|
|
|
183
183
|
}
|
|
184
184
|
);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function He(e, t, o) {
|
|
187
187
|
return A(
|
|
188
188
|
e,
|
|
189
189
|
t,
|
|
@@ -209,25 +209,25 @@ function qe(e, t, o = {}) {
|
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
|
-
const I = N ? window : void 0,
|
|
212
|
+
const I = N ? window : void 0, ze = N ? window.document : void 0;
|
|
213
213
|
function S(e) {
|
|
214
214
|
var t;
|
|
215
215
|
const o = w(e);
|
|
216
216
|
return (t = o == null ? void 0 : o.$el) != null ? t : o;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function M(...e) {
|
|
219
219
|
const t = [], o = () => {
|
|
220
220
|
t.forEach((r) => r()), t.length = 0;
|
|
221
221
|
}, n = (r, s, f, a) => (r.addEventListener(s, f, a), () => r.removeEventListener(s, f, a)), u = _(() => {
|
|
222
222
|
const r = D(w(e[0])).filter((s) => s != null);
|
|
223
223
|
return r.every((s) => typeof s != "string") ? r : void 0;
|
|
224
|
-
}), i =
|
|
224
|
+
}), i = He(
|
|
225
225
|
() => {
|
|
226
226
|
var r, s;
|
|
227
227
|
return [
|
|
228
228
|
(s = (r = u.value) == null ? void 0 : r.map((f) => S(f))) != null ? s : [I].filter((f) => f != null),
|
|
229
229
|
D(w(u.value ? e[1] : e[0])),
|
|
230
|
-
D(
|
|
230
|
+
D(Oe(u.value ? e[2] : e[1])),
|
|
231
231
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
232
232
|
w(u.value ? e[3] : e[2])
|
|
233
233
|
];
|
|
@@ -235,7 +235,7 @@ function W(...e) {
|
|
|
235
235
|
([r, s, f, a]) => {
|
|
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 = _e(a) ? { ...a } : a;
|
|
239
239
|
t.push(
|
|
240
240
|
...r.flatMap(
|
|
241
241
|
(d) => s.flatMap(
|
|
@@ -255,7 +255,7 @@ function Je(e, t, o = {}) {
|
|
|
255
255
|
const { window: n = I, ignore: u = [], capture: i = !0, detectIframe: c = !1, controls: r = !1 } = o;
|
|
256
256
|
if (!n)
|
|
257
257
|
return r ? { stop: x, cancel: x, trigger: x } : x;
|
|
258
|
-
if (
|
|
258
|
+
if (Ae && !oe) {
|
|
259
259
|
oe = !0;
|
|
260
260
|
const v = { passive: !0 };
|
|
261
261
|
Array.from(n.document.body.children).forEach((h) => h.addEventListener("click", x, v)), n.document.documentElement.addEventListener("click", x, v);
|
|
@@ -289,16 +289,16 @@ function Je(e, t, o = {}) {
|
|
|
289
289
|
};
|
|
290
290
|
let m = !1;
|
|
291
291
|
const p = [
|
|
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
298
|
const h = S(e);
|
|
299
299
|
s = !f(v) && !!(h && !v.composedPath().includes(h));
|
|
300
300
|
}, { passive: !0 }),
|
|
301
|
-
c &&
|
|
301
|
+
c && M(n, "blur", (v) => {
|
|
302
302
|
setTimeout(() => {
|
|
303
303
|
var h;
|
|
304
304
|
const y = S(e);
|
|
@@ -317,7 +317,7 @@ function Je(e, t, o = {}) {
|
|
|
317
317
|
} : T;
|
|
318
318
|
}
|
|
319
319
|
// @__NO_SIDE_EFFECTS__
|
|
320
|
-
function
|
|
320
|
+
function Ne() {
|
|
321
321
|
const e = b(!1), t = $();
|
|
322
322
|
return t && ie(() => {
|
|
323
323
|
e.value = !0;
|
|
@@ -325,7 +325,7 @@ function ze() {
|
|
|
325
325
|
}
|
|
326
326
|
// @__NO_SIDE_EFFECTS__
|
|
327
327
|
function G(e) {
|
|
328
|
-
const t = /* @__PURE__ */
|
|
328
|
+
const t = /* @__PURE__ */ Ne();
|
|
329
329
|
return _(() => (t.value, !!e()));
|
|
330
330
|
}
|
|
331
331
|
function X(e, t, o = {}) {
|
|
@@ -334,7 +334,7 @@ function X(e, t, o = {}) {
|
|
|
334
334
|
const c = /* @__PURE__ */ G(() => n && "MutationObserver" in n), r = () => {
|
|
335
335
|
i && (i.disconnect(), i = void 0);
|
|
336
336
|
}, s = _(() => {
|
|
337
|
-
const d = w(e), m = D(d).map(S).filter(
|
|
337
|
+
const d = w(e), m = D(d).map(S).filter(Me);
|
|
338
338
|
return new Set(m);
|
|
339
339
|
}), f = A(
|
|
340
340
|
s,
|
|
@@ -351,14 +351,14 @@ function X(e, t, o = {}) {
|
|
|
351
351
|
takeRecords: a
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const Be = Symbol("vueuse-ssr-width");
|
|
355
355
|
// @__NO_SIDE_EFFECTS__
|
|
356
|
-
function
|
|
357
|
-
const e = se() ? /* @__PURE__ */
|
|
356
|
+
function je() {
|
|
357
|
+
const e = se() ? /* @__PURE__ */ xe(Be, null) : null;
|
|
358
358
|
return typeof e == "number" ? e : void 0;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
const { window: o = I, ssrWidth: n = /* @__PURE__ */
|
|
360
|
+
function de(e, t = {}) {
|
|
361
|
+
const { window: o = I, ssrWidth: n = /* @__PURE__ */ je() } = t, u = /* @__PURE__ */ G(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), i = b(typeof n == "number"), c = b(), r = b(!1), s = (f) => {
|
|
362
362
|
r.value = f.matches;
|
|
363
363
|
};
|
|
364
364
|
return ue(() => {
|
|
@@ -373,7 +373,7 @@ function je(e, t = {}) {
|
|
|
373
373
|
return;
|
|
374
374
|
}
|
|
375
375
|
u.value && (c.value = o.matchMedia(w(e)), r.value = c.value.matches);
|
|
376
|
-
}),
|
|
376
|
+
}), M(c, "change", s, { passive: !0 }), _(() => r.value);
|
|
377
377
|
}
|
|
378
378
|
function Ke(e, t, o = {}) {
|
|
379
379
|
const { window: n = I, initialValue: u, observe: i = !1 } = o, c = b(u), r = _(() => {
|
|
@@ -406,7 +406,7 @@ function Ke(e, t, o = {}) {
|
|
|
406
406
|
{ immediate: !0 }
|
|
407
407
|
), c;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ve(e, t, o = {}) {
|
|
410
410
|
const { window: n = I, ...u } = o;
|
|
411
411
|
let i;
|
|
412
412
|
const c = /* @__PURE__ */ G(() => n && "ResizeObserver" in n), r = () => {
|
|
@@ -452,9 +452,9 @@ function Ze(e, t = {}) {
|
|
|
452
452
|
function v() {
|
|
453
453
|
c === "sync" ? T() : c === "next-frame" && requestAnimationFrame(() => T());
|
|
454
454
|
}
|
|
455
|
-
return
|
|
455
|
+
return ve(e, v), A(() => S(e), (h) => !h && v()), X(e, v, {
|
|
456
456
|
attributeFilter: ["style", "class"]
|
|
457
|
-
}), u &&
|
|
457
|
+
}), u && M("scroll", v, { capture: !0, passive: !0 }), n && M("resize", v, { passive: !0 }), B(() => {
|
|
458
458
|
i && v();
|
|
459
459
|
}), {
|
|
460
460
|
height: r,
|
|
@@ -472,7 +472,7 @@ function et(e, t = { width: 0, height: 0 }, o = {}) {
|
|
|
472
472
|
const { window: n = I, box: u = "content-box" } = o, i = _(() => {
|
|
473
473
|
var l, d;
|
|
474
474
|
return (d = (l = S(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
475
|
-
}), c = b(t.width), r = b(t.height), { stop: s } =
|
|
475
|
+
}), c = b(t.width), r = b(t.height), { stop: s } = ve(
|
|
476
476
|
e,
|
|
477
477
|
([l]) => {
|
|
478
478
|
const d = u === "border-box" ? l.borderBoxSize : u === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
@@ -527,8 +527,8 @@ function Ye(e) {
|
|
|
527
527
|
}
|
|
528
528
|
function tt(e = {}) {
|
|
529
529
|
const {
|
|
530
|
-
document: t =
|
|
531
|
-
} = e, o =
|
|
530
|
+
document: t = ze
|
|
531
|
+
} = e, o = Ee(Ye(e.initialFiles)), { on: n, trigger: u } = /* @__PURE__ */ te(), { on: i, trigger: c } = /* @__PURE__ */ te(), r = _(() => {
|
|
532
532
|
var l;
|
|
533
533
|
const d = (l = S(e.input)) != null ? l : t ? t.createElement("input") : void 0;
|
|
534
534
|
return d && (d.type = "file", d.onchange = (m) => {
|
|
@@ -541,7 +541,7 @@ function tt(e = {}) {
|
|
|
541
541
|
o.value = null, r.value && r.value.value && (r.value.value = "", u(null));
|
|
542
542
|
}, f = (l) => {
|
|
543
543
|
const d = r.value;
|
|
544
|
-
d && (d.multiple = w(l.multiple), d.accept = w(l.accept), d.webkitdirectory = w(l.directory),
|
|
544
|
+
d && (d.multiple = w(l.multiple), d.accept = w(l.accept), d.webkitdirectory = w(l.directory), Ie(l, "capture") && (d.capture = w(l.capture)));
|
|
545
545
|
}, a = (l) => {
|
|
546
546
|
const d = r.value;
|
|
547
547
|
if (!d)
|
|
@@ -556,7 +556,7 @@ function tt(e = {}) {
|
|
|
556
556
|
return ue(() => {
|
|
557
557
|
f(e);
|
|
558
558
|
}), {
|
|
559
|
-
files:
|
|
559
|
+
files: Pe(o),
|
|
560
560
|
open: a,
|
|
561
561
|
reset: s,
|
|
562
562
|
onCancel: i,
|
|
@@ -605,19 +605,19 @@ function nt(e, t = {}) {
|
|
|
605
605
|
h(void 0, g);
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
|
-
function h(g,
|
|
609
|
-
var P,
|
|
608
|
+
function h(g, R) {
|
|
609
|
+
var P, C, L, z;
|
|
610
610
|
if (!a)
|
|
611
611
|
return;
|
|
612
|
-
const
|
|
613
|
-
if (!
|
|
612
|
+
const W = w(e);
|
|
613
|
+
if (!W)
|
|
614
614
|
return;
|
|
615
|
-
(L =
|
|
616
|
-
top: (P = w(
|
|
617
|
-
left: (
|
|
615
|
+
(L = W instanceof Document ? a.document.body : W) == null || L.scrollTo({
|
|
616
|
+
top: (P = w(R)) != null ? P : v.value,
|
|
617
|
+
left: (C = w(g)) != null ? C : T.value,
|
|
618
618
|
behavior: w(f)
|
|
619
619
|
});
|
|
620
|
-
const F = ((z =
|
|
620
|
+
const F = ((z = W == null ? void 0 : W.document) == null ? void 0 : z.documentElement) || (W == null ? void 0 : W.documentElement) || W;
|
|
621
621
|
T != null && (m.value = F.scrollLeft), v != null && (p.value = F.scrollTop);
|
|
622
622
|
}
|
|
623
623
|
const y = b(!1), O = ee({
|
|
@@ -632,29 +632,29 @@ function nt(e, t = {}) {
|
|
|
632
632
|
bottom: !1
|
|
633
633
|
}), Q = (g) => {
|
|
634
634
|
y.value && (y.value = !1, E.left = !1, E.right = !1, E.top = !1, E.bottom = !1, u(g));
|
|
635
|
-
},
|
|
636
|
-
var
|
|
635
|
+
}, pe = /* @__PURE__ */ Le(Q, o + n), H = (g) => {
|
|
636
|
+
var R;
|
|
637
637
|
if (!a)
|
|
638
638
|
return;
|
|
639
|
-
const P = ((
|
|
639
|
+
const P = ((R = g == null ? void 0 : g.document) == null ? void 0 : R.documentElement) || (g == null ? void 0 : g.documentElement) || S(g), { display: C, flexDirection: L, direction: z } = getComputedStyle(P), W = z === "rtl" ? -1 : 1, F = P.scrollLeft;
|
|
640
640
|
E.left = F < m.value, E.right = F > m.value;
|
|
641
|
-
const q = Math.abs(F *
|
|
642
|
-
|
|
643
|
-
let
|
|
644
|
-
g === a.document && !
|
|
645
|
-
const K = Math.abs(
|
|
646
|
-
|
|
641
|
+
const q = Math.abs(F * W) <= (c.left || 0), J = Math.abs(F * W) + P.clientWidth >= P.scrollWidth - (c.right || 0) - re;
|
|
642
|
+
C === "flex" && L === "row-reverse" ? (O.left = J, O.right = q) : (O.left = q, O.right = J), m.value = F;
|
|
643
|
+
let k = P.scrollTop;
|
|
644
|
+
g === a.document && !k && (k = a.document.body.scrollTop), E.top = k < p.value, E.bottom = k > p.value;
|
|
645
|
+
const K = Math.abs(k) <= (c.top || 0), Z = Math.abs(k) + P.clientHeight >= P.scrollHeight - (c.bottom || 0) - re;
|
|
646
|
+
C === "flex" && L === "column-reverse" ? (O.top = Z, O.bottom = K) : (O.top = K, O.bottom = Z), p.value = k;
|
|
647
647
|
}, U = (g) => {
|
|
648
|
-
var
|
|
648
|
+
var R;
|
|
649
649
|
if (!a)
|
|
650
650
|
return;
|
|
651
|
-
const P = (
|
|
652
|
-
H(P), y.value = !0,
|
|
651
|
+
const P = (R = g.target.documentElement) != null ? R : g.target;
|
|
652
|
+
H(P), y.value = !0, pe(g), i(g);
|
|
653
653
|
};
|
|
654
|
-
return
|
|
654
|
+
return M(
|
|
655
655
|
e,
|
|
656
656
|
"scroll",
|
|
657
|
-
o ? /* @__PURE__ */
|
|
657
|
+
o ? /* @__PURE__ */ De(U, o, !0, !1) : U,
|
|
658
658
|
s
|
|
659
659
|
), B(() => {
|
|
660
660
|
try {
|
|
@@ -676,7 +676,7 @@ function nt(e, t = {}) {
|
|
|
676
676
|
childList: !0,
|
|
677
677
|
subtree: !0
|
|
678
678
|
}
|
|
679
|
-
),
|
|
679
|
+
), M(
|
|
680
680
|
e,
|
|
681
681
|
"scrollend",
|
|
682
682
|
Q,
|
|
@@ -693,7 +693,7 @@ function nt(e, t = {}) {
|
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
const
|
|
696
|
+
const me = {
|
|
697
697
|
x: 0,
|
|
698
698
|
y: 0,
|
|
699
699
|
pointerId: 0,
|
|
@@ -704,26 +704,31 @@ const ve = {
|
|
|
704
704
|
height: 0,
|
|
705
705
|
twist: 0,
|
|
706
706
|
pointerType: null
|
|
707
|
-
}, Ge = /* @__PURE__ */ Object.keys(
|
|
707
|
+
}, Ge = /* @__PURE__ */ Object.keys(me);
|
|
708
708
|
function ot(e = {}) {
|
|
709
709
|
const {
|
|
710
710
|
target: t = I
|
|
711
711
|
} = e, o = b(!1), n = b(e.initialValue || {});
|
|
712
|
-
Object.assign(n.value,
|
|
712
|
+
Object.assign(n.value, me, n.value);
|
|
713
713
|
const u = (i) => {
|
|
714
714
|
o.value = !0, !(e.pointerTypes && !e.pointerTypes.includes(i.pointerType)) && (n.value = ke(i, Ge, !1));
|
|
715
715
|
};
|
|
716
716
|
if (t) {
|
|
717
717
|
const i = { passive: !0 };
|
|
718
|
-
|
|
718
|
+
M(t, ["pointerdown", "pointermove", "pointerup"], u, i), M(t, "pointerleave", () => o.value = !1, i);
|
|
719
719
|
}
|
|
720
720
|
return {
|
|
721
|
-
...
|
|
721
|
+
...Ve(n),
|
|
722
722
|
isInside: o
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
// @__NO_SIDE_EFFECTS__
|
|
726
|
-
function rt(e
|
|
726
|
+
function rt(e) {
|
|
727
|
+
const t = de("(prefers-reduced-motion: reduce)", e);
|
|
728
|
+
return _(() => t.value ? "reduce" : "no-preference");
|
|
729
|
+
}
|
|
730
|
+
// @__NO_SIDE_EFFECTS__
|
|
731
|
+
function it(e = {}) {
|
|
727
732
|
const {
|
|
728
733
|
window: t = I,
|
|
729
734
|
initialWidth: o = Number.POSITIVE_INFINITY,
|
|
@@ -742,25 +747,26 @@ function rt(e = {}) {
|
|
|
742
747
|
};
|
|
743
748
|
f(), B(f);
|
|
744
749
|
const a = { passive: !0 };
|
|
745
|
-
if (
|
|
746
|
-
const l =
|
|
750
|
+
if (M("resize", f, a), t && c === "visual" && t.visualViewport && M(t.visualViewport, "resize", f, a), u) {
|
|
751
|
+
const l = de("(orientation: portrait)");
|
|
747
752
|
A(l, () => f());
|
|
748
753
|
}
|
|
749
754
|
return { width: r, height: s };
|
|
750
755
|
}
|
|
751
756
|
export {
|
|
752
757
|
S as a,
|
|
753
|
-
|
|
758
|
+
it as b,
|
|
754
759
|
et as c,
|
|
755
760
|
Ze as d,
|
|
756
761
|
tt as e,
|
|
757
762
|
Ue as f,
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
763
|
+
M as g,
|
|
764
|
+
Qe as h,
|
|
765
|
+
rt as i,
|
|
766
|
+
ve as j,
|
|
762
767
|
de as k,
|
|
763
|
-
|
|
768
|
+
nt as l,
|
|
769
|
+
Ke as m,
|
|
764
770
|
Je as o,
|
|
765
771
|
ot as u,
|
|
766
772
|
qe as w
|
package/dist/index5.js
CHANGED
|
@@ -104,17 +104,17 @@ function Be(n) {
|
|
|
104
104
|
let e = 0, r = "";
|
|
105
105
|
I(["```", "[```", "{```"]), m() || ce(), I(["```", "```]", "```}"]);
|
|
106
106
|
const y = C(",");
|
|
107
|
-
for (y &&
|
|
108
|
-
e++,
|
|
107
|
+
for (y && c(), _(n[e]) && ye(r) ? (y || (r = l(r, ",")), re()) : y && (r = S(r, ",")); n[e] === "}" || n[e] === "]"; )
|
|
108
|
+
e++, c();
|
|
109
109
|
if (e >= n.length)
|
|
110
110
|
return r;
|
|
111
111
|
te();
|
|
112
112
|
function m() {
|
|
113
|
-
|
|
113
|
+
c();
|
|
114
114
|
const i = ee() || ne() || h() || ie() || se() || j(!1) || ue();
|
|
115
|
-
return
|
|
115
|
+
return c(), i;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function c() {
|
|
118
118
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
119
119
|
const s = e;
|
|
120
120
|
let u = W(i);
|
|
@@ -154,7 +154,7 @@ function Be(n) {
|
|
|
154
154
|
if (K(n[e]))
|
|
155
155
|
for (; e < n.length && L(n[e]); )
|
|
156
156
|
e++;
|
|
157
|
-
return
|
|
157
|
+
return c(), !0;
|
|
158
158
|
}
|
|
159
159
|
return !1;
|
|
160
160
|
}
|
|
@@ -177,19 +177,19 @@ function Be(n) {
|
|
|
177
177
|
return k("\\");
|
|
178
178
|
}
|
|
179
179
|
function Q() {
|
|
180
|
-
return
|
|
180
|
+
return c(), n[e] === "." && n[e + 1] === "." && n[e + 2] === "." ? (e += 3, c(), k(","), !0) : !1;
|
|
181
181
|
}
|
|
182
182
|
function ee() {
|
|
183
183
|
if (n[e] === "{") {
|
|
184
|
-
r += "{", e++,
|
|
184
|
+
r += "{", e++, c(), k(",") && c();
|
|
185
185
|
let i = !0;
|
|
186
186
|
for (; e < n.length && n[e] !== "}"; ) {
|
|
187
187
|
let s;
|
|
188
|
-
if (i ? (s = !0, i = !1) : (s = C(","), s || (r = l(r, ",")),
|
|
188
|
+
if (i ? (s = !0, i = !1) : (s = C(","), s || (r = l(r, ",")), c()), Q(), !(h() || j(!0))) {
|
|
189
189
|
n[e] === "}" || n[e] === "{" || n[e] === "]" || n[e] === "[" || n[e] === void 0 ? r = S(r, ",") : le();
|
|
190
190
|
break;
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
c();
|
|
193
193
|
const A = C(":"), a = e >= n.length;
|
|
194
194
|
A || (_(n[e]) || a ? r = l(r, ":") : J()), m() || (A || a ? r += "null" : J());
|
|
195
195
|
}
|
|
@@ -199,7 +199,7 @@ function Be(n) {
|
|
|
199
199
|
}
|
|
200
200
|
function ne() {
|
|
201
201
|
if (n[e] === "[") {
|
|
202
|
-
r += "[", e++,
|
|
202
|
+
r += "[", e++, c(), k(",") && c();
|
|
203
203
|
let i = !0;
|
|
204
204
|
for (; e < n.length && n[e] !== "]"; )
|
|
205
205
|
if (i ? i = !1 : C(",") || (r = l(r, ",")), Q(), !m()) {
|
|
@@ -225,40 +225,40 @@ ${r}
|
|
|
225
225
|
let o = '"';
|
|
226
226
|
for (e++; ; ) {
|
|
227
227
|
if (e >= n.length) {
|
|
228
|
-
const
|
|
229
|
-
return !i && O(n.charAt(
|
|
228
|
+
const t = D(e - 1);
|
|
229
|
+
return !i && O(n.charAt(t)) ? (e = a, r = r.substring(0, b), h(!0)) : (o = l(o, '"'), r += o, !0);
|
|
230
230
|
}
|
|
231
231
|
if (e === s)
|
|
232
232
|
return o = l(o, '"'), r += o, !0;
|
|
233
233
|
if (A(n[e])) {
|
|
234
|
-
const
|
|
235
|
-
if (o += '"', e++, r += o,
|
|
234
|
+
const t = e, V = o.length;
|
|
235
|
+
if (o += '"', e++, r += o, c(!1), i || e >= n.length || O(n[e]) || E(n[e]) || d(n[e]))
|
|
236
236
|
return U(), !0;
|
|
237
|
-
const f = D(
|
|
237
|
+
const f = D(t - 1), Z = n.charAt(f);
|
|
238
238
|
if (Z === ",")
|
|
239
239
|
return e = a, r = r.substring(0, b), h(!1, f);
|
|
240
240
|
if (O(Z))
|
|
241
241
|
return e = a, r = r.substring(0, b), h(!0);
|
|
242
|
-
r = r.substring(0, b), e =
|
|
242
|
+
r = r.substring(0, b), e = t + 1, o = `${o.substring(0, V)}\\${o.substring(V)}`;
|
|
243
243
|
} else if (i && R(n[e])) {
|
|
244
244
|
if (n[e - 1] === ":" && M.test(n.substring(a + 1, e + 2)))
|
|
245
245
|
for (; e < n.length && F.test(n[e]); )
|
|
246
246
|
o += n[e], e++;
|
|
247
247
|
return o = l(o, '"'), r += o, U(), !0;
|
|
248
248
|
} else if (n[e] === "\\") {
|
|
249
|
-
const
|
|
250
|
-
if (ve[
|
|
249
|
+
const t = n.charAt(e + 1);
|
|
250
|
+
if (ve[t] !== void 0)
|
|
251
251
|
o += n.slice(e, e + 2), e += 2;
|
|
252
|
-
else if (
|
|
252
|
+
else if (t === "u") {
|
|
253
253
|
let f = 2;
|
|
254
254
|
for (; f < 6 && Se(n[e + f]); )
|
|
255
255
|
f++;
|
|
256
256
|
f === 6 ? (o += n.slice(e, e + 6), e += 6) : e + f >= n.length ? e = n.length : fe();
|
|
257
|
-
} else
|
|
258
|
-
|
|
257
|
+
} else t === `
|
|
258
|
+
` ? (o += "\\n", e += 2) : (o += t, e += 2);
|
|
259
259
|
} else {
|
|
260
|
-
const
|
|
261
|
-
|
|
260
|
+
const t = n.charAt(e);
|
|
261
|
+
t === '"' && n[e - 1] !== "\\" ? (o += `\\${t}`, e++) : $e(t) ? (o += We[t], e++) : (Ne(t) || oe(t), o += t, e++);
|
|
262
262
|
}
|
|
263
263
|
u && x();
|
|
264
264
|
}
|
|
@@ -267,8 +267,8 @@ ${r}
|
|
|
267
267
|
}
|
|
268
268
|
function U() {
|
|
269
269
|
let i = !1;
|
|
270
|
-
for (
|
|
271
|
-
i = !0, e++,
|
|
270
|
+
for (c(); n[e] === "+"; ) {
|
|
271
|
+
i = !0, e++, c(), r = S(r, '"', !0);
|
|
272
272
|
const s = r.length;
|
|
273
273
|
h() ? r = Ee(r, s, 1) : r = l(r, '"');
|
|
274
274
|
}
|