var VueDemi=function(n,t,u){if(n.install)return n;if(!t)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),n;if(t.version.slice(0,4)==="2.7."){let r=function(s,a){var o,v={},p={config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),provide:function(f,c){return v[f]=c,this},directive:function(f,c){return c?(t.directive(f,c),p):t.directive(f)},mount:function(f,c){return o||(o=new t(Object.assign({propsData:a},s,{provide:Object.assign(v,s.provide)})),o.$mount(f,c),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return p};var d=r;for(var e in t)n[e]=t[e];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=t,n.Vue2=t,n.version=t.version,n.warn=t.util.warn,n.hasInjectionContext=function(){return!!n.getCurrentInstance()},n.createApp=r}else if(t.version.slice(0,2)==="2.")if(u){for(var e in u)n[e]=u[e];n.isVue2=!0,n.isVue3=!1,n.install=function(){},n.Vue=t,n.Vue2=t,n.version=t.version,n.hasInjectionContext=function(){return!!n.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if(t.version.slice(0,2)==="3."){for(var e in t)n[e]=t[e];n.isVue2=!1,n.isVue3=!0,n.install=function(){},n.Vue=t,n.Vue2=void 0,n.version=t.version,n.set=function(r,s,a){return Array.isArray(r)?(r.length=Math.max(r.length,s),r.splice(s,1,a),a):(r[s]=a,a)},n.del=function(r,s){if(Array.isArray(r)){r.splice(s,1);return}delete r[s]}}else console.error("[vue-demi] Vue version "+t.version+" is unsupported.");return n}(this.VueDemi=this.VueDemi||(typeof VueDemi<"u"?VueDemi:{}),this.Vue||(typeof Vue<"u"?Vue:void 0),this.VueCompositionAPI||(typeof VueCompositionAPI<"u"?VueCompositionAPI:void 0));(function(n,t,u,e,d){"use strict";function r(s,a,o={}){const{flush:v="pre",deep:p=!0,shallow:f=!1,onError:c=i=>{console.error(i)},writeDefaults:b=!0}=o,w=e.ref(!1),l=(f?e.shallowRef:e.ref)(a),h=t.toValue(a);async function y(){try{const i=await d.get(s);i===void 0?h!=null&&b&&await d.set(s,h):l.value=i}catch(i){c(i)}w.value=!0}y();async function I(){try{l.value==null?await d.del(s):await d.update(s,()=>e.toRaw(l.value))}catch(i){c(i)}}const{pause:A,resume:x}=u.watchPausable(l,()=>I(),{flush:v,deep:p});async function C(i){A(),l.value=i,await I(),x()}return{set:C,isFinished:w,data:l}}n.useIDBKeyval=r})(this.VueUse=this.VueUse||{},VueUse,VueUse,VueDemi,idbKeyval);