import{in as e}from"./icon-K_9KhGme.js";import{k as t,yt as n}from"./vue.esm-bundler-DcNPjsgv.js";var r,i=t=>{if(!e)return 0;if(r!==void 0)return r;let n=document.createElement(`div`);n.className=`${t}-scrollbar__wrap`,n.style.visibility=`hidden`,n.style.width=`100px`,n.style.position=`absolute`,n.style.top=`-9999px`,document.body.appendChild(n);let i=n.offsetWidth;n.style.overflow=`scroll`;let a=document.createElement(`div`);a.style.width=`100%`,n.appendChild(a);let o=a.offsetWidth;return n.parentNode?.removeChild(n),r=i-o,r};function a(t,n){if(!e)return;if(!n){t.scrollTop=0;return}let r=[],i=n.offsetParent;for(;i!==null&&t!==i&&t.contains(i);)r.push(i),i=i.offsetParent;let a=n.offsetTop+r.reduce((e,t)=>e+t.offsetTop,0),o=a+n.offsetHeight,s=t.scrollTop,c=s+t.clientHeight;a<s?t.scrollTop=a:o>c&&(t.scrollTop=o-t.clientHeight)}var o=function(e){return e[e.TEXT=1]=`TEXT`,e[e.CLASS=2]=`CLASS`,e[e.STYLE=4]=`STYLE`,e[e.PROPS=8]=`PROPS`,e[e.FULL_PROPS=16]=`FULL_PROPS`,e[e.HYDRATE_EVENTS=32]=`HYDRATE_EVENTS`,e[e.STABLE_FRAGMENT=64]=`STABLE_FRAGMENT`,e[e.KEYED_FRAGMENT=128]=`KEYED_FRAGMENT`,e[e.UNKEYED_FRAGMENT=256]=`UNKEYED_FRAGMENT`,e[e.NEED_PATCH=512]=`NEED_PATCH`,e[e.DYNAMIC_SLOTS=1024]=`DYNAMIC_SLOTS`,e[e.HOISTED=-1]=`HOISTED`,e[e.BAIL=-2]=`BAIL`,e}({}),s=e=>{let r=n(e)?e:[e],i=[];return r.forEach(e=>{n(e)?i.push(...s(e)):t(e)&&e.component?.subTree?i.push(e,...s(e.component.subTree)):t(e)&&n(e.children)?i.push(...s(e.children)):t(e)&&e.shapeFlag===2?i.push(...s(e.type())):i.push(e)}),i};export{a as i,s as n,i as r,o as t};