(function(R,b,n){"use strict";functionPe(e,t,o){letl;n.isRef(o)?l={evaluating:o}:l=o||{};const{lazy:i=!1,evaluating:r=void0,shallow:s=!0,onError:a=b.noop}=l,u=n.shallowRef(!i),f=s?n.shallowRef(t):n.ref(t);letc=0;returnn.watchEffect(asyncd=>{if(!u.value)return;c++;consth=c;letm=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{constv=awaite(S=>{d(()=>{r&&(r.value=!1),m||S()})});h===c&&(f.value=v)}catch(v){a(v)}finally{r&&h===c&&(r.value=!1),m=!0}}),i?n.computed(()=>(u.value=!0,f.value)):f}functionOt(e,t,o,l){leti=n.inject(e);returno&&(i=n.inject(e,o)),l&&(i=n.inject(e,o,l)),typeoft=="function"?n.computed(r=>t(i,r)):n.computed({get:r=>t.get(i,r),set:t.set})}functionkt(e={}){const{inheritAttrs:t=!0}=e,o=n.shallowRef(),l=n.defineComponent({setup(r,{slots:s}){return()=>{o.value=s.default}}}),i=n.defineComponent({inheritAttrs:t,props:e.props,setup(r,{attrs:s,slots:a}){return()=>{varu;if(!o.value&&process.env.NODE_ENV!=="production")thrownewError("[VueUse] Failed to find the definition of reusable template");constf=(u=o.value)==null?void0:u.call(o,{...e.props==null?_t(s):r,$slots:a});returnt&&f?.length===1?f[0]:f}}});returnb.makeDestructurable({define:l,reuse:i},[l,i])}function_t(e){constt={};for(constoine)t[b.camelize(o)]=e[o];returnt}functionVt(e={}){lett=0;consto=n.ref([]);functionl(...s){consta=n.shallowReactive({key:t++,args:s,promise:void0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});returno.value.push(a),a.promise=newPromise((u,f)=>{a.resolve=c=>(a.isResolving=!0,u(c)),a.reject=f}).finally(()=>{a.promise=void0;constu=o.value.indexOf(a);u!==-1&&o.value.splice(u,1)}),a.promise}functioni(...s){returne.singleton&&o.value.length>0?o.value[0].promise:l(...s)}constr=n.defineComponent((s,{slots:a})=>{constu=()=>o.value.map(f=>{varc;returnn.h(n.Fragment,{key:f.key},(c=a.default)==null?void0:c.call(a,f))});returne.transition?()=>n.h(n.TransitionGroup,e.transition,u):u});returnr.start=i,r}functionFt(e){returnfunction(...t){returne.apply(this,t.map(o=>n.toValue(o)))}}constM=b.isClient?window:void0,j=b.isClient?window.document:void0,q=b.isClient?window.navigator:void0,Pt=b.isClient?window.location:void0;functionN(e){vart;consto=n.toValue(e);return(t=o?.$el)!=null?t:o}functionO(...e){constt=[],o=()=>{t.forEach(a=>a()),t.length=0},l=(a,u,f,c)=>(a.addEventListener(u,f,c),()=>a.removeEventListener(u,f,c)),i=n.computed(()=>{consta=b.toArray(n.toValue(e[0])).filter(u=>u!=null);returna.every(u=>typeofu!="string")?a:void0}),r=b.watchImmediate(()=>{vara,u;return[(u=(a=i.value)==null?void0:a.map(f=>N(f)))!=null?u:[M].filter(f=>f!=null),b.toArray(n.toValue(i.value?e[1]:e[0])),b.toArray(n.unref(i.value?e[2]:e[1])),n.toValue(i.value?e[3]:e[2])]},([a,u,f,c])=>{if(o(),!a?.length||!u?.length||!f?.length)return;constd=b.isObject(c)?{...c}:c;t.push(...a.flatMap(h=>u.flatMap(m=>f.map(v=>l(h,m,v,d)))))},{flush:"post"}),s=()=>{r(),o()};returnb.tryOnScopeDispose(o),s}letCe=!1;functionCt(e,t,o={}){const{window:l=M,ignore:i=[],capture:r=!0,detectIframe:s=!1,controls:a=!1}=o;if(!l)returna?{stop:b.noop,cancel:b.noop,trigger:b.noop}:b.noop;if(b.isIOS&&!Ce){Ce=!0;constp={passive:!0};Array.from(l.document.body.children).forEach(w=>O(w,"click",b.noop,p)),O(l.document.documentElement,"click",b.noop,p)}letu=!0;constf=p=>n.toValue(i).some(w=>{if(typeofw=="string")returnArray.from(l.document.querySelectorAll(w)).some(y=>y===p.target||p.composedPath().includes(y));{consty=N(w);returny&&(p.target===y||p.composedPath().includes(y))}});functionc(p){constw=n.toValue(p);returnw&&w.$.subTree.shapeFlag===16}functiond(p,w){consty=n.toValue(p),g=y.$.subTree&&y.$.subTree.children;returng==null||!Array.isArray(g)?!1:g.some(T=>T.el===w.target||w.composedPath().includes(T.el))}consth=p=>{constw=N(e);if(p.target!=null&&!(!(winstanceofElement)&&c(e)&&d(e,p))&&!(!w||w===p.target||p.composedPath().includes(w))){if("detail"inp&&p.detail===0&&(u=!f(p)),!u){u=!0;return}t(p)}};letm=!1;constv=[O(l,"click",p=>{m||(m=!0,setTimeout(()=>{m=!1},0),h(p))},{passive:!0,capture:r}),O(l,"pointerdo