@thednp/shorty 2.0.0-alpha5 → 2.0.0-alpha6

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