import{p as N,Y as F,Z as H,X as h,ad as B,c as w,S as v,a5 as O,ae as K,a8 as q,N as A,x as V,u as z,af as D,ag as X,R as G,ah as Y,Q as k,r as J,H as Z,e as ee,ai as te}from"./app-BXYcVHqk.js";function be(e,t){var o;const n=h();return G(()=>{n.value=e()},{...t,flush:(o=void 0)!=null?o:"sync"}),B(n)}function E(e){return F()?(H(e),!0):!1}function we(){const e=new Set,t=i=>{e.delete(i)};return{on:i=>{e.add(i);const a=()=>t(i);return E(a),{off:a}},off:t,trigger:(...i)=>Promise.all(Array.from(e).map(a=>a(...i))),clear:()=>{e.clear()}}}function Se(e){let t=!1,o;const n=D(!0);return(...r)=>(t||(o=n.run(()=>e(...r)),t=!0),o)}const W=new WeakMap,ne=(...e)=>{var t;const o=e[0],n=(t=O())==null?void 0:t.proxy;if(n==null&&!K())throw new Error("injectLocal must be called in setup");return n&&W.has(n)&&o in W.get(n)?W.get(n)[o]:q(...e)};function xe(e){let t=0,o,n;const r=()=>{t-=1,n&&t<=0&&(n.stop(),o=void 0,n=void 0)};return(...i)=>(t+=1,n||(n=D(!0),o=n.run(()=>e(...i))),E(r),o)}function oe(e){if(!A(e))return V(e);const t=new Proxy({},{get(o,n,r){return z(Reflect.get(e.value,n,r))},set(o,n,r){return A(e.value[n])&&!A(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(o,n){return Reflect.deleteProperty(e.value,n)},has(o,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return V(t)}function re(e){return oe(w(e))}function Oe(e,...t){const o=t.flat(),n=o[0];return re(()=>Object.fromEntries(typeof n=="function"?Object.entries(k(e)).filter(([r,i])=>!n(v(i),r)):Object.entries(k(e)).filter(r=>!o.includes(r[0]))))}const T=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ie=e=>typeof e<"u",ae=Object.prototype.toString,ue=e=>ae.call(e)==="[object Object]",Ee=se();function se(){var e,t;return T&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function le(e){let t;function o(){return t||(t=e()),t}return o.reset=async()=>{const n=t;t=void 0,n&&await n},o}function I(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function ce(e){return O()}function j(e){return Array.isArray(e)?e:[e]}function Pe(e,t=1e4){return Y((o,n)=>{let r=v(e),i;const a=()=>setTimeout(()=>{r=v(e),n()},v(t));return E(()=>{clearTimeout(i)}),{get(){return o(),r},set(u){r=u,n(),clearTimeout(i),i=a()}}})}const Ce=v;function Me(e,t){ce()&&X(e,t)}function fe(e,t,o={}){const{immediate:n=!0,immediateCallback:r=!1}=o,i=h(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){i.value=!1,u()}function c(...s){r&&e(),u(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...s)},v(t))}return n&&(i.value=!0,T&&c()),E(l),{isPending:B(i),start:c,stop:l}}function de(e,t,o){return N(e,t,{...o,immediate:!0})}const L=T?window:void 0,Q=T?window.navigator:void 0;function U(e){var t;const o=v(e);return(t=o?.$el)!=null?t:o}function _(...e){const t=[],o=()=>{t.forEach(u=>u()),t.length=0},n=(u,l,c,s)=>(u.addEventListener(l,c,s),()=>u.removeEventListener(l,c,s)),r=w(()=>{const u=j(v(e[0])).filter(l=>l!=null);return u.every(l=>typeof l!="string")?u:void 0}),i=de(()=>{var u,l;return[(l=(u=r.value)==null?void 0:u.map(c=>U(c)))!=null?l:[L].filter(c=>c!=null),j(v(r.value?e[1]:e[0])),j(z(r.value?e[2]:e[1])),v(r.value?e[3]:e[2])]},([u,l,c,s])=>{if(o(),!u?.length||!l?.length||!c?.length)return;const y=ue(s)?{...s}:s;t.push(...u.flatMap(g=>l.flatMap(p=>c.map(m=>n(g,p,m,y)))))},{flush:"post"}),a=()=>{i(),o()};return E(o),a}function pe(){const e=h(!1),t=O();return t&&ee(()=>{e.value=!0},t),e}function R(e){const t=pe();return w(()=>(t.value,!!e()))}function ve(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Te(...e){let t,o,n={};e.length===3?(t=e[0],o=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,o=e[0],n=e[1]):(t=e[0],o=e[1]):(t=!0,o=e[0]);const{target:r=L,eventName:i="keydown",passive:a=!1,dedupe:u=!1}=n,l=ve(t);return _(r,i,s=>{s.repeat&&v(u)||l(s)&&o(s)},a)}const me=Symbol("vueuse-ssr-width");function ye(){const e=K()?ne(me,null):null;return typeof e=="number"?e:void 0}function _e(e,t={}){const{window:o=L,ssrWidth:n=ye()}=t,r=R(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),i=h(typeof n=="number"),a=h(),u=h(!1),l=c=>{u.value=c.matches};return G(()=>{if(i.value){i.value=!r.value;const c=v(e).split(",");u.value=c.some(s=>{const y=s.includes("not all"),g=s.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=s.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(g||p);return g&&m&&(m=n>=I(g[1])),p&&m&&(m=n<=I(p[1])),y?!m:m});return}r.value&&(a.value=o.matchMedia(v(e)),u.value=a.value.matches)}),_(a,"change",l,{passive:!0}),w(()=>u.value)}function $(e,t={}){const{controls:o=!1,navigator:n=Q}=t,r=R(()=>n&&"permissions"in n),i=h(),a=typeof e=="string"?{name:e}:e,u=h(),l=()=>{var s,y;u.value=(y=(s=i.value)==null?void 0:s.state)!=null?y:"prompt"};_(i,"change",l,{passive:!0});const c=le(async()=>{if(r.value){if(!i.value)try{i.value=await n.permissions.query(a)}catch{i.value=void 0}finally{l()}if(o)return te(i.value)}});return c(),o?{state:u,isSupported:r,query:c}:u}function Ae(e={}){const{navigator:t=Q,read:o=!1,source:n,copiedDuring:r=1500,legacy:i=!1}=e,a=R(()=>t&&"clipboard"in t),u=$("clipboard-read"),l=$("clipboard-write"),c=w(()=>a.value||i),s=h(""),y=h(!1),g=fe(()=>y.value=!1,r,{immediate:!1});async function p(){let d=!(a.value&&x(u.value));if(!d)try{s.value=await t.clipboard.readText()}catch{d=!0}d&&(s.value=P())}c.value&&o&&_(["copy","cut"],p,{passive:!0});async function m(d=v(n)){if(c.value&&d!=null){let f=!(a.value&&x(l.value));if(!f)try{await t.clipboard.writeText(d)}catch{f=!0}f&&S(d),s.value=d,y.value=!0,g.start()}}function S(d){const f=document.createElement("textarea");f.value=d??"",f.style.position="absolute",f.style.opacity="0",document.body.appendChild(f),f.select(),document.execCommand("copy"),f.remove()}function P(){var d,f,b;return(b=(f=(d=document?.getSelection)==null?void 0:d.call(document))==null?void 0:f.toString())!=null?b:""}function x(d){return d==="granted"||d==="prompt"}return{isSupported:c,text:s,copied:y,copy:m}}function ge(e){return JSON.parse(JSON.stringify(e))}function We(e,t,o,n={}){var r,i,a;const{clone:u=!1,passive:l=!1,eventName:c,deep:s=!1,defaultValue:y,shouldEmit:g}=n,p=O(),m=o||p?.emit||((r=p?.$emit)==null?void 0:r.bind(p))||((a=(i=p?.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(p?.proxy));let S=c;t||(t="modelValue"),S=S||`update:${t.toString()}`;const P=f=>u?typeof u=="function"?u(f):ge(f):f,x=()=>ie(e[t])?P(e[t]):y,d=f=>{g?g(f)&&m(S,f):m(S,f)};if(l){const f=x(),b=J(f);let C=!1;return N(()=>e[t],M=>{C||(C=!0,b.value=P(M),Z(()=>C=!1))}),N(b,M=>{!C&&(M!==e[t]||s)&&d(M)},{deep:s}),b}else return w({get(){return x()},set(f){d(f)}})}function je(){const e=O(),t=J(),o=w(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:U(t)),n=Object.assign({},e.exposed),r={};for(const a in e.props)Object.defineProperty(r,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(n).length>0)for(const a in n)Object.defineProperty(r,a,{enumerable:!0,configurable:!0,get:()=>n[a]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=r;function i(a){t.value=a,a&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),e.exposed=r)}return{forwardRef:i,currentRef:t,currentElement:o}}export{je as a,We as b,Ae as c,xe as d,Me as e,Ee as f,_ as g,Pe as h,T as i,we as j,Se as k,pe as l,be as m,fe as n,Te as o,_e as p,L as q,Oe as r,Ce as t,U as u};