var e=(c,s,l)=>new Promise((t,o)=>{var a=n=>{try{r(l.next(n))}catch(u){o(u)}},i=n=>{try{r(l.throw(n))}catch(u){o(u)}},r=n=>n.done?t(n.value):Promise.resolve(n.value).then(a,i);r((l=l.apply(c,s)).next())});import{L as h,C as p,M as w,__tla as F}from"./index-f0df2f76.js";import{k as m,b as f,u as d,w as v,q as S}from"./vue-1631514e.js";let y,_=Promise.all([(()=>{try{return F}catch(c){}})()]).then(()=>e(void 0,null,function*(){y=function(c){const s=m(null),l=m(!1);function t(){return e(this,null,function*(){const a=d(s);return a||p("The form instance has not been obtained, please make sure that the form has been rendered when performing the form operation!"),yield S(),a})}function o(a){f(()=>{s.value=null,l.value=null}),!(d(l)&&h()&&a===d(s))&&(s.value=a,l.value=!0,v(()=>c,()=>{c&&a.setProps(w(c))},{immediate:!0,deep:!0}))}return[o,{scrollToField:(a,i)=>e(this,null,function*(){(yield t()).scrollToField(a,i)}),setProps:a=>e(this,null,function*(){(yield t()).setProps(a)}),updateSchema:a=>e(this,null,function*(){(yield t()).updateSchema(a)}),resetSchema:a=>e(this,null,function*(){(yield t()).resetSchema(a)}),clearValidate:a=>e(this,null,function*(){(yield t()).clearValidate(a)}),resetFields:()=>e(this,null,function*(){t().then(a=>e(this,null,function*(){yield a.resetFields()}))}),removeSchemaByField:a=>e(this,null,function*(){var i;(i=d(s))==null||i.removeSchemaByField(a)}),getFieldsValue:()=>{var a;return(a=d(s))==null?void 0:a.getFieldsValue()},setFieldsValue:a=>e(this,null,function*(){(yield t()).setFieldsValue(a)}),appendSchemaByField:(a,i,r)=>e(this,null,function*(){(yield t()).appendSchemaByField(a,i,r)}),submit:()=>e(this,null,function*(){return(yield t()).submit()}),validate:a=>e(this,null,function*(){return(yield t()).validate(a)}),validateFields:a=>e(this,null,function*(){return(yield t()).validateFields(a)})}]}}));export{_ as __tla,y as u};