"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");function v(r){const s=o.ref(0),i=o.shallowRef();return o.watchEffect(()=>{const t=new Map;let l=0;const n=r.value||{};for(const u in n)if(Object.prototype.hasOwnProperty.call(n,u)){const c=n[u],{level:a}=c;let e=t.get(a);e||(e=new Set,t.set(a,e)),e.add(c),l=Math.max(l,a)}s.value=l,i.value=t}),{maxLevel:s,levelEntities:i}}exports.default=v;
