@thednp/shorty 2.0.0-alpha16 → 2.0.0-alpha17
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/README.md +3 -3
- package/dist/shorty.cjs +1 -1
- package/dist/shorty.cjs.map +1 -1
- package/dist/shorty.d.ts +11 -0
- package/dist/shorty.js +1 -1
- package/dist/shorty.js.map +1 -1
- package/dist/shorty.mjs +120 -119
- package/dist/shorty.mjs.map +1 -1
- package/package.json +66 -66
- package/src/index.ts +2 -0
- package/src/misc/ObjectFromEntries.ts +11 -0
package/dist/shorty.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const pe = "aria-checked",
|
|
1
|
+
const pe = "aria-checked", me = "aria-description", fe = "aria-describedby", ge = "aria-expanded", ve = "aria-haspopup", Ee = "aria-hidden", be = "aria-label", he = "aria-labelledby", ye = "aria-modal", we = "aria-pressed", Ae = "aria-selected", Se = "aria-valuemin", Me = "aria-valuemax", Ne = "aria-valuenow", ke = "aria-valuetext", q = "abort", G = "beforeunload", J = "blur", K = "change", X = "contextmenu", P = "DOMContentLoaded", Y = "DOMMouseScroll", Z = "error", $ = "focus", _ = "focusin", tt = "focusout", et = "gesturechange", nt = "gestureend", ot = "gesturestart", st = "keydown", ct = "keypress", rt = "keyup", at = "load", it = "click", ut = "dblclick", lt = "mousedown", dt = "mouseup", pt = "hover", mt = "mouseenter", ft = "mouseleave", gt = "mousein", vt = "mouseout", Et = "mouseover", bt = "mousemove", ht = "mousewheel", yt = "move", wt = "orientationchange", At = "pointercancel", St = "pointerdown", Mt = "pointerleave", Nt = "pointermove", kt = "pointerup", Tt = "readystatechange", Dt = "reset", Ct = "resize", Ot = "select", Lt = "selectend", It = "selectstart", zt = "scroll", xt = "submit", Vt = "touchstart", Bt = "touchmove", Ht = "touchcancel", Pt = "touchend", Ft = "unload", Te = {
|
|
2
2
|
DOMContentLoaded: P,
|
|
3
3
|
DOMMouseScroll: Y,
|
|
4
|
-
abort:
|
|
5
|
-
beforeunload:
|
|
4
|
+
abort: q,
|
|
5
|
+
beforeunload: G,
|
|
6
6
|
blur: J,
|
|
7
7
|
change: K,
|
|
8
8
|
click: it,
|
|
@@ -24,8 +24,8 @@ const pe = "aria-checked", fe = "aria-description", me = "aria-describedby", ge
|
|
|
24
24
|
mousemove: bt,
|
|
25
25
|
mousein: gt,
|
|
26
26
|
mouseout: vt,
|
|
27
|
-
mouseenter:
|
|
28
|
-
mouseleave:
|
|
27
|
+
mouseenter: mt,
|
|
28
|
+
mouseleave: ft,
|
|
29
29
|
mouseover: Et,
|
|
30
30
|
mouseup: dt,
|
|
31
31
|
mousewheel: ht,
|
|
@@ -40,16 +40,16 @@ const pe = "aria-checked", fe = "aria-description", me = "aria-describedby", ge
|
|
|
40
40
|
reset: Dt,
|
|
41
41
|
resize: Ct,
|
|
42
42
|
scroll: zt,
|
|
43
|
-
select:
|
|
44
|
-
selectend:
|
|
43
|
+
select: Ot,
|
|
44
|
+
selectend: Lt,
|
|
45
45
|
selectstart: It,
|
|
46
46
|
submit: xt,
|
|
47
47
|
touchcancel: Ht,
|
|
48
48
|
touchend: Pt,
|
|
49
49
|
touchmove: Bt,
|
|
50
50
|
touchstart: Vt,
|
|
51
|
-
unload:
|
|
52
|
-
}, De = "drag", Ce = "dragstart",
|
|
51
|
+
unload: Ft
|
|
52
|
+
}, De = "drag", Ce = "dragstart", Oe = "dragenter", Le = "dragleave", Ie = "dragover", ze = "dragend", xe = "loadstart", Ve = {
|
|
53
53
|
start: "mousedown",
|
|
54
54
|
end: "mouseup",
|
|
55
55
|
move: "mousemove",
|
|
@@ -62,7 +62,7 @@ const pe = "aria-checked", fe = "aria-description", me = "aria-describedby", ge
|
|
|
62
62
|
end: "touchend",
|
|
63
63
|
move: "touchmove",
|
|
64
64
|
cancel: "touchcancel"
|
|
65
|
-
},
|
|
65
|
+
}, Fe = { in: "focusin", out: "focusout" }, Ue = {
|
|
66
66
|
Backspace: "Backspace",
|
|
67
67
|
// 8
|
|
68
68
|
Tab: "Tab",
|
|
@@ -101,7 +101,7 @@ const pe = "aria-checked", fe = "aria-description", me = "aria-describedby", ge
|
|
|
101
101
|
// 93
|
|
102
102
|
ScrollLock: "ScrollLock"
|
|
103
103
|
// 145
|
|
104
|
-
}, We = "Alt", Re = "ArrowDown", Qe = "ArrowUp",
|
|
104
|
+
}, We = "Alt", Re = "ArrowDown", Qe = "ArrowUp", je = "ArrowLeft", qe = "ArrowRight", Ge = "Backspace", Je = "CapsLock", Ke = "Control", Xe = "Delete", Ye = "Enter", Ze = "Escape", $e = "Insert", _e = "Meta", tn = "Pause", en = "ScrollLock", nn = "Shift", on = "Space", sn = "Tab", Ut = "animationDuration", Wt = "animationDelay", F = "animationName", D = "animationend", Rt = "transitionDuration", Qt = "transitionDelay", C = "transitionend", U = "transitionProperty", cn = "addEventListener", rn = "removeEventListener", an = {
|
|
105
105
|
linear: "linear",
|
|
106
106
|
easingSinusoidalIn: "cubic-bezier(0.47,0,0.745,0.715)",
|
|
107
107
|
easingSinusoidalOut: "cubic-bezier(0.39,0.575,0.565,1)",
|
|
@@ -127,16 +127,16 @@ const pe = "aria-checked", fe = "aria-description", me = "aria-describedby", ge
|
|
|
127
127
|
easingBackIn: "cubic-bezier(0.6,-0.28,0.735,0.045)",
|
|
128
128
|
easingBackOut: "cubic-bezier(0.175,0.885,0.32,1.275)",
|
|
129
129
|
easingBackInOut: "cubic-bezier(0.68,-0.55,0.265,1.55)"
|
|
130
|
-
}, un = "offsetHeight", ln = "offsetWidth", dn = "scrollHeight", pn = "scrollWidth",
|
|
131
|
-
let
|
|
132
|
-
A ?
|
|
133
|
-
const
|
|
130
|
+
}, un = "offsetHeight", ln = "offsetWidth", dn = "scrollHeight", pn = "scrollWidth", mn = "tabindex", jt = navigator.userAgentData, A = jt, { userAgent: qt } = navigator, S = qt, z = /iPhone|iPad|iPod|Android/i;
|
|
131
|
+
let O = !1;
|
|
132
|
+
A ? O = A.brands.some((t) => z.test(t.brand)) : O = z.test(S);
|
|
133
|
+
const fn = O, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.brand)) : (
|
|
134
134
|
/* istanbul ignore next */
|
|
135
135
|
x.test(S)
|
|
136
136
|
), vn = S ? S.includes("Firefox") : (
|
|
137
137
|
/* istanbul ignore next */
|
|
138
138
|
!1
|
|
139
|
-
), { head: M } = document, En = ["webkitPerspective", "perspective"].some((t) => t in M.style),
|
|
139
|
+
), { head: M } = document, En = ["webkitPerspective", "perspective"].some((t) => t in M.style), Gt = (t, e, n, o) => {
|
|
140
140
|
const s = o || !1;
|
|
141
141
|
t.addEventListener(e, n, s);
|
|
142
142
|
}, Jt = (t, e, n, o) => {
|
|
@@ -146,7 +146,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
146
146
|
const s = (r) => {
|
|
147
147
|
(r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Jt(t, e, s, o));
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
Gt(t, e, s, o);
|
|
150
150
|
}, Xt = () => {
|
|
151
151
|
}, bn = (() => {
|
|
152
152
|
let t = !1;
|
|
@@ -159,11 +159,11 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
159
159
|
}
|
|
160
160
|
return t;
|
|
161
161
|
})(), hn = ["webkitTransform", "transform"].some((t) => t in M.style), yn = "ontouchstart" in window || /* istanbul ignore next */
|
|
162
|
-
"msMaxTouchPoints" in navigator, wn = ["webkitAnimation", "animation"].some((t) => t in M.style), An = ["webkitTransition", "transition"].some((t) => t in M.style), Yt = (t, e) => t.getAttribute(e), Sn = (t, e, n) => e.getAttributeNS(t, n), Mn = (t, e) => t.hasAttribute(e), Nn = (t, e, n) => e.hasAttributeNS(t, n), kn = (t, e, n) => t.setAttribute(e, n), Tn = (t, e, n, o) => e.setAttributeNS(t, n, o), Dn = (t, e) => t.removeAttribute(e), Cn = (t, e, n) => e.removeAttributeNS(t, n),
|
|
162
|
+
"msMaxTouchPoints" in navigator, wn = ["webkitAnimation", "animation"].some((t) => t in M.style), An = ["webkitTransition", "transition"].some((t) => t in M.style), Yt = (t, e) => t.getAttribute(e), Sn = (t, e, n) => e.getAttributeNS(t, n), Mn = (t, e) => t.hasAttribute(e), Nn = (t, e, n) => e.hasAttributeNS(t, n), kn = (t, e, n) => t.setAttribute(e, n), Tn = (t, e, n, o) => e.setAttributeNS(t, n, o), Dn = (t, e) => t.removeAttribute(e), Cn = (t, e, n) => e.removeAttributeNS(t, n), On = (t, ...e) => {
|
|
163
163
|
t.classList.add(...e);
|
|
164
|
-
},
|
|
164
|
+
}, Ln = (t, ...e) => {
|
|
165
165
|
t.classList.remove(...e);
|
|
166
|
-
}, In = (t, e) => t.classList.contains(e), { body: zn } = document, { documentElement: xn } = document, Vn = (t) => Array.from(t), v = (t) => t != null && typeof t == "object" || !1, i = (t) => v(t) && typeof t.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some((e) => t.nodeType === e) || !1, u = (t) => i(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(),
|
|
166
|
+
}, In = (t, e) => t.classList.contains(e), { body: zn } = document, { documentElement: xn } = document, Vn = (t) => Array.from(t), v = (t) => t != null && typeof t == "object" || !1, i = (t) => v(t) && typeof t.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some((e) => t.nodeType === e) || !1, u = (t) => i(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {
|
|
167
167
|
data: E,
|
|
168
168
|
/**
|
|
169
169
|
* Sets web components data.
|
|
@@ -194,7 +194,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
194
194
|
get: (t, e) => {
|
|
195
195
|
if (!u(t) || !e)
|
|
196
196
|
return null;
|
|
197
|
-
const n =
|
|
197
|
+
const n = L.getAllFor(e);
|
|
198
198
|
return t && n && n.get(t) || null;
|
|
199
199
|
},
|
|
200
200
|
/**
|
|
@@ -204,10 +204,10 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
204
204
|
* @param component the component's name or a unique key
|
|
205
205
|
*/
|
|
206
206
|
remove: (t, e) => {
|
|
207
|
-
const n =
|
|
207
|
+
const n = L.getAllFor(e);
|
|
208
208
|
!n || !u(t) || (n.delete(t), n.size === 0 && E.delete(e));
|
|
209
209
|
}
|
|
210
|
-
}, Bn = (t, e) =>
|
|
210
|
+
}, Bn = (t, e) => L.get(t, e), N = (t) => typeof t == "string" || !1, W = (t) => v(t) && t.constructor.name === "Window" || !1, R = (t) => i(t) && t.nodeType === 9 || !1, d = (t) => W(t) ? t.document : R(t) ? t : i(t) ? t.ownerDocument : window.document, k = (t, ...e) => Object.assign(t, ...e), Zt = (t) => {
|
|
211
211
|
if (!t)
|
|
212
212
|
return;
|
|
213
213
|
if (N(t))
|
|
@@ -231,7 +231,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
231
231
|
const n = getComputedStyle(t), o = e.replace("webkit", "Webkit").replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
232
232
|
return n.getPropertyValue(o);
|
|
233
233
|
}, _t = (t) => {
|
|
234
|
-
const e = g(t,
|
|
234
|
+
const e = g(t, F), n = g(t, Wt), o = n.includes("ms") ? (
|
|
235
235
|
/* istanbul ignore next */
|
|
236
236
|
1
|
|
237
237
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
@@ -240,7 +240,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
240
240
|
0
|
|
241
241
|
) : s;
|
|
242
242
|
}, te = (t) => {
|
|
243
|
-
const e = g(t,
|
|
243
|
+
const e = g(t, F), n = g(t, Ut), o = n.includes("ms") ? (
|
|
244
244
|
/* istanbul ignore next */
|
|
245
245
|
1
|
|
246
246
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
@@ -261,7 +261,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
261
261
|
} else
|
|
262
262
|
e.apply(t, [o]);
|
|
263
263
|
}, ee = (t) => {
|
|
264
|
-
const e = g(t,
|
|
264
|
+
const e = g(t, U), n = g(t, Qt), o = n.includes("ms") ? (
|
|
265
265
|
/* istanbul ignore next */
|
|
266
266
|
1
|
|
267
267
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : (
|
|
@@ -273,7 +273,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
273
273
|
0
|
|
274
274
|
) : s;
|
|
275
275
|
}, ne = (t) => {
|
|
276
|
-
const e = g(t,
|
|
276
|
+
const e = g(t, U), n = g(t, Rt), o = n.includes("ms") ? (
|
|
277
277
|
/* istanbul ignore next */
|
|
278
278
|
1
|
|
279
279
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : (
|
|
@@ -284,7 +284,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
284
284
|
/* istanbul ignore next */
|
|
285
285
|
0
|
|
286
286
|
) : s;
|
|
287
|
-
},
|
|
287
|
+
}, Fn = (t, e) => {
|
|
288
288
|
let n = 0;
|
|
289
289
|
const o = new Event(C), s = ne(t), r = ee(t);
|
|
290
290
|
if (s) {
|
|
@@ -296,23 +296,23 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
296
296
|
}, s + r + 17);
|
|
297
297
|
} else
|
|
298
298
|
e.apply(t, [o]);
|
|
299
|
-
},
|
|
299
|
+
}, Un = (t) => Float32Array.from(Array.from(t)), Wn = (t) => Float64Array.from(Array.from(t)), Rn = (t, e) => t.focus(e), V = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, w = (t) => Object.entries(t), oe = (t) => t.toLowerCase(), Qn = (t, e, n, o) => {
|
|
300
300
|
const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = "title";
|
|
301
|
-
return w(r).forEach(([c,
|
|
302
|
-
const y = o && typeof c == "string" && c.includes(o) ? c.replace(o, "").replace(/[A-Z]/g, (
|
|
303
|
-
l[y] = V(
|
|
304
|
-
}), w(s).forEach(([c,
|
|
305
|
-
s[c] = V(
|
|
306
|
-
}), w(e).forEach(([c,
|
|
307
|
-
c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? Yt(t, p) :
|
|
301
|
+
return w(r).forEach(([c, m]) => {
|
|
302
|
+
const y = o && typeof c == "string" && c.includes(o) ? c.replace(o, "").replace(/[A-Z]/g, (j) => oe(j)) : c;
|
|
303
|
+
l[y] = V(m);
|
|
304
|
+
}), w(s).forEach(([c, m]) => {
|
|
305
|
+
s[c] = V(m);
|
|
306
|
+
}), w(e).forEach(([c, m]) => {
|
|
307
|
+
c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? Yt(t, p) : m;
|
|
308
308
|
}), a;
|
|
309
|
-
},
|
|
309
|
+
}, jn = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), qn = (t) => Object.keys(t), Gn = (t) => Object.values(t), Jn = (t) => Object.fromEntries(t), Kn = (t, e) => {
|
|
310
310
|
const n = new CustomEvent(t, {
|
|
311
311
|
cancelable: !0,
|
|
312
312
|
bubbles: !0
|
|
313
313
|
});
|
|
314
314
|
return v(e) && k(n, e), n;
|
|
315
|
-
},
|
|
315
|
+
}, Xn = { passive: !0 }, Yn = (t) => t.offsetHeight, Zn = (t, e) => {
|
|
316
316
|
w(e).forEach(([n, o]) => {
|
|
317
317
|
if (o && N(n) && n.includes("--"))
|
|
318
318
|
t.style.setProperty(n, o);
|
|
@@ -321,7 +321,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
321
321
|
s[n] = o, k(t.style, s);
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
|
-
}, I = (t) => v(t) && t.constructor.name === "Map" || !1, se = (t) => typeof t == "number" || !1,
|
|
324
|
+
}, I = (t) => v(t) && t.constructor.name === "Map" || !1, se = (t) => typeof t == "number" || !1, f = /* @__PURE__ */ new Map(), $n = {
|
|
325
325
|
/**
|
|
326
326
|
* Sets a new timeout timer for an element, or element -> key association.
|
|
327
327
|
*
|
|
@@ -331,7 +331,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
331
331
|
* @param key a unique key
|
|
332
332
|
*/
|
|
333
333
|
set: (t, e, n, o) => {
|
|
334
|
-
u(t) && (o && o.length ? (
|
|
334
|
+
u(t) && (o && o.length ? (f.has(t) || f.set(t, /* @__PURE__ */ new Map()), f.get(t).set(o, setTimeout(e, n))) : f.set(t, setTimeout(e, n)));
|
|
335
335
|
},
|
|
336
336
|
/**
|
|
337
337
|
* Returns the timer associated with the target.
|
|
@@ -343,7 +343,7 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
343
343
|
get: (t, e) => {
|
|
344
344
|
if (!u(t))
|
|
345
345
|
return null;
|
|
346
|
-
const n =
|
|
346
|
+
const n = f.get(t);
|
|
347
347
|
return e && n && I(n) ? n.get(e) || /* istanbul ignore next */
|
|
348
348
|
null : se(n) ? n : null;
|
|
349
349
|
},
|
|
@@ -356,15 +356,15 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
356
356
|
clear: (t, e) => {
|
|
357
357
|
if (!u(t))
|
|
358
358
|
return;
|
|
359
|
-
const n =
|
|
360
|
-
e && e.length && I(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 &&
|
|
359
|
+
const n = f.get(t);
|
|
360
|
+
e && e.length && I(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && f.delete(t)) : (clearTimeout(n), f.delete(t));
|
|
361
361
|
}
|
|
362
|
-
},
|
|
362
|
+
}, _n = (t) => t.toUpperCase(), h = (t, e) => {
|
|
363
363
|
const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();
|
|
364
364
|
let p = 1, c = 1;
|
|
365
365
|
if (e && u(t)) {
|
|
366
|
-
const { offsetWidth:
|
|
367
|
-
p =
|
|
366
|
+
const { offsetWidth: m, offsetHeight: y } = t;
|
|
367
|
+
p = m > 0 ? Math.round(n) / m : (
|
|
368
368
|
/* istanbul ignore next */
|
|
369
369
|
1
|
|
370
370
|
), c = y > 0 ? Math.round(o) / y : (
|
|
@@ -382,10 +382,10 @@ const mn = L, x = /(iPhone|iPod|iPad)/, gn = A ? A.brands.some((t) => x.test(t.b
|
|
|
382
382
|
x: l / p,
|
|
383
383
|
y: s / c
|
|
384
384
|
};
|
|
385
|
-
},
|
|
385
|
+
}, to = (t) => d(t).body, T = (t) => d(t).documentElement, eo = (t) => d(t).head, no = (t) => {
|
|
386
386
|
const e = W(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;
|
|
387
387
|
return { x: n, y: o };
|
|
388
|
-
}, ce = (t) => i(t) && t.constructor.name === "ShadowRoot" || !1,
|
|
388
|
+
}, ce = (t) => i(t) && t.constructor.name === "ShadowRoot" || !1, oo = (t) => t.nodeName === "HTML" ? t : u(t) && t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
389
389
|
i(t) && t.parentNode || // DOM Element detected
|
|
390
390
|
ce(t) && t.host || // ShadowRoot detected
|
|
391
391
|
T(t), re = (t) => {
|
|
@@ -393,7 +393,7 @@ T(t), re = (t) => {
|
|
|
393
393
|
return !1;
|
|
394
394
|
const { width: e, height: n } = h(t), { offsetWidth: o, offsetHeight: s } = t;
|
|
395
395
|
return Math.round(e) !== o || Math.round(n) !== s;
|
|
396
|
-
},
|
|
396
|
+
}, so = (t, e, n) => {
|
|
397
397
|
const o = u(e), s = h(t, o && re(e)), r = { x: 0, y: 0 };
|
|
398
398
|
if (o) {
|
|
399
399
|
const a = h(e, !0);
|
|
@@ -417,20 +417,20 @@ const b = /* @__PURE__ */ new Map(), ae = (t, e) => {
|
|
|
417
417
|
b.has(o) ? n = b.get(o) : (b.set(o, n), H += 1);
|
|
418
418
|
}
|
|
419
419
|
return n;
|
|
420
|
-
},
|
|
420
|
+
}, co = (t) => {
|
|
421
421
|
var e;
|
|
422
422
|
return t ? R(t) ? t.defaultView : i(t) ? (e = t == null ? void 0 : t.ownerDocument) == null ? void 0 : e.defaultView : t : window;
|
|
423
|
-
}, ie = (t) => Array.isArray(t) || !1,
|
|
423
|
+
}, ie = (t) => Array.isArray(t) || !1, ro = (t) => i(t) && t.nodeName === "CANVAS" || !1, ue = (t) => u(t) && !!t.shadowRoot || !1, ao = (t) => i(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, io = (t) => {
|
|
424
424
|
if (!i(t))
|
|
425
425
|
return !1;
|
|
426
426
|
const { top: e, bottom: n } = h(t), { clientHeight: o } = T(t);
|
|
427
427
|
return e <= o && n >= 0;
|
|
428
|
-
},
|
|
428
|
+
}, uo = (t) => {
|
|
429
429
|
if (!i(t))
|
|
430
430
|
return !1;
|
|
431
431
|
const { clientWidth: e, clientHeight: n } = T(t), { top: o, left: s, bottom: r, right: a } = h(t, !0);
|
|
432
432
|
return o >= 0 && s >= 0 && r <= n && a <= e;
|
|
433
|
-
},
|
|
433
|
+
}, lo = (t) => ie(t) && t.every(u) || !1, po = (t) => typeof t == "function" || !1, mo = (t) => v(t) && t.constructor.name === "HTMLCollection" || !1, fo = (t) => u(t) && t.tagName === "IMG" || !1, go = (t) => {
|
|
434
434
|
if (!N(t))
|
|
435
435
|
return !1;
|
|
436
436
|
try {
|
|
@@ -439,33 +439,34 @@ const b = /* @__PURE__ */ new Map(), ae = (t, e) => {
|
|
|
439
439
|
return !1;
|
|
440
440
|
}
|
|
441
441
|
return !0;
|
|
442
|
-
},
|
|
443
|
-
le(t.getRootNode().host, e) : null,
|
|
442
|
+
}, vo = (t) => v(t) && t.constructor.name === "WeakMap" || !1, Eo = (t) => i(t) && ["SVG", "Image", "Video", "Canvas"].some((e) => t.constructor.name.includes(e)) || !1, bo = (t) => v(t) && t.constructor.name === "NodeList" || !1, ho = (t) => T(t).dir === "rtl", yo = (t) => i(t) && t.constructor.name.includes("SVG") || !1, wo = (t) => i(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, le = (t, e) => t ? t.closest(e) || // break out of `ShadowRoot`
|
|
443
|
+
le(t.getRootNode().host, e) : null, Ao = (t, e) => u(t) ? t : (i(e) ? e : d()).querySelector(t), de = (t, e) => (i(e) ? e : d()).getElementsByTagName(t), So = (t) => [...de("*", t)].filter(ue), Mo = (t, e) => d(e).getElementById(t) || null, No = (t, e) => (i(e) ? e : d()).querySelectorAll(t), ko = (t, e) => (e && i(e) ? e : d()).getElementsByClassName(
|
|
444
444
|
t
|
|
445
|
-
),
|
|
445
|
+
), To = (t, e) => t.matches(e), Do = "2.0.0alpha17";
|
|
446
446
|
export {
|
|
447
447
|
Vn as ArrayFrom,
|
|
448
448
|
P as DOMContentLoadedEvent,
|
|
449
449
|
Y as DOMMouseScrollEvent,
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
L as Data,
|
|
451
|
+
Un as Float32ArrayFrom,
|
|
452
452
|
Wn as Float64ArrayFrom,
|
|
453
453
|
k as ObjectAssign,
|
|
454
454
|
w as ObjectEntries,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
455
|
+
Jn as ObjectFromEntries,
|
|
456
|
+
jn as ObjectHasOwn,
|
|
457
|
+
qn as ObjectKeys,
|
|
458
|
+
Gn as ObjectValues,
|
|
459
|
+
$n as Timer,
|
|
460
|
+
q as abortEvent,
|
|
461
|
+
On as addClass,
|
|
461
462
|
cn as addEventListener,
|
|
462
463
|
Wt as animationDelay,
|
|
463
|
-
|
|
464
|
+
Ut as animationDuration,
|
|
464
465
|
D as animationEndEvent,
|
|
465
|
-
|
|
466
|
+
F as animationName,
|
|
466
467
|
pe as ariaChecked,
|
|
467
|
-
|
|
468
|
-
|
|
468
|
+
fe as ariaDescribedBy,
|
|
469
|
+
me as ariaDescription,
|
|
469
470
|
ge as ariaExpanded,
|
|
470
471
|
ve as ariaHasPopup,
|
|
471
472
|
Ee as ariaHidden,
|
|
@@ -478,13 +479,13 @@ export {
|
|
|
478
479
|
Se as ariaValueMin,
|
|
479
480
|
Ne as ariaValueNow,
|
|
480
481
|
ke as ariaValueText,
|
|
481
|
-
|
|
482
|
+
G as beforeunloadEvent,
|
|
482
483
|
an as bezierEasings,
|
|
483
484
|
J as blurEvent,
|
|
484
485
|
K as changeEvent,
|
|
485
486
|
le as closest,
|
|
486
487
|
X as contextmenuEvent,
|
|
487
|
-
|
|
488
|
+
Kn as createCustomEvent,
|
|
488
489
|
Zt as createElement,
|
|
489
490
|
$t as createElementNS,
|
|
490
491
|
Q as dispatchEvent,
|
|
@@ -494,16 +495,16 @@ export {
|
|
|
494
495
|
M as documentHead,
|
|
495
496
|
De as dragEvent,
|
|
496
497
|
ze as dragendEvent,
|
|
497
|
-
|
|
498
|
-
|
|
498
|
+
Oe as dragenterEvent,
|
|
499
|
+
Le as dragleaveEvent,
|
|
499
500
|
Ie as dragoverEvent,
|
|
500
501
|
Ce as dragstartEvent,
|
|
501
502
|
Pn as emulateAnimationEnd,
|
|
502
|
-
|
|
503
|
+
Fn as emulateTransitionEnd,
|
|
503
504
|
Z as errorEvent,
|
|
504
505
|
Rn as focus,
|
|
505
506
|
$ as focusEvent,
|
|
506
|
-
|
|
507
|
+
Fe as focusEvents,
|
|
507
508
|
_ as focusinEvent,
|
|
508
509
|
tt as focusoutEvent,
|
|
509
510
|
et as gesturechangeEvent,
|
|
@@ -512,64 +513,64 @@ export {
|
|
|
512
513
|
Yt as getAttribute,
|
|
513
514
|
Sn as getAttributeNS,
|
|
514
515
|
h as getBoundingClientRect,
|
|
515
|
-
|
|
516
|
+
So as getCustomElements,
|
|
516
517
|
d as getDocument,
|
|
517
|
-
|
|
518
|
+
to as getDocumentBody,
|
|
518
519
|
T as getDocumentElement,
|
|
519
|
-
|
|
520
|
+
eo as getDocumentHead,
|
|
520
521
|
_t as getElementAnimationDelay,
|
|
521
522
|
te as getElementAnimationDuration,
|
|
522
|
-
|
|
523
|
+
Mo as getElementById,
|
|
523
524
|
g as getElementStyle,
|
|
524
525
|
ee as getElementTransitionDelay,
|
|
525
526
|
ne as getElementTransitionDuration,
|
|
526
|
-
|
|
527
|
+
ko as getElementsByClassName,
|
|
527
528
|
de as getElementsByTagName,
|
|
528
529
|
Bn as getInstance,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
no as getNodeScroll,
|
|
531
|
+
oo as getParentNode,
|
|
532
|
+
so as getRectRelativeToOffsetParent,
|
|
532
533
|
ae as getUID,
|
|
533
|
-
|
|
534
|
+
co as getWindow,
|
|
534
535
|
Mn as hasAttribute,
|
|
535
536
|
Nn as hasAttributeNS,
|
|
536
537
|
In as hasClass,
|
|
537
538
|
gn as isApple,
|
|
538
539
|
ie as isArray,
|
|
539
|
-
|
|
540
|
+
ro as isCanvas,
|
|
540
541
|
ue as isCustomElement,
|
|
541
542
|
R as isDocument,
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
ao as isElement,
|
|
544
|
+
io as isElementInScrollRange,
|
|
545
|
+
uo as isElementInViewport,
|
|
546
|
+
lo as isElementsArray,
|
|
546
547
|
vn as isFirefox,
|
|
547
|
-
|
|
548
|
-
|
|
548
|
+
po as isFunction,
|
|
549
|
+
mo as isHTMLCollection,
|
|
549
550
|
u as isHTMLElement,
|
|
550
551
|
fo as isHTMLImageElement,
|
|
551
|
-
|
|
552
|
+
go as isJSON,
|
|
552
553
|
I as isMap,
|
|
553
|
-
|
|
554
|
-
|
|
554
|
+
Eo as isMedia,
|
|
555
|
+
fn as isMobile,
|
|
555
556
|
i as isNode,
|
|
556
|
-
|
|
557
|
+
bo as isNodeList,
|
|
557
558
|
se as isNumber,
|
|
558
559
|
v as isObject,
|
|
559
|
-
|
|
560
|
-
|
|
560
|
+
ho as isRTL,
|
|
561
|
+
yo as isSVGElement,
|
|
561
562
|
re as isScaledElement,
|
|
562
563
|
ce as isShadowRoot,
|
|
563
564
|
N as isString,
|
|
564
|
-
|
|
565
|
-
|
|
565
|
+
wo as isTableElement,
|
|
566
|
+
vo as isWeakMap,
|
|
566
567
|
W as isWindow,
|
|
567
568
|
We as keyAlt,
|
|
568
569
|
Re as keyArrowDown,
|
|
569
|
-
|
|
570
|
-
|
|
570
|
+
je as keyArrowLeft,
|
|
571
|
+
qe as keyArrowRight,
|
|
571
572
|
Qe as keyArrowUp,
|
|
572
|
-
|
|
573
|
+
Ge as keyBackspace,
|
|
573
574
|
Je as keyCapsLock,
|
|
574
575
|
Ke as keyControl,
|
|
575
576
|
Xe as keyDelete,
|
|
@@ -582,23 +583,23 @@ export {
|
|
|
582
583
|
nn as keyShift,
|
|
583
584
|
on as keySpace,
|
|
584
585
|
sn as keyTab,
|
|
585
|
-
|
|
586
|
+
Ue as keyboardEventKeys,
|
|
586
587
|
st as keydownEvent,
|
|
587
588
|
ct as keypressEvent,
|
|
588
589
|
rt as keyupEvent,
|
|
589
590
|
at as loadEvent,
|
|
590
591
|
xe as loadstartEvent,
|
|
591
|
-
|
|
592
|
+
To as matches,
|
|
592
593
|
Be as mouseClickEvents,
|
|
593
594
|
He as mouseHoverEvents,
|
|
594
595
|
Ve as mouseSwipeEvents,
|
|
595
596
|
it as mouseclickEvent,
|
|
596
597
|
ut as mousedblclickEvent,
|
|
597
598
|
lt as mousedownEvent,
|
|
598
|
-
|
|
599
|
+
mt as mouseenterEvent,
|
|
599
600
|
pt as mousehoverEvent,
|
|
600
601
|
gt as mouseinEvent,
|
|
601
|
-
|
|
602
|
+
ft as mouseleaveEvent,
|
|
602
603
|
bt as mousemoveEvent,
|
|
603
604
|
vt as mouseoutEvent,
|
|
604
605
|
Et as mouseoverEvent,
|
|
@@ -612,34 +613,34 @@ export {
|
|
|
612
613
|
Jt as off,
|
|
613
614
|
un as offsetHeight,
|
|
614
615
|
ln as offsetWidth,
|
|
615
|
-
|
|
616
|
+
Gt as on,
|
|
616
617
|
Kt as one,
|
|
617
618
|
wt as orientationchangeEvent,
|
|
618
|
-
|
|
619
|
+
Xn as passiveHandler,
|
|
619
620
|
At as pointercancelEvent,
|
|
620
621
|
St as pointerdownEvent,
|
|
621
622
|
Mt as pointerleaveEvent,
|
|
622
623
|
Nt as pointermoveEvent,
|
|
623
624
|
kt as pointerupEvent,
|
|
624
|
-
|
|
625
|
-
|
|
625
|
+
Ao as querySelector,
|
|
626
|
+
No as querySelectorAll,
|
|
626
627
|
Tt as readystatechangeEvent,
|
|
627
|
-
|
|
628
|
+
Yn as reflow,
|
|
628
629
|
Dn as removeAttribute,
|
|
629
630
|
Cn as removeAttributeNS,
|
|
630
|
-
|
|
631
|
+
Ln as removeClass,
|
|
631
632
|
rn as removeEventListener,
|
|
632
633
|
Dt as resetEvent,
|
|
633
634
|
Ct as resizeEvent,
|
|
634
635
|
zt as scrollEvent,
|
|
635
636
|
dn as scrollHeight,
|
|
636
637
|
pn as scrollWidth,
|
|
637
|
-
|
|
638
|
-
|
|
638
|
+
Ot as selectEvent,
|
|
639
|
+
Lt as selectendEvent,
|
|
639
640
|
It as selectstartEvent,
|
|
640
641
|
kn as setAttribute,
|
|
641
642
|
Tn as setAttributeNS,
|
|
642
|
-
|
|
643
|
+
Zn as setElementStyle,
|
|
643
644
|
xt as submitEvent,
|
|
644
645
|
En as support3DTransform,
|
|
645
646
|
wn as supportAnimation,
|
|
@@ -647,9 +648,9 @@ export {
|
|
|
647
648
|
yn as supportTouch,
|
|
648
649
|
hn as supportTransform,
|
|
649
650
|
An as supportTransition,
|
|
650
|
-
|
|
651
|
+
mn as tabindex,
|
|
651
652
|
oe as toLowerCase,
|
|
652
|
-
|
|
653
|
+
_n as toUpperCase,
|
|
653
654
|
Pe as touchEvents,
|
|
654
655
|
Ht as touchcancelEvent,
|
|
655
656
|
Pt as touchendEvent,
|
|
@@ -658,10 +659,10 @@ export {
|
|
|
658
659
|
Qt as transitionDelay,
|
|
659
660
|
Rt as transitionDuration,
|
|
660
661
|
C as transitionEndEvent,
|
|
661
|
-
|
|
662
|
-
|
|
662
|
+
U as transitionProperty,
|
|
663
|
+
Ft as unloadEvent,
|
|
663
664
|
S as userAgent,
|
|
664
665
|
A as userAgentData,
|
|
665
|
-
|
|
666
|
+
Do as version
|
|
666
667
|
};
|
|
667
668
|
//# sourceMappingURL=shorty.mjs.map
|