import{a as t,b as o,c as m,d as s,e as d,g as c,u,w as T,y as l}from"./chunk-L5GCOVLC.mjs";import{a as n}from"./chunk-AQ6EADP3.mjs";var N=class extends T{static{n(this,"TreeViewValueConverter")}static{t(this,"TreeViewValueConverter")}runCustomConverter(r,e,a){if(r.name==="INDENTATION")return e?.length||0;if(r.name==="QUOTED_NAME")return e.substring(1,e.length-1);if(r.name==="BARE_NAME")return e.replace(/[\t ]+$/,"");if(r.name==="CLASS_ANNOTATION")return e.trim().substring(3).trim();if(r.name==="ICON_ANNOTATION"){let i=e.trim();return i.substring(5,i.length-1)}if(r.name==="DESC_ANNOTATION")return e.trim().substring(2).trim()}},V=class extends l{static{n(this,"TreeViewTokenBuilder")}static{t(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},v={parser:{TokenBuilder:t(()=>new V,"TokenBuilder"),ValueConverter:t(()=>new N,"ValueConverter")}};function A(r=d){let e=s(m(r),c),a=s(o({shared:e}),u,v);return e.ServiceRegistry.register(a),{shared:e,TreeView:a}}n(A,"createTreeViewServices");t(A,"createTreeViewServices");export{v as a,A as b};
