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