var e=e=>typeof e==`function`,t=Array.isArray,n=e=>typeof e==`string`,r=e=>typeof e==`object`&&!!e,i=/^on[^a-z]/,a=e=>i.test(e),o=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s=/-(\w)/g,c=o(e=>e.replace(s,(e,t)=>t?t.toUpperCase():``)),l=/\B([A-Z])/g,u=o(e=>e.replace(l,`-$1`).toLowerCase()),d=o(e=>e.charAt(0).toUpperCase()+e.slice(1)),f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t);function m(t,n,r,i){let a=t[r];if(a!=null){let t=p(a,`default`);if(t&&i===void 0){let t=a.default;i=a.type!==Function&&e(t)?t():t}a.type===Boolean&&(!p(n,r)&&!t?i=!1:i===``&&(i=!0))}return i}function h(e){return Object.keys(e).reduce((t,n)=>((n.startsWith(`data-`)||n.startsWith(`aria-`))&&(t[n]=e[n]),t),{})}function g(e){return typeof e==`number`?`${e}px`:e}function _(e,t={},n){return typeof e==`function`?e(t):e??n}function v(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}export{o as cacheStringFunction,c as camelize,d as capitalize,h as getDataAndAriaProps,u as hyphenate,t as isArray,e as isFunction,r as isObject,a as isOn,n as isString,_ as renderHelper,m as resolvePropValue,g as toPx,v as wrapPromiseFn};