var a=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var l=(n,e)=>{for(var t in e)a(n,t,{get:e[t],enumerable:!0})},w=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!f.call(n,r)&&r!==t&&a(n,r,{get:()=>e[r],enumerable:!(o=T(e,r))||o.enumerable});return n};var h=n=>w(a({},"__esModule",{value:!0}),n);var x={};l(x,{default:()=>k,timeout:()=>u});module.exports=h(x);var u=(n,e="Timed out",t=1e3,o,r=Promise)=>{let i=!1;return n.then(s=>(i=!0,s)),r.race([n,new r((s,d)=>{let v=setTimeout(()=>{i?s(void 0):(o&&o(),d(e instanceof Error?e:new Error(e)))},t);n.then(()=>{s(void 0),clearTimeout(v)})})])},k=u; //# sourceMappingURL=lib.bundle.min.cjs.map