var o=Object.defineProperty;var r=(t,s,e)=>s in t?o(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var i=(t,s,e)=>r(t,typeof s!="symbol"?s+"":s,e);var n=class{constructor(){i(this,"status","pending");i(this,"value");this.promise=new Promise((t,s)=>{this.reject=e=>{this.status="rejected",s(e)},this.resolve=e=>{this.status="resolved",u(e)||(this.value=e),t(e)}})}};function u(t){return typeof t=="object"&&!!t&&"then"in t&&typeof t.then=="function"}export{n as t};
