@thednp/shorty 2.0.0-alpha7 → 2.0.0-alpha9
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 +4 -4
- package/dist/shorty.cjs +1 -1
- package/dist/shorty.cjs.map +1 -1
- package/dist/shorty.d.ts +27 -3
- package/dist/shorty.js +1 -1
- package/dist/shorty.js.map +1 -1
- package/dist/shorty.mjs +176 -170
- package/dist/shorty.mjs.map +1 -1
- package/package.json +6 -9
- package/src/get/getDocumentBody.ts +1 -1
- package/src/get/getDocumentElement.ts +1 -1
- package/src/get/getDocumentHead.ts +1 -1
- package/src/index.ts +12 -0
- package/src/strings/dragEvent.ts +5 -0
- package/src/strings/dragendEvent.ts +5 -0
- package/src/strings/dragenterEvent.ts +5 -0
- package/src/strings/dragleaveEvent.ts +5 -0
- package/src/strings/dragoverEvent.ts +5 -0
- package/src/strings/dragstartEvent.ts +5 -0
package/dist/shorty.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const fe = "aria-checked", me = "aria-description", ge = "aria-describedby",
|
|
1
|
+
const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", ve = "aria-expanded", Ee = "aria-haspopup", be = "aria-hidden", he = "aria-label", ye = "aria-labelledby", we = "aria-modal", Ae = "aria-pressed", Se = "aria-selected", Me = "aria-valuemin", Ne = "aria-valuemax", ke = "aria-valuenow", Te = "aria-valuetext", j = "abort", J = "beforeunload", K = "blur", X = "change", Y = "contextmenu", H = "DOMContentLoaded", Z = "DOMMouseScroll", $ = "error", _ = "focus", tt = "focusin", et = "focusout", nt = "gesturechange", ot = "gestureend", st = "gesturestart", ct = "keydown", rt = "keypress", at = "keyup", it = "load", ut = "click", lt = "dblclick", dt = "mousedown", pt = "mouseup", ft = "hover", mt = "mouseenter", gt = "mouseleave", vt = "mousein", Et = "mouseout", bt = "mouseover", ht = "mousemove", yt = "mousewheel", wt = "move", At = "orientationchange", St = "pointercancel", Mt = "pointerdown", Nt = "pointerleave", kt = "pointermove", Tt = "pointerup", Dt = "readystatechange", Ct = "reset", Lt = "resize", Ot = "select", It = "selectend", zt = "selectstart", xt = "scroll", Vt = "submit", Bt = "touchstart", Ht = "touchmove", Pt = "touchcancel", Ut = "touchend", Ft = "unload", De = {
|
|
2
2
|
DOMContentLoaded: H,
|
|
3
3
|
DOMMouseScroll: Z,
|
|
4
4
|
abort: j,
|
|
@@ -18,12 +18,12 @@ const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", Ee
|
|
|
18
18
|
hover: ft,
|
|
19
19
|
keydown: ct,
|
|
20
20
|
keypress: rt,
|
|
21
|
-
keyup:
|
|
22
|
-
load:
|
|
21
|
+
keyup: at,
|
|
22
|
+
load: it,
|
|
23
23
|
mousedown: dt,
|
|
24
24
|
mousemove: ht,
|
|
25
|
-
mousein:
|
|
26
|
-
mouseout:
|
|
25
|
+
mousein: vt,
|
|
26
|
+
mouseout: Et,
|
|
27
27
|
mouseenter: mt,
|
|
28
28
|
mouseleave: gt,
|
|
29
29
|
mouseover: bt,
|
|
@@ -49,17 +49,17 @@ const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", Ee
|
|
|
49
49
|
touchmove: Ht,
|
|
50
50
|
touchstart: Bt,
|
|
51
51
|
unload: Ft
|
|
52
|
-
}, Ce = "
|
|
52
|
+
}, Ce = "drag", Le = "dragstart", Oe = "dragenter", Ie = "dragleave", ze = "dragover", xe = "dragend", Ve = "loadstart", Be = {
|
|
53
53
|
start: "mousedown",
|
|
54
54
|
end: "mouseup",
|
|
55
55
|
move: "mousemove",
|
|
56
56
|
cancel: "mouseleave"
|
|
57
|
-
},
|
|
57
|
+
}, He = { down: "mousedown", up: "mouseup" }, Pe = "onmouseleave" in document ? ["mouseenter", "mouseleave"] : ["mouseover", "mouseout"], Ue = {
|
|
58
58
|
start: "touchstart",
|
|
59
59
|
end: "touchend",
|
|
60
60
|
move: "touchmove",
|
|
61
61
|
cancel: "touchcancel"
|
|
62
|
-
},
|
|
62
|
+
}, Fe = { in: "focusin", out: "focusout" }, We = {
|
|
63
63
|
Backspace: "Backspace",
|
|
64
64
|
Tab: "Tab",
|
|
65
65
|
Enter: "Enter",
|
|
@@ -79,7 +79,7 @@ const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", Ee
|
|
|
79
79
|
Meta: "Meta",
|
|
80
80
|
ContextMenu: "ContextMenu",
|
|
81
81
|
ScrollLock: "ScrollLock"
|
|
82
|
-
},
|
|
82
|
+
}, Re = "Alt", Qe = "ArrowDown", qe = "ArrowUp", Ge = "ArrowLeft", je = "ArrowRight", Je = "Backspace", Ke = "CapsLock", Xe = "Control", Ye = "Delete", Ze = "Enter", $e = "Escape", _e = "Insert", tn = "Meta", en = "Pause", nn = "ScrollLock", on = "Shift", sn = "Space", cn = "Tab", Wt = "animationDuration", Rt = "animationDelay", P = "animationName", T = "animationend", Qt = "transitionDuration", qt = "transitionDelay", D = "transitionend", U = "transitionProperty", rn = "addEventListener", an = "removeEventListener", un = {
|
|
83
83
|
linear: "linear",
|
|
84
84
|
easingSinusoidalIn: "cubic-bezier(0.47,0,0.745,0.715)",
|
|
85
85
|
easingSinusoidalOut: "cubic-bezier(0.39,0.575,0.565,1)",
|
|
@@ -105,10 +105,10 @@ const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", Ee
|
|
|
105
105
|
easingBackIn: "cubic-bezier(0.6,-0.28,0.735,0.045)",
|
|
106
106
|
easingBackOut: "cubic-bezier(0.175,0.885,0.32,1.275)",
|
|
107
107
|
easingBackInOut: "cubic-bezier(0.68,-0.55,0.265,1.55)"
|
|
108
|
-
},
|
|
108
|
+
}, ln = "offsetHeight", dn = "offsetWidth", pn = "scrollHeight", fn = "scrollWidth", mn = "tabindex", Gt = navigator.userAgentData, S = Gt, { userAgent: jt } = navigator, M = jt, I = /iPhone|iPad|iPod|Android/i;
|
|
109
109
|
let C = !1;
|
|
110
110
|
S ? C = S.brands.some((t) => I.test(t.brand)) : C = I.test(M);
|
|
111
|
-
const
|
|
111
|
+
const gn = C, z = /(iPhone|iPod|iPad)/, vn = S ? S.brands.some((t) => z.test(t.brand)) : z.test(M), En = M ? M.includes("Firefox") : !1, { head: N } = document, bn = ["webkitPerspective", "perspective"].some((t) => t in N.style), Jt = (t, e, n, o) => {
|
|
112
112
|
const s = o || !1;
|
|
113
113
|
t.addEventListener(e, n, s);
|
|
114
114
|
}, Kt = (t, e, n, o) => {
|
|
@@ -120,7 +120,7 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
120
120
|
};
|
|
121
121
|
Jt(t, e, s, o);
|
|
122
122
|
}, Yt = () => {
|
|
123
|
-
},
|
|
123
|
+
}, hn = (() => {
|
|
124
124
|
let t = !1;
|
|
125
125
|
try {
|
|
126
126
|
const e = Object.defineProperty({}, "passive", {
|
|
@@ -130,11 +130,11 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
130
130
|
} catch {
|
|
131
131
|
}
|
|
132
132
|
return t;
|
|
133
|
-
})(),
|
|
133
|
+
})(), yn = ["webkitTransform", "transform"].some((t) => t in N.style), wn = "ontouchstart" in window || "msMaxTouchPoints" in navigator, An = ["webkitAnimation", "animation"].some((t) => t in N.style), Sn = ["webkitTransition", "transition"].some((t) => t in N.style), Zt = (t, e) => t.getAttribute(e), Mn = (t, e, n) => e.getAttributeNS(t, n), Nn = (t, e) => t.hasAttribute(e), kn = (t, e, n) => e.hasAttributeNS(t, n), F = (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), Ln = (t, ...e) => {
|
|
134
134
|
t.classList.add(...e);
|
|
135
|
-
},
|
|
135
|
+
}, On = (t, ...e) => {
|
|
136
136
|
t.classList.remove(...e);
|
|
137
|
-
},
|
|
137
|
+
}, In = (t, e) => t.classList.contains(e), { body: zn } = document, { documentElement: xn } = document, Vn = (t) => Array.from(t), E = (t) => t != null && typeof t == "object" || !1, i = (t) => E(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, y = /* @__PURE__ */ new Map(), L = {
|
|
138
138
|
set: (t, e, n) => {
|
|
139
139
|
if (!u(t))
|
|
140
140
|
return;
|
|
@@ -151,7 +151,7 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
151
151
|
const n = L.getAllFor(e);
|
|
152
152
|
!n || !u(t) || (n.delete(t), n.size === 0 && y.delete(e));
|
|
153
153
|
}
|
|
154
|
-
},
|
|
154
|
+
}, Bn = (t, e) => L.get(t, e), g = (t) => typeof t == "string" || !1, W = (t) => E(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, h = (t) => Object.entries(t), $t = (t) => {
|
|
155
155
|
if (!t)
|
|
156
156
|
return;
|
|
157
157
|
if (g(t))
|
|
@@ -172,65 +172,65 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
172
172
|
if (!o)
|
|
173
173
|
return;
|
|
174
174
|
const s = { ...e };
|
|
175
|
-
return delete s.tagName, h(s).forEach(([c,
|
|
176
|
-
g(c) && g(
|
|
175
|
+
return delete s.tagName, h(s).forEach(([c, a]) => {
|
|
176
|
+
g(c) && g(a) && F(o, c, a);
|
|
177
177
|
}), o;
|
|
178
|
-
}, Q = (t, e) => t.dispatchEvent(e),
|
|
178
|
+
}, Q = (t, e) => t.dispatchEvent(e), Hn = (t, e, n) => n.indexOf(t) === e, v = (t, e) => {
|
|
179
179
|
const n = getComputedStyle(t), o = e.replace("webkit", "Webkit").replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
180
180
|
return n.getPropertyValue(o);
|
|
181
181
|
}, te = (t) => {
|
|
182
|
-
const e =
|
|
182
|
+
const e = v(t, P), n = v(t, Rt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
183
183
|
return Number.isNaN(s) ? 0 : s;
|
|
184
184
|
}, ee = (t) => {
|
|
185
|
-
const e =
|
|
185
|
+
const e = v(t, P), n = v(t, Wt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
186
186
|
return Number.isNaN(s) ? 0 : s;
|
|
187
|
-
},
|
|
187
|
+
}, Pn = (t, e) => {
|
|
188
188
|
let n = 0;
|
|
189
189
|
const o = new Event(T), s = ee(t), c = te(t);
|
|
190
190
|
if (s) {
|
|
191
|
-
const
|
|
192
|
-
l.target === t && (e.apply(t, [l]), t.removeEventListener(T,
|
|
191
|
+
const a = (l) => {
|
|
192
|
+
l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);
|
|
193
193
|
};
|
|
194
|
-
t.addEventListener(T,
|
|
194
|
+
t.addEventListener(T, a), setTimeout(() => {
|
|
195
195
|
n || Q(t, o);
|
|
196
196
|
}, s + c + 17);
|
|
197
197
|
} else
|
|
198
198
|
e.apply(t, [o]);
|
|
199
199
|
}, ne = (t) => {
|
|
200
|
-
const e =
|
|
200
|
+
const e = v(t, U), n = v(t, qt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
201
201
|
return Number.isNaN(s) ? 0 : s;
|
|
202
202
|
}, oe = (t) => {
|
|
203
|
-
const e =
|
|
203
|
+
const e = v(t, U), n = v(t, Qt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
204
204
|
return Number.isNaN(s) ? 0 : s;
|
|
205
|
-
},
|
|
205
|
+
}, Un = (t, e) => {
|
|
206
206
|
let n = 0;
|
|
207
207
|
const o = new Event(D), s = oe(t), c = ne(t);
|
|
208
208
|
if (s) {
|
|
209
|
-
const
|
|
210
|
-
l.target === t && (e.apply(t, [l]), t.removeEventListener(D,
|
|
209
|
+
const a = (l) => {
|
|
210
|
+
l.target === t && (e.apply(t, [l]), t.removeEventListener(D, a), n = 1);
|
|
211
211
|
};
|
|
212
|
-
t.addEventListener(D,
|
|
212
|
+
t.addEventListener(D, a), setTimeout(() => {
|
|
213
213
|
n || Q(t, o);
|
|
214
214
|
}, s + c + 17);
|
|
215
215
|
} else
|
|
216
216
|
e.apply(t, [o]);
|
|
217
|
-
},
|
|
218
|
-
const s = { ...n }, c = { ...t.dataset },
|
|
217
|
+
}, Fn = (t) => Float32Array.from(Array.from(t)), Wn = (t) => Float64Array.from(Array.from(t)), Rn = (t, e) => t.focus(e), x = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, se = (t) => t.toLowerCase(), Qn = (t, e, n, o) => {
|
|
218
|
+
const s = { ...n }, c = { ...t.dataset }, a = { ...e }, l = {}, p = "title";
|
|
219
219
|
return h(c).forEach(([r, f]) => {
|
|
220
220
|
const A = o && typeof r == "string" && r.includes(o) ? r.replace(o, "").replace(/[A-Z]/g, (G) => se(G)) : r;
|
|
221
221
|
l[A] = x(f);
|
|
222
222
|
}), h(s).forEach(([r, f]) => {
|
|
223
223
|
s[r] = x(f);
|
|
224
224
|
}), h(e).forEach(([r, f]) => {
|
|
225
|
-
r in s ?
|
|
226
|
-
}),
|
|
227
|
-
}, q = (t, ...e) => Object.assign(t, ...e),
|
|
225
|
+
r in s ? a[r] = s[r] : r in l ? a[r] = l[r] : a[r] = r === p ? Zt(t, p) : f;
|
|
226
|
+
}), a;
|
|
227
|
+
}, q = (t, ...e) => Object.assign(t, ...e), qn = (t, e) => E(t) && (Object.hasOwn(t, e) || e in t), Gn = (t) => Object.keys(t), jn = (t) => Object.values(t), Jn = (t, e) => {
|
|
228
228
|
const n = new CustomEvent(t, {
|
|
229
229
|
cancelable: !0,
|
|
230
230
|
bubbles: !0
|
|
231
231
|
});
|
|
232
|
-
return
|
|
233
|
-
},
|
|
232
|
+
return E(e) && q(n, e), n;
|
|
233
|
+
}, Kn = { passive: !0 }, Xn = (t) => t.offsetHeight, Yn = (t, e) => {
|
|
234
234
|
h(e).forEach(([n, o]) => {
|
|
235
235
|
if (o && g(n) && n.includes("--"))
|
|
236
236
|
t.style.setProperty(n, o);
|
|
@@ -239,7 +239,7 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
239
239
|
s[n] = o, q(t.style, s);
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
|
-
}, O = (t) =>
|
|
242
|
+
}, O = (t) => E(t) && t.constructor.name === "Map" || !1, ce = (t) => typeof t == "number" || !1, m = /* @__PURE__ */ new Map(), Zn = {
|
|
243
243
|
set: (t, e, n, o) => {
|
|
244
244
|
!u(t) || (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));
|
|
245
245
|
},
|
|
@@ -255,8 +255,8 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
255
255
|
const n = m.get(t);
|
|
256
256
|
e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));
|
|
257
257
|
}
|
|
258
|
-
},
|
|
259
|
-
const { width: n, height: o, top: s, right: c, bottom:
|
|
258
|
+
}, $n = (t) => t.toUpperCase(), w = (t, e) => {
|
|
259
|
+
const { width: n, height: o, top: s, right: c, bottom: a, left: l } = t.getBoundingClientRect();
|
|
260
260
|
let p = 1, r = 1;
|
|
261
261
|
if (e && u(t)) {
|
|
262
262
|
const { offsetWidth: f, offsetHeight: A } = t;
|
|
@@ -267,24 +267,24 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
267
267
|
height: o / r,
|
|
268
268
|
top: s / r,
|
|
269
269
|
right: c / p,
|
|
270
|
-
bottom:
|
|
270
|
+
bottom: a / r,
|
|
271
271
|
left: l / p,
|
|
272
272
|
x: l / p,
|
|
273
273
|
y: s / r
|
|
274
274
|
};
|
|
275
|
-
},
|
|
275
|
+
}, _n = (t) => d(t).body, k = (t) => d(t).documentElement, to = (t) => d(t).head, eo = (t) => {
|
|
276
276
|
const e = W(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;
|
|
277
277
|
return { x: n, y: o };
|
|
278
|
-
}, re = (t) =>
|
|
278
|
+
}, re = (t) => i(t) && t.constructor.name === "ShadowRoot" || !1, no = (t) => t.nodeName === "HTML" ? t : u(t) && t.assignedSlot || i(t) && t.parentNode || re(t) && t.host || k(t), ae = (t) => {
|
|
279
279
|
if (!u(t))
|
|
280
280
|
return !1;
|
|
281
281
|
const { width: e, height: n } = w(t), { offsetWidth: o, offsetHeight: s } = t;
|
|
282
282
|
return Math.round(e) !== o || Math.round(n) !== s;
|
|
283
|
-
},
|
|
284
|
-
const o = u(e), s = w(t, o &&
|
|
283
|
+
}, oo = (t, e, n) => {
|
|
284
|
+
const o = u(e), s = w(t, o && ae(e)), c = { x: 0, y: 0 };
|
|
285
285
|
if (o) {
|
|
286
|
-
const
|
|
287
|
-
c.x =
|
|
286
|
+
const a = w(e, !0);
|
|
287
|
+
c.x = a.x + e.clientLeft, c.y = a.y + e.clientTop;
|
|
288
288
|
}
|
|
289
289
|
return {
|
|
290
290
|
x: s.left + n.x - c.x,
|
|
@@ -294,30 +294,30 @@ const un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.b
|
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
296
|
let V = 0, B = 0;
|
|
297
|
-
const b = /* @__PURE__ */ new Map(),
|
|
297
|
+
const b = /* @__PURE__ */ new Map(), ie = (t, e) => {
|
|
298
298
|
let n = e ? V : B;
|
|
299
299
|
if (e) {
|
|
300
|
-
const o =
|
|
300
|
+
const o = ie(t), s = b.get(o) || /* @__PURE__ */ new Map();
|
|
301
301
|
b.has(o) || b.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), V += 1) : n = s.get(e);
|
|
302
302
|
} else {
|
|
303
303
|
const o = t.id || t;
|
|
304
304
|
b.has(o) ? n = b.get(o) : (b.set(o, n), B += 1);
|
|
305
305
|
}
|
|
306
306
|
return n;
|
|
307
|
-
},
|
|
307
|
+
}, so = (t) => {
|
|
308
308
|
var e;
|
|
309
|
-
return t ? R(t) ? t.defaultView :
|
|
310
|
-
}, ue = (t) => Array.isArray(t) || !1,
|
|
311
|
-
if (!
|
|
309
|
+
return t ? R(t) ? t.defaultView : i(t) ? (e = t == null ? void 0 : t.ownerDocument) == null ? void 0 : e.defaultView : t : window;
|
|
310
|
+
}, ue = (t) => Array.isArray(t) || !1, co = (t) => i(t) && t.nodeName === "CANVAS" || !1, le = (t) => u(t) && !!t.shadowRoot || !1, ro = (t) => i(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, ao = (t) => {
|
|
311
|
+
if (!i(t))
|
|
312
312
|
return !1;
|
|
313
313
|
const { top: e, bottom: n } = w(t), { clientHeight: o } = k(t);
|
|
314
314
|
return e <= o && n >= 0;
|
|
315
|
-
},
|
|
316
|
-
if (!
|
|
315
|
+
}, io = (t) => {
|
|
316
|
+
if (!i(t))
|
|
317
317
|
return !1;
|
|
318
|
-
const { clientWidth: e, clientHeight: n } = k(t), { top: o, left: s, bottom: c, right:
|
|
319
|
-
return o >= 0 && s >= 0 && c <= n &&
|
|
320
|
-
},
|
|
318
|
+
const { clientWidth: e, clientHeight: n } = k(t), { top: o, left: s, bottom: c, right: a } = w(t, !0);
|
|
319
|
+
return o >= 0 && s >= 0 && c <= n && a <= e;
|
|
320
|
+
}, uo = (t) => ue(t) && t.every(u) || !1, lo = (t) => typeof t == "function" || !1, po = (t) => E(t) && t.constructor.name === "HTMLCollection" || !1, fo = (t) => u(t) && t.tagName === "IMG" || !1, mo = (t) => {
|
|
321
321
|
if (!g(t))
|
|
322
322
|
return !1;
|
|
323
323
|
try {
|
|
@@ -326,25 +326,25 @@ const b = /* @__PURE__ */ new Map(), ae = (t, e) => {
|
|
|
326
326
|
return !1;
|
|
327
327
|
}
|
|
328
328
|
return !0;
|
|
329
|
-
},
|
|
329
|
+
}, go = (t) => E(t) && t.constructor.name === "WeakMap" || !1, vo = (t) => i(t) && ["SVG", "Image", "Video", "Canvas"].some((e) => t.constructor.name.includes(e)) || !1, Eo = (t) => E(t) && t.constructor.name === "NodeList" || !1, bo = (t) => k(t).dir === "rtl", ho = (t) => i(t) && t.constructor.name.includes("SVG") || !1, yo = (t) => i(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, de = (t, e) => t ? t.closest(e) || de(t.getRootNode().host, e) : null, wo = (t, e) => u(t) ? t : (i(e) ? e : d()).querySelector(t), pe = (t, e) => (i(e) ? e : d()).getElementsByTagName(t), Ao = (t) => [...pe("*", t)].filter(le), So = (t, e) => d(e).getElementById(t) || null, Mo = (t, e) => (i(e) ? e : d()).querySelectorAll(t), No = (t, e) => (e && i(e) ? e : d()).getElementsByClassName(
|
|
330
330
|
t
|
|
331
|
-
),
|
|
331
|
+
), ko = (t, e) => t.matches(e);
|
|
332
332
|
export {
|
|
333
|
-
|
|
333
|
+
Vn as ArrayFrom,
|
|
334
334
|
H as DOMContentLoadedEvent,
|
|
335
335
|
Z as DOMMouseScrollEvent,
|
|
336
336
|
L as Data,
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
Fn as Float32ArrayFrom,
|
|
338
|
+
Wn as Float64ArrayFrom,
|
|
339
339
|
q as ObjectAssign,
|
|
340
340
|
h as ObjectEntries,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
341
|
+
qn as ObjectHasOwn,
|
|
342
|
+
Gn as ObjectKeys,
|
|
343
|
+
jn as ObjectValues,
|
|
344
|
+
Zn as Timer,
|
|
345
345
|
j as abortEvent,
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
Ln as addClass,
|
|
347
|
+
rn as addEventListener,
|
|
348
348
|
Rt as animationDelay,
|
|
349
349
|
Wt as animationDuration,
|
|
350
350
|
T as animationEndEvent,
|
|
@@ -352,8 +352,8 @@ export {
|
|
|
352
352
|
fe as ariaChecked,
|
|
353
353
|
ge as ariaDescribedBy,
|
|
354
354
|
me as ariaDescription,
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
ve as ariaExpanded,
|
|
356
|
+
Ee as ariaHasPopup,
|
|
357
357
|
be as ariaHidden,
|
|
358
358
|
he as ariaLabel,
|
|
359
359
|
ye as ariaLabelledBy,
|
|
@@ -365,172 +365,178 @@ export {
|
|
|
365
365
|
ke as ariaValueNow,
|
|
366
366
|
Te as ariaValueText,
|
|
367
367
|
J as beforeunloadEvent,
|
|
368
|
-
|
|
368
|
+
un as bezierEasings,
|
|
369
369
|
K as blurEvent,
|
|
370
370
|
X as changeEvent,
|
|
371
371
|
de as closest,
|
|
372
372
|
Y as contextmenuEvent,
|
|
373
|
-
|
|
373
|
+
Jn as createCustomEvent,
|
|
374
374
|
$t as createElement,
|
|
375
375
|
_t as createElementNS,
|
|
376
376
|
Q as dispatchEvent,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
Hn as distinct,
|
|
378
|
+
zn as documentBody,
|
|
379
|
+
xn as documentElement,
|
|
380
380
|
N as documentHead,
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
Ce as dragEvent,
|
|
382
|
+
xe as dragendEvent,
|
|
383
|
+
Oe as dragenterEvent,
|
|
384
|
+
Ie as dragleaveEvent,
|
|
385
|
+
ze as dragoverEvent,
|
|
386
|
+
Le as dragstartEvent,
|
|
387
|
+
Pn as emulateAnimationEnd,
|
|
388
|
+
Un as emulateTransitionEnd,
|
|
383
389
|
$ as errorEvent,
|
|
384
|
-
|
|
390
|
+
Rn as focus,
|
|
385
391
|
_ as focusEvent,
|
|
386
|
-
|
|
392
|
+
Fe as focusEvents,
|
|
387
393
|
tt as focusinEvent,
|
|
388
394
|
et as focusoutEvent,
|
|
389
395
|
nt as gesturechangeEvent,
|
|
390
396
|
ot as gestureendEvent,
|
|
391
397
|
st as gesturestartEvent,
|
|
392
398
|
Zt as getAttribute,
|
|
393
|
-
|
|
399
|
+
Mn as getAttributeNS,
|
|
394
400
|
w as getBoundingClientRect,
|
|
395
|
-
|
|
401
|
+
Ao as getCustomElements,
|
|
396
402
|
d as getDocument,
|
|
397
|
-
|
|
403
|
+
_n as getDocumentBody,
|
|
398
404
|
k as getDocumentElement,
|
|
399
|
-
|
|
405
|
+
to as getDocumentHead,
|
|
400
406
|
te as getElementAnimationDelay,
|
|
401
407
|
ee as getElementAnimationDuration,
|
|
402
|
-
|
|
403
|
-
|
|
408
|
+
So as getElementById,
|
|
409
|
+
v as getElementStyle,
|
|
404
410
|
ne as getElementTransitionDelay,
|
|
405
411
|
oe as getElementTransitionDuration,
|
|
406
|
-
|
|
412
|
+
No as getElementsByClassName,
|
|
407
413
|
pe as getElementsByTagName,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
414
|
+
Bn as getInstance,
|
|
415
|
+
eo as getNodeScroll,
|
|
416
|
+
no as getParentNode,
|
|
417
|
+
oo as getRectRelativeToOffsetParent,
|
|
418
|
+
ie as getUID,
|
|
419
|
+
so as getWindow,
|
|
420
|
+
Nn as hasAttribute,
|
|
421
|
+
kn as hasAttributeNS,
|
|
422
|
+
In as hasClass,
|
|
423
|
+
vn as isApple,
|
|
418
424
|
ue as isArray,
|
|
419
|
-
|
|
425
|
+
co as isCanvas,
|
|
420
426
|
le as isCustomElement,
|
|
421
427
|
R as isDocument,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
428
|
+
ro as isElement,
|
|
429
|
+
ao as isElementInScrollRange,
|
|
430
|
+
io as isElementInViewport,
|
|
431
|
+
uo as isElementsArray,
|
|
432
|
+
En as isFirefox,
|
|
433
|
+
lo as isFunction,
|
|
434
|
+
po as isHTMLCollection,
|
|
429
435
|
u as isHTMLElement,
|
|
430
|
-
|
|
431
|
-
|
|
436
|
+
fo as isHTMLImageElement,
|
|
437
|
+
mo as isJSON,
|
|
432
438
|
O as isMap,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
439
|
+
vo as isMedia,
|
|
440
|
+
gn as isMobile,
|
|
441
|
+
i as isNode,
|
|
442
|
+
Eo as isNodeList,
|
|
437
443
|
ce as isNumber,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
444
|
+
E as isObject,
|
|
445
|
+
bo as isRTL,
|
|
446
|
+
ho as isSVGElement,
|
|
447
|
+
ae as isScaledElement,
|
|
442
448
|
re as isShadowRoot,
|
|
443
449
|
g as isString,
|
|
444
|
-
|
|
445
|
-
|
|
450
|
+
yo as isTableElement,
|
|
451
|
+
go as isWeakMap,
|
|
446
452
|
W as isWindow,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
453
|
+
Re as keyAlt,
|
|
454
|
+
Qe as keyArrowDown,
|
|
455
|
+
Ge as keyArrowLeft,
|
|
456
|
+
je as keyArrowRight,
|
|
457
|
+
qe as keyArrowUp,
|
|
458
|
+
Je as keyBackspace,
|
|
459
|
+
Ke as keyCapsLock,
|
|
460
|
+
Xe as keyControl,
|
|
461
|
+
Ye as keyDelete,
|
|
462
|
+
Ze as keyEnter,
|
|
463
|
+
$e as keyEscape,
|
|
464
|
+
_e as keyInsert,
|
|
465
|
+
tn as keyMeta,
|
|
466
|
+
en as keyPause,
|
|
467
|
+
nn as keyScrollLock,
|
|
468
|
+
on as keyShift,
|
|
469
|
+
sn as keySpace,
|
|
470
|
+
cn as keyTab,
|
|
471
|
+
We as keyboardEventKeys,
|
|
466
472
|
ct as keydownEvent,
|
|
467
473
|
rt as keypressEvent,
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
474
|
+
at as keyupEvent,
|
|
475
|
+
it as loadEvent,
|
|
476
|
+
Ve as loadstartEvent,
|
|
477
|
+
ko as matches,
|
|
478
|
+
He as mouseClickEvents,
|
|
479
|
+
Pe as mouseHoverEvents,
|
|
480
|
+
Be as mouseSwipeEvents,
|
|
475
481
|
ut as mouseclickEvent,
|
|
476
482
|
lt as mousedblclickEvent,
|
|
477
483
|
dt as mousedownEvent,
|
|
478
484
|
mt as mouseenterEvent,
|
|
479
485
|
ft as mousehoverEvent,
|
|
480
|
-
|
|
486
|
+
vt as mouseinEvent,
|
|
481
487
|
gt as mouseleaveEvent,
|
|
482
488
|
ht as mousemoveEvent,
|
|
483
|
-
|
|
489
|
+
Et as mouseoutEvent,
|
|
484
490
|
bt as mouseoverEvent,
|
|
485
491
|
pt as mouseupEvent,
|
|
486
492
|
yt as mousewheelEvent,
|
|
487
493
|
wt as moveEvent,
|
|
488
494
|
De as nativeEvents,
|
|
489
495
|
Yt as noop,
|
|
490
|
-
|
|
496
|
+
Qn as normalizeOptions,
|
|
491
497
|
x as normalizeValue,
|
|
492
498
|
Kt as off,
|
|
493
|
-
|
|
494
|
-
|
|
499
|
+
ln as offsetHeight,
|
|
500
|
+
dn as offsetWidth,
|
|
495
501
|
Jt as on,
|
|
496
502
|
Xt as one,
|
|
497
503
|
At as orientationchangeEvent,
|
|
498
|
-
|
|
504
|
+
Kn as passiveHandler,
|
|
499
505
|
St as pointercancelEvent,
|
|
500
506
|
Mt as pointerdownEvent,
|
|
501
507
|
Nt as pointerleaveEvent,
|
|
502
508
|
kt as pointermoveEvent,
|
|
503
509
|
Tt as pointerupEvent,
|
|
504
|
-
|
|
505
|
-
|
|
510
|
+
wo as querySelector,
|
|
511
|
+
Mo as querySelectorAll,
|
|
506
512
|
Dt as readystatechangeEvent,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
513
|
+
Xn as reflow,
|
|
514
|
+
Dn as removeAttribute,
|
|
515
|
+
Cn as removeAttributeNS,
|
|
516
|
+
On as removeClass,
|
|
517
|
+
an as removeEventListener,
|
|
512
518
|
Ct as resetEvent,
|
|
513
519
|
Lt as resizeEvent,
|
|
514
520
|
xt as scrollEvent,
|
|
515
|
-
|
|
516
|
-
|
|
521
|
+
pn as scrollHeight,
|
|
522
|
+
fn as scrollWidth,
|
|
517
523
|
Ot as selectEvent,
|
|
518
524
|
It as selectendEvent,
|
|
519
525
|
zt as selectstartEvent,
|
|
520
526
|
F as setAttribute,
|
|
521
|
-
|
|
522
|
-
|
|
527
|
+
Tn as setAttributeNS,
|
|
528
|
+
Yn as setElementStyle,
|
|
523
529
|
Vt as submitEvent,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
530
|
+
bn as support3DTransform,
|
|
531
|
+
An as supportAnimation,
|
|
532
|
+
hn as supportPassive,
|
|
533
|
+
wn as supportTouch,
|
|
534
|
+
yn as supportTransform,
|
|
535
|
+
Sn as supportTransition,
|
|
536
|
+
mn as tabindex,
|
|
531
537
|
se as toLowerCase,
|
|
532
|
-
|
|
533
|
-
|
|
538
|
+
$n as toUpperCase,
|
|
539
|
+
Ue as touchEvents,
|
|
534
540
|
Pt as touchcancelEvent,
|
|
535
541
|
Ut as touchendEvent,
|
|
536
542
|
Ht as touchmoveEvent,
|