(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.LsxStarry={},n.Vue))})(this,function(n,e){"use strict";const i=(t,r)=>{const a=t.__vccOpts||t;for(const[l,o]of r)a[l]=o;return a},f={class:"starry-sky-bg"},_={class:"stars"},s=i({__name:"starry-sky",props:{starsCount:{type:Number,default:()=>800},distance:{type:Number,default:()=>800}},setup(t){const r=t,a=e.ref();return e.onMounted(()=>{a.value.forEach(o=>{let c=.1+Math.random()*1,d=r.distance+Math.random()*300;o.style.transformOrigin=`0 0 ${d}px`,o.style.transform=`translate3d(0,0,-${d}px) rotateY(${Math.random()*360}deg) rotateX(${Math.random()*-50}deg) scale(${c},${c})`})}),(l,o)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.starsCount,c=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"star",ref_for:!0,ref_key:"star",ref:a}))),128))])]))}},[["__scopeId","data-v-afe327aa"]]);s.install=t=>{t.component(s.__name,s)};const p=[s],u={install:t=>{p.forEach(r=>{t.component(r.__name,r)})}};n.StarrySky=s,n.default=u,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});