import{gr as e,hr as t}from"./axios-v6FV69Ne.js";var n=e=>{let t=e.getElementsByTagName(`HTTP_SERVICE`)[0],n=t.getElementsByTagName(`MYFAVORITES`)[0],a=t.getElementsByTagName(`ALLVIEWS`)[0];return{myFavorites:r(n),allViews:i(a)}},r=(n,i=!1)=>{let a=t(n,`MENUITEM`),o={};return i&&(o=[]),a.length&&a.forEach((t,n)=>{let a=e(t),s=r(t,!0);if(Object.keys(s).length&&(a.children=s),i){o.push(a);return}o[n]=a}),o},i=n=>{let r=t(n,`MENUITEM`),a={};return r.length&&r.forEach((t,n)=>{let r=e(t),o=i(t);Object.keys(o).length&&(r.children=o),a[n]=r}),a};export{r as n,n as t};