import{S as f,az as u,aA as _,aB as g}from"#entry";function h(t){for(var e=-1,o=t==null?0:t.length,n={};++e<o;){var s=t[e];n[s[0]]=s[1]}return n}const d="__epPropKey",m=t=>t,O=t=>f(t)&&!!t[d],P=(t,e)=>{if(!f(t)||O(t))return t;const{values:o,required:n,default:s,type:p,validator:r}=t,c={type:p,required:!!n,validator:o||r?i=>{let l=!1,a=[];if(o&&(a=Array.from(o),u(t,"default")&&a.push(s),l||(l=a.includes(i))),r&&(l||(l=r(i))),!l&&a.length>0){const v=[...new Set(a)].map(w=>JSON.stringify(w)).join(", ");_(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${v}], got value ${JSON.stringify(i)}.`)}return l}:void 0,[d]:!0};return u(t,"default")&&(c.default=s),c},j=t=>h(Object.entries(t).map(([e,o])=>[e,P(o,e)]));var I=(t,e)=>{const o=t.__vccOpts||t;for(const[n,s]of e)o[n]=s;return o};const x=(t,e)=>{if(t.install=o=>{for(const n of[t,...Object.values(e??{})])o.component(n.name,n)},e)for(const[o,n]of Object.entries(e))t[o]=n;return t},N=(t,e)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[e]=t},t),S=(t,e)=>(t.install=o=>{o.directive(e,t)},t),$=t=>(t.install=g,t);export{I as _,$ as a,j as b,P as c,m as d,N as e,h as f,S as g,x as w};
