/* Socket Lib - Built with esbuild */
var c=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var h=(n,e)=>{for(var t in e)c(n,t,{get:e[t],enumerable:!0})},b=(n,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of y(e))!R.call(n,r)&&r!==t&&c(n,r,{get:()=>e[r],enumerable:!(a=g(e,r))||a.enumerable});return n};var q=n=>b(c({},"__esModule",{value:!0}),n);var D={};h(D,{Separator:()=>J,confirm:()=>N,input:()=>V,password:()=>W,search:()=>j,select:()=>v,wrapPrompt:()=>o});module.exports=q(D);var s=require("#constants/process");const C=(0,s.getAbortSignal)(),T=(0,s.getSpinner)();function o(n){return async(...e)=>{const t=e.length>1?e[1]:void 0,{spinner:a,...r}=t??{},p=a!==void 0?a:T,d=C;t?e[1]={signal:d,...r}:e[1]={signal:d};const m=!!p?.isSpinning;p?.stop();let i;try{i=await n(...e)}catch(f){if(f instanceof TypeError)throw f}return m&&p.start(),typeof i=="string"?i.trim():i}}const l=require("../external/@inquirer/confirm"),w=require("../external/@inquirer/input"),x=require("../external/@inquirer/password"),S=require("../external/@inquirer/search"),u=require("../external/@inquirer/select"),E=l.default??l,k=w.default??w,P=x.default??x,A=S.default??S,I=u.default??u,J=u.Separator,N=o(E),V=o(k),W=o(P),j=o(A),v=o(I);0&&(module.exports={Separator,confirm,input,password,search,select,wrapPrompt});
//# sourceMappingURL=prompts.js.map
