Socket
Socket
Sign inDemoInstall

shorter-js

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shorter-js - npm Package Compare versions

Comparing version 0.3.0-alpha2 to 0.3.0-alpha3

src/attr/getAttribute.js

161

dist/shorter-js.esm.js
/*!
* shorter-js v0.3.0alpha2 (https://github.com/thednp/shorter-js)
* shorter-js v0.3.0alpha3 (https://github.com/thednp/shorter-js)
* Copyright 2019-2022 © dnp_theme

@@ -746,7 +746,9 @@ * Licensed under MIT (https://github.com/thednp/shorter-js/blob/master/LICENSE)

// @ts-ignore
const { userAgentData: userAgentDATA } = navigator;
/**
* A global namespace for `userAgentData` event.
* @type {string}
*/
const userAgentData = 'userAgentData';
const userAgentData = userAgentDATA;

@@ -757,3 +759,2 @@ const { userAgent: userAgentString } = navigator;

* A global namespace for `navigator.userAgent` string.
* @type {string}
*/

@@ -765,6 +766,5 @@ const userAgent = userAgentString;

// @ts-ignore
if (navigator[userAgentData]) {
// @ts-ignore
isMobileCheck = navigator[userAgentData].brands.some((x) => mobileBrands.test(x.brand));
if (userAgentData) {
isMobileCheck = userAgentData.brands
.some((/** @type {Record<String, any>} */x) => mobileBrands.test(x.brand));
} else {

@@ -780,5 +780,2 @@ isMobileCheck = mobileBrands.test(userAgent);

/** @type {Record<string, any>} */
// @ts-ignore
const agentData = navigator[userAgentData];
const appleBrands = /(iPhone|iPod|iPad)/;

@@ -790,7 +787,8 @@

*/
const isApple = !agentData ? appleBrands.test(navigator.userAgent)
: agentData.brands.some((/** @type {Record<string, any>} */x) => appleBrands.test(x.brand));
const isApple = !userAgentData ? appleBrands.test(userAgent)
: userAgentData.brands.some((/** @type {Record<string, any>} */x) => appleBrands.test(x.brand));
/**
* A global boolean for Gecko browsers.
* A global boolean for Gecko browsers. When writing this file,
* Gecko was not supporting `userAgentData`.
*/

@@ -903,2 +901,64 @@ const isFirefox = userAgent ? userAgent.includes('Firefox') : false;

/**
* Shortcut for `HTMLElement.getAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
*/
const getAttribute = (element, attribute) => element.getAttribute(attribute);
/**
* Shortcut for `SVGElement.getAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
* @param {string=} ns attribute namespace
*/
const getAttributeNS = (element, attribute, ns) => element.getAttributeNS(ns || null, attribute);
/**
* Shortcut for `HTMLElement.hasAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
*/
const hasAttribute = (element, attribute) => element.hasAttribute(attribute);
/**
* Shortcut for `SVGElement.hasAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} att attribute name
* @param {string=} ns attribute namespace
*/
const hasAttributeNS = (element, att, ns) => element.hasAttributeNS(ns || null, att);
/**
* Shortcut for `HTMLElement.setAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
* @param {string} value attribute value
*/
const setAttribute = (element, attribute, value) => element.setAttribute(attribute, value);
/**
* Shortcut for `SVGElement.setAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} att attribute name
* @param {string} value attribute value
* @param {string=} ns attribute namespace
*/
const setAttributeNS = (element, att, value, ns) => element.setAttributeNS(ns || null, att, value);
/**
* Shortcut for `HTMLElement.removeAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
*/
const removeAttribute = (element, attribute) => element.removeAttribute(attribute);
/**
* Shortcut for `HTMLElement.removeAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} att attribute name
* @param {string=} ns attribute namespace
*/
const removeAttributeNS = (element, att, ns) => element.removeAttributeNS(ns || null, att);
/**
* Add class to `HTMLElement.classList`.

@@ -1458,2 +1518,9 @@ *

/**
* Shortcut for multiple uses of `HTMLElement.style.propertyName` method.
* @param {HTMLElement} element target element
* @param {Partial<CSSStyleDeclaration>} styles attribute value
*/
const setElementStyle = (element, styles) => { ObjectAssign(element.style, styles); };
/** @type {Map<HTMLElement, any>} */

@@ -1550,17 +1617,2 @@ const TimeCache = new Map();

/**
* Shortcut for `HTMLElement.getAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
*/
const getAttribute = (element, attribute) => element.getAttribute(attribute);
/**
* Shortcut for `SVGElement.getAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
* @param {string=} ns attribute namespace
*/
const getAttributeNS = (element, attribute, ns) => element.getAttributeNS(ns || null, attribute);
/**
* Checks if an element is an `HTMLElement`.

@@ -1644,3 +1696,3 @@ *

*
* @param {HTMLElement} element target
* @param {any} element target
* @returns {boolean} the query result

@@ -1688,6 +1740,6 @@ */

/**
* Returns the `Window` object.
* Returns the `Window` object of a target node.
* @see https://github.com/floating-ui/floating-ui
*
* @param {(Node | Element)=} node target node
* @param {(Node | Element | Window)=} node target node
* @returns {Window} the `Window` object

@@ -1701,2 +1753,3 @@ */

if (!isWindow(node)) {
// @ts-ignore
const { ownerDocument } = node;

@@ -1832,41 +1885,2 @@ return ownerDocument ? ownerDocument.defaultView || window : window;

/**
* Shortcut for `HTMLElement.setAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
* @param {string} value attribute value
*/
const setAttribute = (element, attribute, value) => element.setAttribute(attribute, value);
/**
* Shortcut for `SVGElement.setAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} att attribute name
* @param {string} value attribute value
* @param {string=} ns attribute namespace
*/
const setAttributeNS = (element, att, value, ns) => element.setAttributeNS(ns || null, att, value);
/**
* Shortcut for `HTMLElement.removeAttribute()` method.
* @param {HTMLElement} element target element
* @param {string} attribute attribute name
*/
const removeAttribute = (element, attribute) => element.removeAttribute(attribute);
/**
* Shortcut for `HTMLElement.removeAttributeNS()` method.
* @param {HTMLElement} element target element
* @param {string} att attribute name
* @param {string=} ns attribute namespace
*/
const removeAttributeNS = (element, att, ns) => element.removeAttributeNS(ns || null, att);
/**
* Shortcut for multiple uses of `HTMLElement.style.propertyName` method.
* @param {HTMLElement} element target element
* @param {Partial<CSSStyleDeclaration>} styles attribute value
*/
const setElementStyle = (element, styles) => ObjectAssign(element.style, styles);
/**
* Shortcut for `Array.isArray()` static method.

@@ -2010,3 +2024,2 @@ *

*
*
* @param {HTMLElement=} parent parent to look into

@@ -2061,3 +2074,3 @@ * @returns {Node[]} the query result

var version = "0.3.0alpha2";
var version = "0.3.0alpha3";

@@ -2258,2 +2271,4 @@ // @ts-ignore

setElementStyle,
hasAttribute,
hasAttributeNS,
getAttribute,

@@ -2260,0 +2275,0 @@ getAttributeNS,

@@ -1,2 +0,2 @@

// shorter-js v0.3.0alpha2 | 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",{userAgent:u}=navigator,l=u,m=/iPhone|iPad|iPod|Android/i;let d=!1;d=navigator.userAgentData?navigator.userAgentData.brands.some(e=>m.test(e.brand)):m.test(l);const g=d,f=navigator.userAgentData,E=/(iPhone|iPod|iPad)/,p=f?f.brands.some(e=>E.test(e.brand)):E.test(navigator.userAgent),v=!!l&&l.includes("Firefox"),y="webkitPerspective"in document.head.style||"perspective"in document.head.style;function b(e,t,n,o){const i=o||!1;e.addEventListener(t,n,i)}function h(e,t,n,o){const i=o||!1;e.removeEventListener(t,n,i)}function w(e,t,n,o){b(e,t,(function i(a){a.target===e&&(n.apply(e,[a]),h(e,t,i,o))}),o)}const A=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});w(document,"DOMContentLoaded",()=>{},t)}catch(e){throw Error("Passive events are not supported")}return e})(),k="webkitTransform"in document.head.style||"transform"in document.head.style,L="ontouchstart"in window||"msMaxTouchPoints"in navigator,D="webkitAnimation"in document.head.style||"animation"in document.head.style,N="webkitTransition"in document.head.style||"transition"in document.head.style;function T(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 S=new Map,M={set:(e,t,n)=>{const o=T(e);if(!o)return;S.has(t)||S.set(t,new Map);S.get(t).set(o,n)},getAllFor:e=>{const t=S.get(e);return t||null},get:(e,t)=>{const n=T(e),o=M.getAllFor(t),i=n&&o&&o.get(n);return i||null},remove:(e,t)=>{const n=T(e),o=S.get(t);o&&n&&(o.delete(n),0===o.size&&S.delete(t))}};function C(e,t){const n=getComputedStyle(e);return t in n?n[t]:""}function O(e){const t=C(e,"animationName"),n=C(e,"animationDelay"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function z(e){const t=C(e,"animationName"),n=C(e,"animationDuration"),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=C(e,o),i=C(e,n),a=i.includes("ms")?1:1e3,r=D&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function P(e){const n=C(e,o),i=C(e,t),a=i.includes("ms")?1:1e3,r=D&&n&&"none"!==n?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function I(e){const t=C(e,"transitionProperty"),n=C(e,"transitionDelay"),o=n.includes("ms")?1:1e3,i=t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function x(e){const t=C(e,"transitionProperty"),n=C(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=C(e,c),n=C(e,r),o=n.includes("ms")?1:1e3,i=N&&t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function F(e){const t=C(e,c),n=C(e,a),o=n.includes("ms")?1:1e3,i=N&&t&&"none"!==t?parseFloat(n)*o:0;return Number.isNaN(i)?0:i}function R(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}const W=e=>Object.keys(e);const Q=(e,t)=>Object.assign(e,t),V=!!A&&{passive:!0},j=new Map;const q=e=>e instanceof HTMLElement;function U(e,t){const n=e.getBoundingClientRect();let o=1,i=1;return t&&q(e)&&(o=e.offsetWidth>0&&Math.round(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Math.round(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function G(e){return((e instanceof Node?e.ownerDocument:e.document)||window.document).documentElement}const Y=e=>["TABLE","TD","TH"].includes(e.tagName),K=e=>e instanceof(self||window).ShadowRoot||e instanceof ShadowRoot;function X(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||G(e)}function $(e){return[self,window].includes(e)}function Z(e){if(null==e)return window;if(!$(e)){const{ownerDocument:t}=e;return t&&t.defaultView||window}return e}function J(e){const{transform:t,perspective:n,contain:o,willChange:i,filter:a}=getComputedStyle(e);return"none"!==t||"none"!==n||"paint"===o||["transform","perspective"].includes(i)||v&&"filter"===i||v&&!!a&&"none"!==a}function _(e){return q(e)&&"fixed"!==C(e,"position")?e.offsetParent:null}function ee(e){const t=U(e);return Math.round(t.width)!==e.offsetWidth||Math.round(t.height)!==e.offsetHeight}const te={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:g,isApple:p,isFirefox:v,support3DTransform:y,supportPassive:A,supportTransform:k,supportTouch:L,supportAnimation:D,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:"userAgentData",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:b,off:h,one:w,Data:M,Timer:{set:(e,t,n,o)=>{const i=T(e);if(i)if(o&&o.length){j.has(i)||j.set(i,new Map);j.get(i).set(o,setTimeout(t,n))}else j.set(i,setTimeout(t,n))},get:(e,t)=>{const n=T(e);if(!n)return null;if(t&&t.length){j.has(n)||j.set(n,new Map);const e=j.get(n);if(e.has(t))return e.get(t)}else if(j.has(n))return j.get(n);return null},clear:(e,t)=>{const n=T(e),o=n&&j.get(n);o&&(t&&t.length?o.has(t)&&(clearTimeout(o.get(t)),o.delete(t)):(clearTimeout(o),j.delete(n)))}},getInstance:(e,t)=>M.get(e,t),emulateAnimationEnd:function(e,t){let n=0;const o=new Event("animationend"),i=z(e),a=O(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=H(e);if(D&&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=x(e),a=I(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=F(e),a=B(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 t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:e=>{const t=U(e,!0);return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:V,getElementAnimationDuration:z,getElementAnimationDurationLegacy:P,getElementAnimationDelay:O,getElementAnimationDelayLegacy:H,getElementTransitionDuration:x,getElementTransitionDurationLegacy:F,getElementTransitionDelay:I,getElementTransitionDelayLegacy:B,getNodeScroll:function(e){const t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getOffsetParent:function(e){const t=Z(e);let n=_(e);for(;n&&Y(n)&&"static"===C(n,"position");)n=_(n);return n&&["HTML","BODY"].includes(n.tagName)&&"static"===C(n,"position")&&!J(n)?t:n||function(e){let t=X(e);for(;q(t)&&!["HTML","BODY"].includes(t.nodeName);){if(J(t))return t;t=t.parentNode}return null}(e)||t},getParentNode:X,getRectRelativeToOffsetParent:function(e,t,n){const o=q(t),i=U(e,o&&ee(t)),a={x:0,y:0};if(o){const e=U(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:e=>e instanceof Node,isHTMLElement:q,isHTMLImageElement:e=>e instanceof HTMLImageElement,isSVGElement:e=>e instanceof SVGElement,isNodeList:e=>e instanceof NodeList,isHTMLCollection:e=>e instanceof HTMLCollection,isScaledElement:ee,isTableElement:Y,isShadowRoot:K,isElementsArray:e=>Array.isArray(e)&&e.every(e=>q(e)),isWindow:$,isMedia:e=>e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(t=>e instanceof t),isRTL:()=>[document.body,document.documentElement].some(e=>"rtl"===e.dir),closest:function(e,t){return e&&t?e.closest(t):null},querySelector:T,getCustomElements:function(e){return[...(e&&q(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&&q(t)?t:document).getElementsByClassName(e)},getElementsByTagName:function(e,t){return(t&&q(t)?t:document).getElementsByTagName(e)},normalizeValue:R,normalizeOptions:function(e,t,n,o){const i={...e.dataset},a={},r={};return W(i).forEach(e=>{const t=o&&e.includes(o)?e.replace(o,"").replace(/[A-Z]/,e=>e.toLowerCase()):e;r[t]=R(i[e])}),W(n).forEach(e=>{n[e]=R(n[e])}),W(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:Q,ObjectKeys:W,ObjectValues:e=>Object.values(e),getBoundingClientRect:U,getDocumentElement:G,getElementStyle:C,setElementStyle:(e,t)=>Q(e.style,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.0alpha2"};export{te as default};
// shorter-js v0.3.0alpha3 | 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 f=!1;f=l?l.brands.some(e=>g.test(e.brand)):g.test(d);const E=f,p=/(iPhone|iPod|iPad)/,y=l?l.brands.some(e=>p.test(e.brand)):p.test(d),b=!!d&&d.includes("Firefox"),h="webkitPerspective"in document.head.style||"perspective"in document.head.style;function v(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){v(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,N="ontouchstart"in window||"msMaxTouchPoints"in navigator,D="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 P(e){const t=O(e,o),i=O(e,n),a=i.includes("ms")?1:1e3,r=D&&t&&"none"!==t?parseFloat(i)*a:0;return Number.isNaN(r)?0:r}function I(e){const n=O(e,o),i=O(e,t),a=i.includes("ms")?1:1e3,r=D&&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 B(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 F(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 n=e.getBoundingClientRect();let o=1,i=1;return t&&U(e)&&(o=e.offsetWidth>0&&Math.round(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Math.round(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function Y(e){return((e instanceof Node?e.ownerDocument:e.document)||window.document).documentElement}const K=e=>["TABLE","TD","TH"].includes(e.tagName),X=e=>e instanceof(self||window).ShadowRoot||e instanceof ShadowRoot;function $(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(X(e)?e.host:null)||Y(e)}function Z(e){return[self,window].includes(e)}function J(e){if(null==e)return window;if(!Z(e)){const{ownerDocument:t}=e;return t&&t.defaultView||window}return e}function _(e){const{transform:t,perspective:n,contain:o,willChange:i,filter:a}=getComputedStyle(e);return"none"!==t||"none"!==n||"paint"===o||["transform","perspective"].includes(i)||b&&"filter"===i||b&&!!a&&"none"!==a}function ee(e){return U(e)&&"fixed"!==O(e,"position")?e.offsetParent:null}function te(e){const t=G(e);return Math.round(t.width)!==e.offsetWidth||Math.round(t.height)!==e.offsetHeight}const ne={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:E,isApple:y,isFirefox:b,support3DTransform:h,supportPassive:k,supportTransform:L,supportTouch:N,supportAnimation:D,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:v,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=I(e),r=P(e);if(D&&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=B(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=F(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 t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:e=>{const t=G(e,!0);return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:j,getElementAnimationDuration:H,getElementAnimationDurationLegacy:I,getElementAnimationDelay:z,getElementAnimationDelayLegacy:P,getElementTransitionDuration:B,getElementTransitionDurationLegacy:R,getElementTransitionDelay:x,getElementTransitionDelayLegacy:F,getNodeScroll:function(e){const t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getOffsetParent:function(e){const t=J(e);let n=ee(e);for(;n&&K(n)&&"static"===O(n,"position");)n=ee(n);return n&&["HTML","BODY"].includes(n.tagName)&&"static"===O(n,"position")&&!_(n)?t:n||function(e){let t=$(e);for(;U(t)&&!["HTML","BODY"].includes(t.nodeName);){if(_(t))return t;t=t.parentNode}return null}(e)||t},getParentNode:$,getRectRelativeToOffsetParent:function(e,t,n){const o=U(t),i=G(e,o&&te(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:J,isArray:e=>Array.isArray(e),isString:e=>"string"==typeof e,isElement:e=>e instanceof Element,isNode:e=>e instanceof Node,isHTMLElement:U,isHTMLImageElement:e=>e instanceof HTMLImageElement,isSVGElement:e=>e instanceof SVGElement,isNodeList:e=>e instanceof NodeList,isHTMLCollection:e=>e instanceof HTMLCollection,isScaledElement:te,isTableElement:K,isShadowRoot:X,isElementsArray:e=>Array.isArray(e)&&e.every(e=>U(e)),isWindow:Z,isMedia:e=>e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some(t=>e instanceof t),isRTL:()=>[document.body,document.documentElement].some(e=>"rtl"===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,getDocumentElement:Y,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.0alpha3"};export{ne as default};

@@ -1,2 +0,2 @@

// shorter-js v0.3.0alpha2 | 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.userAgent,l=/iPhone|iPad|iPod|Android/i,m=navigator.userAgentData?navigator.userAgentData.brands.some((function(e){return l.test(e.brand)})):l.test(c),d=navigator.userAgentData,f=/(iPhone|iPod|iPad)/,v=d?d.brands.some((function(e){return f.test(e.brand)})):f.test(navigator.userAgent),g=!!c&&c.includes("Firefox"),p="webkitPerspective"in document.head.style||"perspective"in document.head.style;function E(e,t,n,i){var o=i||!1;e.addEventListener(t,n,o)}function y(e,t,n,i){var o=i||!1;e.removeEventListener(t,n,o)}function b(e,t,n,i){E(e,t,(function o(r){r.target===e&&(n.apply(e,[r]),y(e,t,o,i))}),i)}var h=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});b(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 P(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 I(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 B(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}var F=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=1,o=1;return t&&Q(e)&&(i=e.offsetWidth>0&&Math.round(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Math.round(n.height)/e.offsetHeight||1),{width:n.width/i,height:n.height/o,top:n.top/o,right:n.right/i,bottom:n.bottom/o,left:n.left/i,x:n.left/i,y:n.top/o}}function q(e){return((e instanceof Node?e.ownerDocument:e.document)||window.document).documentElement}var U=function(e){return["TABLE","TD","TH"].includes(e.tagName)},G=function(e){return e instanceof(self||window).ShadowRoot||e instanceof ShadowRoot};function Y(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(G(e)?e.host:null)||q(e)}function K(e){return[self,window].includes(e)}function X(e){if(null==e)return window;if(!K(e)){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=getComputedStyle(e),n=t.transform,i=t.perspective,o=t.contain,r=t.willChange,a=t.filter;return"none"!==n||"none"!==i||"paint"===o||["transform","perspective"].includes(r)||g&&"filter"===r||g&&!!a&&"none"!==a}function J(e){return Q(e)&&"fixed"!==S(e,"position")?e.offsetParent:null}function $(e){var t=V(e);return Math.round(t.width)!==e.offsetWidth||Math.round(t.height)!==e.offsetHeight}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:m,isApple:v,isFirefox:g,support3DTransform:p,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:"userAgentData",userAgent:c,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:E,off:y,one:b,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=P(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=I(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=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:function(e){var t=V(e,!0);return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:W,getElementAnimationDuration:C,getElementAnimationDurationLegacy:z,getElementAnimationDelay:M,getElementAnimationDelayLegacy:O,getElementTransitionDuration:P,getElementTransitionDurationLegacy:x,getElementTransitionDelay:H,getElementTransitionDelayLegacy:I,getNodeScroll:function(e){var t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getOffsetParent:function(e){for(var t=X(e),n=J(e);n&&U(n)&&"static"===S(n,"position");)n=J(n);return n&&["HTML","BODY"].includes(n.tagName)&&"static"===S(n,"position")&&!Z(n)?t:n||function(e){for(var t=Y(e);Q(t)&&!["HTML","BODY"].includes(t.nodeName);){if(Z(t))return t;t=t.parentNode}return null}(e)||t},getParentNode:Y,getRectRelativeToOffsetParent:function(e,t,n){var i=Q(t),o=V(e,i&&$(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:function(e){return e instanceof Node},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:$,isTableElement:U,isShadowRoot:G,isElementsArray:function(e){return Array.isArray(e)&&e.every((function(e){return Q(e)}))},isWindow:K,isMedia:function(e){return e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some((function(t){return e instanceof t}))},isRTL:function(){return[document.body,document.documentElement].some((function(e){return"rtl"===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:B,normalizeOptions:function(e,t,n,i){var o=Object.assign({},e.dataset),r={},a={};return F(o).forEach((function(e){var t=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;a[t]=B(o[e])})),F(n).forEach((function(e){n[e]=B(n[e])})),F(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:F,ObjectValues:function(e){return Object.values(e)},getBoundingClientRect:V,getDocumentElement:q,getElementStyle:S,setElementStyle:function(e,t){return R(e.style,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.0alpha2"}}));
// shorter-js v0.3.0alpha3 | 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"),p="webkitPerspective"in document.head.style||"perspective"in document.head.style;function E(e,t,n,i){var o=i||!1;e.addEventListener(t,n,o)}function y(e,t,n,i){var o=i||!1;e.removeEventListener(t,n,o)}function b(e,t,n,i){E(e,t,(function o(r){r.target===e&&(n.apply(e,[r]),y(e,t,o,i))}),i)}var h=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0}});b(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 N(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,D={set:function(e,t,n){var i=N(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=N(e),i=D.getAllFor(t),o=n&&i&&i.get(n);return o||null},remove:function(e,t){var n=N(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 P(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 I(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 B(e){return"true"===e||"false"!==e&&(Number.isNaN(+e)?""===e||"null"===e?null:e:+e)}var F=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=1,o=1;return t&&Q(e)&&(i=e.offsetWidth>0&&Math.round(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Math.round(n.height)/e.offsetHeight||1),{width:n.width/i,height:n.height/o,top:n.top/o,right:n.right/i,bottom:n.bottom/o,left:n.left/i,x:n.left/i,y:n.top/o}}function q(e){return((e instanceof Node?e.ownerDocument:e.document)||window.document).documentElement}var U=function(e){return["TABLE","TD","TH"].includes(e.tagName)},G=function(e){return e instanceof(self||window).ShadowRoot||e instanceof ShadowRoot};function Y(e){return"HTML"===e.nodeName?e:e.assignedSlot||e.parentNode||(G(e)?e.host:null)||q(e)}function K(e){return[self,window].includes(e)}function X(e){if(null==e)return window;if(!K(e)){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=getComputedStyle(e),n=t.transform,i=t.perspective,o=t.contain,r=t.willChange,a=t.filter;return"none"!==n||"none"!==i||"paint"===o||["transform","perspective"].includes(r)||g&&"filter"===r||g&&!!a&&"none"!==a}function J(e){return Q(e)&&"fixed"!==S(e,"position")?e.offsetParent:null}function $(e){var t=V(e);return Math.round(t.width)!==e.offsetWidth||Math.round(t.height)!==e.offsetHeight}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:p,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:E,off:y,one:b,Data:D,Timer:{set:function(e,t,n,i){var o=N(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=N(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=N(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 D.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=P(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=I(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=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight;return t.top<=n&&t.bottom>=0},isElementInViewport:function(e){var t=V(e,!0);return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},passiveHandler:W,getElementAnimationDuration:C,getElementAnimationDurationLegacy:z,getElementAnimationDelay:M,getElementAnimationDelayLegacy:O,getElementTransitionDuration:P,getElementTransitionDurationLegacy:x,getElementTransitionDelay:H,getElementTransitionDelayLegacy:I,getNodeScroll:function(e){var t="scrollX"in e;return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},getOffsetParent:function(e){for(var t=X(e),n=J(e);n&&U(n)&&"static"===S(n,"position");)n=J(n);return n&&["HTML","BODY"].includes(n.tagName)&&"static"===S(n,"position")&&!Z(n)?t:n||function(e){for(var t=Y(e);Q(t)&&!["HTML","BODY"].includes(t.nodeName);){if(Z(t))return t;t=t.parentNode}return null}(e)||t},getParentNode:Y,getRectRelativeToOffsetParent:function(e,t,n){var i=Q(t),o=V(e,i&&$(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:function(e){return e instanceof Node},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:$,isTableElement:U,isShadowRoot:G,isElementsArray:function(e){return Array.isArray(e)&&e.every((function(e){return Q(e)}))},isWindow:K,isMedia:function(e){return e&&[SVGElement,HTMLImageElement,HTMLVideoElement].some((function(t){return e instanceof t}))},isRTL:function(){return[document.body,document.documentElement].some((function(e){return"rtl"===e.dir}))},closest:function(e,t){return e&&t?e.closest(t):null},querySelector:N,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:B,normalizeOptions:function(e,t,n,i){var o=Object.assign({},e.dataset),r={},a={};return F(o).forEach((function(e){var t=i&&e.includes(i)?e.replace(i,"").replace(/[A-Z]/,(function(e){return e.toLowerCase()})):e;a[t]=B(o[e])})),F(n).forEach((function(e){n[e]=B(n[e])})),F(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:F,ObjectValues:function(e){return Object.values(e)},getBoundingClientRect:V,getDocumentElement:q,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.0alpha3"}}));
{
"name": "shorter-js",
"version": "0.3.0alpha2",
"version": "0.3.0alpha3",
"description": "A small ES6+ library with various JavaScript tools useful for creating light libraries.",

@@ -5,0 +5,0 @@ "main": "dist/shorter-js.min.js",

import userAgentData from '../strings/userAgentData';
import userAgent from '../strings/userAgent';
/** @type {Record<string, any>} */
// @ts-ignore
const agentData = navigator[userAgentData];
const appleBrands = /(iPhone|iPod|iPad)/;

@@ -12,5 +10,5 @@

*/
const isApple = !agentData ? appleBrands.test(navigator.userAgent)
: agentData.brands.some((/** @type {Record<string, any>} */x) => appleBrands.test(x.brand));
const isApple = !userAgentData ? appleBrands.test(userAgent)
: userAgentData.brands.some((/** @type {Record<string, any>} */x) => appleBrands.test(x.brand));
export default isApple;
import userAgent from '../strings/userAgent';
/**
* A global boolean for Gecko browsers.
* A global boolean for Gecko browsers. When writing this file,
* Gecko was not supporting `userAgentData`.
*/
const isFirefox = userAgent ? userAgent.includes('Firefox') : false;
export default isFirefox;

@@ -7,6 +7,5 @@ import userAgentData from '../strings/userAgentData';

// @ts-ignore
if (navigator[userAgentData]) {
// @ts-ignore
isMobileCheck = navigator[userAgentData].brands.some((x) => mobileBrands.test(x.brand));
if (userAgentData) {
isMobileCheck = userAgentData.brands
.some((/** @type {Record<String, any>} */x) => mobileBrands.test(x.brand));
} else {

@@ -13,0 +12,0 @@ isMobileCheck = mobileBrands.test(userAgent);

import isWindow from '../is/isWindow';
/**
* Returns the `Window` object.
* Returns the `Window` object of a target node.
* @see https://github.com/floating-ui/floating-ui
*
* @param {(Node | Element)=} node target node
* @param {(Node | Element | Window)=} node target node
* @returns {Window} the `Window` object

@@ -16,2 +16,3 @@ */

if (!isWindow(node)) {
// @ts-ignore
const { ownerDocument } = node;

@@ -18,0 +19,0 @@ return ownerDocument ? ownerDocument.defaultView || window : window;

@@ -135,2 +135,12 @@ // strings

// attributes
import getAttribute from './attr/getAttribute';
import getAttributeNS from './attr/getAttributeNS';
import hasAttribute from './attr/hasAttribute';
import hasAttributeNS from './attr/hasAttributeNS';
import setAttribute from './attr/setAttribute';
import setAttributeNS from './attr/setAttributeNS';
import removeAttribute from './attr/removeAttribute';
import removeAttributeNS from './attr/removeAttributeNS';
// class

@@ -163,2 +173,3 @@ import addClass from './class/addClass';

import reflow from './misc/reflow';
import setElementStyle from './misc/setElementStyle';
import Timer from './misc/timer';

@@ -168,4 +179,2 @@ import tryWrapper from './misc/tryWrapper';

// get
import getAttribute from './get/getAttribute';
import getAttributeNS from './get/getAttributeNS';
import getBoundingClientRect from './get/getBoundingClientRect';

@@ -188,9 +197,2 @@ import getDocumentElement from './get/getDocumentElement';

// manipulate
import setAttribute from './manipulate/setAttribute';
import setAttributeNS from './manipulate/setAttributeNS';
import removeAttribute from './manipulate/removeAttribute';
import removeAttributeNS from './manipulate/removeAttributeNS';
import setElementStyle from './manipulate/setElementStyle';
// is

@@ -410,2 +412,4 @@ import isArray from './is/isArray';

setElementStyle,
hasAttribute,
hasAttributeNS,
getAttribute,

@@ -412,0 +416,0 @@ getAttributeNS,

/**
* Check if target is a `ShadowRoot`.
*
* @param {HTMLElement} element target
* @param {any} element target
* @returns {boolean} the query result

@@ -6,0 +6,0 @@ */

/**
* Shortcut for `Array.from()` static method.
*
* @param {any[] | HTMLCollection | NodeList} arr array-like iterable object
* @param {any[] | HTMLCollection | NodeList | Map<any, any>} arr array-like iterable object
* @returns {Array<any>}

@@ -6,0 +6,0 @@ */

@@ -32,3 +32,3 @@ import querySelector from '../selectors/querySelector';

* @param {string} component the component's name or a unique key
* @returns {Map<HTMLElement, SHORTER.Component> | null} all the component instances
* @returns {Map<HTMLElement, SHORTER.Component>?} all the component instances
*/

@@ -46,3 +46,3 @@ getAllFor: (component) => {

* @param {string} component the component's name or a unique key
* @returns {SHORTER.Component | null} the instance
* @returns {SHORTER.Component?} the instance
*/

@@ -49,0 +49,0 @@ get: (target, component) => {

@@ -8,3 +8,2 @@ import isHTMLElement from '../is/isHTMLElement';

*
*
* @param {HTMLElement=} parent parent to look into

@@ -11,0 +10,0 @@ * @returns {Node[]} the query result

@@ -5,5 +5,4 @@ const { userAgent: userAgentString } = navigator;

* A global namespace for `navigator.userAgent` string.
* @type {string}
*/
const userAgent = userAgentString;
export default userAgent;

@@ -0,6 +1,8 @@

// @ts-ignore
const { userAgentData: userAgentDATA } = navigator;
/**
* A global namespace for `userAgentData` event.
* @type {string}
*/
const userAgentData = 'userAgentData';
const userAgentData = userAgentDATA;
export default userAgentData;

@@ -121,4 +121,8 @@ export as namespace SHORTER;

export { default as supportTransition } from "shorter-js/src/boolean/supportTransition";
export { default as getAttribute } from "shorter-js/src/get/getAttribute";
export { default as getAttributeNS } from "shorter-js/src/get/getAttributeNS";
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";

@@ -153,2 +157,3 @@ export { default as getDocumentElement } from "shorter-js/src/get/getDocumentElement";

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";

@@ -165,7 +170,2 @@ export { default as normalizeOptions } from "shorter-js/src/misc/normalizeOptions";

export { default as ObjectAssign } from "shorter-js/src/misc/ObjectAssign";
export { default as setAttribute } from "shorter-js/src/manipulate/setAttribute";
export { default as setAttributeNS } from "shorter-js/src/manipulate/setAttributeNS";
export { default as removeAttribute } from "shorter-js/src/manipulate/removeAttribute";
export { default as removeAttributeNS } from "shorter-js/src/manipulate/removeAttributeNS";
export { default as setElementStyle } from "shorter-js/src/manipulate/setElementStyle";
export { default as isArray } from "shorter-js/src/is/isArray";

@@ -172,0 +172,0 @@ export { default as isElement } from "shorter-js/src/is/isElement";

@@ -135,5 +135,11 @@ // strings

// attributes
export { default as getAttribute } from '../../src/attr/getAttribute';
export { default as getAttributeNS } from '../../src/attr/getAttributeNS';
export { default as setAttribute } from '../../src/attr/setAttribute';
export { default as setAttributeNS } from '../../src/attr/setAttributeNS';
export { default as removeAttribute } from '../../src/attr/removeAttribute';
export { default as removeAttributeNS } from '../../src/attr/removeAttributeNS';
// get
export { default as getAttribute } from '../../src/get/getAttribute';
export { default as getAttributeNS } from '../../src/get/getAttributeNS';
export { default as getBoundingClientRect } from '../../src/get/getBoundingClientRect';

@@ -176,2 +182,3 @@ export { default as getDocumentElement } from '../../src/get/getDocumentElement';

export { default as setElementStyle } from '../../src/misc/setElementStyle';
export { default as normalizeValue } from "../../src/misc/normalizeValue";

@@ -190,9 +197,2 @@ export { default as normalizeOptions } from "../../src/misc/normalizeOptions";

// manipulate
export { default as setAttribute } from '../../src/manipulate/setAttribute';
export { default as setAttributeNS } from '../../src/manipulate/setAttributeNS';
export { default as removeAttribute } from '../../src/manipulate/removeAttribute';
export { default as removeAttributeNS } from '../../src/manipulate/removeAttributeNS';
export { default as setElementStyle } from '../../src/manipulate/setElementStyle';
// is

@@ -199,0 +199,0 @@ export { default as isArray } from "../../src/is/isArray";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc