shorter-js
Advanced tools
Comparing version 0.3.0-alpha6 to 0.3.0-alpha7
@@ -997,2 +997,42 @@ /*! | ||
/** | ||
* Check if a target node is `window`. | ||
* | ||
* @param {any} node the target node | ||
* @returns {boolean} the query result | ||
*/ | ||
function isWindow(node) { | ||
return node instanceof Window; | ||
} | ||
/** | ||
* Checks if an object is a `Node`. | ||
* | ||
* @param {any} node the target object | ||
* @returns {boolean} the query result | ||
*/ | ||
const isNode = (node) => node instanceof Node; | ||
/** | ||
* Returns the `document` or the `#document` element. | ||
* @see https://github.com/floating-ui/floating-ui | ||
* @param {(Node | HTMLElement | Element | Window)=} node | ||
* @returns {Document} | ||
*/ | ||
function getDocument(node) { | ||
// @ts-ignore -- `isNode` checks that | ||
if (isNode(node)) return node.ownerDocument; | ||
// @ts-ignore -- `isWindow` checks that too | ||
if (isWindow(node)) return node.document; | ||
return window.document; | ||
} | ||
/** | ||
* Checks if an element is an `HTMLElement`. | ||
* | ||
* @param {any} element the target object | ||
* @returns {boolean} the query result | ||
*/ | ||
const isHTMLElement = (element) => element instanceof HTMLElement; | ||
/** | ||
* Utility to check if target is typeof `HTMLElement`, `Element`, `Node` | ||
@@ -1002,12 +1042,11 @@ * or find one that matches a selector. | ||
* @param {HTMLElement | string} selector the input selector or target element | ||
* @param {(Node | Element | HTMLElement)=} parent optional node to look into | ||
* @param {(Document | Element | HTMLElement)=} parent optional node to look into | ||
* @return {HTMLElement?} the `HTMLElement` or `querySelector` result | ||
*/ | ||
function querySelector(selector, parent) { | ||
const nodeTypes = [HTMLElement, Element, Node]; | ||
const lookUp = parent && nodeTypes.some((x) => parent instanceof x) ? parent : document; | ||
return nodeTypes.some((x) => selector instanceof x) | ||
// @ts-ignore -- we must include ShadowRoot Node | ||
? selector : lookUp.querySelector(selector); | ||
const nodeTypes = [Document, HTMLElement, Element]; | ||
const lookUp = nodeTypes.some((x) => parent instanceof x) | ||
? parent : getDocument(); | ||
// @ts-ignore | ||
return isHTMLElement(selector) ? selector : lookUp.querySelector(selector); | ||
} | ||
@@ -1612,10 +1651,2 @@ | ||
/** | ||
* Checks if an element is an `HTMLElement`. | ||
* | ||
* @param {any} element the target object | ||
* @returns {boolean} the query result | ||
*/ | ||
const isHTMLElement = (element) => element instanceof HTMLElement; | ||
/** | ||
* Returns the bounding client rect of a target `HTMLElement`. | ||
@@ -1656,34 +1687,2 @@ * | ||
/** | ||
* Check if a target node is `window`. | ||
* | ||
* @param {any} node the target node | ||
* @returns {boolean} the query result | ||
*/ | ||
function isWindow(node) { | ||
return node instanceof Window; | ||
} | ||
/** | ||
* Checks if an object is a `Node`. | ||
* | ||
* @param {any} node the target object | ||
* @returns {boolean} the query result | ||
*/ | ||
const isNode = (node) => node instanceof Node; | ||
/** | ||
* Returns the `document` or the `#document` element. | ||
* @see https://github.com/floating-ui/floating-ui | ||
* @param {(Node | HTMLElement | Element | Window)=} node | ||
* @returns {Document} | ||
*/ | ||
function getDocument(node) { | ||
// @ts-ignore -- `isNode` checks that | ||
if (isNode(node)) return node.ownerDocument; | ||
// @ts-ignore -- `isWindow` checks that too | ||
if (isWindow(node)) return node.document; | ||
return window.document; | ||
} | ||
/** | ||
* Returns the `document.body` or the `<body>` element. | ||
@@ -1844,2 +1843,10 @@ * | ||
/** | ||
* Checks if an object is a `Document`. | ||
* | ||
* @param {any} element the target object | ||
* @returns {boolean} the query result | ||
*/ | ||
const isDocument = (element) => element instanceof Document; | ||
/** | ||
* Checks if an object is an `Element`. | ||
@@ -1975,9 +1982,11 @@ * | ||
* | ||
* @param {HTMLElement=} parent parent to look into | ||
* @returns {Node[]} the query result | ||
* @param {(HTMLElement | Document)=} parent parent to look into | ||
* @returns {Element[]} the query result | ||
*/ | ||
function getCustomElements(parent) { | ||
const lookUp = parent && isHTMLElement(parent) ? parent : document; | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
return [...lookUp.querySelectorAll('*')] | ||
.filter((x) => customElements.get(x.nodeName.toLowerCase())); | ||
.filter((x) => customElements.get(x.tagName.toLowerCase())); | ||
} | ||
@@ -1989,9 +1998,9 @@ | ||
* @param {string} selector the input selector | ||
* @param {(Node | Element | HTMLElement)=} parent optional node to look into | ||
* @return {NodeListOf<HTMLElement>} the query result | ||
* @param {(Document | HTMLElement | Element)=} parent optional node to look into | ||
* @return {NodeListOf<Element>} the query result | ||
*/ | ||
function querySelectorAll(selector, parent) { | ||
const lookUp = parent && [HTMLElement, Element, Node] | ||
.some((x) => parent instanceof x) ? parent : document; | ||
// @ts-ignore -- we must include ShadowRoot Node | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
return lookUp.querySelectorAll(selector); | ||
@@ -2004,7 +2013,8 @@ } | ||
* @param {string} selector the tag name | ||
* @param {HTMLElement=} parent optional Element to look into | ||
* @return {HTMLCollectionOf<HTMLElement>} the 'HTMLCollection' | ||
* @param {(HTMLElement | Element | Document)=} parent optional Element to look into | ||
* @return {HTMLCollection} the 'HTMLCollection' | ||
*/ | ||
function getElementsByTagName(selector, parent) { | ||
const lookUp = parent && isHTMLElement(parent) ? parent : document; | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
@@ -2018,7 +2028,8 @@ return lookUp.getElementsByTagName(selector); | ||
* @param {string} selector the class name | ||
* @param {HTMLElement=} parent optional Element to look into | ||
* @return {HTMLCollectionOf<HTMLElement>} the 'HTMLCollection' | ||
* @param {(HTMLElement | Element | Document)=} parent optional Element to look into | ||
* @return {HTMLCollection} the 'HTMLCollection' | ||
*/ | ||
function getElementsByClassName(selector, parent) { | ||
const lookUp = parent && isHTMLElement(parent) ? parent : document; | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
@@ -2198,2 +2209,3 @@ return lookUp.getElementsByClassName(selector); | ||
isShadowRoot, | ||
isDocument, | ||
isElementsArray, | ||
@@ -2200,0 +2212,0 @@ isWindow, |
// shorter-js v0.3.0alpha6 | dnp_theme © 2022 | MIT-License | ||
const e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",{userAgentData:u}=navigator,l=u,{userAgent:m}=navigator,d=m,g=/iPhone|iPad|iPod|Android/i;let E=!1;E=l?l.brands.some(e=>g.test(e.brand)):g.test(d);const f=E,y=/(iPhone|iPod|iPad)/,b=l?l.brands.some(e=>y.test(e.brand)):y.test(d),p=!!d&&d.includes("Firefox"),v="webkitPerspective"in document.head.style||"perspective"in document.head.style;function h(e,t,n,o){const i=o||!1;e.addEventListener(t,n,i)}function w(e,t,n,o){const i=o||!1;e.removeEventListener(t,n,i)}function A(e,t,n,o){h(e,t,(function i(a){a.target===e&&(n.apply(e,[a]),w(e,t,i,o))}),o)}const k=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});A(document,"DOMContentLoaded",()=>{},t)}catch(e){throw Error("Passive events are not supported")}return e})(),L="webkitTransform"in document.head.style||"transform"in document.head.style,D="ontouchstart"in window||"msMaxTouchPoints"in navigator,N="webkitAnimation"in document.head.style||"animation"in document.head.style,T="webkitTransition"in document.head.style||"transition"in document.head.style;function S(e,t){const n=[HTMLElement,Element,Node],o=t&&n.some(e=>t instanceof e)?t:document;return n.some(t=>e instanceof t)?e:o.querySelector(e)}const M=new Map,C={set:(e,t,n)=>{const o=S(e);if(!o)return;M.has(t)||M.set(t,new Map);M.get(t).set(o,n)},getAllFor:e=>{const t=M.get(e);return t||null},get:(e,t)=>{const n=S(e),o=C.getAllFor(t),i=n&&o&&o.get(n);return i||null},remove:(e,t)=>{const n=S(e),o=M.get(t);o&&n&&(o.delete(n),0===o.size&&M.delete(t))}};function O(e,t){const n=getComputedStyle(e);return t in n?n[t]:""}function z(e){const t=O(e,"animationName"),n=O(e,"animationDelay"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function H(e){const t=O(e,"animationName"),n=O(e,"animationDuration"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function I(e){const t=O(e,o),i=O(e,n),a=i.includes("ms")?1:1e3,r=N&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function P(e){const n=O(e,o),i=O(e,t),a=i.includes("ms")?1:1e3,r=N&&n&&"none"!==n?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function x(e){const t=O(e,"transitionProperty"),n=O(e,"transitionDelay"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function F(e){const t=O(e,"transitionProperty"),n=O(e,"transitionDuration"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function B(e){const t=O(e,c),n=O(e,r),o=n.includes("ms")?1:1e3,i=T&&t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function R(e){const t=O(e,c),n=O(e,a),o=n.includes("ms")?1:1e3,i=T&&t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function W(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const Q=e=>Object.keys(e);const V=(e,t)=>Object.assign(e,t),j=!!k&&{passive:!0},q=new Map;const U=e=>e instanceof HTMLElement;function G(e,t){const{width:n,height:o,top:i,right:a,bottom:r,left:s}=e.getBoundingClientRect();let c=1,u=1;return t&&U(e)&&(c=e.offsetWidth>0&&Math.round(n)/e.offsetWidth||1,u=e.offsetHeight>0&&Math.round(o)/e.offsetHeight||1),{width:n/c,height:o/u,top:i/u,right:a/c,bottom:r/u,left:s/c,x:s/c,y:i/u}}function K(e){return e instanceof Window}const X=e=>e instanceof Node;function $(e){return X(e)?e.ownerDocument:K(e)?e.document:window.document}function Y(e){return $(e).documentElement}function Z(e){if(null==e)return window;if(!K(e)){const{ownerDocument:t}=e;return t&&t.defaultView||window}return e}const J=e=>e instanceof Z(e).ShadowRoot||e instanceof ShadowRoot;function _(e){const{width:t,height:n}=G(e),{offsetWidth:o,offsetHeight:i}=e;return Math.round(t)!==o||Math.round(n)!==i}const ee={ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",nativeEvents:["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointercancel","pointerdown","pointerleave","pointermove","pointerup","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"],abortEvent:"abort",blurEvent:"blur",moveEvent:"move",changeEvent:"change",errorEvent:"error",resetEvent:"reset",resizeEvent:"resize",scrollEvent:"scroll",submitEvent:"submit",loadEvent:"load",unloadEvent:"unload",readystatechangeEvent:"readystatechange",beforeunloadEvent:"beforeunload",orientationchangeEvent:"orientationchange",contextmenuEvent:"contextmenu",DOMContentLoadedEvent:"DOMContentLoaded",DOMMouseScrollEvent:"DOMMouseScroll",selectEvent:"select",selectendEvent:"selectend",selectstartEvent:"selectstart",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedblclickEvent:"dblclick",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mousehoverEvent:"hover",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",mouseinEvent:"mousein",mouseoutEvent:"mouseout",mousemoveEvent:"mousemove",mousewheelEvent:"mousewheel",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",pointercancelEvent:"pointercancel",pointerdownEvent:"pointerdown",pointerleaveEvent:"pointerleave",pointermoveEvent:"pointermove",pointerupEvent:"pointerup",focusEvents:{in:"focusin",out:"focusout"},focusEvent:"focus",focusinEvent:"focusin",focusoutEvent:"focusout",gesturechangeEvent:"gesturechange",gestureendEvent:"gestureend",gesturestartEvent:"gesturestart",bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:"animationDuration",animationDurationLegacy:t,animationDelay:"animationDelay",animationDelayLegacy:n,animationName:"animationName",animationNameLegacy:o,animationEndEvent:"animationend",animationEndEventLegacy:i,transitionDuration:"transitionDuration",transitionDurationLegacy:a,transitionDelay:"transitionDelay",transitionDelayLegacy:r,transitionEndEvent:"transitionend",transitionEndEventLegacy:s,transitionProperty:"transitionProperty",transitionPropertyLegacy:c,isMobile:f,isApple:b,isFirefox:p,support3DTransform:v,supportPassive:k,supportTransform:L,supportTouch:D,supportAnimation:N,supportTransition:T,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keydownEvent:"keydown",keypressEvent:"keypress",keyupEvent:"keyup",keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",offsetHeight:"offsetHeight",offsetWidth:"offsetWidth",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",userAgentData:l,userAgent:d,addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:h,off:w,one:A,Data:C,Timer:{set:(e,t,n,o)=>{const i=S(e);if(i)if(o&&o.length){q.has(i)||q.set(i,new Map);q.get(i).set(o,setTimeout(t,n))}else q.set(i,setTimeout(t,n))},get:(e,t)=>{const n=S(e);if(!n)return null;if(t&&t.length){q.has(n)||q.set(n,new Map);const e=q.get(n);if(e.has(t))return e.get(t)}else if(q.has(n))return q.get(n);return null},clear:(e,t)=>{const n=S(e),o=n&&q.get(n);o&&(t&&t.length?o.has(t)&&(clearTimeout(o.get(t)),o.delete(t)):(clearTimeout(o),q.delete(n)))}},getInstance:(e,t)=>C.get(e,t),emulateAnimationEnd:function(e,t){let n=0;const o=new Event("animationend"),i=H(e),a=z(e);if(i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener("animationend",r),n=1)};e.addEventListener("animationend",r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},emulateAnimationEndLegacy:function(e,t){let n=0;const o=new Event(i),a=P(e),r=I(e);if(N&&a){const s=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(i,s),n=1)};e.addEventListener(i,s),setTimeout(()=>{n||e.dispatchEvent(o)},a+r+17)}else t.apply(e,[o])},emulateTransitionEnd:function(e,t){let n=0;const o=new Event("transitionend"),i=F(e),a=x(e);if(i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener("transitionend",r),n=1)};e.addEventListener("transitionend",r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},emulateTransitionEndLegacy:function(e,t){let n=0;const o=new Event(s),i=R(e),a=B(e);if(T&&i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(s,r),n=1)};e.addEventListener(s,r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},isElementInScrollRange:e=>{const{top:t,bottom:n}=G(e),{clientHeight:o}=Y(e);return t<=o&&n>=0},isElementInViewport:e=>{const{top:t,left:n,bottom:o,right:i}=G(e,!0),{clientWidth:a,clientHeight:r}=Y(e);return t>=0&&n>=0&&o<=r&&i<=a},passiveHandler:j,getElementAnimationDuration:H,getElementAnimationDurationLegacy:P,getElementAnimationDelay:z,getElementAnimationDelayLegacy:I,getElementTransitionDuration:F,getElementTransitionDurationLegacy:R,getElementTransitionDelay:x,getElementTransitionDelayLegacy:B,getNodeScroll:function(e){const t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getParentNode:function(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(J(e)?e.host:null)||Y(e)},getRectRelativeToOffsetParent:function(e,t,n){const o=U(t),i=G(e,o&&_(t)),a={x:0,y:0};if(o){const e=G(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}return{x:i.left+n.x-a.x,y:i.top+n.y-a.y,width:i.width,height:i.height}},getWindow:Z,isArray:e=>Array.isArray(e),isString:e=>"string"==typeof e,isElement:e=>e instanceof Element,isNode:X,isHTMLElement:U,isHTMLImageElement:e=>e instanceof HTMLImageElement,isSVGElement:e=>e instanceof SVGElement,isNodeList:e=>e instanceof NodeList,isHTMLCollection:e=>e instanceof HTMLCollection,isScaledElement:_,isTableElement:e=>["TABLE","TD","TH"].includes(e.tagName),isShadowRoot:J,isElementsArray:e=>Array.isArray(e)&&e.every(e=>U(e)),isWindow:K,isMedia:e=>e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(t=>e instanceof t),isRTL:e=>"rtl"===Y(e).dir,closest:function(e,t){return e&&t?e.closest(t):null},querySelector:S,getCustomElements:function(e){return[...(e&&U(e)?e:document).querySelectorAll("*")].filter(e=>customElements.get(e.nodeName.toLowerCase()))},querySelectorAll:function(e,t){return(t&&[HTMLElement,Element,Node].some(e=>t instanceof e)?t:document).querySelectorAll(e)},getElementsByClassName:function(e,t){return(t&&U(t)?t:document).getElementsByClassName(e)},getElementsByTagName:function(e,t){return(t&&U(t)?t:document).getElementsByTagName(e)},normalizeValue:W,normalizeOptions:function(e,t,n,o){const i={...e.dataset},a={},r={};return Q(i).forEach(e=>{const t=o&&e.includes(o)?e.replace(o,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;r[t]=W(i[e])}),Q(n).forEach(e=>{n[e]=W(n[e])}),Q(t).forEach(e=>{a[e]=e in n?n[e]:e in r?r[e]:t[e]}),a},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(`${t} ${e}`)}},reflow:e=>e.offsetHeight,focus:e=>e.focus(),ArrayFrom:e=>Array.from(e),Float32ArrayFrom:e=>Float32Array.from(Array.from(e)),Float64ArrayFrom:e=>Float64Array.from(Array.from(e)),ObjectAssign:V,ObjectKeys:Q,ObjectValues:e=>Object.values(e),getBoundingClientRect:G,getDocument:$,getDocumentBody:function(e){return $(e).body},getDocumentElement:Y,getDocumentHead:function(e){return $(e).head},getElementStyle:O,setElementStyle:(e,t)=>{V(e.style,t)},hasAttribute:(e,t)=>e.hasAttribute(t),hasAttributeNS:(e,t,n)=>e.hasAttributeNS(n||null,t),getAttribute:(e,t)=>e.getAttribute(t),getAttributeNS:(e,t,n)=>e.getAttributeNS(n||null,t),setAttribute:(e,t,n)=>e.setAttribute(t,n),setAttributeNS:(e,t,n,o)=>e.setAttributeNS(o||null,t,n),removeAttribute:(e,t)=>e.removeAttribute(t),removeAttributeNS:(e,t,n)=>e.removeAttributeNS(n||null,t),Version:"0.3.0alpha6"};export{ee as default}; | ||
const e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",o="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",i="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",a="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",r="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",s="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",c="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",{userAgentData:u}=navigator,l=u,{userAgent:m}=navigator,d=m,g=/iPhone|iPad|iPod|Android/i;let E=!1;E=l?l.brands.some(e=>g.test(e.brand)):g.test(d);const f=E,y=/(iPhone|iPod|iPad)/,b=l?l.brands.some(e=>y.test(e.brand)):y.test(d),p=!!d&&d.includes("Firefox"),v="webkitPerspective"in document.head.style||"perspective"in document.head.style;function h(e,t,n,o){const i=o||!1;e.addEventListener(t,n,i)}function w(e,t,n,o){const i=o||!1;e.removeEventListener(t,n,i)}function A(e,t,n,o){h(e,t,(function i(a){a.target===e&&(n.apply(e,[a]),w(e,t,i,o))}),o)}const k=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});A(document,"DOMContentLoaded",()=>{},t)}catch(e){throw Error("Passive events are not supported")}return e})(),L="webkitTransform"in document.head.style||"transform"in document.head.style,D="ontouchstart"in window||"msMaxTouchPoints"in navigator,T="webkitAnimation"in document.head.style||"animation"in document.head.style,N="webkitTransition"in document.head.style||"transition"in document.head.style;function S(e){return e instanceof Window}const M=e=>e instanceof Node;function C(e){return M(e)?e.ownerDocument:S(e)?e.document:window.document}const O=e=>e instanceof HTMLElement;function z(e,t){const n=[Document,HTMLElement,Element].some(e=>t instanceof e)?t:C();return O(e)?e:n.querySelector(e)}const H=new Map,I={set:(e,t,n)=>{const o=z(e);if(!o)return;H.has(t)||H.set(t,new Map);H.get(t).set(o,n)},getAllFor:e=>{const t=H.get(e);return t||null},get:(e,t)=>{const n=z(e),o=I.getAllFor(t),i=n&&o&&o.get(n);return i||null},remove:(e,t)=>{const n=z(e),o=H.get(t);o&&n&&(o.delete(n),0===o.size&&H.delete(t))}};function P(e,t){const n=getComputedStyle(e);return t in n?n[t]:""}function x(e){const t=P(e,"animationName"),n=P(e,"animationDelay"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function F(e){const t=P(e,"animationName"),n=P(e,"animationDuration"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function B(e){const t=P(e,o),i=P(e,n),a=i.includes("ms")?1:1e3,r=T&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function R(e){const n=P(e,o),i=P(e,t),a=i.includes("ms")?1:1e3,r=T&&n&&"none"!==n?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function W(e){const t=P(e,"transitionProperty"),n=P(e,"transitionDelay"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function Q(e){const t=P(e,"transitionProperty"),n=P(e,"transitionDuration"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function V(e){const t=P(e,c),n=P(e,r),o=n.includes("ms")?1:1e3,i=N&&t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function j(e){const t=P(e,c),n=P(e,a),o=n.includes("ms")?1:1e3,i=N&&t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function q(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const U=e=>Object.keys(e);const G=(e,t)=>Object.assign(e,t),K=!!k&&{passive:!0},X=new Map;function $(e,t){const{width:n,height:o,top:i,right:a,bottom:r,left:s}=e.getBoundingClientRect();let c=1,u=1;return t&&O(e)&&(c=e.offsetWidth>0&&Math.round(n)/e.offsetWidth||1,u=e.offsetHeight>0&&Math.round(o)/e.offsetHeight||1),{width:n/c,height:o/u,top:i/u,right:a/c,bottom:r/u,left:s/c,x:s/c,y:i/u}}function Y(e){return C(e).documentElement}function Z(e){if(null==e)return window;if(!S(e)){const{ownerDocument:t}=e;return t&&t.defaultView||window}return e}const J=e=>e instanceof Z(e).ShadowRoot||e instanceof ShadowRoot;function _(e){const{width:t,height:n}=$(e),{offsetWidth:o,offsetHeight:i}=e;return Math.round(t)!==o||Math.round(n)!==i}const ee={ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",nativeEvents:["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointercancel","pointerdown","pointerleave","pointermove","pointerup","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"],abortEvent:"abort",blurEvent:"blur",moveEvent:"move",changeEvent:"change",errorEvent:"error",resetEvent:"reset",resizeEvent:"resize",scrollEvent:"scroll",submitEvent:"submit",loadEvent:"load",unloadEvent:"unload",readystatechangeEvent:"readystatechange",beforeunloadEvent:"beforeunload",orientationchangeEvent:"orientationchange",contextmenuEvent:"contextmenu",DOMContentLoadedEvent:"DOMContentLoaded",DOMMouseScrollEvent:"DOMMouseScroll",selectEvent:"select",selectendEvent:"selectend",selectstartEvent:"selectstart",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedblclickEvent:"dblclick",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mousehoverEvent:"hover",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",mouseinEvent:"mousein",mouseoutEvent:"mouseout",mousemoveEvent:"mousemove",mousewheelEvent:"mousewheel",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",pointercancelEvent:"pointercancel",pointerdownEvent:"pointerdown",pointerleaveEvent:"pointerleave",pointermoveEvent:"pointermove",pointerupEvent:"pointerup",focusEvents:{in:"focusin",out:"focusout"},focusEvent:"focus",focusinEvent:"focusin",focusoutEvent:"focusout",gesturechangeEvent:"gesturechange",gestureendEvent:"gestureend",gesturestartEvent:"gesturestart",bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:"animationDuration",animationDurationLegacy:t,animationDelay:"animationDelay",animationDelayLegacy:n,animationName:"animationName",animationNameLegacy:o,animationEndEvent:"animationend",animationEndEventLegacy:i,transitionDuration:"transitionDuration",transitionDurationLegacy:a,transitionDelay:"transitionDelay",transitionDelayLegacy:r,transitionEndEvent:"transitionend",transitionEndEventLegacy:s,transitionProperty:"transitionProperty",transitionPropertyLegacy:c,isMobile:f,isApple:b,isFirefox:p,support3DTransform:v,supportPassive:k,supportTransform:L,supportTouch:D,supportAnimation:T,supportTransition:N,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keydownEvent:"keydown",keypressEvent:"keypress",keyupEvent:"keyup",keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",offsetHeight:"offsetHeight",offsetWidth:"offsetWidth",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",userAgentData:l,userAgent:d,addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:h,off:w,one:A,Data:I,Timer:{set:(e,t,n,o)=>{const i=z(e);if(i)if(o&&o.length){X.has(i)||X.set(i,new Map);X.get(i).set(o,setTimeout(t,n))}else X.set(i,setTimeout(t,n))},get:(e,t)=>{const n=z(e);if(!n)return null;if(t&&t.length){X.has(n)||X.set(n,new Map);const e=X.get(n);if(e.has(t))return e.get(t)}else if(X.has(n))return X.get(n);return null},clear:(e,t)=>{const n=z(e),o=n&&X.get(n);o&&(t&&t.length?o.has(t)&&(clearTimeout(o.get(t)),o.delete(t)):(clearTimeout(o),X.delete(n)))}},getInstance:(e,t)=>I.get(e,t),emulateAnimationEnd:function(e,t){let n=0;const o=new Event("animationend"),i=F(e),a=x(e);if(i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener("animationend",r),n=1)};e.addEventListener("animationend",r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},emulateAnimationEndLegacy:function(e,t){let n=0;const o=new Event(i),a=R(e),r=B(e);if(T&&a){const s=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(i,s),n=1)};e.addEventListener(i,s),setTimeout(()=>{n||e.dispatchEvent(o)},a+r+17)}else t.apply(e,[o])},emulateTransitionEnd:function(e,t){let n=0;const o=new Event("transitionend"),i=Q(e),a=W(e);if(i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener("transitionend",r),n=1)};e.addEventListener("transitionend",r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},emulateTransitionEndLegacy:function(e,t){let n=0;const o=new Event(s),i=j(e),a=V(e);if(N&&i){const r=o=>{o.target===e&&(t.apply(e,[o]),e.removeEventListener(s,r),n=1)};e.addEventListener(s,r),setTimeout(()=>{n||e.dispatchEvent(o)},i+a+17)}else t.apply(e,[o])},isElementInScrollRange:e=>{const{top:t,bottom:n}=$(e),{clientHeight:o}=Y(e);return t<=o&&n>=0},isElementInViewport:e=>{const{top:t,left:n,bottom:o,right:i}=$(e,!0),{clientWidth:a,clientHeight:r}=Y(e);return t>=0&&n>=0&&o<=r&&i<=a},passiveHandler:K,getElementAnimationDuration:F,getElementAnimationDurationLegacy:R,getElementAnimationDelay:x,getElementAnimationDelayLegacy:B,getElementTransitionDuration:Q,getElementTransitionDurationLegacy:j,getElementTransitionDelay:W,getElementTransitionDelayLegacy:V,getNodeScroll:function(e){const t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getParentNode:function(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(J(e)?e.host:null)||Y(e)},getRectRelativeToOffsetParent:function(e,t,n){const o=O(t),i=$(e,o&&_(t)),a={x:0,y:0};if(o){const e=$(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}return{x:i.left+n.x-a.x,y:i.top+n.y-a.y,width:i.width,height:i.height}},getWindow:Z,isArray:e=>Array.isArray(e),isString:e=>"string"==typeof e,isElement:e=>e instanceof Element,isNode:M,isHTMLElement:O,isHTMLImageElement:e=>e instanceof HTMLImageElement,isSVGElement:e=>e instanceof SVGElement,isNodeList:e=>e instanceof NodeList,isHTMLCollection:e=>e instanceof HTMLCollection,isScaledElement:_,isTableElement:e=>["TABLE","TD","TH"].includes(e.tagName),isShadowRoot:J,isDocument:e=>e instanceof Document,isElementsArray:e=>Array.isArray(e)&&e.every(e=>O(e)),isWindow:S,isMedia:e=>e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(t=>e instanceof t),isRTL:e=>"rtl"===Y(e).dir,closest:function(e,t){return e&&t?e.closest(t):null},querySelector:z,getCustomElements:function(e){return[...([HTMLElement,Element,Document].some(t=>e instanceof t)?e:C()).querySelectorAll("*")].filter(e=>customElements.get(e.tagName.toLowerCase()))},querySelectorAll:function(e,t){return([HTMLElement,Element,Document].some(e=>t instanceof e)?t:C()).querySelectorAll(e)},getElementsByClassName:function(e,t){return([HTMLElement,Element,Document].some(e=>t instanceof e)?t:C()).getElementsByClassName(e)},getElementsByTagName:function(e,t){return([HTMLElement,Element,Document].some(e=>t instanceof e)?t:C()).getElementsByTagName(e)},normalizeValue:q,normalizeOptions:function(e,t,n,o){const i={...e.dataset},a={},r={};return U(i).forEach(e=>{const t=o&&e.includes(o)?e.replace(o,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;r[t]=q(i[e])}),U(n).forEach(e=>{n[e]=q(n[e])}),U(t).forEach(e=>{a[e]=e in n?n[e]:e in r?r[e]:t[e]}),a},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(`${t} ${e}`)}},reflow:e=>e.offsetHeight,focus:e=>e.focus(),ArrayFrom:e=>Array.from(e),Float32ArrayFrom:e=>Float32Array.from(Array.from(e)),Float64ArrayFrom:e=>Float64Array.from(Array.from(e)),ObjectAssign:G,ObjectKeys:U,ObjectValues:e=>Object.values(e),getBoundingClientRect:$,getDocument:C,getDocumentBody:function(e){return C(e).body},getDocumentElement:Y,getDocumentHead:function(e){return C(e).head},getElementStyle:P,setElementStyle:(e,t)=>{G(e.style,t)},hasAttribute:(e,t)=>e.hasAttribute(t),hasAttributeNS:(e,t,n)=>e.hasAttributeNS(n||null,t),getAttribute:(e,t)=>e.getAttribute(t),getAttributeNS:(e,t,n)=>e.getAttributeNS(n||null,t),setAttribute:(e,t,n)=>e.setAttribute(t,n),setAttributeNS:(e,t,n,o)=>e.setAttributeNS(o||null,t,n),removeAttribute:(e,t)=>e.removeAttribute(t),removeAttributeNS:(e,t,n)=>e.removeAttributeNS(n||null,t),Version:"0.3.0alpha6"};export{ee as default}; |
// shorter-js v0.3.0alpha6 | dnp_theme © 2022 | MIT-License | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).SHORTER=t()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",o="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",r="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",u="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",s="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",c=navigator.userAgentData,l=navigator.userAgent,m=/iPhone|iPad|iPod|Android/i,d=c?c.brands.some((function(e){return m.test(e.brand)})):m.test(l),f=/(iPhone|iPod|iPad)/,v=c?c.brands.some((function(e){return f.test(e.brand)})):f.test(l),g=!!l&&l.includes("Firefox"),E="webkitPerspective"in document.head.style||"perspective"in document.head.style;function y(e,t,n,i){var o=i||!1;e.addEventListener(t,n,o)}function b(e,t,n,i){var o=i||!1;e.removeEventListener(t,n,o)}function p(e,t,n,i){y(e,t,(function o(r){r.target===e&&(n.apply(e,[r]),b(e,t,o,i))}),i)}var h=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});p(document,"DOMContentLoaded",(function(){}),t)}catch(e){throw Error("Passive events are not supported")}return e}(),w="webkitTransform"in document.head.style||"transform"in document.head.style,A="ontouchstart"in window||"msMaxTouchPoints"in navigator,k="webkitAnimation"in document.head.style||"animation"in document.head.style,L="webkitTransition"in document.head.style||"transition"in document.head.style;function D(e,t){var n=[HTMLElement,Element,Node],i=t&&n.some((function(e){return t instanceof e}))?t:document;return n.some((function(t){return e instanceof t}))?e:i.querySelector(e)}var T=new Map,N={set:function(e,t,n){var i=D(e);i&&(T.has(t)||T.set(t,new Map),T.get(t).set(i,n))},getAllFor:function(e){var t=T.get(e);return t||null},get:function(e,t){var n=D(e),i=N.getAllFor(t),o=n&&i&&i.get(n);return o||null},remove:function(e,t){var n=D(e),i=T.get(t);i&&n&&(i.delete(n),0===i.size&&T.delete(t))}};function S(e,t){var n=getComputedStyle(e);return t in n?n[t]:""}function M(e){var t=S(e,"animationName"),n=S(e,"animationDelay"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function C(e){var t=S(e,"animationName"),n=S(e,"animationDuration"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function O(e){var t=S(e,i),o=S(e,n),r=o.includes("ms")?1:1e3,a=k&&t&&"none"!==t?parseFloat(o)*r:0;return Number.isNaN(a)?0:a}function z(e){var n=S(e,i),o=S(e,t),r=o.includes("ms")?1:1e3,a=k&&n&&"none"!==n?parseFloat(o)*r:0;return Number.isNaN(a)?0:a}function H(e){var t=S(e,"transitionProperty"),n=S(e,"transitionDelay"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function I(e){var t=S(e,"transitionProperty"),n=S(e,"transitionDuration"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function P(e){var t=S(e,s),n=S(e,a),i=n.includes("ms")?1:1e3,o=L&&t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function x(e){var t=S(e,s),n=S(e,r),i=n.includes("ms")?1:1e3,o=L&&t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function F(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}var B=function(e){return Object.keys(e)};var R=function(e,t){return Object.assign(e,t)},W=!!h&&{passive:!0},j=new Map;var Q=function(e){return e instanceof HTMLElement};function V(e,t){var n=e.getBoundingClientRect(),i=n.width,o=n.height,r=n.top,a=n.right,u=n.bottom,s=n.left,c=1,l=1;return t&&Q(e)&&(c=e.offsetWidth>0&&Math.round(i)/e.offsetWidth||1,l=e.offsetHeight>0&&Math.round(o)/e.offsetHeight||1),{width:i/c,height:o/l,top:r/l,right:a/c,bottom:u/l,left:s/c,x:s/c,y:r/l}}function q(e){return e instanceof Window}var U=function(e){return e instanceof Node};function G(e){return U(e)?e.ownerDocument:q(e)?e.document:window.document}function K(e){return G(e).documentElement}function X(e){if(null==e)return window;if(!q(e)){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Y=function(e){return e instanceof X(e).ShadowRoot||e instanceof ShadowRoot};function Z(e){var t=V(e),n=t.width,i=t.height,o=e.offsetWidth,r=e.offsetHeight;return Math.round(n)!==o||Math.round(i)!==r}return{ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",nativeEvents:["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointercancel","pointerdown","pointerleave","pointermove","pointerup","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"],abortEvent:"abort",blurEvent:"blur",moveEvent:"move",changeEvent:"change",errorEvent:"error",resetEvent:"reset",resizeEvent:"resize",scrollEvent:"scroll",submitEvent:"submit",loadEvent:"load",unloadEvent:"unload",readystatechangeEvent:"readystatechange",beforeunloadEvent:"beforeunload",orientationchangeEvent:"orientationchange",contextmenuEvent:"contextmenu",DOMContentLoadedEvent:"DOMContentLoaded",DOMMouseScrollEvent:"DOMMouseScroll",selectEvent:"select",selectendEvent:"selectend",selectstartEvent:"selectstart",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedblclickEvent:"dblclick",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mousehoverEvent:"hover",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",mouseinEvent:"mousein",mouseoutEvent:"mouseout",mousemoveEvent:"mousemove",mousewheelEvent:"mousewheel",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",pointercancelEvent:"pointercancel",pointerdownEvent:"pointerdown",pointerleaveEvent:"pointerleave",pointermoveEvent:"pointermove",pointerupEvent:"pointerup",focusEvents:{in:"focusin",out:"focusout"},focusEvent:"focus",focusinEvent:"focusin",focusoutEvent:"focusout",gesturechangeEvent:"gesturechange",gestureendEvent:"gestureend",gesturestartEvent:"gesturestart",bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:"animationDuration",animationDurationLegacy:t,animationDelay:"animationDelay",animationDelayLegacy:n,animationName:"animationName",animationNameLegacy:i,animationEndEvent:"animationend",animationEndEventLegacy:o,transitionDuration:"transitionDuration",transitionDurationLegacy:r,transitionDelay:"transitionDelay",transitionDelayLegacy:a,transitionEndEvent:"transitionend",transitionEndEventLegacy:u,transitionProperty:"transitionProperty",transitionPropertyLegacy:s,isMobile:d,isApple:v,isFirefox:g,support3DTransform:E,supportPassive:h,supportTransform:w,supportTouch:A,supportAnimation:k,supportTransition:L,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keydownEvent:"keydown",keypressEvent:"keypress",keyupEvent:"keyup",keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",offsetHeight:"offsetHeight",offsetWidth:"offsetWidth",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",userAgentData:c,userAgent:l,addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:y,off:b,one:p,Data:N,Timer:{set:function(e,t,n,i){var o=D(e);o&&(i&&i.length?(j.has(o)||j.set(o,new Map),j.get(o).set(i,setTimeout(t,n))):j.set(o,setTimeout(t,n)))},get:function(e,t){var n=D(e);if(!n)return null;if(t&&t.length){j.has(n)||j.set(n,new Map);var i=j.get(n);if(i.has(t))return i.get(t)}else if(j.has(n))return j.get(n);return null},clear:function(e,t){var n=D(e),i=n&&j.get(n);i&&(t&&t.length?i.has(t)&&(clearTimeout(i.get(t)),i.delete(t)):(clearTimeout(i),j.delete(n)))}},getInstance:function(e,t){return N.get(e,t)},emulateAnimationEnd:function(e,t){var n=0,i=new Event("animationend"),o=C(e),r=M(e);if(o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener("animationend",a),n=1)};e.addEventListener("animationend",a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},emulateAnimationEndLegacy:function(e,t){var n=0,i=new Event(o),r=z(e),a=O(e);if(k&&r){var u=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener(o,u),n=1)};e.addEventListener(o,u),setTimeout((function(){n||e.dispatchEvent(i)}),r+a+17)}else t.apply(e,[i])},emulateTransitionEnd:function(e,t){var n=0,i=new Event("transitionend"),o=I(e),r=H(e);if(o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener("transitionend",a),n=1)};e.addEventListener("transitionend",a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},emulateTransitionEndLegacy:function(e,t){var n=0,i=new Event(u),o=x(e),r=P(e);if(L&&o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener(u,a),n=1)};e.addEventListener(u,a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},isElementInScrollRange:function(e){var t=V(e),n=t.top,i=t.bottom;return n<=K(e).clientHeight&&i>=0},isElementInViewport:function(e){var t=V(e,!0),n=t.top,i=t.left,o=t.bottom,r=t.right,a=K(e),u=a.clientWidth,s=a.clientHeight;return n>=0&&i>=0&&o<=s&&r<=u},passiveHandler:W,getElementAnimationDuration:C,getElementAnimationDurationLegacy:z,getElementAnimationDelay:M,getElementAnimationDelayLegacy:O,getElementTransitionDuration:I,getElementTransitionDurationLegacy:x,getElementTransitionDelay:H,getElementTransitionDelayLegacy:P,getNodeScroll:function(e){var t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getParentNode:function(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(Y(e)?e.host:null)||K(e)},getRectRelativeToOffsetParent:function(e,t,n){var i=Q(t),o=V(e,i&&Z(t)),r={x:0,y:0};if(i){var a=V(t,!0);r.x=a.x+t.clientLeft,r.y=a.y+t.clientTop}return{x:o.left+n.x-r.x,y:o.top+n.y-r.y,width:o.width,height:o.height}},getWindow:X,isArray:function(e){return Array.isArray(e)},isString:function(e){return"string"==typeof e},isElement:function(e){return e instanceof Element},isNode:U,isHTMLElement:Q,isHTMLImageElement:function(e){return e instanceof HTMLImageElement},isSVGElement:function(e){return e instanceof SVGElement},isNodeList:function(e){return e instanceof NodeList},isHTMLCollection:function(e){return e instanceof HTMLCollection},isScaledElement:Z,isTableElement:function(e){return["TABLE","TD","TH"].includes(e.tagName)},isShadowRoot:Y,isElementsArray:function(e){return Array.isArray(e)&&e.every((function(e){return Q(e)}))},isWindow:q,isMedia:function(e){return e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some((function(t){return e instanceof t}))},isRTL:function(e){return"rtl"===K(e).dir},closest:function(e,t){return e&&t?e.closest(t):null},querySelector:D,getCustomElements:function(e){var t=e&&Q(e)?e:document;return[].concat(t.querySelectorAll("*")).filter((function(e){return customElements.get(e.nodeName.toLowerCase())}))},querySelectorAll:function(e,t){return(t&&[HTMLElement,Element,Node].some((function(e){return t instanceof e}))?t:document).querySelectorAll(e)},getElementsByClassName:function(e,t){return(t&&Q(t)?t:document).getElementsByClassName(e)},getElementsByTagName:function(e,t){return(t&&Q(t)?t:document).getElementsByTagName(e)},normalizeValue:F,normalizeOptions:function(e,t,n,i){var o=Object.assign({},e.dataset),r={},a={};return B(o).forEach((function(e){var t=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;a[t]=F(o[e])})),B(n).forEach((function(e){n[e]=F(n[e])})),B(t).forEach((function(e){r[e]=e in n?n[e]:e in a?a[e]:t[e]})),r},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(t+" "+e)}},reflow:function(e){return e.offsetHeight},focus:function(e){return e.focus()},ArrayFrom:function(e){return Array.from(e)},Float32ArrayFrom:function(e){return Float32Array.from(Array.from(e))},Float64ArrayFrom:function(e){return Float64Array.from(Array.from(e))},ObjectAssign:R,ObjectKeys:B,ObjectValues:function(e){return Object.values(e)},getBoundingClientRect:V,getDocument:G,getDocumentBody:function(e){return G(e).body},getDocumentElement:K,getDocumentHead:function(e){return G(e).head},getElementStyle:S,setElementStyle:function(e,t){R(e.style,t)},hasAttribute:function(e,t){return e.hasAttribute(t)},hasAttributeNS:function(e,t,n){return e.hasAttributeNS(n||null,t)},getAttribute:function(e,t){return e.getAttribute(t)},getAttributeNS:function(e,t,n){return e.getAttributeNS(n||null,t)},setAttribute:function(e,t,n){return e.setAttribute(t,n)},setAttributeNS:function(e,t,n,i){return e.setAttributeNS(i||null,t,n)},removeAttribute:function(e,t){return e.removeAttribute(t)},removeAttributeNS:function(e,t,n){return e.removeAttributeNS(n||null,t)},Version:"0.3.0alpha6"}})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).SHORTER=t()}(this,(function(){"use strict";var e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],t="webkitAnimation"in document.head.style?"webkitAnimationDuration":"animationDuration",n="webkitAnimation"in document.head.style?"webkitAnimationDelay":"animationDelay",i="webkitAnimation"in document.head.style?"webkitAnimationName":"animationName",o="webkitAnimation"in document.head.style?"webkitAnimationEnd":"animationend",r="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration",a="webkitTransition"in document.head.style?"webkitTransitionDelay":"transitionDelay",u="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",s="webkitTransition"in document.head.style?"webkitTransitionProperty":"transitionProperty",c=navigator.userAgentData,l=navigator.userAgent,m=/iPhone|iPad|iPod|Android/i,d=c?c.brands.some((function(e){return m.test(e.brand)})):m.test(l),f=/(iPhone|iPod|iPad)/,v=c?c.brands.some((function(e){return f.test(e.brand)})):f.test(l),g=!!l&&l.includes("Firefox"),E="webkitPerspective"in document.head.style||"perspective"in document.head.style;function y(e,t,n,i){var o=i||!1;e.addEventListener(t,n,o)}function b(e,t,n,i){var o=i||!1;e.removeEventListener(t,n,o)}function p(e,t,n,i){y(e,t,(function o(r){r.target===e&&(n.apply(e,[r]),b(e,t,o,i))}),i)}var h=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});p(document,"DOMContentLoaded",(function(){}),t)}catch(e){throw Error("Passive events are not supported")}return e}(),w="webkitTransform"in document.head.style||"transform"in document.head.style,A="ontouchstart"in window||"msMaxTouchPoints"in navigator,k="webkitAnimation"in document.head.style||"animation"in document.head.style,L="webkitTransition"in document.head.style||"transition"in document.head.style;function D(e){return e instanceof Window}var T=function(e){return e instanceof Node};function N(e){return T(e)?e.ownerDocument:D(e)?e.document:window.document}var S=function(e){return e instanceof HTMLElement};function M(e,t){var n=[Document,HTMLElement,Element].some((function(e){return t instanceof e}))?t:N();return S(e)?e:n.querySelector(e)}var C=new Map,O={set:function(e,t,n){var i=M(e);i&&(C.has(t)||C.set(t,new Map),C.get(t).set(i,n))},getAllFor:function(e){var t=C.get(e);return t||null},get:function(e,t){var n=M(e),i=O.getAllFor(t),o=n&&i&&i.get(n);return o||null},remove:function(e,t){var n=M(e),i=C.get(t);i&&n&&(i.delete(n),0===i.size&&C.delete(t))}};function z(e,t){var n=getComputedStyle(e);return t in n?n[t]:""}function H(e){var t=z(e,"animationName"),n=z(e,"animationDelay"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function I(e){var t=z(e,"animationName"),n=z(e,"animationDuration"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function P(e){var t=z(e,i),o=z(e,n),r=o.includes("ms")?1:1e3,a=k&&t&&"none"!==t?parseFloat(o)*r:0;return Number.isNaN(a)?0:a}function x(e){var n=z(e,i),o=z(e,t),r=o.includes("ms")?1:1e3,a=k&&n&&"none"!==n?parseFloat(o)*r:0;return Number.isNaN(a)?0:a}function F(e){var t=z(e,"transitionProperty"),n=z(e,"transitionDelay"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function B(e){var t=z(e,"transitionProperty"),n=z(e,"transitionDuration"),i=n.includes("ms")?1:1e3,o=t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function R(e){var t=z(e,s),n=z(e,a),i=n.includes("ms")?1:1e3,o=L&&t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function W(e){var t=z(e,s),n=z(e,r),i=n.includes("ms")?1:1e3,o=L&&t&&"none"!==t?parseFloat(n)*i:0;return Number.isNaN(o)?0:o}function j(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}var Q=function(e){return Object.keys(e)};var V=function(e,t){return Object.assign(e,t)},q=!!h&&{passive:!0},U=new Map;function G(e,t){var n=e.getBoundingClientRect(),i=n.width,o=n.height,r=n.top,a=n.right,u=n.bottom,s=n.left,c=1,l=1;return t&&S(e)&&(c=e.offsetWidth>0&&Math.round(i)/e.offsetWidth||1,l=e.offsetHeight>0&&Math.round(o)/e.offsetHeight||1),{width:i/c,height:o/l,top:r/l,right:a/c,bottom:u/l,left:s/c,x:s/c,y:r/l}}function K(e){return N(e).documentElement}function X(e){if(null==e)return window;if(!D(e)){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Y=function(e){return e instanceof X(e).ShadowRoot||e instanceof ShadowRoot};function Z(e){var t=G(e),n=t.width,i=t.height,o=e.offsetWidth,r=e.offsetHeight;return Math.round(n)!==o||Math.round(i)!==r}return{ariaChecked:"aria-checked",ariaDescribedBy:"aria-describedby",ariaExpanded:"aria-expanded",ariaHidden:"aria-hidden",ariaLabel:"aria-label",ariaLabelledBy:"aria-labelledby",ariaModal:"aria-modal",ariaPressed:"aria-pressed",ariaSelected:"aria-selected",nativeEvents:["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointercancel","pointerdown","pointerleave","pointermove","pointerup","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"],abortEvent:"abort",blurEvent:"blur",moveEvent:"move",changeEvent:"change",errorEvent:"error",resetEvent:"reset",resizeEvent:"resize",scrollEvent:"scroll",submitEvent:"submit",loadEvent:"load",unloadEvent:"unload",readystatechangeEvent:"readystatechange",beforeunloadEvent:"beforeunload",orientationchangeEvent:"orientationchange",contextmenuEvent:"contextmenu",DOMContentLoadedEvent:"DOMContentLoaded",DOMMouseScrollEvent:"DOMMouseScroll",selectEvent:"select",selectendEvent:"selectend",selectstartEvent:"selectstart",mouseClickEvents:{down:"mousedown",up:"mouseup"},mouseclickEvent:"click",mousedblclickEvent:"dblclick",mousedownEvent:"mousedown",mouseupEvent:"mouseup",mousehoverEvent:"hover",mouseHoverEvents:e,mouseenterEvent:"mouseenter",mouseleaveEvent:"mouseleave",mouseinEvent:"mousein",mouseoutEvent:"mouseout",mousemoveEvent:"mousemove",mousewheelEvent:"mousewheel",mouseSwipeEvents:{start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},touchEvents:{start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},touchstartEvent:"touchstart",touchmoveEvent:"touchmove",touchcancelEvent:"touchcancel",touchendEvent:"touchend",pointercancelEvent:"pointercancel",pointerdownEvent:"pointerdown",pointerleaveEvent:"pointerleave",pointermoveEvent:"pointermove",pointerupEvent:"pointerup",focusEvents:{in:"focusin",out:"focusout"},focusEvent:"focus",focusinEvent:"focusin",focusoutEvent:"focusout",gesturechangeEvent:"gesturechange",gestureendEvent:"gestureend",gesturestartEvent:"gesturestart",bezierEasings:{linear:"linear",easingSinusoidalIn:"cubic-bezier(0.47,0,0.745,0.715)",easingSinusoidalOut:"cubic-bezier(0.39,0.575,0.565,1)",easingSinusoidalInOut:"cubic-bezier(0.445,0.05,0.55,0.95)",easingQuadraticIn:"cubic-bezier(0.550,0.085,0.680,0.530)",easingQuadraticOut:"cubic-bezier(0.250,0.460,0.450,0.940)",easingQuadraticInOut:"cubic-bezier(0.455,0.030,0.515,0.955)",easingCubicIn:"cubic-bezier(0.55,0.055,0.675,0.19)",easingCubicOut:"cubic-bezier(0.215,0.61,0.355,1)",easingCubicInOut:"cubic-bezier(0.645,0.045,0.355,1)",easingQuarticIn:"cubic-bezier(0.895,0.03,0.685,0.22)",easingQuarticOut:"cubic-bezier(0.165,0.84,0.44,1)",easingQuarticInOut:"cubic-bezier(0.77,0,0.175,1)",easingQuinticIn:"cubic-bezier(0.755,0.05,0.855,0.06)",easingQuinticOut:"cubic-bezier(0.23,1,0.32,1)",easingQuinticInOut:"cubic-bezier(0.86,0,0.07,1)",easingExponentialIn:"cubic-bezier(0.95,0.05,0.795,0.035)",easingExponentialOut:"cubic-bezier(0.19,1,0.22,1)",easingExponentialInOut:"cubic-bezier(1,0,0,1)",easingCircularIn:"cubic-bezier(0.6,0.04,0.98,0.335)",easingCircularOut:"cubic-bezier(0.075,0.82,0.165,1)",easingCircularInOut:"cubic-bezier(0.785,0.135,0.15,0.86)",easingBackIn:"cubic-bezier(0.6,-0.28,0.735,0.045)",easingBackOut:"cubic-bezier(0.175,0.885,0.32,1.275)",easingBackInOut:"cubic-bezier(0.68,-0.55,0.265,1.55)"},animationDuration:"animationDuration",animationDurationLegacy:t,animationDelay:"animationDelay",animationDelayLegacy:n,animationName:"animationName",animationNameLegacy:i,animationEndEvent:"animationend",animationEndEventLegacy:o,transitionDuration:"transitionDuration",transitionDurationLegacy:r,transitionDelay:"transitionDelay",transitionDelayLegacy:a,transitionEndEvent:"transitionend",transitionEndEventLegacy:u,transitionProperty:"transitionProperty",transitionPropertyLegacy:s,isMobile:d,isApple:v,isFirefox:g,support3DTransform:E,supportPassive:h,supportTransform:w,supportTouch:A,supportAnimation:k,supportTransition:L,addEventListener:"addEventListener",removeEventListener:"removeEventListener",keyboardEventKeys:{Backspace:"Backspace",Tab:"Tab",Enter:"Enter",Shift:"Shift",Control:"Control",Alt:"Alt",Pause:"Pause",CapsLock:"CapsLock",Escape:"Escape",Scape:"Space",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Insert:"Insert",Delete:"Delete",Meta:"Meta",ContextMenu:"ContextMenu",ScrollLock:"ScrollLock"},keydownEvent:"keydown",keypressEvent:"keypress",keyupEvent:"keyup",keyAlt:"Alt",keyArrowDown:"ArrowDown",keyArrowLeft:"ArrowLeft",keyArrowRight:"ArrowRight",keyArrowUp:"ArrowUp",keyBackspace:"Backspace",keyCapsLock:"CapsLock",keyControl:"Control",keyDelete:"Delete",keyEnter:"Enter",keyEscape:"Escape",keyInsert:"Insert",keyMeta:"Meta",keyPause:"Pause",keyScrollLock:"ScrollLock",keyShift:"Shift",keySpace:"Space",keyTab:"Tab",offsetHeight:"offsetHeight",offsetWidth:"offsetWidth",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",userAgentData:c,userAgent:l,addClass:function(e,t){e.classList.add(t)},removeClass:function(e,t){e.classList.remove(t)},hasClass:function(e,t){return e.classList.contains(t)},on:y,off:b,one:p,Data:O,Timer:{set:function(e,t,n,i){var o=M(e);o&&(i&&i.length?(U.has(o)||U.set(o,new Map),U.get(o).set(i,setTimeout(t,n))):U.set(o,setTimeout(t,n)))},get:function(e,t){var n=M(e);if(!n)return null;if(t&&t.length){U.has(n)||U.set(n,new Map);var i=U.get(n);if(i.has(t))return i.get(t)}else if(U.has(n))return U.get(n);return null},clear:function(e,t){var n=M(e),i=n&&U.get(n);i&&(t&&t.length?i.has(t)&&(clearTimeout(i.get(t)),i.delete(t)):(clearTimeout(i),U.delete(n)))}},getInstance:function(e,t){return O.get(e,t)},emulateAnimationEnd:function(e,t){var n=0,i=new Event("animationend"),o=I(e),r=H(e);if(o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener("animationend",a),n=1)};e.addEventListener("animationend",a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},emulateAnimationEndLegacy:function(e,t){var n=0,i=new Event(o),r=x(e),a=P(e);if(k&&r){var u=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener(o,u),n=1)};e.addEventListener(o,u),setTimeout((function(){n||e.dispatchEvent(i)}),r+a+17)}else t.apply(e,[i])},emulateTransitionEnd:function(e,t){var n=0,i=new Event("transitionend"),o=B(e),r=F(e);if(o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener("transitionend",a),n=1)};e.addEventListener("transitionend",a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},emulateTransitionEndLegacy:function(e,t){var n=0,i=new Event(u),o=W(e),r=R(e);if(L&&o){var a=function(i){i.target===e&&(t.apply(e,[i]),e.removeEventListener(u,a),n=1)};e.addEventListener(u,a),setTimeout((function(){n||e.dispatchEvent(i)}),o+r+17)}else t.apply(e,[i])},isElementInScrollRange:function(e){var t=G(e),n=t.top,i=t.bottom;return n<=K(e).clientHeight&&i>=0},isElementInViewport:function(e){var t=G(e,!0),n=t.top,i=t.left,o=t.bottom,r=t.right,a=K(e),u=a.clientWidth,s=a.clientHeight;return n>=0&&i>=0&&o<=s&&r<=u},passiveHandler:q,getElementAnimationDuration:I,getElementAnimationDurationLegacy:x,getElementAnimationDelay:H,getElementAnimationDelayLegacy:P,getElementTransitionDuration:B,getElementTransitionDurationLegacy:W,getElementTransitionDelay:F,getElementTransitionDelayLegacy:R,getNodeScroll:function(e){var t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getParentNode:function(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(Y(e)?e.host:null)||K(e)},getRectRelativeToOffsetParent:function(e,t,n){var i=S(t),o=G(e,i&&Z(t)),r={x:0,y:0};if(i){var a=G(t,!0);r.x=a.x+t.clientLeft,r.y=a.y+t.clientTop}return{x:o.left+n.x-r.x,y:o.top+n.y-r.y,width:o.width,height:o.height}},getWindow:X,isArray:function(e){return Array.isArray(e)},isString:function(e){return"string"==typeof e},isElement:function(e){return e instanceof Element},isNode:T,isHTMLElement:S,isHTMLImageElement:function(e){return e instanceof HTMLImageElement},isSVGElement:function(e){return e instanceof SVGElement},isNodeList:function(e){return e instanceof NodeList},isHTMLCollection:function(e){return e instanceof HTMLCollection},isScaledElement:Z,isTableElement:function(e){return["TABLE","TD","TH"].includes(e.tagName)},isShadowRoot:Y,isDocument:function(e){return e instanceof Document},isElementsArray:function(e){return Array.isArray(e)&&e.every((function(e){return S(e)}))},isWindow:D,isMedia:function(e){return e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some((function(t){return e instanceof t}))},isRTL:function(e){return"rtl"===K(e).dir},closest:function(e,t){return e&&t?e.closest(t):null},querySelector:M,getCustomElements:function(e){var t=[HTMLElement,Element,Document].some((function(t){return e instanceof t}))?e:N();return[].concat(t.querySelectorAll("*")).filter((function(e){return customElements.get(e.tagName.toLowerCase())}))},querySelectorAll:function(e,t){return([HTMLElement,Element,Document].some((function(e){return t instanceof e}))?t:N()).querySelectorAll(e)},getElementsByClassName:function(e,t){return([HTMLElement,Element,Document].some((function(e){return t instanceof e}))?t:N()).getElementsByClassName(e)},getElementsByTagName:function(e,t){return([HTMLElement,Element,Document].some((function(e){return t instanceof e}))?t:N()).getElementsByTagName(e)},normalizeValue:j,normalizeOptions:function(e,t,n,i){var o=Object.assign({},e.dataset),r={},a={};return Q(o).forEach((function(e){var t=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;a[t]=j(o[e])})),Q(n).forEach((function(e){n[e]=j(n[e])})),Q(t).forEach((function(e){r[e]=e in n?n[e]:e in a?a[e]:t[e]})),r},tryWrapper:function(e,t){try{e()}catch(e){throw TypeError(t+" "+e)}},reflow:function(e){return e.offsetHeight},focus:function(e){return e.focus()},ArrayFrom:function(e){return Array.from(e)},Float32ArrayFrom:function(e){return Float32Array.from(Array.from(e))},Float64ArrayFrom:function(e){return Float64Array.from(Array.from(e))},ObjectAssign:V,ObjectKeys:Q,ObjectValues:function(e){return Object.values(e)},getBoundingClientRect:G,getDocument:N,getDocumentBody:function(e){return N(e).body},getDocumentElement:K,getDocumentHead:function(e){return N(e).head},getElementStyle:z,setElementStyle:function(e,t){V(e.style,t)},hasAttribute:function(e,t){return e.hasAttribute(t)},hasAttributeNS:function(e,t,n){return e.hasAttributeNS(n||null,t)},getAttribute:function(e,t){return e.getAttribute(t)},getAttributeNS:function(e,t,n){return e.getAttributeNS(n||null,t)},setAttribute:function(e,t,n){return e.setAttribute(t,n)},setAttributeNS:function(e,t,n,i){return e.setAttributeNS(i||null,t,n)},removeAttribute:function(e,t){return e.removeAttribute(t)},removeAttributeNS:function(e,t,n){return e.removeAttributeNS(n||null,t)},Version:"0.3.0alpha6"}})); |
{ | ||
"name": "shorter-js", | ||
"version": "0.3.0alpha6", | ||
"version": "0.3.0alpha7", | ||
"description": "A small ES6+ library with various JavaScript tools useful for creating light libraries.", | ||
@@ -5,0 +5,0 @@ "main": "dist/shorter-js.min.js", |
@@ -198,2 +198,3 @@ // strings | ||
import isArray from './is/isArray'; | ||
import isDocument from './is/isDocument'; | ||
import isElement from './is/isElement'; | ||
@@ -385,2 +386,3 @@ import isElementInScrollRange from './is/isElementInScrollRange'; | ||
isShadowRoot, | ||
isDocument, | ||
isElementsArray, | ||
@@ -387,0 +389,0 @@ isWindow, |
@@ -1,2 +0,2 @@ | ||
import isHTMLElement from '../is/isHTMLElement'; | ||
import getDocument from '../get/getDocument'; | ||
@@ -8,9 +8,11 @@ /** | ||
* | ||
* @param {HTMLElement=} parent parent to look into | ||
* @returns {Node[]} the query result | ||
* @param {(HTMLElement | Document)=} parent parent to look into | ||
* @returns {Element[]} the query result | ||
*/ | ||
export default function getCustomElements(parent) { | ||
const lookUp = parent && isHTMLElement(parent) ? parent : document; | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
return [...lookUp.querySelectorAll('*')] | ||
.filter((x) => customElements.get(x.nodeName.toLowerCase())); | ||
.filter((x) => customElements.get(x.tagName.toLowerCase())); | ||
} |
@@ -1,2 +0,2 @@ | ||
import isHTMLElement from '../is/isHTMLElement'; | ||
import getDocument from '../get/getDocument'; | ||
@@ -7,9 +7,10 @@ /** | ||
* @param {string} selector the class name | ||
* @param {HTMLElement=} parent optional Element to look into | ||
* @return {HTMLCollectionOf<HTMLElement>} the 'HTMLCollection' | ||
* @param {(HTMLElement | Element | Document)=} parent optional Element to look into | ||
* @return {HTMLCollection} the 'HTMLCollection' | ||
*/ | ||
export default function getElementsByClassName(selector, parent) { | ||
const lookUp = parent && isHTMLElement(parent) ? parent : document; | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
return lookUp.getElementsByClassName(selector); | ||
} |
@@ -1,2 +0,2 @@ | ||
import isHTMLElement from '../is/isHTMLElement'; | ||
import getDocument from '../get/getDocument'; | ||
@@ -7,9 +7,10 @@ /** | ||
* @param {string} selector the tag name | ||
* @param {HTMLElement=} parent optional Element to look into | ||
* @return {HTMLCollectionOf<HTMLElement>} the 'HTMLCollection' | ||
* @param {(HTMLElement | Element | Document)=} parent optional Element to look into | ||
* @return {HTMLCollection} the 'HTMLCollection' | ||
*/ | ||
export default function getElementsByTagName(selector, parent) { | ||
const lookUp = parent && isHTMLElement(parent) ? parent : document; | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
return lookUp.getElementsByTagName(selector); | ||
} |
@@ -0,1 +1,4 @@ | ||
import getDocument from '../get/getDocument'; | ||
import isHTMLElement from '../is/isHTMLElement'; | ||
/** | ||
@@ -6,12 +9,11 @@ * Utility to check if target is typeof `HTMLElement`, `Element`, `Node` | ||
* @param {HTMLElement | string} selector the input selector or target element | ||
* @param {(Node | Element | HTMLElement)=} parent optional node to look into | ||
* @param {(Document | Element | HTMLElement)=} parent optional node to look into | ||
* @return {HTMLElement?} the `HTMLElement` or `querySelector` result | ||
*/ | ||
export default function querySelector(selector, parent) { | ||
const nodeTypes = [HTMLElement, Element, Node]; | ||
const lookUp = parent && nodeTypes.some((x) => parent instanceof x) ? parent : document; | ||
return nodeTypes.some((x) => selector instanceof x) | ||
// @ts-ignore -- we must include ShadowRoot Node | ||
? selector : lookUp.querySelector(selector); | ||
const nodeTypes = [Document, HTMLElement, Element]; | ||
const lookUp = nodeTypes.some((x) => parent instanceof x) | ||
? parent : getDocument(); | ||
// @ts-ignore | ||
return isHTMLElement(selector) ? selector : lookUp.querySelector(selector); | ||
} |
@@ -0,1 +1,3 @@ | ||
import getDocument from '../get/getDocument'; | ||
/** | ||
@@ -5,10 +7,10 @@ * A shortcut for `(document|Element).querySelectorAll`. | ||
* @param {string} selector the input selector | ||
* @param {(Node | Element | HTMLElement)=} parent optional node to look into | ||
* @return {NodeListOf<HTMLElement>} the query result | ||
* @param {(Document | HTMLElement | Element)=} parent optional node to look into | ||
* @return {NodeListOf<Element>} the query result | ||
*/ | ||
export default function querySelectorAll(selector, parent) { | ||
const lookUp = parent && [HTMLElement, Element, Node] | ||
.some((x) => parent instanceof x) ? parent : document; | ||
// @ts-ignore -- we must include ShadowRoot Node | ||
const lookUp = [HTMLElement, Element, Document] | ||
.some((x) => parent instanceof x) ? parent : getDocument(); | ||
// @ts-ignore | ||
return lookUp.querySelectorAll(selector); | ||
} |
export as namespace SHORTER; | ||
import './shorter'; | ||
export { default as ariaChecked } from "shorter-js/src/strings/ariaChecked"; | ||
export { default as ariaDescribedBy } from "shorter-js/src/strings/ariaDescribedBy"; | ||
export { default as ariaExpanded } from "shorter-js/src/strings/ariaExpanded"; | ||
export { default as ariaHidden } from "shorter-js/src/strings/ariaHidden"; | ||
export { default as ariaLabel } from "shorter-js/src/strings/ariaLabel"; | ||
export { default as ariaLabelledBy } from "shorter-js/src/strings/ariaLabelledBy"; | ||
export { default as ariaModal } from "shorter-js/src/strings/ariaModal"; | ||
export { default as ariaPressed } from "shorter-js/src/strings/ariaPressed"; | ||
export { default as ariaSelected } from "shorter-js/src/strings/ariaSelected"; | ||
export { default as nativeEvents } from "shorter-js/src/strings/nativeEvents"; | ||
export { default as abortEvent } from "shorter-js/src/strings/abortEvent"; | ||
export { default as blurEvent } from "shorter-js/src/strings/blurEvent"; | ||
export { default as moveEvent } from "shorter-js/src/strings/moveEvent"; | ||
export { default as changeEvent } from "shorter-js/src/strings/changeEvent"; | ||
export { default as errorEvent } from "shorter-js/src/strings/errorEvent"; | ||
export { default as resetEvent } from "shorter-js/src/strings/resetEvent"; | ||
export { default as resizeEvent } from "shorter-js/src/strings/resizeEvent"; | ||
export { default as scrollEvent } from "shorter-js/src/strings/scrollEvent"; | ||
export { default as submitEvent } from "shorter-js/src/strings/submitEvent"; | ||
export { default as loadEvent } from "shorter-js/src/strings/loadEvent"; | ||
export { default as unloadEvent } from "shorter-js/src/strings/unloadEvent"; | ||
export { default as readystatechangeEvent } from "shorter-js/src/strings/readystatechangeEvent"; | ||
export { default as beforeunloadEvent } from "shorter-js/src/strings/beforeunloadEvent"; | ||
export { default as orientationchangeEvent } from "shorter-js/src/strings/orientationchangeEvent"; | ||
export { default as contextmenuEvent } from "shorter-js/src/strings/contextmenuEvent"; | ||
export { default as DOMContentLoadedEvent } from "shorter-js/src/strings/DOMContentLoadedEvent"; | ||
export { default as DOMMouseScrollEvent } from "shorter-js/src/strings/DOMMouseScrollEvent"; | ||
export { default as selectEvent } from "shorter-js/src/strings/selectEvent"; | ||
export { default as selectendEvent } from "shorter-js/src/strings/selectendEvent"; | ||
export { default as selectstartEvent } from "shorter-js/src/strings/selectstartEvent"; | ||
export { default as mouseSwipeEvents } from "shorter-js/src/strings/mouseSwipeEvents"; | ||
export { default as mouseClickEvents } from "shorter-js/src/strings/mouseClickEvents"; | ||
export { default as mouseclickEvent } from "shorter-js/src/strings/mouseclickEvent"; | ||
export { default as mousedblclickEvent } from "shorter-js/src/strings/mousedblclickEvent"; | ||
export { default as mousedownEvent } from "shorter-js/src/strings/mousedownEvent"; | ||
export { default as mouseupEvent } from "shorter-js/src/strings/mouseupEvent"; | ||
export { default as mousehoverEvent } from "shorter-js/src/strings/mousehoverEvent"; | ||
export { default as mouseHoverEvents } from "shorter-js/src/strings/mouseHoverEvents"; | ||
export { default as mouseenterEvent } from "shorter-js/src/strings/mouseenterEvent"; | ||
export { default as mouseleaveEvent } from "shorter-js/src/strings/mouseleaveEvent"; | ||
export { default as mouseinEvent } from "shorter-js/src/strings/mouseinEvent"; | ||
export { default as mouseoutEvent } from "shorter-js/src/strings/mouseoutEvent"; | ||
export { default as mousemoveEvent } from "shorter-js/src/strings/mousemoveEvent"; | ||
export { default as mousewheelEvent } from "shorter-js/src/strings/mousewheelEvent"; | ||
export { default as touchEvents } from "shorter-js/src/strings/touchEvents"; | ||
export { default as touchstartEvent } from "shorter-js/src/strings/touchstartEvent"; | ||
export { default as touchmoveEvent } from "shorter-js/src/strings/touchmoveEvent"; | ||
export { default as touchcancelEvent } from "shorter-js/src/strings/touchcancelEvent"; | ||
export { default as touchendEvent } from "shorter-js/src/strings/touchendEvent"; | ||
export { default as pointercancelEvent } from "shorter-js/src/strings/pointercancelEvent"; | ||
export { default as pointerdownEvent } from "shorter-js/src/strings/pointerdownEvent"; | ||
export { default as pointerleaveEvent } from "shorter-js/src/strings/pointerleaveEvent"; | ||
export { default as pointermoveEvent } from "shorter-js/src/strings/pointermoveEvent"; | ||
export { default as pointerupEvent } from "shorter-js/src/strings/pointerupEvent"; | ||
export { default as focusEvents } from "shorter-js/src/strings/focusEvents"; | ||
export { default as focusEvent } from "shorter-js/src/strings/focusEvent"; | ||
export { default as focusinEvent } from "shorter-js/src/strings/focusinEvent"; | ||
export { default as focusoutEvent } from "shorter-js/src/strings/focusoutEvent"; | ||
export { default as gesturechangeEvent } from "shorter-js/src/strings/gesturechangeEvent"; | ||
export { default as gestureendEvent } from "shorter-js/src/strings/gestureendEvent"; | ||
export { default as gesturestartEvent } from "shorter-js/src/strings/gesturestartEvent"; | ||
export { default as keyboardEventKeys } from "shorter-js/src/strings/keyboardEventKeys"; | ||
export { default as keydownEvent } from "shorter-js/src/strings/keydownEvent"; | ||
export { default as keyupEvent } from "shorter-js/src/strings/keyupEvent"; | ||
export { default as keypressEvent } from "shorter-js/src/strings/keypressEvent"; | ||
export { default as keyAlt } from "shorter-js/src/strings/keyAlt"; | ||
export { default as keyArrowDown } from "shorter-js/src/strings/keyArrowDown"; | ||
export { default as keyArrowUp } from "shorter-js/src/strings/keyArrowUp"; | ||
export { default as keyArrowLeft } from "shorter-js/src/strings/keyArrowLeft"; | ||
export { default as keyArrowRight } from "shorter-js/src/strings/keyArrowRight"; | ||
export { default as keyBackspace } from "shorter-js/src/strings/keyBackspace"; | ||
export { default as keyCapsLock } from "shorter-js/src/strings/keyCapsLock"; | ||
export { default as keyControl } from "shorter-js/src/strings/keyControl"; | ||
export { default as keyDelete } from "shorter-js/src/strings/keyDelete"; | ||
export { default as keyEnter } from "shorter-js/src/strings/keyEnter"; | ||
export { default as keyEscape } from "shorter-js/src/strings/keyEscape"; | ||
export { default as keyInsert } from "shorter-js/src/strings/keyInsert"; | ||
export { default as keyMeta } from "shorter-js/src/strings/keyMeta"; | ||
export { default as keyPause } from "shorter-js/src/strings/keyPause"; | ||
export { default as keyScrollLock } from "shorter-js/src/strings/keyScrollLock"; | ||
export { default as keyShift } from "shorter-js/src/strings/keyShift"; | ||
export { default as keySpace } from "shorter-js/src/strings/keySpace"; | ||
export { default as keyTab } from "shorter-js/src/strings/keyTab"; | ||
export { default as animationDuration } from "shorter-js/src/strings/animationDuration"; | ||
export { default as animationDurationLegacy } from "shorter-js/src/strings/animationDurationLegacy"; | ||
export { default as animationDelay } from "shorter-js/src/strings/animationDelay"; | ||
export { default as animationDelayLegacy } from "shorter-js/src/strings/animationDelayLegacy"; | ||
export { default as animationName } from "shorter-js/src/strings/animationName"; | ||
export { default as animationNameLegacy } from "shorter-js/src/strings/animationNameLegacy"; | ||
export { default as animationEndEvent } from "shorter-js/src/strings/animationEndEvent"; | ||
export { default as animationEndEventLegacy } from "shorter-js/src/strings/animationEndEventLegacy"; | ||
export { default as transitionDuration } from "shorter-js/src/strings/transitionDuration"; | ||
export { default as transitionDurationLegacy } from "shorter-js/src/strings/transitionDurationLegacy"; | ||
export { default as transitionDelay } from "shorter-js/src/strings/transitionDelay"; | ||
export { default as transitionDelayLegacy } from "shorter-js/src/strings/transitionDelayLegacy"; | ||
export { default as transitionEndEvent } from "shorter-js/src/strings/transitionEndEvent"; | ||
export { default as transitionEndEventLegacy } from "shorter-js/src/strings/transitionEndEventLegacy"; | ||
export { default as transitionProperty } from "shorter-js/src/strings/transitionProperty"; | ||
export { default as transitionPropertyLegacy } from "shorter-js/src/strings/transitionPropertyLegacy"; | ||
export { default as addEventListener } from "shorter-js/src/strings/addEventListener"; | ||
export { default as removeEventListener } from "shorter-js/src/strings/removeEventListener"; | ||
export { default as bezierEasings } from "shorter-js/src/strings/bezierEasings"; | ||
export { default as offsetHeight } from "shorter-js/src/strings/offsetHeight"; | ||
export { default as offsetWidth } from "shorter-js/src/strings/offsetWidth"; | ||
export { default as scrollHeight } from "shorter-js/src/strings/scrollHeight"; | ||
export { default as scrollWidth } from "shorter-js/src/strings/scrollWidth"; | ||
export { default as userAgentData } from "shorter-js/src/strings/userAgentData"; | ||
export { default as userAgent } from "shorter-js/src/strings/userAgent"; | ||
export { default as isApple } from "shorter-js/src/boolean/isApple"; | ||
export { default as isFirefox } from "shorter-js/src/boolean/isFirefox"; | ||
export { default as isMobile } from "shorter-js/src/boolean/isMobile"; | ||
export { default as support3DTransform } from "shorter-js/src/boolean/support3DTransform"; | ||
export { default as supportAnimation } from "shorter-js/src/boolean/supportAnimation"; | ||
export { default as supportPassive } from "shorter-js/src/boolean/supportPassive"; | ||
export { default as supportTouch } from "shorter-js/src/boolean/supportTouch"; | ||
export { default as supportTransform } from "shorter-js/src/boolean/supportTransform"; | ||
export { default as supportTransition } from "shorter-js/src/boolean/supportTransition"; | ||
export { default as getAttribute } from "shorter-js/src/attr/getAttribute"; | ||
export { default as getAttributeNS } from "shorter-js/src/attr/getAttributeNS"; | ||
export { default as setAttribute } from "shorter-js/src/attr/setAttribute"; | ||
export { default as setAttributeNS } from "shorter-js/src/attr/setAttributeNS"; | ||
export { default as removeAttribute } from "shorter-js/src/attr/removeAttribute"; | ||
export { default as removeAttributeNS } from "shorter-js/src/attr/removeAttributeNS"; | ||
export { default as getBoundingClientRect } from "shorter-js/src/get/getBoundingClientRect"; | ||
export { default as getDocument } from "shorter-js/src/get/getDocument"; | ||
export { default as getDocumentBody } from "shorter-js/src/get/getDocumentBody"; | ||
export { default as getDocumentElement } from "shorter-js/src/get/getDocumentElement"; | ||
export { default as getDocumentHead } from "shorter-js/src/get/getDocumentHead"; | ||
export { default as getElementAnimationDuration } from "shorter-js/src/get/getElementAnimationDuration"; | ||
export { default as getElementAnimationDurationLegacy } from "shorter-js/src/get/getElementAnimationDurationLegacy"; | ||
export { default as getElementAnimationDelay } from "shorter-js/src/get/getElementAnimationDelay"; | ||
export { default as getElementAnimationDelayLegacy } from "shorter-js/src/get/getElementAnimationDelayLegacy"; | ||
export { default as getElementStyle } from "shorter-js/src/get/getElementStyle"; | ||
export { default as getElementTransitionDuration } from "shorter-js/src/get/getElementTransitionDuration"; | ||
export { default as getElementTransitionDurationLegacy } from "shorter-js/src/get/getElementTransitionDurationLegacy"; | ||
export { default as getElementTransitionDelay } from "shorter-js/src/get/getElementTransitionDelay"; | ||
export { default as getElementTransitionDelayLegacy } from "shorter-js/src/get/getElementTransitionDelayLegacy"; | ||
export { default as getNodeScroll } from "shorter-js/src/get/getNodeScroll"; | ||
export { default as getParentNode } from "shorter-js/src/get/getParentNode"; | ||
export { default as getRectRelativeToOffsetParent } from "shorter-js/src/get/getRectRelativeToOffsetParent"; | ||
export { default as getWindow } from "shorter-js/src/get/getWindow"; | ||
export { default as addClass } from "shorter-js/src/class/addClass"; | ||
export { default as removeClass } from "shorter-js/src/class/removeClass"; | ||
export { default as hasClass } from "shorter-js/src/class/hasClass"; | ||
export { default as on } from "shorter-js/src/event/on"; | ||
export { default as off } from "shorter-js/src/event/off"; | ||
export { default as one } from "shorter-js/src/event/one"; | ||
export { default as Data } from "shorter-js/src/misc/data"; | ||
export { default as Timer } from "shorter-js/src/misc/timer"; | ||
export { default as emulateAnimationEnd } from "shorter-js/src/misc/emulateAnimationEnd"; | ||
export { default as emulateAnimationEndLegacy } from "shorter-js/src/misc/emulateAnimationEndLegacy"; | ||
export { default as emulateTransitionEnd } from "shorter-js/src/misc/emulateTransitionEnd"; | ||
export { default as emulateTransitionEndLegacy } from "shorter-js/src/misc/emulateTransitionEndLegacy"; | ||
export { default as passiveHandler } from "shorter-js/src/misc/passiveHandler"; | ||
export { default as setElementStyle } from "shorter-js/src/misc/setElementStyle"; | ||
export { default as normalizeValue } from "shorter-js/src/misc/normalizeValue"; | ||
export { default as normalizeOptions } from "shorter-js/src/misc/normalizeOptions"; | ||
export { default as tryWrapper } from "shorter-js/src/misc/tryWrapper"; | ||
export { default as reflow } from "shorter-js/src/misc/reflow"; | ||
export { default as focus } from "shorter-js/src/misc/focus"; | ||
export { default as ArrayFrom } from "shorter-js/src/misc/ArrayFrom"; | ||
export { default as Float32ArrayFrom } from "shorter-js/src/misc/Float32ArrayFrom"; | ||
export { default as Float64ArrayFrom } from "shorter-js/src/misc/Float64ArrayFrom"; | ||
export { default as ObjectKeys } from "shorter-js/src/misc/ObjectKeys"; | ||
export { default as ObjectValues } from "shorter-js/src/misc/ObjectValues"; | ||
export { default as ObjectAssign } from "shorter-js/src/misc/ObjectAssign"; | ||
export { default as isArray } from "shorter-js/src/is/isArray"; | ||
export { default as isElement } from "shorter-js/src/is/isElement"; | ||
export { default as isElementInScrollRange } from "shorter-js/src/is/isElementInScrollRange"; | ||
export { default as isElementInViewport } from "shorter-js/src/is/isElementInViewport"; | ||
export { default as isElementsArray } from "shorter-js/src/is/isElementsArray"; | ||
export { default as isHTMLCollection } from "shorter-js/src/is/isHTMLCollection"; | ||
export { default as isHTMLElement } from "shorter-js/src/is/isHTMLElement"; | ||
export { default as isHTMLImageElement } from "shorter-js/src/is/isHTMLImageElement"; | ||
export { default as isMedia } from "shorter-js/src/is/isMedia"; | ||
export { default as isNode } from "shorter-js/src/is/isNode"; | ||
export { default as isNodeList } from "shorter-js/src/is/isNodeList"; | ||
export { default as isRTL } from "shorter-js/src/is/isRTL"; | ||
export { default as isScaledElement } from "shorter-js/src/is/isScaledElement"; | ||
export { default as isShadowRoot } from "shorter-js/src/is/isShadowRoot"; | ||
export { default as isString } from "shorter-js/src/is/isString"; | ||
export { default as isSVGElement } from "shorter-js/src/is/isSVGElement"; | ||
export { default as isTableElement } from "shorter-js/src/is/isTableElement"; | ||
export { default as isWindow } from "shorter-js/src/is/isWindow"; | ||
export { default as closest } from "shorter-js/src/selectors/closest"; | ||
export { default as getCustomElements } from "shorter-js/src/selectors/getCustomElements"; | ||
export { default as querySelector } from "shorter-js/src/selectors/querySelector"; | ||
export { default as querySelectorAll } from "shorter-js/src/selectors/querySelectorAll"; | ||
export { default as getElementsByTagName } from "shorter-js/src/selectors/getElementsByTagName"; | ||
export { default as getElementsByClassName } from "shorter-js/src/selectors/getElementsByClassName"; | ||
export { default as Version } from "shorter-js/src/misc/version"; | ||
export { default as ariaChecked } from 'shorter-js/src/strings/ariaChecked'; | ||
export { default as ariaDescribedBy } from 'shorter-js/src/strings/ariaDescribedBy'; | ||
export { default as ariaExpanded } from 'shorter-js/src/strings/ariaExpanded'; | ||
export { default as ariaHidden } from 'shorter-js/src/strings/ariaHidden'; | ||
export { default as ariaLabel } from 'shorter-js/src/strings/ariaLabel'; | ||
export { default as ariaLabelledBy } from 'shorter-js/src/strings/ariaLabelledBy'; | ||
export { default as ariaModal } from 'shorter-js/src/strings/ariaModal'; | ||
export { default as ariaPressed } from 'shorter-js/src/strings/ariaPressed'; | ||
export { default as ariaSelected } from 'shorter-js/src/strings/ariaSelected'; | ||
export { default as nativeEvents } from 'shorter-js/src/strings/nativeEvents'; | ||
export { default as abortEvent } from 'shorter-js/src/strings/abortEvent'; | ||
export { default as blurEvent } from 'shorter-js/src/strings/blurEvent'; | ||
export { default as moveEvent } from 'shorter-js/src/strings/moveEvent'; | ||
export { default as changeEvent } from 'shorter-js/src/strings/changeEvent'; | ||
export { default as errorEvent } from 'shorter-js/src/strings/errorEvent'; | ||
export { default as resetEvent } from 'shorter-js/src/strings/resetEvent'; | ||
export { default as resizeEvent } from 'shorter-js/src/strings/resizeEvent'; | ||
export { default as scrollEvent } from 'shorter-js/src/strings/scrollEvent'; | ||
export { default as submitEvent } from 'shorter-js/src/strings/submitEvent'; | ||
export { default as loadEvent } from 'shorter-js/src/strings/loadEvent'; | ||
export { default as unloadEvent } from 'shorter-js/src/strings/unloadEvent'; | ||
export { default as readystatechangeEvent } from 'shorter-js/src/strings/readystatechangeEvent'; | ||
export { default as beforeunloadEvent } from 'shorter-js/src/strings/beforeunloadEvent'; | ||
export { default as orientationchangeEvent } from 'shorter-js/src/strings/orientationchangeEvent'; | ||
export { default as contextmenuEvent } from 'shorter-js/src/strings/contextmenuEvent'; | ||
export { default as DOMContentLoadedEvent } from 'shorter-js/src/strings/DOMContentLoadedEvent'; | ||
export { default as DOMMouseScrollEvent } from 'shorter-js/src/strings/DOMMouseScrollEvent'; | ||
export { default as selectEvent } from 'shorter-js/src/strings/selectEvent'; | ||
export { default as selectendEvent } from 'shorter-js/src/strings/selectendEvent'; | ||
export { default as selectstartEvent } from 'shorter-js/src/strings/selectstartEvent'; | ||
export { default as mouseSwipeEvents } from 'shorter-js/src/strings/mouseSwipeEvents'; | ||
export { default as mouseClickEvents } from 'shorter-js/src/strings/mouseClickEvents'; | ||
export { default as mouseclickEvent } from 'shorter-js/src/strings/mouseclickEvent'; | ||
export { default as mousedblclickEvent } from 'shorter-js/src/strings/mousedblclickEvent'; | ||
export { default as mousedownEvent } from 'shorter-js/src/strings/mousedownEvent'; | ||
export { default as mouseupEvent } from 'shorter-js/src/strings/mouseupEvent'; | ||
export { default as mousehoverEvent } from 'shorter-js/src/strings/mousehoverEvent'; | ||
export { default as mouseHoverEvents } from 'shorter-js/src/strings/mouseHoverEvents'; | ||
export { default as mouseenterEvent } from 'shorter-js/src/strings/mouseenterEvent'; | ||
export { default as mouseleaveEvent } from 'shorter-js/src/strings/mouseleaveEvent'; | ||
export { default as mouseinEvent } from 'shorter-js/src/strings/mouseinEvent'; | ||
export { default as mouseoutEvent } from 'shorter-js/src/strings/mouseoutEvent'; | ||
export { default as mousemoveEvent } from 'shorter-js/src/strings/mousemoveEvent'; | ||
export { default as mousewheelEvent } from 'shorter-js/src/strings/mousewheelEvent'; | ||
export { default as touchEvents } from 'shorter-js/src/strings/touchEvents'; | ||
export { default as touchstartEvent } from 'shorter-js/src/strings/touchstartEvent'; | ||
export { default as touchmoveEvent } from 'shorter-js/src/strings/touchmoveEvent'; | ||
export { default as touchcancelEvent } from 'shorter-js/src/strings/touchcancelEvent'; | ||
export { default as touchendEvent } from 'shorter-js/src/strings/touchendEvent'; | ||
export { default as pointercancelEvent } from 'shorter-js/src/strings/pointercancelEvent'; | ||
export { default as pointerdownEvent } from 'shorter-js/src/strings/pointerdownEvent'; | ||
export { default as pointerleaveEvent } from 'shorter-js/src/strings/pointerleaveEvent'; | ||
export { default as pointermoveEvent } from 'shorter-js/src/strings/pointermoveEvent'; | ||
export { default as pointerupEvent } from 'shorter-js/src/strings/pointerupEvent'; | ||
export { default as focusEvents } from 'shorter-js/src/strings/focusEvents'; | ||
export { default as focusEvent } from 'shorter-js/src/strings/focusEvent'; | ||
export { default as focusinEvent } from 'shorter-js/src/strings/focusinEvent'; | ||
export { default as focusoutEvent } from 'shorter-js/src/strings/focusoutEvent'; | ||
export { default as gesturechangeEvent } from 'shorter-js/src/strings/gesturechangeEvent'; | ||
export { default as gestureendEvent } from 'shorter-js/src/strings/gestureendEvent'; | ||
export { default as gesturestartEvent } from 'shorter-js/src/strings/gesturestartEvent'; | ||
export { default as keyboardEventKeys } from 'shorter-js/src/strings/keyboardEventKeys'; | ||
export { default as keydownEvent } from 'shorter-js/src/strings/keydownEvent'; | ||
export { default as keyupEvent } from 'shorter-js/src/strings/keyupEvent'; | ||
export { default as keypressEvent } from 'shorter-js/src/strings/keypressEvent'; | ||
export { default as keyAlt } from 'shorter-js/src/strings/keyAlt'; | ||
export { default as keyArrowDown } from 'shorter-js/src/strings/keyArrowDown'; | ||
export { default as keyArrowUp } from 'shorter-js/src/strings/keyArrowUp'; | ||
export { default as keyArrowLeft } from 'shorter-js/src/strings/keyArrowLeft'; | ||
export { default as keyArrowRight } from 'shorter-js/src/strings/keyArrowRight'; | ||
export { default as keyBackspace } from 'shorter-js/src/strings/keyBackspace'; | ||
export { default as keyCapsLock } from 'shorter-js/src/strings/keyCapsLock'; | ||
export { default as keyControl } from 'shorter-js/src/strings/keyControl'; | ||
export { default as keyDelete } from 'shorter-js/src/strings/keyDelete'; | ||
export { default as keyEnter } from 'shorter-js/src/strings/keyEnter'; | ||
export { default as keyEscape } from 'shorter-js/src/strings/keyEscape'; | ||
export { default as keyInsert } from 'shorter-js/src/strings/keyInsert'; | ||
export { default as keyMeta } from 'shorter-js/src/strings/keyMeta'; | ||
export { default as keyPause } from 'shorter-js/src/strings/keyPause'; | ||
export { default as keyScrollLock } from 'shorter-js/src/strings/keyScrollLock'; | ||
export { default as keyShift } from 'shorter-js/src/strings/keyShift'; | ||
export { default as keySpace } from 'shorter-js/src/strings/keySpace'; | ||
export { default as keyTab } from 'shorter-js/src/strings/keyTab'; | ||
export { default as animationDuration } from 'shorter-js/src/strings/animationDuration'; | ||
export { default as animationDurationLegacy } from 'shorter-js/src/strings/animationDurationLegacy'; | ||
export { default as animationDelay } from 'shorter-js/src/strings/animationDelay'; | ||
export { default as animationDelayLegacy } from 'shorter-js/src/strings/animationDelayLegacy'; | ||
export { default as animationName } from 'shorter-js/src/strings/animationName'; | ||
export { default as animationNameLegacy } from 'shorter-js/src/strings/animationNameLegacy'; | ||
export { default as animationEndEvent } from 'shorter-js/src/strings/animationEndEvent'; | ||
export { default as animationEndEventLegacy } from 'shorter-js/src/strings/animationEndEventLegacy'; | ||
export { default as transitionDuration } from 'shorter-js/src/strings/transitionDuration'; | ||
export { default as transitionDurationLegacy } from 'shorter-js/src/strings/transitionDurationLegacy'; | ||
export { default as transitionDelay } from 'shorter-js/src/strings/transitionDelay'; | ||
export { default as transitionDelayLegacy } from 'shorter-js/src/strings/transitionDelayLegacy'; | ||
export { default as transitionEndEvent } from 'shorter-js/src/strings/transitionEndEvent'; | ||
export { default as transitionEndEventLegacy } from 'shorter-js/src/strings/transitionEndEventLegacy'; | ||
export { default as transitionProperty } from 'shorter-js/src/strings/transitionProperty'; | ||
export { default as transitionPropertyLegacy } from 'shorter-js/src/strings/transitionPropertyLegacy'; | ||
export { default as addEventListener } from 'shorter-js/src/strings/addEventListener'; | ||
export { default as removeEventListener } from 'shorter-js/src/strings/removeEventListener'; | ||
export { default as bezierEasings } from 'shorter-js/src/strings/bezierEasings'; | ||
export { default as offsetHeight } from 'shorter-js/src/strings/offsetHeight'; | ||
export { default as offsetWidth } from 'shorter-js/src/strings/offsetWidth'; | ||
export { default as scrollHeight } from 'shorter-js/src/strings/scrollHeight'; | ||
export { default as scrollWidth } from 'shorter-js/src/strings/scrollWidth'; | ||
export { default as userAgentData } from 'shorter-js/src/strings/userAgentData'; | ||
export { default as userAgent } from 'shorter-js/src/strings/userAgent'; | ||
export { default as isApple } from 'shorter-js/src/boolean/isApple'; | ||
export { default as isFirefox } from 'shorter-js/src/boolean/isFirefox'; | ||
export { default as isMobile } from 'shorter-js/src/boolean/isMobile'; | ||
export { default as support3DTransform } from 'shorter-js/src/boolean/support3DTransform'; | ||
export { default as supportAnimation } from 'shorter-js/src/boolean/supportAnimation'; | ||
export { default as supportPassive } from 'shorter-js/src/boolean/supportPassive'; | ||
export { default as supportTouch } from 'shorter-js/src/boolean/supportTouch'; | ||
export { default as supportTransform } from 'shorter-js/src/boolean/supportTransform'; | ||
export { default as supportTransition } from 'shorter-js/src/boolean/supportTransition'; | ||
export { default as getAttribute } from 'shorter-js/src/attr/getAttribute'; | ||
export { default as getAttributeNS } from 'shorter-js/src/attr/getAttributeNS'; | ||
export { default as setAttribute } from 'shorter-js/src/attr/setAttribute'; | ||
export { default as setAttributeNS } from 'shorter-js/src/attr/setAttributeNS'; | ||
export { default as removeAttribute } from 'shorter-js/src/attr/removeAttribute'; | ||
export { default as removeAttributeNS } from 'shorter-js/src/attr/removeAttributeNS'; | ||
export { default as getBoundingClientRect } from 'shorter-js/src/get/getBoundingClientRect'; | ||
export { default as getDocument } from 'shorter-js/src/get/getDocument'; | ||
export { default as getDocumentBody } from 'shorter-js/src/get/getDocumentBody'; | ||
export { default as getDocumentElement } from 'shorter-js/src/get/getDocumentElement'; | ||
export { default as getDocumentHead } from 'shorter-js/src/get/getDocumentHead'; | ||
export { default as getElementAnimationDuration } from 'shorter-js/src/get/getElementAnimationDuration'; | ||
export { default as getElementAnimationDurationLegacy } from 'shorter-js/src/get/getElementAnimationDurationLegacy'; | ||
export { default as getElementAnimationDelay } from 'shorter-js/src/get/getElementAnimationDelay'; | ||
export { default as getElementAnimationDelayLegacy } from 'shorter-js/src/get/getElementAnimationDelayLegacy'; | ||
export { default as getElementStyle } from 'shorter-js/src/get/getElementStyle'; | ||
export { default as getElementTransitionDuration } from 'shorter-js/src/get/getElementTransitionDuration'; | ||
export { default as getElementTransitionDurationLegacy } from 'shorter-js/src/get/getElementTransitionDurationLegacy'; | ||
export { default as getElementTransitionDelay } from 'shorter-js/src/get/getElementTransitionDelay'; | ||
export { default as getElementTransitionDelayLegacy } from 'shorter-js/src/get/getElementTransitionDelayLegacy'; | ||
export { default as getNodeScroll } from 'shorter-js/src/get/getNodeScroll'; | ||
export { default as getParentNode } from 'shorter-js/src/get/getParentNode'; | ||
export { default as getRectRelativeToOffsetParent } from 'shorter-js/src/get/getRectRelativeToOffsetParent'; | ||
export { default as getWindow } from 'shorter-js/src/get/getWindow'; | ||
export { default as addClass } from 'shorter-js/src/class/addClass'; | ||
export { default as removeClass } from 'shorter-js/src/class/removeClass'; | ||
export { default as hasClass } from 'shorter-js/src/class/hasClass'; | ||
export { default as on } from 'shorter-js/src/event/on'; | ||
export { default as off } from 'shorter-js/src/event/off'; | ||
export { default as one } from 'shorter-js/src/event/one'; | ||
export { default as Data } from 'shorter-js/src/misc/data'; | ||
export { default as Timer } from 'shorter-js/src/misc/timer'; | ||
export { default as emulateAnimationEnd } from 'shorter-js/src/misc/emulateAnimationEnd'; | ||
export { default as emulateAnimationEndLegacy } from 'shorter-js/src/misc/emulateAnimationEndLegacy'; | ||
export { default as emulateTransitionEnd } from 'shorter-js/src/misc/emulateTransitionEnd'; | ||
export { default as emulateTransitionEndLegacy } from 'shorter-js/src/misc/emulateTransitionEndLegacy'; | ||
export { default as passiveHandler } from 'shorter-js/src/misc/passiveHandler'; | ||
export { default as setElementStyle } from 'shorter-js/src/misc/setElementStyle'; | ||
export { default as normalizeValue } from 'shorter-js/src/misc/normalizeValue'; | ||
export { default as normalizeOptions } from 'shorter-js/src/misc/normalizeOptions'; | ||
export { default as tryWrapper } from 'shorter-js/src/misc/tryWrapper'; | ||
export { default as reflow } from 'shorter-js/src/misc/reflow'; | ||
export { default as focus } from 'shorter-js/src/misc/focus'; | ||
export { default as ArrayFrom } from 'shorter-js/src/misc/ArrayFrom'; | ||
export { default as Float32ArrayFrom } from 'shorter-js/src/misc/Float32ArrayFrom'; | ||
export { default as Float64ArrayFrom } from 'shorter-js/src/misc/Float64ArrayFrom'; | ||
export { default as ObjectKeys } from 'shorter-js/src/misc/ObjectKeys'; | ||
export { default as ObjectValues } from 'shorter-js/src/misc/ObjectValues'; | ||
export { default as ObjectAssign } from 'shorter-js/src/misc/ObjectAssign'; | ||
export { default as isArray } from 'shorter-js/src/is/isArray'; | ||
export { default as isDocument } from 'shorter-js/src/is/isDocument'; | ||
export { default as isElement } from 'shorter-js/src/is/isElement'; | ||
export { default as isElementInScrollRange } from 'shorter-js/src/is/isElementInScrollRange'; | ||
export { default as isElementInViewport } from 'shorter-js/src/is/isElementInViewport'; | ||
export { default as isElementsArray } from 'shorter-js/src/is/isElementsArray'; | ||
export { default as isHTMLCollection } from 'shorter-js/src/is/isHTMLCollection'; | ||
export { default as isHTMLElement } from 'shorter-js/src/is/isHTMLElement'; | ||
export { default as isHTMLImageElement } from 'shorter-js/src/is/isHTMLImageElement'; | ||
export { default as isMedia } from 'shorter-js/src/is/isMedia'; | ||
export { default as isNode } from 'shorter-js/src/is/isNode'; | ||
export { default as isNodeList } from 'shorter-js/src/is/isNodeList'; | ||
export { default as isRTL } from 'shorter-js/src/is/isRTL'; | ||
export { default as isScaledElement } from 'shorter-js/src/is/isScaledElement'; | ||
export { default as isShadowRoot } from 'shorter-js/src/is/isShadowRoot'; | ||
export { default as isString } from 'shorter-js/src/is/isString'; | ||
export { default as isSVGElement } from 'shorter-js/src/is/isSVGElement'; | ||
export { default as isTableElement } from 'shorter-js/src/is/isTableElement'; | ||
export { default as isWindow } from 'shorter-js/src/is/isWindow'; | ||
export { default as closest } from 'shorter-js/src/selectors/closest'; | ||
export { default as getCustomElements } from 'shorter-js/src/selectors/getCustomElements'; | ||
export { default as querySelector } from 'shorter-js/src/selectors/querySelector'; | ||
export { default as querySelectorAll } from 'shorter-js/src/selectors/querySelectorAll'; | ||
export { default as getElementsByTagName } from 'shorter-js/src/selectors/getElementsByTagName'; | ||
export { default as getElementsByClassName } from 'shorter-js/src/selectors/getElementsByClassName'; | ||
export { default as Version } from 'shorter-js/src/misc/version'; | ||
@@ -196,0 +197,0 @@ export { |
// strings | ||
export { default as ariaChecked } from "../../src/strings/ariaChecked"; | ||
export { default as ariaDescribedBy } from "../../src/strings/ariaDescribedBy"; | ||
export { default as ariaExpanded } from "../../src/strings/ariaExpanded"; | ||
export { default as ariaHidden } from "../../src/strings/ariaHidden"; | ||
export { default as ariaLabel } from "../../src/strings/ariaLabel"; | ||
export { default as ariaLabelledBy } from "../../src/strings/ariaLabelledBy"; | ||
export { default as ariaModal } from "../../src/strings/ariaModal"; | ||
export { default as ariaPressed } from "../../src/strings/ariaPressed"; | ||
export { default as ariaSelected } from "../../src/strings/ariaSelected"; | ||
export { default as ariaChecked } from '../../src/strings/ariaChecked'; | ||
export { default as ariaDescribedBy } from '../../src/strings/ariaDescribedBy'; | ||
export { default as ariaExpanded } from '../../src/strings/ariaExpanded'; | ||
export { default as ariaHidden } from '../../src/strings/ariaHidden'; | ||
export { default as ariaLabel } from '../../src/strings/ariaLabel'; | ||
export { default as ariaLabelledBy } from '../../src/strings/ariaLabelledBy'; | ||
export { default as ariaModal } from '../../src/strings/ariaModal'; | ||
export { default as ariaPressed } from '../../src/strings/ariaPressed'; | ||
export { default as ariaSelected } from '../../src/strings/ariaSelected'; | ||
export { default as nativeEvents } from "../../src/strings/nativeEvents"; | ||
export { default as abortEvent } from "../../src/strings/abortEvent"; | ||
export { default as blurEvent } from "../../src/strings/blurEvent"; | ||
export { default as moveEvent } from "../../src/strings/moveEvent"; | ||
export { default as changeEvent } from "../../src/strings/changeEvent"; | ||
export { default as errorEvent } from "../../src/strings/errorEvent"; | ||
export { default as resetEvent } from "../../src/strings/resetEvent"; | ||
export { default as resizeEvent } from "../../src/strings/resizeEvent"; | ||
export { default as scrollEvent } from "../../src/strings/scrollEvent"; | ||
export { default as submitEvent } from "../../src/strings/submitEvent"; | ||
export { default as loadEvent } from "../../src/strings/loadEvent"; | ||
export { default as unloadEvent } from "../../src/strings/unloadEvent"; | ||
export { default as readystatechangeEvent } from "../../src/strings/readystatechangeEvent"; | ||
export { default as beforeunloadEvent } from "../../src/strings/beforeunloadEvent"; | ||
export { default as orientationchangeEvent } from "../../src/strings/orientationchangeEvent"; | ||
export { default as contextmenuEvent } from "../../src/strings/contextmenuEvent"; | ||
export { default as DOMContentLoadedEvent } from "../../src/strings/DOMContentLoadedEvent"; | ||
export { default as DOMMouseScrollEvent } from "../../src/strings/DOMMouseScrollEvent"; | ||
export { default as nativeEvents } from '../../src/strings/nativeEvents'; | ||
export { default as abortEvent } from '../../src/strings/abortEvent'; | ||
export { default as blurEvent } from '../../src/strings/blurEvent'; | ||
export { default as moveEvent } from '../../src/strings/moveEvent'; | ||
export { default as changeEvent } from '../../src/strings/changeEvent'; | ||
export { default as errorEvent } from '../../src/strings/errorEvent'; | ||
export { default as resetEvent } from '../../src/strings/resetEvent'; | ||
export { default as resizeEvent } from '../../src/strings/resizeEvent'; | ||
export { default as scrollEvent } from '../../src/strings/scrollEvent'; | ||
export { default as submitEvent } from '../../src/strings/submitEvent'; | ||
export { default as loadEvent } from '../../src/strings/loadEvent'; | ||
export { default as unloadEvent } from '../../src/strings/unloadEvent'; | ||
export { default as readystatechangeEvent } from '../../src/strings/readystatechangeEvent'; | ||
export { default as beforeunloadEvent } from '../../src/strings/beforeunloadEvent'; | ||
export { default as orientationchangeEvent } from '../../src/strings/orientationchangeEvent'; | ||
export { default as contextmenuEvent } from '../../src/strings/contextmenuEvent'; | ||
export { default as DOMContentLoadedEvent } from '../../src/strings/DOMContentLoadedEvent'; | ||
export { default as DOMMouseScrollEvent } from '../../src/strings/DOMMouseScrollEvent'; | ||
export { default as selectEvent } from "../../src/strings/selectEvent"; | ||
export { default as selectendEvent } from "../../src/strings/selectendEvent"; | ||
export { default as selectstartEvent } from "../../src/strings/selectstartEvent"; | ||
export { default as selectEvent } from '../../src/strings/selectEvent'; | ||
export { default as selectendEvent } from '../../src/strings/selectendEvent'; | ||
export { default as selectstartEvent } from '../../src/strings/selectstartEvent'; | ||
export { default as mouseSwipeEvents } from "../../src/strings/mouseSwipeEvents"; | ||
export { default as mouseClickEvents } from "../../src/strings/mouseClickEvents"; | ||
export { default as mouseclickEvent } from "../../src/strings/mouseclickEvent"; | ||
export { default as mousedblclickEvent } from "../../src/strings/mousedblclickEvent"; | ||
export { default as mousedownEvent } from "../../src/strings/mousedownEvent"; | ||
export { default as mouseupEvent } from "../../src/strings/mouseupEvent"; | ||
export { default as mousehoverEvent } from "../../src/strings/mousehoverEvent"; | ||
export { default as mouseHoverEvents } from "../../src/strings/mouseHoverEvents"; | ||
export { default as mouseenterEvent } from "../../src/strings/mouseenterEvent"; | ||
export { default as mouseleaveEvent } from "../../src/strings/mouseleaveEvent"; | ||
export { default as mouseinEvent } from "../../src/strings/mouseinEvent"; | ||
export { default as mouseoutEvent } from "../../src/strings/mouseoutEvent"; | ||
export { default as mousemoveEvent } from "../../src/strings/mousemoveEvent"; | ||
export { default as mousewheelEvent } from "../../src/strings/mousewheelEvent"; | ||
export { default as mouseSwipeEvents } from '../../src/strings/mouseSwipeEvents'; | ||
export { default as mouseClickEvents } from '../../src/strings/mouseClickEvents'; | ||
export { default as mouseclickEvent } from '../../src/strings/mouseclickEvent'; | ||
export { default as mousedblclickEvent } from '../../src/strings/mousedblclickEvent'; | ||
export { default as mousedownEvent } from '../../src/strings/mousedownEvent'; | ||
export { default as mouseupEvent } from '../../src/strings/mouseupEvent'; | ||
export { default as mousehoverEvent } from '../../src/strings/mousehoverEvent'; | ||
export { default as mouseHoverEvents } from '../../src/strings/mouseHoverEvents'; | ||
export { default as mouseenterEvent } from '../../src/strings/mouseenterEvent'; | ||
export { default as mouseleaveEvent } from '../../src/strings/mouseleaveEvent'; | ||
export { default as mouseinEvent } from '../../src/strings/mouseinEvent'; | ||
export { default as mouseoutEvent } from '../../src/strings/mouseoutEvent'; | ||
export { default as mousemoveEvent } from '../../src/strings/mousemoveEvent'; | ||
export { default as mousewheelEvent } from '../../src/strings/mousewheelEvent'; | ||
export { default as touchEvents } from "../../src/strings/touchEvents"; | ||
export { default as touchstartEvent } from "../../src/strings/touchstartEvent"; | ||
export { default as touchmoveEvent } from "../../src/strings/touchmoveEvent"; | ||
export { default as touchcancelEvent } from "../../src/strings/touchcancelEvent"; | ||
export { default as touchendEvent } from "../../src/strings/touchendEvent"; | ||
export { default as touchEvents } from '../../src/strings/touchEvents'; | ||
export { default as touchstartEvent } from '../../src/strings/touchstartEvent'; | ||
export { default as touchmoveEvent } from '../../src/strings/touchmoveEvent'; | ||
export { default as touchcancelEvent } from '../../src/strings/touchcancelEvent'; | ||
export { default as touchendEvent } from '../../src/strings/touchendEvent'; | ||
export { default as pointercancelEvent } from "../../src/strings/pointercancelEvent"; | ||
export { default as pointerdownEvent } from "../../src/strings/pointerdownEvent"; | ||
export { default as pointerleaveEvent } from "../../src/strings/pointerleaveEvent"; | ||
export { default as pointermoveEvent } from "../../src/strings/pointermoveEvent"; | ||
export { default as pointerupEvent } from "../../src/strings/pointerupEvent"; | ||
export { default as pointercancelEvent } from '../../src/strings/pointercancelEvent'; | ||
export { default as pointerdownEvent } from '../../src/strings/pointerdownEvent'; | ||
export { default as pointerleaveEvent } from '../../src/strings/pointerleaveEvent'; | ||
export { default as pointermoveEvent } from '../../src/strings/pointermoveEvent'; | ||
export { default as pointerupEvent } from '../../src/strings/pointerupEvent'; | ||
export { default as focusEvents } from "../../src/strings/focusEvents"; | ||
export { default as focusEvent } from "../../src/strings/focusEvent"; | ||
export { default as focusinEvent } from "../../src/strings/focusinEvent"; | ||
export { default as focusoutEvent } from "../../src/strings/focusoutEvent"; | ||
export { default as focusEvents } from '../../src/strings/focusEvents'; | ||
export { default as focusEvent } from '../../src/strings/focusEvent'; | ||
export { default as focusinEvent } from '../../src/strings/focusinEvent'; | ||
export { default as focusoutEvent } from '../../src/strings/focusoutEvent'; | ||
export { default as gesturechangeEvent } from "../../src/strings/gesturechangeEvent"; | ||
export { default as gestureendEvent } from "../../src/strings/gestureendEvent"; | ||
export { default as gesturestartEvent } from "../../src/strings/gesturestartEvent"; | ||
export { default as gesturechangeEvent } from '../../src/strings/gesturechangeEvent'; | ||
export { default as gestureendEvent } from '../../src/strings/gestureendEvent'; | ||
export { default as gesturestartEvent } from '../../src/strings/gesturestartEvent'; | ||
export { default as keyboardEventKeys } from "../../src/strings/keyboardEventKeys"; | ||
export { default as keydownEvent } from "../../src/strings/keydownEvent"; | ||
export { default as keyupEvent } from "../../src/strings/keyupEvent"; | ||
export { default as keypressEvent } from "../../src/strings/keypressEvent"; | ||
export { default as keyAlt } from "../../src/strings/keyAlt"; | ||
export { default as keyArrowDown } from "../../src/strings/keyArrowDown"; | ||
export { default as keyArrowUp } from "../../src/strings/keyArrowUp"; | ||
export { default as keyArrowLeft } from "../../src/strings/keyArrowLeft"; | ||
export { default as keyArrowRight } from "../../src/strings/keyArrowRight"; | ||
export { default as keyBackspace } from "../../src/strings/keyBackspace"; | ||
export { default as keyCapsLock } from "../../src/strings/keyCapsLock"; | ||
export { default as keyControl } from "../../src/strings/keyControl"; | ||
export { default as keyDelete } from "../../src/strings/keyDelete"; | ||
export { default as keyEnter } from "../../src/strings/keyEnter"; | ||
export { default as keyEscape } from "../../src/strings/keyEscape"; | ||
export { default as keyInsert } from "../../src/strings/keyInsert"; | ||
export { default as keyMeta } from "../../src/strings/keyMeta"; | ||
export { default as keyPause } from "../../src/strings/keyPause"; | ||
export { default as keyScrollLock } from "../../src/strings/keyScrollLock"; | ||
export { default as keyShift } from "../../src/strings/keyShift"; | ||
export { default as keySpace } from "../../src/strings/keySpace"; | ||
export { default as keyTab } from "../../src/strings/keyTab"; | ||
export { default as keyboardEventKeys } from '../../src/strings/keyboardEventKeys'; | ||
export { default as keydownEvent } from '../../src/strings/keydownEvent'; | ||
export { default as keyupEvent } from '../../src/strings/keyupEvent'; | ||
export { default as keypressEvent } from '../../src/strings/keypressEvent'; | ||
export { default as keyAlt } from '../../src/strings/keyAlt'; | ||
export { default as keyArrowDown } from '../../src/strings/keyArrowDown'; | ||
export { default as keyArrowUp } from '../../src/strings/keyArrowUp'; | ||
export { default as keyArrowLeft } from '../../src/strings/keyArrowLeft'; | ||
export { default as keyArrowRight } from '../../src/strings/keyArrowRight'; | ||
export { default as keyBackspace } from '../../src/strings/keyBackspace'; | ||
export { default as keyCapsLock } from '../../src/strings/keyCapsLock'; | ||
export { default as keyControl } from '../../src/strings/keyControl'; | ||
export { default as keyDelete } from '../../src/strings/keyDelete'; | ||
export { default as keyEnter } from '../../src/strings/keyEnter'; | ||
export { default as keyEscape } from '../../src/strings/keyEscape'; | ||
export { default as keyInsert } from '../../src/strings/keyInsert'; | ||
export { default as keyMeta } from '../../src/strings/keyMeta'; | ||
export { default as keyPause } from '../../src/strings/keyPause'; | ||
export { default as keyScrollLock } from '../../src/strings/keyScrollLock'; | ||
export { default as keyShift } from '../../src/strings/keyShift'; | ||
export { default as keySpace } from '../../src/strings/keySpace'; | ||
export { default as keyTab } from '../../src/strings/keyTab'; | ||
export { default as animationDuration } from "../../src/strings/animationDuration"; | ||
export { default as animationDurationLegacy } from "../../src/strings/animationDurationLegacy"; | ||
export { default as animationDelay } from "../../src/strings/animationDelay"; | ||
export { default as animationDelayLegacy } from "../../src/strings/animationDelayLegacy"; | ||
export { default as animationName } from "../../src/strings/animationName"; | ||
export { default as animationNameLegacy } from "../../src/strings/animationNameLegacy"; | ||
export { default as animationEndEvent } from "../../src/strings/animationEndEvent"; | ||
export { default as animationEndEventLegacy } from "../../src/strings/animationEndEventLegacy"; | ||
export { default as transitionDuration } from "../../src/strings/transitionDuration"; | ||
export { default as transitionDurationLegacy } from "../../src/strings/transitionDurationLegacy"; | ||
export { default as transitionDelay } from "../../src/strings/transitionDelay"; | ||
export { default as transitionDelayLegacy } from "../../src/strings/transitionDelayLegacy"; | ||
export { default as transitionEndEvent } from "../../src/strings/transitionEndEvent"; | ||
export { default as transitionEndEventLegacy } from "../../src/strings/transitionEndEventLegacy"; | ||
export { default as transitionProperty } from "../../src/strings/transitionProperty"; | ||
export { default as transitionPropertyLegacy } from "../../src/strings/transitionPropertyLegacy"; | ||
export { default as animationDuration } from '../../src/strings/animationDuration'; | ||
export { default as animationDurationLegacy } from '../../src/strings/animationDurationLegacy'; | ||
export { default as animationDelay } from '../../src/strings/animationDelay'; | ||
export { default as animationDelayLegacy } from '../../src/strings/animationDelayLegacy'; | ||
export { default as animationName } from '../../src/strings/animationName'; | ||
export { default as animationNameLegacy } from '../../src/strings/animationNameLegacy'; | ||
export { default as animationEndEvent } from '../../src/strings/animationEndEvent'; | ||
export { default as animationEndEventLegacy } from '../../src/strings/animationEndEventLegacy'; | ||
export { default as transitionDuration } from '../../src/strings/transitionDuration'; | ||
export { default as transitionDurationLegacy } from '../../src/strings/transitionDurationLegacy'; | ||
export { default as transitionDelay } from '../../src/strings/transitionDelay'; | ||
export { default as transitionDelayLegacy } from '../../src/strings/transitionDelayLegacy'; | ||
export { default as transitionEndEvent } from '../../src/strings/transitionEndEvent'; | ||
export { default as transitionEndEventLegacy } from '../../src/strings/transitionEndEventLegacy'; | ||
export { default as transitionProperty } from '../../src/strings/transitionProperty'; | ||
export { default as transitionPropertyLegacy } from '../../src/strings/transitionPropertyLegacy'; | ||
export { default as addEventListener } from "../../src/strings/addEventListener"; | ||
export { default as removeEventListener } from "../../src/strings/removeEventListener"; | ||
export { default as addEventListener } from '../../src/strings/addEventListener'; | ||
export { default as removeEventListener } from '../../src/strings/removeEventListener'; | ||
export { default as bezierEasings } from "../../src/strings/bezierEasings"; | ||
export { default as bezierEasings } from '../../src/strings/bezierEasings'; | ||
export { default as offsetHeight } from "../../src/strings/offsetHeight"; | ||
export { default as offsetWidth } from "../../src/strings/offsetWidth"; | ||
export { default as scrollHeight } from "../../src/strings/scrollHeight"; | ||
export { default as scrollWidth } from "../../src/strings/scrollWidth"; | ||
export { default as offsetHeight } from '../../src/strings/offsetHeight'; | ||
export { default as offsetWidth } from '../../src/strings/offsetWidth'; | ||
export { default as scrollHeight } from '../../src/strings/scrollHeight'; | ||
export { default as scrollWidth } from '../../src/strings/scrollWidth'; | ||
export { default as userAgentData } from "../../src/strings/userAgentData"; | ||
export { default as userAgent } from "../../src/strings/userAgent"; | ||
export { default as userAgentData } from '../../src/strings/userAgentData'; | ||
export { default as userAgent } from '../../src/strings/userAgent'; | ||
// boolean | ||
export { default as isApple } from "../../src/boolean/isApple"; | ||
export { default as isFirefox } from "../../src/boolean/isFirefox"; | ||
export { default as isMobile } from "../../src/boolean/isMobile"; | ||
export { default as support3DTransform } from "../../src/boolean/support3DTransform"; | ||
export { default as supportAnimation } from "../../src/boolean/supportAnimation"; | ||
export { default as supportPassive } from "../../src/boolean/supportPassive"; | ||
export { default as supportTouch } from "../../src/boolean/supportTouch"; | ||
export { default as supportTransform } from "../../src/boolean/supportTransform"; | ||
export { default as supportTransition } from "../../src/boolean/supportTransition"; | ||
export { default as isApple } from '../../src/boolean/isApple'; | ||
export { default as isFirefox } from '../../src/boolean/isFirefox'; | ||
export { default as isMobile } from '../../src/boolean/isMobile'; | ||
export { default as support3DTransform } from '../../src/boolean/support3DTransform'; | ||
export { default as supportAnimation } from '../../src/boolean/supportAnimation'; | ||
export { default as supportPassive } from '../../src/boolean/supportPassive'; | ||
export { default as supportTouch } from '../../src/boolean/supportTouch'; | ||
export { default as supportTransform } from '../../src/boolean/supportTransform'; | ||
export { default as supportTransition } from '../../src/boolean/supportTransition'; | ||
@@ -149,42 +149,42 @@ // attributes | ||
export { default as getDocumentHead } from '../../src/get/getDocumentHead'; | ||
export { default as getElementAnimationDuration } from "../../src/get/getElementAnimationDuration"; | ||
export { default as getElementAnimationDurationLegacy } from "../../src/get/getElementAnimationDurationLegacy"; | ||
export { default as getElementAnimationDelay } from "../../src/get/getElementAnimationDelay"; | ||
export { default as getElementAnimationDelayLegacy } from "../../src/get/getElementAnimationDelayLegacy"; | ||
export { default as getElementAnimationDuration } from '../../src/get/getElementAnimationDuration'; | ||
export { default as getElementAnimationDurationLegacy } from '../../src/get/getElementAnimationDurationLegacy'; | ||
export { default as getElementAnimationDelay } from '../../src/get/getElementAnimationDelay'; | ||
export { default as getElementAnimationDelayLegacy } from '../../src/get/getElementAnimationDelayLegacy'; | ||
export { default as getElementStyle } from '../../src/get/getElementStyle'; | ||
export { default as getElementTransitionDuration } from "../../src/get/getElementTransitionDuration"; | ||
export { default as getElementTransitionDurationLegacy } from "../../src/get/getElementTransitionDurationLegacy"; | ||
export { default as getElementTransitionDelay } from "../../src/get/getElementTransitionDelay"; | ||
export { default as getElementTransitionDelayLegacy } from "../../src/get/getElementTransitionDelayLegacy"; | ||
export { default as getNodeScroll } from "../../src/get/getNodeScroll"; | ||
export { default as getParentNode } from "../../src/get/getParentNode"; | ||
export { default as getRectRelativeToOffsetParent } from "../../src/get/getRectRelativeToOffsetParent"; | ||
export { default as getWindow } from "../../src/get/getWindow"; | ||
export { default as getElementTransitionDuration } from '../../src/get/getElementTransitionDuration'; | ||
export { default as getElementTransitionDurationLegacy } from '../../src/get/getElementTransitionDurationLegacy'; | ||
export { default as getElementTransitionDelay } from '../../src/get/getElementTransitionDelay'; | ||
export { default as getElementTransitionDelayLegacy } from '../../src/get/getElementTransitionDelayLegacy'; | ||
export { default as getNodeScroll } from '../../src/get/getNodeScroll'; | ||
export { default as getParentNode } from '../../src/get/getParentNode'; | ||
export { default as getRectRelativeToOffsetParent } from '../../src/get/getRectRelativeToOffsetParent'; | ||
export { default as getWindow } from '../../src/get/getWindow'; | ||
// class | ||
export { default as addClass } from "../../src/class/addClass"; | ||
export { default as removeClass } from "../../src/class/removeClass"; | ||
export { default as hasClass } from "../../src/class/hasClass"; | ||
export { default as addClass } from '../../src/class/addClass'; | ||
export { default as removeClass } from '../../src/class/removeClass'; | ||
export { default as hasClass } from '../../src/class/hasClass'; | ||
// event | ||
export { default as on } from "../../src/event/on"; | ||
export { default as off } from "../../src/event/off"; | ||
export { default as one } from "../../src/event/one"; | ||
export { default as on } from '../../src/event/on'; | ||
export { default as off } from '../../src/event/off'; | ||
export { default as one } from '../../src/event/one'; | ||
// misc | ||
export { default as Data, getInstance } from "../../src/misc/data"; | ||
export { default as Timer } from "../../src/misc/timer"; | ||
export { default as Data, getInstance } from '../../src/misc/data'; | ||
export { default as Timer } from '../../src/misc/timer'; | ||
export { default as emulateAnimationEnd } from "../../src/misc/emulateAnimationEnd"; | ||
export { default as emulateAnimationEndLegacy } from "../../src/misc/emulateAnimationEndLegacy"; | ||
export { default as emulateTransitionEnd } from "../../src/misc/emulateTransitionEnd"; | ||
export { default as emulateTransitionEndLegacy } from "../../src/misc/emulateTransitionEndLegacy"; | ||
export { default as passiveHandler } from "../../src/misc/passiveHandler"; | ||
export { default as emulateAnimationEnd } from '../../src/misc/emulateAnimationEnd'; | ||
export { default as emulateAnimationEndLegacy } from '../../src/misc/emulateAnimationEndLegacy'; | ||
export { default as emulateTransitionEnd } from '../../src/misc/emulateTransitionEnd'; | ||
export { default as emulateTransitionEndLegacy } from '../../src/misc/emulateTransitionEndLegacy'; | ||
export { default as passiveHandler } from '../../src/misc/passiveHandler'; | ||
export { default as setElementStyle } from '../../src/misc/setElementStyle'; | ||
export { default as normalizeValue } from "../../src/misc/normalizeValue"; | ||
export { default as normalizeOptions } from "../../src/misc/normalizeOptions"; | ||
export { default as tryWrapper } from "../../src/misc/tryWrapper"; | ||
export { default as reflow } from "../../src/misc/reflow"; | ||
export { default as focus } from "../../src/misc/focus"; | ||
export { default as normalizeValue } from '../../src/misc/normalizeValue'; | ||
export { default as normalizeOptions } from '../../src/misc/normalizeOptions'; | ||
export { default as tryWrapper } from '../../src/misc/tryWrapper'; | ||
export { default as reflow } from '../../src/misc/reflow'; | ||
export { default as focus } from '../../src/misc/focus'; | ||
@@ -199,29 +199,30 @@ export { default as ArrayFrom } from '../../src/misc/ArrayFrom'; | ||
// is | ||
export { default as isArray } from "../../src/is/isArray"; | ||
export { default as isElement } from "../../src/is/isElement"; | ||
export { default as isElementInScrollRange } from "../../src/is/isElementInScrollRange"; | ||
export { default as isElementInViewport } from "../../src/is/isElementInViewport"; | ||
export { default as isElementsArray } from "../../src/is/isElementsArray"; | ||
export { default as isHTMLCollection } from "../../src/is/isHTMLCollection"; | ||
export { default as isHTMLElement } from "../../src/is/isHTMLElement"; | ||
export { default as isHTMLImageElement } from "../../src/is/isHTMLImageElement"; | ||
export { default as isMedia } from "../../src/is/isMedia"; | ||
export { default as isNode } from "../../src/is/isNode"; | ||
export { default as isNodeList } from "../../src/is/isNodeList"; | ||
export { default as isRTL } from "../../src/is/isRTL"; | ||
export { default as isScaledElement } from "../../src/is/isScaledElement"; | ||
export { default as isShadowRoot } from "../../src/is/isShadowRoot"; | ||
export { default as isString } from "../../src/is/isString"; | ||
export { default as isSVGElement } from "../../src/is/isSVGElement"; | ||
export { default as isTableElement } from "../../src/is/isTableElement"; | ||
export { default as isWindow } from "../../src/is/isWindow"; | ||
export { default as isArray } from '../../src/is/isArray'; | ||
export { default as isDocument } from '../../src/is/isDocument'; | ||
export { default as isElement } from '../../src/is/isElement'; | ||
export { default as isElementInScrollRange } from '../../src/is/isElementInScrollRange'; | ||
export { default as isElementInViewport } from '../../src/is/isElementInViewport'; | ||
export { default as isElementsArray } from '../../src/is/isElementsArray'; | ||
export { default as isHTMLCollection } from '../../src/is/isHTMLCollection'; | ||
export { default as isHTMLElement } from '../../src/is/isHTMLElement'; | ||
export { default as isHTMLImageElement } from '../../src/is/isHTMLImageElement'; | ||
export { default as isMedia } from '../../src/is/isMedia'; | ||
export { default as isNode } from '../../src/is/isNode'; | ||
export { default as isNodeList } from '../../src/is/isNodeList'; | ||
export { default as isRTL } from '../../src/is/isRTL'; | ||
export { default as isScaledElement } from '../../src/is/isScaledElement'; | ||
export { default as isShadowRoot } from '../../src/is/isShadowRoot'; | ||
export { default as isString } from '../../src/is/isString'; | ||
export { default as isSVGElement } from '../../src/is/isSVGElement'; | ||
export { default as isTableElement } from '../../src/is/isTableElement'; | ||
export { default as isWindow } from '../../src/is/isWindow'; | ||
// selectors | ||
export { default as closest } from "../../src/selectors/closest"; | ||
export { default as getCustomElements } from "../../src/selectors/getCustomElements"; | ||
export { default as querySelector } from "../../src/selectors/querySelector"; | ||
export { default as querySelectorAll } from "../../src/selectors/querySelectorAll"; | ||
export { default as getElementsByTagName } from "../../src/selectors/getElementsByTagName"; | ||
export { default as getElementsByClassName } from "../../src/selectors/getElementsByClassName"; | ||
export { default as closest } from '../../src/selectors/closest'; | ||
export { default as getCustomElements } from '../../src/selectors/getCustomElements'; | ||
export { default as querySelector } from '../../src/selectors/querySelector'; | ||
export { default as querySelectorAll } from '../../src/selectors/querySelectorAll'; | ||
export { default as getElementsByTagName } from '../../src/selectors/getElementsByTagName'; | ||
export { default as getElementsByClassName } from '../../src/selectors/getElementsByClassName'; | ||
export { default as Version } from "../../src/misc/version"; | ||
export { default as Version } from '../../src/misc/version'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
348223
210
8876