@thednp/shorty 2.0.4 → 2.0.6
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 +5 -5
- package/dist/shorty.cjs +18 -1
- package/dist/shorty.cjs.map +1 -1
- package/dist/shorty.d.ts +31 -18
- package/dist/shorty.js +18 -1
- package/dist/shorty.js.map +1 -1
- package/dist/shorty.mjs +451 -386
- package/dist/shorty.mjs.map +1 -1
- package/dts.config.ts +1 -7
- package/package.json +16 -28
- package/src/attr/hasAttribute.ts +2 -1
- package/src/attr/hasAttributeNS.ts +5 -2
- package/src/attr/removeAttribute.ts +2 -1
- package/src/attr/removeAttributeNS.ts +5 -2
- package/src/attr/setAttributeNS.ts +6 -2
- package/src/boolean/isApple.ts +6 -4
- package/src/boolean/isFirefox.ts +2 -2
- package/src/boolean/isMobile.ts +4 -4
- package/src/boolean/support3DTransform.ts +4 -2
- package/src/boolean/supportAnimation.ts +4 -2
- package/src/boolean/supportPassive.ts +6 -6
- package/src/boolean/supportTouch.ts +3 -2
- package/src/boolean/supportTransform.ts +4 -2
- package/src/boolean/supportTransition.ts +4 -2
- package/src/event/off.ts +5 -1
- package/src/event/on.ts +5 -1
- package/src/event/one.ts +5 -5
- package/src/get/getBoundingClientRect.ts +10 -5
- package/src/get/getDocument.ts +4 -4
- package/src/get/getDocumentBody.ts +1 -1
- package/src/get/getDocumentElement.ts +1 -1
- package/src/get/getDocumentHead.ts +4 -2
- package/src/get/getElementAnimationDelay.ts +9 -6
- package/src/get/getElementAnimationDuration.ts +9 -6
- package/src/get/getElementStyle.ts +2 -2
- package/src/get/getElementTransitionDelay.ts +9 -8
- package/src/get/getElementTransitionDuration.ts +9 -8
- package/src/get/getNodeScroll.ts +4 -2
- package/src/get/getParentNode.ts +5 -5
- package/src/get/getRectRelativeToOffsetParent.ts +9 -6
- package/src/get/getUID.ts +1 -1
- package/src/get/getWindow.ts +2 -2
- package/src/index.ts +425 -415
- package/src/interface/event.d.ts +49 -41
- package/src/interface/fn.ts +1 -0
- package/src/interface/originalEvent.d.ts +1 -1
- package/src/is/isArray.ts +2 -1
- package/src/is/isCanvas.ts +2 -2
- package/src/is/isCustomElement.ts +5 -3
- package/src/is/isDocument.ts +3 -2
- package/src/is/isElement.ts +3 -2
- package/src/is/isElementInScrollRange.ts +3 -3
- package/src/is/isElementInViewport.ts +5 -4
- package/src/is/isElementsArray.ts +2 -2
- package/src/is/isFunction.ts +4 -2
- package/src/is/isHTMLCollection.ts +2 -2
- package/src/is/isHTMLElement.ts +1 -1
- package/src/is/isHTMLImageElement.ts +2 -2
- package/src/is/isJSON.ts +2 -2
- package/src/is/isMap.ts +3 -3
- package/src/is/isMedia.ts +9 -3
- package/src/is/isNode.ts +5 -3
- package/src/is/isNodeList.ts +2 -2
- package/src/is/isNumber.ts +2 -1
- package/src/is/isObject.ts +1 -1
- package/src/is/isRTL.ts +2 -2
- package/src/is/isSVGElement.ts +2 -2
- package/src/is/isScaledElement.ts +4 -3
- package/src/is/isShadowRoot.ts +2 -2
- package/src/is/isString.ts +2 -1
- package/src/is/isTableElement.ts +6 -3
- package/src/is/isWeakMap.ts +3 -3
- package/src/is/isWindow.ts +2 -2
- package/src/misc/Float32ArrayFrom.ts +3 -2
- package/src/misc/Float64ArrayFrom.ts +3 -2
- package/src/misc/ObjectAssign.ts +15 -4
- package/src/misc/ObjectEntries.ts +1 -1
- package/src/misc/ObjectHasOwn.ts +3 -2
- package/src/misc/ObjectKeys.ts +2 -1
- package/src/misc/ObjectValues.ts +3 -2
- package/src/misc/createCustomEvent.ts +8 -5
- package/src/misc/createElement.ts +6 -4
- package/src/misc/createElementNS.ts +3 -3
- package/src/misc/data.ts +4 -7
- package/src/misc/dispatchEvent.ts +2 -1
- package/src/misc/distinct.ts +2 -1
- package/src/misc/emulateAnimationEnd.ts +12 -9
- package/src/misc/emulateTransitionEnd.ts +11 -8
- package/src/misc/focus.ts +2 -1
- package/src/misc/focusTrap.ts +67 -0
- package/src/misc/getInstance.ts +1 -1
- package/src/misc/normalizeOptions.ts +16 -13
- package/src/misc/normalizeValue.ts +8 -6
- package/src/misc/setElementStyle.ts +9 -6
- package/src/misc/timer.ts +15 -8
- package/src/selectors/closest.ts +2 -2
- package/src/selectors/getCustomElements.ts +4 -5
- package/src/selectors/getElementById.ts +3 -3
- package/src/selectors/getElementsByClassName.ts +5 -5
- package/src/selectors/getElementsByTagName.ts +7 -5
- package/src/selectors/matches.ts +2 -1
- package/src/selectors/querySelector.ts +9 -6
- package/src/selectors/querySelectorAll.ts +6 -3
- package/src/strings/DOMContentLoadedEvent.ts +1 -1
- package/src/strings/DOMMouseScrollEvent.ts +1 -1
- package/src/strings/abortEvent.ts +1 -1
- package/src/strings/addEventListener.ts +1 -1
- package/src/strings/animationDelay.ts +1 -1
- package/src/strings/animationDuration.ts +1 -1
- package/src/strings/animationEndEvent.ts +1 -1
- package/src/strings/animationName.ts +1 -1
- package/src/strings/ariaChecked.ts +1 -1
- package/src/strings/ariaDescribedBy.ts +1 -1
- package/src/strings/ariaDescription.ts +1 -1
- package/src/strings/ariaExpanded.ts +1 -1
- package/src/strings/ariaHasPopup.ts +1 -1
- package/src/strings/ariaHidden.ts +1 -1
- package/src/strings/ariaLabel.ts +1 -1
- package/src/strings/ariaLabelledBy.ts +1 -1
- package/src/strings/ariaModal.ts +1 -1
- package/src/strings/ariaPressed.ts +1 -1
- package/src/strings/ariaSelected.ts +1 -1
- package/src/strings/ariaValueMax.ts +1 -1
- package/src/strings/ariaValueMin.ts +1 -1
- package/src/strings/ariaValueNow.ts +1 -1
- package/src/strings/ariaValueText.ts +1 -1
- package/src/strings/beforeunloadEvent.ts +1 -1
- package/src/strings/bezierEasings.ts +25 -25
- package/src/strings/blurEvent.ts +1 -1
- package/src/strings/changeEvent.ts +1 -1
- package/src/strings/contextmenuEvent.ts +1 -1
- package/src/strings/dragEvent.ts +1 -1
- package/src/strings/dragendEvent.ts +1 -1
- package/src/strings/dragenterEvent.ts +1 -1
- package/src/strings/dragleaveEvent.ts +1 -1
- package/src/strings/dragoverEvent.ts +1 -1
- package/src/strings/dragstartEvent.ts +1 -1
- package/src/strings/errorEvent.ts +1 -1
- package/src/strings/focusEvent.ts +1 -1
- package/src/strings/focusEvents.ts +1 -1
- package/src/strings/focusableSelector.ts +4 -0
- package/src/strings/focusinEvent.ts +1 -1
- package/src/strings/focusoutEvent.ts +1 -1
- package/src/strings/gesturechangeEvent.ts +1 -1
- package/src/strings/gestureendEvent.ts +1 -1
- package/src/strings/gesturestartEvent.ts +1 -1
- package/src/strings/keyAlt.ts +1 -1
- package/src/strings/keyArrowDown.ts +1 -1
- package/src/strings/keyArrowLeft.ts +1 -1
- package/src/strings/keyArrowRight.ts +1 -1
- package/src/strings/keyArrowUp.ts +1 -1
- package/src/strings/keyBackspace.ts +1 -1
- package/src/strings/keyCapsLock.ts +1 -1
- package/src/strings/keyControl.ts +1 -1
- package/src/strings/keyDelete.ts +1 -1
- package/src/strings/keyEnter.ts +1 -1
- package/src/strings/keyEscape.ts +1 -1
- package/src/strings/keyInsert.ts +1 -1
- package/src/strings/keyMeta.ts +1 -1
- package/src/strings/keyNumpadEnter.ts +1 -1
- package/src/strings/keyPause.ts +1 -1
- package/src/strings/keyScrollLock.ts +1 -1
- package/src/strings/keyShift.ts +1 -1
- package/src/strings/keySpace.ts +1 -1
- package/src/strings/keyTab.ts +1 -1
- package/src/strings/keyboardEventKeys.ts +19 -19
- package/src/strings/keydownEvent.ts +1 -1
- package/src/strings/keypressEvent.ts +1 -1
- package/src/strings/keyupEvent.ts +1 -1
- package/src/strings/loadEvent.ts +1 -1
- package/src/strings/loadstartEvent.ts +1 -1
- package/src/strings/mouseClickEvents.ts +1 -1
- package/src/strings/mouseHoverEvents.ts +3 -4
- package/src/strings/mouseSwipeEvents.ts +4 -4
- package/src/strings/mouseclickEvent.ts +1 -1
- package/src/strings/mousedblclickEvent.ts +1 -1
- package/src/strings/mousedownEvent.ts +1 -1
- package/src/strings/mouseenterEvent.ts +1 -1
- package/src/strings/mousehoverEvent.ts +1 -1
- package/src/strings/mouseinEvent.ts +1 -1
- package/src/strings/mouseleaveEvent.ts +1 -1
- package/src/strings/mousemoveEvent.ts +1 -1
- package/src/strings/mouseoutEvent.ts +1 -1
- package/src/strings/mouseoverEvent.ts +1 -1
- package/src/strings/mouseupEvent.ts +1 -1
- package/src/strings/mousewheelEvent.ts +1 -1
- package/src/strings/moveEvent.ts +1 -1
- package/src/strings/nativeEvents.ts +50 -50
- package/src/strings/offsetHeight.ts +1 -1
- package/src/strings/offsetWidth.ts +1 -1
- package/src/strings/orientationchangeEvent.ts +1 -1
- package/src/strings/pointercancelEvent.ts +1 -1
- package/src/strings/pointerdownEvent.ts +1 -1
- package/src/strings/pointerleaveEvent.ts +1 -1
- package/src/strings/pointermoveEvent.ts +1 -1
- package/src/strings/pointerupEvent.ts +1 -1
- package/src/strings/readystatechangeEvent.ts +1 -1
- package/src/strings/removeEventListener.ts +1 -1
- package/src/strings/resetEvent.ts +1 -1
- package/src/strings/resizeEvent.ts +1 -1
- package/src/strings/scrollEvent.ts +1 -1
- package/src/strings/scrollHeight.ts +1 -1
- package/src/strings/scrollWidth.ts +1 -1
- package/src/strings/selectEvent.ts +1 -1
- package/src/strings/selectendEvent.ts +1 -1
- package/src/strings/selectstartEvent.ts +1 -1
- package/src/strings/submitEvent.ts +1 -1
- package/src/strings/tabindex.ts +1 -1
- package/src/strings/touchEvents.ts +4 -4
- package/src/strings/touchcancelEvent.ts +1 -1
- package/src/strings/touchendEvent.ts +1 -1
- package/src/strings/touchmoveEvent.ts +1 -1
- package/src/strings/touchstartEvent.ts +1 -1
- package/src/strings/transitionDelay.ts +1 -1
- package/src/strings/transitionDuration.ts +1 -1
- package/src/strings/transitionEndEvent.ts +1 -1
- package/src/strings/transitionProperty.ts +1 -1
- package/src/strings/unloadEvent.ts +1 -1
- package/src/strings/userAgentData.ts +2 -2
- package/test/fixtures/getExampleDom.ts +12 -8
- package/test/is.test.ts +15 -11
- package/test/misc.test.ts +65 -17
- package/{vite.config.ts → vite.config.mts} +4 -8
- package/{vitest.config-ui.ts → vitest.config-ui.mts} +5 -0
- package/{vitest.config.ts → vitest.config.mts} +5 -0
package/dist/shorty.mjs
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
const
|
|
1
|
+
const he = "aria-checked", ye = "aria-description", we = "aria-describedby", Ae = "aria-expanded", Se = "aria-haspopup", X = "aria-hidden", Ne = "aria-label", Te = "aria-labelledby", Me = "aria-modal", ke = "aria-pressed", De = "aria-selected", Ce = "aria-valuemin", Oe = "aria-valuemax", Le = "aria-valuenow", Ie = "aria-valuetext", Y = "abort", Z = "beforeunload", _ = "blur", $ = "change", tt = "contextmenu", P = "DOMContentLoaded", et = "DOMMouseScroll", nt = "error", ot = "focus", st = "focusin", ct = "focusout", rt = "gesturechange", at = "gestureend", it = "gesturestart", ut = "keydown", lt = "keypress", dt = "keyup", pt = "load", ft = "click", mt = "dblclick", gt = "mousedown", vt = "mouseup", Et = "hover", bt = "mouseenter", ht = "mouseleave", yt = "mousein", wt = "mouseout", At = "mouseover", St = "mousemove", Nt = "mousewheel", Tt = "move", Mt = "orientationchange", kt = "pointercancel", Dt = "pointerdown", Ct = "pointerleave", Ot = "pointermove", Lt = "pointerup", It = "readystatechange", xt = "reset", zt = "resize", Vt = "select", Bt = "selectend", Ft = "selectstart", Ht = "scroll", Pt = "submit", Ut = "touchstart", Wt = "touchmove", Rt = "touchcancel", Qt = "touchend", jt = "unload", xe = {
|
|
2
2
|
DOMContentLoaded: P,
|
|
3
|
-
DOMMouseScroll:
|
|
4
|
-
abort:
|
|
5
|
-
beforeunload:
|
|
6
|
-
blur:
|
|
7
|
-
change:
|
|
8
|
-
click:
|
|
9
|
-
contextmenu:
|
|
10
|
-
dblclick:
|
|
11
|
-
error:
|
|
12
|
-
focus:
|
|
13
|
-
focusin:
|
|
14
|
-
focusout:
|
|
15
|
-
gesturechange:
|
|
16
|
-
gestureend:
|
|
17
|
-
gesturestart:
|
|
18
|
-
hover:
|
|
19
|
-
keydown:
|
|
20
|
-
keypress:
|
|
21
|
-
keyup:
|
|
22
|
-
load:
|
|
23
|
-
mousedown:
|
|
24
|
-
mousemove:
|
|
25
|
-
mousein:
|
|
26
|
-
mouseout:
|
|
27
|
-
mouseenter:
|
|
28
|
-
mouseleave:
|
|
29
|
-
mouseover:
|
|
30
|
-
mouseup:
|
|
31
|
-
mousewheel:
|
|
32
|
-
move:
|
|
33
|
-
orientationchange:
|
|
34
|
-
pointercancel:
|
|
35
|
-
pointerdown:
|
|
36
|
-
pointerleave:
|
|
37
|
-
pointermove:
|
|
38
|
-
pointerup:
|
|
39
|
-
readystatechange:
|
|
40
|
-
reset:
|
|
41
|
-
resize:
|
|
42
|
-
scroll:
|
|
43
|
-
select:
|
|
44
|
-
selectend:
|
|
45
|
-
selectstart:
|
|
46
|
-
submit:
|
|
47
|
-
touchcancel:
|
|
48
|
-
touchend:
|
|
49
|
-
touchmove:
|
|
50
|
-
touchstart:
|
|
51
|
-
unload:
|
|
52
|
-
},
|
|
3
|
+
DOMMouseScroll: et,
|
|
4
|
+
abort: Y,
|
|
5
|
+
beforeunload: Z,
|
|
6
|
+
blur: _,
|
|
7
|
+
change: $,
|
|
8
|
+
click: ft,
|
|
9
|
+
contextmenu: tt,
|
|
10
|
+
dblclick: mt,
|
|
11
|
+
error: nt,
|
|
12
|
+
focus: ot,
|
|
13
|
+
focusin: st,
|
|
14
|
+
focusout: ct,
|
|
15
|
+
gesturechange: rt,
|
|
16
|
+
gestureend: at,
|
|
17
|
+
gesturestart: it,
|
|
18
|
+
hover: Et,
|
|
19
|
+
keydown: ut,
|
|
20
|
+
keypress: lt,
|
|
21
|
+
keyup: dt,
|
|
22
|
+
load: pt,
|
|
23
|
+
mousedown: gt,
|
|
24
|
+
mousemove: St,
|
|
25
|
+
mousein: yt,
|
|
26
|
+
mouseout: wt,
|
|
27
|
+
mouseenter: bt,
|
|
28
|
+
mouseleave: ht,
|
|
29
|
+
mouseover: At,
|
|
30
|
+
mouseup: vt,
|
|
31
|
+
mousewheel: Nt,
|
|
32
|
+
move: Tt,
|
|
33
|
+
orientationchange: Mt,
|
|
34
|
+
pointercancel: kt,
|
|
35
|
+
pointerdown: Dt,
|
|
36
|
+
pointerleave: Ct,
|
|
37
|
+
pointermove: Ot,
|
|
38
|
+
pointerup: Lt,
|
|
39
|
+
readystatechange: It,
|
|
40
|
+
reset: xt,
|
|
41
|
+
resize: zt,
|
|
42
|
+
scroll: Ht,
|
|
43
|
+
select: Vt,
|
|
44
|
+
selectend: Bt,
|
|
45
|
+
selectstart: Ft,
|
|
46
|
+
submit: Pt,
|
|
47
|
+
touchcancel: Rt,
|
|
48
|
+
touchend: Qt,
|
|
49
|
+
touchmove: Wt,
|
|
50
|
+
touchstart: Ut,
|
|
51
|
+
unload: jt
|
|
52
|
+
}, ze = "drag", Ve = "dragstart", Be = "dragenter", Fe = "dragleave", He = "dragover", Pe = "dragend", Ue = "loadstart", We = {
|
|
53
53
|
start: "mousedown",
|
|
54
54
|
end: "mouseup",
|
|
55
55
|
move: "mousemove",
|
|
56
56
|
cancel: "mouseleave"
|
|
57
|
-
},
|
|
58
|
-
/* istanbul ignore next */
|
|
57
|
+
}, Re = { down: "mousedown", up: "mouseup" }, Qe = "onmouseleave" in document ? ["mouseenter", "mouseleave"] : (
|
|
58
|
+
/* istanbul ignore next @preserve */
|
|
59
59
|
["mouseover", "mouseout"]
|
|
60
|
-
),
|
|
60
|
+
), je = {
|
|
61
61
|
start: "touchstart",
|
|
62
62
|
end: "touchend",
|
|
63
63
|
move: "touchmove",
|
|
64
64
|
cancel: "touchcancel"
|
|
65
|
-
},
|
|
65
|
+
}, qe = { in: "focusin", out: "focusout" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]', Ge = {
|
|
66
66
|
Backspace: "Backspace",
|
|
67
67
|
// 8
|
|
68
68
|
Tab: "Tab",
|
|
@@ -101,7 +101,7 @@ const pe = "aria-checked", me = "aria-description", fe = "aria-describedby", ge
|
|
|
101
101
|
// 93
|
|
102
102
|
ScrollLock: "ScrollLock"
|
|
103
103
|
// 145
|
|
104
|
-
},
|
|
104
|
+
}, Ke = "Alt", Je = "ArrowDown", Xe = "ArrowUp", Ye = "ArrowLeft", Ze = "ArrowRight", _e = "Backspace", $e = "CapsLock", tn = "Control", en = "Delete", nn = "Enter", on = "NumpadEnter", sn = "Escape", cn = "Insert", rn = "Meta", an = "Pause", un = "ScrollLock", ln = "Shift", dn = "Space", pn = "Tab", Gt = "animationDuration", Kt = "animationDelay", U = "animationName", D = "animationend", Jt = "transitionDuration", Xt = "transitionDelay", C = "transitionend", W = "transitionProperty", fn = "addEventListener", mn = "removeEventListener", gn = {
|
|
105
105
|
linear: "linear",
|
|
106
106
|
easingSinusoidalIn: "cubic-bezier(0.47,0,0.745,0.715)",
|
|
107
107
|
easingSinusoidalOut: "cubic-bezier(0.39,0.575,0.565,1)",
|
|
@@ -127,45 +127,66 @@ const pe = "aria-checked", me = "aria-description", fe = "aria-describedby", ge
|
|
|
127
127
|
easingBackIn: "cubic-bezier(0.6,-0.28,0.735,0.045)",
|
|
128
128
|
easingBackOut: "cubic-bezier(0.175,0.885,0.32,1.275)",
|
|
129
129
|
easingBackInOut: "cubic-bezier(0.68,-0.55,0.265,1.55)"
|
|
130
|
-
},
|
|
130
|
+
}, vn = "offsetHeight", En = "offsetWidth", bn = "scrollHeight", hn = "scrollWidth", yn = "tabindex", Yt = navigator.userAgentData, A = Yt, { userAgent: Zt } = navigator, S = Zt, z = /iPhone|iPad|iPod|Android/i;
|
|
131
131
|
let O = !1;
|
|
132
|
-
|
|
132
|
+
// istanbul ignore else @preserve
|
|
133
133
|
A ? O = A.brands.some((t) => z.test(t.brand)) : O = z.test(S);
|
|
134
|
-
const
|
|
134
|
+
const wn = O, V = /(iPhone|iPod|iPad)/, An = A ? A.brands.some(
|
|
135
|
+
(t) => V.test(t.brand)
|
|
136
|
+
) : (
|
|
135
137
|
/* istanbul ignore next @preserve */
|
|
136
|
-
|
|
137
|
-
),
|
|
138
|
+
V.test(S)
|
|
139
|
+
), Sn = S ? S.includes("Firefox") : (
|
|
138
140
|
/* istanbul ignore next @preserve */
|
|
139
141
|
!1
|
|
140
|
-
), { head: N } = document,
|
|
142
|
+
), { head: N } = document, Nn = ["webkitPerspective", "perspective"].some(
|
|
143
|
+
(t) => t in N.style
|
|
144
|
+
), R = (t, e, n, o) => {
|
|
141
145
|
const s = o || !1;
|
|
142
|
-
t.addEventListener(
|
|
143
|
-
|
|
146
|
+
t.addEventListener(
|
|
147
|
+
e,
|
|
148
|
+
n,
|
|
149
|
+
s
|
|
150
|
+
);
|
|
151
|
+
}, Q = (t, e, n, o) => {
|
|
144
152
|
const s = o || !1;
|
|
145
|
-
t.removeEventListener(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
t.removeEventListener(
|
|
154
|
+
e,
|
|
155
|
+
n,
|
|
156
|
+
s
|
|
157
|
+
);
|
|
158
|
+
}, _t = (t, e, n, o) => {
|
|
159
|
+
const s = (c) => {
|
|
160
|
+
// istanbul ignore else @preserve
|
|
161
|
+
(c.target === t || c.currentTarget === t) && (n.apply(t, [c]), Q(t, e, s, o));
|
|
150
162
|
};
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
},
|
|
163
|
+
R(t, e, s, o);
|
|
164
|
+
}, $t = () => {
|
|
165
|
+
}, Tn = (() => {
|
|
154
166
|
let t = !1;
|
|
155
167
|
try {
|
|
156
168
|
const e = Object.defineProperty({}, "passive", {
|
|
157
169
|
get: () => (t = !0, t)
|
|
158
170
|
});
|
|
159
|
-
|
|
171
|
+
// istanbul ignore next @preserve
|
|
172
|
+
_t(document, P, $t, e);
|
|
160
173
|
} catch {
|
|
161
174
|
}
|
|
162
175
|
return t;
|
|
163
|
-
})(),
|
|
164
|
-
|
|
176
|
+
})(), Mn = ["webkitTransform", "transform"].some(
|
|
177
|
+
(t) => t in N.style
|
|
178
|
+
), kn = "ontouchstart" in window || /* istanbul ignore next @preserve */
|
|
179
|
+
"msMaxTouchPoints" in navigator, Dn = ["webkitAnimation", "animation"].some(
|
|
180
|
+
(t) => t in N.style
|
|
181
|
+
), Cn = ["webkitTransition", "transition"].some(
|
|
182
|
+
(t) => t in N.style
|
|
183
|
+
), j = (t, e) => t.getAttribute(e), On = (t, e, n) => e.getAttributeNS(t, n), te = (t, e) => t.hasAttribute(e), Ln = (t, e, n) => e.hasAttributeNS(t, n), In = (t, e, n) => t.setAttribute(e, n), xn = (t, e, n, o) => e.setAttributeNS(t, n, o), zn = (t, e) => t.removeAttribute(e), Vn = (t, e, n) => e.removeAttributeNS(t, n), Bn = (t, ...e) => {
|
|
165
184
|
t.classList.add(...e);
|
|
166
|
-
},
|
|
185
|
+
}, Fn = (t, ...e) => {
|
|
167
186
|
t.classList.remove(...e);
|
|
168
|
-
},
|
|
187
|
+
}, Hn = (t, e) => t.classList.contains(e), { body: Pn } = document, { documentElement: Un } = document, Wn = (t) => Array.from(t), v = (t) => t != null && typeof t == "object" || !1, i = (t) => v(t) && typeof t.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(
|
|
188
|
+
(e) => t.nodeType === e
|
|
189
|
+
) || !1, l = (t) => i(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {
|
|
169
190
|
data: E,
|
|
170
191
|
/**
|
|
171
192
|
* Sets web components data.
|
|
@@ -175,7 +196,8 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
175
196
|
* @param instance the component instance
|
|
176
197
|
*/
|
|
177
198
|
set: (t, e, n) => {
|
|
178
|
-
if (!
|
|
199
|
+
if (!l(t)) return;
|
|
200
|
+
// istanbul ignore else @preserve
|
|
179
201
|
E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);
|
|
180
202
|
},
|
|
181
203
|
/**
|
|
@@ -193,7 +215,7 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
193
215
|
* @returns the instance
|
|
194
216
|
*/
|
|
195
217
|
get: (t, e) => {
|
|
196
|
-
if (!
|
|
218
|
+
if (!l(t) || !e) return null;
|
|
197
219
|
const n = L.getAllFor(e);
|
|
198
220
|
return t && n && n.get(t) || null;
|
|
199
221
|
},
|
|
@@ -205,29 +227,32 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
205
227
|
*/
|
|
206
228
|
remove: (t, e) => {
|
|
207
229
|
const n = L.getAllFor(e);
|
|
208
|
-
!n || !
|
|
230
|
+
if (!n || !l(t)) return;
|
|
231
|
+
n.delete(t);
|
|
232
|
+
// istanbul ignore else @preserve
|
|
233
|
+
n.size === 0 && E.delete(e);
|
|
209
234
|
}
|
|
210
|
-
},
|
|
235
|
+
}, Rn = (t, e) => L.get(t, e), T = (t) => typeof t == "string" || !1, q = (t) => v(t) && t.constructor.name === "Window" || !1, G = (t) => i(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t.document : G(t) ? t : i(t) ? t.ownerDocument : globalThis.document, M = (t, ...e) => Object.assign(t, ...e), ee = (t) => {
|
|
211
236
|
if (!t) return;
|
|
212
|
-
if (
|
|
237
|
+
if (T(t))
|
|
213
238
|
return d().createElement(t);
|
|
214
|
-
const { tagName: e } = t, n =
|
|
239
|
+
const { tagName: e } = t, n = ee(e);
|
|
215
240
|
if (!n) return;
|
|
216
241
|
const o = { ...t };
|
|
217
242
|
return delete o.tagName, M(n, o);
|
|
218
|
-
},
|
|
243
|
+
}, ne = (t, e) => {
|
|
219
244
|
if (!t || !e) return;
|
|
220
|
-
if (
|
|
245
|
+
if (T(e))
|
|
221
246
|
return d().createElementNS(t, e);
|
|
222
|
-
const { tagName: n } = e, o =
|
|
247
|
+
const { tagName: n } = e, o = ne(t, n);
|
|
223
248
|
if (!o) return;
|
|
224
249
|
const s = { ...e };
|
|
225
250
|
return delete s.tagName, M(o, s);
|
|
226
|
-
},
|
|
251
|
+
}, K = (t, e) => t.dispatchEvent(e), Qn = (t, e, n) => n.indexOf(t) === e, g = (t, e) => {
|
|
227
252
|
const n = getComputedStyle(t), o = e.replace("webkit", "Webkit").replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
228
253
|
return n.getPropertyValue(o);
|
|
229
|
-
},
|
|
230
|
-
const e = g(t,
|
|
254
|
+
}, oe = (t) => {
|
|
255
|
+
const e = g(t, U), n = g(t, Kt), o = n.includes("ms") ? (
|
|
231
256
|
/* istanbul ignore next */
|
|
232
257
|
1
|
|
233
258
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
@@ -235,8 +260,8 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
235
260
|
/* istanbul ignore next */
|
|
236
261
|
0
|
|
237
262
|
) : s;
|
|
238
|
-
},
|
|
239
|
-
const e = g(t,
|
|
263
|
+
}, se = (t) => {
|
|
264
|
+
const e = g(t, U), n = g(t, Gt), o = n.includes("ms") ? (
|
|
240
265
|
/* istanbul ignore next */
|
|
241
266
|
1
|
|
242
267
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : 0;
|
|
@@ -244,24 +269,24 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
244
269
|
/* istanbul ignore next */
|
|
245
270
|
0
|
|
246
271
|
) : s;
|
|
247
|
-
},
|
|
272
|
+
}, jn = (t, e) => {
|
|
248
273
|
let n = 0;
|
|
249
|
-
const o = new Event(D), s =
|
|
274
|
+
const o = new Event(D), s = se(t), c = oe(t);
|
|
250
275
|
if (s) {
|
|
251
|
-
const a = (
|
|
252
|
-
|
|
253
|
-
|
|
276
|
+
const a = (u) => {
|
|
277
|
+
// istanbul ignore else @preserve
|
|
278
|
+
u.target === t && (e.apply(t, [u]), t.removeEventListener(D, a), n = 1);
|
|
254
279
|
};
|
|
255
280
|
t.addEventListener(D, a), setTimeout(() => {
|
|
256
|
-
|
|
257
|
-
n ||
|
|
258
|
-
}, s +
|
|
281
|
+
// istanbul ignore next @preserve
|
|
282
|
+
n || K(t, o);
|
|
283
|
+
}, s + c + 17);
|
|
259
284
|
} else {
|
|
260
|
-
|
|
285
|
+
// istanbul ignore next @preserve
|
|
261
286
|
e.apply(t, [o]);
|
|
262
287
|
}
|
|
263
|
-
},
|
|
264
|
-
const e = g(t,
|
|
288
|
+
}, ce = (t) => {
|
|
289
|
+
const e = g(t, W), n = g(t, Xt), o = n.includes("ms") ? (
|
|
265
290
|
/* istanbul ignore next */
|
|
266
291
|
1
|
|
267
292
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : (
|
|
@@ -272,8 +297,8 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
272
297
|
/* istanbul ignore next */
|
|
273
298
|
0
|
|
274
299
|
) : s;
|
|
275
|
-
},
|
|
276
|
-
const e = g(t,
|
|
300
|
+
}, re = (t) => {
|
|
301
|
+
const e = g(t, W), n = g(t, Jt), o = n.includes("ms") ? (
|
|
277
302
|
/* istanbul ignore next */
|
|
278
303
|
1
|
|
279
304
|
) : 1e3, s = e && e !== "none" ? parseFloat(n) * o : (
|
|
@@ -284,47 +309,54 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
284
309
|
/* istanbul ignore next */
|
|
285
310
|
0
|
|
286
311
|
) : s;
|
|
287
|
-
},
|
|
312
|
+
}, qn = (t, e) => {
|
|
288
313
|
let n = 0;
|
|
289
|
-
const o = new Event(C), s =
|
|
314
|
+
const o = new Event(C), s = re(t), c = ce(t);
|
|
290
315
|
if (s) {
|
|
291
|
-
const a = (
|
|
292
|
-
|
|
293
|
-
|
|
316
|
+
const a = (u) => {
|
|
317
|
+
// istanbul ignore else @preserve
|
|
318
|
+
u.target === t && (e.apply(t, [u]), t.removeEventListener(C, a), n = 1);
|
|
294
319
|
};
|
|
295
320
|
t.addEventListener(C, a), setTimeout(() => {
|
|
296
|
-
|
|
297
|
-
n ||
|
|
298
|
-
}, s +
|
|
321
|
+
// istanbul ignore next @preserve
|
|
322
|
+
n || K(t, o);
|
|
323
|
+
}, s + c + 17);
|
|
299
324
|
} else
|
|
300
325
|
e.apply(t, [o]);
|
|
301
|
-
},
|
|
302
|
-
const s = { ...n },
|
|
303
|
-
return w(
|
|
304
|
-
const y = o && typeof
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
326
|
+
}, Gn = (t) => Float32Array.from(Array.from(t)), Kn = (t) => Float64Array.from(Array.from(t)), Jn = (t, e) => t.focus(e), B = (t) => ["true", !0].includes(t) ? !0 : ["false", !1].includes(t) ? !1 : ["null", "", null, void 0].includes(t) ? null : t !== "" && !Number.isNaN(+t) ? +t : t, w = (t) => Object.entries(t), ae = (t) => t.toLowerCase(), Xn = (t, e, n, o) => {
|
|
327
|
+
const s = { ...n }, c = { ...t.dataset }, a = { ...e }, u = {}, p = "title";
|
|
328
|
+
return w(c).forEach(([r, f]) => {
|
|
329
|
+
const y = o && typeof r == "string" && r.includes(o) ? r.replace(o, "").replace(
|
|
330
|
+
/[A-Z]/g,
|
|
331
|
+
(J) => ae(J)
|
|
332
|
+
) : (
|
|
333
|
+
/* istanbul ignore next @preserve */
|
|
334
|
+
r
|
|
335
|
+
);
|
|
336
|
+
u[y] = B(f);
|
|
337
|
+
}), w(s).forEach(([r, f]) => {
|
|
338
|
+
s[r] = B(f);
|
|
339
|
+
}), w(e).forEach(([r, f]) => {
|
|
340
|
+
// istanbul ignore else @preserve
|
|
341
|
+
r in s ? a[r] = s[r] : r in u ? a[r] = u[r] : a[r] = r === p ? j(t, p) : f;
|
|
310
342
|
}), a;
|
|
311
|
-
},
|
|
343
|
+
}, Yn = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), Zn = (t) => Object.keys(t), _n = (t) => Object.values(t), $n = (t) => Object.fromEntries(t), to = (t, e) => {
|
|
312
344
|
const n = new CustomEvent(t, {
|
|
313
345
|
cancelable: !0,
|
|
314
346
|
bubbles: !0
|
|
315
347
|
});
|
|
316
|
-
|
|
348
|
+
// istanbul ignore else @preserve
|
|
317
349
|
return v(e) && M(n, e), n;
|
|
318
|
-
},
|
|
350
|
+
}, eo = { passive: !0 }, no = (t) => t.offsetHeight, oo = (t, e) => {
|
|
319
351
|
w(e).forEach(([n, o]) => {
|
|
320
|
-
if (o &&
|
|
352
|
+
if (o && T(n) && n.includes("--"))
|
|
321
353
|
t.style.setProperty(n, o);
|
|
322
354
|
else {
|
|
323
355
|
const s = {};
|
|
324
356
|
s[n] = o, M(t.style, s);
|
|
325
357
|
}
|
|
326
358
|
});
|
|
327
|
-
}, I = (t) => v(t) && t.constructor.name === "Map" || !1,
|
|
359
|
+
}, I = (t) => v(t) && t.constructor.name === "Map" || !1, ie = (t) => typeof t == "number" || !1, m = /* @__PURE__ */ new Map(), so = {
|
|
328
360
|
/**
|
|
329
361
|
* Sets a new timeout timer for an element, or element -> key association.
|
|
330
362
|
*
|
|
@@ -334,7 +366,13 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
334
366
|
* @param key a unique key
|
|
335
367
|
*/
|
|
336
368
|
set: (t, e, n, o) => {
|
|
337
|
-
|
|
369
|
+
if (!l(t)) return;
|
|
370
|
+
// istanbul ignore else @preserve
|
|
371
|
+
if (o && o.length) {
|
|
372
|
+
// istanbul ignore else @preserve
|
|
373
|
+
m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n));
|
|
374
|
+
} else
|
|
375
|
+
m.set(t, setTimeout(e, n));
|
|
338
376
|
},
|
|
339
377
|
/**
|
|
340
378
|
* Returns the timer associated with the target.
|
|
@@ -344,10 +382,10 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
344
382
|
* @returns the timer
|
|
345
383
|
*/
|
|
346
384
|
get: (t, e) => {
|
|
347
|
-
if (!
|
|
348
|
-
const n =
|
|
349
|
-
return e && n && I(n) ? n.get(e) || /* istanbul ignore next */
|
|
350
|
-
null :
|
|
385
|
+
if (!l(t)) return null;
|
|
386
|
+
const n = m.get(t);
|
|
387
|
+
return e && n && I(n) ? n.get(e) || /* istanbul ignore next @preserve */
|
|
388
|
+
null : ie(n) ? n : null;
|
|
351
389
|
},
|
|
352
390
|
/**
|
|
353
391
|
* Clears the element's timer.
|
|
@@ -356,312 +394,339 @@ const gn = O, x = /(iPhone|iPod|iPad)/, vn = A ? A.brands.some((t) => x.test(t.b
|
|
|
356
394
|
* @param key a unique key
|
|
357
395
|
*/
|
|
358
396
|
clear: (t, e) => {
|
|
359
|
-
if (!
|
|
360
|
-
const n =
|
|
361
|
-
e && e.length && I(n)
|
|
397
|
+
if (!l(t)) return;
|
|
398
|
+
const n = m.get(t);
|
|
399
|
+
if (e && e.length && I(n)) {
|
|
400
|
+
clearTimeout(n.get(e)), n.delete(e);
|
|
401
|
+
// istanbul ignore else @preserve
|
|
402
|
+
n.size === 0 && m.delete(t);
|
|
403
|
+
} else
|
|
404
|
+
clearTimeout(n), m.delete(t);
|
|
362
405
|
}
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
406
|
+
}, co = (t) => t.toUpperCase(), ue = (t, e) => (i(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();
|
|
407
|
+
function le(t) {
|
|
408
|
+
const { shiftKey: e, code: n } = t, o = d(this), s = [
|
|
409
|
+
...ue(qt, this)
|
|
410
|
+
].filter(
|
|
411
|
+
(u) => !te(u, "disabled") && !j(u, X)
|
|
412
|
+
);
|
|
413
|
+
if (!s.length) return;
|
|
414
|
+
const c = s[0], a = s[s.length - 1];
|
|
415
|
+
// istanbul ignore else @preserve
|
|
416
|
+
n === "Tab" && (e && o.activeElement === c ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (c.focus(), t.preventDefault()));
|
|
417
|
+
}
|
|
418
|
+
const de = (t) => x.has(t) === !0, ro = (t) => {
|
|
419
|
+
const e = de(t);
|
|
420
|
+
(e ? Q : R)(t, "keydown", le), e ? x.delete(t) : x.set(t, !0);
|
|
421
|
+
}, h = (t, e) => {
|
|
422
|
+
const { width: n, height: o, top: s, right: c, bottom: a, left: u } = t.getBoundingClientRect();
|
|
423
|
+
let p = 1, r = 1;
|
|
424
|
+
if (e && l(t)) {
|
|
425
|
+
const { offsetWidth: f, offsetHeight: y } = t;
|
|
426
|
+
p = f > 0 ? Math.round(n) / f : (
|
|
427
|
+
/* istanbul ignore next @preserve */
|
|
370
428
|
1
|
|
371
|
-
),
|
|
372
|
-
/* istanbul ignore next */
|
|
429
|
+
), r = y > 0 ? Math.round(o) / y : (
|
|
430
|
+
/* istanbul ignore next @preserve */
|
|
373
431
|
1
|
|
374
432
|
);
|
|
375
433
|
}
|
|
376
434
|
return {
|
|
377
435
|
width: n / p,
|
|
378
|
-
height: o /
|
|
379
|
-
top: s /
|
|
380
|
-
right:
|
|
381
|
-
bottom: a /
|
|
382
|
-
left:
|
|
383
|
-
x:
|
|
384
|
-
y: s /
|
|
436
|
+
height: o / r,
|
|
437
|
+
top: s / r,
|
|
438
|
+
right: c / p,
|
|
439
|
+
bottom: a / r,
|
|
440
|
+
left: u / p,
|
|
441
|
+
x: u / p,
|
|
442
|
+
y: s / r
|
|
385
443
|
};
|
|
386
|
-
},
|
|
387
|
-
const e =
|
|
444
|
+
}, ao = (t) => d(t).body, k = (t) => d(t).documentElement, io = (t) => d(t).head, uo = (t) => {
|
|
445
|
+
const e = q(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;
|
|
388
446
|
return { x: n, y: o };
|
|
389
|
-
},
|
|
447
|
+
}, pe = (t) => i(t) && t.constructor.name === "ShadowRoot" || !1, lo = (t) => t.nodeName === "HTML" ? t : l(t) && t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
390
448
|
i(t) && t.parentNode || // DOM Element detected
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
if (!
|
|
449
|
+
pe(t) && t.host || // ShadowRoot detected
|
|
450
|
+
k(t), fe = (t) => {
|
|
451
|
+
if (!l(t)) return !1;
|
|
394
452
|
const { width: e, height: n } = h(t), { offsetWidth: o, offsetHeight: s } = t;
|
|
395
453
|
return Math.round(e) !== o || Math.round(n) !== s;
|
|
396
|
-
},
|
|
397
|
-
const o =
|
|
398
|
-
|
|
454
|
+
}, po = (t, e, n) => {
|
|
455
|
+
const o = l(e), s = h(
|
|
456
|
+
t,
|
|
457
|
+
o && fe(e)
|
|
458
|
+
), c = { x: 0, y: 0 };
|
|
459
|
+
// istanbul ignore else @preserve
|
|
399
460
|
if (o) {
|
|
400
461
|
const a = h(e, !0);
|
|
401
|
-
|
|
462
|
+
c.x = a.x + e.clientLeft, c.y = a.y + e.clientTop;
|
|
402
463
|
}
|
|
403
464
|
return {
|
|
404
|
-
x: s.left + n.x -
|
|
405
|
-
y: s.top + n.y -
|
|
465
|
+
x: s.left + n.x - c.x,
|
|
466
|
+
y: s.top + n.y - c.y,
|
|
406
467
|
width: s.width,
|
|
407
468
|
height: s.height
|
|
408
469
|
};
|
|
409
470
|
};
|
|
410
|
-
let
|
|
411
|
-
const b = /* @__PURE__ */ new Map(),
|
|
412
|
-
let n = e ?
|
|
471
|
+
let F = 0, H = 0;
|
|
472
|
+
const b = /* @__PURE__ */ new Map(), me = (t, e) => {
|
|
473
|
+
let n = e ? F : H;
|
|
413
474
|
if (e) {
|
|
414
|
-
const o =
|
|
415
|
-
b.has(o) || b.set(o, s), I(s) && !s.has(e) ? (s.set(e, n),
|
|
475
|
+
const o = me(t), s = b.get(o) || /* @__PURE__ */ new Map();
|
|
476
|
+
b.has(o) || b.set(o, s), I(s) && !s.has(e) ? (s.set(e, n), F += 1) : n = s.get(e);
|
|
416
477
|
} else {
|
|
417
478
|
const o = t.id || t;
|
|
418
479
|
b.has(o) ? n = b.get(o) : (b.set(o, n), H += 1);
|
|
419
480
|
}
|
|
420
481
|
return n;
|
|
421
|
-
},
|
|
422
|
-
var e;
|
|
423
|
-
return t ? R(t) ? t.defaultView : i(t) ? (e = t == null ? void 0 : t.ownerDocument) == null ? void 0 : e.defaultView : t : window;
|
|
424
|
-
}, ie = (t) => Array.isArray(t) || !1, ao = (t) => i(t) && t.nodeName === "CANVAS" || !1, ue = (t) => u(t) && !!t.shadowRoot || !1, io = (t) => i(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, uo = (t) => {
|
|
482
|
+
}, fo = (t) => t ? G(t) ? t.defaultView : i(t) ? t?.ownerDocument?.defaultView : t : window, ge = (t) => Array.isArray(t) || !1, mo = (t) => i(t) && t.nodeName === "CANVAS" || !1, ve = (t) => l(t) && !!t.shadowRoot || !1, go = (t) => i(t) && [1, 2, 3, 4, 5, 6, 7, 8].some((e) => t.nodeType === e) || !1, vo = (t) => {
|
|
425
483
|
if (!i(t)) return !1;
|
|
426
|
-
const { top: e, bottom: n } = h(t), { clientHeight: o } =
|
|
484
|
+
const { top: e, bottom: n } = h(t), { clientHeight: o } = k(t);
|
|
427
485
|
return e <= o && n >= 0;
|
|
428
|
-
},
|
|
486
|
+
}, Eo = (t) => {
|
|
429
487
|
if (!i(t)) return !1;
|
|
430
|
-
const { clientWidth: e, clientHeight: n } =
|
|
431
|
-
return o >= 0 && s >= 0 &&
|
|
432
|
-
},
|
|
433
|
-
if (!
|
|
488
|
+
const { clientWidth: e, clientHeight: n } = k(t), { top: o, left: s, bottom: c, right: a } = h(t, !0);
|
|
489
|
+
return o >= 0 && s >= 0 && c <= n && a <= e;
|
|
490
|
+
}, bo = (t) => ge(t) && t.every(l) || !1, ho = (t) => typeof t == "function" || !1, yo = (t) => v(t) && t.constructor.name === "HTMLCollection" || !1, wo = (t) => l(t) && t.tagName === "IMG" || !1, Ao = (t) => {
|
|
491
|
+
if (!T(t)) return !1;
|
|
434
492
|
try {
|
|
435
493
|
JSON.parse(t);
|
|
436
494
|
} catch {
|
|
437
495
|
return !1;
|
|
438
496
|
}
|
|
439
497
|
return !0;
|
|
440
|
-
},
|
|
441
|
-
|
|
498
|
+
}, So = (t) => v(t) && t.constructor.name === "WeakMap" || !1, No = (t) => i(t) && ["SVG", "Image", "Video", "Canvas"].some(
|
|
499
|
+
(e) => t.constructor.name.includes(e)
|
|
500
|
+
) || !1, To = (t) => v(t) && t.constructor.name === "NodeList" || !1, Mo = (t) => k(t).dir === "rtl", ko = (t) => i(t) && t.constructor.name.includes("SVG") || !1, Do = (t) => i(t) && ["TABLE", "TD", "TH"].includes(t.nodeName) || !1, Ee = (t, e) => t ? t.closest(e) || // break out of `ShadowRoot`
|
|
501
|
+
Ee(t.getRootNode().host, e) : null, Co = (t, e) => l(t) ? t : (i(e) ? e : d()).querySelector(t), be = (t, e) => (i(e) ? e : d()).getElementsByTagName(
|
|
502
|
+
t
|
|
503
|
+
), Oo = (t) => [...be("*", t)].filter(ve), Lo = (t, e) => d(e).getElementById(t) || null, Io = (t, e) => (e && i(e) ? e : d()).getElementsByClassName(
|
|
442
504
|
t
|
|
443
|
-
),
|
|
505
|
+
), xo = (t, e) => t.matches(e), zo = "2.0.6";
|
|
444
506
|
export {
|
|
445
|
-
|
|
507
|
+
Wn as ArrayFrom,
|
|
446
508
|
P as DOMContentLoadedEvent,
|
|
447
|
-
|
|
509
|
+
et as DOMMouseScrollEvent,
|
|
448
510
|
L as Data,
|
|
449
|
-
|
|
450
|
-
|
|
511
|
+
Gn as Float32ArrayFrom,
|
|
512
|
+
Kn as Float64ArrayFrom,
|
|
451
513
|
M as ObjectAssign,
|
|
452
514
|
w as ObjectEntries,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
515
|
+
$n as ObjectFromEntries,
|
|
516
|
+
Yn as ObjectHasOwn,
|
|
517
|
+
Zn as ObjectKeys,
|
|
518
|
+
_n as ObjectValues,
|
|
519
|
+
so as Timer,
|
|
520
|
+
Y as abortEvent,
|
|
521
|
+
Bn as addClass,
|
|
522
|
+
fn as addEventListener,
|
|
523
|
+
Kt as animationDelay,
|
|
524
|
+
Gt as animationDuration,
|
|
463
525
|
D as animationEndEvent,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
526
|
+
U as animationName,
|
|
527
|
+
he as ariaChecked,
|
|
528
|
+
we as ariaDescribedBy,
|
|
529
|
+
ye as ariaDescription,
|
|
530
|
+
Ae as ariaExpanded,
|
|
531
|
+
Se as ariaHasPopup,
|
|
532
|
+
X as ariaHidden,
|
|
533
|
+
Ne as ariaLabel,
|
|
534
|
+
Te as ariaLabelledBy,
|
|
535
|
+
Me as ariaModal,
|
|
536
|
+
ke as ariaPressed,
|
|
537
|
+
De as ariaSelected,
|
|
538
|
+
Oe as ariaValueMax,
|
|
539
|
+
Ce as ariaValueMin,
|
|
540
|
+
Le as ariaValueNow,
|
|
541
|
+
Ie as ariaValueText,
|
|
542
|
+
Z as beforeunloadEvent,
|
|
543
|
+
gn as bezierEasings,
|
|
544
|
+
_ as blurEvent,
|
|
545
|
+
$ as changeEvent,
|
|
546
|
+
Ee as closest,
|
|
547
|
+
tt as contextmenuEvent,
|
|
548
|
+
to as createCustomEvent,
|
|
549
|
+
ee as createElement,
|
|
550
|
+
ne as createElementNS,
|
|
551
|
+
K as dispatchEvent,
|
|
552
|
+
Qn as distinct,
|
|
553
|
+
Pn as documentBody,
|
|
554
|
+
Un as documentElement,
|
|
493
555
|
N as documentHead,
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
556
|
+
ze as dragEvent,
|
|
557
|
+
Pe as dragendEvent,
|
|
558
|
+
Be as dragenterEvent,
|
|
559
|
+
Fe as dragleaveEvent,
|
|
560
|
+
He as dragoverEvent,
|
|
561
|
+
Ve as dragstartEvent,
|
|
562
|
+
jn as emulateAnimationEnd,
|
|
563
|
+
qn as emulateTransitionEnd,
|
|
564
|
+
nt as errorEvent,
|
|
565
|
+
Jn as focus,
|
|
566
|
+
ot as focusEvent,
|
|
567
|
+
qe as focusEvents,
|
|
568
|
+
qt as focusableSelector,
|
|
569
|
+
st as focusinEvent,
|
|
570
|
+
ct as focusoutEvent,
|
|
571
|
+
rt as gesturechangeEvent,
|
|
572
|
+
at as gestureendEvent,
|
|
573
|
+
it as gesturestartEvent,
|
|
574
|
+
j as getAttribute,
|
|
575
|
+
On as getAttributeNS,
|
|
513
576
|
h as getBoundingClientRect,
|
|
514
|
-
|
|
577
|
+
Oo as getCustomElements,
|
|
515
578
|
d as getDocument,
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
579
|
+
ao as getDocumentBody,
|
|
580
|
+
k as getDocumentElement,
|
|
581
|
+
io as getDocumentHead,
|
|
582
|
+
oe as getElementAnimationDelay,
|
|
583
|
+
se as getElementAnimationDuration,
|
|
584
|
+
Lo as getElementById,
|
|
522
585
|
g as getElementStyle,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
586
|
+
ce as getElementTransitionDelay,
|
|
587
|
+
re as getElementTransitionDuration,
|
|
588
|
+
Io as getElementsByClassName,
|
|
589
|
+
be as getElementsByTagName,
|
|
590
|
+
Rn as getInstance,
|
|
591
|
+
uo as getNodeScroll,
|
|
592
|
+
lo as getParentNode,
|
|
593
|
+
po as getRectRelativeToOffsetParent,
|
|
594
|
+
me as getUID,
|
|
595
|
+
fo as getWindow,
|
|
596
|
+
te as hasAttribute,
|
|
597
|
+
Ln as hasAttributeNS,
|
|
598
|
+
Hn as hasClass,
|
|
599
|
+
de as hasFocusTrap,
|
|
600
|
+
An as isApple,
|
|
601
|
+
ge as isArray,
|
|
602
|
+
mo as isCanvas,
|
|
603
|
+
ve as isCustomElement,
|
|
604
|
+
G as isDocument,
|
|
605
|
+
go as isElement,
|
|
606
|
+
vo as isElementInScrollRange,
|
|
607
|
+
Eo as isElementInViewport,
|
|
608
|
+
bo as isElementsArray,
|
|
609
|
+
Sn as isFirefox,
|
|
610
|
+
ho as isFunction,
|
|
611
|
+
yo as isHTMLCollection,
|
|
612
|
+
l as isHTMLElement,
|
|
613
|
+
wo as isHTMLImageElement,
|
|
614
|
+
Ao as isJSON,
|
|
551
615
|
I as isMap,
|
|
552
|
-
|
|
553
|
-
|
|
616
|
+
No as isMedia,
|
|
617
|
+
wn as isMobile,
|
|
554
618
|
i as isNode,
|
|
555
|
-
|
|
556
|
-
|
|
619
|
+
To as isNodeList,
|
|
620
|
+
ie as isNumber,
|
|
557
621
|
v as isObject,
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
622
|
+
Mo as isRTL,
|
|
623
|
+
ko as isSVGElement,
|
|
624
|
+
fe as isScaledElement,
|
|
625
|
+
pe as isShadowRoot,
|
|
626
|
+
T as isString,
|
|
627
|
+
Do as isTableElement,
|
|
628
|
+
So as isWeakMap,
|
|
629
|
+
q as isWindow,
|
|
630
|
+
Ke as keyAlt,
|
|
631
|
+
Je as keyArrowDown,
|
|
632
|
+
Ye as keyArrowLeft,
|
|
633
|
+
Ze as keyArrowRight,
|
|
634
|
+
Xe as keyArrowUp,
|
|
635
|
+
_e as keyBackspace,
|
|
636
|
+
$e as keyCapsLock,
|
|
637
|
+
tn as keyControl,
|
|
638
|
+
en as keyDelete,
|
|
639
|
+
nn as keyEnter,
|
|
640
|
+
sn as keyEscape,
|
|
641
|
+
cn as keyInsert,
|
|
642
|
+
rn as keyMeta,
|
|
643
|
+
on as keyNumpadEnter,
|
|
644
|
+
an as keyPause,
|
|
645
|
+
un as keyScrollLock,
|
|
646
|
+
ln as keyShift,
|
|
647
|
+
dn as keySpace,
|
|
648
|
+
pn as keyTab,
|
|
649
|
+
Ge as keyboardEventKeys,
|
|
650
|
+
ut as keydownEvent,
|
|
651
|
+
lt as keypressEvent,
|
|
652
|
+
dt as keyupEvent,
|
|
653
|
+
pt as loadEvent,
|
|
654
|
+
Ue as loadstartEvent,
|
|
655
|
+
xo as matches,
|
|
656
|
+
Re as mouseClickEvents,
|
|
657
|
+
Qe as mouseHoverEvents,
|
|
658
|
+
We as mouseSwipeEvents,
|
|
659
|
+
ft as mouseclickEvent,
|
|
660
|
+
mt as mousedblclickEvent,
|
|
661
|
+
gt as mousedownEvent,
|
|
662
|
+
bt as mouseenterEvent,
|
|
663
|
+
Et as mousehoverEvent,
|
|
664
|
+
yt as mouseinEvent,
|
|
665
|
+
ht as mouseleaveEvent,
|
|
666
|
+
St as mousemoveEvent,
|
|
667
|
+
wt as mouseoutEvent,
|
|
668
|
+
At as mouseoverEvent,
|
|
669
|
+
vt as mouseupEvent,
|
|
670
|
+
Nt as mousewheelEvent,
|
|
671
|
+
Tt as moveEvent,
|
|
672
|
+
xe as nativeEvents,
|
|
673
|
+
$t as noop,
|
|
674
|
+
Xn as normalizeOptions,
|
|
675
|
+
B as normalizeValue,
|
|
676
|
+
Q as off,
|
|
677
|
+
vn as offsetHeight,
|
|
678
|
+
En as offsetWidth,
|
|
679
|
+
R as on,
|
|
680
|
+
_t as one,
|
|
681
|
+
Mt as orientationchangeEvent,
|
|
682
|
+
eo as passiveHandler,
|
|
683
|
+
kt as pointercancelEvent,
|
|
684
|
+
Dt as pointerdownEvent,
|
|
685
|
+
Ct as pointerleaveEvent,
|
|
686
|
+
Ot as pointermoveEvent,
|
|
687
|
+
Lt as pointerupEvent,
|
|
688
|
+
Co as querySelector,
|
|
689
|
+
ue as querySelectorAll,
|
|
690
|
+
It as readystatechangeEvent,
|
|
691
|
+
no as reflow,
|
|
692
|
+
zn as removeAttribute,
|
|
693
|
+
Vn as removeAttributeNS,
|
|
694
|
+
Fn as removeClass,
|
|
695
|
+
mn as removeEventListener,
|
|
696
|
+
xt as resetEvent,
|
|
697
|
+
zt as resizeEvent,
|
|
698
|
+
Ht as scrollEvent,
|
|
699
|
+
bn as scrollHeight,
|
|
700
|
+
hn as scrollWidth,
|
|
701
|
+
Vt as selectEvent,
|
|
702
|
+
Bt as selectendEvent,
|
|
703
|
+
Ft as selectstartEvent,
|
|
704
|
+
In as setAttribute,
|
|
705
|
+
xn as setAttributeNS,
|
|
706
|
+
oo as setElementStyle,
|
|
707
|
+
Pt as submitEvent,
|
|
708
|
+
Nn as support3DTransform,
|
|
709
|
+
Dn as supportAnimation,
|
|
710
|
+
Tn as supportPassive,
|
|
711
|
+
kn as supportTouch,
|
|
712
|
+
Mn as supportTransform,
|
|
713
|
+
Cn as supportTransition,
|
|
714
|
+
yn as tabindex,
|
|
715
|
+
ae as toLowerCase,
|
|
716
|
+
co as toUpperCase,
|
|
717
|
+
ro as toggleFocusTrap,
|
|
718
|
+
je as touchEvents,
|
|
719
|
+
Rt as touchcancelEvent,
|
|
720
|
+
Qt as touchendEvent,
|
|
721
|
+
Wt as touchmoveEvent,
|
|
722
|
+
Ut as touchstartEvent,
|
|
723
|
+
Xt as transitionDelay,
|
|
724
|
+
Jt as transitionDuration,
|
|
660
725
|
C as transitionEndEvent,
|
|
661
|
-
|
|
662
|
-
|
|
726
|
+
W as transitionProperty,
|
|
727
|
+
jt as unloadEvent,
|
|
663
728
|
S as userAgent,
|
|
664
729
|
A as userAgentData,
|
|
665
|
-
|
|
730
|
+
zo as version
|
|
666
731
|
};
|
|
667
732
|
//# sourceMappingURL=shorty.mjs.map
|