UNPKG

vue-finder-senior

Version:

VueFinderSenior is a file manager component for vue3. And there are multiple adaptable backends available . like Python PHP Go Rust

9 lines 157 kB
"use strict";var Br=Object.defineProperty;var Cr=(n,t,o)=>t in n?Br(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var Jt=(n,t,o)=>Cr(n,typeof t!="symbol"?t+"":t,o);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$r=require("mitt"),Dr=require("dragselect"),Tr=require("@uppy/core"),Mr=require("@uppy/xhr-upload"),Ar=require("vanilla-lazyload");require("cropperjs/dist/cropper.css");const Lr=require("cropperjs");var co;const en=(co=document.querySelector('meta[name="csrf-token"]'))==null?void 0:co.getAttribute("content");class Or{constructor(t){Jt(this,"config");Jt(this,"customFetch",async(...t)=>{let[o,s]=t;this.config.fetchRequestInterceptor&&(s=this.config.fetchRequestInterceptor(s));let r=await fetch(o,s);return this.config.fetchResponseInterceptor&&(r=await this.config.fetchResponseInterceptor(r)),r});this.config=t}get config(){return this.config}transformRequestParams(t){const o=this.config,s={};en!=null&&en!==""&&(s[o.xsrfHeaderName]=en);const r=Object.assign({},o.headers,s,t.headers),a=Object.assign({},o.params,t.params),i=t.body,d=o.baseUrl+t.url,l=t.method;let c;l!=="get"&&(i instanceof FormData?(c=i,o.body!=null&&Object.entries(this.config.body).forEach(([u,v])=>{c.append(u,v)})):(c={...i},o.body!=null&&Object.assign(c,this.config.body)));const f={url:d,method:l,headers:r,params:a,body:c};if(o.transformRequest!=null){const u=o.transformRequest({url:d,method:l,headers:r,params:a,body:c});u.url!=null&&(f.url=u.url),u.method!=null&&(f.method=u.method),u.params!=null&&(f.params=u.params??{}),u.headers!=null&&(f.headers=u.headers??{}),u.body!=null&&(f.body=u.body)}return f}getDownloadUrl(t,o){if(o.url!=null)return o.url;const s=this.transformRequestParams({url:"",method:"get",params:{q:"download",adapter:t,path:o.path}});return s.url+"?"+new URLSearchParams(s.params).toString()}getPreviewUrl(t,o){if(o.url!=null)return o.url;const s=this.transformRequestParams({url:"",method:"get",params:{q:"preview",adapter:t,path:o.path}});return s.url+"?"+new URLSearchParams(s.params).toString()}async send(t){const o=this.transformRequestParams(t),s=t.responseType||"json",r={method:t.method,headers:o.headers,signal:t.abortSignal},a=o.url+"?"+new URLSearchParams(o.params);if(o.method!=="get"&&o.body!=null){let d;o.body instanceof FormData?d=t.body:(d=JSON.stringify(o.body),r.headers["Content-Type"]="application/json"),r.body=d}this.config.fetchParams&&Object.assign(r,this.config.fetchParams);const i=await this.customFetch(a,r);if(i.ok)return await i[s]();throw await i.json()}}function Fr(n){const t={baseUrl:"",headers:{},params:{},body:{},xsrfHeaderName:"X-CSRF-Token",fetchParams:{}};return typeof n=="string"?Object.assign(t,{baseUrl:n}):Object.assign(t,n),new Or(t)}function Ir(n){let t=localStorage.getItem(n+"_storage");const o=e.reactive(JSON.parse(t??"{}"));e.watch(o,s);function s(){Object.keys(o).length?localStorage.setItem(n+"_storage",JSON.stringify(o)):localStorage.removeItem(n+"_storage")}function r(l,c){o[l]=c}function a(l){delete o[l]}function i(){Object.keys(o).map(l=>a(l))}return{getStore:(l,c=null)=>o.hasOwnProperty(l)?o[l]:c,setStore:r,removeStore:a,clearStore:i}}async function Hr(n,t){const o=t[n];return typeof o=="function"?(await o()).default:o}function Rr(n,t,o,s){const{getStore:r,setStore:a}=n,i=e.ref({}),d=e.ref(r("locale",t)),l=(u,v=t)=>{Hr(u,s).then(m=>{i.value=m,a("locale",u),d.value=u,a("translations",m),Object.values(s).length>1&&(o.emit("vf-toast-push",{label:"The language is set to "+u}),o.emit("vf-language-saved"))}).catch(m=>{v?(o.emit("vf-toast-push",{label:"The selected locale is not yet supported!",type:"error"}),l(v,null)):o.emit("vf-toast-push",{label:"Locale cannot be loaded!",type:"error"})})};e.watch(d,u=>{l(u)}),!r("locale")&&!s.length?l(t):i.value=r("translations");const c=(u,...v)=>v.length?c(u=u.replace("%s",v.shift()),...v):u;function f(u,...v){return i.value&&i.value.hasOwnProperty(u)?c(i.value[u],...v):c(u,...v)}return e.reactive({t:f,locale:d})}const J={EDIT:"edit",NEW_FILE:"newfile",NEW_FOLDER:"newfolder",PREVIEW:"preview",ARCHIVE:"archive",UNARCHIVE:"unarchive",SEARCH:"search",RENAME:"rename",UPLOAD:"upload",DELETE:"delete",FULL_SCREEN:"fullscreen",DOWNLOAD:"download",LANGUAGE:"language"},Ur=Object.values(J),zr="2.7.1";function uo(n,t,o,s,r){return(t=Math,o=t.log,s=1024,r=o(n)/o(s)|0,n/t.pow(s,r)).toFixed(0)+" "+(r?"KMGTPEZY"[--r]+"iB":"B")}function fo(n,t,o,s,r){return(t=Math,o=t.log,s=1e3,r=o(n)/o(s)|0,n/t.pow(s,r)).toFixed(0)+" "+(r?"KMGTPEZY"[--r]+"B":"B")}function Pr(n){const t={k:1,m:2,g:3,t:4},s=/(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(n);return s[1]*Math.pow(1024,t[s[2].toLowerCase()])}const He={SYSTEM:"system",LIGHT:"light",DARK:"dark"};function qr(n,t){const o=e.ref(He.SYSTEM),s=e.ref(He.LIGHT);o.value=n.getStore("theme",t??He.SYSTEM);const r=window.matchMedia("(prefers-color-scheme: dark)"),a=i=>{o.value===He.DARK||o.value===He.SYSTEM&&i.matches?s.value=He.DARK:s.value=He.LIGHT};return a(r),r.addEventListener("change",a),{value:o,actualValue:s,set(i){o.value=i,i!==He.SYSTEM?n.setStore("theme",i):n.removeStore("theme"),a(r)}}}function jr(){const n=e.shallowRef(null),t=e.ref(!1),o=e.ref();return{visible:t,type:n,data:o,open:(a,i=null)=>{document.querySelector("body").style.overflow="hidden",t.value=!0,n.value=a,o.value=i},close:()=>{document.querySelector("body").style.overflow="",t.value=!1,n.value=null}}}/*! * OverlayScrollbars * Version: 2.11.1 * * Copyright (c) Rene Haas | KingSora. * https://github.com/KingSora * * Released under the MIT license. */const he=(n,t)=>{const{o,i:s,u:r}=n;let a=o,i;const d=(f,u)=>{const v=a,m=f,p=u||(s?!s(v,m):v!==m);return(p||r)&&(a=m,i=v),[a,p,i]};return[t?f=>d(t(a,i),f):d,f=>[a,!!f,i]]},Gr=typeof window<"u"&&typeof HTMLElement<"u"&&!!window.document,_e=Gr?window:{},mo=Math.max,Wr=Math.min,cn=Math.round,Dt=Math.abs,qn=Math.sign,vo=_e.cancelAnimationFrame,Sn=_e.requestAnimationFrame,Tt=_e.setTimeout,dn=_e.clearTimeout,Ht=n=>typeof _e[n]<"u"?_e[n]:void 0,Kr=Ht("MutationObserver"),jn=Ht("IntersectionObserver"),Ye=Ht("ResizeObserver"),it=Ht("ScrollTimeline"),Nn=n=>n===void 0,Rt=n=>n===null,Be=n=>typeof n=="number",ft=n=>typeof n=="string",Ut=n=>typeof n=="boolean",ye=n=>typeof n=="function",Ce=n=>Array.isArray(n),Mt=n=>typeof n=="object"&&!Ce(n)&&!Rt(n),xn=n=>{const t=!!n&&n.length,o=Be(t)&&t>-1&&t%1==0;return Ce(n)||!ye(n)&&o?t>0&&Mt(n)?t-1 in n:!0:!1},At=n=>!!n&&n.constructor===Object,Lt=n=>n instanceof HTMLElement,zt=n=>n instanceof Element;function X(n,t){if(xn(n))for(let o=0;o<n.length&&t(n[o],o,n)!==!1;o++);else n&&X(Object.keys(n),o=>t(n[o],o,n));return n}const po=(n,t)=>n.indexOf(t)>=0,ct=(n,t)=>n.concat(t),re=(n,t,o)=>(!ft(t)&&xn(t)?Array.prototype.push.apply(n,t):n.push(t),n),Pe=n=>Array.from(n||[]),Bn=n=>Ce(n)?n:!ft(n)&&xn(n)?Pe(n):[n],un=n=>!!n&&!n.length,fn=n=>Pe(new Set(n)),ke=(n,t,o)=>{X(n,r=>r?r.apply(void 0,t||[]):!0),o||(n.length=0)},_o="paddingTop",ho="paddingRight",go="paddingLeft",ko="paddingBottom",wo="marginLeft",bo="marginRight",yo="marginBottom",Eo="overflowX",Vo="overflowY",Pt="width",qt="height",Re="visible",Ge="hidden",et="scroll",Yr=n=>{const t=String(n||"");return t?t[0].toUpperCase()+t.slice(1):""},jt=(n,t,o,s)=>{if(n&&t){let r=!0;return X(o,a=>{const i=n[a],d=t[a];i!==d&&(r=!1)}),r}return!1},So=(n,t)=>jt(n,t,["w","h"]),Bt=(n,t)=>jt(n,t,["x","y"]),Xr=(n,t)=>jt(n,t,["t","r","b","l"]),Ue=()=>{},z=(n,...t)=>n.bind(0,...t),Xe=n=>{let t;const o=n?Tt:Sn,s=n?dn:vo;return[r=>{s(t),t=o(()=>r(),ye(n)?n():n)},()=>s(t)]},Ot=(n,t)=>{const{_:o,p:s,v:r,S:a}=t||{};let i,d,l,c,f=Ue;const u=function(b){f(),dn(i),c=i=d=void 0,f=Ue,n.apply(this,b)},v=k=>a&&d?a(d,k):k,m=()=>{f!==Ue&&u(v(l)||l)},p=function(){const b=Pe(arguments),S=ye(o)?o():o;if(Be(S)&&S>=0){const N=ye(s)?s():s,y=Be(N)&&N>=0,x=S>0?Tt:Sn,$=S>0?dn:vo,C=v(b)||b,_=u.bind(0,C);let h;f(),r&&!c?(_(),c=!0,h=x(()=>c=void 0,S)):(h=x(_,S),y&&!i&&(i=Tt(m,N))),f=()=>$(h),d=l=C}else u(b)};return p.m=m,p},No=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),Ee=n=>n?Object.keys(n):[],K=(n,t,o,s,r,a,i)=>{const d=[t,o,s,r,a,i];return(typeof n!="object"||Rt(n))&&!ye(n)&&(n={}),X(d,l=>{X(l,(c,f)=>{const u=l[f];if(n===u)return!0;const v=Ce(u);if(u&&At(u)){const m=n[f];let p=m;v&&!Ce(m)?p=[]:!v&&!At(m)&&(p={}),n[f]=K(p,u)}else n[f]=v?u.slice():u})}),n},xo=(n,t)=>X(K({},n),(o,s,r)=>{o===void 0?delete r[s]:o&&At(o)&&(r[s]=xo(o))}),Cn=n=>!Ee(n).length,Bo=(n,t,o)=>mo(n,Wr(t,o)),We=n=>fn((Ce(n)?n:(n||"").split(" ")).filter(t=>t)),$n=(n,t)=>n&&n.getAttribute(t),Gn=(n,t)=>n&&n.hasAttribute(t),Ae=(n,t,o)=>{X(We(t),s=>{n&&n.setAttribute(s,String(o||""))})},Ne=(n,t)=>{X(We(t),o=>n&&n.removeAttribute(o))},Gt=(n,t)=>{const o=We($n(n,t)),s=z(Ae,n,t),r=(a,i)=>{const d=new Set(o);return X(We(a),l=>{d[i](l)}),Pe(d).join(" ")};return{O:a=>s(r(a,"delete")),$:a=>s(r(a,"add")),C:a=>{const i=We(a);return i.reduce((d,l)=>d&&o.includes(l),i.length>0)}}},Co=(n,t,o)=>(Gt(n,t).O(o),z(Dn,n,t,o)),Dn=(n,t,o)=>(Gt(n,t).$(o),z(Co,n,t,o)),Ft=(n,t,o,s)=>(s?Dn:Co)(n,t,o),Tn=(n,t,o)=>Gt(n,t).C(o),$o=n=>Gt(n,"class"),Do=(n,t)=>{$o(n).O(t)},Mn=(n,t)=>($o(n).$(t),z(Do,n,t)),To=(n,t)=>{const o=t?zt(t)&&t:document;return o?Pe(o.querySelectorAll(n)):[]},Zr=(n,t)=>{const o=t?zt(t)&&t:document;return o&&o.querySelector(n)},mn=(n,t)=>zt(n)&&n.matches(t),Mo=n=>mn(n,"body"),vn=n=>n?Pe(n.childNodes):[],dt=n=>n&&n.parentElement,Ze=(n,t)=>zt(n)&&n.closest(t),pn=n=>document.activeElement,Qr=(n,t,o)=>{const s=Ze(n,t),r=n&&Zr(o,s),a=Ze(r,t)===s;return s&&r?s===n||r===n||a&&Ze(Ze(n,o),t)!==s:!1},tt=n=>{X(Bn(n),t=>{const o=dt(t);t&&o&&o.removeChild(t)})},pe=(n,t)=>z(tt,n&&t&&X(Bn(t),o=>{o&&n.appendChild(o)}));let Ao;const Jr=()=>Ao,es=n=>{Ao=n},Qe=n=>{const t=document.createElement("div");return Ae(t,"class",n),t},Lo=n=>{const t=Qe(),o=Jr(),s=n.trim();return t.innerHTML=o?o.createHTML(s):s,X(vn(t),r=>tt(r))},Wn=(n,t)=>n.getPropertyValue(t)||n[t]||"",Oo=n=>{const t=n||0;return isFinite(t)?t:0},St=n=>Oo(parseFloat(n||"")),_n=n=>Math.round(n*1e4)/1e4,Fo=n=>`${_n(Oo(n))}px`;function ut(n,t){n&&t&&X(t,(o,s)=>{try{const r=n.style,a=Rt(o)||Ut(o)?"":Be(o)?Fo(o):o;s.indexOf("--")===0?r.setProperty(s,a):r[s]=a}catch{}})}function Oe(n,t,o){const s=ft(t);let r=s?"":{};if(n){const a=_e.getComputedStyle(n,o)||n.style;r=s?Wn(a,t):Pe(t).reduce((i,d)=>(i[d]=Wn(a,d),i),r)}return r}const Kn=(n,t,o)=>{const s=t?`${t}-`:"",r=o?`-${o}`:"",a=`${s}top${r}`,i=`${s}right${r}`,d=`${s}bottom${r}`,l=`${s}left${r}`,c=Oe(n,[a,i,d,l]);return{t:St(c[a]),r:St(c[i]),b:St(c[d]),l:St(c[l])}},tn=(n,t)=>`translate${Mt(n)?`(${n.x},${n.y})`:`${t?"X":"Y"}(${n})`}`,ts=n=>!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length),ns={w:0,h:0},Wt=(n,t)=>t?{w:t[`${n}Width`],h:t[`${n}Height`]}:ns,os=n=>Wt("inner",n||_e),Je=z(Wt,"offset"),Io=z(Wt,"client"),It=z(Wt,"scroll"),An=n=>{const t=parseFloat(Oe(n,Pt))||0,o=parseFloat(Oe(n,qt))||0;return{w:t-cn(t),h:o-cn(o)}},nn=n=>n.getBoundingClientRect(),rs=n=>!!n&&ts(n),hn=n=>!!(n&&(n[qt]||n[Pt])),Ho=(n,t)=>{const o=hn(n);return!hn(t)&&o},Yn=(n,t,o,s)=>{X(We(t),r=>{n&&n.removeEventListener(r,o,s)})},te=(n,t,o,s)=>{var r;const a=(r=s&&s.H)!=null?r:!0,i=s&&s.I||!1,d=s&&s.A||!1,l={passive:a,capture:i};return z(ke,We(t).map(c=>{const f=d?u=>{Yn(n,c,f,i),o&&o(u)}:o;return n&&n.addEventListener(c,f,l),z(Yn,n,c,f,i)}))},Ro=n=>n.stopPropagation(),gn=n=>n.preventDefault(),Uo=n=>Ro(n)||gn(n),xe=(n,t)=>{const{x:o,y:s}=Be(t)?{x:t,y:t}:t||{};Be(o)&&(n.scrollLeft=o),Be(s)&&(n.scrollTop=s)},ge=n=>({x:n.scrollLeft,y:n.scrollTop}),zo=()=>({D:{x:0,y:0},M:{x:0,y:0}}),ss=(n,t)=>{const{D:o,M:s}=n,{w:r,h:a}=t,i=(u,v,m)=>{let p=qn(u)*m,k=qn(v)*m;if(p===k){const b=Dt(u),S=Dt(v);k=b>S?0:k,p=b<S?0:p}return p=p===k?0:p,[p+0,k+0]},[d,l]=i(o.x,s.x,r),[c,f]=i(o.y,s.y,a);return{D:{x:d,y:c},M:{x:l,y:f}}},on=({D:n,M:t})=>{const o=(s,r)=>s===0&&s<=r;return{x:o(n.x,t.x),y:o(n.y,t.y)}},Xn=({D:n,M:t},o)=>{const s=(r,a,i)=>Bo(0,1,(r-i)/(r-a)||0);return{x:s(n.x,t.x,o.x),y:s(n.y,t.y,o.y)}},kn=n=>{n&&n.focus&&n.focus({preventScroll:!0})},Zn=(n,t)=>{X(Bn(t),n)},wn=n=>{const t=new Map,o=(a,i)=>{if(a){const d=t.get(a);Zn(l=>{d&&d[l?"delete":"clear"](l)},i)}else t.forEach(d=>{d.clear()}),t.clear()},s=(a,i)=>{if(ft(a)){const c=t.get(a)||new Set;return t.set(a,c),Zn(f=>{ye(f)&&c.add(f)},i),z(o,a,i)}Ut(i)&&i&&o();const d=Ee(a),l=[];return X(d,c=>{const f=a[c];f&&re(l,s(c,f))}),z(ke,l)},r=(a,i)=>{X(Pe(t.get(a)),d=>{i&&!un(i)?d.apply(0,i):d()})};return s(n||{}),[s,o,r]},Po={},qo={},ls=n=>{X(n,t=>X(t,(o,s)=>{Po[s]=t[s]}))},jo=(n,t,o)=>Ee(n).map(s=>{const{static:r,instance:a}=n[s],[i,d,l]=o||[],c=o?a:r;if(c){const f=o?c(i,d,t):c(t);return(l||qo)[s]=f}}),mt=n=>qo[n],as="__osOptionsValidationPlugin",ot="data-overlayscrollbars",Ct="os-environment",Nt=`${Ct}-scrollbar-hidden`,rn=`${ot}-initialize`,$t="noClipping",Qn=`${ot}-body`,ze=ot,is="host",Le=`${ot}-viewport`,cs=Eo,ds=Vo,us="arrange",Go="measuring",fs="scrolling",Wo="scrollbarHidden",ms="noContent",bn=`${ot}-padding`,Jn=`${ot}-content`,Ln="os-size-observer",vs=`${Ln}-appear`,ps=`${Ln}-listener`,_s="os-trinsic-observer",hs="os-theme-none",we="os-scrollbar",gs=`${we}-rtl`,ks=`${we}-horizontal`,ws=`${we}-vertical`,Ko=`${we}-track`,On=`${we}-handle`,bs=`${we}-visible`,ys=`${we}-cornerless`,eo=`${we}-interaction`,to=`${we}-unusable`,yn=`${we}-auto-hide`,no=`${yn}-hidden`,oo=`${we}-wheel`,Es=`${Ko}-interactive`,Vs=`${On}-interactive`,Ss="__osSizeObserverPlugin",Ns=(n,t)=>{const{T:o}=t,[s,r]=n("showNativeOverlaidScrollbars");return[s&&o.x&&o.y,r]},nt=n=>n.indexOf(Re)===0,xs=(n,t)=>{const o=(r,a,i,d)=>{const l=r===Re?Ge:r.replace(`${Re}-`,""),c=nt(r),f=nt(i);return!a&&!d?Ge:c&&f?Re:c?a&&d?l:a?Re:Ge:a?l:f&&d?Re:Ge},s={x:o(t.x,n.x,t.y,n.y),y:o(t.y,n.y,t.x,n.x)};return{k:s,R:{x:s.x===et,y:s.y===et}}},Yo="__osScrollbarsHidingPlugin",Bs="__osClickScrollPlugin",ro=n=>JSON.stringify(n,(t,o)=>{if(ye(o))throw 0;return o}),so=(n,t)=>n?`${t}`.split(".").reduce((o,s)=>o&&No(o,s)?o[s]:void 0,n):void 0,Cs={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Xo=(n,t)=>{const o={},s=ct(Ee(t),Ee(n));return X(s,r=>{const a=n[r],i=t[r];if(Mt(a)&&Mt(i))K(o[r]={},Xo(a,i)),Cn(o[r])&&delete o[r];else if(No(t,r)&&i!==a){let d=!0;if(Ce(a)||Ce(i))try{ro(a)===ro(i)&&(d=!1)}catch{}d&&(o[r]=i)}}),o},lo=(n,t,o)=>s=>[so(n,s),o||so(t,s)!==void 0];let Zo;const $s=()=>Zo,Ds=n=>{Zo=n};let sn;const Ts=()=>{const n=(y,x,$)=>{pe(document.body,y),pe(document.body,y);const I=Io(y),C=Je(y),_=An(x);return $&&tt(y),{x:C.h-I.h+_.h,y:C.w-I.w+_.w}},t=y=>{let x=!1;const $=Mn(y,Nt);try{x=Oe(y,"scrollbar-width")==="none"||Oe(y,"display","::-webkit-scrollbar")==="none"}catch{}return $(),x},o=`.${Ct}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Ct} div{width:200%;height:200%;margin:10px 0}.${Nt}{scrollbar-width:none!important}.${Nt}::-webkit-scrollbar,.${Nt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`,r=Lo(`<div class="${Ct}"><div></div><style>${o}</style></div>`)[0],a=r.firstChild,i=r.lastChild,d=$s();d&&(i.nonce=d);const[l,,c]=wn(),[f,u]=he({o:n(r,a),i:Bt},z(n,r,a,!0)),[v]=u(),m=t(r),p={x:v.x===0,y:v.y===0},k={elements:{host:null,padding:!m,viewport:y=>m&&Mo(y)&&y,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},b=K({},Cs),S=z(K,{},b),D=z(K,{},k),N={N:v,T:p,P:m,G:!!it,K:z(l,"r"),Z:D,tt:y=>K(k,y)&&D(),nt:S,ot:y=>K(b,y)&&S(),st:K({},k),et:K({},b)};if(Ne(r,"style"),tt(r),te(_e,"resize",()=>{c("r",[])}),ye(_e.matchMedia)&&!m&&(!p.x||!p.y)){const y=x=>{const $=_e.matchMedia(`(resolution: ${_e.devicePixelRatio}dppx)`);te($,"change",()=>{x(),y(x)},{A:!0})};y(()=>{const[x,$]=f();K(N.N,x),c("r",[$])})}return N},$e=()=>(sn||(sn=Ts()),sn),Ms=(n,t,o)=>{let s=!1;const r=o?new WeakMap:!1,a=()=>{s=!0},i=d=>{if(r&&o){const l=o.map(c=>{const[f,u]=c||[];return[u&&f?(d||To)(f,n):[],u]});X(l,c=>X(c[0],f=>{const u=c[1],v=r.get(f)||[];if(n.contains(f)&&u){const p=te(f,u,k=>{s?(p(),r.delete(f)):t(k)});r.set(f,re(v,p))}else ke(v),r.delete(f)}))}};return i(),[a,i]},ao=(n,t,o,s)=>{let r=!1;const{ct:a,rt:i,lt:d,it:l,ut:c,ft:f}=s||{},u=Ot(()=>r&&o(!0),{_:33,p:99}),[v,m]=Ms(n,u,d),p=a||[],k=i||[],b=ct(p,k),S=(N,y)=>{if(!un(y)){const x=c||Ue,$=f||Ue,I=[],C=[];let _=!1,h=!1;if(X(y,B=>{const{attributeName:g,target:M,type:w,oldValue:A,addedNodes:L,removedNodes:q}=B,W=w==="attributes",G=w==="childList",ne=n===M,U=W&&g,E=U&&$n(M,g||""),T=ft(E)?E:null,O=U&&A!==T,V=po(k,g)&&O;if(t&&(G||!ne)){const H=W&&O,F=H&&l&&mn(M,l),P=(F?!x(M,g,A,T):!W||H)&&!$(B,!!F,n,s);X(L,Y=>re(I,Y)),X(q,Y=>re(I,Y)),h=h||P}!t&&ne&&O&&!x(M,g,A,T)&&(re(C,g),_=_||V)}),m(B=>fn(I).reduce((g,M)=>(re(g,To(B,M)),mn(M,B)?re(g,M):g),[])),t)return!N&&h&&o(!1),[!1];if(!un(C)||_){const B=[fn(C),_];return N||o.apply(0,B),B}}},D=new Kr(z(S,!1));return[()=>(D.observe(n,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(v(),D.disconnect(),r=!1)}),()=>{if(r)return u.m(),S(!0,D.takeRecords())}]};let je=null;const Qo=(n,t,o)=>{const{_t:s}=o||{},r=mt(Ss),[a]=he({o:!1,u:!0});return()=>{const i=[],l=Lo(`<div class="${Ln}"><div class="${ps}"></div></div>`)[0],c=l.firstChild,f=u=>{const v=u instanceof ResizeObserverEntry;let m=!1,p=!1;if(v){const[k,,b]=a(u.contentRect),S=hn(k);p=Ho(k,b),m=!p&&!S}else p=u===!0;m||t({dt:!0,_t:p})};if(Ye){if(!Ut(je)){const p=new Ye(Ue);p.observe(n,{get box(){je=!0}}),je=je||!1,p.disconnect()}const u=Ot(f,{_:0,p:0}),v=p=>u(p.pop()),m=new Ye(v);if(m.observe(je?n:c),re(i,[()=>m.disconnect(),!je&&pe(n,l)]),je){const p=new Ye(v);p.observe(n,{box:"border-box"}),re(i,()=>p.disconnect())}}else if(r){const[u,v]=r(c,f,s);re(i,ct([Mn(l,vs),te(l,"animationstart",u),pe(n,l)],v))}else return Ue;return z(ke,i)}},As=(n,t)=>{let o;const s=l=>l.h===0||l.isIntersecting||l.intersectionRatio>0,r=Qe(_s),[a]=he({o:!1}),i=(l,c)=>{if(l){const f=a(s(l)),[,u]=f;return u&&!c&&t(f)&&[f]}},d=(l,c)=>i(c.pop(),l);return[()=>{const l=[];if(jn)o=new jn(z(d,!1),{root:n}),o.observe(r),re(l,()=>{o.disconnect()});else{const c=()=>{const f=Je(r);i(f)};re(l,Qo(r,c)()),c()}return z(ke,re(l,pe(n,r)))},()=>o&&d(!0,o.takeRecords())]},Ls=(n,t,o,s)=>{let r,a,i,d,l,c;const f=`[${ze}]`,u=`[${Le}]`,v=["id","class","style","open","wrap","cols","rows"],{vt:m,ht:p,U:k,gt:b,bt:S,L:D,wt:N,yt:y,St:x,Ot:$}=n,I=V=>Oe(V,"direction")==="rtl",C={$t:!1,F:I(m)},_=$e(),h=mt(Yo),[B]=he({i:So,o:{w:0,h:0}},()=>{const V=h&&h.V(n,t,C,_,o).W,F=!(N&&D)&&Tn(p,ze,$t),R=!D&&y(us),P=R&&ge(b),Y=P&&$(),ee=x(Go,F),Z=R&&V&&V()[0],ue=It(k),j=An(k);return Z&&Z(),xe(b,P),Y&&Y(),F&&ee(),{w:ue.w+j.w,h:ue.h+j.h}}),g=Ot(s,{_:()=>r,p:()=>a,S(V,H){const[F]=V,[R]=H;return[ct(Ee(F),Ee(R)).reduce((P,Y)=>(P[Y]=F[Y]||R[Y],P),{})]}}),M=V=>{const H=I(m);K(V,{Ct:c!==H}),K(C,{F:H}),c=H},w=(V,H)=>{const[F,R]=V,P={xt:R};return K(C,{$t:F}),H||s(P),P},A=({dt:V,_t:H})=>{const R=!(V&&!H)&&_.P?g:s,P={dt:V||H,_t:H};M(P),R(P)},L=(V,H)=>{const[,F]=B(),R={Ht:F};return M(R),F&&!H&&(V?s:g)(R),R},q=(V,H,F)=>{const R={Et:H};return M(R),H&&!F&&g(R),R},[W,G]=S?As(p,w):[],ne=!D&&Qo(p,A,{_t:!0}),[U,E]=ao(p,!1,q,{rt:v,ct:v}),T=D&&Ye&&new Ye(V=>{const H=V[V.length-1].contentRect;A({dt:!0,_t:Ho(H,l)}),l=H}),O=Ot(()=>{const[,V]=B();s({Ht:V})},{_:222,v:!0});return[()=>{T&&T.observe(p);const V=ne&&ne(),H=W&&W(),F=U(),R=_.K(P=>{P?g({zt:P}):O()});return()=>{T&&T.disconnect(),V&&V(),H&&H(),d&&d(),F(),R()}},({It:V,At:H,Dt:F})=>{const R={},[P]=V("update.ignoreMutation"),[Y,ee]=V("update.attributes"),[Z,ue]=V("update.elementEvents"),[j,ae]=V("update.debounce"),ve=ue||ee,ie=H||F,ce=se=>ye(P)&&P(se);if(ve){i&&i(),d&&d();const[se,le]=ao(S||k,!0,L,{ct:ct(v,Y||[]),lt:Z,it:f,ft:(oe,Q)=>{const{target:de,attributeName:me}=oe;return(!Q&&me&&!D?Qr(de,f,u):!1)||!!Ze(de,`.${we}`)||!!ce(oe)}});d=se(),i=le}if(ae)if(g.m(),Ce(j)){const se=j[0],le=j[1];r=Be(se)&&se,a=Be(le)&&le}else Be(j)?(r=j,a=!1):(r=!1,a=!1);if(ie){const se=E(),le=G&&G(),oe=i&&i();se&&K(R,q(se[0],se[1],ie)),le&&K(R,w(le[0],ie)),oe&&K(R,L(oe[0],ie))}return M(R),R},C]},Jo=(n,t)=>ye(t)?t.apply(0,n):t,Os=(n,t,o,s)=>{const r=Nn(s)?o:s;return Jo(n,r)||t.apply(0,n)},er=(n,t,o,s)=>{const r=Nn(s)?o:s,a=Jo(n,r);return!!a&&(Lt(a)?a:t.apply(0,n))},Fs=(n,t)=>{const{nativeScrollbarsOverlaid:o,body:s}=t||{},{T:r,P:a,Z:i}=$e(),{nativeScrollbarsOverlaid:d,body:l}=i().cancel,c=o??d,f=Nn(s)?l:s,u=(r.x||r.y)&&c,v=n&&(Rt(f)?!a:f);return!!u||!!v},Is=(n,t,o,s)=>{const r="--os-viewport-percent",a="--os-scroll-percent",i="--os-scroll-direction",{Z:d}=$e(),{scrollbars:l}=d(),{slot:c}=l,{vt:f,ht:u,U:v,Mt:m,gt:p,wt:k,L:b}=t,{scrollbars:S}=m?{}:n,{slot:D}=S||{},N=[],y=[],x=[],$=er([f,u,v],()=>b&&k?f:u,c,D),I=U=>{if(it){let E=null,T=[];const O=new it({source:p,axis:U}),V=()=>{E&&E.cancel(),E=null};return{Rt:F=>{const{Tt:R}=o,P=on(R)[U],Y=U==="x",ee=[tn(0,Y),tn(`calc(100cq${Y?"w":"h"} + -100%)`,Y)],Z=P?ee:ee.reverse();return T[0]===Z[0]&&T[1]===Z[1]||(V(),T=Z,E=F.kt.animate({clear:["left"],transform:Z},{timeline:O})),V}}}},C={x:I("x"),y:I("y")},_=()=>{const{Vt:U,Lt:E}=o,T=(O,V)=>Bo(0,1,O/(O+V)||0);return{x:T(E.x,U.x),y:T(E.y,U.y)}},h=(U,E,T)=>{const O=T?Mn:Do;X(U,V=>{O(V.Ut,E)})},B=(U,E)=>{X(U,T=>{const[O,V]=E(T);ut(O,V)})},g=(U,E,T)=>{const O=Ut(T),V=O?T:!0,H=O?!T:!0;V&&h(y,U,E),H&&h(x,U,E)},M=()=>{const U=_(),E=T=>O=>[O.Ut,{[r]:_n(T)+""}];B(y,E(U.x)),B(x,E(U.y))},w=()=>{if(!it){const{Tt:U}=o,E=Xn(U,ge(p)),T=O=>V=>[V.Ut,{[a]:_n(O)+""}];B(y,T(E.x)),B(x,T(E.y))}},A=()=>{const{Tt:U}=o,E=on(U),T=O=>V=>[V.Ut,{[i]:O?"0":"1"}];B(y,T(E.x)),B(x,T(E.y)),it&&(y.forEach(C.x.Rt),x.forEach(C.y.Rt))},L=()=>{if(b&&!k){const{Vt:U,Tt:E}=o,T=on(E),O=Xn(E,ge(p)),V=H=>{const{Ut:F}=H,R=dt(F)===v&&F,P=(Y,ee,Z)=>{const ue=ee*Y;return Fo(Z?ue:-ue)};return[R,R&&{transform:tn({x:P(O.x,U.x,T.x),y:P(O.y,U.y,T.y)})}]};B(y,V),B(x,V)}},q=U=>{const E=U?"x":"y",O=Qe(`${we} ${U?ks:ws}`),V=Qe(Ko),H=Qe(On),F={Ut:O,Pt:V,kt:H},R=C[E];return re(U?y:x,F),re(N,[pe(O,V),pe(V,H),z(tt,O),R&&R.Rt(F),s(F,g,U)]),F},W=z(q,!0),G=z(q,!1),ne=()=>(pe($,y[0].Ut),pe($,x[0].Ut),z(ke,N));return W(),G(),[{Nt:M,qt:w,Bt:A,Ft:L,jt:g,Xt:{Yt:y,Wt:W,Jt:z(B,y)},Gt:{Yt:x,Wt:G,Jt:z(B,x)}},ne]},Hs=(n,t,o,s)=>(r,a,i)=>{const{ht:d,U:l,L:c,gt:f,Kt:u,Ot:v}=t,{Ut:m,Pt:p,kt:k}=r,[b,S]=Xe(333),[D,N]=Xe(444),y=I=>{ye(f.scrollBy)&&f.scrollBy({behavior:"smooth",left:I.x,top:I.y})},x=()=>{const I="pointerup pointercancel lostpointercapture",C=`client${i?"X":"Y"}`,_=i?Pt:qt,h=i?"left":"top",B=i?"w":"h",g=i?"x":"y",M=(A,L)=>q=>{const{Vt:W}=o,G=Je(p)[B]-Je(k)[B],U=L*q/G*W[g];xe(f,{[g]:A+U})},w=[];return te(p,"pointerdown",A=>{const L=Ze(A.target,`.${On}`)===k,q=L?k:p,W=n.scrollbars,G=W[L?"dragScroll":"clickScroll"],{button:ne,isPrimary:U,pointerType:E}=A,{pointers:T}=W;if(ne===0&&U&&G&&(T||[]).includes(E)){ke(w),N();const V=!L&&(A.shiftKey||G==="instant"),H=z(nn,k),F=z(nn,p),R=(Q,de)=>(Q||H())[h]-(de||F())[h],P=cn(nn(f)[_])/Je(f)[B]||1,Y=M(ge(f)[g],1/P),ee=A[C],Z=H(),ue=F(),j=Z[_],ae=R(Z,ue)+j/2,ve=ee-ue[h],ie=L?0:ve-ae,ce=Q=>{ke(oe),q.releasePointerCapture(Q.pointerId)},se=L||V,le=v(),oe=[te(u,I,ce),te(u,"selectstart",Q=>gn(Q),{H:!1}),te(p,I,ce),se&&te(p,"pointermove",Q=>Y(ie+(Q[C]-ee))),se&&(()=>{const Q=ge(f);le();const de=ge(f),me={x:de.x-Q.x,y:de.y-Q.y};(Dt(me.x)>3||Dt(me.y)>3)&&(v(),xe(f,Q),y(me),D(le))})];if(q.setPointerCapture(A.pointerId),V)Y(ie);else if(!L){const Q=mt(Bs);if(Q){const de=Q(Y,ie,j,me=>{me?le():re(oe,le)});re(oe,de),re(w,z(de,!0))}}}})};let $=!0;return z(ke,[te(k,"pointermove pointerleave",s),te(m,"pointerenter",()=>{a(eo,!0)}),te(m,"pointerleave pointercancel",()=>{a(eo,!1)}),!c&&te(m,"mousedown",()=>{const I=pn();(Gn(I,Le)||Gn(I,ze)||I===document.body)&&Tt(z(kn,l),25)}),te(m,"wheel",I=>{const{deltaX:C,deltaY:_,deltaMode:h}=I;$&&h===0&&dt(m)===d&&y({x:C,y:_}),$=!1,a(oo,!0),b(()=>{$=!0,a(oo)}),gn(I)},{H:!1,I:!0}),te(m,"pointerdown",z(te,u,"click",Uo,{A:!0,I:!0,H:!1}),{I:!0}),x(),S,N])},Rs=(n,t,o,s,r,a)=>{let i,d,l,c,f,u=Ue,v=0;const m=["mouse","pen"],p=E=>m.includes(E.pointerType),[k,b]=Xe(),[S,D]=Xe(100),[N,y]=Xe(100),[x,$]=Xe(()=>v),[I,C]=Is(n,r,s,Hs(t,r,s,E=>p(E)&&W())),{ht:_,Qt:h,wt:B}=r,{jt:g,Nt:M,qt:w,Bt:A,Ft:L}=I,q=(E,T)=>{if($(),E)g(no);else{const O=z(g,no,!0);v>0&&!T?x(O):O()}},W=()=>{(l?!i:!c)&&(q(!0),S(()=>{q(!1)}))},G=E=>{g(yn,E,!0),g(yn,E,!1)},ne=E=>{p(E)&&(i=l,l&&q(!0))},U=[$,D,y,b,()=>u(),te(_,"pointerover",ne,{A:!0}),te(_,"pointerenter",ne),te(_,"pointerleave",E=>{p(E)&&(i=!1,l&&q(!1))}),te(_,"pointermove",E=>{p(E)&&d&&W()}),te(h,"scroll",E=>{k(()=>{w(),W()}),a(E),L()})];return[()=>z(ke,re(U,C())),({It:E,Dt:T,Zt:O,tn:V})=>{const{nn:H,sn:F,en:R,cn:P}=V||{},{Ct:Y,_t:ee}=O||{},{F:Z}=o,{T:ue}=$e(),{k:j,rn:ae}=s,[ve,ie]=E("showNativeOverlaidScrollbars"),[ce,se]=E("scrollbars.theme"),[le,oe]=E("scrollbars.visibility"),[Q,de]=E("scrollbars.autoHide"),[me,rt]=E("scrollbars.autoHideSuspend"),[vt]=E("scrollbars.autoHideDelay"),[pt,_t]=E("scrollbars.dragScroll"),[qe,st]=E("scrollbars.clickScroll"),[ht,Yt]=E("overflow"),Xt=ee&&!T,Zt=ae.x||ae.y,Se=H||F||P||Y||T,Qt=R||oe||Yt,gt=ve&&ue.x&&ue.y,kt=(Ie,lt,at)=>{const wt=Ie.includes(et)&&(le===Re||le==="auto"&&lt===et);return g(bs,wt,at),wt};if(v=vt,Xt&&(me&&Zt?(G(!1),u(),N(()=>{u=te(h,"scroll",z(G,!0),{A:!0})})):G(!0)),ie&&g(hs,gt),se&&(g(f),g(ce,!0),f=ce),rt&&!me&&G(!0),de&&(d=Q==="move",l=Q==="leave",c=Q==="never",q(c,!0)),_t&&g(Vs,pt),st&&g(Es,!!qe),Qt){const Ie=kt(ht.x,j.x,!0),lt=kt(ht.y,j.y,!1);g(ys,!(Ie&&lt))}Se&&(w(),M(),L(),P&&A(),g(to,!ae.x,!0),g(to,!ae.y,!1),g(gs,Z&&!B))},{},I]},Us=n=>{const t=$e(),{Z:o,P:s}=t,{elements:r}=o(),{padding:a,viewport:i,content:d}=r,l=Lt(n),c=l?{}:n,{elements:f}=c,{padding:u,viewport:v,content:m}=f||{},p=l?n:c.target,k=Mo(p),b=p.ownerDocument,S=b.documentElement,D=()=>b.defaultView||_e,N=z(Os,[p]),y=z(er,[p]),x=z(Qe,""),$=z(N,x,i),I=z(y,x,d),C=j=>{const ae=Je(j),ve=It(j),ie=Oe(j,Eo),ce=Oe(j,Vo);return ve.w-ae.w>0&&!nt(ie)||ve.h-ae.h>0&&!nt(ce)},_=$(v),h=_===p,B=h&&k,g=!h&&I(m),M=!h&&_===g,w=B?S:_,A=B?w:p,L=!h&&y(x,a,u),q=!M&&g,W=[q,w,L,A].map(j=>Lt(j)&&!dt(j)&&j),G=j=>j&&po(W,j),ne=!G(w)&&C(w)?w:p,U=B?S:w,T={vt:p,ht:A,U:w,ln:L,bt:q,gt:U,Qt:B?b:w,an:k?S:ne,Kt:b,wt:k,Mt:l,L:h,un:D,yt:j=>Tn(w,Le,j),St:(j,ae)=>Ft(w,Le,j,ae),Ot:()=>Ft(U,Le,fs,!0)},{vt:O,ht:V,ln:H,U:F,bt:R}=T,P=[()=>{Ne(V,[ze,rn]),Ne(O,rn),k&&Ne(S,[rn,ze])}];let Y=vn([R,F,H,V,O].find(j=>j&&!G(j)));const ee=B?O:R||F,Z=z(ke,P);return[T,()=>{const j=D(),ae=pn(),ve=oe=>{pe(dt(oe),vn(oe)),tt(oe)},ie=oe=>te(oe,"focusin focusout focus blur",Uo,{I:!0,H:!1}),ce="tabindex",se=$n(F,ce),le=ie(ae);return Ae(V,ze,h?"":is),Ae(H,bn,""),Ae(F,Le,""),Ae(R,Jn,""),h||(Ae(F,ce,se||"-1"),k&&Ae(S,Qn,"")),pe(ee,Y),pe(V,H),pe(H||V,!h&&F),pe(F,R),re(P,[le,()=>{const oe=pn(),Q=G(F),de=Q&&oe===F?O:oe,me=ie(de);Ne(H,bn),Ne(R,Jn),Ne(F,Le),k&&Ne(S,Qn),se?Ae(F,ce,se):Ne(F,ce),G(R)&&ve(R),Q&&ve(F),G(H)&&ve(H),kn(de),me()}]),s&&!h&&(Dn(F,Le,Wo),re(P,z(Ne,F,Le))),kn(!h&&k&&ae===O&&j.top===j?F:ae),le(),Y=0,Z},Z]},zs=({bt:n})=>({Zt:t,fn:o,Dt:s})=>{const{xt:r}=t||{},{$t:a}=o;n&&(r||s)&&ut(n,{[qt]:a&&"100%"})},Ps=({ht:n,ln:t,U:o,L:s},r)=>{const[a,i]=he({i:Xr,o:Kn()},z(Kn,n,"padding",""));return({It:d,Zt:l,fn:c,Dt:f})=>{let[u,v]=i(f);const{P:m}=$e(),{dt:p,Ht:k,Ct:b}=l||{},{F:S}=c,[D,N]=d("paddingAbsolute");(p||v||(f||k))&&([u,v]=a(f));const x=!s&&(N||b||v);if(x){const $=!D||!t&&!m,I=u.r+u.l,C=u.t+u.b,_={[bo]:$&&!S?-I:0,[yo]:$?-C:0,[wo]:$&&S?-I:0,top:$?-u.t:0,right:$?S?-u.r:"auto":0,left:$?S?"auto":-u.l:0,[Pt]:$&&`calc(100% + ${I}px)`},h={[_o]:$?u.t:0,[ho]:$?u.r:0,[ko]:$?u.b:0,[go]:$?u.l:0};ut(t||o,_),ut(o,h),K(r,{ln:u,_n:!$,j:t?h:K({},_,h)})}return{dn:x}}},qs=(n,t)=>{const o=$e(),{ht:s,ln:r,U:a,L:i,Qt:d,gt:l,wt:c,St:f,un:u}=n,{P:v}=o,m=c&&i,p=z(mo,0),k={display:()=>!1,direction:E=>E!=="ltr",flexDirection:E=>E.endsWith("-reverse"),writingMode:E=>E!=="horizontal-tb"},b=Ee(k),S={i:So,o:{w:0,h:0}},D={i:Bt,o:{}},N=E=>{f(Go,!m&&E)},y=E=>{if(!b.some(ee=>{const Z=E[ee];return Z&&k[ee](Z)}))return{D:{x:0,y:0},M:{x:1,y:1}};N(!0);const O=ge(l),V=f(ms,!0),H=te(d,et,ee=>{const Z=ge(l);ee.isTrusted&&Z.x===O.x&&Z.y===O.y&&Ro(ee)},{I:!0,A:!0});xe(l,{x:0,y:0}),V();const F=ge(l),R=It(l);xe(l,{x:R.w,y:R.h});const P=ge(l);xe(l,{x:P.x-F.x<1&&-R.w,y:P.y-F.y<1&&-R.h});const Y=ge(l);return xe(l,O),Sn(()=>H()),{D:F,M:Y}},x=(E,T)=>{const O=_e.devicePixelRatio%1!==0?1:0,V={w:p(E.w-T.w),h:p(E.h-T.h)};return{w:V.w>O?V.w:0,h:V.h>O?V.h:0}},[$,I]=he(S,z(An,a)),[C,_]=he(S,z(It,a)),[h,B]=he(S),[g]=he(D),[M,w]=he(S),[A]=he(D),[L]=he({i:(E,T)=>jt(E,T,b),o:{}},()=>rs(a)?Oe(a,b):{}),[q,W]=he({i:(E,T)=>Bt(E.D,T.D)&&Bt(E.M,T.M),o:zo()}),G=mt(Yo),ne=(E,T)=>`${T?cs:ds}${Yr(E)}`,U=E=>{const T=V=>[Re,Ge,et].map(H=>ne(H,V)),O=T(!0).concat(T()).join(" ");f(O),f(Ee(E).map(V=>ne(E[V],V==="x")).join(" "),!0)};return({It:E,Zt:T,fn:O,Dt:V},{dn:H})=>{const{dt:F,Ht:R,Ct:P,_t:Y,zt:ee}=T||{},Z=G&&G.V(n,t,O,o,E),{Y:ue,W:j,J:ae}=Z||{},[ve,ie]=Ns(E,o),[ce,se]=E("overflow"),le=nt(ce.x),oe=nt(ce.y),Q=F||H||R||P||ee||ie;let de=I(V),me=_(V),rt=B(V),vt=w(V);if(ie&&v&&f(Wo,!ve),Q){Tn(s,ze,$t)&&N(!0);const[zn]=j?j():[],[bt]=de=$(V),[yt]=me=C(V),Et=Io(a),Vt=m&&os(u()),xr={w:p(yt.w+bt.w),h:p(yt.h+bt.h)},Pn={w:p((Vt?Vt.w:Et.w+p(Et.w-yt.w))+bt.w),h:p((Vt?Vt.h:Et.h+p(Et.h-yt.h))+bt.h)};zn&&zn(),vt=M(Pn),rt=h(x(xr,Pn),V)}const[pt,_t]=vt,[qe,st]=rt,[ht,Yt]=me,[Xt,Zt]=de,[Se,Qt]=g({x:qe.w>0,y:qe.h>0}),gt=le&&oe&&(Se.x||Se.y)||le&&Se.x&&!Se.y||oe&&Se.y&&!Se.x,kt=H||P||ee||Zt||Yt||_t||st||se||ie||Q,Ie=xs(Se,ce),[lt,at]=A(Ie.k),[wt,Vr]=L(V),Un=P||Y||Vr||Qt||V,[Sr,Nr]=Un?q(y(wt),V):W();return kt&&(at&&U(Ie.k),ae&&ue&&ut(a,ae(Ie,O,ue(Ie,ht,Xt)))),N(!1),Ft(s,ze,$t,gt),Ft(r,bn,$t,gt),K(t,{k:lt,Lt:{x:pt.w,y:pt.h},Vt:{x:qe.w,y:qe.h},rn:Se,Tt:ss(Sr,qe)}),{en:at,nn:_t,sn:st,cn:Nr||st,pn:Un}}},js=n=>{const[t,o,s]=Us(n),r={ln:{t:0,r:0,b:0,l:0},_n:!1,j:{[bo]:0,[yo]:0,[wo]:0,[_o]:0,[ho]:0,[ko]:0,[go]:0},Lt:{x:0,y:0},Vt:{x:0,y:0},k:{x:Ge,y:Ge},rn:{x:!1,y:!1},Tt:zo()},{vt:a,gt:i,L:d,Ot:l}=t,{P:c,T:f}=$e(),u=!c&&(f.x||f.y),v=[zs(t),Ps(t,r),qs(t,r)];return[o,m=>{const p={},b=u&&ge(i),S=b&&l();return X(v,D=>{K(p,D(m,p)||{})}),xe(i,b),S&&S(),d||xe(a,0),p},r,t,s]},Gs=(n,t,o,s,r)=>{let a=!1;const i=lo(t,{}),[d,l,c,f,u]=js(n),[v,m,p]=Ls(f,c,i,y=>{N({},y)}),[k,b,,S]=Rs(n,t,p,c,f,r),D=y=>Ee(y).some(x=>!!y[x]),N=(y,x)=>{if(o())return!1;const{vn:$,Dt:I,At:C,hn:_}=y,h=$||{},B=!!I||!a,g={It:lo(t,h,B),vn:h,Dt:B};if(_)return b(g),!1;const M=x||m(K({},g,{At:C})),w=l(K({},g,{fn:p,Zt:M}));b(K({},g,{Zt:M,tn:w}));const A=D(M),L=D(w),q=A||L||!Cn(h)||B;return a=!0,q&&s(y,{Zt:M,tn:w}),q};return[()=>{const{an:y,gt:x,Ot:$}=f,I=ge(y),C=[v(),d(),k()],_=$();return xe(x,I),_(),z(ke,C)},N,()=>({gn:p,bn:c}),{wn:f,yn:S},u]},Fn=new WeakMap,Ws=(n,t)=>{Fn.set(n,t)},Ks=n=>{Fn.delete(n)},tr=n=>Fn.get(n),Ve=(n,t,o)=>{const{nt:s}=$e(),r=Lt(n),a=r?n:n.target,i=tr(a);if(t&&!i){let d=!1;const l=[],c={},f=h=>{const B=xo(h),g=mt(as);return g?g(B,!0):B},u=K({},s(),f(t)),[v,m,p]=wn(),[k,b,S]=wn(o),D=(h,B)=>{S(h,B),p(h,B)},[N,y,x,$,I]=Gs(n,u,()=>d,({vn:h,Dt:B},{Zt:g,tn:M})=>{const{dt:w,Ct:A,xt:L,Ht:q,Et:W,_t:G}=g,{nn:ne,sn:U,en:E,cn:T}=M;D("updated",[_,{updateHints:{sizeChanged:!!w,directionChanged:!!A,heightIntrinsicChanged:!!L,overflowEdgeChanged:!!ne,overflowAmountChanged:!!U,overflowStyleChanged:!!E,scrollCoordinatesChanged:!!T,contentMutation:!!q,hostMutation:!!W,appear:!!G},changedOptions:h||{},force:!!B}])},h=>D("scroll",[_,h])),C=h=>{Ks(a),ke(l),d=!0,D("destroyed",[_,h]),m(),b()},_={options(h,B){if(h){const g=B?s():{},M=Xo(u,K(g,f(h)));Cn(M)||(K(u,M),y({vn:M}))}return K({},u)},on:k,off:(h,B)=>{h&&B&&b(h,B)},state(){const{gn:h,bn:B}=x(),{F:g}=h,{Lt:M,Vt:w,k:A,rn:L,ln:q,_n:W,Tt:G}=B;return K({},{overflowEdge:M,overflowAmount:w,overflowStyle:A,hasOverflow:L,scrollCoordinates:{start:G.D,end:G.M},padding:q,paddingAbsolute:W,directionRTL:g,destroyed:d})},elements(){const{vt:h,ht:B,ln:g,U:M,bt:w,gt:A,Qt:L}=$.wn,{Xt:q,Gt:W}=$.yn,G=U=>{const{kt:E,Pt:T,Ut:O}=U;return{scrollbar:O,track:T,handle:E}},ne=U=>{const{Yt:E,Wt:T}=U,O=G(E[0]);return K({},O,{clone:()=>{const V=G(T());return y({hn:!0}),V}})};return K({},{target:h,host:B,padding:g||M,viewport:M,content:w||M,scrollOffsetElement:A,scrollEventElement:L,scrollbarHorizontal:ne(q),scrollbarVertical:ne(W)})},update:h=>y({Dt:h,At:!0}),destroy:z(C,!1),plugin:h=>c[Ee(h)[0]]};return re(l,[I]),Ws(a,_),jo(Po,Ve,[_,v,c]),Fs($.wn.wt,!r&&n.cancel)?(C(!0),_):(re(l,N()),D("initialized",[_]),_.update(),_)}return i};Ve.plugin=n=>{const t=Ce(n),o=t?n:[n],s=o.map(r=>jo(r,Ve)[0]);return ls(o),t?s:s[0]};Ve.valid=n=>{const t=n&&n.elements,o=ye(t)&&t();return At(o)&&!!tr(o.target)};Ve.env=()=>{const{N:n,T:t,P:o,G:s,st:r,et:a,Z:i,tt:d,nt:l,ot:c}=$e();return K({},{scrollbarsSize:n,scrollbarsOverlaid:t,scrollbarsHiding:o,scrollTimeline:s,staticDefaultInitialization:r,staticDefaultOptions:a,getDefaultInitialization:i,setDefaultInitialization:d,getDefaultOptions:l,setDefaultOptions:c})};Ve.nonce=Ds;Ve.trustedTypePolicy=es;function Ys(){let n;const t=e.ref(null),o=Math.floor(Math.random()*2**32),s=e.ref(!1),r=e.ref([]),a=()=>r.value,i=()=>n.getSelection(),d=()=>r.value.length,l=()=>n.clearSelection(!0),c=e.ref(),f=e.ref(null),u=e.ref(null),v=e.ref(null),m=e.ref(null);function p(){n=new Dr({area:t.value,keyboardDrag:!1,selectedClass:"vf-explorer-selected",selectorClass:"vf-explorer-selector"}),n.subscribe("DS:start:pre",({items:x,event:$,isDragging:I})=>{if(I)n.Interaction._reset($);else{s.value=!1;const C=t.value.offsetWidth-$.offsetX,_=t.value.offsetHeight-$.offsetY;C<15&&_<15&&n.Interaction._reset($),$.target.classList.contains("os-scrollbar-handle")&&n.Interaction._reset($)}}),document.addEventListener("dragleave",x=>{!x.buttons&&s.value&&(s.value=!1)})}const k=()=>e.nextTick(()=>{n.addSelection(n.getSelectables()),b()}),b=()=>{r.value=n.getSelection().map(x=>JSON.parse(x.dataset.item)),c.value(r.value)},S=()=>e.nextTick(()=>{const x=a().map($=>$.path);l(),n.setSettings({selectables:document.getElementsByClassName("vf-item-"+o)}),n.addSelection(n.getSelectables().filter($=>x.includes(JSON.parse($.dataset.item).path))),b(),N()}),D=x=>{c.value=x,n.subscribe("DS:end",({items:$,event:I,isDragging:C})=>{r.value=$.map(_=>JSON.parse(_.dataset.item)),x($.map(_=>JSON.parse(_.dataset.item)))})},N=()=>{f.value&&(t.value.getBoundingClientRect().height<t.value.scrollHeight?(u.value.style.height=t.value.scrollHeight+"px",u.value.style.display="block"):(u.value.style.height="100%",u.value.style.display="none"))},y=x=>{if(!f.value)return;const{scrollOffsetElement:$}=f.value.elements();$.scrollTo({top:t.value.scrollTop,left:0})};return e.onMounted(()=>{Ve(v.value,{scrollbars:{theme:"vf-theme-dark dark:vf-theme-light"},plugins:{OverlayScrollbars:Ve}},{initialized:x=>{f.value=x},scroll:(x,$)=>{const{scrollOffsetElement:I}=x.elements();t.value.scrollTo({top:I.scrollTop,left:0})}}),p(),N(),m.value=new ResizeObserver(N),m.value.observe(t.value),t.value.addEventListener("scroll",y),n.subscribe("DS:scroll",({isDragging:x})=>x||y())}),e.onUnmounted(()=>{n&&n.stop(),m.value&&m.value.disconnect()}),e.onUpdated(()=>{n&&n.Area.reset()}),{area:t,explorerId:o,isDraggingRef:s,scrollBar:u,scrollBarContainer:v,getSelected:a,getSelection:i,selectAll:k,clearSelection:l,refreshSelection:S,getCount:d,onSelect:D}}function Xs(n,t){const o=e.ref(n),s=e.ref(t),r=e.ref([]),a=e.ref([]),i=e.ref([]),d=e.ref(!1),l=e.ref(5);let c=!1,f=!1;const u=e.reactive({adapter:o,storages:[],dirname:s,files:[]});function v(){let D=[],N=[],y=s.value??o.value+"://";y.length===0&&(r.value=[]),y.replace(o.value+"://","").split("/").forEach(function(I){D.push(I),D.join("/")!==""&&N.push({basename:I,name:I,path:o.value+"://"+D.join("/"),type:"dir"})}),a.value=N;const[x,$]=p(N,l.value);i.value=$,r.value=x}function m(D){l.value=D,v()}function p(D,N){return D.length>N?[D.slice(-N),D.slice(0,-N)]:[D,[]]}function k(D=null){d.value=D??!d.value}function b(){return r.value&&r.value.length&&!0}const S=e.computed(()=>{var D;return((D=r.value[r.value.length-2])==null?void 0:D.path)??o.value+"://"});return e.onMounted(()=>{}),e.watch(s,v),e.onMounted(v),{adapter:o,path:s,loading:c,searchMode:f,data:u,breadcrumbs:r,breadcrumbItems:a,limitBreadcrumbItems:m,hiddenBreadcrumbs:i,showHiddenBreadcrumbs:d,toggleHiddenBreadcrumbs:k,isGoUpAvailable:b,parentFolderPath:S}}const Zs=(n,t)=>{const o=Ir(n.id),s=$r(),r=o.getStore("metricUnits",!1),a=qr(o,n.theme),i=t.i18n,d=n.locale??t.locale,l=m=>Array.isArray(m)?m:Ur,c=o.getStore("persist-path",n.persist),f=c?o.getStore("path",n.path):n.path,u=c?o.getStore("adapter"):null,v=Ys();return e.reactive({version:zr,root:null,debug:n.debug,emitter:s,storage:o,i18n:Rr(o,d,s,i),modal:jr(),dragSelect:e.computed(()=>v),requester:Fr(n.request),features:l(n.features),view:o.getStore("viewport","grid"),fullScreen:o.getStore("full-screen",n.fullScreen),showTreeView:o.getStore("show-tree-view",n.showTreeView),pinnedFolders:o.getStore("pinned-folders",n.pinnedFolders),treeViewData:[],selectButton:n.selectButton,maxFileSize:n.maxFileSize,theme:a,metricUnits:r,filesize:r?fo:uo,compactListView:o.getStore("compact-list-view",!0),persist:c,showThumbnails:o.getStore("show-thumbnails",n.showThumbnails),loadingIndicator:n.loadingIndicator,contextMenuItems:n.contextMenuItems,fs:Xs(u,f)})},Qs={class:"vuefinder__modal-layout__container"},Js={class:"vuefinder__modal-layout__content"},el={class:"vuefinder__modal-layout__footer"},De={__name:"ModalLayout",setup(n){const t=e.ref(null),o=e.inject("ServiceContainer");return e.onMounted(()=>{const s=document.querySelector(".v-f-modal input");s&&s.focus(),e.nextTick(()=>{if(document.querySelector(".v-f-modal input")&&window.innerWidth<768){const r=t.value.getBoundingClientRect().bottom+16;window.scrollTo({top:r,left:0,behavior:"smooth"})}})}),(s,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vuefinder__modal-layout","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",onKeyup:r[1]||(r[1]=e.withKeys(a=>e.unref(o).modal.close(),["esc"])),tabindex:"0"},[r[2]||(r[2]=e.createElementVNode("div",{class:"vuefinder__modal-layout__overlay"},null,-1)),e.createElementVNode("div",Qs,[e.createElementVNode("div",{class:"vuefinder__modal-layout__wrapper",onMousedown:r[0]||(r[0]=e.withModifiers(a=>e.unref(o).modal.close(),["self"]))},[e.createElementVNode("div",{ref_key:"modalBody",ref:t,class:"vuefinder__modal-layout__body"},[e.createElementVNode("div",Js,[e.renderSlot(s.$slots,"default")]),e.createElementVNode("div",el,[e.renderSlot(s.$slots,"buttons")])],512)],32)])],32))}},tl=(n,t)=>{const o=n.__vccOpts||n;for(const[s,r]of t)o[s]=r;return o},nl={props:{on:{type:String,required:!0}},setup(n,{emit:t,slots:o}){const s=e.inject("ServiceContainer"),r=e.ref(!1),{t:a}=s.i18n;let i=null;const d=()=>{clearTimeout(i),r.value=!0,i=setTimeout(()=>{r.value=!1},2e3)};return e.onMounted(()=>{s.emitter.on(n.on,d)}),e.onUnmounted(()=>{clearTimeout(i)}),{shown:r,t:a}}},ol={key:1};function rl(n,t,o,s,r,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vuefinder__action-message",{"vuefinder__action-message--hidden":!s.shown}])},[n.$slots.default?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock("span",ol,e.toDisplayString(s.t("Saved.")),1))],2)}const Ke=tl(nl,[["render",rl]]),sl={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"h-6 w-6 stroke-blue-600 dark:stroke-blue-100",viewBox:"0 0 24 24"};function ll(n,t){return e.openBlock(),e.createElementBlock("svg",sl,t[0]||(t[0]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87q.11.06.22.127c.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a8 8 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a7 7 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a7 7 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a7 7 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124q.108-.066.22-.128c.332-.183.582-.495.644-.869z"},null,-1),e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"},null,-1)]))}const al={render:ll},il={class:"vuefinder__modal-header"},cl={class:"vuefinder__modal-header__icon-container"},dl={class:"vuefinder__modal-header__title",id:"modal-title"},Fe={__name:"ModalHeader",props:{title:{type:String,required:!0},icon:{type:Object,required:!0}},setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",il,[e.createElementVNode("div",cl,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{class:"vuefinder__modal-header__icon"}))]),e.createElementVNode("h3",dl,e.toDisplayString(n.title),1)]))}},ul={class:"vuefinder__about-modal__content"},fl={class:"vuefinder__about-modal__main"},ml={class:"vuefinder__about-modal__tabs","aria-label":"Tabs"},vl=["onClick","aria-current"],pl={key:0,class:"vuefinder__about-modal__tab-content"},_l={class:"vuefinder__about-modal__description"},hl={href:"https://vuefinder.ozdemir.be",class:"vuefinder__about-modal__link",target:"_blank"},gl={href:"https://github.com/n1crack/vuefinder",class:"vuefinder__about-modal__link",target:"_blank"},kl={key:1,class:"vuefinder__about-modal__tab-content"},wl={class:"vuefinder__about-modal__description"},bl={class:"vuefinder__about-modal__settings"},yl={class:"vuefinder__about-modal__setting flex"},El={class:"vuefinder__about-modal__setting-input"},Vl={class:"vuefinder__about-modal__setting-label"},Sl={for:"metric_unit",class:"vuefinder__about-modal__label"},Nl={class:"vuefinder__about-modal__setting flex"},xl={class:"vuefinder__about-modal__setting-input"},Bl={class:"vuefinder__about-modal__setting-label"},Cl={for:"large_icons",class:"vuefinder__about-modal__label"},$l={class:"vuefinder__about-modal__setting flex"},Dl={class:"vuefinder__about-modal__setting-input"},Tl={class:"vuefinder__about-modal__setting-label"},Ml={for:"persist_path",class:"vuefinder__about-modal__label"},Al={class:"vuefinder__about-modal__setting flex"},Ll={class:"vuefinder__about-modal__setting-input"},Ol={class:"vuefinder__about-modal__setting-label"},Fl={for:"show_thumbnails",class:"vuefinder__about-modal__label"},Il={class:"vuefinder__about-modal__setting"},Hl={class:"vuefinder__about-modal__setting-input"},Rl={for:"theme",class:"vuefinder__about-modal__label"},Ul={class:"vuefinder__about-modal__setting-label"},zl=["label"],Pl=["value"],ql={key:0,class:"vuefinder__about-modal__setting"},jl={class:"vuefinder__about-modal__setting-input"},Gl={for:"language",class:"vuefinder__about-modal__label"},Wl={class:"vuefinder__about-modal__setting-label"},Kl=["label"],Yl=["value"],Xl={key:2,class:"vuefinder__about-modal__tab-content"},Zl={class:"vuefinder__about-modal__shortcuts"},Ql={class:"vuefinder__about-modal__shortcut"},Jl={class:"vuefinder__about-modal__shortcut"},ea={class:"vuefinder__about-modal__shortcut"},ta={class:"vuefinder__about-modal__shortcut"},na={class:"vuefinder__about-modal__shortcut"},oa={class:"vuefinder__about-modal__shortcut"},ra={class:"vuefinder__about-modal__shortcut"},sa={class:"vuefinder__about-modal__shortcut"},la={class:"vuefinder__about-modal__shortcut"},aa={key:3,class:"vuefinder__about-modal__tab-content"},ia={class:"vuefinder__about-modal__description"},nr={__name:"ModalAbout",setup(n){const t=e.inject("ServiceContainer"),{setStore:o,clearStore:s}=t.storage,{t:r}=t.i18n,a={ABOUT:"about",SETTINGS:"settings",SHORTCUTS:"shortcuts",RESET:"reset"},i=e.computed(()=>[{name:r("About"),key:a.ABOUT},{name:r("Settings"),key:a.SETTINGS},{name:r("Shortcuts"),key:a.SHORTCUTS},{name:r("Reset"),key:a.RESET}]),d=e.ref("about"),l=async()=>{s(),location.reload()},c=D=>{t.theme.set(D),t.emitter.emit("vf-theme-saved")},f=()=>{t.metricUnits=!t.metricUnits,t.filesize=t.metricUnits?fo:uo,o("metricUnits",t.metricUnits),t.emitter.emit("vf-metric-units-saved")},u=()=>{t.compactListView=!t.compactListView,o("compactListView",t.compactListView),t.emitter.emit("vf-compact-view-saved")},v=()=>{t.showThumbnails=!t.showThumbnails,o("show-thumbnails",t.showThumbnails),t.emitter.emit("vf-show-thumbnails-saved")},m=()=>{t.persist=!t.persist,o("persist-path",t.persist),t.emitter.emit("vf-persist-path-saved")},{i18n:p}=e.inject("VueFinderOptions"),b=Object.fromEntries(Object.entries({ar:"Arabic (العربيّة)",en:"English",fr:"French (Français)",de:"German (Deutsch)",fa:"Persian (فارسی)",he:"Hebrew (עִברִית)",hi:"Hindi (हिंदी)",pl:"Polish (Polski)",ru:"Russian (Pусский)",sv:"Swedish (Svenska)",tr:"Turkish (Türkçe)",nl:"Dutch (Nederlands)",zhCN:"Simplified Chinese (简体中文)",zhTW:"Traditional Chinese (繁體中文)"}).filter(([D])=>Object.keys(p).includes(D))),S=e.computed(()=>({system:r("System"),light:r("Light"),dark:r("Dark")}));return(D,N)=>(e.openBlock(),e.createBlock(De,null,{buttons:e.withCtx(()=>[e.createElementVNode("button",{type:"button",onClick:N[7]||(N[7]=y=>e.unref(t).modal.close()),class:"vf-btn vf-btn-secondary"},e.toDisplayString(e.unref(r)("Close")),1)]),default:e.withCtx(()=>[e.createElementVNode("div",ul,[e.createVNode(Fe,{icon:e.unref(al),title:"Vuefinder "+e.unref(t).version},null,8,["icon","title"]),e.createElementVNode("div",fl,[e.createElementVNode("div",null,[e.createElementVNode("div",null,[e.createElementVNode("nav",ml,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,y=>(e.openBlock(),e.createElementBlock("button",{key:y.name,onClick:x=>d.value=y.key,class:e.normalizeClass([y.key===d.value?"vuefinder__about-modal__tab--active":"vuefinder__about-modal__tab--inactive","vuefinder__about-modal__tab"]),"aria-current":y.current?"page":void 0},e.toDisplayString(y.name),11,vl))),128))])])]),d.value===a.ABOUT?(e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("div",_l,e.toDisplayString(e.unref(r)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")),1),e.createElementVNode("a",hl,e.toDisplayString(e.unref(r)("Project home")),1),e.createElementVNode("a",gl,e.toDisplayString(e.unref(r)("Follow on GitHub")),1)])):e.createCommentVNode("",!0),d.value===a.SETTINGS?(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("div",wl,e.toDisplayString(e.unref(r)("Customize your experience with the following settings")),1),e.createElementVNode("div",bl,[e.createElementVNode("fieldset",null,[e.createElementVNode("div",yl,[e.createElementVNode("div",El,[e.withDirectives(e.createElementVNode("input",{id:"metric_unit",name:"metric_unit",type:"checkbox","onUpdate:modelValue":N[0]||(N[0]=y=>e.unref(t).metricUnits=y),onClick:f,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).metricUnits]])]),e.createElementVNode("div",Vl,[e.createElementVNode("label",Sl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Use Metric Units"))+" ",1),e.createVNode(Ke,{class:"ms-3",on:"vf-metric-units-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",Nl,[e.createElementVNode("div",xl,[e.withDirectives(e.createElementVNode("input",{id:"large_icons",name:"large_icons",type:"checkbox","onUpdate:modelValue":N[1]||(N[1]=y=>e.unref(t).compactListView=y),onClick:u,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).compactListView]])]),e.createElementVNode("div",Bl,[e.createElementVNode("label",Cl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Compact list view"))+" ",1),e.createVNode(Ke,{class:"ms-3",on:"vf-compact-view-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",$l,[e.createElementVNode("div",Dl,[e.withDirectives(e.createElementVNode("input",{id:"persist_path",name:"persist_path",type:"checkbox","onUpdate:modelValue":N[2]||(N[2]=y=>e.unref(t).persist=y),onClick:m,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).persist]])]),e.createElementVNode("div",Tl,[e.createElementVNode("label",Ml,[e.createTextVNode(e.toDisplayString(e.unref(r)("Persist path on reload"))+" ",1),e.createVNode(Ke,{class:"ms-3",on:"vf-persist-path-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",Al,[e.createElementVNode("div",Ll,[e.withDirectives(e.createElementVNode("input",{id:"show_thumbnails",name:"show_thumbnails",type:"checkbox","onUpdate:modelValue":N[3]||(N[3]=y=>e.unref(t).showThumbnails=y),onClick:v,class:"vuefinder__about-modal__checkbox"},null,512),[[e.vModelCheckbox,e.unref(t).showThumbnails]])]),e.createElementVNode("div",Ol,[e.createElementVNode("label",Fl,[e.createTextVNode(e.toDisplayString(e.unref(r)("Show thumbnails"))+" ",1),e.createVNode(Ke,{class:"ms-3",on:"vf-show-thumbnails-saved"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("Saved.")),1)]),_:1})])])]),e.createElementVNode("div",Il,[e.createElementVNode("div",Hl,[e.createElementVNode("label",Rl,e.toDisplayString(e.unref(r)("Theme")),1)]),e.createElementVNode("div",Ul,[e.withDirectives(e.createElementVNode("select",{id:"theme","onUpdate:modelValue":N[4]||(N[4]=y=>e.unref(t).theme.value=y),onChange:N[5]||(N[5]=y=>c(y.target.value)),class:"vuefinder__about-modal__select"},[e.createElementVNode("optgroup",{label:e.unref(r)("Theme")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(y,x)=>(e.openBlock(),e.createElementBlock("option",{value:x},e.toDisplayString(y),9,Pl))),256))],8,