1import{a as E,bc as h,w as W,dB as N,cJ as _,dC as H,dD as O,dE as R,dF as Y,dG as Q,v as X,bY as B,dH as J,d as A,dI as k,dJ as K,dK as F,dL as z,r as U,a5 as G,dM as q,dN as Z,dO as ee,bW as te,dP as P,dQ as ne,dR as oe,dS as ie,m as se,dT as ue}from"./DZ7mik94.js";function we(t={}){const{inheritAttrs:n=!0}=t,c=h(),o=A({setup(e,{slots:u}){return()=>{c.value=u.default}}}),s=A({inheritAttrs:n,props:t.props,setup(e,{attrs:u,slots:d}){return()=>{var v;if(!c.value)throw new Error("[VueUse] Failed to find the definition of reusable template");const i=(v=c.value)===null||v===void 0?void 0:v.call(c,{...t.props==null?ae(u):e,$slots:d});return n&&i?.length===1?i[0]:i}}});return k({define:o,reuse:s},[o,s])}function ae(t){const n={};for(const c in t)n[q(c)]=t[c];return n}const C=H?window:void 0,D=H?window.navigator:void 0;function M(t){var n;const c=O(t);return(n=c?.$el)!==null&&n!==void 0?n:c}function $(...t){const n=(o,s,e,u)=>(o.addEventListener(s,e,u),()=>o.removeEventListener(s,e,u)),c=E(()=>{const o=R(O(t[0])).filter(s=>s!=null);return o.every(s=>typeof s!="string")?o:void 0});return Q(()=>{var o,s;return[(o=(s=c.value)===null||s===void 0?void 0:s.map(e=>M(e)))!==null&&o!==void 0?o:[C].filter(e=>e!=null),R(O(c.value?t[1]:t[0])),R(se(c.value?t[2]:t[1])),O(c.value?t[3]:t[2])]},([o,s,e,u],d,v)=>{if(!o?.length||!s?.length||!e?.length)return;const i=ie(u)?{...u}:u,a=o.flatMap(r=>s.flatMap(f=>e.map(m=>n(r,f,m,i))));v(()=>{a.forEach(r=>r())})},{flush:"post"})}function re(){const t=h(!1),n=B();return n&&X(()=>{t.value=!0},n),t}function I(t){const n=re();return E(()=>(n.value,!!t()))}function le(t,n,c={}){const{window:o=C,...s}=c;let e;const u=I(()=>o&&"MutationObserver"in o),d=()=>{e&&(e.disconnect(),e=void 0)},v=W(E(()=>{const r=R(O(t)).map(M).filter(Y);return new Set(r)}),r=>{d(),u.value&&r.size&&(e=new MutationObserver(n),r.forEach(f=>e.observe(f,s)))},{immediate:!0,flush:"post"}),i=()=>e?.takeRecords(),a=()=>{v(),d()};return z(a),{isSupported:u,stop:a,takeRecords:i}}const ce=Symbol("vueuse-ssr-width");function de(){const t=oe()?ne(ce,null):null;return typeof t=="number"?t:void 0}function ve(t,n={}){const{window:c=C,ssrWidth:o=de()}=n,s=I(()=>c&&"matchMedia"in c&&typeof c.matchMedia=="function"),e=h(typeof o=="number"),u=h(),d=h(!1),v=i=>{d.value=i.matches};return te(()=>{if(e.value){e.value=!s.value,d.value=O(t).split(",").some(i=>{const a=i.includes("not all"),r=i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),f=i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(r||f);return r&&m&&(m=o>=P(r[1])),f&&m&&(m=o<=P(f[1])),a?!m:m});return}s.value&&(u.value=c.matchMedia(O(t)),d.value=u.value.matches)}),$(u,"change",v,{passive:!0}),E(()=>d.value)}function L(t,n={}){const{controls:c=!1,navigator:o=D}=n,s=I(()=>o&&"permissions"in o),e=h(),u=typeof t=="string"?{name:t}:t,d=h(),v=()=>{var a,r;d.value=(a=(r=e.value)===null||r===void 0?void 0:r.state)!==null&&a!==void 0?a:"prompt"};$(e,"change",v,{passive:!0});const i=ee(async()=>{if(s.value){if(!e.value)try{e.value=await o.permissions.query(u)}catch{e.value=void 0}finally{v()}if(c)return ue(e.value)}});return i(),c?{state:d,isSupported:s,query:i}:d}function ye(t={}){const{navigator:n=D,read:c=!1,source:o,copiedDuring:s=1500,legacy:e=!1}=t,u=I(()=>n&&"clipboard"in n),d=L("clipboard-read"),v=L("clipboard-write"),i=E(()=>u.value||e),a=h(""),r=h(!1),f=K(()=>r.value=!1,s,{immediate:!1});async function m(){let l=!(u.value&&g(d.value));if(!l)try{a.value=await n.clipboard.readText()}catch{l=!0}l&&(a.value=b())}i.value&&c&&$(["copy","cut"],m,{passive:!0});async function w(l=O(o)){if(i.value&&l!=null){let p=!(u.value&&g(v.value));if(!p)try{await n.clipboard.writeText(l)}catch{p=!0}p&&x(l),a.value=l,r.value=!0,f.start()}}function x(l){const p=document.createElement("textarea");p.value=l,p.style.position="absolute",p.style.opacity="0",p.setAttribute("readonly",""),document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function b(){var l,p,S;return(l=(p=document)===null||p===void 0||(S=p.getSelection)===null||S===void 0||(S=S.call(p))===null||S===void 0?void 0:S.toString())!==null&&l!==void 0?l:""}function g(l){return l==="granted"||l==="prompt"}return{isSupported:i,text:F(a),copied:F(r),copy:w}}function fe(t){return JSON.parse(JSON.stringify(t))}function pe(t,n,c={}){const{window:o=C,...s}=c;let e;const u=I(()=>o&&"ResizeObserver"in o),d=()=>{e&&(e.disconnect(),e=void 0)},v=W(E(()=>{const a=O(t);return Array.isArray(a)?a.map(r=>M(r)):[M(a)]}),a=>{if(d(),u.value&&o){e=new ResizeObserver(n);for(const r of a)r&&e.observe(r,s)}},{immediate:!0,flush:"post"}),i=()=>{d(),v()};return z(i),{isSupported:u,stop:i}}function be(t,n={}){const{reset:c=!0,windowResize:o=!0,windowScroll:s=!0,immediate:e=!0,updateTiming:u="sync"}=n,d=h(0),v=h(0),i=h(0),a=h(0),r=h(0),f=h(0),m=h(0),w=h(0);function x(){const g=M(t);if(!g){c&&(d.value=0,v.value=0,i.value=0,a.value=0,r.value=0,f.value=0,m.value=0,w.value=0);return}const l=g.getBoundingClientRect();d.value=l.height,v.value=l.bottom,i.value=l.left,a.value=l.right,r.value=l.top,f.value=l.width,m.value=l.x,w.value=l.y}function b(){u==="sync"?x():u==="next-frame"&&requestAnimationFrame(()=>x())}return pe(t,b),W(()=>M(t),g=>!g&&b()),le(t,b,{attributeFilter:["style","class"]}),s&&$("scroll",b,{capture:!0,passive:!0}),o&&$("resize",b,{passive:!0}),J(()=>{e&&b()}),{height:d,bottom:v,left:i,right:a,top:r,width:f,x:m,y:w,update:b}}function ge(t,n,c={}){const{root:o,rootMargin:s="0px",threshold:e=0,window:u=C,immediate:d=!0}=c,v=I(()=>u&&"IntersectionObserver"in u),i=E(()=>R(O(t)).map(M).filter(Y));let a=N;const r=h(d),f=v.value?W(()=>[i.value,M(o),r.value],([w,x])=>{if(a(),!r.value||!w.length)return;const b=new IntersectionObserver(n,{root:M(x),rootMargin:s,threshold:e});
1w.forEach(g=>g&&b.observe(g)),a=()=>{b.disconnect(),a=N}},{immediate:d,flush:"post"}):N,m=()=>{a(),f(),r.value=!1};return z(m),{isSupported:v,isActive:r,pause(){a(),r.value=!1},resume(){r.value=!0},stop:m}}function Se(t,n={}){const{threshold:c=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:e,passive:u=!0}=n,d=_({x:0,y:0}),v=_({x:0,y:0}),i=E(()=>d.x-v.x),a=E(()=>d.y-v.y),{max:r,abs:f}=Math,m=E(()=>r(f(i.value),f(a.value))>=c),w=h(!1),x=E(()=>m.value?f(i.value)>f(a.value)?i.value>0?"left":"right":a.value>0?"up":"down":"none"),b=y=>[y.touches[0].clientX,y.touches[0].clientY],g=(y,T)=>{d.x=y,d.y=T},l=(y,T)=>{v.x=y,v.y=T},p={passive:u,capture:!u},S=y=>{w.value&&s?.(y,x.value),w.value=!1},j=[$(t,"touchstart",y=>{if(y.touches.length!==1)return;const[T,V]=b(y);g(T,V),l(T,V),e?.(y)},p),$(t,"touchmove",y=>{if(y.touches.length!==1)return;const[T,V]=b(y);l(T,V),p.capture&&!p.passive&&Math.abs(i.value)>Math.abs(a.value)&&y.preventDefault(),!w.value&&m.value&&(w.value=!0),w.value&&o?.(y)},p),$(t,["touchend","touchcancel"],S,p)];return{isSwiping:w,direction:x,coordsStart:d,coordsEnd:v,lengthX:i,lengthY:a,stop:()=>j.forEach(y=>y())}}function xe(t,n,c,o={}){var s,e;const{clone:u=!1,passive:d=!1,eventName:v,deep:i=!1,defaultValue:a,shouldEmit:r}=o,f=B(),m=c||f?.emit||(f==null||(s=f.$emit)===null||s===void 0?void 0:s.bind(f))||(f==null||(e=f.proxy)===null||e===void 0||(e=e.$emit)===null||e===void 0?void 0:e.bind(f?.proxy));let w=v;w=w||`update:${n.toString()}`;const x=l=>u?typeof u=="function"?u(l):fe(l):l,b=()=>Z(t[n])?x(t[n]):a,g=l=>{r?r(l)&&m(w,l):m(w,l)};if(d){const l=U(b());let p=!1;return W(()=>t[n],S=>{p||(p=!0,l.value=x(S),G(()=>p=!1))}),W(l,S=>{!p&&(S!==t[n]||i)&&g(S)},{deep:i}),l}else return E({get(){return b()},set(l){g(l)}})}function Ee(t={}){const{window:n=C,initialWidth:c=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:e=!0,type:u="inner"}=t,d=h(c),v=h(o),i=()=>
1{if(n)if(u==="outer")d.value=n.outerWidth,v.value=n.outerHeight;else if(u==="visual"&&n.visualViewport){const{width:r,height:f,scale:m}=n.visualViewport;d.value=Math.round(r*m),v.value=Math.round(f*m)}else e?(d.value=n.innerWidth,v.value=n.innerHeight):(d.value=n.document.documentElement.clientWidth,v.value=n.document.documentElement.clientHeight)};i(),J(i);const a={passive:!0};return $("resize",i,a),n&&u==="visual"&&n.visualViewport&&$(n.visualViewport,"resize",i,a),s&&W(ve("(orientation: portrait)"),()=>i()),{width:d,height:v}}export{Ee as a,Se as b,we as c,be as d,$ as e,xe as f,ye as g,ge as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.