function s(l){let t=[],n=[];return l.forEach((e,r)=>{e.regionPathName.split("/").forEach((i,h)=>{n=c(h===0?t:n,i,e)}),n.push({...e,title:e.name,key:e.indexCode,data:e})}),t}function c(l,t,n){const e=l.find(r=>r.title===t);return e?e.children:(l.push({title:t,children:[],type:"group",key:n.indexCode+"-"+t}),l[l.length-1].children)}export{s as l};