1import{t as z,i as B,a as H,u as A,b as C,w as F,c as $,d as j,e as J,f as Q,p as T}from"./DxRT18Ar.js";import{g as S,ac as w,y as E,a3 as b,a5 as P,r as U,aE as Y,h as D,b as G,av as q,aP as K,ae as X}from"./DRCxMrtQ.js";const I=B?window:void 0,L=B?window.navigator:void 0;function x(n){var e;const l=b(n);return(e=l?.$el)!=null?e:l}function V(...n){const e=[],l=()=>{e.forEach(t=>t()),e.length=0},p=(t,s,i,a)=>(t.addEventListener(s,i,a),()=>t.removeEventListener(s,i,a)),f=S(()=>{const t=C(b(n[0])).filter(s=>s!=null);return t.every(s=>typeof s!="string")?t:void 0}),c=F(()=>{var t,s;return[(s=(t=f.value)==null?void 0:t.map(i=>x(i)))!=null?s:[I].filter(i=>i!=null),C(b(f.value?n[1]:n[0])),C(G(f.value?n[2]:n[1])),b(f.value?n[3]:n[2])]},([t,s,i,a])=>{if(l(),!t?.length||!s?.length||!i?.length)return;const o=Q(a)?{...a}:a;e.push(...t.flatMap(v=>s.flatMap(r=>i.map(h=>p(v,r,h,o)))))},{flush:"post"}),u=()=>{c(),l()};return H(l),u}function Z(){const n=w(!1),e=P();return e&&D(()=>{n.value=!0},e),n}function N(n){const e=Z();return S(()=>(e.value,!!n()))}const k=Symbol("vueuse-ssr-width");function ee(){const n=q()?j(k,null):null;return typeof n=="number"?n:void 0}function te(n,e={}){const{window:l=I,ssrWidth:p=ee()}=e,f=N(()=>l&&"matchMedia"in l&&typeof l.matchMedia=="function"),c=w(typeof p=="number"),u=w(),t=w(!1),s=i=>{t.value=i.matches};return Y(()=>{if(c.value){c.value=!f.value;const i=b(n).split(",");t.value=i.some(a=>{const o=a.includes("not all"),v=a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(v||r);return v&&h&&(h=p>=T(v[1])),r&&h&&(h=p<=T(r[1])),o?!h:h});return}f.value&&(u.value=l.matchMedia(b(n)),t.value=u.value.matches)}),V(u,"change",s,{passive:!0}),S(()=>t.value)}function _(n,e={}){const{controls:l=!1,navigator:p=L}=e,f=N(()=>p&&"permissions"in p),c=w(),u=typeof n=="string"?{name:n}:n,t=w(),s=()=>{var a,o;t.value=(o=(a=c.value)==null?void 0:a.state)!=null?o:"prompt"};V(c,"change",s,{passive:!0});const i=J(async()=>{if(f.value){if(!c.value)try{c.value=await p.permissions.query(u)}catch{c.value=void 0}finally{s()}if(l)return K(c.value)}});return i(),l?{state:t,isSupported:f,query:i}:t}function ae(n={}){const{navigator:e=L,read:l=!1,source:p,copiedDuring:f=1500,legacy:c=!1}=n,u=N(()=>e&&"clipboard"in e),t=_("clipboard-read"),s=_("clipboard-write"),i=S(()=>u.value||c),a=w(""),o=w(!1),v=A(()=>o.value=!1,f,{immediate:!1});async function r(){let m=!(u.value&&W(t.value));if(!m)try{a.value=await e.clipboard.readText()}catch{m=!0}m&&(a.value=M())}i.value&&l&&V(["copy","cut"],r,{passive:!0});async function h(m=b(p)){if(i.value&&m!=null){let d=!(u.value&&W(s.value));if(!d)try{await e.clipboard.writeText(m)}catch{d=!0}d&&g(m),a.value=m,o.value=!0,v.start()}}function g(m){const d=document.createElement("textarea");d.value=m??"",d.style.position="absolute",d.style.opacity="0",document.body.appendChild(d),d.select(),document.execCommand("copy"),d.remove()}function M(){var m,d,y;return(y=(d=(m=document?.getSelection)==null?void 0:m.call(document))==null?void 0:d.toString())!=null?y:""}function W(m){return m==="granted"||m==="prompt"}return{isSupported:i,text:a,copied:o,copy:h}}function ne(n){return JSON.parse(JSON.stringify(n))}function oe(n,e,l={}){const{window:p=I,...f}=l;let c;const u=N(()=>p&&"ResizeObserver"in p),t=()=>{c&&(c.disconnect(),c=void 0)},s=S(()=>{const o=b(n);return Array.isArray(o)?o.map(v=>x(v)):[x(o)]}),i=E(s,o=>{if(t(),u.value&&p){c=new ResizeObserver(e);for(const v of o)v&&c.observe(v,f)}},{immediate:!0,flush:"post"}),a=()=>{t(),i()};return H(a),{isSupported:u,stop:a}}function ue(n,e={width:0,height:0},l={}){const{window:p=I,box:f="content-box"}=l,c=S(()=>{var o,v;return(v=(o=x(n))==null?void 0:o.namespaceURI)==null?void 0:v.includes("svg")}),u=w(e.width),t=w(e.height),{stop:s}=oe(n,([o])=>{const v=f==="border-box"?o.borderBoxSize:f==="content-box"?o.contentBoxSize:o.devicePixelContentBoxSize;if(p&&c.value){const r=x(n);if(r){const h=r.getBoundingClientRect();u.value=h.width,t.value=h.height}}else if(v){const r=C(v);u.value=r.reduce((h,{inlineSize:g})=>h+g,0),t.value=r.reduce((h,{blockSize:g})=>h+g,0)}else u.value=o.contentRect.width,t.value=o.contentRect.height},l);z(()=>{const o=x(n);o&&(u.value="offsetWidth"in o?o.offsetWidth:e.width,t.value="offsetHeight"in o?o.offsetHeight:e.height)});const i=E(()=>x(n),o=>{u.value=o?e.width:0,t.value=o?e.height:0});function a(){s(),i()}return{width:u,height:t,stop:a}}function le(n,e,l,p={}){var f,c,u;const{clone:t=!1,passive:s=!1,eventName:i,deep:a=!1,defaultValue:o,shouldEmit:v}=p,r=P(),h=l||r?.emit||((f=r?.$emit)==null?void 0:f.bind(r))||((u=(c=r?.proxy)==null?void 0:c.$emit)==null?void 0:u.bind(r?.proxy));let g=i;g=g||`update:${e.toString()}`;const M=d=>
1t?typeof t=="function"?t(d):ne(d):d,W=()=>$(n[e])?M(n[e]):o,m=d=>{v?v(d)&&h(g,d):h(g,d)};if(s){const d=W(),y=U(d);let O=!1;return E(()=>n[e],R=>{O||(O=!0,y.value=M(R),X(()=>O=!1))}),E(y,R=>{!O&&(R!==n[e]||a)&&m(R)},{deep:a}),y}else return S({get(){return W()},set(d){m(d)}})}function ce(n={}){const{window:e=I,initialWidth:l=Number.POSITIVE_INFINITY,initialHeight:p=Number.POSITIVE_INFINITY,listenOrientation:f=!0,includeScrollbar:c=!0,type:u="inner"}=n,t=w(l),s=w(p),i=()=>{if(e)if(u==="outer")t.value=e.outerWidth,s.value=e.outerHeight;else if(u==="visual"&&e.visualViewport){const{width:o,height:v,scale:r}=e.visualViewport;t.value=Math.round(o*r),s.value=Math.round(v*r)}else c?(t.value=e.innerWidth,s.value=e.innerHeight):(t.value=e.document.documentElement.clientWidth,s.value=e.document.documentElement.clientHeight)};i(),z(i);const a={passive:!0};if(V("resize",i,a),e&&u==="visual"&&e.visualViewport&&V(e.visualViewport,"resize",i,a),f){const o=te("(orientation: portrait)");E(o,()=>i())}return{width:t,height:s}}export{le as a,ce as b,ue as c,ae 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.