@thednp/shorty 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![NPM Version](https://img.shields.io/npm/v/@thednp/shorty.svg)](https://www.npmjs.com/package/@thednp/shorty)
6
6
  [![NPM Downloads](https://img.shields.io/npm/dm/@thednp/shorty.svg)](http://npm-stat.com/charts.html?package=@thednp/shorty)
7
7
  [![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hw/@thednp/shorty)](https://www.jsdelivr.com/package/npm/@thednp/shorty)
8
- [![typescript version](https://img.shields.io/badge/typescript-5.6.3-brightgreen)](https://www.typescriptlang.org/)
8
+ [![typescript version](https://img.shields.io/badge/typescript-5.7.2-brightgreen)](https://www.typescriptlang.org/)
9
9
  [![vitest version](https://img.shields.io/badge/vitest-2.1.5-brightgreen)](https://vitest.dev/)
10
10
  [![vite version](https://img.shields.io/badge/vite-5.4.11-brightgreen)](https://github.com/vitejs)
11
11
 
package/dist/shorty.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const wt="2.0.8",At="aria-checked",kt="aria-description",St="aria-describedby",Ct="aria-expanded",Nt="aria-haspopup",J="aria-hidden",Tt="aria-label",Dt="aria-labelledby",Mt="aria-modal",Lt="aria-pressed",Ot="aria-selected",It="aria-valuemin",xt="aria-valuemax",zt="aria-valuenow",Pt="aria-valuetext",Z="abort",_="beforeunload",$="blur",X="change",Y="contextmenu",F="DOMContentLoaded",ee="DOMMouseScroll",te="error",ne="focus",oe="focusin",se="focusout",re="gesturechange",ae="gestureend",ie="gesturestart",ce="keydown",ue="keypress",le="keyup",de="load",me="click",pe="dblclick",ve="mousedown",Ee="mouseup",fe="hover",ge="mouseenter",be="mouseleave",ye="mousein",he="mouseout",we="mouseover",Ae="mousemove",ke="mousewheel",Se="move",Ce="orientationchange",Ne="pointercancel",Te="pointerdown",De="pointerleave",Me="pointermove",Le="pointerup",Oe="readystatechange",Ie="reset",xe="resize",ze="select",Pe="selectend",Fe="selectstart",He="scroll",Be="submit",Ve="touchstart",We="touchmove",Ue="touchcancel",Re="touchend",je="unload",Ft={DOMContentLoaded:F,DOMMouseScroll:ee,abort:Z,beforeunload:_,blur:$,change:X,click:me,contextmenu:Y,dblclick:pe,error:te,focus:ne,focusin:oe,focusout:se,gesturechange:re,gestureend:ae,gesturestart:ie,hover:fe,keydown:ce,keypress:ue,keyup:le,load:de,mousedown:ve,mousemove:Ae,mousein:ye,mouseout:he,mouseenter:ge,mouseleave:be,mouseover:we,mouseup:Ee,mousewheel:ke,move:Se,orientationchange:Ce,pointercancel:Ne,pointerdown:Te,pointerleave:De,pointermove:Me,pointerup:Le,readystatechange:Oe,reset:Ie,resize:xe,scroll:He,select:ze,selectend:Pe,selectstart:Fe,submit:Be,touchcancel:Ue,touchend:Re,touchmove:We,touchstart:Ve,unload:je},Ht="drag",Bt="dragstart",Vt="dragenter",Wt="dragleave",Ut="dragover",Rt="dragend",jt="loadstart",Qt={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Kt={down:"mousedown",up:"mouseup"},qt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Gt={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Jt={in:"focusin",out:"focusout"},Qe='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Zt={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"},_t="Alt",$t="ArrowDown",Xt="ArrowUp",Yt="ArrowLeft",en="ArrowRight",tn="Backspace",nn="CapsLock",on="Control",sn="Delete",rn="Enter",an="NumpadEnter",cn="Escape",un="Insert",ln="Meta",dn="Pause",mn="ScrollLock",pn="Shift",vn="Space",En="Tab",Ke="animationDuration",qe="animationDelay",H="animationName",T="animationend",Ge="transitionDuration",Je="transitionDelay",D="transitionend",B="transitionProperty",fn="addEventListener",gn="removeEventListener",bn={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)"},yn="offsetHeight",hn="offsetWidth",wn="scrollHeight",An="scrollWidth",kn="tabindex",Sn=navigator.userAgentData,{userAgent:Cn}=navigator,Nn=Cn,Tn=()=>{const e=/iPhone|iPad|iPod|Android/i;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},Dn=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},Mn=()=>navigator?.userAgent?.includes("Firefox")||!1,Ze=()=>typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none"),Ln=()=>["webkitPerspective","perspective"].some(e=>e in document.head.style),_e=()=>{},V=(e,t,n,o)=>{const s=o||!1;e.addEventListener(t,n,s)},W=(e,t,n,o)=>{const s=o||!1;e.removeEventListener(t,n,s)},$e=(e,t,n,o)=>{const s=r=>{(r.target===e||r.currentTarget===e)&&(n.apply(e,[r]),W(e,t,s,o))};V(e,t,s,o)},On=()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});$e(document,F,_e,t)}catch{}return e},In=()=>["webkitTransform","transform"].some(e=>e in document.head.style),xn=()=>"ontouchstart"in window||"msMaxTouchPoints"in navigator,zn=()=>["webkitAnimation","animation"].some(e=>e in document.head.style),Pn=()=>["webkitTransition","transition"].some(e=>e in document.head.style),U=(e,t)=>e.getAttribute(t),Fn=(e,t,n)=>t.getAttributeNS(e,n),Xe=(e,t)=>e.hasAttribute(t),Hn=(e,t,n)=>t.hasAttributeNS(e,n),Bn=(e,t,n)=>e.setAttribute(t,n),Vn=(e,t,n,o)=>t.setAttributeNS(e,n,o),Wn=(e,t)=>e.removeAttribute(t),Un=(e,t,n)=>t.removeAttributeNS(e,n),Rn=(e,...t)=>{e.classList.add(...t)},jn=(e,...t)=>{e.classList.remove(...t)},Qn=(e,t)=>e.classList.contains(t),{body:Kn}=document,{documentElement:qn}=document,{head:Gn}=document,Jn=e=>Array.from(e),p=e=>e!=null&&typeof e=="object"||!1,u=e=>p(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,c=e=>u(e)&&e.nodeType===1||!1,b=new Map,M={data:b,set:(e,t,n)=>{if(!c(e))return;b.has(t)||b.set(t,new Map),b.get(t).set(e,n)},getAllFor:e=>b.get(e)||null,get:(e,t)=>{if(!c(e)||!t)return null;const n=M.getAllFor(t);return e&&n&&n.get(e)||null},remove:(e,t)=>{const n=M.getAllFor(t);!n||!c(e)||(n.delete(e),n.size===0&&b.delete(t))}},Zn=(e,t)=>M.get(e,t),_n=e=>e?.charAt(0).toUpperCase()+e?.slice(1),I=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,n)=>n===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),S=e=>typeof e=="string"||!1,R=e=>p(e)&&e.constructor.name==="Window"||!1,j=e=>u(e)&&e.nodeType===9||!1,d=e=>j(e)?e:u(e)?e.ownerDocument:R(e)?e.document:globalThis.document,C=(e,...t)=>Object.assign(e,...t),Ye=e=>{if(!e)return;if(S(e))return d().createElement(e);const{tagName:t}=e,n=Ye(t);if(!n)return;const o={...e};return delete o.tagName,C(n,o)},et=(e,t)=>{if(!e||!t)return;if(S(t))return d().createElementNS(e,t);const{tagName:n}=t,o=et(e,n);if(!o)return;const s={...t};return delete s.tagName,C(o,s)},Q=(e,t)=>e.dispatchEvent(t),$n=(e,t,n)=>n.indexOf(e)===t,m=(e,t,n)=>{const o=getComputedStyle(e,n),s=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return o.getPropertyValue(s)},tt=e=>{const t=m(e,H),n=m(e,qe),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},nt=e=>{const t=m(e,H),n=m(e,Ke),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Xn=(e,t)=>{let n=0;const o=new Event(T),s=nt(e),r=tt(e);if(s){const i=l=>{l.target===e&&(t.apply(e,[l]),e.removeEventListener(T,i),n=1)};e.addEventListener(T,i),setTimeout(()=>{n||Q(e,o)},s+r+17)}else t.apply(e,[o])},ot=e=>{const t=m(e,B),n=m(e,Je),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},st=e=>{const t=m(e,B),n=m(e,Ge),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Yn=(e,t)=>{let n=0;const o=new Event(D),s=st(e),r=ot(e);if(s){const i=l=>{l.target===e&&(t.apply(e,[l]),e.removeEventListener(D,i),n=1)};e.addEventListener(D,i),setTimeout(()=>{n||Q(e,o)},s+r+17)}else t.apply(e,[o])},eo=e=>Float32Array.from(Array.from(e)),to=e=>Float64Array.from(Array.from(e)),no=(e,t)=>e.focus(t),oo=e=>e?.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),x=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,A=e=>Object.entries(e),so=(e,t,n,o)=>{if(!c(e))return t;const s={...n},r={...e.dataset},i={...t},l={},v="title";return A(r).forEach(([a,E])=>{const N=o&&typeof a=="string"&&a.includes(o)?I(a.replace(o,"")):I(a);l[N]=x(E)}),A(s).forEach(([a,E])=>{s[a]=x(E)}),A(t).forEach(([a,E])=>{a in s?i[a]=s[a]:a in l?i[a]=l[a]:i[a]=a===v?U(e,v):E}),i},ro=(e,t)=>p(e)&&(Object.hasOwn(e,t)||t in e),ao=e=>Object.keys(e),io=e=>Object.values(e),co=e=>Object.fromEntries(e),uo=(e,t)=>{const n=new CustomEvent(e,{cancelable:!0,bubbles:!0});return p(t)&&C(n,t),n},lo={passive:!0},mo=e=>e.offsetHeight,po=(e,t)=>{A(t).forEach(([n,o])=>{if(o&&S(n)&&n.includes("--"))e.style.setProperty(n,o);else{const s={};s[n]=o,C(e.style,s)}})},L=e=>p(e)&&e.constructor.name==="Map"||!1,rt=e=>typeof e=="number"||!1,f=new Map,vo={set:(e,t,n,o)=>{c(e)&&(o&&o.length?(f.has(e)||f.set(e,new Map),f.get(e).set(o,setTimeout(t,n))):f.set(e,setTimeout(t,n)))},get:(e,t)=>{if(!c(e))return null;const n=f.get(e);return t&&n&&L(n)?n.get(t)||null:rt(n)?n:null},clear:(e,t)=>{if(!c(e))return;const n=f.get(e);t&&t.length&&L(n)?(clearTimeout(n.get(t)),n.delete(t),n.size===0&&f.delete(e)):(clearTimeout(n),f.delete(e))}},Eo=e=>e.toLowerCase(),fo=e=>e.toUpperCase(),at=(e,t)=>(u(t)?t:d()).querySelectorAll(e),z=new Map;function go(e){const{shiftKey:t,code:n}=e,o=d(this),s=[...at(Qe,this)].filter(l=>!Xe(l,"disabled")&&!U(l,J));if(!s.length)return;const r=s[0],i=s[s.length-1];n==="Tab"&&(t&&o.activeElement===r?(i.focus(),e.preventDefault()):!t&&o.activeElement===i&&(r.focus(),e.preventDefault()))}const it=e=>z.has(e)===!0,bo=e=>{const t=it(e);(t?W:V)(e,"keydown",go),t?z.delete(e):z.set(e,!0)},g=e=>c(e)&&"offsetWidth"in e||!1,h=(e,t)=>{const{width:n,height:o,top:s,right:r,bottom:i,left:l}=e.getBoundingClientRect();let v=1,a=1;if(t&&g(e)){const{offsetWidth:E,offsetHeight:N}=e;v=E>0?Math.round(n)/E:1,a=N>0?Math.round(o)/N:1}return{width:n/v,height:o/a,top:s/a,right:r/v,bottom:i/a,left:l/v,x:l/v,y:s/a}},yo=e=>d(e).body,w=e=>d(e).documentElement,ho=e=>d(e).head,ct=e=>u(e)?(e.nodeName||"").toLowerCase():"#document",wo=e=>{const t=R(e),n=t?e.scrollX:e.scrollLeft,o=t?e.scrollY:e.scrollTop;return{x:n,y:o}},ut=e=>u(e)&&e.constructor.name==="ShadowRoot"||!1,k=e=>e.nodeName==="HTML"?e:c(e)&&e.assignedSlot||u(e)&&e.parentNode||ut(e)&&e.host||w(e),lt=e=>e?j(e)?e.defaultView:u(e)?e?.ownerDocument?.defaultView:e:window,dt=e=>u(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,mt=(e,t)=>e.matches(t),O=e=>m(e,"position")==="static",Ao=e=>m(e,"position")==="fixed",pt=e=>[":popover-open",":modal"].some(t=>{try{return mt(e,t)}catch{return!1}}),vt=e=>{const t=Ze(),n=c(e)?getComputedStyle(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))},ko=e=>{let t=k(e);for(;c(t)&&!P(t);){if(vt(t))return t;if(pt(t))return null;t=k(t)}return null},P=e=>["html","body","#document"].includes(ct(e)),K=e=>{if(!g(e)||Ao(e))return null;let t=e.offsetParent;return w(e)===t&&(t=t.ownerDocument.body),t},So=e=>{const t=lt(e);if(!u(e)||pt(e))return t;if(!g(e)){let o=k(e);for(;o&&!P(o);){if(c(o)&&!O(o))return o;o=k(o)}return t}let n=K(e);for(;n&&dt(n)&&O(n);)n=K(n);return n&&P(n)&&O(n)&&!vt(n)?t:n||ko(e)||t},Et=e=>{if(!g(e))return!1;const{width:t,height:n}=h(e),{offsetWidth:o,offsetHeight:s}=e;return Math.round(t)!==o||Math.round(n)!==s},Co=(e,t,n)=>{const o=g(t),s=h(e,o&&Et(t)),r={x:0,y:0};if(o){const i=h(t,!0);r.x=i.x+t.clientLeft,r.y=i.y+t.clientTop}return{x:s.left+n.x-r.x,y:s.top+n.y-r.y,width:s.width,height:s.height}};let q=0,G=0;const y=new Map,ft=(e,t)=>{let n=t?q:G;if(t){const o=ft(e),s=y.get(o)||new Map;y.has(o)||y.set(o,s),L(s)&&!s.has(t)?(s.set(t,n),q+=1):n=s.get(t)}else{const o=e.id||e;y.has(o)?n=y.get(o):(y.set(o,n),G+=1)}return n},gt=e=>Array.isArray(e)||!1,No=e=>u(e)&&e.nodeName==="CANVAS"||!1,bt=e=>g(e)&&!!e.shadowRoot||!1,To=e=>{if(!u(e))return!1;const{top:t,bottom:n}=h(e),{clientHeight:o}=w(e);return t<=o&&n>=0},Do=e=>{if(!c(e))return!1;const{clientWidth:t,clientHeight:n}=w(e),{top:o,left:s,bottom:r,right:i}=h(e,!0);return o>=0&&s>=0&&r<=n&&i<=t},Mo=e=>gt(e)&&e.every(c)||!1,Lo=e=>typeof e=="function"||!1,Oo=e=>p(e)&&e.constructor.name==="HTMLCollection"||!1,Io=e=>g(e)&&e.tagName==="IMG"||!1,xo=e=>{if(!S(e))return!1;try{JSON.parse(e)}catch{return!1}return!0},zo=e=>p(e)&&e.constructor.name==="WeakMap"||!1,Po=e=>u(e)&&["SVG","Image","Video","Canvas"].some(t=>e.constructor.name.includes(t))||!1,Fo=e=>p(e)&&e.constructor.name==="NodeList"||!1,Ho=e=>w(e).dir==="rtl",Bo=e=>u(e)&&e.constructor.name.includes("SVG")||!1,yt=(e,t)=>!e||!t?null:e.closest(t)||yt(e.getRootNode().host,t)||null,Vo=(e,t)=>c(e)?e:(c(t)?t:d()).querySelector(e),ht=(e,t)=>(u(t)?t:d()).getElementsByTagName(e),Wo=e=>[...ht("*",e)].filter(bt),Uo=(e,t)=>d(t).getElementById(e),Ro=(e,t)=>(t&&u(t)?t:d()).getElementsByClassName(e);exports.ArrayFrom=Jn;exports.DOMContentLoadedEvent=F;exports.DOMMouseScrollEvent=ee;exports.Data=M;exports.Float32ArrayFrom=eo;exports.Float64ArrayFrom=to;exports.ObjectAssign=C;exports.ObjectEntries=A;exports.ObjectFromEntries=co;exports.ObjectHasOwn=ro;exports.ObjectKeys=ao;exports.ObjectValues=io;exports.Timer=vo;exports.abortEvent=Z;exports.addClass=Rn;exports.addEventListener=fn;exports.animationDelay=qe;exports.animationDuration=Ke;exports.animationEndEvent=T;exports.animationName=H;exports.ariaChecked=At;exports.ariaDescribedBy=St;exports.ariaDescription=kt;exports.ariaExpanded=Ct;exports.ariaHasPopup=Nt;exports.ariaHidden=J;exports.ariaLabel=Tt;exports.ariaLabelledBy=Dt;exports.ariaModal=Mt;exports.ariaPressed=Lt;exports.ariaSelected=Ot;exports.ariaValueMax=xt;exports.ariaValueMin=It;exports.ariaValueNow=zt;exports.ariaValueText=Pt;exports.beforeunloadEvent=_;exports.bezierEasings=bn;exports.blurEvent=$;exports.camelCase=I;exports.capitalize=_n;exports.changeEvent=X;exports.closest=yt;exports.contextmenuEvent=Y;exports.createCustomEvent=uo;exports.createElement=Ye;exports.createElementNS=et;exports.dispatchEvent=Q;exports.distinct=$n;exports.documentBody=Kn;exports.documentElement=qn;exports.documentHead=Gn;exports.dragEvent=Ht;exports.dragendEvent=Rt;exports.dragenterEvent=Vt;exports.dragleaveEvent=Wt;exports.dragoverEvent=Ut;exports.dragstartEvent=Bt;exports.emulateAnimationEnd=Xn;exports.emulateTransitionEnd=Yn;exports.errorEvent=te;exports.focus=no;exports.focusEvent=ne;exports.focusEvents=Jt;exports.focusableSelector=Qe;exports.focusinEvent=oe;exports.focusoutEvent=se;exports.gesturechangeEvent=re;exports.gestureendEvent=ae;exports.gesturestartEvent=ie;exports.getAttribute=U;exports.getAttributeNS=Fn;exports.getBoundingClientRect=h;exports.getCustomElements=Wo;exports.getDocument=d;exports.getDocumentBody=yo;exports.getDocumentElement=w;exports.getDocumentHead=ho;exports.getElementAnimationDelay=tt;exports.getElementAnimationDuration=nt;exports.getElementById=Uo;exports.getElementStyle=m;exports.getElementTransitionDelay=ot;exports.getElementTransitionDuration=st;exports.getElementsByClassName=Ro;exports.getElementsByTagName=ht;exports.getInstance=Zn;exports.getNodeName=ct;exports.getNodeScroll=wo;exports.getOffsetParent=So;exports.getParentNode=k;exports.getRectRelativeToOffsetParent=Co;exports.getUID=ft;exports.getWindow=lt;exports.hasAttribute=Xe;exports.hasAttributeNS=Hn;exports.hasClass=Qn;exports.hasFocusTrap=it;exports.isApple=Dn;exports.isArray=gt;exports.isCanvas=No;exports.isCustomElement=bt;exports.isDocument=j;exports.isElement=c;exports.isElementInScrollRange=To;exports.isElementInViewport=Do;exports.isElementsArray=Mo;exports.isFirefox=Mn;exports.isFunction=Lo;exports.isHTMLCollection=Oo;exports.isHTMLElement=g;exports.isHTMLImageElement=Io;exports.isJSON=xo;exports.isMap=L;exports.isMedia=Po;exports.isMobile=Tn;exports.isNode=u;exports.isNodeList=Fo;exports.isNumber=rt;exports.isObject=p;exports.isRTL=Ho;exports.isSVGElement=Bo;exports.isScaledElement=Et;exports.isShadowRoot=ut;exports.isString=S;exports.isTableElement=dt;exports.isWeakMap=zo;exports.isWebKit=Ze;exports.isWindow=R;exports.kebabCase=oo;exports.keyAlt=_t;exports.keyArrowDown=$t;exports.keyArrowLeft=Yt;exports.keyArrowRight=en;exports.keyArrowUp=Xt;exports.keyBackspace=tn;exports.keyCapsLock=nn;exports.keyControl=on;exports.keyDelete=sn;exports.keyEnter=rn;exports.keyEscape=cn;exports.keyInsert=un;exports.keyMeta=ln;exports.keyNumpadEnter=an;exports.keyPause=dn;exports.keyScrollLock=mn;exports.keyShift=pn;exports.keySpace=vn;exports.keyTab=En;exports.keyboardEventKeys=Zt;exports.keydownEvent=ce;exports.keypressEvent=ue;exports.keyupEvent=le;exports.loadEvent=de;exports.loadstartEvent=jt;exports.matches=mt;exports.mouseClickEvents=Kt;exports.mouseHoverEvents=qt;exports.mouseSwipeEvents=Qt;exports.mouseclickEvent=me;exports.mousedblclickEvent=pe;exports.mousedownEvent=ve;exports.mouseenterEvent=ge;exports.mousehoverEvent=fe;exports.mouseinEvent=ye;exports.mouseleaveEvent=be;exports.mousemoveEvent=Ae;exports.mouseoutEvent=he;exports.mouseoverEvent=we;exports.mouseupEvent=Ee;exports.mousewheelEvent=ke;exports.moveEvent=Se;exports.nativeEvents=Ft;exports.noop=_e;exports.normalizeOptions=so;exports.normalizeValue=x;exports.off=W;exports.offsetHeight=yn;exports.offsetWidth=hn;exports.on=V;exports.one=$e;exports.orientationchangeEvent=Ce;exports.passiveHandler=lo;exports.pointercancelEvent=Ne;exports.pointerdownEvent=Te;exports.pointerleaveEvent=De;exports.pointermoveEvent=Me;exports.pointerupEvent=Le;exports.querySelector=Vo;exports.querySelectorAll=at;exports.readystatechangeEvent=Oe;exports.reflow=mo;exports.removeAttribute=Wn;exports.removeAttributeNS=Un;exports.removeClass=jn;exports.removeEventListener=gn;exports.resetEvent=Ie;exports.resizeEvent=xe;exports.scrollEvent=He;exports.scrollHeight=wn;exports.scrollWidth=An;exports.selectEvent=ze;exports.selectendEvent=Pe;exports.selectstartEvent=Fe;exports.setAttribute=Bn;exports.setAttributeNS=Vn;exports.setElementStyle=po;exports.submitEvent=Be;exports.support3DTransform=Ln;exports.supportAnimation=zn;exports.supportPassive=On;exports.supportTouch=xn;exports.supportTransform=In;exports.supportTransition=Pn;exports.tabindex=kn;exports.toLowerCase=Eo;exports.toUpperCase=fo;exports.toggleFocusTrap=bo;exports.touchEvents=Gt;exports.touchcancelEvent=Ue;exports.touchendEvent=Re;exports.touchmoveEvent=We;exports.touchstartEvent=Ve;exports.transitionDelay=Je;exports.transitionDuration=Ge;exports.transitionEndEvent=D;exports.transitionProperty=B;exports.unloadEvent=je;exports.userAgent=Nn;exports.userAgentData=Sn;exports.version=wt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const wt="2.0.9",At="aria-checked",kt="aria-description",St="aria-describedby",Ct="aria-expanded",Nt="aria-haspopup",J="aria-hidden",Tt="aria-label",Dt="aria-labelledby",Mt="aria-modal",Lt="aria-pressed",Ot="aria-selected",It="aria-valuemin",xt="aria-valuemax",zt="aria-valuenow",Pt="aria-valuetext",Z="abort",_="beforeunload",$="blur",X="change",Y="contextmenu",F="DOMContentLoaded",ee="DOMMouseScroll",te="error",ne="focus",oe="focusin",se="focusout",re="gesturechange",ae="gestureend",ie="gesturestart",ce="keydown",ue="keypress",le="keyup",de="load",me="click",pe="dblclick",ve="mousedown",Ee="mouseup",fe="hover",ge="mouseenter",be="mouseleave",ye="mousein",he="mouseout",we="mouseover",Ae="mousemove",ke="mousewheel",Se="move",Ce="orientationchange",Ne="pointercancel",Te="pointerdown",De="pointerleave",Me="pointermove",Le="pointerup",Oe="readystatechange",Ie="reset",xe="resize",ze="select",Pe="selectend",Fe="selectstart",He="scroll",Be="submit",Ve="touchstart",We="touchmove",Ue="touchcancel",Re="touchend",je="unload",Ft={DOMContentLoaded:F,DOMMouseScroll:ee,abort:Z,beforeunload:_,blur:$,change:X,click:me,contextmenu:Y,dblclick:pe,error:te,focus:ne,focusin:oe,focusout:se,gesturechange:re,gestureend:ae,gesturestart:ie,hover:fe,keydown:ce,keypress:ue,keyup:le,load:de,mousedown:ve,mousemove:Ae,mousein:ye,mouseout:he,mouseenter:ge,mouseleave:be,mouseover:we,mouseup:Ee,mousewheel:ke,move:Se,orientationchange:Ce,pointercancel:Ne,pointerdown:Te,pointerleave:De,pointermove:Me,pointerup:Le,readystatechange:Oe,reset:Ie,resize:xe,scroll:He,select:ze,selectend:Pe,selectstart:Fe,submit:Be,touchcancel:Ue,touchend:Re,touchmove:We,touchstart:Ve,unload:je},Ht="drag",Bt="dragstart",Vt="dragenter",Wt="dragleave",Ut="dragover",Rt="dragend",jt="loadstart",Qt={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Kt={down:"mousedown",up:"mouseup"},qt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Gt={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Jt={in:"focusin",out:"focusout"},Qe='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Zt={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"},_t="Alt",$t="ArrowDown",Xt="ArrowUp",Yt="ArrowLeft",en="ArrowRight",tn="Backspace",nn="CapsLock",on="Control",sn="Delete",rn="Enter",an="NumpadEnter",cn="Escape",un="Insert",ln="Meta",dn="Pause",mn="ScrollLock",pn="Shift",vn="Space",En="Tab",Ke="animationDuration",qe="animationDelay",H="animationName",T="animationend",Ge="transitionDuration",Je="transitionDelay",D="transitionend",B="transitionProperty",fn="addEventListener",gn="removeEventListener",bn={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)"},yn="offsetHeight",hn="offsetWidth",wn="scrollHeight",An="scrollWidth",kn="tabindex",Sn=navigator.userAgentData,{userAgent:Cn}=navigator,Nn=Cn,Tn=()=>{const e=/iPhone|iPad|iPod|Android/i;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},Dn=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},Mn=()=>navigator?.userAgent?.includes("Firefox")||!1,Ze=()=>typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none"),Ln=()=>["webkitPerspective","perspective"].some(e=>e in document.head.style),_e=()=>{},V=(e,t,n,o)=>{const s=o||!1;e.addEventListener(t,n,s)},W=(e,t,n,o)=>{const s=o||!1;e.removeEventListener(t,n,s)},$e=(e,t,n,o)=>{const s=r=>{(r.target===e||r.currentTarget===e)&&(n.apply(e,[r]),W(e,t,s,o))};V(e,t,s,o)},On=()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});$e(document,F,_e,t)}catch{}return e},In=()=>["webkitTransform","transform"].some(e=>e in document.head.style),xn=()=>"ontouchstart"in window||"msMaxTouchPoints"in navigator,zn=()=>["webkitAnimation","animation"].some(e=>e in document.head.style),Pn=()=>["webkitTransition","transition"].some(e=>e in document.head.style),U=(e,t)=>e.getAttribute(t),Fn=(e,t,n)=>t.getAttributeNS(e,n),Xe=(e,t)=>e.hasAttribute(t),Hn=(e,t,n)=>t.hasAttributeNS(e,n),Bn=(e,t,n)=>e.setAttribute(t,n),Vn=(e,t,n,o)=>t.setAttributeNS(e,n,o),Wn=(e,t)=>e.removeAttribute(t),Un=(e,t,n)=>t.removeAttributeNS(e,n),Rn=(e,...t)=>{e.classList.add(...t)},jn=(e,...t)=>{e.classList.remove(...t)},Qn=(e,t)=>e.classList.contains(t),{body:Kn}=document,{documentElement:qn}=document,{head:Gn}=document,Jn=e=>Array.from(e),p=e=>e!=null&&typeof e=="object"||!1,u=e=>p(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,c=e=>u(e)&&e.nodeType===1||!1,b=new Map,M={data:b,set:(e,t,n)=>{if(!c(e))return;b.has(t)||b.set(t,new Map),b.get(t).set(e,n)},getAllFor:e=>b.get(e)||null,get:(e,t)=>{if(!c(e)||!t)return null;const n=M.getAllFor(t);return e&&n&&n.get(e)||null},remove:(e,t)=>{const n=M.getAllFor(t);!n||!c(e)||(n.delete(e),n.size===0&&b.delete(t))}},Zn=(e,t)=>M.get(e,t),_n=e=>e?.charAt(0).toUpperCase()+e?.slice(1),I=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,n)=>n===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),S=e=>typeof e=="string"||!1,R=e=>p(e)&&e.constructor.name==="Window"||!1,j=e=>u(e)&&e.nodeType===9||!1,d=e=>j(e)?e:u(e)?e.ownerDocument:R(e)?e.document:globalThis.document,C=(e,...t)=>Object.assign(e,...t),Ye=e=>{if(!e)return;if(S(e))return d().createElement(e);const{tagName:t}=e,n=Ye(t);if(!n)return;const o={...e};return delete o.tagName,C(n,o)},et=(e,t)=>{if(!e||!t)return;if(S(t))return d().createElementNS(e,t);const{tagName:n}=t,o=et(e,n);if(!o)return;const s={...t};return delete s.tagName,C(o,s)},Q=(e,t)=>e.dispatchEvent(t),$n=(e,t,n)=>n.indexOf(e)===t,m=(e,t,n)=>{const o=getComputedStyle(e,n),s=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return o.getPropertyValue(s)},tt=e=>{const t=m(e,H),n=m(e,qe),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},nt=e=>{const t=m(e,H),n=m(e,Ke),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Xn=(e,t)=>{let n=0;const o=new Event(T),s=nt(e),r=tt(e);if(s){const i=l=>{l.target===e&&(t.apply(e,[l]),e.removeEventListener(T,i),n=1)};e.addEventListener(T,i),setTimeout(()=>{n||Q(e,o)},s+r+17)}else t.apply(e,[o])},ot=e=>{const t=m(e,B),n=m(e,Je),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},st=e=>{const t=m(e,B),n=m(e,Ge),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},Yn=(e,t)=>{let n=0;const o=new Event(D),s=st(e),r=ot(e);if(s){const i=l=>{l.target===e&&(t.apply(e,[l]),e.removeEventListener(D,i),n=1)};e.addEventListener(D,i),setTimeout(()=>{n||Q(e,o)},s+r+17)}else t.apply(e,[o])},eo=e=>Float32Array.from(Array.from(e)),to=e=>Float64Array.from(Array.from(e)),no=(e,t)=>e.focus(t),oo=e=>e?.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),x=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,A=e=>Object.entries(e),so=(e,t,n,o)=>{if(!c(e))return t;const s={...n},r={...e.dataset},i={...t},l={},v="title";return A(r).forEach(([a,E])=>{const N=o&&typeof a=="string"&&a.includes(o)?I(a.replace(o,"")):I(a);l[N]=x(E)}),A(s).forEach(([a,E])=>{s[a]=x(E)}),A(t).forEach(([a,E])=>{a in s?i[a]=s[a]:a in l?i[a]=l[a]:i[a]=a===v?U(e,v):E}),i},ro=(e,t)=>p(e)&&(Object.hasOwn(e,t)||t in e),ao=e=>Object.keys(e),io=e=>Object.values(e),co=e=>Object.fromEntries(e),uo=(e,t)=>{const n=new CustomEvent(e,{cancelable:!0,bubbles:!0});return p(t)&&C(n,t),n},lo={passive:!0},mo=e=>e.offsetHeight,po=(e,t)=>{A(t).forEach(([n,o])=>{if(o&&S(n)&&n.includes("--"))e.style.setProperty(n,o);else{const s={};s[n]=o,C(e.style,s)}})},L=e=>p(e)&&e.constructor.name==="Map"||!1,rt=e=>typeof e=="number"||!1,f=new Map,vo={set:(e,t,n,o)=>{c(e)&&(o&&o.length?(f.has(e)||f.set(e,new Map),f.get(e).set(o,setTimeout(t,n))):f.set(e,setTimeout(t,n)))},get:(e,t)=>{if(!c(e))return null;const n=f.get(e);return t&&n&&L(n)?n.get(t)||null:rt(n)?n:null},clear:(e,t)=>{if(!c(e))return;const n=f.get(e);t&&t.length&&L(n)?(clearTimeout(n.get(t)),n.delete(t),n.size===0&&f.delete(e)):(clearTimeout(n),f.delete(e))}},Eo=e=>e.toLowerCase(),fo=e=>e.toUpperCase(),at=(e,t)=>(u(t)?t:d()).querySelectorAll(e),z=new Map;function go(e){const{shiftKey:t,code:n}=e,o=d(this),s=[...at(Qe,this)].filter(l=>!Xe(l,"disabled")&&!U(l,J));if(!s.length)return;const r=s[0],i=s[s.length-1];n==="Tab"&&(t&&o.activeElement===r?(i.focus(),e.preventDefault()):!t&&o.activeElement===i&&(r.focus(),e.preventDefault()))}const it=e=>z.has(e)===!0,bo=e=>{const t=it(e);(t?W:V)(e,"keydown",go),t?z.delete(e):z.set(e,!0)},g=e=>c(e)&&"offsetWidth"in e||!1,h=(e,t)=>{const{width:n,height:o,top:s,right:r,bottom:i,left:l}=e.getBoundingClientRect();let v=1,a=1;if(t&&g(e)){const{offsetWidth:E,offsetHeight:N}=e;v=E>0?Math.round(n)/E:1,a=N>0?Math.round(o)/N:1}return{width:n/v,height:o/a,top:s/a,right:r/v,bottom:i/a,left:l/v,x:l/v,y:s/a}},yo=e=>d(e).body,w=e=>d(e).documentElement,ho=e=>d(e).head,ct=e=>u(e)?(e.nodeName||"").toLowerCase():"#document",wo=e=>{const t=R(e),n=t?e.scrollX:e.scrollLeft,o=t?e.scrollY:e.scrollTop;return{x:n,y:o}},ut=e=>u(e)&&e.constructor.name==="ShadowRoot"||!1,k=e=>e.nodeName==="HTML"?e:c(e)&&e.assignedSlot||u(e)&&e.parentNode||ut(e)&&e.host||w(e),lt=e=>e?j(e)?e.defaultView:u(e)?e?.ownerDocument?.defaultView:e:window,dt=e=>u(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,mt=(e,t)=>e.matches(t),O=e=>m(e,"position")==="static",Ao=e=>m(e,"position")==="fixed",pt=e=>[":popover-open",":modal"].some(t=>{try{return mt(e,t)}catch{return!1}}),vt=e=>{const t=Ze(),n=c(e)?getComputedStyle(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))},ko=e=>{let t=k(e);for(;c(t)&&!P(t);){if(vt(t))return t;if(pt(t))return null;t=k(t)}return null},P=e=>["html","body","#document"].includes(ct(e)),K=e=>{if(!g(e)||Ao(e))return null;let t=e.offsetParent;return w(e)===t&&(t=t.ownerDocument.body),t},So=e=>{const t=lt(e);if(!u(e)||pt(e))return t;if(!g(e)){let o=k(e);for(;o&&!P(o);){if(c(o)&&!O(o))return o;o=k(o)}return t}let n=K(e);for(;n&&dt(n)&&O(n);)n=K(n);return n&&P(n)&&O(n)&&!vt(n)?t:n||ko(e)||t},Et=e=>{if(!g(e))return!1;const{width:t,height:n}=h(e),{offsetWidth:o,offsetHeight:s}=e;return Math.round(t)!==o||Math.round(n)!==s},Co=(e,t,n)=>{const o=g(t),s=h(e,o&&Et(t)),r={x:0,y:0};if(o){const i=h(t,!0);r.x=i.x+t.clientLeft,r.y=i.y+t.clientTop}return{x:s.left+n.x-r.x,y:s.top+n.y-r.y,width:s.width,height:s.height}};let q=0,G=0;const y=new Map,ft=(e,t)=>{let n=t?q:G;if(t){const o=ft(e),s=y.get(o)||new Map;y.has(o)||y.set(o,s),L(s)&&!s.has(t)?(s.set(t,n),q+=1):n=s.get(t)}else{const o=e.id||e;y.has(o)?n=y.get(o):(y.set(o,n),G+=1)}return n},gt=e=>Array.isArray(e)||!1,No=e=>u(e)&&e.nodeName==="CANVAS"||!1,bt=e=>g(e)&&!!e.shadowRoot||!1,To=e=>{if(!u(e))return!1;const{top:t,bottom:n}=h(e),{clientHeight:o}=w(e);return t<=o&&n>=0},Do=e=>{if(!c(e))return!1;const{clientWidth:t,clientHeight:n}=w(e),{top:o,left:s,bottom:r,right:i}=h(e,!0);return o>=0&&s>=0&&r<=n&&i<=t},Mo=e=>gt(e)&&e.every(c)||!1,Lo=e=>typeof e=="function"||!1,Oo=e=>p(e)&&e.constructor.name==="HTMLCollection"||!1,Io=e=>g(e)&&e.tagName==="IMG"||!1,xo=e=>{if(!S(e))return!1;try{JSON.parse(e)}catch{return!1}return!0},zo=e=>p(e)&&e.constructor.name==="WeakMap"||!1,Po=e=>u(e)&&["SVG","Image","Video","Canvas"].some(t=>e.constructor.name.includes(t))||!1,Fo=e=>p(e)&&e.constructor.name==="NodeList"||!1,Ho=e=>w(e).dir==="rtl",Bo=e=>u(e)&&e.constructor.name.includes("SVG")||!1,yt=(e,t)=>!e||!t?null:e.closest(t)||yt(e.getRootNode().host,t)||null,Vo=(e,t)=>c(e)?e:(c(t)?t:d()).querySelector(e),ht=(e,t)=>(u(t)?t:d()).getElementsByTagName(e),Wo=e=>[...ht("*",e)].filter(bt),Uo=(e,t)=>d(t).getElementById(e),Ro=(e,t)=>(t&&u(t)?t:d()).getElementsByClassName(e);exports.ArrayFrom=Jn;exports.DOMContentLoadedEvent=F;exports.DOMMouseScrollEvent=ee;exports.Data=M;exports.Float32ArrayFrom=eo;exports.Float64ArrayFrom=to;exports.ObjectAssign=C;exports.ObjectEntries=A;exports.ObjectFromEntries=co;exports.ObjectHasOwn=ro;exports.ObjectKeys=ao;exports.ObjectValues=io;exports.Timer=vo;exports.abortEvent=Z;exports.addClass=Rn;exports.addEventListener=fn;exports.animationDelay=qe;exports.animationDuration=Ke;exports.animationEndEvent=T;exports.animationName=H;exports.ariaChecked=At;exports.ariaDescribedBy=St;exports.ariaDescription=kt;exports.ariaExpanded=Ct;exports.ariaHasPopup=Nt;exports.ariaHidden=J;exports.ariaLabel=Tt;exports.ariaLabelledBy=Dt;exports.ariaModal=Mt;exports.ariaPressed=Lt;exports.ariaSelected=Ot;exports.ariaValueMax=xt;exports.ariaValueMin=It;exports.ariaValueNow=zt;exports.ariaValueText=Pt;exports.beforeunloadEvent=_;exports.bezierEasings=bn;exports.blurEvent=$;exports.camelCase=I;exports.capitalize=_n;exports.changeEvent=X;exports.closest=yt;exports.contextmenuEvent=Y;exports.createCustomEvent=uo;exports.createElement=Ye;exports.createElementNS=et;exports.dispatchEvent=Q;exports.distinct=$n;exports.documentBody=Kn;exports.documentElement=qn;exports.documentHead=Gn;exports.dragEvent=Ht;exports.dragendEvent=Rt;exports.dragenterEvent=Vt;exports.dragleaveEvent=Wt;exports.dragoverEvent=Ut;exports.dragstartEvent=Bt;exports.emulateAnimationEnd=Xn;exports.emulateTransitionEnd=Yn;exports.errorEvent=te;exports.focus=no;exports.focusEvent=ne;exports.focusEvents=Jt;exports.focusableSelector=Qe;exports.focusinEvent=oe;exports.focusoutEvent=se;exports.gesturechangeEvent=re;exports.gestureendEvent=ae;exports.gesturestartEvent=ie;exports.getAttribute=U;exports.getAttributeNS=Fn;exports.getBoundingClientRect=h;exports.getCustomElements=Wo;exports.getDocument=d;exports.getDocumentBody=yo;exports.getDocumentElement=w;exports.getDocumentHead=ho;exports.getElementAnimationDelay=tt;exports.getElementAnimationDuration=nt;exports.getElementById=Uo;exports.getElementStyle=m;exports.getElementTransitionDelay=ot;exports.getElementTransitionDuration=st;exports.getElementsByClassName=Ro;exports.getElementsByTagName=ht;exports.getInstance=Zn;exports.getNodeName=ct;exports.getNodeScroll=wo;exports.getOffsetParent=So;exports.getParentNode=k;exports.getRectRelativeToOffsetParent=Co;exports.getUID=ft;exports.getWindow=lt;exports.hasAttribute=Xe;exports.hasAttributeNS=Hn;exports.hasClass=Qn;exports.hasFocusTrap=it;exports.isApple=Dn;exports.isArray=gt;exports.isCanvas=No;exports.isCustomElement=bt;exports.isDocument=j;exports.isElement=c;exports.isElementInScrollRange=To;exports.isElementInViewport=Do;exports.isElementsArray=Mo;exports.isFirefox=Mn;exports.isFunction=Lo;exports.isHTMLCollection=Oo;exports.isHTMLElement=g;exports.isHTMLImageElement=Io;exports.isJSON=xo;exports.isMap=L;exports.isMedia=Po;exports.isMobile=Tn;exports.isNode=u;exports.isNodeList=Fo;exports.isNumber=rt;exports.isObject=p;exports.isRTL=Ho;exports.isSVGElement=Bo;exports.isScaledElement=Et;exports.isShadowRoot=ut;exports.isString=S;exports.isTableElement=dt;exports.isWeakMap=zo;exports.isWebKit=Ze;exports.isWindow=R;exports.kebabCase=oo;exports.keyAlt=_t;exports.keyArrowDown=$t;exports.keyArrowLeft=Yt;exports.keyArrowRight=en;exports.keyArrowUp=Xt;exports.keyBackspace=tn;exports.keyCapsLock=nn;exports.keyControl=on;exports.keyDelete=sn;exports.keyEnter=rn;exports.keyEscape=cn;exports.keyInsert=un;exports.keyMeta=ln;exports.keyNumpadEnter=an;exports.keyPause=dn;exports.keyScrollLock=mn;exports.keyShift=pn;exports.keySpace=vn;exports.keyTab=En;exports.keyboardEventKeys=Zt;exports.keydownEvent=ce;exports.keypressEvent=ue;exports.keyupEvent=le;exports.loadEvent=de;exports.loadstartEvent=jt;exports.matches=mt;exports.mouseClickEvents=Kt;exports.mouseHoverEvents=qt;exports.mouseSwipeEvents=Qt;exports.mouseclickEvent=me;exports.mousedblclickEvent=pe;exports.mousedownEvent=ve;exports.mouseenterEvent=ge;exports.mousehoverEvent=fe;exports.mouseinEvent=ye;exports.mouseleaveEvent=be;exports.mousemoveEvent=Ae;exports.mouseoutEvent=he;exports.mouseoverEvent=we;exports.mouseupEvent=Ee;exports.mousewheelEvent=ke;exports.moveEvent=Se;exports.nativeEvents=Ft;exports.noop=_e;exports.normalizeOptions=so;exports.normalizeValue=x;exports.off=W;exports.offsetHeight=yn;exports.offsetWidth=hn;exports.on=V;exports.one=$e;exports.orientationchangeEvent=Ce;exports.passiveHandler=lo;exports.pointercancelEvent=Ne;exports.pointerdownEvent=Te;exports.pointerleaveEvent=De;exports.pointermoveEvent=Me;exports.pointerupEvent=Le;exports.querySelector=Vo;exports.querySelectorAll=at;exports.readystatechangeEvent=Oe;exports.reflow=mo;exports.removeAttribute=Wn;exports.removeAttributeNS=Un;exports.removeClass=jn;exports.removeEventListener=gn;exports.resetEvent=Ie;exports.resizeEvent=xe;exports.scrollEvent=He;exports.scrollHeight=wn;exports.scrollWidth=An;exports.selectEvent=ze;exports.selectendEvent=Pe;exports.selectstartEvent=Fe;exports.setAttribute=Bn;exports.setAttributeNS=Vn;exports.setElementStyle=po;exports.submitEvent=Be;exports.support3DTransform=Ln;exports.supportAnimation=zn;exports.supportPassive=On;exports.supportTouch=xn;exports.supportTransform=In;exports.supportTransition=Pn;exports.tabindex=kn;exports.toLowerCase=Eo;exports.toUpperCase=fo;exports.toggleFocusTrap=bo;exports.touchEvents=Gt;exports.touchcancelEvent=Ue;exports.touchendEvent=Re;exports.touchmoveEvent=We;exports.touchstartEvent=Ve;exports.transitionDelay=Je;exports.transitionDuration=Ge;exports.transitionEndEvent=D;exports.transitionProperty=B;exports.unloadEvent=je;exports.userAgent=Nn;exports.userAgentData=Sn;exports.version=wt;
2
2
  //# sourceMappingURL=shorty.cjs.map
package/dist/shorty.js CHANGED
@@ -1,2 +1,2 @@
1
- var SHORTY=function(t){"use strict";const kt="2.0.8",St="aria-checked",Tt="aria-description",Ct="aria-describedby",Nt="aria-expanded",Dt="aria-haspopup",G="aria-hidden",Mt="aria-label",Lt="aria-labelledby",Ot="aria-modal",It="aria-pressed",zt="aria-selected",Pt="aria-valuemin",Ft="aria-valuemax",Ht="aria-valuenow",Bt="aria-valuetext",J="abort",Y="beforeunload",Z="blur",_="change",$="contextmenu",z="DOMContentLoaded",X="DOMMouseScroll",x="error",ee="focus",te="focusin",ne="focusout",oe="gesturechange",ae="gestureend",se="gesturestart",ie="keydown",ce="keypress",re="keyup",ue="load",le="click",de="dblclick",me="mousedown",ve="mouseup",Ee="hover",fe="mouseenter",ge="mouseleave",be="mousein",ye="mouseout",he="mouseover",we="mousemove",Ae="mousewheel",ke="move",Se="orientationchange",Te="pointercancel",Ce="pointerdown",Ne="pointerleave",De="pointermove",Me="pointerup",Le="readystatechange",Oe="reset",Ie="resize",ze="select",Pe="selectend",Fe="selectstart",He="scroll",Be="submit",Ve="touchstart",pe="touchmove",We="touchcancel",Re="touchend",Ue="unload",Vt={DOMContentLoaded:z,DOMMouseScroll:X,abort:J,beforeunload:Y,blur:Z,change:_,click:le,contextmenu:$,dblclick:de,error:x,focus:ee,focusin:te,focusout:ne,gesturechange:oe,gestureend:ae,gesturestart:se,hover:Ee,keydown:ie,keypress:ce,keyup:re,load:ue,mousedown:me,mousemove:we,mousein:be,mouseout:ye,mouseenter:fe,mouseleave:ge,mouseover:he,mouseup:ve,mousewheel:Ae,move:ke,orientationchange:Se,pointercancel:Te,pointerdown:Ce,pointerleave:Ne,pointermove:De,pointerup:Me,readystatechange:Le,reset:Oe,resize:Ie,scroll:He,select:ze,selectend:Pe,selectstart:Fe,submit:Be,touchcancel:We,touchend:Re,touchmove:pe,touchstart:Ve,unload:Ue},pt="drag",Wt="dragstart",Rt="dragenter",Ut="dragleave",jt="dragover",Qt="dragend",Kt="loadstart",qt={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Gt={down:"mousedown",up:"mouseup"},Jt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Yt={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Zt={in:"focusin",out:"focusout"},je='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',_t={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"},$t="Alt",Xt="ArrowDown",xt="ArrowUp",en="ArrowLeft",tn="ArrowRight",nn="Backspace",on="CapsLock",an="Control",sn="Delete",cn="Enter",rn="NumpadEnter",un="Escape",ln="Insert",dn="Meta",mn="Pause",vn="ScrollLock",En="Shift",fn="Space",gn="Tab",Qe="animationDuration",Ke="animationDelay",P="animationName",D="animationend",qe="transitionDuration",Ge="transitionDelay",M="transitionend",F="transitionProperty",bn="addEventListener",yn="removeEventListener",hn={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)"},wn="offsetHeight",An="offsetWidth",kn="scrollHeight",Sn="scrollWidth",Tn="tabindex",Cn=navigator.userAgentData,{userAgent:Nn}=navigator,Dn=Nn,Mn=()=>{const e=/iPhone|iPad|iPod|Android/i;return navigator?.userAgentData?.brands.some(n=>e.test(n.brand))||e.test(navigator?.userAgent)||!1},Ln=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(n=>e.test(n.brand))||e.test(navigator?.userAgent)||!1},On=()=>navigator?.userAgent?.includes("Firefox")||!1,Je=()=>typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none"),In=()=>["webkitPerspective","perspective"].some(e=>e in document.head.style),Ye=()=>{},H=(e,n,o,a)=>{const s=a||!1;e.addEventListener(n,o,s)},B=(e,n,o,a)=>{const s=a||!1;e.removeEventListener(n,o,s)},Ze=(e,n,o,a)=>{const s=i=>{(i.target===e||i.currentTarget===e)&&(o.apply(e,[i]),B(e,n,s,a))};H(e,n,s,a)},zn=()=>{let e=!1;try{const n=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});Ze(document,z,Ye,n)}catch{}return e},Pn=()=>["webkitTransform","transform"].some(e=>e in document.head.style),Fn=()=>"ontouchstart"in window||"msMaxTouchPoints"in navigator,Hn=()=>["webkitAnimation","animation"].some(e=>e in document.head.style),Bn=()=>["webkitTransition","transition"].some(e=>e in document.head.style),V=(e,n)=>e.getAttribute(n),Vn=(e,n,o)=>n.getAttributeNS(e,o),_e=(e,n)=>e.hasAttribute(n),pn=(e,n,o)=>n.hasAttributeNS(e,o),Wn=(e,n,o)=>e.setAttribute(n,o),Rn=(e,n,o,a)=>n.setAttributeNS(e,o,a),Un=(e,n)=>e.removeAttribute(n),jn=(e,n,o)=>n.removeAttributeNS(e,o),Qn=(e,...n)=>{e.classList.add(...n)},Kn=(e,...n)=>{e.classList.remove(...n)},qn=(e,n)=>e.classList.contains(n),{body:Gn}=document,{documentElement:Jn}=document,{head:Yn}=document,Zn=e=>Array.from(e),E=e=>e!=null&&typeof e=="object"||!1,u=e=>E(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(n=>e.nodeType===n)||!1,l=e=>u(e)&&e.nodeType===1||!1,h=new Map,L={data:h,set:(e,n,o)=>{if(!l(e))return;h.has(n)||h.set(n,new Map),h.get(n).set(e,o)},getAllFor:e=>h.get(e)||null,get:(e,n)=>{if(!l(e)||!n)return null;const o=L.getAllFor(n);return e&&o&&o.get(e)||null},remove:(e,n)=>{const o=L.getAllFor(n);!o||!l(e)||(o.delete(e),o.size===0&&h.delete(n))}},_n=(e,n)=>L.get(e,n),$n=e=>e?.charAt(0).toUpperCase()+e?.slice(1),p=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(n,o)=>o===0?n.toLowerCase():n.toUpperCase()).replace(/\s+/g,""),S=e=>typeof e=="string"||!1,W=e=>E(e)&&e.constructor.name==="Window"||!1,R=e=>u(e)&&e.nodeType===9||!1,m=e=>R(e)?e:u(e)?e.ownerDocument:W(e)?e.document:globalThis.document,T=(e,...n)=>Object.assign(e,...n),$e=e=>{if(!e)return;if(S(e))return m().createElement(e);const{tagName:n}=e,o=$e(n);if(!o)return;const a={...e};return delete a.tagName,T(o,a)},Xe=(e,n)=>{if(!e||!n)return;if(S(n))return m().createElementNS(e,n);const{tagName:o}=n,a=Xe(e,o);if(!a)return;const s={...n};return delete s.tagName,T(a,s)},U=(e,n)=>e.dispatchEvent(n),Xn=(e,n,o)=>o.indexOf(e)===n,v=(e,n,o)=>{const a=getComputedStyle(e,o),s=n.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return a.getPropertyValue(s)},xe=e=>{const n=v(e,P),o=v(e,Ke),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},et=e=>{const n=v(e,P),o=v(e,Qe),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},xn=(e,n)=>{let o=0;const a=new Event(D),s=et(e),i=xe(e);if(s){const r=d=>{d.target===e&&(n.apply(e,[d]),e.removeEventListener(D,r),o=1)};e.addEventListener(D,r),setTimeout(()=>{o||U(e,a)},s+i+17)}else n.apply(e,[a])},tt=e=>{const n=v(e,F),o=v(e,Ge),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},nt=e=>{const n=v(e,F),o=v(e,qe),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},eo=(e,n)=>{let o=0;const a=new Event(M),s=nt(e),i=tt(e);if(s){const r=d=>{d.target===e&&(n.apply(e,[d]),e.removeEventListener(M,r),o=1)};e.addEventListener(M,r),setTimeout(()=>{o||U(e,a)},s+i+17)}else n.apply(e,[a])},to=e=>Float32Array.from(Array.from(e)),no=e=>Float64Array.from(Array.from(e)),oo=(e,n)=>e.focus(n),ao=e=>e?.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),j=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,C=e=>Object.entries(e),so=(e,n,o,a)=>{if(!l(e))return n;const s={...o},i={...e.dataset},r={...n},d={},b="title";return C(i).forEach(([c,y])=>{const I=a&&typeof c=="string"&&c.includes(a)?p(c.replace(a,"")):p(c);d[I]=j(y)}),C(s).forEach(([c,y])=>{s[c]=j(y)}),C(n).forEach(([c,y])=>{c in s?r[c]=s[c]:c in d?r[c]=d[c]:r[c]=c===b?V(e,b):y}),r},io=(e,n)=>E(e)&&(Object.hasOwn(e,n)||n in e),co=e=>Object.keys(e),ro=e=>Object.values(e),uo=e=>Object.fromEntries(e),lo=(e,n)=>{const o=new CustomEvent(e,{cancelable:!0,bubbles:!0});return E(n)&&T(o,n),o},mo={passive:!0},vo=e=>e.offsetHeight,Eo=(e,n)=>{C(n).forEach(([o,a])=>{if(a&&S(o)&&o.includes("--"))e.style.setProperty(o,a);else{const s={};s[o]=a,T(e.style,s)}})},O=e=>E(e)&&e.constructor.name==="Map"||!1,ot=e=>typeof e=="number"||!1,f=new Map,fo={set:(e,n,o,a)=>{l(e)&&(a&&a.length?(f.has(e)||f.set(e,new Map),f.get(e).set(a,setTimeout(n,o))):f.set(e,setTimeout(n,o)))},get:(e,n)=>{if(!l(e))return null;const o=f.get(e);return n&&o&&O(o)?o.get(n)||null:ot(o)?o:null},clear:(e,n)=>{if(!l(e))return;const o=f.get(e);n&&n.length&&O(o)?(clearTimeout(o.get(n)),o.delete(n),o.size===0&&f.delete(e)):(clearTimeout(o),f.delete(e))}},go=e=>e.toLowerCase(),bo=e=>e.toUpperCase(),at=(e,n)=>(u(n)?n:m()).querySelectorAll(e),Q=new Map;function yo(e){const{shiftKey:n,code:o}=e,a=m(this),s=[...at(je,this)].filter(d=>!_e(d,"disabled")&&!V(d,G));if(!s.length)return;const i=s[0],r=s[s.length-1];o==="Tab"&&(n&&a.activeElement===i?(r.focus(),e.preventDefault()):!n&&a.activeElement===r&&(i.focus(),e.preventDefault()))}const st=e=>Q.has(e)===!0,ho=e=>{const n=st(e);(n?B:H)(e,"keydown",yo),n?Q.delete(e):Q.set(e,!0)},g=e=>l(e)&&"offsetWidth"in e||!1,w=(e,n)=>{const{width:o,height:a,top:s,right:i,bottom:r,left:d}=e.getBoundingClientRect();let b=1,c=1;if(n&&g(e)){const{offsetWidth:y,offsetHeight:I}=e;b=y>0?Math.round(o)/y:1,c=I>0?Math.round(a)/I:1}return{width:o/b,height:a/c,top:s/c,right:i/b,bottom:r/c,left:d/b,x:d/b,y:s/c}},wo=e=>m(e).body,A=e=>m(e).documentElement,Ao=e=>m(e).head,it=e=>u(e)?(e.nodeName||"").toLowerCase():"#document",ko=e=>{const n=W(e),o=n?e.scrollX:e.scrollLeft,a=n?e.scrollY:e.scrollTop;return{x:o,y:a}},ct=e=>u(e)&&e.constructor.name==="ShadowRoot"||!1,N=e=>e.nodeName==="HTML"?e:l(e)&&e.assignedSlot||u(e)&&e.parentNode||ct(e)&&e.host||A(e),rt=e=>e?R(e)?e.defaultView:u(e)?e?.ownerDocument?.defaultView:e:window,ut=e=>u(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,lt=(e,n)=>e.matches(n),K=e=>v(e,"position")==="static",So=e=>v(e,"position")==="fixed",dt=e=>[":popover-open",":modal"].some(n=>{try{return lt(e,n)}catch{return!1}}),mt=e=>{const n=Je(),o=l(e)?getComputedStyle(e):e;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!n&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!n&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(o.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(o.contain||"").includes(a))},To=e=>{let n=N(e);for(;l(n)&&!q(n);){if(mt(n))return n;if(dt(n))return null;n=N(n)}return null},q=e=>["html","body","#document"].includes(it(e)),vt=e=>{if(!g(e)||So(e))return null;let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n},Co=e=>{const n=rt(e);if(!u(e)||dt(e))return n;if(!g(e)){let a=N(e);for(;a&&!q(a);){if(l(a)&&!K(a))return a;a=N(a)}return n}let o=vt(e);for(;o&&ut(o)&&K(o);)o=vt(o);return o&&q(o)&&K(o)&&!mt(o)?n:o||To(e)||n},Et=e=>{if(!g(e))return!1;const{width:n,height:o}=w(e),{offsetWidth:a,offsetHeight:s}=e;return Math.round(n)!==a||Math.round(o)!==s},No=(e,n,o)=>{const a=g(n),s=w(e,a&&Et(n)),i={x:0,y:0};if(a){const r=w(n,!0);i.x=r.x+n.clientLeft,i.y=r.y+n.clientTop}return{x:s.left+o.x-i.x,y:s.top+o.y-i.y,width:s.width,height:s.height}};let ft=0,gt=0;const k=new Map,bt=(e,n)=>{let o=n?ft:gt;if(n){const a=bt(e),s=k.get(a)||new Map;k.has(a)||k.set(a,s),O(s)&&!s.has(n)?(s.set(n,o),ft+=1):o=s.get(n)}else{const a=e.id||e;k.has(a)?o=k.get(a):(k.set(a,o),gt+=1)}return o},yt=e=>Array.isArray(e)||!1,Do=e=>u(e)&&e.nodeName==="CANVAS"||!1,ht=e=>g(e)&&!!e.shadowRoot||!1,Mo=e=>{if(!u(e))return!1;const{top:n,bottom:o}=w(e),{clientHeight:a}=A(e);return n<=a&&o>=0},Lo=e=>{if(!l(e))return!1;const{clientWidth:n,clientHeight:o}=A(e),{top:a,left:s,bottom:i,right:r}=w(e,!0);return a>=0&&s>=0&&i<=o&&r<=n},Oo=e=>yt(e)&&e.every(l)||!1,Io=e=>typeof e=="function"||!1,zo=e=>E(e)&&e.constructor.name==="HTMLCollection"||!1,Po=e=>g(e)&&e.tagName==="IMG"||!1,Fo=e=>{if(!S(e))return!1;try{JSON.parse(e)}catch{return!1}return!0},Ho=e=>E(e)&&e.constructor.name==="WeakMap"||!1,Bo=e=>u(e)&&["SVG","Image","Video","Canvas"].some(n=>e.constructor.name.includes(n))||!1,Vo=e=>E(e)&&e.constructor.name==="NodeList"||!1,po=e=>A(e).dir==="rtl",Wo=e=>u(e)&&e.constructor.name.includes("SVG")||!1,wt=(e,n)=>!e||!n?null:e.closest(n)||wt(e.getRootNode().host,n)||null,Ro=(e,n)=>l(e)?e:(l(n)?n:m()).querySelector(e),At=(e,n)=>(u(n)?n:m()).getElementsByTagName(e),Uo=e=>[...At("*",e)].filter(ht),jo=(e,n)=>m(n).getElementById(e),Qo=(e,n)=>(n&&u(n)?n:m()).getElementsByClassName(e);return t.ArrayFrom=Zn,t.DOMContentLoadedEvent=z,t.DOMMouseScrollEvent=X,t.Data=L,t.Float32ArrayFrom=to,t.Float64ArrayFrom=no,t.ObjectAssign=T,t.ObjectEntries=C,t.ObjectFromEntries=uo,t.ObjectHasOwn=io,t.ObjectKeys=co,t.ObjectValues=ro,t.Timer=fo,t.abortEvent=J,t.addClass=Qn,t.addEventListener=bn,t.animationDelay=Ke,t.animationDuration=Qe,t.animationEndEvent=D,t.animationName=P,t.ariaChecked=St,t.ariaDescribedBy=Ct,t.ariaDescription=Tt,t.ariaExpanded=Nt,t.ariaHasPopup=Dt,t.ariaHidden=G,t.ariaLabel=Mt,t.ariaLabelledBy=Lt,t.ariaModal=Ot,t.ariaPressed=It,t.ariaSelected=zt,t.ariaValueMax=Ft,t.ariaValueMin=Pt,t.ariaValueNow=Ht,t.ariaValueText=Bt,t.beforeunloadEvent=Y,t.bezierEasings=hn,t.blurEvent=Z,t.camelCase=p,t.capitalize=$n,t.changeEvent=_,t.closest=wt,t.contextmenuEvent=$,t.createCustomEvent=lo,t.createElement=$e,t.createElementNS=Xe,t.dispatchEvent=U,t.distinct=Xn,t.documentBody=Gn,t.documentElement=Jn,t.documentHead=Yn,t.dragEvent=pt,t.dragendEvent=Qt,t.dragenterEvent=Rt,t.dragleaveEvent=Ut,t.dragoverEvent=jt,t.dragstartEvent=Wt,t.emulateAnimationEnd=xn,t.emulateTransitionEnd=eo,t.errorEvent=x,t.focus=oo,t.focusEvent=ee,t.focusEvents=Zt,t.focusableSelector=je,t.focusinEvent=te,t.focusoutEvent=ne,t.gesturechangeEvent=oe,t.gestureendEvent=ae,t.gesturestartEvent=se,t.getAttribute=V,t.getAttributeNS=Vn,t.getBoundingClientRect=w,t.getCustomElements=Uo,t.getDocument=m,t.getDocumentBody=wo,t.getDocumentElement=A,t.getDocumentHead=Ao,t.getElementAnimationDelay=xe,t.getElementAnimationDuration=et,t.getElementById=jo,t.getElementStyle=v,t.getElementTransitionDelay=tt,t.getElementTransitionDuration=nt,t.getElementsByClassName=Qo,t.getElementsByTagName=At,t.getInstance=_n,t.getNodeName=it,t.getNodeScroll=ko,t.getOffsetParent=Co,t.getParentNode=N,t.getRectRelativeToOffsetParent=No,t.getUID=bt,t.getWindow=rt,t.hasAttribute=_e,t.hasAttributeNS=pn,t.hasClass=qn,t.hasFocusTrap=st,t.isApple=Ln,t.isArray=yt,t.isCanvas=Do,t.isCustomElement=ht,t.isDocument=R,t.isElement=l,t.isElementInScrollRange=Mo,t.isElementInViewport=Lo,t.isElementsArray=Oo,t.isFirefox=On,t.isFunction=Io,t.isHTMLCollection=zo,t.isHTMLElement=g,t.isHTMLImageElement=Po,t.isJSON=Fo,t.isMap=O,t.isMedia=Bo,t.isMobile=Mn,t.isNode=u,t.isNodeList=Vo,t.isNumber=ot,t.isObject=E,t.isRTL=po,t.isSVGElement=Wo,t.isScaledElement=Et,t.isShadowRoot=ct,t.isString=S,t.isTableElement=ut,t.isWeakMap=Ho,t.isWebKit=Je,t.isWindow=W,t.kebabCase=ao,t.keyAlt=$t,t.keyArrowDown=Xt,t.keyArrowLeft=en,t.keyArrowRight=tn,t.keyArrowUp=xt,t.keyBackspace=nn,t.keyCapsLock=on,t.keyControl=an,t.keyDelete=sn,t.keyEnter=cn,t.keyEscape=un,t.keyInsert=ln,t.keyMeta=dn,t.keyNumpadEnter=rn,t.keyPause=mn,t.keyScrollLock=vn,t.keyShift=En,t.keySpace=fn,t.keyTab=gn,t.keyboardEventKeys=_t,t.keydownEvent=ie,t.keypressEvent=ce,t.keyupEvent=re,t.loadEvent=ue,t.loadstartEvent=Kt,t.matches=lt,t.mouseClickEvents=Gt,t.mouseHoverEvents=Jt,t.mouseSwipeEvents=qt,t.mouseclickEvent=le,t.mousedblclickEvent=de,t.mousedownEvent=me,t.mouseenterEvent=fe,t.mousehoverEvent=Ee,t.mouseinEvent=be,t.mouseleaveEvent=ge,t.mousemoveEvent=we,t.mouseoutEvent=ye,t.mouseoverEvent=he,t.mouseupEvent=ve,t.mousewheelEvent=Ae,t.moveEvent=ke,t.nativeEvents=Vt,t.noop=Ye,t.normalizeOptions=so,t.normalizeValue=j,t.off=B,t.offsetHeight=wn,t.offsetWidth=An,t.on=H,t.one=Ze,t.orientationchangeEvent=Se,t.passiveHandler=mo,t.pointercancelEvent=Te,t.pointerdownEvent=Ce,t.pointerleaveEvent=Ne,t.pointermoveEvent=De,t.pointerupEvent=Me,t.querySelector=Ro,t.querySelectorAll=at,t.readystatechangeEvent=Le,t.reflow=vo,t.removeAttribute=Un,t.removeAttributeNS=jn,t.removeClass=Kn,t.removeEventListener=yn,t.resetEvent=Oe,t.resizeEvent=Ie,t.scrollEvent=He,t.scrollHeight=kn,t.scrollWidth=Sn,t.selectEvent=ze,t.selectendEvent=Pe,t.selectstartEvent=Fe,t.setAttribute=Wn,t.setAttributeNS=Rn,t.setElementStyle=Eo,t.submitEvent=Be,t.support3DTransform=In,t.supportAnimation=Hn,t.supportPassive=zn,t.supportTouch=Fn,t.supportTransform=Pn,t.supportTransition=Bn,t.tabindex=Tn,t.toLowerCase=go,t.toUpperCase=bo,t.toggleFocusTrap=ho,t.touchEvents=Yt,t.touchcancelEvent=We,t.touchendEvent=Re,t.touchmoveEvent=pe,t.touchstartEvent=Ve,t.transitionDelay=Ge,t.transitionDuration=qe,t.transitionEndEvent=M,t.transitionProperty=F,t.unloadEvent=Ue,t.userAgent=Dn,t.userAgentData=Cn,t.version=kt,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
1
+ var SHORTY=function(t){"use strict";const kt="2.0.9",St="aria-checked",Tt="aria-description",Ct="aria-describedby",Nt="aria-expanded",Dt="aria-haspopup",G="aria-hidden",Mt="aria-label",Lt="aria-labelledby",Ot="aria-modal",It="aria-pressed",zt="aria-selected",Pt="aria-valuemin",Ft="aria-valuemax",Ht="aria-valuenow",Bt="aria-valuetext",J="abort",Y="beforeunload",Z="blur",_="change",$="contextmenu",z="DOMContentLoaded",X="DOMMouseScroll",x="error",ee="focus",te="focusin",ne="focusout",oe="gesturechange",ae="gestureend",se="gesturestart",ie="keydown",ce="keypress",re="keyup",ue="load",le="click",de="dblclick",me="mousedown",ve="mouseup",Ee="hover",fe="mouseenter",ge="mouseleave",be="mousein",ye="mouseout",he="mouseover",we="mousemove",Ae="mousewheel",ke="move",Se="orientationchange",Te="pointercancel",Ce="pointerdown",Ne="pointerleave",De="pointermove",Me="pointerup",Le="readystatechange",Oe="reset",Ie="resize",ze="select",Pe="selectend",Fe="selectstart",He="scroll",Be="submit",Ve="touchstart",pe="touchmove",We="touchcancel",Re="touchend",Ue="unload",Vt={DOMContentLoaded:z,DOMMouseScroll:X,abort:J,beforeunload:Y,blur:Z,change:_,click:le,contextmenu:$,dblclick:de,error:x,focus:ee,focusin:te,focusout:ne,gesturechange:oe,gestureend:ae,gesturestart:se,hover:Ee,keydown:ie,keypress:ce,keyup:re,load:ue,mousedown:me,mousemove:we,mousein:be,mouseout:ye,mouseenter:fe,mouseleave:ge,mouseover:he,mouseup:ve,mousewheel:Ae,move:ke,orientationchange:Se,pointercancel:Te,pointerdown:Ce,pointerleave:Ne,pointermove:De,pointerup:Me,readystatechange:Le,reset:Oe,resize:Ie,scroll:He,select:ze,selectend:Pe,selectstart:Fe,submit:Be,touchcancel:We,touchend:Re,touchmove:pe,touchstart:Ve,unload:Ue},pt="drag",Wt="dragstart",Rt="dragenter",Ut="dragleave",jt="dragover",Qt="dragend",Kt="loadstart",qt={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"},Gt={down:"mousedown",up:"mouseup"},Jt="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],Yt={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Zt={in:"focusin",out:"focusout"},je='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',_t={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"},$t="Alt",Xt="ArrowDown",xt="ArrowUp",en="ArrowLeft",tn="ArrowRight",nn="Backspace",on="CapsLock",an="Control",sn="Delete",cn="Enter",rn="NumpadEnter",un="Escape",ln="Insert",dn="Meta",mn="Pause",vn="ScrollLock",En="Shift",fn="Space",gn="Tab",Qe="animationDuration",Ke="animationDelay",P="animationName",D="animationend",qe="transitionDuration",Ge="transitionDelay",M="transitionend",F="transitionProperty",bn="addEventListener",yn="removeEventListener",hn={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)"},wn="offsetHeight",An="offsetWidth",kn="scrollHeight",Sn="scrollWidth",Tn="tabindex",Cn=navigator.userAgentData,{userAgent:Nn}=navigator,Dn=Nn,Mn=()=>{const e=/iPhone|iPad|iPod|Android/i;return navigator?.userAgentData?.brands.some(n=>e.test(n.brand))||e.test(navigator?.userAgent)||!1},Ln=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(n=>e.test(n.brand))||e.test(navigator?.userAgent)||!1},On=()=>navigator?.userAgent?.includes("Firefox")||!1,Je=()=>typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none"),In=()=>["webkitPerspective","perspective"].some(e=>e in document.head.style),Ye=()=>{},H=(e,n,o,a)=>{const s=a||!1;e.addEventListener(n,o,s)},B=(e,n,o,a)=>{const s=a||!1;e.removeEventListener(n,o,s)},Ze=(e,n,o,a)=>{const s=i=>{(i.target===e||i.currentTarget===e)&&(o.apply(e,[i]),B(e,n,s,a))};H(e,n,s,a)},zn=()=>{let e=!1;try{const n=Object.defineProperty({},"passive",{get:()=>(e=!0,e)});Ze(document,z,Ye,n)}catch{}return e},Pn=()=>["webkitTransform","transform"].some(e=>e in document.head.style),Fn=()=>"ontouchstart"in window||"msMaxTouchPoints"in navigator,Hn=()=>["webkitAnimation","animation"].some(e=>e in document.head.style),Bn=()=>["webkitTransition","transition"].some(e=>e in document.head.style),V=(e,n)=>e.getAttribute(n),Vn=(e,n,o)=>n.getAttributeNS(e,o),_e=(e,n)=>e.hasAttribute(n),pn=(e,n,o)=>n.hasAttributeNS(e,o),Wn=(e,n,o)=>e.setAttribute(n,o),Rn=(e,n,o,a)=>n.setAttributeNS(e,o,a),Un=(e,n)=>e.removeAttribute(n),jn=(e,n,o)=>n.removeAttributeNS(e,o),Qn=(e,...n)=>{e.classList.add(...n)},Kn=(e,...n)=>{e.classList.remove(...n)},qn=(e,n)=>e.classList.contains(n),{body:Gn}=document,{documentElement:Jn}=document,{head:Yn}=document,Zn=e=>Array.from(e),E=e=>e!=null&&typeof e=="object"||!1,u=e=>E(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(n=>e.nodeType===n)||!1,l=e=>u(e)&&e.nodeType===1||!1,h=new Map,L={data:h,set:(e,n,o)=>{if(!l(e))return;h.has(n)||h.set(n,new Map),h.get(n).set(e,o)},getAllFor:e=>h.get(e)||null,get:(e,n)=>{if(!l(e)||!n)return null;const o=L.getAllFor(n);return e&&o&&o.get(e)||null},remove:(e,n)=>{const o=L.getAllFor(n);!o||!l(e)||(o.delete(e),o.size===0&&h.delete(n))}},_n=(e,n)=>L.get(e,n),$n=e=>e?.charAt(0).toUpperCase()+e?.slice(1),p=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(n,o)=>o===0?n.toLowerCase():n.toUpperCase()).replace(/\s+/g,""),S=e=>typeof e=="string"||!1,W=e=>E(e)&&e.constructor.name==="Window"||!1,R=e=>u(e)&&e.nodeType===9||!1,m=e=>R(e)?e:u(e)?e.ownerDocument:W(e)?e.document:globalThis.document,T=(e,...n)=>Object.assign(e,...n),$e=e=>{if(!e)return;if(S(e))return m().createElement(e);const{tagName:n}=e,o=$e(n);if(!o)return;const a={...e};return delete a.tagName,T(o,a)},Xe=(e,n)=>{if(!e||!n)return;if(S(n))return m().createElementNS(e,n);const{tagName:o}=n,a=Xe(e,o);if(!a)return;const s={...n};return delete s.tagName,T(a,s)},U=(e,n)=>e.dispatchEvent(n),Xn=(e,n,o)=>o.indexOf(e)===n,v=(e,n,o)=>{const a=getComputedStyle(e,o),s=n.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return a.getPropertyValue(s)},xe=e=>{const n=v(e,P),o=v(e,Ke),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},et=e=>{const n=v(e,P),o=v(e,Qe),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},xn=(e,n)=>{let o=0;const a=new Event(D),s=et(e),i=xe(e);if(s){const r=d=>{d.target===e&&(n.apply(e,[d]),e.removeEventListener(D,r),o=1)};e.addEventListener(D,r),setTimeout(()=>{o||U(e,a)},s+i+17)}else n.apply(e,[a])},tt=e=>{const n=v(e,F),o=v(e,Ge),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},nt=e=>{const n=v(e,F),o=v(e,qe),a=o.includes("ms")?1:1e3,s=n&&n!=="none"?parseFloat(o)*a:0;return Number.isNaN(s)?0:s},eo=(e,n)=>{let o=0;const a=new Event(M),s=nt(e),i=tt(e);if(s){const r=d=>{d.target===e&&(n.apply(e,[d]),e.removeEventListener(M,r),o=1)};e.addEventListener(M,r),setTimeout(()=>{o||U(e,a)},s+i+17)}else n.apply(e,[a])},to=e=>Float32Array.from(Array.from(e)),no=e=>Float64Array.from(Array.from(e)),oo=(e,n)=>e.focus(n),ao=e=>e?.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase(),j=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,C=e=>Object.entries(e),so=(e,n,o,a)=>{if(!l(e))return n;const s={...o},i={...e.dataset},r={...n},d={},b="title";return C(i).forEach(([c,y])=>{const I=a&&typeof c=="string"&&c.includes(a)?p(c.replace(a,"")):p(c);d[I]=j(y)}),C(s).forEach(([c,y])=>{s[c]=j(y)}),C(n).forEach(([c,y])=>{c in s?r[c]=s[c]:c in d?r[c]=d[c]:r[c]=c===b?V(e,b):y}),r},io=(e,n)=>E(e)&&(Object.hasOwn(e,n)||n in e),co=e=>Object.keys(e),ro=e=>Object.values(e),uo=e=>Object.fromEntries(e),lo=(e,n)=>{const o=new CustomEvent(e,{cancelable:!0,bubbles:!0});return E(n)&&T(o,n),o},mo={passive:!0},vo=e=>e.offsetHeight,Eo=(e,n)=>{C(n).forEach(([o,a])=>{if(a&&S(o)&&o.includes("--"))e.style.setProperty(o,a);else{const s={};s[o]=a,T(e.style,s)}})},O=e=>E(e)&&e.constructor.name==="Map"||!1,ot=e=>typeof e=="number"||!1,f=new Map,fo={set:(e,n,o,a)=>{l(e)&&(a&&a.length?(f.has(e)||f.set(e,new Map),f.get(e).set(a,setTimeout(n,o))):f.set(e,setTimeout(n,o)))},get:(e,n)=>{if(!l(e))return null;const o=f.get(e);return n&&o&&O(o)?o.get(n)||null:ot(o)?o:null},clear:(e,n)=>{if(!l(e))return;const o=f.get(e);n&&n.length&&O(o)?(clearTimeout(o.get(n)),o.delete(n),o.size===0&&f.delete(e)):(clearTimeout(o),f.delete(e))}},go=e=>e.toLowerCase(),bo=e=>e.toUpperCase(),at=(e,n)=>(u(n)?n:m()).querySelectorAll(e),Q=new Map;function yo(e){const{shiftKey:n,code:o}=e,a=m(this),s=[...at(je,this)].filter(d=>!_e(d,"disabled")&&!V(d,G));if(!s.length)return;const i=s[0],r=s[s.length-1];o==="Tab"&&(n&&a.activeElement===i?(r.focus(),e.preventDefault()):!n&&a.activeElement===r&&(i.focus(),e.preventDefault()))}const st=e=>Q.has(e)===!0,ho=e=>{const n=st(e);(n?B:H)(e,"keydown",yo),n?Q.delete(e):Q.set(e,!0)},g=e=>l(e)&&"offsetWidth"in e||!1,w=(e,n)=>{const{width:o,height:a,top:s,right:i,bottom:r,left:d}=e.getBoundingClientRect();let b=1,c=1;if(n&&g(e)){const{offsetWidth:y,offsetHeight:I}=e;b=y>0?Math.round(o)/y:1,c=I>0?Math.round(a)/I:1}return{width:o/b,height:a/c,top:s/c,right:i/b,bottom:r/c,left:d/b,x:d/b,y:s/c}},wo=e=>m(e).body,A=e=>m(e).documentElement,Ao=e=>m(e).head,it=e=>u(e)?(e.nodeName||"").toLowerCase():"#document",ko=e=>{const n=W(e),o=n?e.scrollX:e.scrollLeft,a=n?e.scrollY:e.scrollTop;return{x:o,y:a}},ct=e=>u(e)&&e.constructor.name==="ShadowRoot"||!1,N=e=>e.nodeName==="HTML"?e:l(e)&&e.assignedSlot||u(e)&&e.parentNode||ct(e)&&e.host||A(e),rt=e=>e?R(e)?e.defaultView:u(e)?e?.ownerDocument?.defaultView:e:window,ut=e=>u(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,lt=(e,n)=>e.matches(n),K=e=>v(e,"position")==="static",So=e=>v(e,"position")==="fixed",dt=e=>[":popover-open",":modal"].some(n=>{try{return lt(e,n)}catch{return!1}}),mt=e=>{const n=Je(),o=l(e)?getComputedStyle(e):e;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!n&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!n&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(o.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(o.contain||"").includes(a))},To=e=>{let n=N(e);for(;l(n)&&!q(n);){if(mt(n))return n;if(dt(n))return null;n=N(n)}return null},q=e=>["html","body","#document"].includes(it(e)),vt=e=>{if(!g(e)||So(e))return null;let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n},Co=e=>{const n=rt(e);if(!u(e)||dt(e))return n;if(!g(e)){let a=N(e);for(;a&&!q(a);){if(l(a)&&!K(a))return a;a=N(a)}return n}let o=vt(e);for(;o&&ut(o)&&K(o);)o=vt(o);return o&&q(o)&&K(o)&&!mt(o)?n:o||To(e)||n},Et=e=>{if(!g(e))return!1;const{width:n,height:o}=w(e),{offsetWidth:a,offsetHeight:s}=e;return Math.round(n)!==a||Math.round(o)!==s},No=(e,n,o)=>{const a=g(n),s=w(e,a&&Et(n)),i={x:0,y:0};if(a){const r=w(n,!0);i.x=r.x+n.clientLeft,i.y=r.y+n.clientTop}return{x:s.left+o.x-i.x,y:s.top+o.y-i.y,width:s.width,height:s.height}};let ft=0,gt=0;const k=new Map,bt=(e,n)=>{let o=n?ft:gt;if(n){const a=bt(e),s=k.get(a)||new Map;k.has(a)||k.set(a,s),O(s)&&!s.has(n)?(s.set(n,o),ft+=1):o=s.get(n)}else{const a=e.id||e;k.has(a)?o=k.get(a):(k.set(a,o),gt+=1)}return o},yt=e=>Array.isArray(e)||!1,Do=e=>u(e)&&e.nodeName==="CANVAS"||!1,ht=e=>g(e)&&!!e.shadowRoot||!1,Mo=e=>{if(!u(e))return!1;const{top:n,bottom:o}=w(e),{clientHeight:a}=A(e);return n<=a&&o>=0},Lo=e=>{if(!l(e))return!1;const{clientWidth:n,clientHeight:o}=A(e),{top:a,left:s,bottom:i,right:r}=w(e,!0);return a>=0&&s>=0&&i<=o&&r<=n},Oo=e=>yt(e)&&e.every(l)||!1,Io=e=>typeof e=="function"||!1,zo=e=>E(e)&&e.constructor.name==="HTMLCollection"||!1,Po=e=>g(e)&&e.tagName==="IMG"||!1,Fo=e=>{if(!S(e))return!1;try{JSON.parse(e)}catch{return!1}return!0},Ho=e=>E(e)&&e.constructor.name==="WeakMap"||!1,Bo=e=>u(e)&&["SVG","Image","Video","Canvas"].some(n=>e.constructor.name.includes(n))||!1,Vo=e=>E(e)&&e.constructor.name==="NodeList"||!1,po=e=>A(e).dir==="rtl",Wo=e=>u(e)&&e.constructor.name.includes("SVG")||!1,wt=(e,n)=>!e||!n?null:e.closest(n)||wt(e.getRootNode().host,n)||null,Ro=(e,n)=>l(e)?e:(l(n)?n:m()).querySelector(e),At=(e,n)=>(u(n)?n:m()).getElementsByTagName(e),Uo=e=>[...At("*",e)].filter(ht),jo=(e,n)=>m(n).getElementById(e),Qo=(e,n)=>(n&&u(n)?n:m()).getElementsByClassName(e);return t.ArrayFrom=Zn,t.DOMContentLoadedEvent=z,t.DOMMouseScrollEvent=X,t.Data=L,t.Float32ArrayFrom=to,t.Float64ArrayFrom=no,t.ObjectAssign=T,t.ObjectEntries=C,t.ObjectFromEntries=uo,t.ObjectHasOwn=io,t.ObjectKeys=co,t.ObjectValues=ro,t.Timer=fo,t.abortEvent=J,t.addClass=Qn,t.addEventListener=bn,t.animationDelay=Ke,t.animationDuration=Qe,t.animationEndEvent=D,t.animationName=P,t.ariaChecked=St,t.ariaDescribedBy=Ct,t.ariaDescription=Tt,t.ariaExpanded=Nt,t.ariaHasPopup=Dt,t.ariaHidden=G,t.ariaLabel=Mt,t.ariaLabelledBy=Lt,t.ariaModal=Ot,t.ariaPressed=It,t.ariaSelected=zt,t.ariaValueMax=Ft,t.ariaValueMin=Pt,t.ariaValueNow=Ht,t.ariaValueText=Bt,t.beforeunloadEvent=Y,t.bezierEasings=hn,t.blurEvent=Z,t.camelCase=p,t.capitalize=$n,t.changeEvent=_,t.closest=wt,t.contextmenuEvent=$,t.createCustomEvent=lo,t.createElement=$e,t.createElementNS=Xe,t.dispatchEvent=U,t.distinct=Xn,t.documentBody=Gn,t.documentElement=Jn,t.documentHead=Yn,t.dragEvent=pt,t.dragendEvent=Qt,t.dragenterEvent=Rt,t.dragleaveEvent=Ut,t.dragoverEvent=jt,t.dragstartEvent=Wt,t.emulateAnimationEnd=xn,t.emulateTransitionEnd=eo,t.errorEvent=x,t.focus=oo,t.focusEvent=ee,t.focusEvents=Zt,t.focusableSelector=je,t.focusinEvent=te,t.focusoutEvent=ne,t.gesturechangeEvent=oe,t.gestureendEvent=ae,t.gesturestartEvent=se,t.getAttribute=V,t.getAttributeNS=Vn,t.getBoundingClientRect=w,t.getCustomElements=Uo,t.getDocument=m,t.getDocumentBody=wo,t.getDocumentElement=A,t.getDocumentHead=Ao,t.getElementAnimationDelay=xe,t.getElementAnimationDuration=et,t.getElementById=jo,t.getElementStyle=v,t.getElementTransitionDelay=tt,t.getElementTransitionDuration=nt,t.getElementsByClassName=Qo,t.getElementsByTagName=At,t.getInstance=_n,t.getNodeName=it,t.getNodeScroll=ko,t.getOffsetParent=Co,t.getParentNode=N,t.getRectRelativeToOffsetParent=No,t.getUID=bt,t.getWindow=rt,t.hasAttribute=_e,t.hasAttributeNS=pn,t.hasClass=qn,t.hasFocusTrap=st,t.isApple=Ln,t.isArray=yt,t.isCanvas=Do,t.isCustomElement=ht,t.isDocument=R,t.isElement=l,t.isElementInScrollRange=Mo,t.isElementInViewport=Lo,t.isElementsArray=Oo,t.isFirefox=On,t.isFunction=Io,t.isHTMLCollection=zo,t.isHTMLElement=g,t.isHTMLImageElement=Po,t.isJSON=Fo,t.isMap=O,t.isMedia=Bo,t.isMobile=Mn,t.isNode=u,t.isNodeList=Vo,t.isNumber=ot,t.isObject=E,t.isRTL=po,t.isSVGElement=Wo,t.isScaledElement=Et,t.isShadowRoot=ct,t.isString=S,t.isTableElement=ut,t.isWeakMap=Ho,t.isWebKit=Je,t.isWindow=W,t.kebabCase=ao,t.keyAlt=$t,t.keyArrowDown=Xt,t.keyArrowLeft=en,t.keyArrowRight=tn,t.keyArrowUp=xt,t.keyBackspace=nn,t.keyCapsLock=on,t.keyControl=an,t.keyDelete=sn,t.keyEnter=cn,t.keyEscape=un,t.keyInsert=ln,t.keyMeta=dn,t.keyNumpadEnter=rn,t.keyPause=mn,t.keyScrollLock=vn,t.keyShift=En,t.keySpace=fn,t.keyTab=gn,t.keyboardEventKeys=_t,t.keydownEvent=ie,t.keypressEvent=ce,t.keyupEvent=re,t.loadEvent=ue,t.loadstartEvent=Kt,t.matches=lt,t.mouseClickEvents=Gt,t.mouseHoverEvents=Jt,t.mouseSwipeEvents=qt,t.mouseclickEvent=le,t.mousedblclickEvent=de,t.mousedownEvent=me,t.mouseenterEvent=fe,t.mousehoverEvent=Ee,t.mouseinEvent=be,t.mouseleaveEvent=ge,t.mousemoveEvent=we,t.mouseoutEvent=ye,t.mouseoverEvent=he,t.mouseupEvent=ve,t.mousewheelEvent=Ae,t.moveEvent=ke,t.nativeEvents=Vt,t.noop=Ye,t.normalizeOptions=so,t.normalizeValue=j,t.off=B,t.offsetHeight=wn,t.offsetWidth=An,t.on=H,t.one=Ze,t.orientationchangeEvent=Se,t.passiveHandler=mo,t.pointercancelEvent=Te,t.pointerdownEvent=Ce,t.pointerleaveEvent=Ne,t.pointermoveEvent=De,t.pointerupEvent=Me,t.querySelector=Ro,t.querySelectorAll=at,t.readystatechangeEvent=Le,t.reflow=vo,t.removeAttribute=Un,t.removeAttributeNS=jn,t.removeClass=Kn,t.removeEventListener=yn,t.resetEvent=Oe,t.resizeEvent=Ie,t.scrollEvent=He,t.scrollHeight=kn,t.scrollWidth=Sn,t.selectEvent=ze,t.selectendEvent=Pe,t.selectstartEvent=Fe,t.setAttribute=Wn,t.setAttributeNS=Rn,t.setElementStyle=Eo,t.submitEvent=Be,t.support3DTransform=In,t.supportAnimation=Hn,t.supportPassive=zn,t.supportTouch=Fn,t.supportTransform=Pn,t.supportTransition=Bn,t.tabindex=Tn,t.toLowerCase=go,t.toUpperCase=bo,t.toggleFocusTrap=ho,t.touchEvents=Yt,t.touchcancelEvent=We,t.touchendEvent=Re,t.touchmoveEvent=pe,t.touchstartEvent=Ve,t.transitionDelay=Ge,t.transitionDuration=qe,t.transitionEndEvent=M,t.transitionProperty=F,t.unloadEvent=Ue,t.userAgent=Dn,t.userAgentData=Cn,t.version=kt,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
2
2
  //# sourceMappingURL=shorty.js.map
package/dist/shorty.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const Ne = "2.0.8", Ce = "aria-checked", Te = "aria-description", Me = "aria-describedby", De = "aria-expanded", Le = "aria-haspopup", $ = "aria-hidden", Oe = "aria-label", xe = "aria-labelledby", ze = "aria-modal", Ie = "aria-pressed", Pe = "aria-selected", Fe = "aria-valuemin", Be = "aria-valuemax", Ve = "aria-valuenow", He = "aria-valuetext", J = "abort", X = "beforeunload", Y = "blur", tt = "change", et = "contextmenu", H = "DOMContentLoaded", nt = "DOMMouseScroll", ot = "error", st = "focus", rt = "focusin", ct = "focusout", at = "gesturechange", it = "gestureend", ut = "gesturestart", lt = "keydown", dt = "keypress", ft = "keyup", pt = "load", gt = "click", mt = "dblclick", vt = "mousedown", bt = "mouseup", Et = "hover", ht = "mouseenter", yt = "mouseleave", wt = "mousein", At = "mouseout", St = "mouseover", kt = "mousemove", Nt = "mousewheel", Ct = "move", Tt = "orientationchange", Mt = "pointercancel", Dt = "pointerdown", Lt = "pointerleave", Ot = "pointermove", xt = "pointerup", zt = "readystatechange", It = "reset", Pt = "resize", Ft = "select", Bt = "selectend", Vt = "selectstart", Ht = "scroll", Ut = "submit", Wt = "touchstart", Rt = "touchmove", Qt = "touchcancel", jt = "touchend", Kt = "unload", Ue = {
1
+ const Ne = "2.0.9", Ce = "aria-checked", Te = "aria-description", Me = "aria-describedby", De = "aria-expanded", Le = "aria-haspopup", $ = "aria-hidden", Oe = "aria-label", xe = "aria-labelledby", ze = "aria-modal", Ie = "aria-pressed", Pe = "aria-selected", Fe = "aria-valuemin", Be = "aria-valuemax", Ve = "aria-valuenow", He = "aria-valuetext", J = "abort", X = "beforeunload", Y = "blur", tt = "change", et = "contextmenu", H = "DOMContentLoaded", nt = "DOMMouseScroll", ot = "error", st = "focus", rt = "focusin", ct = "focusout", at = "gesturechange", it = "gestureend", ut = "gesturestart", lt = "keydown", dt = "keypress", ft = "keyup", pt = "load", gt = "click", mt = "dblclick", vt = "mousedown", bt = "mouseup", Et = "hover", ht = "mouseenter", yt = "mouseleave", wt = "mousein", At = "mouseout", St = "mouseover", kt = "mousemove", Nt = "mousewheel", Ct = "move", Tt = "orientationchange", Mt = "pointercancel", Dt = "pointerdown", Lt = "pointerleave", Ot = "pointermove", xt = "pointerup", zt = "readystatechange", It = "reset", Pt = "resize", Ft = "select", Bt = "selectend", Vt = "selectstart", Ht = "scroll", Ut = "submit", Wt = "touchstart", Rt = "touchmove", Qt = "touchcancel", jt = "touchend", Kt = "unload", Ue = {
2
2
  DOMContentLoaded: H,
3
3
  DOMMouseScroll: nt,
4
4
  abort: J,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thednp/shorty",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "TypeScript shorties for the web",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/shorty.js",
@@ -32,15 +32,15 @@
32
32
  },
33
33
  "homepage": "https://github.com/thednp/shorty",
34
34
  "devDependencies": {
35
- "@types/node": "^20.17.6",
35
+ "@types/node": "^22.9.3",
36
36
  "@vitest/browser": "^2.1.5",
37
37
  "@vitest/coverage-istanbul": "^2.1.5",
38
38
  "@vitest/ui": "^2.1.5",
39
39
  "playwright": "^1.49.0",
40
- "typescript": "^5.6.3",
40
+ "typescript": "^5.7.2",
41
41
  "vite": "^5.4.11",
42
42
  "vite-plugin-dts": "^4.3.0",
43
- "vite-plugin-strip-comments": "^0.0.3",
43
+ "vite-plugin-strip-comments": "^0.0.4",
44
44
  "vitest": "^2.1.5"
45
45
  },
46
46
  "engines": {