@thednp/shorty 2.0.7 → 2.0.8

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