@das-fed/ui 6.4.0-dev.82 → 6.4.0-dev.84
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/package.json +5 -5
- package/packages/components/alert/index.d.ts +9 -9
- package/packages/components/alert/src/index.vue.d.ts +1 -1
- package/packages/components/autocomplete/index.d.ts +9 -9
- package/packages/components/autocomplete/src/index.vue.d.ts +1 -1
- package/packages/components/image-upload/index.js +98 -98
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +33 -33
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +414 -414
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/index.d.ts +11 -2
- package/packages/components/tooltip/index.js +9 -7
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/src/index.vue.d.ts +1 -0
- package/packages/components/tooltip/src/type.d.ts +15 -2
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
|
@@ -41,19 +41,19 @@ const xt = (t, e) => {
|
|
|
41
41
|
const e = Element;
|
|
42
42
|
return t ? e ? t instanceof e : t.nodeType === jo : !1;
|
|
43
43
|
};
|
|
44
|
-
function
|
|
44
|
+
function Y(t, e) {
|
|
45
45
|
if ($e(t))
|
|
46
46
|
for (let o = 0; o < t.length && e(t[o], o, t) !== !1; o++)
|
|
47
47
|
;
|
|
48
|
-
else t &&
|
|
48
|
+
else t && Y(Object.keys(t), (o) => e(t[o], o, t));
|
|
49
49
|
return t;
|
|
50
50
|
}
|
|
51
51
|
const Le = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), J = (t, e, o) => (!Oe(e) && $e(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Ut = (t) => Array.from(t || []), Xo = (t) => St(t) ? t : [t], Ge = (t) => !!t && !t.length, wo = (t) => Ut(new Set(t)), bt = (t, e, o) => {
|
|
52
|
-
|
|
52
|
+
Y(t, (s) => s && s.apply(void 0, e || [])), !o && (t.length = 0);
|
|
53
53
|
}, Go = "paddingTop", Yo = "paddingRight", qo = "paddingLeft", Zo = "paddingBottom", Ko = "marginLeft", Jo = "marginRight", Qo = "marginBottom", He = "overflowX", ke = "overflowY", Zt = "width", Kt = "height", Jt = "hidden", tn = "visible", ro = (t, e, o, n) => {
|
|
54
54
|
if (t && e) {
|
|
55
55
|
let s = !0;
|
|
56
|
-
return
|
|
56
|
+
return Y(o, (c) => {
|
|
57
57
|
const r = t[c], l = e[c];
|
|
58
58
|
r !== l && (s = !1);
|
|
59
59
|
}), s;
|
|
@@ -75,18 +75,18 @@ const Le = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), J = (t, e, o
|
|
|
75
75
|
}, p = function() {
|
|
76
76
|
const $ = Ut(arguments), H = $t(r) ? r() : r;
|
|
77
77
|
if (Ot(H) && H >= 0) {
|
|
78
|
-
const k = $t(l) ? l() : l, C = Ot(k) && k >= 0,
|
|
78
|
+
const k = $t(l) ? l() : l, C = Ot(k) && k >= 0, b = H > 0 ? je : Uo, T = H > 0 ? We : Fo, A = i($) || $, V = u.bind(0, A);
|
|
79
79
|
c();
|
|
80
|
-
const
|
|
81
|
-
c = () => T(
|
|
80
|
+
const _ = b(V, H);
|
|
81
|
+
c = () => T(_), C && !o && (o = je(f, k)), n = s = A;
|
|
82
82
|
} else
|
|
83
83
|
u($);
|
|
84
84
|
};
|
|
85
85
|
return p.m = f, p;
|
|
86
|
-
}, sn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Lt = (t) => t ? Object.keys(t) : [],
|
|
86
|
+
}, sn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Lt = (t) => t ? Object.keys(t) : [], X = (t, e, o, n, s, c, r) => {
|
|
87
87
|
const l = [e, o, n, s, c, r];
|
|
88
|
-
return (typeof t != "object" || Ee(t)) && !$t(t) && (t = {}),
|
|
89
|
-
|
|
88
|
+
return (typeof t != "object" || Ee(t)) && !$t(t) && (t = {}), Y(l, (a) => {
|
|
89
|
+
Y(a, (u, i) => {
|
|
90
90
|
const f = a[i];
|
|
91
91
|
if (t === f)
|
|
92
92
|
return !0;
|
|
@@ -94,27 +94,27 @@ const Le = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), J = (t, e, o
|
|
|
94
94
|
if (f && xe(f)) {
|
|
95
95
|
const E = t[i];
|
|
96
96
|
let $ = E;
|
|
97
|
-
p && !St(E) ? $ = [] : !p && !xe(E) && ($ = {}), t[i] =
|
|
97
|
+
p && !St(E) ? $ = [] : !p && !xe(E) && ($ = {}), t[i] = X($, f);
|
|
98
98
|
} else
|
|
99
99
|
t[i] = p ? f.slice() : f;
|
|
100
100
|
});
|
|
101
101
|
}), t;
|
|
102
|
-
}, cn = (t, e) =>
|
|
102
|
+
}, cn = (t, e) => Y(X({}, t), (o, n, s) => {
|
|
103
103
|
o === void 0 ? delete s[n] : o && xe(o) && (s[n] = cn(o));
|
|
104
104
|
}), lo = (t) => {
|
|
105
105
|
for (const e in t)
|
|
106
106
|
return !1;
|
|
107
107
|
return !0;
|
|
108
108
|
}, Ye = (t, e, o) => he(t, Pn(e, o)), _t = (t) => Ut(new Set((St(t) ? t : (t || "").split(" ")).filter((e) => e))), De = (t, e) => t && t.getAttribute(e), yt = (t, e, o) => {
|
|
109
|
-
|
|
109
|
+
Y(_t(e), (n) => {
|
|
110
110
|
t && t.setAttribute(n, o || "");
|
|
111
111
|
});
|
|
112
112
|
}, Tt = (t, e) => {
|
|
113
|
-
|
|
113
|
+
Y(_t(e), (o) => t && t.removeAttribute(o));
|
|
114
114
|
}, Re = (t, e) => {
|
|
115
115
|
const o = _t(De(t, e)), n = M(yt, t, e), s = (c, r) => {
|
|
116
116
|
const l = new Set(o);
|
|
117
|
-
return
|
|
117
|
+
return Y(_t(c), (a) => l[r](a)), Ut(l).join(" ");
|
|
118
118
|
};
|
|
119
119
|
return {
|
|
120
120
|
O: (c) => n(s(c, "delete")),
|
|
@@ -141,7 +141,7 @@ const Le = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), J = (t, e, o
|
|
|
141
141
|
return n && s ? n === t || s === t || c && Xt(Xt(t, o), e) !== n : !1;
|
|
142
142
|
}, Pt = (t) => {
|
|
143
143
|
if ($e(t))
|
|
144
|
-
|
|
144
|
+
Y(Ut(t), (e) => Pt(e));
|
|
145
145
|
else if (t) {
|
|
146
146
|
const e = Qt(t);
|
|
147
147
|
e && e.removeChild(t);
|
|
@@ -149,7 +149,7 @@ const Le = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), J = (t, e, o
|
|
|
149
149
|
}, un = (t, e, o) => {
|
|
150
150
|
if (o && t) {
|
|
151
151
|
let n = e, s;
|
|
152
|
-
return $e(o) ? (s = document.createDocumentFragment(),
|
|
152
|
+
return $e(o) ? (s = document.createDocumentFragment(), Y(o, (c) => {
|
|
153
153
|
c === n && (n = c.previousSibling), s.appendChild(c);
|
|
154
154
|
})) : s = o, e && (n ? n !== e && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(s, n || null), () => Pt(o);
|
|
155
155
|
}
|
|
@@ -159,13 +159,13 @@ const Le = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), J = (t, e, o
|
|
|
159
159
|
return yt(e, "class", t), e;
|
|
160
160
|
}, dn = (t) => {
|
|
161
161
|
const e = Gt();
|
|
162
|
-
return e.innerHTML = t.trim(),
|
|
162
|
+
return e.innerHTML = t.trim(), Y(Ze(e), (o) => Pt(o));
|
|
163
163
|
}, jn = /^--/, To = (t, e) => t.getPropertyValue(e) || t[e] || "", ao = (t) => {
|
|
164
164
|
const e = t || 0;
|
|
165
165
|
return isFinite(e) ? e : 0;
|
|
166
166
|
}, me = (t) => ao(parseFloat(t || "")), Eo = (t) => `${(ao(t) * 100).toFixed(3)}%`, Ke = (t) => `${ao(t)}px`;
|
|
167
167
|
function te(t, e) {
|
|
168
|
-
t &&
|
|
168
|
+
t && Y(e, (o, n) => {
|
|
169
169
|
try {
|
|
170
170
|
const s = t.style, c = Ot(o) ? Ke(o) : (o || "") + "";
|
|
171
171
|
jn.test(n) ? s.setProperty(n, c) : s[n] = c;
|
|
@@ -206,10 +206,10 @@ const It = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
|
206
206
|
const o = Qe(t);
|
|
207
207
|
return !Qe(e) && o;
|
|
208
208
|
}, $o = (t, e, o, n) => {
|
|
209
|
-
|
|
209
|
+
Y(_t(e), (s) => {
|
|
210
210
|
t.removeEventListener(s, o, n);
|
|
211
211
|
});
|
|
212
|
-
},
|
|
212
|
+
}, ot = (t, e, o, n) => {
|
|
213
213
|
var s;
|
|
214
214
|
const c = (s = n && n.H) != null ? s : !0, r = n && n.I || !1, l = n && n.A || !1, a = {
|
|
215
215
|
passive: c,
|
|
@@ -240,7 +240,7 @@ const It = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
|
240
240
|
x: t.scrollLeft,
|
|
241
241
|
y: t.scrollTop
|
|
242
242
|
}), ko = (t, e) => {
|
|
243
|
-
|
|
243
|
+
Y(Xo(e), t);
|
|
244
244
|
}, to = (t) => {
|
|
245
245
|
const e = /* @__PURE__ */ new Map(), o = (c, r) => {
|
|
246
246
|
if (c) {
|
|
@@ -261,12 +261,12 @@ const It = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
|
261
261
|
}
|
|
262
262
|
Wo(r) && r && o();
|
|
263
263
|
const l = Lt(c), a = [];
|
|
264
|
-
return
|
|
264
|
+
return Y(l, (u) => {
|
|
265
265
|
const i = c[u];
|
|
266
266
|
i && J(a, n(u, i));
|
|
267
267
|
}), M(bt, a);
|
|
268
268
|
}, s = (c, r) => {
|
|
269
|
-
|
|
269
|
+
Y(Ut(e.get(c)), (l) => {
|
|
270
270
|
r && !Ge(r) ? l.apply(0, r) : l();
|
|
271
271
|
});
|
|
272
272
|
};
|
|
@@ -300,10 +300,10 @@ const It = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
|
300
300
|
}
|
|
301
301
|
}, mn = (t, e) => {
|
|
302
302
|
const o = {}, n = At(Lt(e), Lt(t));
|
|
303
|
-
return
|
|
303
|
+
return Y(n, (s) => {
|
|
304
304
|
const c = t[s], r = e[s];
|
|
305
305
|
if (ie(c) && ie(r))
|
|
306
|
-
|
|
306
|
+
X(o[s] = {}, mn(c, r)), lo(o[s]) && delete o[s];
|
|
307
307
|
else if (sn(e, s) && r !== c) {
|
|
308
308
|
let l = !0;
|
|
309
309
|
if (St(c) || St(r))
|
|
@@ -315,7 +315,7 @@ const It = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
|
315
315
|
}
|
|
316
316
|
}), o;
|
|
317
317
|
}, Io = (t, e, o) => (n) => [Ro(t, n), o || Ro(e, n) !== void 0], de = "data-overlayscrollbars", gn = "os-environment", qn = `${gn}-scrollbar-hidden`, Be = `${de}-initialize`, mt = de, hn = `${mt}-overflow-x`, bn = `${mt}-overflow-y`, vn = "overflowVisible", Zn = "scrollbarPressed", eo = "updating", Kn = "body", Rt = `${de}-viewport`, Jn = "arrange", yn = "scrollbarHidden", qt = vn, oo = `${de}-padding`, Qn = qt, Po = `${de}-content`, po = "os-size-observer", ts = `${po}-appear`, es = `${po}-listener`, os = "os-trinsic-observer", ns = "os-theme-none", ft = "os-scrollbar", ss = `${ft}-rtl`, cs = `${ft}-horizontal`, rs = `${ft}-vertical`, xn = `${ft}-track`, mo = `${ft}-handle`, ls = `${ft}-visible`, is = `${ft}-cornerless`, Mo = `${ft}-interaction`, No = `${ft}-unusable`, no = `${ft}-auto-hide`, zo = `${no}-hidden`, Vo = `${ft}-wheel`, as = `${xn}-interactive`, us = `${mo}-interactive`, wn = {}, Sn = {}, ds = (t) => {
|
|
318
|
-
|
|
318
|
+
Y(t, (e) => Y(e, (o, n) => {
|
|
319
319
|
wn[n] = e[n];
|
|
320
320
|
}));
|
|
321
321
|
}, Cn = (t, e, o) => Lt(t).map((n) => {
|
|
@@ -351,37 +351,37 @@ const It = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
|
351
351
|
}, go = "__osScrollbarsHidingPlugin", hs = "__osClickScrollPlugin";
|
|
352
352
|
let Fe;
|
|
353
353
|
const bs = () => {
|
|
354
|
-
const t = (
|
|
355
|
-
gt(
|
|
356
|
-
const
|
|
354
|
+
const t = (b, T, R, A) => {
|
|
355
|
+
gt(b, T);
|
|
356
|
+
const V = fn(T), _ = le(T), N = uo(R);
|
|
357
357
|
return A && Pt(T), {
|
|
358
|
-
x:
|
|
359
|
-
y:
|
|
358
|
+
x: _.h - V.h + N.h,
|
|
359
|
+
y: _.w - V.w + N.w
|
|
360
360
|
};
|
|
361
|
-
}, e = (
|
|
361
|
+
}, e = (b) => {
|
|
362
362
|
let T = !1;
|
|
363
|
-
const R = we(
|
|
363
|
+
const R = we(b, qn);
|
|
364
364
|
try {
|
|
365
|
-
T = Bt(
|
|
365
|
+
T = Bt(b, "scrollbar-width") === "none" || Bt(b, "display", "::-webkit-scrollbar") === "none";
|
|
366
366
|
} catch {
|
|
367
367
|
}
|
|
368
368
|
return R(), T;
|
|
369
|
-
}, o = (
|
|
370
|
-
te(
|
|
369
|
+
}, o = (b, T) => {
|
|
370
|
+
te(b, {
|
|
371
371
|
[He]: Jt,
|
|
372
372
|
[ke]: Jt,
|
|
373
373
|
direction: "rtl"
|
|
374
|
-
}), Mt(
|
|
374
|
+
}), Mt(b, {
|
|
375
375
|
x: 0
|
|
376
376
|
});
|
|
377
|
-
const R = _e(
|
|
378
|
-
Mt(
|
|
377
|
+
const R = _e(b), A = _e(T);
|
|
378
|
+
Mt(b, {
|
|
379
379
|
x: -999
|
|
380
380
|
});
|
|
381
|
-
const
|
|
381
|
+
const V = _e(T);
|
|
382
382
|
return {
|
|
383
383
|
i: R.x === A.x,
|
|
384
|
-
n: A.x !==
|
|
384
|
+
n: A.x !== V.x
|
|
385
385
|
};
|
|
386
386
|
}, { body: n } = document, c = dn(`<div class="${gn}"><div></div></div>`)[0], r = c.firstChild, [l, , a] = to(), [u, i] = xt({
|
|
387
387
|
o: t(n, c, r),
|
|
@@ -393,7 +393,7 @@ const bs = () => {
|
|
|
393
393
|
elements: {
|
|
394
394
|
host: null,
|
|
395
395
|
padding: !p,
|
|
396
|
-
viewport: (
|
|
396
|
+
viewport: (b) => p && b === b.ownerDocument.body && b,
|
|
397
397
|
content: !1
|
|
398
398
|
},
|
|
399
399
|
scrollbars: {
|
|
@@ -403,7 +403,7 @@ const bs = () => {
|
|
|
403
403
|
nativeScrollbarsOverlaid: !1,
|
|
404
404
|
body: null
|
|
405
405
|
}
|
|
406
|
-
}, H =
|
|
406
|
+
}, H = X({}, Yn), I = M(X, {}, H), k = M(X, {}, $), C = {
|
|
407
407
|
P: f,
|
|
408
408
|
T: E,
|
|
409
409
|
L: p,
|
|
@@ -411,19 +411,19 @@ const bs = () => {
|
|
|
411
411
|
K: o(c, r),
|
|
412
412
|
Z: M(l, "r"),
|
|
413
413
|
G: k,
|
|
414
|
-
tt: (
|
|
414
|
+
tt: (b) => X($, b) && k(),
|
|
415
415
|
nt: I,
|
|
416
|
-
ot: (
|
|
417
|
-
st:
|
|
418
|
-
et:
|
|
416
|
+
ot: (b) => X(H, b) && I(),
|
|
417
|
+
st: X({}, $),
|
|
418
|
+
et: X({}, H)
|
|
419
419
|
};
|
|
420
420
|
return Tt(c, "style"), Pt(c), ht.addEventListener("resize", () => {
|
|
421
|
-
let
|
|
421
|
+
let b;
|
|
422
422
|
if (!p && (!E.x || !E.y)) {
|
|
423
423
|
const T = oe(go);
|
|
424
|
-
|
|
424
|
+
b = !!(T ? T.Y() : wt)(C, u);
|
|
425
425
|
}
|
|
426
|
-
a("r", [
|
|
426
|
+
a("r", [b]);
|
|
427
427
|
}), C;
|
|
428
428
|
}, vt = () => (Fe || (Fe = bs()), Fe), ho = (t, e) => $t(e) ? e.apply(0, t) : e, vs = (t, e, o, n) => {
|
|
429
429
|
const s = ue(n) ? o : n;
|
|
@@ -448,10 +448,10 @@ const bs = () => {
|
|
|
448
448
|
const [i, f] = u || [];
|
|
449
449
|
return [f && i ? (l || an)(i, t) : [], f];
|
|
450
450
|
});
|
|
451
|
-
|
|
451
|
+
Y(a, (u) => Y(u[0], (i) => {
|
|
452
452
|
const f = u[1], p = s.get(i) || [];
|
|
453
453
|
if (t.contains(i) && f) {
|
|
454
|
-
const $ =
|
|
454
|
+
const $ = ot(i, f, (H) => {
|
|
455
455
|
n ? ($(), s.delete(i)) : e(H);
|
|
456
456
|
});
|
|
457
457
|
s.set(i, J(p, $));
|
|
@@ -466,22 +466,22 @@ const bs = () => {
|
|
|
466
466
|
const { ct: c, rt: r, lt: l, it: a, ut: u, ft: i } = n || {}, f = nn(() => s && o(!0), {
|
|
467
467
|
v: 33,
|
|
468
468
|
p: 99
|
|
469
|
-
}), [p, E] = Ss(t, f, l), $ = c || [], H = r || [], I = At($, H), k = (
|
|
469
|
+
}), [p, E] = Ss(t, f, l), $ = c || [], H = r || [], I = At($, H), k = (b, T) => {
|
|
470
470
|
if (!Ge(T)) {
|
|
471
|
-
const R = u || wt, A = i || wt,
|
|
472
|
-
let
|
|
473
|
-
if (
|
|
474
|
-
const { attributeName:
|
|
475
|
-
if (e && (
|
|
476
|
-
const
|
|
477
|
-
|
|
471
|
+
const R = u || wt, A = i || wt, V = [], _ = [];
|
|
472
|
+
let N = !1, S = !1;
|
|
473
|
+
if (Y(T, (x) => {
|
|
474
|
+
const { attributeName: v, target: h, type: O, oldValue: z, addedNodes: F, removedNodes: j } = x, U = O === "attributes", G = O === "childList", Z = t === h, nt = U && v, tt = nt && De(h, v || "") || null, D = nt && z !== tt, Q = Le(H, v) && D;
|
|
475
|
+
if (e && (G || !Z)) {
|
|
476
|
+
const et = U && D, it = et && a && qe(h, a), m = (it ? !R(h, v, z, tt) : !U || et) && !A(x, !!it, t, n);
|
|
477
|
+
Y(F, (g) => J(V, g)), Y(j, (g) => J(V, g)), S = S || m;
|
|
478
478
|
}
|
|
479
|
-
!e && Z && D && !R(h,
|
|
480
|
-
}), E((x) => wo(
|
|
481
|
-
return !
|
|
482
|
-
if (!Ge(
|
|
483
|
-
const x = [wo(
|
|
484
|
-
return !
|
|
479
|
+
!e && Z && D && !R(h, v, z, tt) && (J(_, v), N = N || Q);
|
|
480
|
+
}), E((x) => wo(V).reduce((v, h) => (J(v, an(x, h)), qe(h, x) ? J(v, h) : v), [])), e)
|
|
481
|
+
return !b && S && o(!1), [!1];
|
|
482
|
+
if (!Ge(_) || N) {
|
|
483
|
+
const x = [wo(_), N];
|
|
484
|
+
return !b && o.apply(0, x), x;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
}, C = new Mn(M(k, !1));
|
|
@@ -506,11 +506,11 @@ const bs = () => {
|
|
|
506
506
|
return () => {
|
|
507
507
|
const i = [], p = dn(`<div class="${po}"><div class="${es}"></div></div>`)[0], E = p.firstChild, $ = (H) => {
|
|
508
508
|
const I = H instanceof ResizeObserverEntry, k = !I && St(H);
|
|
509
|
-
let C = !1,
|
|
509
|
+
let C = !1, b = !1, T = !0;
|
|
510
510
|
if (I) {
|
|
511
|
-
const [R, , A] = u(H.contentRect),
|
|
512
|
-
|
|
513
|
-
} else k ? [, T] = H :
|
|
511
|
+
const [R, , A] = u(H.contentRect), V = Qe(R), _ = pn(R, A);
|
|
512
|
+
b = !A || _, C = !b && !V, T = !C;
|
|
513
|
+
} else k ? [, T] = H : b = H === !0;
|
|
514
514
|
if (s && T) {
|
|
515
515
|
const R = k ? H[0] : It(p);
|
|
516
516
|
Mt(p, {
|
|
@@ -521,7 +521,7 @@ const bs = () => {
|
|
|
521
521
|
C || e({
|
|
522
522
|
vt: k ? H : void 0,
|
|
523
523
|
ht: !k,
|
|
524
|
-
dt:
|
|
524
|
+
dt: b
|
|
525
525
|
});
|
|
526
526
|
};
|
|
527
527
|
if (ye) {
|
|
@@ -531,16 +531,16 @@ const bs = () => {
|
|
|
531
531
|
});
|
|
532
532
|
} else if (r) {
|
|
533
533
|
const [H, I] = r(E, $, c);
|
|
534
|
-
J(i, At([we(p, ts),
|
|
534
|
+
J(i, At([we(p, ts), ot(p, "animationstart", H)], I));
|
|
535
535
|
} else
|
|
536
536
|
return wt;
|
|
537
537
|
if (s) {
|
|
538
538
|
const [H] = xt({
|
|
539
539
|
o: void 0
|
|
540
540
|
}, a);
|
|
541
|
-
J(i,
|
|
542
|
-
const k = H(), [C,
|
|
543
|
-
|
|
541
|
+
J(i, ot(p, "scroll", (I) => {
|
|
542
|
+
const k = H(), [C, b, T] = k;
|
|
543
|
+
b && (io(E, "ltr rtl"), we(E, C ? "rtl" : "ltr"), $([!!C, b, T])), fo(I);
|
|
544
544
|
}));
|
|
545
545
|
}
|
|
546
546
|
return M(bt, J(i, gt(t, p)));
|
|
@@ -574,91 +574,91 @@ const bs = () => {
|
|
|
574
574
|
}, () => o && l(!0, o.takeRecords())];
|
|
575
575
|
}, Ts = (t, e, o, n) => {
|
|
576
576
|
let s, c, r, l, a, u;
|
|
577
|
-
const { L: i } = vt(), f = `[${mt}]`, p = `[${Rt}]`, E = ["tabindex"], $ = ["wrap", "cols", "rows"], H = ["id", "class", "style", "open"], { gt: I, bt: k, D: C, wt:
|
|
577
|
+
const { L: i } = vt(), f = `[${mt}]`, p = `[${Rt}]`, E = ["tabindex"], $ = ["wrap", "cols", "rows"], H = ["id", "class", "style", "open"], { gt: I, bt: k, D: C, wt: b, St: T, V: R, yt: A, Ot: V } = t, _ = {
|
|
578
578
|
$t: !1,
|
|
579
579
|
N: It(I)
|
|
580
|
-
},
|
|
580
|
+
}, N = vt(), S = oe(go), [x] = xt({
|
|
581
581
|
u: en,
|
|
582
582
|
o: {
|
|
583
583
|
w: 0,
|
|
584
584
|
h: 0
|
|
585
585
|
}
|
|
586
586
|
}, () => {
|
|
587
|
-
const d =
|
|
588
|
-
|
|
589
|
-
const
|
|
590
|
-
return
|
|
591
|
-
w: P.w + L.w +
|
|
592
|
-
h: P.h + L.h +
|
|
587
|
+
const d = S && S.M(t, e, _, N, o).W, m = A(qt), g = !R && A(Jn), y = g && ee(C);
|
|
588
|
+
V(qt), R && V(eo, !0);
|
|
589
|
+
const w = g && d && d()[0], L = Je(b), P = Je(C), B = uo(C);
|
|
590
|
+
return V(qt, m), R && V(eo), w && w(), Mt(C, y), {
|
|
591
|
+
w: P.w + L.w + B.w,
|
|
592
|
+
h: P.h + L.h + B.h
|
|
593
593
|
};
|
|
594
|
-
}),
|
|
594
|
+
}), v = T ? $ : At(H, $), h = nn(n, {
|
|
595
595
|
v: () => s,
|
|
596
596
|
p: () => c,
|
|
597
597
|
S(d, m) {
|
|
598
598
|
const [g] = d, [y] = m;
|
|
599
|
-
return [At(Lt(g), Lt(y)).reduce((
|
|
599
|
+
return [At(Lt(g), Lt(y)).reduce((w, L) => (w[L] = g[L] || y[L], w), {})];
|
|
600
600
|
}
|
|
601
|
-
}),
|
|
601
|
+
}), O = (d) => {
|
|
602
602
|
if (R) {
|
|
603
603
|
const m = It(I);
|
|
604
|
-
|
|
604
|
+
X(d, {
|
|
605
605
|
Ct: u !== m
|
|
606
|
-
}),
|
|
606
|
+
}), X(_, {
|
|
607
607
|
N: m
|
|
608
608
|
}), u = m;
|
|
609
609
|
}
|
|
610
|
-
},
|
|
611
|
-
|
|
610
|
+
}, z = (d) => {
|
|
611
|
+
Y(d || E, (m) => {
|
|
612
612
|
if (Le(E, m)) {
|
|
613
613
|
const g = De(k, m);
|
|
614
614
|
Oe(g) ? yt(C, m, g) : Tt(C, m);
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
|
-
},
|
|
618
|
-
const [g, y] = d,
|
|
617
|
+
}, F = (d, m) => {
|
|
618
|
+
const [g, y] = d, w = {
|
|
619
619
|
xt: y
|
|
620
620
|
};
|
|
621
|
-
return
|
|
621
|
+
return X(_, {
|
|
622
622
|
$t: g
|
|
623
|
-
}), !m && n(
|
|
624
|
-
},
|
|
625
|
-
const
|
|
623
|
+
}), !m && n(w), w;
|
|
624
|
+
}, j = ({ ht: d, vt: m, dt: g }) => {
|
|
625
|
+
const w = !(d && !g && !m) && i ? h : n, [L, P] = m || [], B = {
|
|
626
626
|
ht: d || g,
|
|
627
627
|
dt: g,
|
|
628
628
|
Ct: P
|
|
629
629
|
};
|
|
630
|
-
|
|
630
|
+
O(B), m && X(_, {
|
|
631
631
|
N: L
|
|
632
|
-
}),
|
|
633
|
-
},
|
|
632
|
+
}), w(B);
|
|
633
|
+
}, U = (d, m) => {
|
|
634
634
|
const [, g] = x(), y = {
|
|
635
635
|
Ht: g
|
|
636
636
|
};
|
|
637
|
-
return
|
|
638
|
-
},
|
|
637
|
+
return O(y), g && !m && (d ? n : h)(y), y;
|
|
638
|
+
}, G = (d, m, g) => {
|
|
639
639
|
const y = {
|
|
640
640
|
It: m
|
|
641
641
|
};
|
|
642
|
-
return
|
|
643
|
-
}, { Z } =
|
|
642
|
+
return O(y), m && !g ? h(y) : R || z(d), y;
|
|
643
|
+
}, { Z } = N, [nt, tt] = b ? Cs(k, F) : [], D = !R && $n(k, j, {
|
|
644
644
|
dt: !0,
|
|
645
645
|
_t: !0
|
|
646
|
-
}), [
|
|
646
|
+
}), [Q, et] = _o(k, !1, G, {
|
|
647
647
|
rt: H,
|
|
648
648
|
ct: At(H, E)
|
|
649
649
|
}), it = R && ye && new ye((d) => {
|
|
650
650
|
const m = d[d.length - 1].contentRect;
|
|
651
|
-
|
|
651
|
+
j({
|
|
652
652
|
ht: !0,
|
|
653
653
|
dt: pn(m, a)
|
|
654
654
|
}), a = m;
|
|
655
655
|
});
|
|
656
656
|
return [() => {
|
|
657
|
-
|
|
658
|
-
const d = D && D(), m =
|
|
657
|
+
z(), it && it.observe(k);
|
|
658
|
+
const d = D && D(), m = nt && nt(), g = Q(), y = Z((w) => {
|
|
659
659
|
const [, L] = x();
|
|
660
660
|
h({
|
|
661
|
-
zt:
|
|
661
|
+
zt: w,
|
|
662
662
|
Ht: L
|
|
663
663
|
});
|
|
664
664
|
});
|
|
@@ -666,321 +666,321 @@ const bs = () => {
|
|
|
666
666
|
it && it.disconnect(), d && d(), m && m(), l && l(), g(), y();
|
|
667
667
|
};
|
|
668
668
|
}, ({ Et: d, At: m, Tt: g }) => {
|
|
669
|
-
const y = {}, [
|
|
669
|
+
const y = {}, [w] = d("update.ignoreMutation"), [L, P] = d("update.attributes"), [B, q] = d("update.elementEvents"), [rt, at] = d("update.debounce"), K = q || P, lt = m || g, Nt = (W) => $t(w) && w(W);
|
|
670
670
|
if (K) {
|
|
671
671
|
r && r(), l && l();
|
|
672
|
-
const [
|
|
673
|
-
ct: At(
|
|
674
|
-
lt:
|
|
672
|
+
const [W, ct] = _o(b || C, !0, U, {
|
|
673
|
+
ct: At(v, L || []),
|
|
674
|
+
lt: B,
|
|
675
675
|
it: f,
|
|
676
676
|
ft: (ut, dt) => {
|
|
677
677
|
const { target: st, attributeName: pt } = ut;
|
|
678
678
|
return (!dt && pt && !R ? Un(st, f, p) : !1) || !!Xt(st, `.${ft}`) || !!Nt(ut);
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
|
-
l =
|
|
681
|
+
l = W(), r = ct;
|
|
682
682
|
}
|
|
683
683
|
if (at)
|
|
684
684
|
if (h.m(), St(rt)) {
|
|
685
|
-
const
|
|
686
|
-
s = Ot(
|
|
685
|
+
const W = rt[0], ct = rt[1];
|
|
686
|
+
s = Ot(W) && W, c = Ot(ct) && ct;
|
|
687
687
|
} else Ot(rt) ? (s = rt, c = !1) : (s = !1, c = !1);
|
|
688
688
|
if (lt) {
|
|
689
|
-
const
|
|
690
|
-
|
|
689
|
+
const W = et(), ct = tt && tt(), ut = r && r();
|
|
690
|
+
W && X(y, G(W[0], W[1], lt)), ct && X(y, F(ct[0], lt)), ut && X(y, U(ut[0], lt));
|
|
691
691
|
}
|
|
692
|
-
return
|
|
693
|
-
},
|
|
692
|
+
return O(y), y;
|
|
693
|
+
}, _];
|
|
694
694
|
}, Es = (t, e, o, n) => {
|
|
695
695
|
const { G: s, K: c } = vt(), { scrollbars: r } = s(), { slot: l } = r, { gt: a, bt: u, D: i, Dt: f, kt: p, Rt: E, V: $ } = e, { scrollbars: H } = f ? {} : t, { slot: I } = H || {}, k = /* @__PURE__ */ new Map(), C = (d) => Xe && new Xe({
|
|
696
696
|
source: p,
|
|
697
697
|
axis: d
|
|
698
|
-
}),
|
|
698
|
+
}), b = C("x"), T = C("y"), R = En([a, u, i], () => $ && E ? a : u, l, I), A = (d, m) => {
|
|
699
699
|
if (m) {
|
|
700
|
-
const
|
|
700
|
+
const B = d ? Zt : Kt, { Mt: q, Vt: rt } = m, at = Yt(rt)[B], K = Yt(q)[B];
|
|
701
701
|
return Ye(0, 1, at / K || 0);
|
|
702
702
|
}
|
|
703
|
-
const g = d ? "x" : "y", { Lt: y, Pt:
|
|
703
|
+
const g = d ? "x" : "y", { Lt: y, Pt: w } = o, L = w[g], P = y[g];
|
|
704
704
|
return Ye(0, 1, L / (L + P) || 0);
|
|
705
|
-
},
|
|
706
|
-
const
|
|
707
|
-
return 1 /
|
|
708
|
-
},
|
|
705
|
+
}, V = (d, m, g, y) => {
|
|
706
|
+
const w = A(g, d);
|
|
707
|
+
return 1 / w * (1 - w) * (y ? 1 - m : m) || 0;
|
|
708
|
+
}, _ = (d, m) => X(d, m ? {
|
|
709
709
|
clear: ["left"]
|
|
710
|
-
} : {}),
|
|
710
|
+
} : {}), N = (d) => {
|
|
711
711
|
k.forEach((m, g) => {
|
|
712
|
-
(d ? Le(Xo(d), g) : !0) && (
|
|
713
|
-
|
|
712
|
+
(d ? Le(Xo(d), g) : !0) && (Y(m || [], (w) => {
|
|
713
|
+
w && w.cancel();
|
|
714
714
|
}), k.delete(g));
|
|
715
715
|
});
|
|
716
|
-
},
|
|
717
|
-
const
|
|
716
|
+
}, S = (d, m, g, y) => {
|
|
717
|
+
const w = k.get(d) || [], L = w.find((P) => P && P.timeline === m);
|
|
718
718
|
L ? L.effect = new KeyframeEffect(d, g, {
|
|
719
719
|
composite: y
|
|
720
|
-
}) : k.set(d, At(
|
|
720
|
+
}) : k.set(d, At(w, [d.animate(g, {
|
|
721
721
|
timeline: m,
|
|
722
722
|
composite: y
|
|
723
723
|
})]));
|
|
724
724
|
}, x = (d, m, g) => {
|
|
725
725
|
const y = g ? we : io;
|
|
726
|
-
|
|
727
|
-
y(
|
|
726
|
+
Y(d, (w) => {
|
|
727
|
+
y(w.Ut, m);
|
|
728
728
|
});
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
const [y,
|
|
732
|
-
te(y,
|
|
729
|
+
}, v = (d, m) => {
|
|
730
|
+
Y(d, (g) => {
|
|
731
|
+
const [y, w] = m(g);
|
|
732
|
+
te(y, w);
|
|
733
733
|
});
|
|
734
734
|
}, h = (d, m) => {
|
|
735
|
-
|
|
735
|
+
v(d, (g) => {
|
|
736
736
|
const { Vt: y } = g;
|
|
737
737
|
return [y, {
|
|
738
738
|
[m ? Zt : Kt]: Eo(A(m))
|
|
739
739
|
}];
|
|
740
740
|
});
|
|
741
|
-
},
|
|
742
|
-
const { Lt: g } = o, y = m ? g.x : g.y,
|
|
743
|
-
if (
|
|
744
|
-
|
|
745
|
-
const { Ut: P, Vt:
|
|
746
|
-
|
|
747
|
-
transform: Lo(y, q).map((rt) =>
|
|
741
|
+
}, O = (d, m) => {
|
|
742
|
+
const { Lt: g } = o, y = m ? g.x : g.y, w = (L, P, B) => Ve(Eo(V(L, Ho(P, y, B), m, B)), m);
|
|
743
|
+
if (b && T)
|
|
744
|
+
Y(d, (L) => {
|
|
745
|
+
const { Ut: P, Vt: B } = L, q = m && It(P) && c;
|
|
746
|
+
S(B, m ? b : T, _({
|
|
747
|
+
transform: Lo(y, q).map((rt) => w(L, rt, q))
|
|
748
748
|
}, q));
|
|
749
749
|
});
|
|
750
750
|
else {
|
|
751
751
|
const L = ee(p);
|
|
752
|
-
|
|
753
|
-
const { Vt:
|
|
754
|
-
return [
|
|
755
|
-
transform:
|
|
752
|
+
v(d, (P) => {
|
|
753
|
+
const { Vt: B, Ut: q } = P;
|
|
754
|
+
return [B, {
|
|
755
|
+
transform: w(P, m ? L.x : L.y, m && It(q) && c)
|
|
756
756
|
}];
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
},
|
|
760
|
-
const y = Wo(g),
|
|
761
|
-
|
|
759
|
+
}, z = (d) => $ && !E && Qt(d) === i, F = [], j = [], U = [], G = (d, m, g) => {
|
|
760
|
+
const y = Wo(g), w = y ? g : !0, L = y ? !g : !0;
|
|
761
|
+
w && x(j, d, m), L && x(U, d, m);
|
|
762
762
|
}, Z = () => {
|
|
763
|
-
h(
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
},
|
|
763
|
+
h(j, !0), h(U);
|
|
764
|
+
}, nt = () => {
|
|
765
|
+
O(j, !0), O(U);
|
|
766
|
+
}, tt = () => {
|
|
767
767
|
if ($) {
|
|
768
768
|
const { Lt: d } = o, m = 0.5;
|
|
769
|
-
if (
|
|
770
|
-
|
|
771
|
-
if (
|
|
772
|
-
const y = (
|
|
773
|
-
const
|
|
774
|
-
|
|
775
|
-
transform: Lo(L - m,
|
|
776
|
-
},
|
|
769
|
+
if (b && T)
|
|
770
|
+
Y(At(U, j), ({ Ut: g }) => {
|
|
771
|
+
if (z(g)) {
|
|
772
|
+
const y = (w, L, P) => {
|
|
773
|
+
const B = P && It(g) && c;
|
|
774
|
+
S(g, w, _({
|
|
775
|
+
transform: Lo(L - m, B).map((q) => Ve(Ke(q), P))
|
|
776
|
+
}, B), "add");
|
|
777
777
|
};
|
|
778
|
-
y(
|
|
778
|
+
y(b, d.x, !0), y(T, d.y);
|
|
779
779
|
} else
|
|
780
|
-
|
|
780
|
+
N(g);
|
|
781
781
|
});
|
|
782
782
|
else {
|
|
783
|
-
const g = ee(p), y = (
|
|
784
|
-
const { Ut: L } =
|
|
783
|
+
const g = ee(p), y = (w) => {
|
|
784
|
+
const { Ut: L } = w, P = z(L) && L, B = (q, rt, at) => {
|
|
785
785
|
const K = Ho(q, rt, at), lt = rt * K;
|
|
786
786
|
return Ke(at ? -lt : lt);
|
|
787
787
|
};
|
|
788
788
|
return [P, {
|
|
789
789
|
transform: P ? Ve({
|
|
790
|
-
x:
|
|
791
|
-
y:
|
|
790
|
+
x: B(g.x, d.x, It(L) && c),
|
|
791
|
+
y: B(g.y, d.y)
|
|
792
792
|
}) : ""
|
|
793
793
|
}];
|
|
794
794
|
};
|
|
795
|
-
|
|
795
|
+
v(j, y), v(U, y);
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
}, D = (d) => {
|
|
799
|
-
const g = Gt(`${ft} ${d ? cs : rs}`), y = Gt(xn),
|
|
799
|
+
const g = Gt(`${ft} ${d ? cs : rs}`), y = Gt(xn), w = Gt(mo), L = {
|
|
800
800
|
Ut: g,
|
|
801
801
|
Mt: y,
|
|
802
|
-
Vt:
|
|
802
|
+
Vt: w
|
|
803
803
|
};
|
|
804
|
-
return J(d ?
|
|
805
|
-
},
|
|
806
|
-
return
|
|
804
|
+
return J(d ? j : U, L), J(F, [gt(g, y), gt(y, w), M(Pt, g), N, n(L, G, O, d)]), L;
|
|
805
|
+
}, Q = M(D, !0), et = M(D, !1), it = () => (gt(R, j[0].Ut), gt(R, U[0].Ut), M(bt, F));
|
|
806
|
+
return Q(), et(), [{
|
|
807
807
|
Bt: Z,
|
|
808
|
-
Nt:
|
|
809
|
-
jt:
|
|
810
|
-
Ft:
|
|
808
|
+
Nt: nt,
|
|
809
|
+
jt: tt,
|
|
810
|
+
Ft: G,
|
|
811
811
|
qt: {
|
|
812
|
-
J:
|
|
813
|
-
Wt:
|
|
814
|
-
Xt:
|
|
815
|
-
Yt: M(
|
|
812
|
+
J: b,
|
|
813
|
+
Wt: j,
|
|
814
|
+
Xt: Q,
|
|
815
|
+
Yt: M(v, j)
|
|
816
816
|
},
|
|
817
817
|
Jt: {
|
|
818
818
|
J: T,
|
|
819
|
-
Wt:
|
|
820
|
-
Xt:
|
|
821
|
-
Yt: M(
|
|
819
|
+
Wt: U,
|
|
820
|
+
Xt: et,
|
|
821
|
+
Yt: M(v, U)
|
|
822
822
|
}
|
|
823
823
|
}, it];
|
|
824
824
|
}, Os = (t, e, o) => {
|
|
825
825
|
const { bt: n, kt: s, Kt: c } = e;
|
|
826
826
|
return (r, l, a, u) => {
|
|
827
|
-
const { Ut: i, Mt: f, Vt: p } = r, [E, $] = Dt(333), [H, I] = Dt(), k = M(a, [r], u), C = !!s.scrollBy,
|
|
828
|
-
const x = "pointerup pointerleave pointercancel lostpointercapture",
|
|
829
|
-
const { Lt:
|
|
827
|
+
const { Ut: i, Mt: f, Vt: p } = r, [E, $] = Dt(333), [H, I] = Dt(), k = M(a, [r], u), C = !!s.scrollBy, b = `client${u ? "X" : "Y"}`, T = u ? Zt : Kt, R = u ? "left" : "top", A = u ? "w" : "h", V = u ? "x" : "y", _ = (x) => x.propertyName.indexOf(T) > -1, N = () => {
|
|
828
|
+
const x = "pointerup pointerleave pointercancel lostpointercapture", v = (h, O) => (z) => {
|
|
829
|
+
const { Lt: F } = o, j = le(f)[A] - le(p)[A], G = O * z / j * F[V];
|
|
830
830
|
Mt(s, {
|
|
831
|
-
[
|
|
831
|
+
[V]: h + G
|
|
832
832
|
});
|
|
833
833
|
};
|
|
834
|
-
return
|
|
835
|
-
const
|
|
836
|
-
if (
|
|
837
|
-
const
|
|
838
|
-
bt(at),
|
|
839
|
-
}, at = [ae(n, mt, Zn),
|
|
834
|
+
return ot(f, "pointerdown", (h) => {
|
|
835
|
+
const O = Xt(h.target, `.${mo}`) === p, z = O ? p : f, F = t.scrollbars, { button: j, isPrimary: U, pointerType: G } = h, { pointers: Z } = F;
|
|
836
|
+
if (j === 0 && U && F[O ? "dragScroll" : "clickScroll"] && (Z || []).includes(G)) {
|
|
837
|
+
const tt = !O && h.shiftKey, D = M(Yt, p), Q = M(Yt, f), et = (K, lt) => (K || D())[R] - (lt || Q())[R], it = Ue(Yt(s)[T]) / le(s)[A] || 1, d = v(ee(s)[V] || 0, 1 / it), m = h[b], g = D(), y = Q(), w = g[T], L = et(g, y) + w / 2, P = m - y[R], B = O ? 0 : P - L, q = (K) => {
|
|
838
|
+
bt(at), z.releasePointerCapture(K.pointerId);
|
|
839
|
+
}, at = [ae(n, mt, Zn), ot(c, x, q), ot(c, "selectstart", (K) => Ao(K), {
|
|
840
840
|
H: !1
|
|
841
|
-
}),
|
|
842
|
-
const lt = K[
|
|
843
|
-
(
|
|
841
|
+
}), ot(f, x, q), ot(f, "pointermove", (K) => {
|
|
842
|
+
const lt = K[b] - m;
|
|
843
|
+
(O || tt) && d(B + lt);
|
|
844
844
|
})];
|
|
845
|
-
if (
|
|
846
|
-
d(
|
|
847
|
-
else if (!
|
|
845
|
+
if (z.setPointerCapture(h.pointerId), tt)
|
|
846
|
+
d(B);
|
|
847
|
+
else if (!O) {
|
|
848
848
|
const K = oe(hs);
|
|
849
|
-
K && J(at, K(d,
|
|
849
|
+
K && J(at, K(d, et, B, w, P));
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
});
|
|
853
853
|
};
|
|
854
|
-
let
|
|
855
|
-
return M(bt, [
|
|
854
|
+
let S = !0;
|
|
855
|
+
return M(bt, [ot(i, "pointerenter", () => {
|
|
856
856
|
l(Mo, !0);
|
|
857
|
-
}),
|
|
857
|
+
}), ot(i, "pointerleave pointercancel", () => {
|
|
858
858
|
l(Mo, !1);
|
|
859
|
-
}),
|
|
860
|
-
const { deltaX:
|
|
861
|
-
C &&
|
|
862
|
-
left:
|
|
859
|
+
}), ot(i, "wheel", (x) => {
|
|
860
|
+
const { deltaX: v, deltaY: h, deltaMode: O } = x;
|
|
861
|
+
C && S && O === 0 && Qt(i) === n && s.scrollBy({
|
|
862
|
+
left: v,
|
|
863
863
|
top: h,
|
|
864
864
|
behavior: "smooth"
|
|
865
|
-
}),
|
|
866
|
-
|
|
865
|
+
}), S = !1, l(Vo, !0), E(() => {
|
|
866
|
+
S = !0, l(Vo);
|
|
867
867
|
}), Ao(x);
|
|
868
868
|
}, {
|
|
869
869
|
H: !1,
|
|
870
870
|
I: !0
|
|
871
|
-
}),
|
|
872
|
-
if (
|
|
873
|
-
const
|
|
874
|
-
k(), H(
|
|
871
|
+
}), ot(p, "transitionstart", (x) => {
|
|
872
|
+
if (_(x)) {
|
|
873
|
+
const v = () => {
|
|
874
|
+
k(), H(v);
|
|
875
875
|
};
|
|
876
|
-
|
|
876
|
+
v();
|
|
877
877
|
}
|
|
878
|
-
}),
|
|
879
|
-
|
|
880
|
-
}),
|
|
878
|
+
}), ot(p, "transitionend transitioncancel", (x) => {
|
|
879
|
+
_(x) && (I(), k());
|
|
880
|
+
}), ot(i, "mousedown", M(ot, c, "click", fo, {
|
|
881
881
|
A: !0,
|
|
882
882
|
I: !0
|
|
883
883
|
}), {
|
|
884
884
|
I: !0
|
|
885
|
-
}),
|
|
885
|
+
}), N(), $, I]);
|
|
886
886
|
};
|
|
887
887
|
}, $s = (t, e, o, n, s, c) => {
|
|
888
888
|
let r, l, a, u, i, f = wt, p = 0;
|
|
889
|
-
const [E, $] = Dt(), [H, I] = Dt(), [k, C] = Dt(100), [
|
|
890
|
-
|
|
891
|
-
},
|
|
892
|
-
if (
|
|
893
|
-
|
|
889
|
+
const [E, $] = Dt(), [H, I] = Dt(), [k, C] = Dt(100), [b, T] = Dt(100), [R, A] = Dt(100), [V, _] = Dt(() => p), [N, S] = Es(t, s, n, Os(e, s, n)), { bt: x, Zt: v, Rt: h } = s, { Ft: O, Bt: z, Nt: F, jt: j } = N, U = (D) => {
|
|
890
|
+
O(no, D, !0), O(no, D, !1);
|
|
891
|
+
}, G = (D, Q) => {
|
|
892
|
+
if (_(), D)
|
|
893
|
+
O(zo);
|
|
894
894
|
else {
|
|
895
|
-
const
|
|
896
|
-
p > 0 && !
|
|
895
|
+
const et = M(O, zo, !0);
|
|
896
|
+
p > 0 && !Q ? V(et) : et();
|
|
897
897
|
}
|
|
898
|
-
}, Z = (D) => D.pointerType === "mouse",
|
|
899
|
-
Z(D) && (u = l, u &&
|
|
900
|
-
},
|
|
898
|
+
}, Z = (D) => D.pointerType === "mouse", nt = (D) => {
|
|
899
|
+
Z(D) && (u = l, u && G(!0));
|
|
900
|
+
}, tt = [C, _, T, A, I, $, () => f(), ot(x, "pointerover", nt, {
|
|
901
901
|
A: !0
|
|
902
|
-
}),
|
|
903
|
-
Z(D) && (u = !1, l &&
|
|
904
|
-
}),
|
|
902
|
+
}), ot(x, "pointerenter", nt), ot(x, "pointerleave", (D) => {
|
|
903
|
+
Z(D) && (u = !1, l && G(!1));
|
|
904
|
+
}), ot(x, "pointermove", (D) => {
|
|
905
905
|
Z(D) && r && E(() => {
|
|
906
|
-
C(),
|
|
907
|
-
r &&
|
|
906
|
+
C(), G(!0), b(() => {
|
|
907
|
+
r && G(!1);
|
|
908
908
|
});
|
|
909
909
|
});
|
|
910
|
-
}),
|
|
910
|
+
}), ot(v, "scroll", (D) => {
|
|
911
911
|
H(() => {
|
|
912
|
-
|
|
913
|
-
a && !u &&
|
|
912
|
+
F(), a && G(!0), k(() => {
|
|
913
|
+
a && !u && G(!1);
|
|
914
914
|
});
|
|
915
|
-
}), c(D),
|
|
915
|
+
}), c(D), j();
|
|
916
916
|
})];
|
|
917
|
-
return [() => M(bt, J(
|
|
918
|
-
const { tn: d, nn: m, sn: g } = it || {}, { Ct: y, dt:
|
|
917
|
+
return [() => M(bt, J(tt, S())), ({ Et: D, Tt: Q, Gt: et, Qt: it }) => {
|
|
918
|
+
const { tn: d, nn: m, sn: g } = it || {}, { Ct: y, dt: w } = et || {}, { N: L } = o, { T: P } = vt(), { k: B, en: q } = n, [rt, at] = D("showNativeOverlaidScrollbars"), [K, lt] = D("scrollbars.theme"), [Nt, W] = D("scrollbars.visibility"), [ct, ut] = D("scrollbars.autoHide"), [dt, st] = D("scrollbars.autoHideSuspend"), [pt] = D("scrollbars.autoHideDelay"), [zt, jt] = D("scrollbars.dragScroll"), [Ct, Vt] = D("scrollbars.clickScroll"), [Ht, Pe] = D("overflow"), kt = w && !Q, Me = q.x || q.y, ne = d || m || y || Q, fe = g || W || Pe, pe = rt && P.x && P.y, se = (ce, Wt, vo) => {
|
|
919
919
|
const yo = ce.includes("scroll") && (Nt === "visible" || Nt === "auto" && Wt === "scroll");
|
|
920
|
-
return
|
|
920
|
+
return O(ls, yo, vo), yo;
|
|
921
921
|
};
|
|
922
|
-
if (p = pt, kt && (dt && Me ? (
|
|
923
|
-
f =
|
|
922
|
+
if (p = pt, kt && (dt && Me ? (U(!1), f(), R(() => {
|
|
923
|
+
f = ot(v, "scroll", M(U, !0), {
|
|
924
924
|
A: !0
|
|
925
925
|
});
|
|
926
|
-
})) :
|
|
927
|
-
const ce = se(Ht.x,
|
|
928
|
-
|
|
926
|
+
})) : U(!0)), at && O(ns, pe), lt && (O(i), O(K, !0), i = K), st && !dt && U(!0), ut && (r = ct === "move", l = ct === "leave", a = ct !== "never", G(!a, !0)), jt && O(us, zt), Vt && O(as, Ct), fe) {
|
|
927
|
+
const ce = se(Ht.x, B.x, !0), Wt = se(Ht.y, B.y, !1);
|
|
928
|
+
O(is, !(ce && Wt));
|
|
929
929
|
}
|
|
930
|
-
ne && (
|
|
931
|
-
}, {},
|
|
930
|
+
ne && (z(), F(), j(), O(No, !q.x, !0), O(No, !q.y, !1), O(ss, L && !h));
|
|
931
|
+
}, {}, N];
|
|
932
932
|
}, As = (t) => {
|
|
933
|
-
const e = vt(), { G: o, L: n } = e, { elements: s } = o(), { host: c, padding: r, viewport: l, content: a } = s, u = re(t), i = u ? {} : t, { elements: f } = i, { host: p, padding: E, viewport: $, content: H } = f || {}, I = u ? t : i.target, k = qe(I, "textarea"), C = I.ownerDocument,
|
|
934
|
-
|
|
935
|
-
},
|
|
933
|
+
const e = vt(), { G: o, L: n } = e, { elements: s } = o(), { host: c, padding: r, viewport: l, content: a } = s, u = re(t), i = u ? {} : t, { elements: f } = i, { host: p, padding: E, viewport: $, content: H } = f || {}, I = u ? t : i.target, k = qe(I, "textarea"), C = I.ownerDocument, b = C.documentElement, T = I === C.body, R = C.defaultView, A = () => C.activeElement, V = (W) => {
|
|
934
|
+
W && W.focus && W.focus();
|
|
935
|
+
}, _ = M(vs, [I]), N = M(En, [I]), S = M(ho, [I]), x = M(Gt, ""), v = M(_, x, l), h = M(N, x, a), O = v($), z = O === I, F = z && T, j = !z && h(H), U = !z && re(O) && O === j, G = U && !!S(a), Z = G ? v() : O, nt = G ? j : h(), D = F ? b : U ? Z : O, Q = k ? _(x, c, p) : I, et = F ? D : Q, it = U ? nt : j, d = {
|
|
936
936
|
gt: I,
|
|
937
|
-
bt:
|
|
937
|
+
bt: et,
|
|
938
938
|
D,
|
|
939
|
-
cn: !
|
|
939
|
+
cn: !z && N(x, r, E),
|
|
940
940
|
wt: it,
|
|
941
|
-
kt:
|
|
942
|
-
Zt:
|
|
943
|
-
rn: T ?
|
|
941
|
+
kt: F ? b : D,
|
|
942
|
+
Zt: F ? C : D,
|
|
943
|
+
rn: T ? b : I,
|
|
944
944
|
ln: R,
|
|
945
945
|
Kt: C,
|
|
946
946
|
St: k,
|
|
947
947
|
Rt: T,
|
|
948
948
|
Dt: u,
|
|
949
|
-
V:
|
|
950
|
-
an:
|
|
951
|
-
yt: (
|
|
952
|
-
Ot: (
|
|
953
|
-
}, m = Lt(d).reduce((
|
|
949
|
+
V: z,
|
|
950
|
+
an: U,
|
|
951
|
+
yt: (W) => Bn(D, z ? mt : Rt, W),
|
|
952
|
+
Ot: (W, ct) => be(D, z ? mt : Rt, W, ct)
|
|
953
|
+
}, m = Lt(d).reduce((W, ct) => {
|
|
954
954
|
const ut = d[ct];
|
|
955
|
-
return J(
|
|
956
|
-
}, []), g = (
|
|
957
|
-
Tt(
|
|
958
|
-
}], rt = k && g(
|
|
959
|
-
let at = k ? y : Ze([
|
|
960
|
-
const K =
|
|
955
|
+
return J(W, ut && re(ut) && !Qt(ut) ? ut : !1);
|
|
956
|
+
}, []), g = (W) => W ? Le(m, W) : null, { gt: y, bt: w, cn: L, D: P, wt: B } = d, q = [() => {
|
|
957
|
+
Tt(w, [mt, Be]), Tt(y, Be), T && Tt(b, [Be, mt]);
|
|
958
|
+
}], rt = k && g(w);
|
|
959
|
+
let at = k ? y : Ze([B, P, L, w, y].find((W) => g(W) === !1));
|
|
960
|
+
const K = F ? y : B || P, lt = M(bt, q);
|
|
961
961
|
return [d, () => {
|
|
962
|
-
const
|
|
962
|
+
const W = A(), ct = (st) => {
|
|
963
963
|
gt(Qt(st), Ze(st)), Pt(st);
|
|
964
|
-
}, ut = (st) => st ?
|
|
964
|
+
}, ut = (st) => st ? ot(st, "focusin focusout focus blur", (pt) => {
|
|
965
965
|
fo(pt), pt.stopImmediatePropagation();
|
|
966
966
|
}, {
|
|
967
967
|
I: !0,
|
|
968
968
|
H: !1
|
|
969
|
-
}) : wt, dt = ut(
|
|
970
|
-
if (yt(
|
|
971
|
-
Co(
|
|
972
|
-
})), gt(K, at), gt(
|
|
969
|
+
}) : wt, dt = ut(W);
|
|
970
|
+
if (yt(w, mt, z ? "viewport" : "host"), yt(L, oo, ""), yt(B, Po, ""), z || (yt(P, Rt, ""), T && ae(b, mt, Kn)), rt && (Co(y, w), J(q, () => {
|
|
971
|
+
Co(w, y), Pt(w);
|
|
972
|
+
})), gt(K, at), gt(w, L), gt(L || w, !z && P), gt(P, B), J(q, [dt, () => {
|
|
973
973
|
const st = A(), pt = ut(st);
|
|
974
|
-
Tt(L, oo), Tt(
|
|
975
|
-
}]), n && !
|
|
974
|
+
Tt(L, oo), Tt(B, Po), Tt(P, [hn, bn, Rt]), g(B) && ct(B), g(P) && ct(P), g(L) && ct(L), V(st), pt();
|
|
975
|
+
}]), n && !z && (ae(P, Rt, yn), J(q, M(Tt, P, Rt))), !z && R.top === R && W === I) {
|
|
976
976
|
const st = "tabindex", pt = De(P, st);
|
|
977
|
-
yt(P, st, "-1"),
|
|
978
|
-
const zt = () => pt ? yt(P, st, pt) : Tt(P, st), jt =
|
|
977
|
+
yt(P, st, "-1"), V(P);
|
|
978
|
+
const zt = () => pt ? yt(P, st, pt) : Tt(P, st), jt = ot(C, "pointerdown keydown", () => {
|
|
979
979
|
zt(), jt();
|
|
980
980
|
});
|
|
981
981
|
J(q, [zt, jt]);
|
|
982
982
|
} else
|
|
983
|
-
|
|
983
|
+
V(W);
|
|
984
984
|
return dt(), at = 0, lt;
|
|
985
985
|
}, lt];
|
|
986
986
|
}, Ls = ({ wt: t }) => ({ Gt: e, un: o, Tt: n }) => {
|
|
@@ -995,28 +995,28 @@ const bs = () => {
|
|
|
995
995
|
}, M(Oo, t, "padding", ""));
|
|
996
996
|
return ({ Et: l, Gt: a, un: u, Tt: i }) => {
|
|
997
997
|
let [f, p] = r(i);
|
|
998
|
-
const { L: E } = vt(), { ht: $, Ht: H, Ct: I } = a || {}, { N: k } = u, [C,
|
|
998
|
+
const { L: E } = vt(), { ht: $, Ht: H, Ct: I } = a || {}, { N: k } = u, [C, b] = l("paddingAbsolute");
|
|
999
999
|
($ || p || (i || H)) && ([f, p] = c(i));
|
|
1000
|
-
const R = !n && (
|
|
1000
|
+
const R = !n && (b || I || p);
|
|
1001
1001
|
if (R) {
|
|
1002
|
-
const A = !C || !e && !E,
|
|
1003
|
-
[Jo]: A && !k ? -
|
|
1004
|
-
[Qo]: A ? -
|
|
1005
|
-
[Ko]: A && k ? -
|
|
1002
|
+
const A = !C || !e && !E, V = f.r + f.l, _ = f.t + f.b, N = {
|
|
1003
|
+
[Jo]: A && !k ? -V : 0,
|
|
1004
|
+
[Qo]: A ? -_ : 0,
|
|
1005
|
+
[Ko]: A && k ? -V : 0,
|
|
1006
1006
|
top: A ? -f.t : 0,
|
|
1007
1007
|
right: A ? k ? -f.r : "auto" : 0,
|
|
1008
1008
|
left: A ? k ? "auto" : -f.l : 0,
|
|
1009
|
-
[Zt]: A && `calc(100% + ${
|
|
1010
|
-
},
|
|
1009
|
+
[Zt]: A && `calc(100% + ${V}px)`
|
|
1010
|
+
}, S = {
|
|
1011
1011
|
[Go]: A ? f.t : 0,
|
|
1012
1012
|
[Yo]: A ? f.r : 0,
|
|
1013
1013
|
[Zo]: A ? f.b : 0,
|
|
1014
1014
|
[qo]: A ? f.l : 0
|
|
1015
1015
|
};
|
|
1016
|
-
te(e || o,
|
|
1016
|
+
te(e || o, N), te(o, S), X(s, {
|
|
1017
1017
|
cn: f,
|
|
1018
1018
|
fn: !A,
|
|
1019
|
-
j: e ?
|
|
1019
|
+
j: e ? S : X({}, N, S)
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
return {
|
|
@@ -1036,23 +1036,23 @@ const bs = () => {
|
|
|
1036
1036
|
x: Jt,
|
|
1037
1037
|
y: Jt
|
|
1038
1038
|
}
|
|
1039
|
-
}, H = (
|
|
1040
|
-
const
|
|
1041
|
-
w: p(
|
|
1042
|
-
h: p(
|
|
1039
|
+
}, H = (S, x) => {
|
|
1040
|
+
const v = ht.devicePixelRatio % 1 !== 0 ? 1 : 0, h = {
|
|
1041
|
+
w: p(S.w - x.w),
|
|
1042
|
+
h: p(S.h - x.h)
|
|
1043
1043
|
};
|
|
1044
1044
|
return {
|
|
1045
|
-
w: h.w >
|
|
1046
|
-
h: h.h >
|
|
1045
|
+
w: h.w > v ? h.w : 0,
|
|
1046
|
+
h: h.h > v ? h.h : 0
|
|
1047
1047
|
};
|
|
1048
|
-
}, [I, k] = xt(E, M(uo, c)), [C,
|
|
1049
|
-
return ({ Et:
|
|
1050
|
-
const { ht:
|
|
1051
|
-
let
|
|
1052
|
-
if (
|
|
1048
|
+
}, [I, k] = xt(E, M(uo, c)), [C, b] = xt(E, M(Je, c)), [T, R] = xt(E), [A, V] = xt(E), [_] = xt($), N = oe(go);
|
|
1049
|
+
return ({ Et: S, Gt: x, un: v, Tt: h }, { _n: O }) => {
|
|
1050
|
+
const { ht: z, Ht: F, Ct: j, zt: U } = x || {}, G = N && N.M(t, e, v, o, S), { q: Z, W: nt, X: tt } = G || {}, [D, Q] = ms(S, o), [et, it] = S("overflow"), d = z || O || F || j || U || Q, m = Ce(et.x), g = Ce(et.y), y = m || g;
|
|
1051
|
+
let w = k(h), L = b(h), P = R(h), B = V(h), q;
|
|
1052
|
+
if (Q && i && l(yn, !D), d) {
|
|
1053
1053
|
y && l(qt, !1);
|
|
1054
|
-
const [Ct, Vt] =
|
|
1055
|
-
Ct && Ct(), (Me || Pe ||
|
|
1054
|
+
const [Ct, Vt] = nt ? nt(q) : [], [Ht, Pe] = w = I(h), [kt, Me] = L = C(h), ne = fn(c), fe = kt, pe = ne;
|
|
1055
|
+
Ct && Ct(), (Me || Pe || Q) && Vt && !D && Z && Z(Vt, kt, Ht);
|
|
1056
1056
|
const se = Xn(u), ce = {
|
|
1057
1057
|
w: p(he(kt.w, fe.w) + Ht.w),
|
|
1058
1058
|
h: p(he(kt.h, fe.h) + Ht.h)
|
|
@@ -1060,19 +1060,19 @@ const bs = () => {
|
|
|
1060
1060
|
w: p((f ? se.w : pe.w + p(ne.w - kt.w)) + Ht.w),
|
|
1061
1061
|
h: p((f ? se.h : pe.h + p(ne.h - kt.h)) + Ht.h)
|
|
1062
1062
|
};
|
|
1063
|
-
|
|
1063
|
+
B = A(Wt), P = T(H(ce, Wt), h);
|
|
1064
1064
|
}
|
|
1065
|
-
const [rt, at] =
|
|
1065
|
+
const [rt, at] = B, [K, lt] = P, [Nt, W] = L, [ct, ut] = w, dt = {
|
|
1066
1066
|
x: K.w > 0,
|
|
1067
1067
|
y: K.h > 0
|
|
1068
1068
|
}, st = m && g && (dt.x || dt.y) || m && dt.x && !dt.y || g && dt.y && !dt.x;
|
|
1069
|
-
if (
|
|
1070
|
-
const Ct = {}, Vt = gs(t, dt,
|
|
1071
|
-
|
|
1069
|
+
if (O || j || U || ut || W || at || lt || it || Q || d) {
|
|
1070
|
+
const Ct = {}, Vt = gs(t, dt, et, Ct);
|
|
1071
|
+
tt && tt(Vt, v, !!Z && Z(Vt, Nt, ct), Ct), r ? (yt(n, hn, Ct[He]), yt(n, bn, Ct[ke])) : te(c, Ct);
|
|
1072
1072
|
}
|
|
1073
1073
|
be(n, mt, vn, st), be(s, oo, Qn, st), r || be(c, Rt, qt, y);
|
|
1074
|
-
const [zt, jt] =
|
|
1075
|
-
return
|
|
1074
|
+
const [zt, jt] = _(Tn(t).k);
|
|
1075
|
+
return X(e, {
|
|
1076
1076
|
k: zt,
|
|
1077
1077
|
Pt: {
|
|
1078
1078
|
x: rt.w,
|
|
@@ -1126,40 +1126,40 @@ const bs = () => {
|
|
|
1126
1126
|
}, { gt: c, D: r, V: l } = e, { L: a, T: u } = vt(), i = !a && (u.x || u.y), f = [Ls(e), Hs(e, s), ks(e, s)];
|
|
1127
1127
|
return [o, (p) => {
|
|
1128
1128
|
const E = {}, H = i && ee(r), I = l ? ae(r, mt, eo) : wt;
|
|
1129
|
-
return
|
|
1130
|
-
|
|
1129
|
+
return Y(f, (k) => {
|
|
1130
|
+
X(E, k(p, E) || {});
|
|
1131
1131
|
}), I(), Mt(r, H), !l && Mt(c, 0), E;
|
|
1132
1132
|
}, s, e, n];
|
|
1133
1133
|
}, Rs = (t, e, o, n) => {
|
|
1134
1134
|
const s = Io(e, {}), [c, r, l, a, u] = Ds(t), [i, f, p] = Ts(a, l, s, (C) => {
|
|
1135
1135
|
k({}, C);
|
|
1136
|
-
}), [E, $, , H] = $s(t, e, p, l, a, n), I = (C) => Lt(C).some((
|
|
1137
|
-
const { dn: T, Tt: R, At: A, vn:
|
|
1138
|
-
Et: Io(e,
|
|
1139
|
-
dn:
|
|
1140
|
-
Tt:
|
|
1136
|
+
}), [E, $, , H] = $s(t, e, p, l, a, n), I = (C) => Lt(C).some((b) => !!C[b]), k = (C, b) => {
|
|
1137
|
+
const { dn: T, Tt: R, At: A, vn: V } = C, _ = T || {}, N = !!R, S = {
|
|
1138
|
+
Et: Io(e, _, N),
|
|
1139
|
+
dn: _,
|
|
1140
|
+
Tt: N
|
|
1141
1141
|
};
|
|
1142
|
-
if (
|
|
1143
|
-
return $(
|
|
1144
|
-
const x =
|
|
1142
|
+
if (V)
|
|
1143
|
+
return $(S), !1;
|
|
1144
|
+
const x = b || f(X({}, S, {
|
|
1145
1145
|
At: A
|
|
1146
|
-
})),
|
|
1146
|
+
})), v = r(X({}, S, {
|
|
1147
1147
|
un: p,
|
|
1148
1148
|
Gt: x
|
|
1149
1149
|
}));
|
|
1150
|
-
$(
|
|
1150
|
+
$(X({}, S, {
|
|
1151
1151
|
Gt: x,
|
|
1152
|
-
Qt:
|
|
1152
|
+
Qt: v
|
|
1153
1153
|
}));
|
|
1154
|
-
const h = I(x),
|
|
1155
|
-
return
|
|
1154
|
+
const h = I(x), O = I(v), z = h || O || !lo(_) || N;
|
|
1155
|
+
return z && o(C, {
|
|
1156
1156
|
Gt: x,
|
|
1157
|
-
Qt:
|
|
1158
|
-
}),
|
|
1157
|
+
Qt: v
|
|
1158
|
+
}), z;
|
|
1159
1159
|
};
|
|
1160
1160
|
return [() => {
|
|
1161
|
-
const { rn: C, D:
|
|
1162
|
-
return Mt(
|
|
1161
|
+
const { rn: C, D: b } = a, T = ee(C), R = [i(), c(), E()];
|
|
1162
|
+
return Mt(b, T), M(bt, R);
|
|
1163
1163
|
}, k, () => ({
|
|
1164
1164
|
hn: p,
|
|
1165
1165
|
pn: l
|
|
@@ -1171,96 +1171,96 @@ const bs = () => {
|
|
|
1171
1171
|
const { nt: n } = vt(), s = re(t), c = s ? t : t.target, r = On(c);
|
|
1172
1172
|
if (e && !r) {
|
|
1173
1173
|
let l = !1;
|
|
1174
|
-
const a = [], u = {}, i = (
|
|
1175
|
-
const x = cn(
|
|
1176
|
-
return
|
|
1177
|
-
}, f =
|
|
1178
|
-
k(
|
|
1179
|
-
}, [
|
|
1180
|
-
const { ht:
|
|
1181
|
-
C("updated", [
|
|
1174
|
+
const a = [], u = {}, i = (S) => {
|
|
1175
|
+
const x = cn(S), v = oe(fs);
|
|
1176
|
+
return v ? v(x, !0) : x;
|
|
1177
|
+
}, f = X({}, n(), i(e)), [p, E, $] = to(), [H, I, k] = to(o), C = (S, x) => {
|
|
1178
|
+
k(S, x), $(S, x);
|
|
1179
|
+
}, [b, T, R, A, V] = Rs(t, f, ({ dn: S, Tt: x }, { Gt: v, Qt: h }) => {
|
|
1180
|
+
const { ht: O, Ct: z, xt: F, Ht: j, It: U, dt: G } = v, { tn: Z, nn: nt, sn: tt } = h;
|
|
1181
|
+
C("updated", [N, {
|
|
1182
1182
|
updateHints: {
|
|
1183
|
-
sizeChanged: !!
|
|
1184
|
-
directionChanged: !!
|
|
1185
|
-
heightIntrinsicChanged: !!
|
|
1183
|
+
sizeChanged: !!O,
|
|
1184
|
+
directionChanged: !!z,
|
|
1185
|
+
heightIntrinsicChanged: !!F,
|
|
1186
1186
|
overflowEdgeChanged: !!Z,
|
|
1187
|
-
overflowAmountChanged: !!
|
|
1188
|
-
overflowStyleChanged: !!
|
|
1189
|
-
contentMutation: !!
|
|
1190
|
-
hostMutation: !!
|
|
1191
|
-
appear: !!
|
|
1187
|
+
overflowAmountChanged: !!nt,
|
|
1188
|
+
overflowStyleChanged: !!tt,
|
|
1189
|
+
contentMutation: !!j,
|
|
1190
|
+
hostMutation: !!U,
|
|
1191
|
+
appear: !!G
|
|
1192
1192
|
},
|
|
1193
|
-
changedOptions:
|
|
1193
|
+
changedOptions: S || {},
|
|
1194
1194
|
force: !!x
|
|
1195
1195
|
}]);
|
|
1196
|
-
}, (
|
|
1197
|
-
ws(c), bt(a), l = !0, C("destroyed", [
|
|
1198
|
-
},
|
|
1199
|
-
options(
|
|
1200
|
-
if (
|
|
1201
|
-
const
|
|
1202
|
-
lo(h) || (
|
|
1196
|
+
}, (S) => C("scroll", [N, S])), _ = (S) => {
|
|
1197
|
+
ws(c), bt(a), l = !0, C("destroyed", [N, S]), E(), I();
|
|
1198
|
+
}, N = {
|
|
1199
|
+
options(S, x) {
|
|
1200
|
+
if (S) {
|
|
1201
|
+
const v = x ? n() : {}, h = mn(f, X(v, i(S)));
|
|
1202
|
+
lo(h) || (X(f, h), T({
|
|
1203
1203
|
dn: h
|
|
1204
1204
|
}));
|
|
1205
1205
|
}
|
|
1206
|
-
return
|
|
1206
|
+
return X({}, f);
|
|
1207
1207
|
},
|
|
1208
1208
|
on: H,
|
|
1209
|
-
off: (
|
|
1210
|
-
|
|
1209
|
+
off: (S, x) => {
|
|
1210
|
+
S && x && I(S, x);
|
|
1211
1211
|
},
|
|
1212
1212
|
state() {
|
|
1213
|
-
const { hn:
|
|
1214
|
-
return
|
|
1213
|
+
const { hn: S, pn: x } = R(), { N: v } = S, { Pt: h, Lt: O, k: z, en: F, cn: j, fn: U } = x;
|
|
1214
|
+
return X({}, {
|
|
1215
1215
|
overflowEdge: h,
|
|
1216
|
-
overflowAmount:
|
|
1217
|
-
overflowStyle:
|
|
1218
|
-
hasOverflow:
|
|
1219
|
-
padding:
|
|
1220
|
-
paddingAbsolute:
|
|
1221
|
-
directionRTL:
|
|
1216
|
+
overflowAmount: O,
|
|
1217
|
+
overflowStyle: z,
|
|
1218
|
+
hasOverflow: F,
|
|
1219
|
+
padding: j,
|
|
1220
|
+
paddingAbsolute: U,
|
|
1221
|
+
directionRTL: v,
|
|
1222
1222
|
destroyed: l
|
|
1223
1223
|
});
|
|
1224
1224
|
},
|
|
1225
1225
|
elements() {
|
|
1226
|
-
const { gt:
|
|
1227
|
-
const { Vt:
|
|
1226
|
+
const { gt: S, bt: x, cn: v, D: h, wt: O, kt: z, Zt: F } = A.gn, { qt: j, Jt: U } = A.bn, G = (nt) => {
|
|
1227
|
+
const { Vt: tt, Mt: D, Ut: Q } = nt;
|
|
1228
1228
|
return {
|
|
1229
|
-
scrollbar:
|
|
1229
|
+
scrollbar: Q,
|
|
1230
1230
|
track: D,
|
|
1231
|
-
handle:
|
|
1231
|
+
handle: tt
|
|
1232
1232
|
};
|
|
1233
|
-
}, Z = (
|
|
1234
|
-
const { Wt:
|
|
1235
|
-
return
|
|
1233
|
+
}, Z = (nt) => {
|
|
1234
|
+
const { Wt: tt, Xt: D } = nt, Q = G(tt[0]);
|
|
1235
|
+
return X({}, Q, {
|
|
1236
1236
|
clone: () => {
|
|
1237
|
-
const
|
|
1237
|
+
const et = G(D());
|
|
1238
1238
|
return T({
|
|
1239
1239
|
vn: !0
|
|
1240
|
-
}),
|
|
1240
|
+
}), et;
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
1243
|
};
|
|
1244
|
-
return
|
|
1245
|
-
target:
|
|
1244
|
+
return X({}, {
|
|
1245
|
+
target: S,
|
|
1246
1246
|
host: x,
|
|
1247
|
-
padding:
|
|
1247
|
+
padding: v || h,
|
|
1248
1248
|
viewport: h,
|
|
1249
|
-
content:
|
|
1250
|
-
scrollOffsetElement:
|
|
1251
|
-
scrollEventElement:
|
|
1252
|
-
scrollbarHorizontal: Z(
|
|
1253
|
-
scrollbarVertical: Z(
|
|
1249
|
+
content: O || h,
|
|
1250
|
+
scrollOffsetElement: z,
|
|
1251
|
+
scrollEventElement: F,
|
|
1252
|
+
scrollbarHorizontal: Z(j),
|
|
1253
|
+
scrollbarVertical: Z(U)
|
|
1254
1254
|
});
|
|
1255
1255
|
},
|
|
1256
|
-
update: (
|
|
1257
|
-
Tt:
|
|
1256
|
+
update: (S) => T({
|
|
1257
|
+
Tt: S,
|
|
1258
1258
|
At: !0
|
|
1259
1259
|
}),
|
|
1260
|
-
destroy: M(
|
|
1261
|
-
plugin: (
|
|
1260
|
+
destroy: M(_, !1),
|
|
1261
|
+
plugin: (S) => u[Lt(S)[0]]
|
|
1262
1262
|
};
|
|
1263
|
-
return J(a, [
|
|
1263
|
+
return J(a, [V]), xs(c, N), Cn(wn, Ft, [N, p, u]), ys(A.gn.Rt, !s && t.cancel) ? (_(!0), N) : (J(a, b()), C("initialized", [N]), N.update(!0), N);
|
|
1264
1264
|
}
|
|
1265
1265
|
return r;
|
|
1266
1266
|
};
|
|
@@ -1274,7 +1274,7 @@ Ft.valid = (t) => {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
Ft.env = () => {
|
|
1276
1276
|
const { P: t, T: e, L: o, K: n, J: s, st: c, et: r, G: l, tt: a, nt: u, ot: i } = vt();
|
|
1277
|
-
return
|
|
1277
|
+
return X({}, {
|
|
1278
1278
|
scrollbarsSize: t,
|
|
1279
1279
|
scrollbarsOverlaid: e,
|
|
1280
1280
|
scrollbarsHiding: o,
|
|
@@ -1292,7 +1292,7 @@ const An = so(999999), Is = () => {
|
|
|
1292
1292
|
kn("das-ui-text", [
|
|
1293
1293
|
{
|
|
1294
1294
|
className: ".das-ui-text-context",
|
|
1295
|
-
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
1295
|
+
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap", "letter-spacing": "-0.1px" }
|
|
1296
1296
|
},
|
|
1297
1297
|
{
|
|
1298
1298
|
className: "#das-ui-text-tooltip",
|
|
@@ -1403,43 +1403,43 @@ const ve = () => {
|
|
|
1403
1403
|
l.dataset.customContent = r;
|
|
1404
1404
|
let u = !0;
|
|
1405
1405
|
a.contains("das-ui-text-context") || a.add("das-ui-text-context"), l.onmouseenter = (i) => {
|
|
1406
|
-
const p = i.composedPath()[0], { x: E, y: $, width: H, height: I, top: k, left: C, bottom:
|
|
1406
|
+
const p = i.composedPath()[0], { x: E, y: $, width: H, height: I, top: k, left: C, bottom: b } = p.getBoundingClientRect(), T = window.getComputedStyle(p, null), R = parseFloat(T.getPropertyValue("padding-left"));
|
|
1407
1407
|
An.value = In().nextZIndex();
|
|
1408
1408
|
const A = document.createRange();
|
|
1409
1409
|
A.setStart(l, 0);
|
|
1410
|
-
let
|
|
1411
|
-
A.setEnd(l,
|
|
1412
|
-
const
|
|
1413
|
-
|
|
1414
|
-
let
|
|
1415
|
-
if (!
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1422
|
-
if (
|
|
1423
|
-
|
|
1424
|
-
const
|
|
1410
|
+
let V = s ? l.childNodes.length : 1;
|
|
1411
|
+
A.setEnd(l, V);
|
|
1412
|
+
const _ = parseFloat(T.paddingRight), N = parseFloat(T.paddingLeft), S = Math.round(A.getBoundingClientRect().width), x = Math.round(l.getBoundingClientRect().width) - _ - N;
|
|
1413
|
+
S > x && setTimeout(async () => {
|
|
1414
|
+
let v = document.getElementById("das-ui-text-tooltip");
|
|
1415
|
+
if (!v) {
|
|
1416
|
+
v = document.createElement("div"), v.style.cssText = `left: ${E + R}px;`, v.setAttribute("id", "das-ui-text-tooltip");
|
|
1417
|
+
const F = document.createElement("div");
|
|
1418
|
+
F.setAttribute("id", "das-ui-text-tooltip-context"), F && (F.style.wordBreak = Ne.value == "zh-CN" ? "break-all" : "normal"), F.addEventListener("mouseover", Ln);
|
|
1419
|
+
const j = document.createElement("div");
|
|
1420
|
+
j.setAttribute("id", "tooltip-scroll-content"), j && (j.style.width = Ne.value == "zh-CN" ? "100%" : "max-content"), F.appendChild(j), v.appendChild(F), document.body.appendChild(v);
|
|
1421
|
+
const U = "os-theme-dark das-scrollbar", G = document.getElementById("tooltip-scroll-content");
|
|
1422
|
+
if (G) {
|
|
1423
|
+
G.innerHTML = l.dataset.customContent || l.innerHTML;
|
|
1424
|
+
const Z = {
|
|
1425
1425
|
scrollbars: {
|
|
1426
1426
|
autoHide: "leave",
|
|
1427
1427
|
autoHideDelay: 0,
|
|
1428
|
-
theme:
|
|
1428
|
+
theme: U
|
|
1429
1429
|
},
|
|
1430
1430
|
overflow: { y: "scroll" }
|
|
1431
1431
|
};
|
|
1432
1432
|
l.dataset.customContent ? Hn.value = setTimeout(() => {
|
|
1433
|
-
Ft(
|
|
1434
|
-
}, 10) : Ft(
|
|
1433
|
+
Ft(F, Z);
|
|
1434
|
+
}, 10) : Ft(F, Z);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
const
|
|
1438
|
-
|
|
1439
|
-
let
|
|
1440
|
-
|
|
1437
|
+
const h = document.createElement("span");
|
|
1438
|
+
h.textContent = "", h.style.position = "absolute", h.style.height = "12px", h.style.width = "8px", h.style.backgroundColor = Et("--das-ui-text-tooltip-bgcolor").value, h.style.boxShadow = "3px 3px 5px rgba(0, 0, 0, 0.15)", h.style.borderColor = Et("--das-ui-dropdown-bgff-color").value, h.style.borderRadius = "0px", h.style.zIndex = "-1", h.style.transform = "rotate(45deg)", h.style.left = "10px", v.appendChild(h);
|
|
1439
|
+
let O = l.dataset.customContent && Ne.value != "zh-CN" ? v.offsetHeight - 10 : v.offsetHeight, z = $ - 10 - O;
|
|
1440
|
+
z * 1 < 0 ? (v.style.top = `${b + 5}px`, h.style.top = "-4px", h.style.boxShadow = "3px -3px 5px rgba(0, 0, 0, 0.15)", v.style.boxShadow = `0px -4px 10px 0px ${Et("--das-ui-text-tooltip-shadow").value}`) : (v.style.top = `${z}px`, h.style.bottom = "-4px", v.style.boxShadow = `0px 4px 10px 0px ${Et("--das-ui-text-tooltip-shadow").value}`), v.onmouseenter = (F) => {
|
|
1441
1441
|
u = !1;
|
|
1442
|
-
},
|
|
1442
|
+
}, v.onmouseleave = (F) => {
|
|
1443
1443
|
u = !0, setTimeout(() => {
|
|
1444
1444
|
ve();
|
|
1445
1445
|
}, 200);
|