@augmentd-labs/canvas-web 2.14.12 → 2.14.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{wt as t}from"./react-DQazvoR7.js";import{Et as n,Mn as r,Mt as i,Tn as a,at as o,pt as s}from"./workspace-CjMTaoMZ.js";var c=e(t(),1);function l(e){return!/[\\\0]/.test(e)&&e.split(`/`).every(e=>e!==`.`&&e!==`..`)}function u(e,t){if(!l(e))throw Error(`Invalid backend folder path`);let n=`/`+e.split(`/`).filter(Boolean).join(`/`),r=[...t].filter(e=>e.treePath&&(n===e.treePath||n.startsWith(e.treePath+`/`))).sort((e,t)=>t.treePath.length-e.treePath.length)[0];if(!r)throw Error(`Choose a writable storage backend folder`);if(!r.enabled||r.config?.readOnly===!0||!r.capabilities.upload)throw Error(`This backend does not support file uploads or is read-only`);return{driver:r.driver,address:r.address,key:n.slice(r.treePath.length).replace(/^\//,``)}}function d(e,t){if(!t||t.includes(`/`)||!l(t)||!l(e))throw Error(`Invalid upload filename or folder`);return[e.replace(/^\/+|\/+$/g,``),t].filter(Boolean).join(`/`)}var f=(0,c.createContext)(null);function p(){let e=(0,c.useContext)(f);if(!e)throw Error(`useToolbox must be used within a ToolboxProvider`);return e}function m(){return(0,c.useContext)(f)}var h=`contexts:deleted`;function g(e,t){return e.id===t.id?t.ownerId===void 0?e.isShared!==!0&&e.type!==`shared`:e.userId===t.ownerId:!1}async function _(){try{let e=await a.get(r.contexts);return Array.isArray(e)?e:(console.warn(`listContexts: response.payload is not an array:`,e),[])}catch(e){throw console.error(`Failed to list contexts:`,e),e}}function v(e,t){return t?`${e}${e.includes(`?`)?`&`:`?`}ownerId=${encodeURIComponent(t)}`:e}async function y(e,t){try{let n=v(`${r.contexts}/${e}`,t),i=await a.get(n);if(i&&i)return i;throw Error(`Context data not found in API response`)}catch(t){throw console.error(`Failed to get context ${e}:`,t),t}}async function b(e){try{let t=await a.post(r.contexts,e);if(t&&t&&t.context)return t.context;throw Error(`Created context data not found in API response`)}catch(e){throw console.error(`Failed to create context:`,e),e}}async function x(e,t,n){try{let i=v(`${r.contexts}/${e}`,n),o=await a.put(i,t);if(o?.context)return o.context;throw Error(`Updated context data not found in API response`)}catch(t){throw console.error(`Failed to patch context ${e}:`,t),t}}async function ee(e,t,n){try{let i=v(`${r.contexts}/${e}`,n),o=await a.put(i,t);if(o?.context)return o.context;throw Error(`Updated context data not found in API response`)}catch(t){throw console.error(`Failed to update context ${e}:`,t),t}}async function S(e,t,n,i){try{let o=v(`${r.contexts}/${e}/url`,n),s=await a.post(o,{url:t,...i?{treeName:i}:{}});if(s&&s&&s.url)return{url:s.url,treeId:s.treeId};throw Error(`Updated context data not found in API response`)}catch(t){throw console.error(`Failed to update context URL for ${e}:`,t),t}}async function C(e,t){try{let n=v(`${r.contexts}/${e}`,t);await a.delete(n),window.dispatchEvent(new CustomEvent(h,{detail:{id:e,ownerId:t}}))}catch(t){throw console.error(`Failed to delete context ${e}:`,t),t}}async function w(e,t=[],n=[],i={},o){try{if(i.ids?.length===0)return Object.assign([],{count:0,totalCount:0});let s=new URLSearchParams;i.geoSelection&&(s.set(`geoSelection`,JSON.stringify(i.geoSelection)),s.set(`includeUnlocated`,String(i.includeUnlocated===!0))),i.ids?.forEach(e=>s.append(`ids`,String(e))),t.forEach(e=>s.append(`allOf`,e)),n.forEach(e=>s.append(`filters`,e)),(i.anyOf||[]).filter(Boolean).forEach(e=>s.append(`anyOf`,e)),(i.noneOf||[]).filter(Boolean).forEach(e=>s.append(`noneOf`,e)),i.sortBy&&s.append(`sortBy`,i.sortBy),i.order&&s.append(`order`,i.order),i.applyContextSpec===!1&&s.append(`applyContextSpec`,`false`),o&&s.append(`ownerId`,o),i.includeServerContext!==void 0&&s.append(`includeServerContext`,i.includeServerContext.toString()),i.includeClientContext!==void 0&&s.append(`includeClientContext`,i.includeClientContext.toString()),i.limit!==void 0&&s.append(`limit`,i.limit.toString()),i.offset!==void 0&&s.append(`offset`,i.offset.toString()),i.page!==void 0&&s.append(`page`,i.page.toString()),(i.queries&&i.queries.length?i.queries:i.q?[i.q]:[]).map(e=>e.trim()).filter(Boolean).forEach(e=>s.append(`q`,e));let c=`${r.contexts}/${e}/documents${s.toString()?`?`+s.toString():``}`,l=await a.getEnvelope(c,{signal:i.signal}),u=l.payload;if(Array.isArray(u)){let e=u;return e.count=l.count??void 0,e.totalCount=l.totalCount??void 0,e}return console.warn(`getContextDocuments: payload is not an array:`,u),[]}catch(t){throw console.error(`Failed to get context documents for ${e}:`,t),t}}async function T(e){let t=await a.get(`${r.contexts}/${e}/shares`);return Array.isArray(t)?t:[]}async function E(e,t,n){try{return{message:(await a.post(`${r.contexts}/${e}/shares`,{userEmail:t,accessLevel:n})).message||`Context access granted`}}catch(e){throw console.error(`Failed to grant context access:`,e),e}}async function D(e,t){try{return{message:(await a.delete(`${r.contexts}/${e}/shares/${encodeURIComponent(t)}`)).message||`Context access revoked`}}catch(e){throw console.error(`Failed to revoke context access:`,e),e}}async function O(e,t){try{let n=v(`${r.contexts}/${e}/tree`,t),i=await a.get(n);if(i)return i;throw Error(`Context tree data not found in API response`)}catch(t){throw console.error(`Failed to get context tree for ${e}:`,t),t}}async function k(e,t,n,i){try{let i=Array.isArray(t)?t:[t],o=new URLSearchParams,s=`${r.contexts}/${e}/documents/remove${o.toString()?`?${o.toString()}`:``}`;return{message:await a.delete(v(s,n),{body:JSON.stringify(i),headers:{"Content-Type":`application/json`}})||`Documents removed from context`}}catch(t){throw console.error(`Failed to remove documents from context ${e}:`,t),t}}async function A(e,t,n,i){try{let i=Array.isArray(t)?t:[t],o=new URLSearchParams,s=`${r.contexts}/${e}/documents${o.toString()?`?${o.toString()}`:``}`;return await a.delete(v(s,n),{body:JSON.stringify(i),headers:{"Content-Type":`application/json`}})}catch(t){throw console.error(`Failed to delete documents from context ${e}:`,t),t}}async function j(e,t,n,i){try{let o=Array.isArray(n)?n:[n];return await a.post(v(`${r.contexts}/${e}/documents`,i),{documentIds:o,context:t}),!0}catch(e){throw console.error(`Failed to paste documents to context path ${t}:`,e),e}}async function M(e,t,n=!0){return await a.post(`${r.contexts}/${e}/tree/paths`,{path:t,autoCreateLayers:n})??!0}async function N(e,t,n=!1){let i=new URLSearchParams({path:t,recursive:n.toString()});return await a.delete(`${r.contexts}/${e}/tree/paths?${i}`)??!0}async function P(e,t,n){return await a.patch(`${r.contexts}/${e}/tree/paths`,{path:t,...n})??!0}async function F(e,t,n,i=!1,o={}){return await a.post(`${r.contexts}/${e}/tree/paths/move`,{from:t,to:n,recursive:i,...o.mergeDown?{mergeDown:!0}:{}})??!0}async function I(e,t){return await a.post(`${r.contexts}/${e}/tree/paths/merge-down`,{path:t})}async function L(e,t){return await a.post(`${r.contexts}/${e}/tree/paths/subtract-down`,{path:t})}async function te(e,t,n,i=!1){return await a.post(`${r.contexts}/${e}/tree/paths/copy`,{from:t,to:n,recursive:i})??!0}async function R(e,t,n){return await a.post(`${r.contexts}/${e}/tree/layers/merge`,{layerId:t,targetLayers:n})}async function z(e,t,n){return await a.post(`${r.contexts}/${e}/tree/layers/subtract`,{layerId:t,targetLayers:n})}async function B(e,t,n){try{let i=Array.isArray(n)?n:[n];return await a.post(`${r.workspaces}/${e}/documents`,{documents:i,treeType:`context`,context:t}),!0}catch(e){throw console.error(`Failed to import documents to context path ${t}:`,e),e}}async function V(e,t,n=[]){try{let i=Array.isArray(t)?t:[t],o=await a.post(`${r.contexts}/${e}/documents`,{documents:i,features:n});return Array.isArray(o)?o:[]}catch(t){throw console.error(`Failed to insert documents into context ${e}:`,t),t}}function H(){let{state:e}=p(),{activeContextType:t,activeContextId:n,activeWorkspaceName:r,activeTreeName:i,activeContextPath:a}=e;return(0,c.useMemo)(()=>t===`context`&&n?{mode:`context`,contextId:n}:r&&a?{mode:`workspace`,workspaceName:r,path:a,treeName:i||`context`,treeType:i===`directory`||i===`backends`?`directory`:`context`}:null,[t,n,r,i,a])}var U=new Map,W=15e3;function G(e){let t=U.get(e);if(t&&Date.now()-t.at<W)return t.promise;let r=n(e);return r.catch(()=>U.delete(e)),U.set(e,{at:Date.now(),promise:r}),r}function K(e){e?.mode===`workspace`&&window.dispatchEvent(new CustomEvent(`workspace:documents:refresh`,{detail:{workspaceName:e.workspaceName,treeName:e.treeName,path:e.path}}))}async function q(e,t,n={}){if(!e)throw Error(`No active workspace or context to add to`);if(e.mode===`workspace`){if(e.treeName===`backends`)throw Error(`Backend folders accept files, not database-only documents`);let r=e.treeType;try{let t=(await G(e.workspaceName)).find(t=>t?.name===e.treeName||t?.id===e.treeName);(t?.type===`directory`||t?.type===`context`)&&(r=t.type)}catch{}let i=await o(e.workspaceName,e.path,t,e.treeName,r);return i.length&&n.refresh!==!1&&K(e),i}return V(e.contextId,t)}async function J(e){if(!e)throw Error(`No active workspace or context to add to`);if(e.mode===`workspace`)return{workspaceName:e.workspaceName,path:e.path,treeName:e.treeName,treeType:e.treeType};let t=await y(e.contextId),n=t.workspaceName||t.workspaceId;if(!n)throw Error(`Context has no bound workspace`);return{workspaceName:n,path:t.path||`/`,treeName:t.treeId||`context`,treeType:`context`}}async function Y(e,t){if(!e)throw Error(`No active workspace or context to add to`);if(e.mode===`workspace`){let n=await i(e.workspaceName,e.path,t,e.treeName,e.treeType);return n&&window.dispatchEvent(new CustomEvent(`workspace:documents:refresh`,{detail:{workspaceName:e.workspaceName,treeName:e.treeName,path:e.path}})),n}let n=await y(e.contextId);return j(e.contextId,n.path||`/`,t)}function X(e){return e?e.mode===`context`?`Adds to the current context`:`Adds to ${e.path===`/`?`/`:e.path}`:`No destination. Open a workspace path or a context first`}async function Z(e,t){return u(t,await s(e))}function Q(e){let t=e?.mode===`workspace`&&e.treeName===`backends`,n=t?e.workspaceName:``,r=t?e.path:``,i=`${n}\0${r}`,[a,o]=(0,c.useState)(null);return(0,c.useEffect)(()=>{if(!t)return;let e=!1;return Z(n,r).then(t=>{e||o({key:i,destination:t})}).catch(t=>{e||o({key:i,error:t instanceof Error?t.message:`Unable to load backend`})}),()=>{e=!0}},[t,n,r,i]),{isBackend:t,loading:t&&a?.key!==i,destination:a?.key===i?a.destination:void 0,error:a?.key===i?a.error:void 0}}var ne=33554432,$=8388608,re=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ie=class{h=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);block=new Uint8Array(64);blockLen=0;bytesTotal=0;w=new Uint32Array(64);update(e){this.bytesTotal+=e.length;let t=0;if(this.blockLen>0){let n=64-this.blockLen,r=Math.min(n,e.length);this.block.set(e.subarray(0,r),this.blockLen),this.blockLen+=r,t=r,this.blockLen===64&&(this.compress(this.block,0),this.blockLen=0)}for(;t+64<=e.length;)this.compress(e,t),t+=64;t<e.length&&(this.block.set(e.subarray(t),0),this.blockLen=e.length-t)}digestHex(){let e=this.bytesTotal*8,t=new Uint8Array((this.blockLen<56?64:128)-this.blockLen);t[0]=128;let n=new DataView(t.buffer);n.setUint32(t.length-8,Math.floor(e/4294967296),!1),n.setUint32(t.length-4,e>>>0,!1),this.update(t);let r=``;for(let e=0;e<8;e++)r+=this.h[e].toString(16).padStart(8,`0`);return r}compress(e,t){let n=this.w;for(let r=0;r<16;r++){let i=t+r*4;n[r]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]}for(let e=16;e<64;e++){let t=n[e-15],r=n[e-2],i=(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3,a=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10;n[e]=n[e-16]+i+n[e-7]+a>>>0}let r=this.h,i=r[0],a=r[1],o=r[2],s=r[3],c=r[4],l=r[5],u=r[6],d=r[7];for(let e=0;e<64;e++){let t=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),r=c&l^~c&u,f=d+t+r+re[e]+n[e]>>>0,p=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&a^i&o^a&o)>>>0;d=u,u=l,l=c,c=s+f>>>0,s=o,o=a,a=i,i=f+p>>>0}r[0]=r[0]+i>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+o>>>0,r[3]=r[3]+s>>>0,r[4]=r[4]+c>>>0,r[5]=r[5]+l>>>0,r[6]=r[6]+u>>>0,r[7]=r[7]+d>>>0}};function ae(e){return Array.from(new Uint8Array(e),e=>e.toString(16).padStart(2,`0`)).join(``)}async function oe(e,t){if(e.size<=ne&&crypto?.subtle){let n=await crypto.subtle.digest(`SHA-256`,await e.arrayBuffer());return t?.(1),ae(n)}let n=new ie;for(let r=0;r<e.size;r+=$){let i=await e.slice(r,r+$).arrayBuffer();n.update(new Uint8Array(i)),t?.(Math.min(1,(r+i.byteLength)/e.size))}return n.digestHex()}async function se(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return[...new Uint8Array(n)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}export{D as A,m as B,R as C,x as D,j as E,S as F,u as H,h as I,g as L,L as M,ee as N,N as O,P,f as R,_ as S,F as T,d as V,O as _,K as a,M as b,q as c,te as d,b as f,w as g,y as h,Y as i,z as j,k,H as l,A as m,se as n,Z as o,C as p,X as r,J as s,oe as t,Q as u,E as v,I as w,T as x,B as y,p as z};
1
+ import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{wt as t}from"./react-DQazvoR7.js";import{Et as n,Mn as r,Mt as i,Tn as a,at as o,pt as s}from"./workspace-DVALUg0S.js";var c=e(t(),1);function l(e){return!/[\\\0]/.test(e)&&e.split(`/`).every(e=>e!==`.`&&e!==`..`)}function u(e,t){if(!l(e))throw Error(`Invalid backend folder path`);let n=`/`+e.split(`/`).filter(Boolean).join(`/`),r=[...t].filter(e=>e.treePath&&(n===e.treePath||n.startsWith(e.treePath+`/`))).sort((e,t)=>t.treePath.length-e.treePath.length)[0];if(!r)throw Error(`Choose a writable storage backend folder`);if(!r.enabled||r.config?.readOnly===!0||!r.capabilities.upload)throw Error(`This backend does not support file uploads or is read-only`);return{driver:r.driver,address:r.address,key:n.slice(r.treePath.length).replace(/^\//,``)}}function d(e,t){if(!t||t.includes(`/`)||!l(t)||!l(e))throw Error(`Invalid upload filename or folder`);return[e.replace(/^\/+|\/+$/g,``),t].filter(Boolean).join(`/`)}var f=(0,c.createContext)(null);function p(){let e=(0,c.useContext)(f);if(!e)throw Error(`useToolbox must be used within a ToolboxProvider`);return e}function m(){return(0,c.useContext)(f)}var h=`contexts:deleted`;function g(e,t){return e.id===t.id?t.ownerId===void 0?e.isShared!==!0&&e.type!==`shared`:e.userId===t.ownerId:!1}async function _(){try{let e=await a.get(r.contexts);return Array.isArray(e)?e:(console.warn(`listContexts: response.payload is not an array:`,e),[])}catch(e){throw console.error(`Failed to list contexts:`,e),e}}function v(e,t){return t?`${e}${e.includes(`?`)?`&`:`?`}ownerId=${encodeURIComponent(t)}`:e}async function y(e,t){try{let n=v(`${r.contexts}/${e}`,t),i=await a.get(n);if(i&&i)return i;throw Error(`Context data not found in API response`)}catch(t){throw console.error(`Failed to get context ${e}:`,t),t}}async function b(e){try{let t=await a.post(r.contexts,e);if(t&&t&&t.context)return t.context;throw Error(`Created context data not found in API response`)}catch(e){throw console.error(`Failed to create context:`,e),e}}async function x(e,t,n){try{let i=v(`${r.contexts}/${e}`,n),o=await a.put(i,t);if(o?.context)return o.context;throw Error(`Updated context data not found in API response`)}catch(t){throw console.error(`Failed to patch context ${e}:`,t),t}}async function ee(e,t,n){try{let i=v(`${r.contexts}/${e}`,n),o=await a.put(i,t);if(o?.context)return o.context;throw Error(`Updated context data not found in API response`)}catch(t){throw console.error(`Failed to update context ${e}:`,t),t}}async function S(e,t,n,i){try{let o=v(`${r.contexts}/${e}/url`,n),s=await a.post(o,{url:t,...i?{treeName:i}:{}});if(s&&s&&s.url)return{url:s.url,treeId:s.treeId};throw Error(`Updated context data not found in API response`)}catch(t){throw console.error(`Failed to update context URL for ${e}:`,t),t}}async function C(e,t){try{let n=v(`${r.contexts}/${e}`,t);await a.delete(n),window.dispatchEvent(new CustomEvent(h,{detail:{id:e,ownerId:t}}))}catch(t){throw console.error(`Failed to delete context ${e}:`,t),t}}async function w(e,t=[],n=[],i={},o){try{if(i.ids?.length===0)return Object.assign([],{count:0,totalCount:0});let s=new URLSearchParams;i.geoSelection&&(s.set(`geoSelection`,JSON.stringify(i.geoSelection)),s.set(`includeUnlocated`,String(i.includeUnlocated===!0))),i.ids?.forEach(e=>s.append(`ids`,String(e))),t.forEach(e=>s.append(`allOf`,e)),n.forEach(e=>s.append(`filters`,e)),(i.anyOf||[]).filter(Boolean).forEach(e=>s.append(`anyOf`,e)),(i.noneOf||[]).filter(Boolean).forEach(e=>s.append(`noneOf`,e)),i.sortBy&&s.append(`sortBy`,i.sortBy),i.order&&s.append(`order`,i.order),i.applyContextSpec===!1&&s.append(`applyContextSpec`,`false`),o&&s.append(`ownerId`,o),i.includeServerContext!==void 0&&s.append(`includeServerContext`,i.includeServerContext.toString()),i.includeClientContext!==void 0&&s.append(`includeClientContext`,i.includeClientContext.toString()),i.limit!==void 0&&s.append(`limit`,i.limit.toString()),i.offset!==void 0&&s.append(`offset`,i.offset.toString()),i.page!==void 0&&s.append(`page`,i.page.toString()),(i.queries&&i.queries.length?i.queries:i.q?[i.q]:[]).map(e=>e.trim()).filter(Boolean).forEach(e=>s.append(`q`,e));let c=`${r.contexts}/${e}/documents${s.toString()?`?`+s.toString():``}`,l=await a.getEnvelope(c,{signal:i.signal}),u=l.payload;if(Array.isArray(u)){let e=u;return e.count=l.count??void 0,e.totalCount=l.totalCount??void 0,e}return console.warn(`getContextDocuments: payload is not an array:`,u),[]}catch(t){throw console.error(`Failed to get context documents for ${e}:`,t),t}}async function T(e){let t=await a.get(`${r.contexts}/${e}/shares`);return Array.isArray(t)?t:[]}async function E(e,t,n){try{return{message:(await a.post(`${r.contexts}/${e}/shares`,{userEmail:t,accessLevel:n})).message||`Context access granted`}}catch(e){throw console.error(`Failed to grant context access:`,e),e}}async function D(e,t){try{return{message:(await a.delete(`${r.contexts}/${e}/shares/${encodeURIComponent(t)}`)).message||`Context access revoked`}}catch(e){throw console.error(`Failed to revoke context access:`,e),e}}async function O(e,t){try{let n=v(`${r.contexts}/${e}/tree`,t),i=await a.get(n);if(i)return i;throw Error(`Context tree data not found in API response`)}catch(t){throw console.error(`Failed to get context tree for ${e}:`,t),t}}async function k(e,t,n,i){try{let i=Array.isArray(t)?t:[t],o=new URLSearchParams,s=`${r.contexts}/${e}/documents/remove${o.toString()?`?${o.toString()}`:``}`;return{message:await a.delete(v(s,n),{body:JSON.stringify(i),headers:{"Content-Type":`application/json`}})||`Documents removed from context`}}catch(t){throw console.error(`Failed to remove documents from context ${e}:`,t),t}}async function A(e,t,n,i){try{let i=Array.isArray(t)?t:[t],o=new URLSearchParams,s=`${r.contexts}/${e}/documents${o.toString()?`?${o.toString()}`:``}`;return await a.delete(v(s,n),{body:JSON.stringify(i),headers:{"Content-Type":`application/json`}})}catch(t){throw console.error(`Failed to delete documents from context ${e}:`,t),t}}async function j(e,t,n,i){try{let o=Array.isArray(n)?n:[n];return await a.post(v(`${r.contexts}/${e}/documents`,i),{documentIds:o,context:t}),!0}catch(e){throw console.error(`Failed to paste documents to context path ${t}:`,e),e}}async function M(e,t,n=!0){return await a.post(`${r.contexts}/${e}/tree/paths`,{path:t,autoCreateLayers:n})??!0}async function N(e,t,n=!1){let i=new URLSearchParams({path:t,recursive:n.toString()});return await a.delete(`${r.contexts}/${e}/tree/paths?${i}`)??!0}async function P(e,t,n){return await a.patch(`${r.contexts}/${e}/tree/paths`,{path:t,...n})??!0}async function F(e,t,n,i=!1,o={}){return await a.post(`${r.contexts}/${e}/tree/paths/move`,{from:t,to:n,recursive:i,...o.mergeDown?{mergeDown:!0}:{}})??!0}async function I(e,t){return await a.post(`${r.contexts}/${e}/tree/paths/merge-down`,{path:t})}async function L(e,t){return await a.post(`${r.contexts}/${e}/tree/paths/subtract-down`,{path:t})}async function te(e,t,n,i=!1){return await a.post(`${r.contexts}/${e}/tree/paths/copy`,{from:t,to:n,recursive:i})??!0}async function R(e,t,n){return await a.post(`${r.contexts}/${e}/tree/layers/merge`,{layerId:t,targetLayers:n})}async function z(e,t,n){return await a.post(`${r.contexts}/${e}/tree/layers/subtract`,{layerId:t,targetLayers:n})}async function B(e,t,n){try{let i=Array.isArray(n)?n:[n];return await a.post(`${r.workspaces}/${e}/documents`,{documents:i,treeType:`context`,context:t}),!0}catch(e){throw console.error(`Failed to import documents to context path ${t}:`,e),e}}async function V(e,t,n=[]){try{let i=Array.isArray(t)?t:[t],o=await a.post(`${r.contexts}/${e}/documents`,{documents:i,features:n});return Array.isArray(o)?o:[]}catch(t){throw console.error(`Failed to insert documents into context ${e}:`,t),t}}function H(){let{state:e}=p(),{activeContextType:t,activeContextId:n,activeWorkspaceName:r,activeTreeName:i,activeContextPath:a}=e;return(0,c.useMemo)(()=>t===`context`&&n?{mode:`context`,contextId:n}:r&&a?{mode:`workspace`,workspaceName:r,path:a,treeName:i||`context`,treeType:i===`directory`||i===`backends`?`directory`:`context`}:null,[t,n,r,i,a])}var U=new Map,W=15e3;function G(e){let t=U.get(e);if(t&&Date.now()-t.at<W)return t.promise;let r=n(e);return r.catch(()=>U.delete(e)),U.set(e,{at:Date.now(),promise:r}),r}function K(e){e?.mode===`workspace`&&window.dispatchEvent(new CustomEvent(`workspace:documents:refresh`,{detail:{workspaceName:e.workspaceName,treeName:e.treeName,path:e.path}}))}async function q(e,t,n={}){if(!e)throw Error(`No active workspace or context to add to`);if(e.mode===`workspace`){if(e.treeName===`backends`)throw Error(`Backend folders accept files, not database-only documents`);let r=e.treeType;try{let t=(await G(e.workspaceName)).find(t=>t?.name===e.treeName||t?.id===e.treeName);(t?.type===`directory`||t?.type===`context`)&&(r=t.type)}catch{}let i=await o(e.workspaceName,e.path,t,e.treeName,r);return i.length&&n.refresh!==!1&&K(e),i}return V(e.contextId,t)}async function J(e){if(!e)throw Error(`No active workspace or context to add to`);if(e.mode===`workspace`)return{workspaceName:e.workspaceName,path:e.path,treeName:e.treeName,treeType:e.treeType};let t=await y(e.contextId),n=t.workspaceName||t.workspaceId;if(!n)throw Error(`Context has no bound workspace`);return{workspaceName:n,path:t.path||`/`,treeName:t.treeId||`context`,treeType:`context`}}async function Y(e,t){if(!e)throw Error(`No active workspace or context to add to`);if(e.mode===`workspace`){let n=await i(e.workspaceName,e.path,t,e.treeName,e.treeType);return n&&window.dispatchEvent(new CustomEvent(`workspace:documents:refresh`,{detail:{workspaceName:e.workspaceName,treeName:e.treeName,path:e.path}})),n}let n=await y(e.contextId);return j(e.contextId,n.path||`/`,t)}function X(e){return e?e.mode===`context`?`Adds to the current context`:`Adds to ${e.path===`/`?`/`:e.path}`:`No destination. Open a workspace path or a context first`}async function Z(e,t){return u(t,await s(e))}function Q(e){let t=e?.mode===`workspace`&&e.treeName===`backends`,n=t?e.workspaceName:``,r=t?e.path:``,i=`${n}\0${r}`,[a,o]=(0,c.useState)(null);return(0,c.useEffect)(()=>{if(!t)return;let e=!1;return Z(n,r).then(t=>{e||o({key:i,destination:t})}).catch(t=>{e||o({key:i,error:t instanceof Error?t.message:`Unable to load backend`})}),()=>{e=!0}},[t,n,r,i]),{isBackend:t,loading:t&&a?.key!==i,destination:a?.key===i?a.destination:void 0,error:a?.key===i?a.error:void 0}}var ne=33554432,$=8388608,re=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ie=class{h=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);block=new Uint8Array(64);blockLen=0;bytesTotal=0;w=new Uint32Array(64);update(e){this.bytesTotal+=e.length;let t=0;if(this.blockLen>0){let n=64-this.blockLen,r=Math.min(n,e.length);this.block.set(e.subarray(0,r),this.blockLen),this.blockLen+=r,t=r,this.blockLen===64&&(this.compress(this.block,0),this.blockLen=0)}for(;t+64<=e.length;)this.compress(e,t),t+=64;t<e.length&&(this.block.set(e.subarray(t),0),this.blockLen=e.length-t)}digestHex(){let e=this.bytesTotal*8,t=new Uint8Array((this.blockLen<56?64:128)-this.blockLen);t[0]=128;let n=new DataView(t.buffer);n.setUint32(t.length-8,Math.floor(e/4294967296),!1),n.setUint32(t.length-4,e>>>0,!1),this.update(t);let r=``;for(let e=0;e<8;e++)r+=this.h[e].toString(16).padStart(8,`0`);return r}compress(e,t){let n=this.w;for(let r=0;r<16;r++){let i=t+r*4;n[r]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]}for(let e=16;e<64;e++){let t=n[e-15],r=n[e-2],i=(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3,a=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10;n[e]=n[e-16]+i+n[e-7]+a>>>0}let r=this.h,i=r[0],a=r[1],o=r[2],s=r[3],c=r[4],l=r[5],u=r[6],d=r[7];for(let e=0;e<64;e++){let t=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),r=c&l^~c&u,f=d+t+r+re[e]+n[e]>>>0,p=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&a^i&o^a&o)>>>0;d=u,u=l,l=c,c=s+f>>>0,s=o,o=a,a=i,i=f+p>>>0}r[0]=r[0]+i>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+o>>>0,r[3]=r[3]+s>>>0,r[4]=r[4]+c>>>0,r[5]=r[5]+l>>>0,r[6]=r[6]+u>>>0,r[7]=r[7]+d>>>0}};function ae(e){return Array.from(new Uint8Array(e),e=>e.toString(16).padStart(2,`0`)).join(``)}async function oe(e,t){if(e.size<=ne&&crypto?.subtle){let n=await crypto.subtle.digest(`SHA-256`,await e.arrayBuffer());return t?.(1),ae(n)}let n=new ie;for(let r=0;r<e.size;r+=$){let i=await e.slice(r,r+$).arrayBuffer();n.update(new Uint8Array(i)),t?.(Math.min(1,(r+i.byteLength)/e.size))}return n.digestHex()}async function se(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return[...new Uint8Array(n)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}export{D as A,m as B,R as C,x as D,j as E,S as F,u as H,h as I,g as L,L as M,ee as N,N as O,P,f as R,_ as S,F as T,d as V,O as _,K as a,M as b,q as c,te as d,b as f,w as g,y as h,Y as i,z as j,k,H as l,A as m,se as n,Z as o,C as p,X as r,J as s,oe as t,Q as u,E as v,I as w,T as x,B as y,p as z};
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MarkdownEditor-CYp64hwi.js","assets/rolldown-runtime-C0FnF6B9.js","assets/react-DQazvoR7.js","assets/ui-zmK8CGjz.js","assets/utils-2pl1SbIp.js","assets/utils-BxVxyehK.js","assets/use-theme-pnVLU4Kg.js","assets/punycode.es6-ZbLrB_Dn.js","assets/MarkdownEditor-ByK7DHQ0.css"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{wt as t,xt as n}from"./react-DQazvoR7.js";import{t as r}from"./preload-helper-Czpn1I53.js";import{t as i}from"./utils-2pl1SbIp.js";import{Gt as a,L as o,M as s,Nn as c,R as l,dn as u,j as d}from"./workspace-CjMTaoMZ.js";import{h as f,l as p,m,r as h}from"./blobs-Aw57LoqD.js";var g=e(t(),1),_=n(),v=`data/schema/message/email`,y=`data/schema/tab`,b=`data/schema/task`;function x(e,t){let n=String(e||``).replace(/\s+/g,` `).trim();return n?n.length>t?`${n.slice(0,t)}...`:n:``}function S(e){return String(e||``).replace(/```[\s\S]*?```/g,` `).replace(/`([^`]*)`/g,`$1`).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^#{1,6}\s+/gm,``).replace(/^\s*>\s?/gm,``).replace(/^\s*[-*+]\s+/gm,``).replace(/(\*\*|__|\*|_|~~)/g,``)}function C(e){if(!e)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(C).filter(Boolean).join(`, `);if(typeof e==`object`){let t=e,n=String(t.address||``).trim(),r=String(t.name||``).trim();return r&&n&&r!==n?`${r} <${n}>`:r||n}return``}function w(e){let t=Array.isArray(e?.channels)?e.channels.length:0,n=Array.isArray(e?.identifiers)?e.identifiers.length:0,r=Array.isArray(e?.organizations)?e.organizations.length:0;return[t?`${t} channel${t===1?``:`s`}`:``,n?`${n} identifier${n===1?``:`s`}`:``,r?`${r} organization${r===1?``:`s`}`:``].filter(Boolean).join(` · `)}function T(e){let t=String(e?.displayName||``).trim();if(t)return t;let n=e?.name;if(!n||typeof n!=`object`)return String(n||``).trim();let r=n;return[r.prefix,r.given,r.middle,r.family,r.suffix].map(e=>String(e||``).trim()).filter(Boolean).join(` `)}function E(e){let t=String(e?.primaryEmail||``).trim();if(t)return t;let n=Array.isArray(e?.channels)?e.channels:[],r=n.find(e=>e?.kind===`email`&&e?.primary)||n.find(e=>e?.kind===`email`);return String(r?.value||``).trim()}function D(e){try{let t=new URL(e);return`${t.hostname}${t.pathname}`}catch{return e}}function O(e){return e.schema===`data/schema/file`&&String(e.metadata?.contentType||``).startsWith(`image/`)}var k=/^(imaps?|pop3s?|mailto|graph|ews|news|nntp):/i;function A(e){if(!e||k.test(e))return``;let t=e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,``),n=t.indexOf(`/`),r=(n>=0?t.slice(n+1):t).split(`/`).filter(Boolean).pop();if(!r)return``;let i;try{i=decodeURIComponent(r)}catch{i=r}return/^stored:\/\//i.test(e)&&!j(i)?``:i}function j(e){return e.length>0&&!/^[a-f0-9]{12,}$/i.test(e)&&!/^[a-f0-9]{16,}\.[A-Za-z0-9]{1,12}$/i.test(e)}function M(e){return typeof e.comment==`string`?e.comment.trim():``}function N(e){let t=String(e.metadata?.filename||``).trim();if(t)return t;let n=String(e.data?.filename||``).trim();if(n)return n;let r=(e.locations||[]).filter(Boolean),i=r.find(e=>/^stored:\/\/workspace:/i.test(e.url||``)),a=String(i?.metadata?.filename||``).trim();if(a)return a;let o=[...r].sort((e,t)=>String(e.url||``).localeCompare(String(t.url||``))),s=o.find(e=>String(e.metadata?.filename||``).trim());if(s)return String(s.metadata?.filename||``).trim();for(let e of o){let t=A(e.url);if(t)return t}return``}function P(e){let t=e.data;for(let e of[t.url,t.htmlUrl,t.htmlLink])if(typeof e==`string`&&/^https?:\/\//i.test(e))return e;for(let t of e.locations||[])if(typeof t?.url==`string`&&/^https?:\/\//i.test(t.url))return t.url;return null}function F(e){let t=e.schema===v,n=e.schema===y,r=e.schema.split(`/`).pop()||e.schema;if(t)return{title:x(e.data.title||e.data.name||e.data.subject,160)||`Email ${e.id}`,preview:x(e.data.bodyPreview||e.data.body||``,140),subtitle:x(C(e.data.from),120),icon:`mail`,isExternal:!1,schemaLabel:r};if(n){let t=String(e.data.title||e.data.name||``).trim(),n=String(e.data.url||``).trim();return{title:t||D(n)||`Document ${e.id}`,preview:x(e.data.description||e.data.summary||n,140),subtitle:n,icon:`globe`,isExternal:!!n,schemaLabel:r}}if(e.schema===b||e.schema.startsWith(`${b}/`)){let t=String(e.data.status||(e.data.completed?`completed`:`pending`)).trim(),n=e.data.dueDate?new Date(String(e.data.dueDate)):null,i=n&&!Number.isNaN(n.getTime())?n.toLocaleDateString(void 0,{month:`short`,day:`numeric`}):``;return{title:x(e.data.title||e.data.name,160)||`Task ${e.id}`,preview:x(S(e.data.description||e.data.summary),400),subtitle:[t,i?`due ${i}`:``].filter(Boolean).join(` · `),icon:`file`,isExternal:!1,schemaLabel:r}}if(e.schema===`data/schema/identity`||e.schema.startsWith(`data/schema/identity/`)){let t=E(e.data),n=f(e.schema,p);return{title:x(T(e.data),160)||`Identity ${e.id}`,preview:x(w(e.data),140),subtitle:[t,n].filter(Boolean).join(` · `),icon:t?`mail`:`file`,isExternal:!1,schemaLabel:r}}if(e.schema===`data/schema/file`){let t=N(e),n=String(e.metadata?.contentType||``).trim(),i=e.metadata?.size,a=[n,Number.isFinite(i)?`${i} bytes`:``].filter(Boolean);return{title:x(t,160)||`File ${e.id}`,preview:a.join(` · `),subtitle:t,icon:`file`,isExternal:!1,schemaLabel:r}}return{title:x(e.data.title||e.data.name||e.data.subject||N(e),160)||`Document ${e.id}`,preview:x(S(e.data.content||e.data.description||e.data.summary||e.data.bodyPreview||e.data.body),400),subtitle:``,icon:`file`,isExternal:!1,schemaLabel:r}}var I=(0,g.createContext)(null);function L(){return(0,g.useContext)(I)}function R(e,t,n={}){let r=new URLSearchParams;n.download&&r.set(`download`,`1`),n.url&&r.set(`url`,n.url);let i=r.toString();return`${c}/pub/c/${encodeURIComponent(e)}/documents/${t}/content${i?`?${i}`:``}`}async function z(e,t,n=256){let r=await fetch(`${c}/pub/c/${encodeURIComponent(e)}/documents/${t}/thumbnail?size=${n}`);if(!r.ok)throw Error(`HTTP ${r.status}`);let i=r.headers.get(`content-type`)||`image/webp`;return{blob:await r.blob(),mime:i}}async function B(e,t,n={}){let r=await fetch(R(e,t,n));if(!r.ok)throw Error(`HTTP ${r.status}`);let i=r.headers.get(`content-type`)||`application/octet-stream`;return{blob:await r.blob(),mime:i}}async function V(e,t,n,r={}){let{blob:i}=await B(e,t,{...r}),a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=n,document.body.appendChild(o),o.click(),o.remove(),setTimeout(()=>URL.revokeObjectURL(a),3e4)}function H(e){let t=L();return{isPublic:t!=null,fetchBlob:(n,r={})=>t?B(t,n,r):o(e,n,r),fetchThumbnail:(n,r=256,i)=>t?z(t,n,r):l(e,n,r,i),download:(n,r,i={})=>t?V(t,n,r,i):s(e,n,r,i),streamUrl:(n,r={})=>t?R(t,n,r):d(e,n,r),mintTicket:n=>t?Promise.resolve(!0):a(e,n)}}var U=(0,g.lazy)(()=>r(()=>import(`./MarkdownEditor-CYp64hwi.js`).then(e=>({default:e.MarkdownEditor})),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),W=(0,_.jsx)(`div`,{className:`rounded-md border border-input p-3 text-sm text-muted-foreground`,children:`Loading editor…`});function G(e){return(0,_.jsx)(g.Suspense,{fallback:W,children:(0,_.jsx)(U,{...e})})}var K=e=>({blobUrl:null,blob:null,text:null,mime:null,error:null,loading:e});function q(e,t,{url:n,mode:r=`blob`,enabled:i=!0,maxTextLength:a=2e5,typeHint:o,version:s=null}={}){let{isPublic:c,fetchBlob:l}=H(e),u=`${c?`pub`:`ws`}:${e}:${t}:${n??``}:${r}:${i}:${o??``}:${s??``}`,[d,f]=(0,g.useState)(K(i)),[p,m]=(0,g.useState)(u);return u!==p&&(m(u),f(K(i))),(0,g.useEffect)(()=>{if(!i)return;let e=!1,c=null;return l(t,{...n?{url:n}:{},...s?{version:s}:{}}).then(async({blob:t,mime:n})=>{if(!e){if(r===`text`){let r=await t.text();e||f({blobUrl:null,blob:null,text:r.slice(0,a),mime:n,error:null,loading:!1})}else{let r=o&&(!t.type||t.type===`application/octet-stream`),i=r?t.slice(0,t.size,o):t;if(c=URL.createObjectURL(i),e){URL.revokeObjectURL(c),c=null;return}f({blobUrl:c,blob:i,text:null,mime:r?o:n,error:null,loading:!1})}}}).catch(t=>{e||f({blobUrl:null,blob:null,text:null,mime:null,error:String(t instanceof Error?t.message:t),loading:!1})}),()=>{e=!0,c&&URL.revokeObjectURL(c)}},[u]),d}function J(e,t){let{isPublic:n,streamUrl:r,mintTicket:i}=H(e),a=`${n?`pub`:`ws`}:${e}:${t}`,[o,s]=(0,g.useState)({src:null,error:null,loading:!0}),[c,l]=(0,g.useState)(a);return a!==c&&(l(a),s({src:null,error:null,loading:!0})),(0,g.useEffect)(()=>{let e=!1;return i(t).then(n=>{e||s(n?{src:r(t),error:null,loading:!1}:{src:null,error:`Could not authorize stream`,loading:!1})}).catch(t=>{e||s({src:null,error:t instanceof Error?t.message:String(t),loading:!1})}),()=>{e=!0}},[a]),o}function Y({kind:e,value:t,onChange:n,placeholder:r,rows:a=16,fill:o=!1}){return e===`markdown`?(0,_.jsx)(G,{value:t,onChange:n,placeholder:r,fill:o}):(0,_.jsx)(`textarea`,{value:t,onChange:e=>n(e.target.value),rows:o?void 0:a,placeholder:r,spellCheck:!1,className:i(`flex w-full rounded-md border border-input bg-transparent px-3 py-2 font-mono text-xs leading-relaxed shadow-elevation-1 transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,o&&`h-full min-h-0 resize-none`)})}var X=1e6;function Z(e){if(e.schema===`data/schema/note`)return`markdown`;if(e.schema!==`data/schema/file`)return null;let t=m(String(e.metadata?.contentType??``),N(e));return t===`markdown`?`markdown`:t===`text`?`text`:null}function Q(e){return e.schema===`data/schema/file`&&Z(e)!=null}function $(e){let t=Number(e.metadata?.size??0);return Number.isFinite(t)&&t>1e6}async function ee(e,t,n,r={}){let i=N(t)||`document-${t.id}.txt`,a=String(t.metadata?.contentType??``)||(Z(t)===`markdown`?`text/markdown`:`text/plain`),o=n.endsWith(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MarkdownEditor-BIPjkdOi.js","assets/rolldown-runtime-C0FnF6B9.js","assets/react-DQazvoR7.js","assets/ui-BX_B5WCf.js","assets/utils-2pl1SbIp.js","assets/utils-BxVxyehK.js","assets/use-theme-pnVLU4Kg.js","assets/punycode.es6-ZbLrB_Dn.js","assets/MarkdownEditor-ByK7DHQ0.css"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{wt as t,xt as n}from"./react-DQazvoR7.js";import{t as r}from"./preload-helper-Czpn1I53.js";import{t as i}from"./utils-2pl1SbIp.js";import{Gt as a,L as o,M as s,Nn as c,R as l,dn as u,j as d}from"./workspace-DVALUg0S.js";import{h as f,l as p,m,r as h}from"./blobs-B__R3NWM.js";var g=e(t(),1),_=n(),v=`data/schema/message/email`,y=`data/schema/tab`,b=`data/schema/task`;function x(e,t){let n=String(e||``).replace(/\s+/g,` `).trim();return n?n.length>t?`${n.slice(0,t)}...`:n:``}function S(e){return String(e||``).replace(/```[\s\S]*?```/g,` `).replace(/`([^`]*)`/g,`$1`).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^#{1,6}\s+/gm,``).replace(/^\s*>\s?/gm,``).replace(/^\s*[-*+]\s+/gm,``).replace(/(\*\*|__|\*|_|~~)/g,``)}function C(e){if(!e)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(C).filter(Boolean).join(`, `);if(typeof e==`object`){let t=e,n=String(t.address||``).trim(),r=String(t.name||``).trim();return r&&n&&r!==n?`${r} <${n}>`:r||n}return``}function w(e){let t=Array.isArray(e?.channels)?e.channels.length:0,n=Array.isArray(e?.identifiers)?e.identifiers.length:0,r=Array.isArray(e?.organizations)?e.organizations.length:0;return[t?`${t} channel${t===1?``:`s`}`:``,n?`${n} identifier${n===1?``:`s`}`:``,r?`${r} organization${r===1?``:`s`}`:``].filter(Boolean).join(` · `)}function T(e){let t=String(e?.displayName||``).trim();if(t)return t;let n=e?.name;if(!n||typeof n!=`object`)return String(n||``).trim();let r=n;return[r.prefix,r.given,r.middle,r.family,r.suffix].map(e=>String(e||``).trim()).filter(Boolean).join(` `)}function E(e){let t=String(e?.primaryEmail||``).trim();if(t)return t;let n=Array.isArray(e?.channels)?e.channels:[],r=n.find(e=>e?.kind===`email`&&e?.primary)||n.find(e=>e?.kind===`email`);return String(r?.value||``).trim()}function D(e){try{let t=new URL(e);return`${t.hostname}${t.pathname}`}catch{return e}}function O(e){return e.schema===`data/schema/file`&&String(e.metadata?.contentType||``).startsWith(`image/`)}var k=/^(imaps?|pop3s?|mailto|graph|ews|news|nntp):/i;function A(e){if(!e||k.test(e))return``;let t=e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,``),n=t.indexOf(`/`),r=(n>=0?t.slice(n+1):t).split(`/`).filter(Boolean).pop();if(!r)return``;let i;try{i=decodeURIComponent(r)}catch{i=r}return/^stored:\/\//i.test(e)&&!j(i)?``:i}function j(e){return e.length>0&&!/^[a-f0-9]{12,}$/i.test(e)&&!/^[a-f0-9]{16,}\.[A-Za-z0-9]{1,12}$/i.test(e)}function M(e){return typeof e.comment==`string`?e.comment.trim():``}function N(e){let t=String(e.metadata?.filename||``).trim();if(t)return t;let n=String(e.data?.filename||``).trim();if(n)return n;let r=(e.locations||[]).filter(Boolean),i=r.find(e=>/^stored:\/\/workspace:/i.test(e.url||``)),a=String(i?.metadata?.filename||``).trim();if(a)return a;let o=[...r].sort((e,t)=>String(e.url||``).localeCompare(String(t.url||``))),s=o.find(e=>String(e.metadata?.filename||``).trim());if(s)return String(s.metadata?.filename||``).trim();for(let e of o){let t=A(e.url);if(t)return t}return``}function P(e){let t=e.data;for(let e of[t.url,t.htmlUrl,t.htmlLink])if(typeof e==`string`&&/^https?:\/\//i.test(e))return e;for(let t of e.locations||[])if(typeof t?.url==`string`&&/^https?:\/\//i.test(t.url))return t.url;return null}function F(e){let t=e.schema===v,n=e.schema===y,r=e.schema.split(`/`).pop()||e.schema;if(t)return{title:x(e.data.title||e.data.name||e.data.subject,160)||`Email ${e.id}`,preview:x(e.data.bodyPreview||e.data.body||``,140),subtitle:x(C(e.data.from),120),icon:`mail`,isExternal:!1,schemaLabel:r};if(n){let t=String(e.data.title||e.data.name||``).trim(),n=String(e.data.url||``).trim();return{title:t||D(n)||`Document ${e.id}`,preview:x(e.data.description||e.data.summary||n,140),subtitle:n,icon:`globe`,isExternal:!!n,schemaLabel:r}}if(e.schema===b||e.schema.startsWith(`${b}/`)){let t=String(e.data.status||(e.data.completed?`completed`:`pending`)).trim(),n=e.data.dueDate?new Date(String(e.data.dueDate)):null,i=n&&!Number.isNaN(n.getTime())?n.toLocaleDateString(void 0,{month:`short`,day:`numeric`}):``;return{title:x(e.data.title||e.data.name,160)||`Task ${e.id}`,preview:x(S(e.data.description||e.data.summary),400),subtitle:[t,i?`due ${i}`:``].filter(Boolean).join(` · `),icon:`file`,isExternal:!1,schemaLabel:r}}if(e.schema===`data/schema/identity`||e.schema.startsWith(`data/schema/identity/`)){let t=E(e.data),n=f(e.schema,p);return{title:x(T(e.data),160)||`Identity ${e.id}`,preview:x(w(e.data),140),subtitle:[t,n].filter(Boolean).join(` · `),icon:t?`mail`:`file`,isExternal:!1,schemaLabel:r}}if(e.schema===`data/schema/file`){let t=N(e),n=String(e.metadata?.contentType||``).trim(),i=e.metadata?.size,a=[n,Number.isFinite(i)?`${i} bytes`:``].filter(Boolean);return{title:x(t,160)||`File ${e.id}`,preview:a.join(` · `),subtitle:t,icon:`file`,isExternal:!1,schemaLabel:r}}return{title:x(e.data.title||e.data.name||e.data.subject||N(e),160)||`Document ${e.id}`,preview:x(S(e.data.content||e.data.description||e.data.summary||e.data.bodyPreview||e.data.body),400),subtitle:``,icon:`file`,isExternal:!1,schemaLabel:r}}var I=(0,g.createContext)(null);function L(){return(0,g.useContext)(I)}function R(e,t,n={}){let r=new URLSearchParams;n.download&&r.set(`download`,`1`),n.url&&r.set(`url`,n.url);let i=r.toString();return`${c}/pub/c/${encodeURIComponent(e)}/documents/${t}/content${i?`?${i}`:``}`}async function z(e,t,n=256){let r=await fetch(`${c}/pub/c/${encodeURIComponent(e)}/documents/${t}/thumbnail?size=${n}`);if(!r.ok)throw Error(`HTTP ${r.status}`);let i=r.headers.get(`content-type`)||`image/webp`;return{blob:await r.blob(),mime:i}}async function B(e,t,n={}){let r=await fetch(R(e,t,n));if(!r.ok)throw Error(`HTTP ${r.status}`);let i=r.headers.get(`content-type`)||`application/octet-stream`;return{blob:await r.blob(),mime:i}}async function V(e,t,n,r={}){let{blob:i}=await B(e,t,{...r}),a=URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=n,document.body.appendChild(o),o.click(),o.remove(),setTimeout(()=>URL.revokeObjectURL(a),3e4)}function H(e){let t=L();return{isPublic:t!=null,fetchBlob:(n,r={})=>t?B(t,n,r):o(e,n,r),fetchThumbnail:(n,r=256,i)=>t?z(t,n,r):l(e,n,r,i),download:(n,r,i={})=>t?V(t,n,r,i):s(e,n,r,i),streamUrl:(n,r={})=>t?R(t,n,r):d(e,n,r),mintTicket:n=>t?Promise.resolve(!0):a(e,n)}}var U=(0,g.lazy)(()=>r(()=>import(`./MarkdownEditor-BIPjkdOi.js`).then(e=>({default:e.MarkdownEditor})),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),W=(0,_.jsx)(`div`,{className:`rounded-md border border-input p-3 text-sm text-muted-foreground`,children:`Loading editor…`});function G(e){return(0,_.jsx)(g.Suspense,{fallback:W,children:(0,_.jsx)(U,{...e})})}var K=e=>({blobUrl:null,blob:null,text:null,mime:null,error:null,loading:e});function q(e,t,{url:n,mode:r=`blob`,enabled:i=!0,maxTextLength:a=2e5,typeHint:o,version:s=null}={}){let{isPublic:c,fetchBlob:l}=H(e),u=`${c?`pub`:`ws`}:${e}:${t}:${n??``}:${r}:${i}:${o??``}:${s??``}`,[d,f]=(0,g.useState)(K(i)),[p,m]=(0,g.useState)(u);return u!==p&&(m(u),f(K(i))),(0,g.useEffect)(()=>{if(!i)return;let e=!1,c=null;return l(t,{...n?{url:n}:{},...s?{version:s}:{}}).then(async({blob:t,mime:n})=>{if(!e){if(r===`text`){let r=await t.text();e||f({blobUrl:null,blob:null,text:r.slice(0,a),mime:n,error:null,loading:!1})}else{let r=o&&(!t.type||t.type===`application/octet-stream`),i=r?t.slice(0,t.size,o):t;if(c=URL.createObjectURL(i),e){URL.revokeObjectURL(c),c=null;return}f({blobUrl:c,blob:i,text:null,mime:r?o:n,error:null,loading:!1})}}}).catch(t=>{e||f({blobUrl:null,blob:null,text:null,mime:null,error:String(t instanceof Error?t.message:t),loading:!1})}),()=>{e=!0,c&&URL.revokeObjectURL(c)}},[u]),d}function J(e,t){let{isPublic:n,streamUrl:r,mintTicket:i}=H(e),a=`${n?`pub`:`ws`}:${e}:${t}`,[o,s]=(0,g.useState)({src:null,error:null,loading:!0}),[c,l]=(0,g.useState)(a);return a!==c&&(l(a),s({src:null,error:null,loading:!0})),(0,g.useEffect)(()=>{let e=!1;return i(t).then(n=>{e||s(n?{src:r(t),error:null,loading:!1}:{src:null,error:`Could not authorize stream`,loading:!1})}).catch(t=>{e||s({src:null,error:t instanceof Error?t.message:String(t),loading:!1})}),()=>{e=!0}},[a]),o}function Y({kind:e,value:t,onChange:n,placeholder:r,rows:a=16,fill:o=!1}){return e===`markdown`?(0,_.jsx)(G,{value:t,onChange:n,placeholder:r,fill:o}):(0,_.jsx)(`textarea`,{value:t,onChange:e=>n(e.target.value),rows:o?void 0:a,placeholder:r,spellCheck:!1,className:i(`flex w-full rounded-md border border-input bg-transparent px-3 py-2 font-mono text-xs leading-relaxed shadow-elevation-1 transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,o&&`h-full min-h-0 resize-none`)})}var X=1e6;function Z(e){if(e.schema===`data/schema/note`)return`markdown`;if(e.schema!==`data/schema/file`)return null;let t=m(String(e.metadata?.contentType??``),N(e));return t===`markdown`?`markdown`:t===`text`?`text`:null}function Q(e){return e.schema===`data/schema/file`&&Z(e)!=null}function $(e){let t=Number(e.metadata?.size??0);return Number.isFinite(t)&&t>1e6}async function ee(e,t,n,r={}){let i=N(t)||`document-${t.id}.txt`,a=String(t.metadata?.contentType??``)||(Z(t)===`markdown`?`text/markdown`:`text/plain`),o=n.endsWith(`
3
3
  `)?n:`${n}\n`,s=new Blob([o],{type:a}),c=await h(e,s);await u(e,{id:t.id,schema:t.schema,schemaVersion:t.schemaVersion,...r.comment===void 0?{}:{comment:r.comment},checksumArray:[`sha256/${c.checksum}`],locations:[{url:c.url,metadata:{filename:i}}],metadata:{contentType:a,size:c.size,...r.metadata??{}}})}export{N as _,$ as a,J as c,R as d,H as f,P as g,F as h,Q as i,G as l,M as m,X as n,Y as o,L as p,Z as r,q as s,ee as t,I as u,O as v};
@@ -0,0 +1,41 @@
1
+ import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{Ct as t,ct as n,dt as r,ft as i,gt as a,ht as o,lt as s,mt as c,pt as l,ut as u,wt as d,xt as f}from"./react-DQazvoR7.js";var p=e(t(),1),m=e(d(),1),h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0});function _(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}g(_,`setRef`);function v(...e){return t=>{let n=!1,r=e.map(e=>{let r=_(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():_(e[t],null)}}}}g(v,`composeRefs`);function y(...e){return m.useCallback(v(...e),e)}g(y,`useComposedRefs`);var b=Object.defineProperty,x=(e,t)=>b(e,`name`,{value:t,configurable:!0});function S(e){let t=m.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];k(r)&&typeof ie==`function`&&(r=ie(r._payload)),m.Children.forEach(r,e=>{if(ee(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;k(n)&&typeof ie==`function`&&(n=ie(n._payload)),a=E(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=m.cloneElement(a,void 0,s):!o&&m.Children.count(r)===1&&m.isValidElement(r)&&(a=r);let c=a?O(a):void 0,l=y(n,c);if(!a){if(r||r===0)throw Error(o?re(e):ne(e));return r}let u=D(i,a.props??{});return a.type!==m.Fragment&&(u.ref=n?l:c),m.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}x(S,`createSlot`);var C=S(`Slot`),w=Symbol.for(`radix.slottable`);function T(e){let t=x(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=w,t}x(T,`createSlottable`);var E=x((e,t)=>{if(`child`in e.props){let t=e.props.child;return m.isValidElement(t)?m.cloneElement(t,void 0,e.props.children(t.props.children)):null}return m.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function D(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}x(D,`mergeProps`);function O(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}x(O,`getElementRef`);function ee(e){return m.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===w}x(ee,`isSlottable`);var te=Symbol.for(`react.lazy`);function k(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===te&&`_payload`in e&&A(e._payload)}x(k,`isLazyComponent`);function A(e){return typeof e==`object`&&!!e&&`then`in e}x(A,`isPromiseLike`);var ne=x(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),re=x(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),ie=m.use,j=f(),ae=Object.defineProperty,oe=(e,t)=>ae(e,`name`,{value:t,configurable:!0}),M=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=S(`Primitive.${t}`),r=m.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function N(e,t){e&&p.flushSync(()=>e.dispatchEvent(t))}oe(N,`dispatchDiscreteCustomEvent`);var se=Object.defineProperty,ce=m.forwardRef(((e,t)=>se(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,j.jsx)(M.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),le=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ue=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),P=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),de=e=>{let t=P(e);return t.charAt(0).toUpperCase()+t.slice(1)},fe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},pe=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},me=(0,m.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,m.createElement)(`svg`,{ref:c,...fe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:le(`lucide`,i),...!a&&!pe(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,m.createElement)(e,t)),...Array.isArray(a)?a:[a]])),F=(e,t)=>{let n=(0,m.forwardRef)(({className:n,...r},i)=>(0,m.createElement)(me,{ref:i,iconNode:t,className:le(`lucide-${ue(de(e))}`,`lucide-${e}`,n),...r}));return n.displayName=de(e),n},he=F(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),ge=F(`aperture`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m14.31 8 5.74 9.94`,key:`1y6ab4`}],[`path`,{d:`M9.69 8h11.48`,key:`1wxppr`}],[`path`,{d:`m7.38 12 5.74-9.94`,key:`1grp0k`}],[`path`,{d:`M9.69 16 3.95 6.06`,key:`libnyf`}],[`path`,{d:`M14.31 16H2.83`,key:`x5fava`}],[`path`,{d:`m16.62 12-5.74 9.94`,key:`1vwawt`}]]),_e=F(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),ve=F(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),ye=F(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),be=F(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),xe=F(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),Se=F(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Ce=F(`arrow-up-from-line`,[[`path`,{d:`m18 9-6-6-6 6`,key:`kcunyi`}],[`path`,{d:`M12 3v14`,key:`7cf3v8`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),we=F(`arrow-up-narrow-wide`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h10`,key:`jvxblo`}]]),Te=F(`arrow-up-wide-narrow`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 16h7`,key:`uosisv`}],[`path`,{d:`M11 20h4`,key:`1krc32`}]]),Ee=F(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),De=F(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),Oe=F(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),ke=F(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ae=F(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),je=F(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),Me=F(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Ne=F(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Pe=F(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Fe=F(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Ie=F(`brush`,[[`path`,{d:`m11 10 3 3`,key:`fzmg1i`}],[`path`,{d:`M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z`,key:`p4q2r7`}],[`path`,{d:`M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031`,key:`wy6l02`}]]),Le=F(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),Re=F(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),ze=F(`calendar-days`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),Be=F(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),Ve=F(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),He=F(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ue=F(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),We=F(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ge=F(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Ke=F(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),qe=F(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),Je=F(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Ye=F(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Xe=F(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Ze=F(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Qe=F(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),$e=F(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),et=F(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),tt=F(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),nt=F(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),rt=F(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),it=F(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),at=F(`code`,[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]),ot=F(`columns-3`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),st=F(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ct=F(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),lt=F(`corner-left-up`,[[`path`,{d:`M14 9 9 4 4 9`,key:`1af5af`}],[`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`,key:`1blwi3`}]]),ut=F(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),dt=F(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),ft=F(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),pt=F(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),mt=F(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),ht=F(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),gt=F(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),_t=F(`expand`,[[`path`,{d:`m15 15 6 6`,key:`1s409w`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}],[`path`,{d:`M21 16v5h-5`,key:`1ck2sf`}],[`path`,{d:`M21 8V3h-5`,key:`1qoq8a`}],[`path`,{d:`M3 16v5h5`,key:`1t08am`}],[`path`,{d:`m3 21 6-6`,key:`wwnumi`}],[`path`,{d:`M3 8V3h5`,key:`1ln10m`}],[`path`,{d:`M9 9 3 3`,key:`v551iv`}]]),vt=F(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),yt=F(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),bt=F(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),xt=F(`file-archive`,[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),St=F(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),Ct=F(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),wt=F(`file-search`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]]),Tt=F(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),Et=F(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Dt=F(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Ot=F(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),kt=F(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),At=F(`flag`,[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]),jt=F(`flashlight-off`,[[`path`,{d:`M11.652 6H18`,key:`voqkpr`}],[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6`,key:`dzyf92`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007`,key:`1hvcfn`}]]),Mt=F(`flashlight`,[[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z`,key:`17vh7j`}],[`path`,{d:`M6 6h12`,key:`n6hhss`}]]),Nt=F(`focus`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),Pt=F(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Ft=F(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),It=F(`folder-search`,[[`path`,{d:`M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1`,key:`1bw5m7`}],[`path`,{d:`m21 21-1.9-1.9`,key:`1g2n9r`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}]]),Lt=F(`folder-symlink`,[[`path`,{d:`M2 9.35V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7`,key:`y8kt7d`}],[`path`,{d:`m8 16 3-3-3-3`,key:`rlqrt1`}]]),Rt=F(`folder-sync`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5`,key:`1dkoa9`}],[`path`,{d:`M12 10v4h4`,key:`1czhmt`}],[`path`,{d:`m12 14 1.535-1.605a5 5 0 0 1 8 1.5`,key:`lvuxfi`}],[`path`,{d:`M22 22v-4h-4`,key:`1ewp4q`}],[`path`,{d:`m22 18-1.535 1.605a5 5 0 0 1-8-1.5`,key:`14ync0`}]]),zt=F(`folder-tree`,[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]),Bt=F(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Vt=F(`forward`,[[`path`,{d:`m15 17 5-5-5-5`,key:`nf172w`}],[`path`,{d:`M4 18v-2a4 4 0 0 1 4-4h12`,key:`jmiej9`}]]),Ht=F(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),Ut=F(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),Wt=F(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Gt=F(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),Kt=F(`hard-drive-download`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M10 18h.01`,key:`h775k`}]]),qt=F(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Jt=F(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),Yt=F(`heading-1`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`m17 12 3-2v8`,key:`1hhhft`}]]),Xt=F(`heading-2`,[[`path`,{d:`M4 12h8`,key:`17cfdx`}],[`path`,{d:`M4 18V6`,key:`1rz3zl`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}],[`path`,{d:`M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1`,key:`9jr5yi`}]]),Zt=F(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),Qt=F(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),$t=F(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),en=F(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),tn=F(`image-up`,[[`path`,{d:`M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21`,key:`9csbqa`}],[`path`,{d:`m14 19.5 3-3 3 3`,key:`9vmjn0`}],[`path`,{d:`M17 22v-5.5`,key:`1aa6fl`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),nn=F(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),rn=F(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),an=F(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),on=F(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),sn=F(`infinity`,[[`path`,{d:`M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8`,key:`18ogeb`}]]),cn=F(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),ln=F(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),un=F(`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`}]]),dn=F(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),fn=F(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),pn=F(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),mn=F(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),hn=F(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),gn=F(`layout-list`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}],[`path`,{d:`M14 4h7`,key:`3xa0d5`}],[`path`,{d:`M14 9h7`,key:`1icrd9`}],[`path`,{d:`M14 15h7`,key:`1mj8o2`}],[`path`,{d:`M14 20h7`,key:`11slyb`}]]),_n=F(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),vn=F(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),yn=F(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),bn=F(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),xn=F(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Sn=F(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Cn=F(`locate-fixed`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),wn=F(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),Tn=F(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),En=F(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Dn=F(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),On=F(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),kn=F(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),An=F(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),jn=F(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Mn=F(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),Nn=F(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]),Pn=F(`message-square-text`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]),Fn=F(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),In=F(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),Ln=F(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),Rn=F(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),zn=F(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),Bn=F(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Vn=F(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),Hn=F(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),Un=F(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),Wn=F(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),Gn=F(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Kn=F(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),qn=F(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Jn=F(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Yn=F(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Xn=F(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Zn=F(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),Qn=F(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),$n=F(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),er=F(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),tr=F(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),nr=F(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),rr=F(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),ir=F(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),ar=F(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),or=F(`reply-all`,[[`path`,{d:`m12 17-5-5 5-5`,key:`1s3y5u`}],[`path`,{d:`M22 18v-2a4 4 0 0 0-4-4H7`,key:`1fcyog`}],[`path`,{d:`m7 17-5-5 5-5`,key:`1ed8i2`}]]),sr=F(`reply`,[[`path`,{d:`M20 18v-2a4 4 0 0 0-4-4H4`,key:`5vmcpk`}],[`path`,{d:`m9 17-5-5 5-5`,key:`nvlc11`}]]),cr=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),lr=F(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),ur=F(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),dr=F(`scan-eye`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]),fr=F(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]),pr=F(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),mr=F(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),hr=F(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),gr=F(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),_r=F(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),vr=F(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),yr=F(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),br=F(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),xr=F(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Sr=F(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Cr=F(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),wr=F(`shrink`,[[`path`,{d:`m15 15 6 6m-6-6v4.8m0-4.8h4.8`,key:`17vawe`}],[`path`,{d:`M9 19.8V15m0 0H4.2M9 15l-6 6`,key:`chjx8e`}],[`path`,{d:`M15 4.2V9m0 0h4.8M15 9l6-6`,key:`lav6yq`}],[`path`,{d:`M9 4.2V9m0 0H4.2M9 9 3 3`,key:`1pxi2q`}]]),Tr=F(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),Er=F(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Dr=F(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Or=F(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),kr=F(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Ar=F(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),jr=F(`sticky-note`,[[`path`,{d:`M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z`,key:`1dfntj`}],[`path`,{d:`M15 3v5a1 1 0 0 0 1 1h5`,key:`6s6qgf`}]]),Mr=F(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Nr=F(`table`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]),Pr=F(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Fr=F(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),Ir=F(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Lr=F(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Rr=F(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),zr=F(`unfold-horizontal`,[[`path`,{d:`M16 12h6`,key:`15xry1`}],[`path`,{d:`M8 12H2`,key:`1jqql6`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 15 3-3-3-3`,key:`wjy7rq`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}]]),Br=F(`unfold-vertical`,[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]),Vr=F(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),Hr=F(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Ur=F(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Wr=F(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Gr=F(`webhook`,[[`path`,{d:`M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2`,key:`q3hayz`}],[`path`,{d:`m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06`,key:`1go1hn`}],[`path`,{d:`m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8`,key:`qlwsc0`}]]),Kr=F(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),qr=F(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),Jr=F(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Yr=F(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Xr=F(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Zr=F(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),Qr=F(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),$r=Object.defineProperty,I=(e,t)=>$r(e,`name`,{value:t,configurable:!0});function ei(e,t){let n=m.createContext(t);n.displayName=e+`Context`;let r=I(e=>{let{children:t,...r}=e,i=m.useMemo(()=>r,Object.values(r));return(0,j.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=m.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return I(i,`useContext`),[r,i]}I(ei,`createContext`);function L(e,t=[]){let n=[];function r(t,r){let i=m.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=I(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=m.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=m.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return I(s,`useContext`),[o,s]}I(r,`createContext`);let i=I(()=>{let t=n.map(e=>m.createContext(e));return I(function(n){let r=n?.[e]||t;return m.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ti(i,...t)]}I(L,`createContextScope`);function ti(...e){let t=e[0];if(e.length===1)return t;let n=I(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return I(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}I(ti,`composeContextScopes`);var ni=Object.defineProperty,ri=(e,t)=>ni(e,`name`,{value:t,configurable:!0}),ii=!!(typeof window<`u`&&window.document&&window.document.createElement);function R(e,t,{checkForDefaultPrevented:n=!0}={}){return ri(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}ri(R,`composeEventHandlers`);function ai(e){if(!ii)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}ri(ai,`getOwnerWindow`);function oi(e){if(!ii)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}ri(oi,`getOwnerDocument`);function si(e,t=!1){let{activeElement:n}=oi(e);if(!n?.nodeName)return null;if(ci(n)&&n.contentDocument)return si(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=oi(n).getElementById(e);if(t)return t}}return n}ri(si,`getActiveElement`);function ci(e){return e.tagName===`IFRAME`}ri(ci,`isFrame`);var z=globalThis?.document?m.useLayoutEffect:()=>{},li=Object.defineProperty,ui=(e,t)=>li(e,`name`,{value:t,configurable:!0}),di=m.useId||(()=>void 0),fi=0;function pi(e){let[t,n]=m.useState(di());return z(()=>{e||n(e=>e??String(fi++))},[e]),e||(t?`radix-${t}`:``)}ui(pi,`useId`);var mi=Object.defineProperty,hi=(e,t)=>mi(e,`name`,{value:t,configurable:!0}),gi=m.useEffectEvent,_i=m.useInsertionEffect;function vi(e){if(typeof gi==`function`)return gi(e);let t=m.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof _i==`function`?_i(()=>{t.current=e}):z(()=>{t.current=e}),m.useMemo(()=>((...e)=>t.current?.(...e)),[])}hi(vi,`useEffectEvent`);var yi=Object.defineProperty,bi=(e,t)=>yi(e,`name`,{value:t,configurable:!0}),xi=m.useInsertionEffect||z;function Si({prop:e,defaultProp:t,onChange:n=bi(()=>{},`onChange`),caller:r}){let[i,a,o]=Ci({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,m.useCallback(t=>{if(s){let n=wi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}bi(Si,`useControllableState`);function Ci({defaultProp:e,onChange:t}){let[n,r]=m.useState(e),i=m.useRef(n),a=m.useRef(t);return xi(()=>{a.current=t},[t]),m.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}bi(Ci,`useUncontrolledState`);function wi(e){return typeof e==`function`}bi(wi,`isFunction`);var Ti=Symbol(`RADIX:SYNC_STATE`);function Ei(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=vi(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=m.useReducer((t,n)=>{if(n.type===Ti)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,h=m.useRef(p);m.useEffect(()=>{h.current!==p&&(h.current=p,c||l(p))},[p,h,c]);let g=m.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return m.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Ti,state:i})},[i,d.state,c]),[g,f]}bi(Ei,`useControllableStateReducer`);var Di=Object.defineProperty,Oi=(e,t)=>Di(e,`name`,{value:t,configurable:!0});function B(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>((...e)=>t.current?.(...e)),[])}Oi(B,`useCallbackRef`);var ki=Object.defineProperty,V=(e,t)=>ki(e,`name`,{value:t,configurable:!0}),Ai=`dismissableLayer.update`,ji=`dismissableLayer.pointerDownOutside`,Mi=`dismissableLayer.focusOutside`,Ni,Pi=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Fi=m.forwardRef(V(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=m.useContext(Pi),[d,f]=m.useState(null),p=d?.ownerDocument??globalThis?.document,[,h]=m.useState({}),g=y(t,f),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v?_.indexOf(v):-1,x=d?_.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=m.useRef(!1),T=zi(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:m.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=Bi(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),D=d?x===_.length-1:!1,O=B(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return m.useEffect(()=>{if(D)return p.addEventListener(`keydown`,O,{capture:!0}),()=>p.removeEventListener(`keydown`,O,{capture:!0})},[p,D,O]),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ni=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Vi(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Ni))}},[d,p,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Vi())},[d,u]),m.useEffect(()=>{let e=V(()=>h({}),`handleUpdate`);return document.addEventListener(Ai,e),()=>document.removeEventListener(Ai,e)},[]),(0,j.jsx)(M.div,{...l,ref:g,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:R(e.onFocusCapture,E.onFocusCapture),onBlurCapture:R(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`)),Ii=m.forwardRef(V(function(e,t){let n=m.useContext(Pi),r=m.useRef(null),i=y(t,r);return m.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,j.jsx)(M.div,{...e,ref:i})},`DismissableLayerBranch`));function Li(){let e=m.useContext(Pi),[t,n]=m.useState(null);return m.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}V(Li,`useDismissableLayerSurface`);var Ri=V(()=>!0,`IS_TRUE`);function zi(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Ri}=t,s=B(e),c=m.useRef(!1),l=m.useRef(!1),u=m.useRef(new Map),d=m.useRef(()=>{});return m.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}V(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}V(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}V(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}V(p,`handleInteractionBubble`);let m=V(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Hi(ji,s,p,{discrete:!0})};if(V(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:V(()=>c.current=!0,`onPointerDownCapture`)}}V(zi,`usePointerDownOutside`);function Bi(e,t=globalThis?.document){let n=B(e),r=m.useRef(!1);return m.useEffect(()=>{let e=V(e=>{e.target&&!r.current&&Hi(Mi,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:V(()=>r.current=!0,`onFocusCapture`),onBlurCapture:V(()=>r.current=!1,`onBlurCapture`)}}V(Bi,`useFocusOutside`);function Vi(){let e=new CustomEvent(Ai);document.dispatchEvent(e)}V(Vi,`dispatchUpdate`);function Hi(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?N(i,a):i.dispatchEvent(a)}V(Hi,`handleAndDispatchCustomEvent`);var Ui=Fi,Wi=Ii,Gi=Object.defineProperty,H=(e,t)=>Gi(e,`name`,{value:t,configurable:!0}),Ki=`focusScope.autoFocusOnMount`,qi=`focusScope.autoFocusOnUnmount`,Ji={bubbles:!1,cancelable:!0},Yi=m.forwardRef(H(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=m.useState(null),l=B(i),u=B(a),d=m.useRef(null),f=y(t,c),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:U(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||U(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&U(s)};H(e,`handleFocusIn`),H(t,`handleFocusOut`),H(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),m.useEffect(()=>{if(s){na.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Ki,Ji);s.addEventListener(Ki,l),s.dispatchEvent(t),t.defaultPrevented||(Xi(aa(Qi(s)),{select:!0}),document.activeElement===e&&U(s))}return()=>{s.removeEventListener(Ki,l),setTimeout(()=>{let t=new CustomEvent(qi,Ji);s.addEventListener(qi,u),s.dispatchEvent(t),t.defaultPrevented||U(e??document.body,{select:!0}),s.removeEventListener(qi,u),na.remove(p)},0)}}},[s,l,u,p]);let h=m.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Zi(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&U(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&U(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)(M.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})},`FocusScope`));function Xi(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(U(r,{select:t}),document.activeElement!==n)return}H(Xi,`focusFirst`);function Zi(e){let t=Qi(e);return[$i(t,e),$i(t.reverse(),e)]}H(Zi,`getTabbableEdges`);function Qi(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:H(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}H(Qi,`getTabbableCandidates`);function $i(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ea(r,{upTo:t})))return r}H($i,`findVisible`);function ea(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}H(ea,`isHidden`);function ta(e){return e instanceof HTMLInputElement&&`select`in e}H(ta,`isSelectableInput`);function U(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ta(e)&&t&&e.select()}}H(U,`focus`);var na=ra();function ra(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ia(e,t),e.unshift(t)},remove(t){e=ia(e,t),e[0]?.resume()}}}H(ra,`createFocusScopesStack`);function ia(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}H(ia,`arrayRemove`);function aa(e){return e.filter(e=>e.tagName!==`A`)}H(aa,`removeLinks`);var oa=Object.defineProperty,sa=m.forwardRef(((e,t)=>oa(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=m.useState(!1);z(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?p.createPortal((0,j.jsx)(M.div,{...r,ref:t}),o):null},`Portal`)),ca=Object.defineProperty,W=(e,t)=>ca(e,`name`,{value:t,configurable:!0});function la(e,t){return m.useReducer((e,n)=>t[e][n]??e,e)}W(la,`useStateMachine`);var ua=W(e=>{let{present:t,children:n}=e,r=da(t),i=typeof n==`function`?n({present:r.isPresent}):m.Children.only(n),a=pa(r.ref,ha(i));return typeof n==`function`||r.isPresent?m.cloneElement(i,{ref:a}):null},`Presence`);function da(e){let[t,n]=m.useState(),r=m.useRef(null),i=m.useRef(e),a=m.useRef(`none`),o=m.useRef(void 0),[s,c]=la(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return m.useEffect(()=>{s===`mounted`?(a.current=o.current??ma(r.current),o.current=void 0):a.current=`none`},[s]),z(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=ma(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),z(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=W(a=>{let o=ma(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=W(e=>{e.target===t&&(a.current=ma(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:m.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=ma(t)}else r.current=null;n(e)},[])}}W(da,`usePresence`);function fa(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}W(fa,`setRef`);function pa(...e){let t=m.useRef(e);return t.current=e,m.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=fa(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():fa(n[e],null)}}},[])}W(pa,`useStableComposedRefs`);function ma(e){return e?.animationName||`none`}W(ma,`getAnimationName`);function ha(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}W(ha,`getElementRef`);var ga=Object.defineProperty,_a=(e,t)=>ga(e,`name`,{value:t,configurable:!0}),va=0,ya=null;function ba(e){return xa(),e.children}_a(ba,`FocusGuards`);function xa(){m.useEffect(()=>{ya||={start:Sa(),end:Sa()};let{start:e,end:t}=ya;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),va++,()=>{va===1&&(ya?.start.remove(),ya?.end.remove(),ya=null),va=Math.max(0,va-1)}},[])}_a(xa,`useFocusGuards`);function Sa(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}_a(Sa,`createFocusGuard`);var G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)};function Ca(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function wa(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ta=`right-scroll-bar-position`,Ea=`width-before-scroll-bar`,Da=`with-scroll-bars-hidden`,Oa=`--removed-body-scroll-bar-size`;function ka(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Aa(e,t){var n=(0,m.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ja=typeof window<`u`?m.useLayoutEffect:m.useEffect,Ma=new WeakMap;function Na(e,t){var n=Aa(t||null,function(t){return e.forEach(function(e){return ka(e,t)})});return ja(function(){var t=Ma.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||ka(e,null)}),i.forEach(function(e){r.has(e)||ka(e,a)})}Ma.set(n,e)},[e]),n}function Pa(e){return e}function Fa(e,t){t===void 0&&(t=Pa);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ia(e){e===void 0&&(e={});var t=Fa(null);return t.options=G({async:!0,ssr:!1},e),t}var La=function(e){var t=e.sideCar,n=Ca(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return m.createElement(r,G({},n))};La.isSideCarExport=!0;function Ra(e,t){return e.useMedium(t),La}var za=Ia(),Ba=function(){},Va=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:Ba,onWheelCapture:Ba,onTouchMoveCapture:Ba}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Ca(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Na([n,t]),w=G(G({},x),i);return m.createElement(m.Fragment,null,u&&m.createElement(S,{sideCar:za,removeScrollBar:l,shards:d,noRelative:p,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?m.cloneElement(m.Children.only(s),G(G({},w),{ref:C})):m.createElement(y,G({},w,{className:c,ref:C}),s))});Va.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Va.classNames={fullWidth:Ea,zeroRight:Ta};var Ha,Ua=function(){if(Ha)return Ha;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Wa(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ua();return t&&e.setAttribute(`nonce`,t),e}function Ga(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ka(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var qa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wa())&&(Ga(t,n),Ka(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ja=function(){var e=qa();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ya=function(){var e=Ja();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Xa={left:0,top:0,right:0,gap:0},Za=function(e){return parseInt(e||``,10)||0},Qa=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Za(n),Za(r),Za(i)]},$a=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Xa;var t=Qa(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eo=Ya(),to=`data-scroll-locked`,no=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${Da} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${to}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${Ta} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${Ea} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${Ta} .${Ta} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${Ea} .${Ea} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${to}] {
36
+ ${Oa}: ${s}px;
37
+ }
38
+ `},ro=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},io=function(){m.useEffect(function(){return document.body.setAttribute(to,(ro()+1).toString()),function(){var e=ro()-1;e<=0?document.body.removeAttribute(to):document.body.setAttribute(to,e.toString())}},[])},ao=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;io();var a=m.useMemo(function(){return $a(i)},[i]);return m.createElement(eo,{styles:no(a,!t,i,n?``:`!important`)})},oo=!1;if(typeof window<`u`)try{var so=Object.defineProperty({},"passive",{get:function(){return oo=!0,!0}});window.addEventListener(`test`,so,so),window.removeEventListener(`test`,so,so)}catch{oo=!1}var co=oo?{passive:!1}:!1,lo=function(e){return e.tagName===`TEXTAREA`},uo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!lo(e)&&n[t]===`visible`)},fo=function(e){return uo(e,`overflowY`)},po=function(e){return uo(e,`overflowX`)},mo=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),_o(e,r)){var i=vo(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ho=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},go=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},_o=function(e,t){return e===`v`?fo(t):po(t)},vo=function(e,t){return e===`v`?ho(t):go(t)},yo=function(e,t){return e===`h`&&t===`rtl`?-1:1},bo=function(e,t,n,r,i){var a=yo(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=vo(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&_o(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},xo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},So=function(e){return[e.deltaX,e.deltaY]},Co=function(e){return e&&`current`in e?e.current:e},wo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},To=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},Eo=0,Do=[];function Oo(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(Eo++)[0],a=m.useState(Ya)[0],o=m.useRef(e);m.useEffect(function(){o.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=wa([e.lockRef.current],(e.shards||[]).map(Co),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=m.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=xo(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=mo(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=mo(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return bo(h,t,e,h===`h`?s:c,!0)},[]),c=m.useCallback(function(e){var n=e;if(!(!Do.length||Do[Do.length-1]!==a)){var r=`deltaY`in n?So(n):xo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&wo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Co).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=m.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ko(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=m.useCallback(function(e){n.current=xo(e),r.current=void 0},[]),d=m.useCallback(function(t){l(t.type,So(t),t.target,s(t,e.lockRef.current))},[]),f=m.useCallback(function(t){l(t.type,xo(t),t.target,s(t,e.lockRef.current))},[]);m.useEffect(function(){return Do.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,co),document.addEventListener(`touchmove`,c,co),document.addEventListener(`touchstart`,u,co),function(){Do=Do.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,co),document.removeEventListener(`touchmove`,c,co),document.removeEventListener(`touchstart`,u,co)}},[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(a,{styles:To(i)}):null,p?m.createElement(ao,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ko(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ao=Ra(za,Oo),jo=m.forwardRef(function(e,t){return m.createElement(Va,G({},e,{ref:t,sideCar:Ao}))});jo.classNames=Va.classNames;var Mo=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},No=new WeakMap,Po=new WeakMap,Fo={},Io=0,Lo=function(e){return e&&(e.host||Lo(e.parentNode))},Ro=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Lo(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},zo=function(e,t,n,r){var i=Ro(t,Array.isArray(e)?e:[e]);Fo[n]||(Fo[n]=new WeakMap);var a=Fo[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(No.get(e)||0)+1,l=(a.get(e)||0)+1;No.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Po.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Io++,function(){o.forEach(function(e){var t=No.get(e)-1,i=a.get(e)-1;No.set(e,t),a.set(e,i),t||(Po.has(e)||e.removeAttribute(r),Po.delete(e)),i||e.removeAttribute(n)}),Io--,Io||(No=new WeakMap,No=new WeakMap,Po=new WeakMap,Fo={})}},Bo=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Mo(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),zo(r,i,n,`aria-hidden`)):function(){return null}},Vo=Object.defineProperty,K=(e,t)=>Vo(e,`name`,{value:t,configurable:!0}),Ho=`Dialog`,[Uo,Wo]=L(Ho),[Go,q]=Uo(Ho),Ko=K(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=m.useRef(null),c=m.useRef(null),[l,u]=Si({prop:r,defaultProp:i??!1,onChange:a,caller:Ho}),[d,f]=m.useState(0),[p,h]=m.useState(0);return(0,j.jsx)(Go,{scope:t,triggerRef:s,contentRef:c,contentId:pi(),titleId:pi(),descriptionId:pi(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:h,open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),qo=`DialogTrigger`,Jo=m.forwardRef(K(function(e,t){let{__scopeDialog:n,...r}=e,i=q(qo,n),a=y(t,i.triggerRef);return(0,j.jsx)(M.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":ms(i.open),...r,ref:a,onClick:R(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Yo=`DialogPortal`,[Xo,Zo]=Uo(Yo,{forceMount:void 0}),Qo=K(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=q(Yo,t);return(0,j.jsx)(Xo,{scope:t,forceMount:n,children:m.Children.map(r,e=>(0,j.jsx)(ua,{present:n||a.open,children:(0,j.jsx)(sa,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),$o=`DialogOverlay`,es=m.forwardRef(K(function(e,t){let n=Zo($o,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=q($o,e.__scopeDialog);return a.modal?(0,j.jsx)(ua,{present:r||a.open,children:(0,j.jsx)(ns,{...i,ref:t})}):null},`DialogOverlay`)),ts=S(`DialogOverlay.RemoveScroll`),ns=m.forwardRef(K(function(e,t){let{__scopeDialog:n,...r}=e,i=q($o,n),a=y(t,Li());return(0,j.jsx)(jo,{as:ts,allowPinchZoom:!0,shards:[i.contentRef],children:(0,j.jsx)(M.div,{"data-state":ms(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),rs=`DialogContent`,is=m.forwardRef(K(function(e,t){let n=Zo(rs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=q(rs,e.__scopeDialog);return(0,j.jsx)(ua,{present:r||a.open,children:a.modal?(0,j.jsx)(as,{...i,ref:t}):(0,j.jsx)(os,{...i,ref:t})})},`DialogContent`)),as=m.forwardRef(K(function(e,t){let n=q(rs,e.__scopeDialog),r=m.useRef(null),i=y(t,n.contentRef,r);return m.useEffect(()=>{let e=r.current;if(e)return Bo(e)},[]),(0,j.jsx)(ss,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),os=m.forwardRef(K(function(e,t){let n=q(rs,e.__scopeDialog),r=m.useRef(!1),i=m.useRef(!1);return(0,j.jsx)(ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),ss=m.forwardRef(K(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=q(rs,n);return xa(),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(Yi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(Fi,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":ms(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),cs=`DialogTitle`,ls=m.forwardRef(K(function(e,t){let{__scopeDialog:n,...r}=e,i=q(cs,n),{setTitleCount:a}=i;return z(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(M.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),us=`DialogDescription`,ds=m.forwardRef(K(function(e,t){let{__scopeDialog:n,...r}=e,i=q(us,n),{setDescriptionCount:a}=i;return z(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(M.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),fs=`DialogClose`,ps=m.forwardRef(K(function(e,t){let{__scopeDialog:n,...r}=e,i=q(fs,n);return(0,j.jsx)(M.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function ms(e){return e?`open`:`closed`}K(ms,`getState`);var hs=Object.defineProperty,J=(e,t)=>hs(e,`name`,{value:t,configurable:!0}),[gs,_s]=L(`AlertDialog`,[Wo]),Y=Wo(),vs=J(e=>{let{__scopeAlertDialog:t,...n}=e,r=Y(t);return(0,j.jsx)(Ko,{...r,...n,modal:!0})},`AlertDialog`),ys=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Y(n);return(0,j.jsx)(Jo,{...i,...r,ref:t})},`AlertDialogTrigger`)),bs=J(e=>{let{__scopeAlertDialog:t,...n}=e,r=Y(t);return(0,j.jsx)(Qo,{...r,...n})},`AlertDialogPortal`),xs=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Y(n);return(0,j.jsx)(es,{...i,...r,ref:t})},`AlertDialogOverlay`)),[Ss,Cs]=gs(`AlertDialogContent`),ws=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=Y(n),o=y(t,m.useRef(null)),s=m.useRef(null);return(0,j.jsx)(Ss,{scope:n,cancelRef:s,children:(0,j.jsx)(is,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:R(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),Ts=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Y(n);return(0,j.jsx)(ls,{...i,...r,ref:t})},`AlertDialogTitle`)),Es=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Y(n);return(0,j.jsx)(ds,{...i,...r,ref:t})},`AlertDialogDescription`)),Ds=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Y(n);return(0,j.jsx)(ps,{...i,...r,ref:t})},`AlertDialogAction`)),Os=`AlertDialogCancel`,ks=m.forwardRef(J(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Cs(Os,n),a=Y(n),o=y(t,i);return(0,j.jsx)(ps,{...a,...r,ref:o})},`AlertDialogCancel`)),As=vs,js=ys,Ms=bs,Ns=xs,Ps=ws,Fs=Ds,Is=ks,Ls=Ts,Rs=Es;function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(null,arguments)}var zs=Object.defineProperty,Bs=(e,t)=>zs(e,`name`,{value:t,configurable:!0});function Vs(e){let[t,n]=m.useState(void 0);return z(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Bs(Vs,`useSize`);var Hs=Object.defineProperty,Us=(e,t)=>Hs(e,`name`,{value:t,configurable:!0}),Ws=`Popper`,[Gs,Ks]=L(Ws),[qs,Js]=Gs(Ws),Ys=Us(e=>{let{__scopePopper:t,children:n}=e,[r,i]=m.useState(null),[a,o]=m.useState(void 0);return(0,j.jsx)(qs,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Xs=`PopperAnchor`,Zs=m.forwardRef(Us(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Js(Xs,n),o=m.useRef(null),s=a.onAnchorChange,c=y(t,m.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=m.useRef(null);m.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&ic(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,j.jsx)(M.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Qs=`PopperContent`,[$s,ec]=Gs(Qs),tc=m.forwardRef(Us(function(e,t){let{__scopePopper:d,side:f=`bottom`,sideOffset:p=0,align:h=`center`,alignOffset:g=0,arrowPadding:_=0,avoidCollisions:v=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:S=`partial`,hideWhenDetached:C=!1,updatePositionStrategy:w=`optimized`,onPlaced:T,...E}=e,D=Js(Qs,d),[O,ee]=m.useState(null),te=y(t,ee),[k,A]=m.useState(null),ne=Vs(k),re=ne?.width??0,ie=ne?.height??0,ae=f+(h===`center`?``:`-`+h),oe=typeof x==`number`?x:{top:0,right:0,bottom:0,left:0,...x},N=Array.isArray(b)?b:[b],se=N.length>0,ce={padding:oe,boundary:N.filter(nc),altBoundary:se},{refs:le,floatingStyles:ue,placement:P,isPositioned:de,middlewareData:fe}=o({strategy:`fixed`,placement:ae,whileElementsMounted:Us((...e)=>a(...e,{animationFrame:w===`always`}),`whileElementsMounted`),elements:{reference:D.anchor},middleware:[i({mainAxis:p+ie,alignmentAxis:g}),v&&l({mainAxis:!0,crossAxis:!1,limiter:S===`partial`?r():void 0,...ce}),v&&s({...ce}),c({...ce,apply:Us(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),k&&n({element:k,padding:_}),rc({arrowWidth:re,arrowHeight:ie}),C&&u({strategy:`referenceHidden`,...ce,boundary:se?ce.boundary:void 0})]}),pe=D.setPlacementState;z(()=>(pe(P),()=>{pe(void 0)}),[P,pe]);let[me,F]=ic(P),he=B(T);z(()=>{de&&he?.()},[de,he]);let ge=fe.arrow?.x,_e=fe.arrow?.y,ve=fe.arrow?.centerOffset!==0,[ye,be]=m.useState();return z(()=>{O&&be(window.getComputedStyle(O).zIndex)},[O]),(0,j.jsx)(`div`,{ref:le.setFloating,"data-radix-popper-content-wrapper":``,style:{...ue,transform:de?ue.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ye,"--radix-popper-transform-origin":[fe.transformOrigin?.x,fe.transformOrigin?.y].join(` `),...fe.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)($s,{scope:d,placedSide:me,placedAlign:F,onArrowChange:A,arrowX:ge,arrowY:_e,shouldHideArrow:ve,children:(0,j.jsx)(M.div,{"data-side":me,"data-align":F,...E,ref:te,style:{...E.style,animation:de?E.style?.animation:`none`}})})})},`PopperContent`));function nc(e){return e!==null}Us(nc,`isNotNull`);var rc=Us(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=ic(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function ic(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Us(ic,`getSideAndAlignFromPlacement`);var ac=Ys,oc=Zs,sc=tc,cc=Object.defineProperty,lc=(e,t)=>cc(e,`name`,{value:t,configurable:!0}),uc=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),dc=m.forwardRef(lc(function(e,t){return(0,j.jsx)(M.span,{...e,ref:t,style:{...uc,...e.style}})},`VisuallyHidden`)),fc=dc,pc=Object.defineProperty,Z=(e,t)=>pc(e,`name`,{value:t,configurable:!0}),[mc,hc]=L(`Tooltip`,[Ks]),gc=Ks(),_c=`TooltipProvider`,vc=700,yc=`tooltip.open`,[bc,xc]=mc(_c),Sc=Z(e=>{let{__scopeTooltip:t,delayDuration:n=vc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=m.useRef(!0),s=m.useRef(!1),c=m.useRef(0);return m.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,j.jsx)(bc,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:m.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:m.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:m.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Cc=`Tooltip`,[wc,Tc]=mc(Cc),Ec=Z(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=xc(Cc,e.__scopeTooltip),l=gc(t),[u,d]=m.useState(null),[f,p]=m.useState(void 0),h=pi(),g=m.useRef(0),_=o??c.disableHoverableContent,v=s??c.delayDuration,y=m.useRef(!1),[b,x]=Si({prop:r,defaultProp:i??!1,onChange:Z(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(yc))):c.onClose(),a?.(e)},`onChange`),caller:Cc}),S=m.useMemo(()=>b?y.current?`delayed-open`:`instant-open`:`closed`,[b]),C=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,x(!0)},[x]),w=m.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),T=m.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,x(!0),g.current=0},v)},[v,x]);m.useEffect(()=>()=>{g.current&&=(window.clearTimeout(g.current),0)},[]);let E=f??h;return(0,j.jsx)(ac,{...l,children:(0,j.jsx)(wc,{scope:t,contentId:E,setContentId:p,open:b,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:m.useCallback(()=>{_?w():(window.clearTimeout(g.current),g.current=0)},[w,_]),onOpen:C,onClose:w,disableHoverableContent:_,children:n})})},`Tooltip`),Dc=`TooltipTrigger`,Oc=m.forwardRef(Z(function(e,t){let{__scopeTooltip:n,...r}=e,i=Tc(Dc,n),a=xc(Dc,n),o=gc(n),s=y(t,m.useRef(null),i.onTriggerChange),c=m.useRef(!1),l=m.useRef(!1),u=m.useCallback(()=>c.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,j.jsx)(oc,{asChild:!0,...o,children:(0,j.jsx)(M.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:R(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:R(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:R(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:R(e.onBlur,i.onClose),onClick:R(e.onClick,i.onClose)})})},`TooltipTrigger`)),kc=`TooltipPortal`,[Ac,jc]=mc(kc,{forceMount:void 0}),Mc=Z(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Tc(kc,t);return(0,j.jsx)(Ac,{scope:t,forceMount:n,children:(0,j.jsx)(ua,{present:n||a.open,children:(0,j.jsx)(sa,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),Nc=`TooltipContent`,Pc=m.forwardRef(Z(function(e,t){let n=jc(Nc,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Tc(Nc,e.__scopeTooltip);return(0,j.jsx)(ua,{present:r||o.open,children:o.disableHoverableContent?(0,j.jsx)(Lc,{side:i,...a,ref:t}):(0,j.jsx)(Fc,{side:i,...a,ref:t})})},`TooltipContent`)),Fc=m.forwardRef(Z(function(e,t){let n=Tc(Nc,e.__scopeTooltip),r=xc(Nc,e.__scopeTooltip),i=m.useRef(null),a=y(t,i),[o,s]=m.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=m.useCallback(()=>{s(null),d(!1)},[d]),p=m.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=zc(r,Rc(r,n.getBoundingClientRect())),a=Bc(t.getBoundingClientRect()),o=Hc([...i,...a]);s(o),d(!0)},[d]);return m.useEffect(()=>()=>f(),[f]),m.useEffect(()=>{if(c&&u){let e=Z(e=>p(e,u),`handleTriggerLeave`),t=Z(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),m.useEffect(()=>{if(o){let e=Z(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Vc(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,j.jsx)(Lc,{...e,ref:a})},`TooltipContentHoverable`)),Ic=T(`TooltipContent`),Lc=m.forwardRef(Z(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Tc(Nc,n),u=gc(n),{onClose:d}=l;m.useEffect(()=>(document.addEventListener(yc,d),()=>document.removeEventListener(yc,d)),[d]),m.useEffect(()=>{if(l.trigger){let e=Z(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return z(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,j.jsx)(Fi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,j.jsxs)(sc,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,j.jsx)(Ic,{children:r}),i?(0,j.jsx)(fc,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Rc(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Z(Rc,`getExitSideFromRect`);function zc(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Z(zc,`getPaddedExitPoints`);function Bc(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Z(Bc,`getPointsFromRect`);function Vc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Z(Vc,`isPointInPolygon`);function Hc(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Uc(t)}Z(Hc,`getHull`);function Uc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Z(Uc,`getHullPresorted`);var Wc=Sc,Gc=Ec,Kc=Oc,qc=Mc,Jc=Pc,Yc=Object.defineProperty,Xc=(e,t)=>Yc(e,`name`,{value:t,configurable:!0}),Zc=`Avatar`,[Qc,$c]=L(Zc),el=[0,()=>void 0],[tl,nl]=Qc(Zc),rl=m.forwardRef(Xc(function(e,t){let{__scopeAvatar:n,...r}=e,[i,a]=m.useState(`idle`),[o,s]=ul();return(0,j.jsx)(tl,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:a,imageCount:o,setImageCount:s,children:(0,j.jsx)(M.span,{...r,ref:t})})},`Avatar`)),il=`AvatarImage`,al=m.forwardRef(Xc(function(e,t){let{__scopeAvatar:n,src:r,onLoadingStatusChange:i,...a}=e,o=nl(il,n);o.setImageCount;let s=cl(r,{referrerPolicy:a.referrerPolicy,crossOrigin:a.crossOrigin,loadingStatus:o.imageLoadingStatus,setLoadingStatus:o.setImageLoadingStatus}),c=B(e=>{i?.(e)}),l=m.useRef(s);return z(()=>{let e=l.current;l.current=s,s!==e&&c(s)},[s,c]),s===`loaded`?(0,j.jsx)(M.img,{...a,ref:t,src:r}):null},`AvatarImage`)),ol=`AvatarFallback`,sl=m.forwardRef(Xc(function(e,t){let{__scopeAvatar:n,delayMs:r,...i}=e,a=nl(ol,n),[o,s]=m.useState(r===void 0);return m.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,j.jsx)(M.span,{...i,ref:t}):null},`AvatarFallback`));function cl(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:i}){return z(()=>{if(!e){n(`error`);return}let t=new window.Image,a=Xc(e=>{let t=e.currentTarget;n(ll(t))},`handleLoad`),o=Xc(()=>n(`error`),`handleError`);return t.addEventListener(`load`,a),t.addEventListener(`error`,o),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,n(ll(t)),()=>{t.removeEventListener(`load`,a),t.removeEventListener(`error`,o),n(`idle`)}},[e,i,r,n]),t}Xc(cl,`useImageLoadingStatus`);function ll(e){return e.complete?e.naturalWidth>0?`loaded`:`error`:`loading`}Xc(ll,`getImageLoadingStatus`);function ul(){return el}Xc(ul,`useImageCount`);function dl(e){}Xc(dl,`useUpdateImageCount`);var fl=Object.defineProperty,Q=(e,t)=>fl(e,`name`,{value:t,configurable:!0});function pl(e){let t=e+`CollectionProvider`,[n,r]=L(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Q(e=>{let{scope:t,children:n}=e,r=m.useRef(null),a=m.useRef(new Map).current;return(0,j.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=S(s),l=m.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=y(t,a(s,n).collectionRef);return(0,j.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=S(u),p=m.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=m.useRef(null),s=y(t,o),c=a(u,n);return m.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,j.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function h(t){let n=a(e+`CollectionConsumer`,t);return m.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Q(h,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},h,r]}Q(pl,`createCollection`);var ml=new WeakMap,hl=class e extends Map{static{Q(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],ml.set(this,!0)}set(e,t){return ml.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=vl(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=gl(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=gl(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return gl(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function gl(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=_l(e,t);return n===-1?void 0:e[n]}Q(gl,`at`);function _l(e,t){let n=e.length,r=vl(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Q(_l,`toSafeIndex`);function vl(e){return e!==e||e===0?0:Math.trunc(e)}Q(vl,`toSafeInteger`);function yl(e){let t=e+`CollectionProvider`,[n,r]=L(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new hl,setItemMap:Q(()=>void 0,`setItemMap`)}),o=Q(({state:e,...t})=>e?(0,j.jsx)(c,{...t,state:e}):(0,j.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Q(e=>{let t=g();return(0,j.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Q(e=>{let{scope:t,children:n,state:r}=e,a=m.useRef(null),[o,s]=m.useState(null),c=y(a,s),[l,u]=r;return m.useEffect(()=>{if(!o)return;let e=Cl(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,j.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=S(l),d=m.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=y(t,a(l,n).collectionRef);return(0,j.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=S(f),h=m.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=m.useRef(null),[s,c]=m.useState(null),l=y(t,o,c),{setItemMap:u}=a(f,n),d=m.useRef(i);bl(d.current,i)||(d.current=i);let h=d.current;return m.useEffect(()=>{let e=h;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Sl):(t.set(s,{...e,element:s}),t.toSorted(Sl)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new hl(e)))}},[s,h,u]),(0,j.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});h.displayName=f;function g(){return m.useState(new hl)}Q(g,`useInitCollection`);function _(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Q(_,`useCollection`),[{Provider:o,Slot:d,ItemSlot:h},{createCollectionScope:r,useCollection:_,useInitCollection:g}]}Q(yl,`createCollection`);function bl(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Q(bl,`shallowEqual`);function xl(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Q(xl,`isElementPreceding`);function Sl(e,t){return!e[1].element||!t[1].element?0:xl(e[1].element,t[1].element)?-1:1}Q(Sl,`sortByDocumentPosition`);function Cl(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Q(Cl,`getChildListObserver`);var wl=Object.defineProperty,$=(e,t)=>wl(e,`name`,{value:t,configurable:!0}),Tl=`ToastProvider`,[El,Dl,Ol]=pl(`Toast`),[kl,Al]=L(`Toast`,[Ol]),[jl,Ml]=kl(Tl),Nl=$(e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,announcerContainer:o,children:s}=e,[c,l]=m.useState(null),[u,d]=m.useState(0),f=m.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Tl}\`. Expected non-empty \`string\`.`),(0,j.jsx)(El.Provider,{scope:t,children:(0,j.jsx)(jl,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:m.useCallback(()=>d(e=>e+1),[]),onToastRemove:m.useCallback(()=>d(e=>e-1),[]),isClosePausedRef:f,announcerContainer:o,children:s})})},`ToastProvider`),Pl=`ToastViewport`,Fl=[`F8`],Il=`toast.viewportPause`,Ll=`toast.viewportResume`,Rl=m.forwardRef($(function(e,t){let{__scopeToast:n,hotkey:r=Fl,label:i=`Notifications ({hotkey})`,...a}=e,o=Ml(Pl,n),s=Dl(n),c=m.useRef(null),l=m.useRef(null),u=m.useRef(null),d=m.useRef(null),f=y(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),h=o.toastCount>0;m.useEffect(()=>{let e=$(e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()},`handleKeyDown`);return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),m.useEffect(()=>{let e=c.current,t=d.current;if(h&&e&&t){let n=$(()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(Il);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},`handlePause`),r=$(()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(Ll);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},`handleResume`),i=$(t=>{e.contains(t.relatedTarget)||r()},`handleFocusOutResume`),a=$(()=>{e.contains(document.activeElement)||r()},`handlePointerLeaveResume`);return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[h,o.isClosePausedRef]);let g=m.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...lu(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return m.useEffect(()=>{let e=d.current;if(e){let t=$(t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=g({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);uu(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}},`handleKeyDown`);return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,g]),(0,j.jsxs)(Wi,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:h?void 0:`none`},children:[h&&(0,j.jsx)(Bl,{ref:l,onFocusFromOutsideViewport:()=>{uu(g({tabbingDirection:`forwards`}))}}),(0,j.jsx)(El.Slot,{scope:n,children:(0,j.jsx)(M.ol,{tabIndex:-1,...a,ref:f})}),h&&(0,j.jsx)(Bl,{ref:u,onFocusFromOutsideViewport:()=>{uu(g({tabbingDirection:`backwards`}))}})]})},`ToastViewport`)),zl=`ToastFocusProxy`,Bl=m.forwardRef($(function(e,t){let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=Ml(zl,n);return(0,j.jsx)(dc,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})},`ToastFocusProxy`)),Vl=`Toast`,Hl=`toast.swipeStart`,Ul=`toast.swipeMove`,Wl=`toast.swipeCancel`,Gl=`toast.swipeEnd`,Kl=m.forwardRef($(function(e,t){let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=Si({prop:r,defaultProp:i??!0,onChange:a,caller:Vl});return(0,j.jsx)(ua,{present:n||s,children:(0,j.jsx)(Yl,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:B(e.onPause),onResume:B(e.onResume),onSwipeStart:R(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:R(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:R(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:R(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})},`Toast`)),[ql,Jl]=kl(Vl,{onClose(){}}),Yl=m.forwardRef($(function(e,t){let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...g}=e,_=Ml(Vl,n),v=Dl(n),[b,x]=m.useState(null),S=y(t,x),C=m.useRef(null),w=m.useRef(null),T=i||_.duration,E=m.useRef(0),D=m.useRef(T),O=m.useRef(0),{onToastAdd:ee,onToastRemove:te}=_,k=B(()=>{b?.contains(document.activeElement)&&_.viewport?.focus(),o()}),A=m.useCallback(e=>{!e||e===1/0||(window.clearTimeout(O.current),E.current=new Date().getTime(),O.current=window.setTimeout(k,e))},[k]);m.useEffect(()=>{let e=_.viewport;if(e){let t=$(()=>{A(D.current),l?.()},`handleResume`),n=$(()=>{let e=new Date().getTime()-E.current;D.current-=e,window.clearTimeout(O.current),c?.()},`handlePause`);return e.addEventListener(Il,n),e.addEventListener(Ll,t),()=>{e.removeEventListener(Il,n),e.removeEventListener(Ll,t)}}},[_.viewport,T,c,l,A]),m.useEffect(()=>{a&&!_.isClosePausedRef.current&&A(T)},[a,T,_.isClosePausedRef,A]),m.useEffect(()=>()=>{window.clearTimeout(O.current)},[]),m.useEffect(()=>(ee(),()=>te()),[ee,te]);let ne=m.useMemo(()=>b?iu(b):null,[b]);return _.viewport?(0,j.jsxs)(j.Fragment,{children:[ne&&(0,j.jsx)(Xl,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:ne}),(0,j.jsx)(ql,{scope:n,onClose:k,children:p.createPortal((0,j.jsx)(El.ItemSlot,{scope:n,children:(0,j.jsx)(Ui,{asChild:!0,onEscapeKeyDown:R(s,e=>{v().some(t=>t.ref.current?.contains(e.target))||k()}),children:(0,j.jsx)(M.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":_.swipeDirection,...g,ref:S,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:R(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||k())}),onPointerDown:R(e.onPointerDown,e=>{e.button===0&&(C.current={x:e.clientX,y:e.clientY})}),onPointerMove:R(e.onPointerMove,e=>{if(!C.current)return;let t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=!!w.current,i=[`left`,`right`].includes(_.swipeDirection),a=[`left`,`up`].includes(_.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(w.current=l,au(Ul,d,f,{discrete:!1})):ou(l,_.swipeDirection,c)?(w.current=l,au(Hl,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)}),onPointerUp:R(e.onPointerUp,e=>{let t=w.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),w.current=null,C.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};ou(t,_.swipeDirection,_.swipeThreshold)?au(Gl,h,r,{discrete:!0}):au(Wl,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),_.viewport)})]}):null},`ToastImpl`)),Xl=$(e=>{let{__scopeToast:t,children:n,...r}=e,i=Ml(Vl,t),[a,o]=m.useState(!1),[s,c]=m.useState(!1);return su(()=>o(!0)),m.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,j.jsx)(sa,{asChild:!0,container:i.announcerContainer||void 0,children:(0,j.jsx)(dc,{...r,children:a&&(0,j.jsxs)(j.Fragment,{children:[i.label,` `,n]})})})},`ToastAnnounce`),Zl=m.forwardRef($(function(e,t){let{__scopeToast:n,...r}=e;return(0,j.jsx)(M.div,{...r,ref:t})},`ToastTitle`)),Ql=m.forwardRef($(function(e,t){let{__scopeToast:n,...r}=e;return(0,j.jsx)(M.div,{...r,ref:t})},`ToastDescription`)),$l=`ToastAction`,eu=m.forwardRef($(function(e,t){let{altText:n,...r}=e;return n.trim()?(0,j.jsx)(ru,{altText:n,asChild:!0,children:(0,j.jsx)(nu,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${$l}\`. Expected non-empty \`string\`.`),null)},`ToastAction`)),tu=`ToastClose`,nu=m.forwardRef($(function(e,t){let{__scopeToast:n,...r}=e,i=Jl(tu,n);return(0,j.jsx)(ru,{asChild:!0,children:(0,j.jsx)(M.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,i.onClose)})})},`ToastClose`)),ru=m.forwardRef($(function(e,t){let{__scopeToast:n,altText:r,...i}=e;return(0,j.jsx)(M.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})},`ToastAnnounceExclude`));function iu(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),cu(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...iu(e))}}}),t}$(iu,`getAnnounceTextContent`);function au(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?N(i,a):i.dispatchEvent(a)}$(au,`handleAndDispatchCustomEvent`);var ou=$((e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n},`isDeltaInDirection`);function su(e=()=>{}){let t=B(e);z(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}$(su,`useNextFrame`);function cu(e){return e.nodeType===e.ELEMENT_NODE}$(cu,`isHTMLElement`);function lu(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:$(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}$(lu,`getTabbableCandidates`);function uu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}$(uu,`focusFirst`);var du=Nl,fu=Rl,pu=Kl,mu=Zl,hu=Ql,gu=eu,_u=nu;function vu(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function yu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function bu(...e){return t=>{let n=!1,r=e.map(e=>{let r=yu(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():yu(e[t],null)}}}}function xu(...e){return m.useCallback(bu(...e),e)}function Su(e,t=[]){let n=[];function r(t,r){let i=m.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=m.useMemo(()=>o,Object.values(o));return(0,j.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=m.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>m.createContext(e));return function(n){let r=n?.[e]||t;return m.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Cu(i,...t)]}function Cu(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var wu=m.forwardRef((e,t)=>{let{children:n,...r}=e,i=m.Children.toArray(n),a=i.find(Du);if(a){let e=a.props.children,n=i.map(t=>t===a?m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null:t);return(0,j.jsx)(Tu,{...r,ref:t,children:m.isValidElement(e)?m.cloneElement(e,void 0,n):null})}return(0,j.jsx)(Tu,{...r,ref:t,children:n})});wu.displayName=`Slot`;var Tu=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(m.isValidElement(n)){let e=ku(n),i=Ou(r,n.props);return n.type!==m.Fragment&&(i.ref=t?bu(t,e):e),m.cloneElement(n,i)}return m.Children.count(n)>1?m.Children.only(null):null});Tu.displayName=`SlotClone`;var Eu=({children:e})=>(0,j.jsx)(j.Fragment,{children:e});function Du(e){return m.isValidElement(e)&&e.type===Eu}function Ou(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ku(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Au=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=m.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?wu:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,j.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ju(e,t){e&&p.flushSync(()=>e.dispatchEvent(t))}function Mu(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...e)=>t.current?.(...e),[])}function Nu(e,t=globalThis?.document){let n=Mu(e);m.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Pu=`DismissableLayer`,Fu=`dismissableLayer.update`,Iu=`dismissableLayer.pointerDownOutside`,Lu=`dismissableLayer.focusOutside`,Ru,zu=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bu=m.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=m.useContext(zu),[u,d]=m.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=m.useState({}),h=xu(t,e=>d(e)),g=Array.from(l.layers),[_]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=u?g.indexOf(u):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=Uu(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!x||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),C=Wu(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Nu(e=>{y===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),m.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ru=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Gu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ru)}},[u,f,n,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Gu())},[u,l]),m.useEffect(()=>{let e=()=>p({});return document.addEventListener(Fu,e),()=>document.removeEventListener(Fu,e)},[]),(0,j.jsx)(Au.div,{...c,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:vu(e.onFocusCapture,C.onFocusCapture),onBlurCapture:vu(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:vu(e.onPointerDownCapture,S.onPointerDownCapture)})});Bu.displayName=Pu;var Vu=`DismissableLayerBranch`,Hu=m.forwardRef((e,t)=>{let n=m.useContext(zu),r=m.useRef(null),i=xu(t,r);return m.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,j.jsx)(Au.div,{...e,ref:i})});Hu.displayName=Vu;function Uu(e,t=globalThis?.document){let n=Mu(e),r=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Ku(Iu,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Wu(e,t=globalThis?.document){let n=Mu(e),r=m.useRef(!1);return m.useEffect(()=>{let e=e=>{e.target&&!r.current&&Ku(Lu,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gu(){let e=new CustomEvent(Fu);document.dispatchEvent(e)}function Ku(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ju(i,a):i.dispatchEvent(a)}var qu=0;function Ju(){m.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Yu()),document.body.insertAdjacentElement(`beforeend`,e[1]??Yu()),qu++,()=>{qu===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),qu--}},[])}function Yu(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Xu=`focusScope.autoFocusOnMount`,Zu=`focusScope.autoFocusOnUnmount`,Qu={bubbles:!1,cancelable:!0},$u=`FocusScope`,ed=m.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=m.useState(null),l=Mu(i),u=Mu(a),d=m.useRef(null),f=xu(t,e=>c(e)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:sd(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||sd(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&sd(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),m.useEffect(()=>{if(s){cd.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Xu,Qu);s.addEventListener(Xu,l),s.dispatchEvent(t),t.defaultPrevented||(td(dd(rd(s)),{select:!0}),document.activeElement===e&&sd(s))}return()=>{s.removeEventListener(Xu,l),setTimeout(()=>{let t=new CustomEvent(Zu,Qu);s.addEventListener(Zu,u),s.dispatchEvent(t),t.defaultPrevented||sd(e??document.body,{select:!0}),s.removeEventListener(Zu,u),cd.remove(p)},0)}}},[s,l,u,p]);let h=m.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=nd(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&sd(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&sd(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,j.jsx)(Au.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})});ed.displayName=$u;function td(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(sd(r,{select:t}),document.activeElement!==n)return}function nd(e){let t=rd(e);return[id(t,e),id(t.reverse(),e)]}function rd(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function id(e,t){for(let n of e)if(!ad(n,{upTo:t}))return n}function ad(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function od(e){return e instanceof HTMLInputElement&&`select`in e}function sd(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&od(e)&&t&&e.select()}}var cd=ld();function ld(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ud(e,t),e.unshift(t)},remove(t){e=ud(e,t),e[0]?.resume()}}}function ud(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function dd(e){return e.filter(e=>e.tagName!==`A`)}var fd=globalThis?.document?m.useLayoutEffect:()=>{},pd=m.useId||(()=>void 0),md=0;function hd(e){let[t,n]=m.useState(pd());return fd(()=>{e||n(e=>e??String(md++))},[e]),e||(t?`radix-${t}`:``)}var gd=`Arrow`,_d=m.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,j.jsx)(Au.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,j.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});_d.displayName=gd;var vd=_d;function yd(e){let[t,n]=m.useState(void 0);return fd(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}var bd=`Popper`,[xd,Sd]=Su(bd),[Cd,wd]=xd(bd),Td=e=>{let{__scopePopper:t,children:n}=e,[r,i]=m.useState(null);return(0,j.jsx)(Cd,{scope:t,anchor:r,onAnchorChange:i,children:n})};Td.displayName=bd;var Ed=`PopperAnchor`,Dd=m.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=wd(Ed,n),o=m.useRef(null),s=xu(t,o);return m.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,j.jsx)(Au.div,{...i,ref:s})});Dd.displayName=Ed;var Od=`PopperContent`,[kd,Ad]=xd(Od),jd=m.forwardRef((e,t)=>{let{__scopePopper:d,side:f=`bottom`,sideOffset:p=0,align:h=`center`,alignOffset:g=0,arrowPadding:_=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:x=`partial`,hideWhenDetached:S=!1,updatePositionStrategy:C=`optimized`,onPlaced:w,...T}=e,E=wd(Od,d),[D,O]=m.useState(null),ee=xu(t,e=>O(e)),[te,k]=m.useState(null),A=yd(te),ne=A?.width??0,re=A?.height??0,ie=f+(h===`center`?``:`-`+h),ae=typeof b==`number`?b:{top:0,right:0,bottom:0,left:0,...b},oe=Array.isArray(y)?y:[y],M=oe.length>0,N={padding:ae,boundary:oe.filter(Fd),altBoundary:M},{refs:se,floatingStyles:ce,placement:le,isPositioned:ue,middlewareData:P}=o({strategy:`fixed`,placement:ie,whileElementsMounted:(...e)=>a(...e,{animationFrame:C===`always`}),elements:{reference:E.anchor},middleware:[i({mainAxis:p+re,alignmentAxis:g}),v&&l({mainAxis:!0,crossAxis:!1,limiter:x===`partial`?r():void 0,...N}),v&&s({...N}),c({...N,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),te&&n({element:te,padding:_}),Id({arrowWidth:ne,arrowHeight:re}),S&&u({strategy:`referenceHidden`,...N})]}),[de,fe]=Ld(le),pe=Mu(w);fd(()=>{ue&&pe?.()},[ue,pe]);let me=P.arrow?.x,F=P.arrow?.y,he=P.arrow?.centerOffset!==0,[ge,_e]=m.useState();return fd(()=>{D&&_e(window.getComputedStyle(D).zIndex)},[D]),(0,j.jsx)(`div`,{ref:se.setFloating,"data-radix-popper-content-wrapper":``,style:{...ce,transform:ue?ce.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ge,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,j.jsx)(kd,{scope:d,placedSide:de,onArrowChange:k,arrowX:me,arrowY:F,shouldHideArrow:he,children:(0,j.jsx)(Au.div,{"data-side":de,"data-align":fe,...T,ref:ee,style:{...T.style,animation:ue?void 0:`none`}})})})});jd.displayName=Od;var Md=`PopperArrow`,Nd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Pd=m.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Ad(Md,n),a=Nd[i.placedSide];return(0,j.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,j.jsx)(vd,{...r,ref:t,style:{...r.style,display:`block`}})})});Pd.displayName=Md;function Fd(e){return e!==null}var Id=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ld(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Ld(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Rd=Td,zd=Dd,Bd=jd,Vd=Pd,Hd=`Portal`,Ud=m.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=m.useState(!1);fd(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?p.createPortal((0,j.jsx)(Au.div,{...r,ref:t}),o):null});Ud.displayName=Hd;function Wd(e,t){return m.useReducer((e,n)=>t[e][n]??e,e)}var Gd=e=>{let{present:t,children:n}=e,r=Kd(t),i=typeof n==`function`?n({present:r.isPresent}):m.Children.only(n),a=xu(r.ref,Jd(i));return typeof n==`function`||r.isPresent?m.cloneElement(i,{ref:a}):null};Gd.displayName=`Presence`;function Kd(e){let[t,n]=m.useState(),r=m.useRef({}),i=m.useRef(e),a=m.useRef(`none`),[o,s]=Wd(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return m.useEffect(()=>{let e=qd(r.current);a.current=o===`mounted`?e:`none`},[o]),fd(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=qd(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),fd(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=qd(r.current).includes(a.animationName);if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=qd(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:m.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function qd(e){return e?.animationName||`none`}function Jd(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Yd({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=Xd({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Mu(n);return[o,m.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Xd({defaultProp:e,onChange:t}){let n=m.useState(e),[r]=n,i=m.useRef(r),a=Mu(t);return m.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var Zd=`Popover`,[Qd,$d]=Su(Zd,[Sd]),ef=Sd(),[tf,nf]=Qd(Zd),rf=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=ef(t),c=m.useRef(null),[l,u]=m.useState(!1),[d=!1,f]=Yd({prop:r,defaultProp:i,onChange:a});return(0,j.jsx)(Rd,{...s,children:(0,j.jsx)(tf,{scope:t,contentId:hd(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:m.useCallback(()=>u(!0),[]),onCustomAnchorRemove:m.useCallback(()=>u(!1),[]),modal:o,children:n})})};rf.displayName=Zd;var af=`PopoverAnchor`,of=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nf(af,n),a=ef(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return m.useEffect(()=>(o(),()=>s()),[o,s]),(0,j.jsx)(zd,{...a,...r,ref:t})});of.displayName=af;var sf=`PopoverTrigger`,cf=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nf(sf,n),a=ef(n),o=xu(t,i.triggerRef),s=(0,j.jsx)(Au.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Sf(i.open),...r,ref:o,onClick:vu(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(zd,{asChild:!0,...a,children:s})});cf.displayName=sf;var lf=`PopoverPortal`,[uf,df]=Qd(lf,{forceMount:void 0}),ff=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=nf(lf,t);return(0,j.jsx)(uf,{scope:t,forceMount:n,children:(0,j.jsx)(Gd,{present:n||a.open,children:(0,j.jsx)(Ud,{asChild:!0,container:i,children:r})})})};ff.displayName=lf;var pf=`PopoverContent`,mf=m.forwardRef((e,t)=>{let n=df(pf,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=nf(pf,e.__scopePopover);return(0,j.jsx)(Gd,{present:r||a.open,children:a.modal?(0,j.jsx)(hf,{...i,ref:t}):(0,j.jsx)(gf,{...i,ref:t})})});mf.displayName=pf;var hf=m.forwardRef((e,t)=>{let n=nf(pf,e.__scopePopover),r=m.useRef(null),i=xu(t,r),a=m.useRef(!1);return m.useEffect(()=>{let e=r.current;if(e)return Bo(e)},[]),(0,j.jsx)(jo,{as:wu,allowPinchZoom:!0,children:(0,j.jsx)(_f,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vu(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:vu(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:vu(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),gf=m.forwardRef((e,t)=>{let n=nf(pf,e.__scopePopover),r=m.useRef(!1),i=m.useRef(!1);return(0,j.jsx)(_f,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),_f=m.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=nf(pf,n),p=ef(n);return Ju(),(0,j.jsx)(ed,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(Bu,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,j.jsx)(Bd,{"data-state":Sf(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),vf=`PopoverClose`,yf=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nf(vf,n);return(0,j.jsx)(Au.button,{type:`button`,...r,ref:t,onClick:vu(e.onClick,()=>i.onOpenChange(!1))})});yf.displayName=vf;var bf=`PopoverArrow`,xf=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=ef(n);return(0,j.jsx)(Vd,{...i,...r,ref:t})});xf.displayName=bf;function Sf(e){return e?`open`:`closed`}var Cf=rf,wf=cf,Tf=ff,Ef=mf,Df=xf;function Of(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function kf(e,t=[]){let n=[];function r(t,r){let i=(0,m.createContext)(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,c=(0,m.useMemo)(()=>o,Object.values(o));return(0,m.createElement)(s.Provider,{value:c},r)}function s(n,o){let s=o?.[e][a]||i,c=(0,m.useContext)(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+`Provider`,[o,s]}let i=()=>{let t=n.map(e=>(0,m.createContext)(e));return function(n){let r=n?.[e]||t;return(0,m.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Af(i,...t)]}function Af(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,m.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function jf(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Mf(...e){return t=>e.forEach(e=>jf(e,t))}function Nf(...e){return(0,m.useCallback)(Mf(...e),e)}var Pf=(0,m.forwardRef)((e,t)=>{let{children:n,...r}=e,i=m.Children.toArray(n),a=i.find(Lf);if(a){let e=a.props.children,n=i.map(t=>t===a?m.Children.count(e)>1?m.Children.only(null):(0,m.isValidElement)(e)?e.props.children:null:t);return(0,m.createElement)(Ff,X({},r,{ref:t}),(0,m.isValidElement)(e)?(0,m.cloneElement)(e,void 0,n):null)}return(0,m.createElement)(Ff,X({},r,{ref:t}),n)});Pf.displayName=`Slot`;var Ff=(0,m.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,m.isValidElement)(n)?(0,m.cloneElement)(n,{...Rf(r,n.props),ref:Mf(t,n.ref)}):m.Children.count(n)>1?m.Children.only(null):null});Ff.displayName=`SlotClone`;var If=({children:e})=>(0,m.createElement)(m.Fragment,null,e);function Lf(e){return(0,m.isValidElement)(e)&&e.type===If}function Rf(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function zf(e){let t=e+`CollectionProvider`,[n,r]=kf(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=m.useRef(null),a=m.useRef(new Map).current;return m.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},s=e+`CollectionSlot`,c=m.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Nf(t,a(s,n).collectionRef);return m.createElement(Pf,{ref:i},r)}),l=e+`CollectionItemSlot`,u=`data-radix-collection-item`,d=m.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=m.useRef(null),s=Nf(t,o),c=a(l,n);return m.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),m.createElement(Pf,{[u]:``,ref:s},r)});function f(t){let n=a(e+`CollectionConsumer`,t);return m.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:c,ItemSlot:d},f,r]}var Bf=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Vf=m.useId||(()=>void 0),Hf=0;function Uf(e){let[t,n]=m.useState(Vf());return Bf(()=>{e||n(e=>e??String(Hf++))},[e]),e||(t?`radix-${t}`:``)}var Wf=[`a`,`button`,`div`,`h2`,`h3`,`img`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=(0,m.forwardRef)((e,n)=>{let{asChild:r,...i}=e,a=r?Pf:t;return(0,m.useEffect)(()=>{window[Symbol.for(`radix-ui`)]=!0},[]),(0,m.createElement)(a,X({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gf(e){let t=(0,m.useRef)(e);return(0,m.useEffect)(()=>{t.current=e}),(0,m.useMemo)(()=>(...e)=>t.current?.call(t,...e),[])}function Kf({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=qf({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Gf(n);return[o,(0,m.useCallback)(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function qf({defaultProp:e,onChange:t}){let n=(0,m.useState)(e),[r]=n,i=(0,m.useRef)(r),a=Gf(t);return(0,m.useEffect)(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var Jf=(0,m.createContext)(void 0);function Yf(e){let t=(0,m.useContext)(Jf);return e||t||`ltr`}var Xf=`rovingFocusGroup.onEntryFocus`,Zf={bubbles:!1,cancelable:!0},Qf=`RovingFocusGroup`,[$f,ep,tp]=zf(Qf),[np,rp]=kf(Qf,[tp]),[ip,ap]=np(Qf),op=(0,m.forwardRef)((e,t)=>(0,m.createElement)($f.Provider,{scope:e.__scopeRovingFocusGroup},(0,m.createElement)($f.Slot,{scope:e.__scopeRovingFocusGroup},(0,m.createElement)(sp,X({},e,{ref:t}))))),sp=(0,m.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,...u}=e,d=(0,m.useRef)(null),f=Nf(t,d),p=Yf(a),[h=null,g]=Kf({prop:o,defaultProp:s,onChange:c}),[_,v]=(0,m.useState)(!1),y=Gf(l),b=ep(n),x=(0,m.useRef)(!1),[S,C]=(0,m.useState)(0);return(0,m.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(Xf,y),()=>e.removeEventListener(Xf,y)},[y]),(0,m.createElement)(ip,{scope:n,orientation:r,dir:p,loop:i,currentTabStopId:h,onItemFocus:(0,m.useCallback)(e=>g(e),[g]),onItemShiftTab:(0,m.useCallback)(()=>v(!0),[]),onFocusableItemAdd:(0,m.useCallback)(()=>C(e=>e+1),[]),onFocusableItemRemove:(0,m.useCallback)(()=>C(e=>e-1),[])},(0,m.createElement)(Wf.div,X({tabIndex:_||S===0?-1:0,"data-orientation":r},u,{ref:f,style:{outline:`none`,...e.style},onMouseDown:Of(e.onMouseDown,()=>{x.current=!0}),onFocus:Of(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Xf,Zf);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);pp([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current))}}x.current=!1}),onBlur:Of(e.onBlur,()=>v(!1))})))}),cp=`RovingFocusGroupItem`,lp=(0,m.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=Uf(),c=a||s,l=ap(cp,n),u=l.currentTabStopId===c,d=ep(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return(0,m.useEffect)(()=>{if(r)return f(),()=>p()},[r,f,p]),(0,m.createElement)($f.ItemSlot,{scope:n,id:c,focusable:r,active:i},(0,m.createElement)(Wf.span,X({tabIndex:u?0:-1,"data-orientation":l.orientation},o,{ref:t,onMouseDown:Of(e.onMouseDown,e=>{r?l.onItemFocus(c):e.preventDefault()}),onFocus:Of(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:Of(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){l.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=fp(e,l.orientation,l.dir);if(t!==void 0){e.preventDefault();let n=d().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=l.loop?mp(n,r+1):n.slice(r+1)}setTimeout(()=>pp(n))}})})))}),up={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function dp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function fp(e,t,n){let r=dp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return up[r]}function pp(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function mp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var hp=op,gp=lp;function _p(e,t){return(0,m.useReducer)((e,n)=>t[e][n]??e,e)}var vp=e=>{let{present:t,children:n}=e,r=yp(t),i=typeof n==`function`?n({present:r.isPresent}):m.Children.only(n),a=Nf(r.ref,i.ref);return typeof n==`function`||r.isPresent?(0,m.cloneElement)(i,{ref:a}):null};vp.displayName=`Presence`;function yp(e){let[t,n]=(0,m.useState)(),r=(0,m.useRef)({}),i=(0,m.useRef)(e),a=(0,m.useRef)(`none`),[o,s]=_p(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return(0,m.useEffect)(()=>{let e=bp(r.current);a.current=o===`mounted`?e:`none`},[o]),Bf(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=bp(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Bf(()=>{if(t){let e=e=>{let n=bp(r.current).includes(e.animationName);e.target===t&&n&&(0,p.flushSync)(()=>s(`ANIMATION_END`))},n=e=>{e.target===t&&(a.current=bp(r.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:(0,m.useCallback)(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function bp(e){return e?.animationName||`none`}var xp=`Tabs`,[Sp,Cp]=kf(xp,[rp]),wp=rp(),[Tp,Ep]=Sp(xp),Dp=(0,m.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=Yf(s),[d,f]=Kf({prop:r,onChange:i,defaultProp:a});return(0,m.createElement)(Tp,{scope:n,baseId:Uf(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c},(0,m.createElement)(Wf.div,X({dir:u,"data-orientation":o},l,{ref:t})))}),Op=`TabsList`,kp=(0,m.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=Ep(Op,n),o=wp(n);return(0,m.createElement)(hp,X({asChild:!0},o,{orientation:a.orientation,dir:a.dir,loop:r}),(0,m.createElement)(Wf.div,X({role:`tablist`,"aria-orientation":a.orientation},i,{ref:t})))}),Ap=`TabsTrigger`,jp=(0,m.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Ep(Ap,n),s=wp(n),c=Pp(o.baseId,r),l=Fp(o.baseId,r),u=r===o.value;return(0,m.createElement)(gp,X({asChild:!0},s,{focusable:!i,active:u}),(0,m.createElement)(Wf.button,X({type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c},a,{ref:t,onMouseDown:Of(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:Of(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:Of(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})))}),Mp=`TabsContent`,Np=(0,m.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=Ep(Mp,n),c=Pp(s.baseId,r),l=Fp(s.baseId,r),u=r===s.value,d=(0,m.useRef)(u);return(0,m.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.createElement)(vp,{present:i||u},({present:n})=>(0,m.createElement)(Wf.div,X({"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0}}),n&&a))});function Pp(e,t){return`${e}-trigger-${t}`}function Fp(e,t){return`${e}-content-${t}`}var Ip=Dp,Lp=kp,Rp=jp,zp=Np;export{Pr as $,Nt as $n,Ne as $r,Pn as $t,Ns as A,nn as An,nt as Ar,rr as At,qr as B,Kt as Bn,Ke as Br,qn as Bt,Gc as C,un as Cn,lt as Cr,ur as Ct,Is as D,on as Dn,at as Dr,or as Dt,Fs as E,sn as En,ot as Er,sr as Et,Qr as F,Zt as Fn,Ze as Fr,Qn as Ft,Hr as G,Vt as Gn,Ve as Gr,Hn as Gt,Gr as H,Wt as Hn,We as Hr,Gn as Ht,Zr as I,Xt as In,Xe as Ir,Zn as It,zr as J,Rt as Jn,Re as Jr,zn as Jt,Vr as K,Bt as Kn,Be as Kr,Vn as Kt,Xr as L,Yt as Ln,Ye as Lr,Xn as Lt,As as M,en as Mn,et as Mr,tr as Mt,Ls as N,$t as Nn,$e as Nr,er as Nt,Ps as O,an as On,it as Or,ar as Ot,js as P,Qt as Pn,Qe as Pr,$n as Pt,Fr as Q,Pt as Qn,Pe as Qr,Fn as Qt,Yr as R,Jt as Rn,Je as Rr,Yn as Rt,Wc as S,dn as Sn,ut as Sr,dr as St,X as T,cn as Tn,st as Tr,cr as Tt,Wr as U,Ut as Un,Ue as Ur,Wn as Ut,Kr as V,Gt as Vn,Ge as Vr,Kn as Vt,Ur as W,Ht as Wn,He as Wr,Un as Wt,Lr as X,It as Xn,Ie as Xr,Ln as Xt,Rr as Y,Lt as Yn,Le as Yr,Rn as Yt,Ir as Z,Ft as Zn,Fe as Zr,In as Zt,rl as _,he as _i,gn as _n,ht as _r,gr as _t,Df as a,De as ai,On as an,Dt as ar,Or as at,Jc as b,pn as bn,ft as br,pr as bt,Cf as c,we as ci,Tn as cn,wt as cr,Tr as ct,_u as d,xe as di,Sn as dn,xt as dr,Sr as dt,Me as ei,Nn as en,Mt as er,Nr as et,hu as f,be as fi,xn as fn,bt as fr,xr as ft,fu as g,ge as gi,_n as gn,gt as gr,_r as gt,mu as h,_e as hi,vn as hn,_t as hr,vr as ht,Ip as i,Oe as ii,kn as in,Ot as ir,kr as it,Ms as j,tn as jn,tt as jr,nr as jt,Rs as k,rn as kn,rt as kr,ir as kt,wf as l,Ce as li,wn as ln,Ct as lr,wr as lt,pu as m,ve as mi,yn as mn,vt as mr,yr as mt,Lp as n,Ae as ni,jn as nn,At as nr,jr as nt,Ef as o,Ee as oi,Dn as on,Et as or,Dr as ot,du as p,ye as pi,bn as pn,yt as pr,br as pt,Br as q,zt as qn,ze as qr,Bn as qt,zp as r,ke as ri,An as rn,kt as rr,Ar as rt,Tf as s,Te as si,En as sn,Tt as sr,Er as st,Rp as t,je as ti,Mn as tn,jt as tr,Mr as tt,gu as u,Se as ui,Cn as un,St as ur,Cr as ut,sl as v,ce as vi,hn as vn,mt as vr,hr as vt,Kc as w,ln as wn,ct as wr,lr as wt,qc as x,fn as xn,dt as xr,fr as xt,al as y,C as yi,mn as yn,pt as yr,mr as yt,Jr as z,qt as zn,qe as zr,Jn as zt};