import{a as r}from"./comm.1703796278973.js";const s={reportProperty:{label:"属性上报",value:"reportProperty",img:r("/scene/reportProperty.png")},reportEvent:{label:"事件上报",value:"reportEvent",img:r("/scene/reportProperty.png")},readProperty:{label:"读取属性",value:"readProperty",img:r("/scene/readProperty.png")},writeProperty:{label:"修改属性",value:"writeProperty",img:r("/scene/writeProperty.png")},invokeFunction:{label:"功能调用",value:"invokeFunction",img:r("/scene/invokeFunction.png")}},g=(i,l)=>{const o=[],t=new Map,p=n=>{n.forEach(e=>{t.set(e.id,{pid:e.parentId}),e.children&&e.children.length&&p(e.children)})},a=n=>{const e=t.get(n);e&&(o.push(n),t.has(t)&&a(e.pid))};return p(l),a(i),o};export{s as T,g};
