var a=Object.defineProperty;var h=(s,e,t)=>e in s?a(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var i=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{t as l}from"./Deferred-zIiWPYX3.js";import{t as u}from"./uuid-Dj56ryH_.js";import{t as c}from"./createLucideIcon-DA8ZBm4D.js";const n={create(){return u()}};var q=class{constructor(s,e,t={}){i(this,"requests",new Map);this.operation=s,this.makeRequest=e,this.opts=t}async request(s){if(this.opts.resolveExistingRequests){let r=this.opts.resolveExistingRequests();for(let o of this.requests.values())o.resolve(r);this.requests.clear()}let e=n.create(),t=new l;return this.requests.set(e,t),await this.makeRequest(e,s).catch(r=>{t.reject(r),this.requests.delete(e)}),t.promise}resolve(s,e){let t=this.requests.get(s);t!==void 0&&(t.resolve(e),this.requests.delete(s))}reject(s,e){let t=this.requests.get(s);t!==void 0&&(t.reject(e),this.requests.delete(s))}},p=c("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);export{q as n,p as t};
