"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../../_util/raf.js");function v(n){const e=t.ref(null),l=t.reactive({...n}),u=t.ref([]),o=s=>{e.value===null&&(u.value=[],e.value=r.default(()=>{let a;u.value.forEach(c=>{a={...a,...c}}),Object.assign(l,a),e.value=null})),u.value.push(s)};return t.onMounted(()=>{e.value&&r.default.cancel(e.value)}),[l,o]}exports.default=v;
