@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/dist/shorty.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const fe = "aria-checked", me = "aria-description", ge = "aria-describedby", Ee = "aria-expanded", ve = "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", it = "keyup", at = "load", ut = "click", lt = "dblclick", dt = "mousedown", pt = "mouseup", ft = "hover", mt = "mouseenter", gt = "mouseleave", Et = "mousein", vt = "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 = {
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: it,
22
- load: at,
21
+ keyup: at,
22
+ load: it,
23
23
  mousedown: dt,
24
24
  mousemove: ht,
25
- mousein: Et,
26
- mouseout: vt,
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 = "loadstart", Le = {
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
- }, Oe = { down: "mousedown", up: "mouseup" }, Ie = "onmouseleave" in document ? ["mouseenter", "mouseleave"] : ["mouseover", "mouseout"], ze = {
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
- }, xe = { in: "focusin", out: "focusout" }, Ve = {
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
- }, Be = "Alt", He = "ArrowDown", Pe = "ArrowUp", Ue = "ArrowLeft", Fe = "ArrowRight", We = "Backspace", Re = "CapsLock", Qe = "Control", qe = "Delete", Ge = "Enter", je = "Escape", Je = "Insert", Ke = "Meta", Xe = "Pause", Ye = "ScrollLock", Ze = "Shift", $e = "Space", _e = "Tab", Wt = "animationDuration", Rt = "animationDelay", P = "animationName", T = "animationend", Qt = "transitionDuration", qt = "transitionDelay", D = "transitionend", U = "transitionProperty", tn = "addEventListener", en = "removeEventListener", nn = {
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
- }, on = "offsetHeight", sn = "offsetWidth", cn = "scrollHeight", rn = "scrollWidth", an = "tabindex", Gt = navigator.userAgentData, S = Gt, { userAgent: jt } = navigator, M = jt, I = /iPhone|iPad|iPod|Android/i;
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 un = C, z = /(iPhone|iPod|iPad)/, ln = S ? S.brands.some((t) => z.test(t.brand)) : z.test(M), dn = M ? M.includes("Firefox") : !1, { head: N } = document, pn = ["webkitPerspective", "perspective"].some((t) => t in N.style), Jt = (t, e, n, o) => {
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
- }, fn = (() => {
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
- })(), mn = ["webkitTransform", "transform"].some((t) => t in N.style), gn = "ontouchstart" in window || "msMaxTouchPoints" in navigator, En = ["webkitAnimation", "animation"].some((t) => t in N.style), vn = ["webkitTransition", "transition"].some((t) => t in N.style), Zt = (t, e) => t.getAttribute(e), bn = (t, e, n) => e.getAttributeNS(t, n), hn = (t, e) => t.hasAttribute(e), yn = (t, e, n) => e.hasAttributeNS(t, n), F = (t, e, n) => t.setAttribute(e, n), wn = (t, e, n, o) => e.setAttributeNS(t, n, o), An = (t, e) => t.removeAttribute(e), Sn = (t, e, n) => e.removeAttributeNS(t, n), Mn = (t, ...e) => {
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
- }, Nn = (t, ...e) => {
135
+ }, On = (t, ...e) => {
136
136
  t.classList.remove(...e);
137
- }, kn = (t, e) => t.classList.contains(e), { body: Tn } = document, { documentElement: Dn } = document, Cn = (t) => Array.from(t), v = (t) => t != null && typeof t == "object" || !1, a = (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) => a(t) && t.nodeType === 1 || !1, y = /* @__PURE__ */ new Map(), L = {
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
- }, Ln = (t, e) => L.get(t, e), g = (t) => typeof t == "string" || !1, W = (t) => v(t) && t.constructor.name === "Window" || !1, R = (t) => a(t) && t.nodeType === 9 || !1, d = (t) => W(t) ? t.document : R(t) ? t : a(t) ? t.ownerDocument : window.document, h = (t) => Object.entries(t), $t = (t) => {
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, i]) => {
176
- g(c) && g(i) && F(o, c, i);
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), On = (t, e, n) => n.indexOf(t) === e, E = (t, 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 = E(t, P), n = E(t, Rt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
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 = E(t, P), n = E(t, Wt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
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
- }, In = (t, e) => {
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 i = (l) => {
192
- l.target === t && (e.apply(t, [l]), t.removeEventListener(T, i), n = 1);
191
+ const a = (l) => {
192
+ l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);
193
193
  };
194
- t.addEventListener(T, i), setTimeout(() => {
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 = E(t, U), n = E(t, qt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
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 = E(t, U), n = E(t, Qt), o = n.includes("ms") ? 1 : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
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
- }, zn = (t, e) => {
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 i = (l) => {
210
- l.target === t && (e.apply(t, [l]), t.removeEventListener(D, i), n = 1);
209
+ const a = (l) => {
210
+ l.target === t && (e.apply(t, [l]), t.removeEventListener(D, a), n = 1);
211
211
  };
212
- t.addEventListener(D, i), setTimeout(() => {
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
- }, xn = (t) => Float32Array.from(Array.from(t)), Vn = (t) => Float64Array.from(Array.from(t)), Bn = (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(), Hn = (t, e, n, o) => {
218
- const s = { ...n }, c = { ...t.dataset }, i = { ...e }, l = {}, p = "title";
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 ? i[r] = s[r] : r in l ? i[r] = l[r] : i[r] = r === p ? Zt(t, p) : f;
226
- }), i;
227
- }, q = (t, ...e) => Object.assign(t, ...e), Pn = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), Un = (t) => Object.keys(t), Fn = (t) => Object.values(t), Wn = (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 v(e) && q(n, e), n;
233
- }, Rn = { passive: !0 }, Qn = (t) => t.offsetHeight, qn = (t, e) => {
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) => v(t) && t.constructor.name === "Map" || !1, ce = (t) => typeof t == "number" || !1, m = /* @__PURE__ */ new Map(), Gn = {
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
- }, jn = (t) => t.toUpperCase(), w = (t, e) => {
259
- const { width: n, height: o, top: s, right: c, bottom: i, left: l } = t.getBoundingClientRect();
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: i / r,
270
+ bottom: a / r,
271
271
  left: l / p,
272
272
  x: l / p,
273
273
  y: s / r
274
274
  };
275
- }, Jn = (t) => d(t).body, k = (t) => d(t).documentElement, Kn = (t) => d(t).head, Xn = (t) => {
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) => a(t) && t.constructor.name === "ShadowRoot" || !1, Yn = (t) => t.nodeName === "HTML" ? t : u(t) && t.assignedSlot || a(t) && t.parentNode || re(t) && t.host || k(t), ie = (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
- }, Zn = (t, e, n) => {
284
- const o = u(e), s = w(t, o && ie(e)), c = { x: 0, y: 0 };
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 i = w(e, !0);
287
- c.x = i.x + e.clientLeft, c.y = i.y + e.clientTop;
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(), ae = (t, e) => {
297
+ const b = /* @__PURE__ */ new Map(), ie = (t, e) => {
298
298
  let n = e ? V : B;
299
299
  if (e) {
300
- const o = ae(t), s = b.get(o) || /* @__PURE__ */ new Map();
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
- }, $n = (t) => {
307
+ }, so = (t) => {
308
308
  var e;
309
- return t ? R(t) ? t.defaultView : a(t) ? (e = t == null ? void 0 : t.ownerDocument) == null ? void 0 : e.defaultView : t : window;
310
- }, ue = (t) => Array.isArray(t) || !1, _n = (t) => a(t) && t.nodeName === "CANVAS" || !1, le = (t) => u(t) && !!t.shadowRoot || !1, to = (t) => a(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, eo = (t) => {
311
- if (!a(t))
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
- }, no = (t) => {
316
- if (!a(t))
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: i } = w(t, !0);
319
- return o >= 0 && s >= 0 && c <= n && i <= e;
320
- }, oo = (t) => ue(t) && t.every(u) || !1, so = (t) => typeof t == "function" || !1, co = (t) => v(t) && t.constructor.name === "HTMLCollection" || !1, ro = (t) => u(t) && t.tagName === "IMG" || !1, io = (t) => {
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
- }, ao = (t) => v(t) && t.constructor.name === "WeakMap" || !1, uo = (t) => a(t) && ["SVG", "Image", "Video", "Canvas"].some((e) => t.constructor.name.includes(e)) || !1, lo = (t) => v(t) && t.constructor.name === "NodeList" || !1, po = (t) => k(t).dir === "rtl", fo = (t) => a(t) && t.constructor.name.includes("SVG") || !1, mo = (t) => a(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, de = (t, e) => t ? t.closest(e) || de(t.getRootNode().host, e) : null, go = (t, e) => u(t) ? t : (a(e) ? e : d()).querySelector(t), pe = (t, e) => (a(e) ? e : d()).getElementsByTagName(t), Eo = (t) => [...pe("*", t)].filter(le), vo = (t, e) => d(e).getElementById(t) || null, bo = (t, e) => (a(e) ? e : d()).querySelectorAll(t), ho = (t, e) => (e && a(e) ? e : d()).getElementsByClassName(
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
- ), yo = (t, e) => t.matches(e);
331
+ ), ko = (t, e) => t.matches(e);
332
332
  export {
333
- Cn as ArrayFrom,
333
+ Vn as ArrayFrom,
334
334
  H as DOMContentLoadedEvent,
335
335
  Z as DOMMouseScrollEvent,
336
336
  L as Data,
337
- xn as Float32ArrayFrom,
338
- Vn as Float64ArrayFrom,
337
+ Fn as Float32ArrayFrom,
338
+ Wn as Float64ArrayFrom,
339
339
  q as ObjectAssign,
340
340
  h as ObjectEntries,
341
- Pn as ObjectHasOwn,
342
- Un as ObjectKeys,
343
- Fn as ObjectValues,
344
- Gn as Timer,
341
+ qn as ObjectHasOwn,
342
+ Gn as ObjectKeys,
343
+ jn as ObjectValues,
344
+ Zn as Timer,
345
345
  j as abortEvent,
346
- Mn as addClass,
347
- tn as addEventListener,
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
- Ee as ariaExpanded,
356
- ve as ariaHasPopup,
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
- nn as bezierEasings,
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
- Wn as createCustomEvent,
373
+ Jn as createCustomEvent,
374
374
  $t as createElement,
375
375
  _t as createElementNS,
376
376
  Q as dispatchEvent,
377
- On as distinct,
378
- Tn as documentBody,
379
- Dn as documentElement,
377
+ Hn as distinct,
378
+ zn as documentBody,
379
+ xn as documentElement,
380
380
  N as documentHead,
381
- In as emulateAnimationEnd,
382
- zn as emulateTransitionEnd,
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
- Bn as focus,
390
+ Rn as focus,
385
391
  _ as focusEvent,
386
- xe as focusEvents,
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
- bn as getAttributeNS,
399
+ Mn as getAttributeNS,
394
400
  w as getBoundingClientRect,
395
- Eo as getCustomElements,
401
+ Ao as getCustomElements,
396
402
  d as getDocument,
397
- Jn as getDocumentBody,
403
+ _n as getDocumentBody,
398
404
  k as getDocumentElement,
399
- Kn as getDocumentHead,
405
+ to as getDocumentHead,
400
406
  te as getElementAnimationDelay,
401
407
  ee as getElementAnimationDuration,
402
- vo as getElementById,
403
- E as getElementStyle,
408
+ So as getElementById,
409
+ v as getElementStyle,
404
410
  ne as getElementTransitionDelay,
405
411
  oe as getElementTransitionDuration,
406
- ho as getElementsByClassName,
412
+ No as getElementsByClassName,
407
413
  pe as getElementsByTagName,
408
- Ln as getInstance,
409
- Xn as getNodeScroll,
410
- Yn as getParentNode,
411
- Zn as getRectRelativeToOffsetParent,
412
- ae as getUID,
413
- $n as getWindow,
414
- hn as hasAttribute,
415
- yn as hasAttributeNS,
416
- kn as hasClass,
417
- ln as isApple,
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
- _n as isCanvas,
425
+ co as isCanvas,
420
426
  le as isCustomElement,
421
427
  R as isDocument,
422
- to as isElement,
423
- eo as isElementInScrollRange,
424
- no as isElementInViewport,
425
- oo as isElementsArray,
426
- dn as isFirefox,
427
- so as isFunction,
428
- co as isHTMLCollection,
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
- ro as isHTMLImageElement,
431
- io as isJSON,
436
+ fo as isHTMLImageElement,
437
+ mo as isJSON,
432
438
  O as isMap,
433
- uo as isMedia,
434
- un as isMobile,
435
- a as isNode,
436
- lo as isNodeList,
439
+ vo as isMedia,
440
+ gn as isMobile,
441
+ i as isNode,
442
+ Eo as isNodeList,
437
443
  ce as isNumber,
438
- v as isObject,
439
- po as isRTL,
440
- fo as isSVGElement,
441
- ie as isScaledElement,
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
- mo as isTableElement,
445
- ao as isWeakMap,
450
+ yo as isTableElement,
451
+ go as isWeakMap,
446
452
  W as isWindow,
447
- Be as keyAlt,
448
- He as keyArrowDown,
449
- Ue as keyArrowLeft,
450
- Fe as keyArrowRight,
451
- Pe as keyArrowUp,
452
- We as keyBackspace,
453
- Re as keyCapsLock,
454
- Qe as keyControl,
455
- qe as keyDelete,
456
- Ge as keyEnter,
457
- je as keyEscape,
458
- Je as keyInsert,
459
- Ke as keyMeta,
460
- Xe as keyPause,
461
- Ye as keyScrollLock,
462
- Ze as keyShift,
463
- $e as keySpace,
464
- _e as keyTab,
465
- Ve as keyboardEventKeys,
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
- it as keyupEvent,
469
- at as loadEvent,
470
- Ce as loadstartEvent,
471
- yo as matches,
472
- Oe as mouseClickEvents,
473
- Ie as mouseHoverEvents,
474
- Le as mouseSwipeEvents,
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
- Et as mouseinEvent,
486
+ vt as mouseinEvent,
481
487
  gt as mouseleaveEvent,
482
488
  ht as mousemoveEvent,
483
- vt as mouseoutEvent,
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
- Hn as normalizeOptions,
496
+ Qn as normalizeOptions,
491
497
  x as normalizeValue,
492
498
  Kt as off,
493
- on as offsetHeight,
494
- sn as offsetWidth,
499
+ ln as offsetHeight,
500
+ dn as offsetWidth,
495
501
  Jt as on,
496
502
  Xt as one,
497
503
  At as orientationchangeEvent,
498
- Rn as passiveHandler,
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
- go as querySelector,
505
- bo as querySelectorAll,
510
+ wo as querySelector,
511
+ Mo as querySelectorAll,
506
512
  Dt as readystatechangeEvent,
507
- Qn as reflow,
508
- An as removeAttribute,
509
- Sn as removeAttributeNS,
510
- Nn as removeClass,
511
- en as removeEventListener,
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
- cn as scrollHeight,
516
- rn as scrollWidth,
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
- wn as setAttributeNS,
522
- qn as setElementStyle,
527
+ Tn as setAttributeNS,
528
+ Yn as setElementStyle,
523
529
  Vt as submitEvent,
524
- pn as support3DTransform,
525
- En as supportAnimation,
526
- fn as supportPassive,
527
- gn as supportTouch,
528
- mn as supportTransform,
529
- vn as supportTransition,
530
- an as tabindex,
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
- jn as toUpperCase,
533
- ze as touchEvents,
538
+ $n as toUpperCase,
539
+ Ue as touchEvents,
534
540
  Pt as touchcancelEvent,
535
541
  Ut as touchendEvent,
536
542
  Ht as touchmoveEvent,