import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{G as t,J as n,W as r}from"./lit-runtime-BEtFSUCp.js";import{Ht as i,qt as a}from"./control-ui-core-Br5DB0Zj.js";function o(){return(o=e((()=>{})))()}function s(e){let t=new Map;for(let e of c)t.set(e.id,{id:e.id,label:a(e.labelKey),skills:[]});let n=c.find(e=>e.id===`built-in`),r={id:`other`,label:a(`skillGroups.other`),skills:[]};for(let i of e){let e=i.bundled?n:c.find(e=>e.sources.includes(i.source));e?t.get(e.id)?.skills.push(i):r.skills.push(i)}let i=c.map(e=>t.get(e.id)).filter(e=>!!(e&&e.skills.length>0));return r.skills.length>0&&i.push(r),i}var c;function l(){return(l=e((()=>{i(),c=[{id:`workspace`,labelKey:`skillGroups.workspace`,sources:[`openclaw-workspace`]},{id:`built-in`,labelKey:`skillGroups.builtIn`,sources:[`openclaw-bundled`]},{id:`installed`,labelKey:`skillGroups.installed`,sources:[`openclaw-managed`]},{id:`extra`,labelKey:`skillGroups.extra`,sources:[`openclaw-extra`]}]})))()}function u(e){return[...e.missing.bins.map(e=>`bin:${e}`),...e.missing.anyBins.length>0?[`bin:any of (${e.missing.anyBins.join(`, `)})`]:[],...e.missing.env.map(e=>`env:${e}`),...e.missing.config.map(e=>`config:${e}`),...e.missing.os.map(e=>`os:${e}`)]}function d(e){let t=[];return e.disabled&&t.push(a(`skillStatus.disabled`)),e.blockedByAllowlist&&t.push(a(`skillStatus.blockedAllowlist`)),e.blockedByAgentFilter&&t.push(a(`skillStatus.blockedAgentFilter`)),t}function f(e){return e.eligible&&!e.blockedByAgentFilter}function p(e){let r=e.skill,i=f(r),o=!!e.showBundledBadge;return n`