import{s as e}from"./chunk-Bj-mKKzh.js";import{t}from"./react-CClhXMB2.js";var n=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),r=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},o={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`},s=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},c=e(t()),l=(0,c.createContext)({}),u=()=>(0,c.useContext)(l),d=(0,c.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:i,className:a=``,children:l,iconNode:d,...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,color:_=`currentColor`,className:v=``}=u()??{},y=i??g?Number(r??h)*24/Number(t??m):r??h;return(0,c.createElement)(`svg`,{ref:p,...o,width:t??m??o.width,height:t??m??o.height,stroke:e??_,strokeWidth:y,className:n(`lucide`,v,a),...!l&&!s(f)&&{"aria-hidden":`true`},...f},[...d.map(([e,t])=>(0,c.createElement)(e,t)),...Array.isArray(l)?l:[l]])}),f=(e,t)=>{let i=(0,c.forwardRef)(({className:i,...o},s)=>(0,c.createElement)(d,{ref:s,iconNode:t,className:n(`lucide-${r(a(e))}`,`lucide-${e}`,i),...o}));return i.displayName=a(e),i},p=`data-ui-id`,m=`data-ui-identity-overlay-root`,h=`data-ui-c3`,g=`data-ui-c3-label`;function _(e,t){return`${e}.${t}`}function v(e){return{id:e.id,c3ComponentId:e.c3ComponentId??null,c3ComponentLabel:e.c3ComponentLabel??null}}function y(e){return v(e)}function b(e){return e.altKey&&e.shiftKey}function x(e){return e.c3ComponentId?e.c3ComponentLabel?`${e.id} | c3:${e.c3ComponentId}(${e.c3ComponentLabel})`:`${e.id} | c3:${e.c3ComponentId}`:e.id}function S(e){return typeof e==`string`?e:e.id}function C(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,S(t)]))}function w(e){return typeof e!=`string`}function T(e){let t=e.getAttribute(p);return t?v({id:t,c3ComponentId:e.getAttribute(h),c3ComponentLabel:e.getAttribute(g)}):null}function E(e){if(!w(e))return{[p]:e};let t={[p]:e.id};return e.c3ComponentId&&(t[h]=e.c3ComponentId),e.c3ComponentLabel&&(t[g]=e.c3ComponentLabel),t}function D(e,t=3){if(!e||t<=0)return[];let n=[],r=e;for(;r&&n.length<t;)r.getAttribute(`data-ui-id`)&&n.push(r),r=r.parentElement;return n}export{_ as a,E as c,b as d,f,y as i,T as l,m as n,v as o,D as r,x as s,p as t,C as u};