var r=(I,o,t)=>new Promise((s,n)=>{var c=e=>{try{l(t.next(e))}catch(i){n(i)}},a=e=>{try{l(t.throw(e))}catch(i){n(i)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(c,a);l((t=t.apply(I,o)).next())});import{W as m}from"./vue-1631514e.js";import{bo as f,bp as k,a as u,__tla as L}from"./index-f0df2f76.js";let h,p=Promise.all([(()=>{try{return L}catch(I){}})()]).then(()=>r(void 0,null,function*(){h=m({id:"app-lock",state:()=>({lockInfo:f.getLocal(k)}),getters:{getLockInfo(o){return o.lockInfo}},actions:{setLockInfo(o){this.lockInfo=Object.assign({},this.lockInfo,o),f.setLocal(k,this.lockInfo,!0)},resetLockInfo(){f.removeLocal(k,!0),this.lockInfo=null},unLock(o){return r(this,null,function*(){var s;const t=u();return((s=this.lockInfo)==null?void 0:s.pwd)===o?(this.resetLockInfo(),!0):yield(()=>r(this,null,function*(){var n;try{const c=(n=t.getUserInfo)==null?void 0:n.username,a=yield t.login({username:c,password:o,goHome:!1,mode:"none"});return a&&this.resetLockInfo(),a}catch(c){return!1}}))()})}}})}));export{p as __tla,h as u};