From 754d7790697c7794da875cca96faca570493f628 Mon Sep 17 00:00:00 2001 From: Andy-Ruda Date: Thu, 26 Oct 2023 00:10:52 -0500 Subject: [PATCH] Test frontend #only_compile --- cista-front/src/components/UploadButton.vue | 4 ++-- cista/wwwroot/assets/{index-396ce413.js => index-5620eb6e.js} | 2 +- .../wwwroot/assets/{index-adcd8284.css => index-fe1bb208.css} | 2 +- cista/wwwroot/index.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename cista/wwwroot/assets/{index-396ce413.js => index-5620eb6e.js} (99%) rename cista/wwwroot/assets/{index-adcd8284.css => index-fe1bb208.css} (99%) diff --git a/cista-front/src/components/UploadButton.vue b/cista-front/src/components/UploadButton.vue index 9b605a2..1802349 100644 --- a/cista-front/src/components/UploadButton.vue +++ b/cista-front/src/components/UploadButton.vue @@ -70,9 +70,9 @@ async function uploadFileChangeHandler(event: Event) { const start = i * chunkSize const end = Math.min(file.size, start + chunkSize) const res = await sendChunk(file, start, end) - console.log( 'progress: '+ (100*i + 1) / numChunks ) + console.log( 'progress: '+ ( ( 100 * (i + 1) ) / numChunks) ) console.log( 'Num Chunks: '+ numChunks ) - documentStore.updateUploadingDocuments( document.key, (100*i + 1) / numChunks) + documentStore.updateUploadingDocuments( document.key, ((100 * (i + 1) ) / numChunks)) } } } diff --git a/cista/wwwroot/assets/index-396ce413.js b/cista/wwwroot/assets/index-5620eb6e.js similarity index 99% rename from cista/wwwroot/assets/index-396ce413.js rename to cista/wwwroot/assets/index-5620eb6e.js index 1eca63a..4a3556b 100644 --- a/cista/wwwroot/assets/index-396ce413.js +++ b/cista/wwwroot/assets/index-5620eb6e.js @@ -483,7 +483,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * @license MIT */const cc=typeof window<"u";function $Ie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const sn=Object.assign;function Hy(e,t){const n={};for(const o in t){const r=t[o];n[o]=vi(r)?r.map(e):e(r)}return n}const Id=()=>{},vi=Array.isArray,CIe=/\/$/,xIe=e=>e.replace(CIe,"");function jy(e,t,n="/"){let o,r={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(o=t.slice(0,s),i=t.slice(s+1,a>-1?a:t.length),r=e(i)),a>-1&&(o=o||t.slice(0,a),l=t.slice(a,t.length)),o=IIe(o??t,n),{fullPath:o+(i&&"?")+i+l,path:o,query:r,hash:l}}function wIe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function b_(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function OIe(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Gc(t.matched[o],n.matched[r])&&XB(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Gc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function XB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!PIe(e[n],t[n]))return!1;return!0}function PIe(e,t){return vi(e)?y_(e,t):vi(t)?y_(t,e):e===t}function y_(e,t){return vi(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function IIe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,l,a;for(l=0;l1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(l-(l===o.length?1:0)).join("/")}var uf;(function(e){e.pop="pop",e.push="push"})(uf||(uf={}));var Td;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Td||(Td={}));function TIe(e){if(!e)if(cc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xIe(e)}const _Ie=/^[^#]+#/;function EIe(e,t){return e.replace(_Ie,"#")+t}function MIe(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const e0=()=>({left:window.pageXOffset,top:window.pageYOffset});function AIe(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=MIe(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function S_(e,t){return(history.state?history.state.position-t:-1)+e}const FS=new Map;function RIe(e,t){FS.set(e,t)}function DIe(e){const t=FS.get(e);return FS.delete(e),t}let BIe=()=>location.protocol+"//"+location.host;function YB(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,s=r.slice(a);return s[0]!=="/"&&(s="/"+s),b_(s,"")}return b_(n,e)+o+r}function NIe(e,t,n,o){let r=[],i=[],l=null;const a=({state:p})=>{const g=YB(e,location),m=n.value,v=t.value;let S=0;if(p){if(n.value=g,t.value=p,l&&l===m){l=null;return}S=v?p.position-v.position:0}else o(g);r.forEach($=>{$(n.value,m,{delta:S,type:uf.pop,direction:S?S>0?Td.forward:Td.back:Td.unknown})})};function s(){l=n.value}function c(p){r.push(p);const g=()=>{const m=r.indexOf(p);m>-1&&r.splice(m,1)};return i.push(g),g}function u(){const{history:p}=window;p.state&&p.replaceState(sn({},p.state,{scroll:e0()}),"")}function d(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:c,destroy:d}}function $_(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?e0():null}}function FIe(e){const{history:t,location:n}=window,o={value:YB(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:BIe()+e+s;try{t[u?"replaceState":"pushState"](c,"",p),r.value=c}catch(g){console.error(g),n[u?"replace":"assign"](p)}}function l(s,c){const u=sn({},t.state,$_(r.value.back,s,r.value.forward,!0),c,{position:r.value.position});i(s,u,!0),o.value=s}function a(s,c){const u=sn({},r.value,t.state,{forward:s,scroll:e0()});i(u.current,u,!0);const d=sn({},$_(o.value,s,null),{position:u.position+1},c);i(s,d,!1),o.value=s}return{location:o,state:r,push:a,replace:l}}function LIe(e){e=TIe(e);const t=FIe(e),n=NIe(e,t.state,t.location,t.replace);function o(i,l=!0){l||n.pauseListeners(),history.go(i)}const r=sn({location:"",base:e,go:o,createHref:EIe.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function kIe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),LIe(e)}function zIe(e){return typeof e=="string"||e&&typeof e=="object"}function qB(e){return typeof e=="string"||typeof e=="symbol"}const Kl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ZB=Symbol("");var C_;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(C_||(C_={}));function Xc(e,t){return sn(new Error,{type:e,[ZB]:!0},t)}function ol(e,t){return e instanceof Error&&ZB in e&&(t==null||!!(e.type&t))}const x_="[^/]+?",HIe={sensitive:!1,strict:!1,start:!0,end:!0},jIe=/[.+*?^${}()[\]/\\]/g;function WIe(e,t){const n=sn({},HIe,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function KIe(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const UIe={type:0,value:""},GIe=/[a-zA-Z0-9_]/;function XIe(e){if(!e)return[[]];if(e==="/")return[[UIe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,o=n;const r=[];let i;function l(){i&&r.push(i),i=[]}let a=0,s,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=s}for(;a{l(C)}:Id}function l(u){if(qB(u)){const d=o.get(u);d&&(o.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(l),d.alias.forEach(l))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&o.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return n}function s(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!JB(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!P_(u)&&o.set(u.record.name,u)}function c(u,d){let p,g={},m,v;if("name"in u&&u.name){if(p=o.get(u.name),!p)throw Xc(1,{location:u});v=p.record.name,g=sn(O_(d.params,p.keys.filter(C=>!C.optional).map(C=>C.name)),u.params&&O_(u.params,p.keys.map(C=>C.name))),m=p.stringify(g)}else if("path"in u)m=u.path,p=n.find(C=>C.re.test(m)),p&&(g=p.parse(m),v=p.record.name);else{if(p=d.name?o.get(d.name):n.find(C=>C.re.test(d.path)),!p)throw Xc(1,{location:u,currentLocation:d});v=p.record.name,g=sn({},d.params,u.params),m=p.stringify(g)}const S=[];let $=p;for(;$;)S.unshift($.record),$=$.parent;return{name:v,path:m,params:g,matched:S,meta:QIe(S)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:l,getRoutes:a,getRecordMatcher:r}}function O_(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function ZIe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:JIe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function JIe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function P_(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function QIe(e){return e.reduce((t,n)=>sn(t,n.meta),{})}function I_(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function JB(e,t){return t.children.some(n=>n===e||JB(e,n))}const QB=/#/g,e6e=/&/g,t6e=/\//g,n6e=/=/g,o6e=/\?/g,eN=/\+/g,r6e=/%5B/g,i6e=/%5D/g,tN=/%5E/g,l6e=/%60/g,nN=/%7B/g,a6e=/%7C/g,oN=/%7D/g,s6e=/%20/g;function g2(e){return encodeURI(""+e).replace(a6e,"|").replace(r6e,"[").replace(i6e,"]")}function c6e(e){return g2(e).replace(nN,"{").replace(oN,"}").replace(tN,"^")}function LS(e){return g2(e).replace(eN,"%2B").replace(s6e,"+").replace(QB,"%23").replace(e6e,"%26").replace(l6e,"`").replace(nN,"{").replace(oN,"}").replace(tN,"^")}function u6e(e){return LS(e).replace(n6e,"%3D")}function d6e(e){return g2(e).replace(QB,"%23").replace(o6e,"%3F")}function f6e(e){return e==null?"":d6e(e).replace(t6e,"%2F")}function pv(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function p6e(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&LS(i)):[o&&LS(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function h6e(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=vi(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const g6e=Symbol(""),__=Symbol(""),v2=Symbol(""),rN=Symbol(""),kS=Symbol("");function Ku(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Jl(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const s=d=>{d===!1?a(Xc(4,{from:n,to:t})):d instanceof Error?a(d):zIe(d)?a(Xc(2,{from:t,to:d})):(i&&o.enterCallbacks[r]===i&&typeof d=="function"&&i.push(d),l())},c=e.call(o&&o.instances[r],t,n,s);let u=Promise.resolve(c);e.length<3&&(u=u.then(s)),u.catch(d=>a(d))})}function Wy(e,t,n,o){const r=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(v6e(a)){const c=(a.__vccOpts||a)[t];c&&r.push(Jl(c,n,o,i,l))}else{let s=a();r.push(()=>s.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const u=$Ie(c)?c.default:c;i.components[l]=u;const p=(u.__vccOpts||u)[t];return p&&Jl(p,n,o,i,l)()}))}}return r}function v6e(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function E_(e){const t=ct(v2),n=ct(rN),o=E(()=>t.resolve(lt(e.to))),r=E(()=>{const{matched:s}=o.value,{length:c}=s,u=s[c-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Gc.bind(null,u));if(p>-1)return p;const g=M_(s[c-2]);return c>1&&M_(u)===g&&d[d.length-1].path!==g?d.findIndex(Gc.bind(null,s[c-2])):p}),i=E(()=>r.value>-1&&y6e(n.params,o.value.params)),l=E(()=>r.value>-1&&r.value===n.matched.length-1&&XB(n.params,o.value.params));function a(s={}){return b6e(s)?t[lt(e.replace)?"replace":"push"](lt(e.to)).catch(Id):Promise.resolve()}return{route:o,href:E(()=>o.value.href),isActive:i,isExactActive:l,navigate:a}}const m6e=se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:E_,setup(e,{slots:t}){const n=Rt(E_(e)),{options:o}=ct(v2),r=E(()=>({[A_(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[A_(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:fn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),zS=m6e;function b6e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function y6e(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!vi(r)||r.length!==o.length||o.some((i,l)=>i!==r[l]))return!1}return!0}function M_(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const A_=(e,t,n)=>e??t??n,S6e=se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ct(kS),r=E(()=>e.route||o.value),i=ct(__,0),l=E(()=>{let c=lt(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=E(()=>r.value.matched[l.value]);gt(__,E(()=>l.value+1)),gt(g6e,a),gt(kS,r);const s=fe();return Te(()=>[s.value,a.value,e.name],([c,u,d],[p,g,m])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!Gc(u,g)||!p)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=a.value,p=d&&d.components[u];if(!p)return R_(n.default,{Component:p,route:c});const g=d.props[u],m=g?g===!0?c.params:typeof g=="function"?g(c):g:null,S=fn(p,sn({},m,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(d.instances[u]=null)},ref:s}));return R_(n.default,{Component:S,route:c})||S}}});function R_(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const iN=S6e;function $6e(e){const t=qIe(e.routes,e),n=e.parseQuery||p6e,o=e.stringifyQuery||T_,r=e.history,i=Ku(),l=Ku(),a=Ku(),s=ce(Kl);let c=Kl;cc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Hy.bind(null,X=>""+X),d=Hy.bind(null,f6e),p=Hy.bind(null,pv);function g(X,ne){let te,J;return qB(X)?(te=t.getRecordMatcher(X),J=ne):J=X,t.addRoute(J,te)}function m(X){const ne=t.getRecordMatcher(X);ne&&t.removeRoute(ne)}function v(){return t.getRoutes().map(X=>X.record)}function S(X){return!!t.getRecordMatcher(X)}function $(X,ne){if(ne=sn({},ne||s.value),typeof X=="string"){const ae=jy(n,X,ne.path),ge=t.resolve({path:ae.path},ne),pe=r.createHref(ae.fullPath);return sn(ae,ge,{params:p(ge.params),hash:pv(ae.hash),redirectedFrom:void 0,href:pe})}let te;if("path"in X)te=sn({},X,{path:jy(n,X.path,ne.path).path});else{const ae=sn({},X.params);for(const ge in ae)ae[ge]==null&&delete ae[ge];te=sn({},X,{params:d(ae)}),ne.params=d(ne.params)}const J=t.resolve(te,ne),ue=X.hash||"";J.params=u(p(J.params));const G=wIe(o,sn({},X,{hash:c6e(ue),path:J.path})),Z=r.createHref(G);return sn({fullPath:G,hash:ue,query:o===T_?h6e(X.query):X.query||{}},J,{redirectedFrom:void 0,href:Z})}function C(X){return typeof X=="string"?jy(n,X,s.value.path):sn({},X)}function x(X,ne){if(c!==X)return Xc(8,{from:ne,to:X})}function O(X){return P(X)}function w(X){return O(sn(C(X),{replace:!0}))}function I(X){const ne=X.matched[X.matched.length-1];if(ne&&ne.redirect){const{redirect:te}=ne;let J=typeof te=="function"?te(X):te;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=C(J):{path:J},J.params={}),sn({query:X.query,hash:X.hash,params:"path"in J?{}:X.params},J)}}function P(X,ne){const te=c=$(X),J=s.value,ue=X.state,G=X.force,Z=X.replace===!0,ae=I(te);if(ae)return P(sn(C(ae),{state:typeof ae=="object"?sn({},ue,ae.state):ue,force:G,replace:Z}),ne||te);const ge=te;ge.redirectedFrom=ne;let pe;return!G&&OIe(o,J,te)&&(pe=Xc(16,{to:ge,from:J}),V(J,J,!0,!1)),(pe?Promise.resolve(pe):A(ge,J)).catch(de=>ol(de)?ol(de,2)?de:K(de):D(de,ge,J)).then(de=>{if(de){if(ol(de,2))return P(sn({replace:Z},C(de.to),{state:typeof de.to=="object"?sn({},ue,de.to.state):ue,force:G}),ne||ge)}else de=N(ge,J,!0,Z,ue);return R(ge,J,de),de})}function M(X,ne){const te=x(X,ne);return te?Promise.reject(te):Promise.resolve()}function _(X){const ne=ie.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(X):X()}function A(X,ne){let te;const[J,ue,G]=C6e(X,ne);te=Wy(J.reverse(),"beforeRouteLeave",X,ne);for(const ae of J)ae.leaveGuards.forEach(ge=>{te.push(Jl(ge,X,ne))});const Z=M.bind(null,X,ne);return te.push(Z),ee(te).then(()=>{te=[];for(const ae of i.list())te.push(Jl(ae,X,ne));return te.push(Z),ee(te)}).then(()=>{te=Wy(ue,"beforeRouteUpdate",X,ne);for(const ae of ue)ae.updateGuards.forEach(ge=>{te.push(Jl(ge,X,ne))});return te.push(Z),ee(te)}).then(()=>{te=[];for(const ae of G)if(ae.beforeEnter)if(vi(ae.beforeEnter))for(const ge of ae.beforeEnter)te.push(Jl(ge,X,ne));else te.push(Jl(ae.beforeEnter,X,ne));return te.push(Z),ee(te)}).then(()=>(X.matched.forEach(ae=>ae.enterCallbacks={}),te=Wy(G,"beforeRouteEnter",X,ne),te.push(Z),ee(te))).then(()=>{te=[];for(const ae of l.list())te.push(Jl(ae,X,ne));return te.push(Z),ee(te)}).catch(ae=>ol(ae,8)?ae:Promise.reject(ae))}function R(X,ne,te){a.list().forEach(J=>_(()=>J(X,ne,te)))}function N(X,ne,te,J,ue){const G=x(X,ne);if(G)return G;const Z=ne===Kl,ae=cc?history.state:{};te&&(J||Z?r.replace(X.fullPath,sn({scroll:Z&&ae&&ae.scroll},ue)):r.push(X.fullPath,ue)),s.value=X,V(X,ne,te,Z),K()}let k;function L(){k||(k=r.listen((X,ne,te)=>{if(!Q.listening)return;const J=$(X),ue=I(J);if(ue){P(sn(ue,{replace:!0}),J).catch(Id);return}c=J;const G=s.value;cc&&RIe(S_(G.fullPath,te.delta),e0()),A(J,G).catch(Z=>ol(Z,12)?Z:ol(Z,2)?(P(Z.to,J).then(ae=>{ol(ae,20)&&!te.delta&&te.type===uf.pop&&r.go(-1,!1)}).catch(Id),Promise.reject()):(te.delta&&r.go(-te.delta,!1),D(Z,J,G))).then(Z=>{Z=Z||N(J,G,!1),Z&&(te.delta&&!ol(Z,8)?r.go(-te.delta,!1):te.type===uf.pop&&ol(Z,20)&&r.go(-1,!1)),R(J,G,Z)}).catch(Id)}))}let B=Ku(),z=Ku(),j;function D(X,ne,te){K(X);const J=z.list();return J.length?J.forEach(ue=>ue(X,ne,te)):console.error(X),Promise.reject(X)}function W(){return j&&s.value!==Kl?Promise.resolve():new Promise((X,ne)=>{B.add([X,ne])})}function K(X){return j||(j=!X,L(),B.list().forEach(([ne,te])=>X?te(X):ne()),B.reset()),X}function V(X,ne,te,J){const{scrollBehavior:ue}=e;if(!cc||!ue)return Promise.resolve();const G=!te&&DIe(S_(X.fullPath,0))||(J||!te)&&history.state&&history.state.scroll||null;return $t().then(()=>ue(X,ne,G)).then(Z=>Z&&AIe(Z)).catch(Z=>D(Z,X,ne))}const U=X=>r.go(X);let re;const ie=new Set,Q={currentRoute:s,listening:!0,addRoute:g,removeRoute:m,hasRoute:S,getRoutes:v,resolve:$,options:e,push:O,replace:w,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:z.add,isReady:W,install(X){const ne=this;X.component("RouterLink",zS),X.component("RouterView",iN),X.config.globalProperties.$router=ne,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>lt(s)}),cc&&!re&&s.value===Kl&&(re=!0,O(r.location).catch(ue=>{}));const te={};for(const ue in Kl)Object.defineProperty(te,ue,{get:()=>s.value[ue],enumerable:!0});X.provide(v2,ne),X.provide(rN,d5(te)),X.provide(kS,s);const J=X.unmount;ie.add(X),X.unmount=function(){ie.delete(X),ie.size<1&&(c=Kl,k&&k(),k=null,s.value=Kl,re=!1,j=!1),J()}}};function ee(X){return X.reduce((ne,te)=>ne.then(()=>_(te)),Promise.resolve())}return Q}function C6e(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lGc(c,a))?o.push(a):n.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Gc(c,s))||r.push(s))}return[n,o,r]}function D_(e,t){const n=new URL(e),o=new WebSocket(n);return o.onmessage=t,o}function x6e(e){const t=new Date(e*1e3),n=new Date,o=t.getTime()-n.getTime(),r=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return Math.abs(o)<=6e4?r.format(Math.round(o/1e3),"second"):Math.abs(o)<=36e5?r.format(Math.round(o/6e4),"minute"):Math.abs(o)<=864e5?r.format(Math.round(o/36e5),"hour"):Math.abs(o)<=6048e5?r.format(Math.round(o/864e5),"day"):t.toLocaleDateString()}function w6e(e){const t=e.split(".");return t.length>1?t[t.length-1]:""}function O6e(e){const t=["mp4","avi","mkv","mov"],n=["jpg","jpeg","png","gif"],o=["pdf"];return t.includes(e)?"video":n.includes(e)?"image":o.includes(e)?"pdf":"unknown"}const _l=hU({id:"documents",state:()=>({root:{},document:[],loading:!0,uploadingDocuments:[],uploadCount:0,wsWatch:void 0,wsUpload:void 0,selectedDocuments:[],error:""}),actions:{setActualDocument(e){this.loading=!0;let t=this.root;const n=[];e.split("/").slice(1).forEach(i=>{if(i=decodeURIComponent(i),t&&t.dir)for(const l in t.dir)l===i&&(t=t.dir[l])});let r=0;for(const i in t.dir){const l={name:i,key:r,size:t.dir[i].size,modified:x6e(t.dir[i].mtime),type:"folder"};r++,n.push(l)}this.document=n,this.loading=!1},async setActualDocumentFile(e){this.loading=!0;const t=await X8e(e);this.document=[t],this.loading=!1},setSelectedDocuments(e){this.selectedDocuments=e},deleteDocument(e){this.document=this.document.filter(t=>e.key!==t.key),this.selectedDocuments=this.selectedDocuments.filter(t=>e.key!==t.key)},updateUploadingDocuments(e,t){this.uploadingDocuments.forEach(n=>{n.key===e&&(n.progress=t)})},pushUploadingDocuments(e){this.uploadCount++;const t={key:this.uploadCount,name:e,progress:0};return this.uploadingDocuments.push(t),t},deleteUploadingDocument(e){this.uploadingDocuments=this.uploadingDocuments.filter(t=>t.key!==e)},getNextDocumentInRoute(e,t){const n=t.split("/").slice(1);n.pop();let o=this.root;const r=[];n.forEach(a=>{if(o&&o.dir)for(const s in o.dir)s===a&&(o=o.dir[s])});for(const a in o.dir)r.push({name:a,content:o.dir[a]});const i=decodeURIComponent(this.mainDocument[0].name).split("/").pop();let l=r.findIndex(a=>a.name===i);return l<1&&e===-1?l=r.length-1:l>=r.length-1&&e===1?l=0:l=l+e,r[l].name}},getters:{mainDocument(){return this.document},rootSize(){if(this.root)return this.root.size},rootMain(){if(this.root)return this.root.dir}}});function lN(e,t){return function(){return e.apply(t,arguments)}}const{toString:P6e}=Object.prototype,{getPrototypeOf:m2}=Object,t0=(e=>t=>{const n=P6e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ji=e=>(e=e.toLowerCase(),t=>t0(t)===e),n0=e=>t=>typeof t===e,{isArray:pu}=Array,df=n0("undefined");function I6e(e){return e!==null&&!df(e)&&e.constructor!==null&&!df(e.constructor)&&Kr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aN=ji("ArrayBuffer");function T6e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&aN(e.buffer),t}const _6e=n0("string"),Kr=n0("function"),sN=n0("number"),o0=e=>e!==null&&typeof e=="object",E6e=e=>e===!0||e===!1,dg=e=>{if(t0(e)!=="object")return!1;const t=m2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},M6e=ji("Date"),A6e=ji("File"),R6e=ji("Blob"),D6e=ji("FileList"),B6e=e=>o0(e)&&Kr(e.pipe),N6e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Kr(e.append)&&((t=t0(e))==="formdata"||t==="object"&&Kr(e.toString)&&e.toString()==="[object FormData]"))},F6e=ji("URLSearchParams"),L6e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),pu(e))for(o=0,r=e.length;o0;)if(r=n[o],t===r.toLowerCase())return r;return null}const uN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dN=e=>!df(e)&&e!==uN;function HS(){const{caseless:e}=dN(this)&&this||{},t={},n=(o,r)=>{const i=e&&cN(t,r)||r;dg(t[i])&&dg(o)?t[i]=HS(t[i],o):dg(o)?t[i]=HS({},o):pu(o)?t[i]=o.slice():t[i]=o};for(let o=0,r=arguments.length;o(Nf(t,(r,i)=>{n&&Kr(r)?e[i]=lN(r,n):e[i]=r},{allOwnKeys:o}),e),z6e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),H6e=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j6e=(e,t,n,o)=>{let r,i,l;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)l=r[i],(!o||o(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&m2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},W6e=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},V6e=e=>{if(!e)return null;if(pu(e))return e;let t=e.length;if(!sN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},K6e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&m2(Uint8Array)),U6e=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},G6e=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},X6e=ji("HTMLFormElement"),Y6e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),B_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q6e=ji("RegExp"),fN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Nf(n,(r,i)=>{let l;(l=t(r,i,e))!==!1&&(o[i]=l||r)}),Object.defineProperties(e,o)},Z6e=e=>{fN(e,(t,n)=>{if(Kr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Kr(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J6e=(e,t)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return pu(e)?o(e):o(String(e).split(t)),n},Q6e=()=>{},e8e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Vy="abcdefghijklmnopqrstuvwxyz",N_="0123456789",pN={DIGIT:N_,ALPHA:Vy,ALPHA_DIGIT:Vy+Vy.toUpperCase()+N_},t8e=(e=16,t=pN.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function n8e(e){return!!(e&&Kr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const o8e=e=>{const t=new Array(10),n=(o,r)=>{if(o0(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const i=pu(o)?[]:{};return Nf(o,(l,a)=>{const s=n(l,r+1);!df(s)&&(i[a]=s)}),t[r]=void 0,i}}return o};return n(e,0)},r8e=ji("AsyncFunction"),i8e=e=>e&&(o0(e)||Kr(e))&&Kr(e.then)&&Kr(e.catch),je={isArray:pu,isArrayBuffer:aN,isBuffer:I6e,isFormData:N6e,isArrayBufferView:T6e,isString:_6e,isNumber:sN,isBoolean:E6e,isObject:o0,isPlainObject:dg,isUndefined:df,isDate:M6e,isFile:A6e,isBlob:R6e,isRegExp:q6e,isFunction:Kr,isStream:B6e,isURLSearchParams:F6e,isTypedArray:K6e,isFileList:D6e,forEach:Nf,merge:HS,extend:k6e,trim:L6e,stripBOM:z6e,inherits:H6e,toFlatObject:j6e,kindOf:t0,kindOfTest:ji,endsWith:W6e,toArray:V6e,forEachEntry:U6e,matchAll:G6e,isHTMLForm:X6e,hasOwnProperty:B_,hasOwnProp:B_,reduceDescriptors:fN,freezeMethods:Z6e,toObjectSet:J6e,toCamelCase:Y6e,noop:Q6e,toFiniteNumber:e8e,findKey:cN,global:uN,isContextDefined:dN,ALPHABET:pN,generateString:t8e,isSpecCompliantForm:n8e,toJSONObject:o8e,isAsyncFn:r8e,isThenable:i8e};function tn(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}je.inherits(tn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:je.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hN=tn.prototype,gN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gN[e]={value:e}});Object.defineProperties(tn,gN);Object.defineProperty(hN,"isAxiosError",{value:!0});tn.from=(e,t,n,o,r,i)=>{const l=Object.create(hN);return je.toFlatObject(e,l,function(s){return s!==Error.prototype},a=>a!=="isAxiosError"),tn.call(l,e.message,t,n,o,r),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const l8e=null;function jS(e){return je.isPlainObject(e)||je.isArray(e)}function vN(e){return je.endsWith(e,"[]")?e.slice(0,-2):e}function F_(e,t,n){return e?e.concat(t).map(function(r,i){return r=vN(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function a8e(e){return je.isArray(e)&&!e.some(jS)}const s8e=je.toFlatObject(je,{},null,function(t){return/^is[A-Z]/.test(t)});function r0(e,t,n){if(!je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!je.isUndefined(S[v])});const o=n.metaTokens,r=n.visitor||u,i=n.dots,l=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&je.isSpecCompliantForm(t);if(!je.isFunction(r))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(je.isDate(m))return m.toISOString();if(!s&&je.isBlob(m))throw new tn("Blob is not supported. Use a Buffer instead.");return je.isArrayBuffer(m)||je.isTypedArray(m)?s&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,S){let $=m;if(m&&!S&&typeof m=="object"){if(je.endsWith(v,"{}"))v=o?v:v.slice(0,-2),m=JSON.stringify(m);else if(je.isArray(m)&&a8e(m)||(je.isFileList(m)||je.endsWith(v,"[]"))&&($=je.toArray(m)))return v=vN(v),$.forEach(function(x,O){!(je.isUndefined(x)||x===null)&&t.append(l===!0?F_([v],O,i):l===null?v:v+"[]",c(x))}),!1}return jS(m)?!0:(t.append(F_(S,v,i),c(m)),!1)}const d=[],p=Object.assign(s8e,{defaultVisitor:u,convertValue:c,isVisitable:jS});function g(m,v){if(!je.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),je.forEach(m,function($,C){(!(je.isUndefined($)||$===null)&&r.call(t,$,je.isString(C)?C.trim():C,v,p))===!0&&g($,v?v.concat(C):[C])}),d.pop()}}if(!je.isObject(e))throw new TypeError("data must be an object");return g(e),t}function L_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function b2(e,t){this._pairs=[],e&&r0(e,this,t)}const mN=b2.prototype;mN.append=function(t,n){this._pairs.push([t,n])};mN.toString=function(t){const n=t?function(o){return t.call(this,o,L_)}:L_;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function c8e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bN(e,t,n){if(!t)return e;const o=n&&n.encode||c8e,r=n&&n.serialize;let i;if(r?i=r(t,n):i=je.isURLSearchParams(t)?t.toString():new b2(t,n).toString(o),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class u8e{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){je.forEach(this.handlers,function(o){o!==null&&t(o)})}}const k_=u8e,yN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d8e=typeof URLSearchParams<"u"?URLSearchParams:b2,f8e=typeof FormData<"u"?FormData:null,p8e=typeof Blob<"u"?Blob:null,h8e=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),g8e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),si={isBrowser:!0,classes:{URLSearchParams:d8e,FormData:f8e,Blob:p8e},isStandardBrowserEnv:h8e,isStandardBrowserWebWorkerEnv:g8e,protocols:["http","https","file","blob","url","data"]};function v8e(e,t){return r0(e,new si.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return si.isNode&&je.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function m8e(e){return je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b8e(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o=n.length;return l=!l&&je.isArray(r)?r.length:l,s?(je.hasOwnProp(r,l)?r[l]=[r[l],o]:r[l]=o,!a):((!r[l]||!je.isObject(r[l]))&&(r[l]=[]),t(n,o,r[l],i)&&je.isArray(r[l])&&(r[l]=b8e(r[l])),!a)}if(je.isFormData(e)&&je.isFunction(e.entries)){const n={};return je.forEachEntry(e,(o,r)=>{t(m8e(o),r,n,0)}),n}return null}function y8e(e,t,n){if(je.isString(e))try{return(t||JSON.parse)(e),je.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const y2={transitional:yN,adapter:si.isNode?"http":"xhr",transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,i=je.isObject(t);if(i&&je.isHTMLForm(t)&&(t=new FormData(t)),je.isFormData(t))return r&&r?JSON.stringify(SN(t)):t;if(je.isArrayBuffer(t)||je.isBuffer(t)||je.isStream(t)||je.isFile(t)||je.isBlob(t))return t;if(je.isArrayBufferView(t))return t.buffer;if(je.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return v8e(t,this.formSerializer).toString();if((a=je.isFileList(t))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return r0(a?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),y8e(t)):t}],transformResponse:[function(t){const n=this.transitional||y2.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&je.isString(t)&&(o&&!this.responseType||r)){const l=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?tn.from(a,tn.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:si.classes.FormData,Blob:si.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};je.forEach(["delete","get","head","post","put","patch"],e=>{y2.headers[e]={}});const S2=y2,S8e=je.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$8e=e=>{const t={};let n,o,r;return e&&e.split(` `).forEach(function(l){r=l.indexOf(":"),n=l.substring(0,r).trim().toLowerCase(),o=l.substring(r+1).trim(),!(!n||t[n]&&S8e[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},z_=Symbol("internals");function Uu(e){return e&&String(e).trim().toLowerCase()}function fg(e){return e===!1||e==null?e:je.isArray(e)?e.map(fg):String(e)}function C8e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const x8e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ky(e,t,n,o,r){if(je.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!je.isString(t)){if(je.isString(o))return t.indexOf(o)!==-1;if(je.isRegExp(o))return o.test(t)}}function w8e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function O8e(e,t){const n=je.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,i,l){return this[o].call(this,t,r,i,l)},configurable:!0})})}class i0{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function i(a,s,c){const u=Uu(s);if(!u)throw new Error("header name must be a non-empty string");const d=je.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||s]=fg(a))}const l=(a,s)=>je.forEach(a,(c,u)=>i(c,u,s));return je.isPlainObject(t)||t instanceof this.constructor?l(t,n):je.isString(t)&&(t=t.trim())&&!x8e(t)?l($8e(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=Uu(t),t){const o=je.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return C8e(r);if(je.isFunction(n))return n.call(this,r,o);if(je.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Uu(t),t){const o=je.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ky(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function i(l){if(l=Uu(l),l){const a=je.findKey(o,l);a&&(!n||Ky(o,o[a],a,n))&&(delete o[a],r=!0)}}return je.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!t||Ky(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,o={};return je.forEach(this,(r,i)=>{const l=je.findKey(o,i);if(l){n[l]=fg(r),delete n[i];return}const a=t?w8e(i):String(i).trim();a!==i&&delete n[i],n[a]=fg(r),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return je.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&je.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[z_]=this[z_]={accessors:{}}).accessors,r=this.prototype;function i(l){const a=Uu(l);o[a]||(O8e(r,l),o[a]=!0)}return je.isArray(t)?t.forEach(i):i(t),this}}i0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(i0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});je.freezeMethods(i0);const vl=i0;function Uy(e,t){const n=this||S2,o=t||n,r=vl.from(o.headers);let i=o.data;return je.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function $N(e){return!!(e&&e.__CANCEL__)}function Ff(e,t,n){tn.call(this,e??"canceled",tn.ERR_CANCELED,t,n),this.name="CanceledError"}je.inherits(Ff,tn,{__CANCEL__:!0});function P8e(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new tn("Request failed with status code "+n.status,[tn.ERR_BAD_REQUEST,tn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const I8e=si.isStandardBrowserEnv?function(){return{write:function(n,o,r,i,l,a){const s=[];s.push(n+"="+encodeURIComponent(o)),je.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),je.isString(i)&&s.push("path="+i),je.isString(l)&&s.push("domain="+l),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function T8e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _8e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function CN(e,t){return e&&!T8e(t)?_8e(e,t):t}const E8e=si.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(l){const a=je.isString(l)?r(l):l;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}();function M8e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function A8e(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,l;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),u=o[i];l||(l=c),n[r]=s,o[r]=c;let d=i,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-l{const i=r.loaded,l=r.lengthComputable?r.total:void 0,a=i-n,s=o(a),c=i<=l;n=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:s||void 0,estimated:s&&l&&c?(l-i)/s:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const R8e=typeof XMLHttpRequest<"u",D8e=R8e&&function(e){return new Promise(function(n,o){let r=e.data;const i=vl.from(e.headers).normalize(),l=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}je.isFormData(r)&&(si.isStandardBrowserEnv||si.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+m))}const u=CN(e.baseURL,e.url);c.open(e.method.toUpperCase(),bN(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const g=vl.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};P8e(function($){n($),s()},function($){o($),s()},v),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(o(new tn("Request aborted",tn.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new tn("Network Error",tn.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||yN;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),o(new tn(m,v.clarifyTimeoutError?tn.ETIMEDOUT:tn.ECONNABORTED,e,c)),c=null},si.isStandardBrowserEnv){const g=(e.withCredentials||E8e(u))&&e.xsrfCookieName&&I8e.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&je.forEach(i.toJSON(),function(m,v){c.setRequestHeader(v,m)}),je.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",H_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",H_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{c&&(o(!g||g.type?new Ff(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=M8e(u);if(p&&si.protocols.indexOf(p)===-1){o(new tn("Unsupported protocol "+p+":",tn.ERR_BAD_REQUEST,e));return}c.send(r||null)})},pg={http:l8e,xhr:D8e};je.forEach(pg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xN={getAdapter:e=>{e=je.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let r=0;re instanceof vl?e.toJSON():e;function Yc(e,t){t=t||{};const n={};function o(c,u,d){return je.isPlainObject(c)&&je.isPlainObject(u)?je.merge.call({caseless:d},c,u):je.isPlainObject(u)?je.merge({},u):je.isArray(u)?u.slice():u}function r(c,u,d){if(je.isUndefined(u)){if(!je.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function i(c,u){if(!je.isUndefined(u))return o(void 0,u)}function l(c,u){if(je.isUndefined(u)){if(!je.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function a(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(c,u)=>r(W_(c),W_(u),!0)};return je.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=s[u]||r,p=d(e[u],t[u],u);je.isUndefined(p)&&d!==a||(n[u]=p)}),n}const wN="1.5.0",$2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$2[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const V_={};$2.transitional=function(t,n,o){function r(i,l){return"[Axios v"+wN+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,a)=>{if(t===!1)throw new tn(r(l," has been removed"+(n?" in "+n:"")),tn.ERR_DEPRECATED);return n&&!V_[l]&&(V_[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function B8e(e,t,n){if(typeof e!="object")throw new tn("options must be an object",tn.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],l=t[i];if(l){const a=e[i],s=a===void 0||l(a,i,e);if(s!==!0)throw new tn("option "+i+" must be "+s,tn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tn("Unknown option "+i,tn.ERR_BAD_OPTION)}}const WS={assertOptions:B8e,validators:$2},Ul=WS.validators;class hv{constructor(t){this.defaults=t,this.interceptors={request:new k_,response:new k_}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yc(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&WS.assertOptions(o,{silentJSONParsing:Ul.transitional(Ul.boolean),forcedJSONParsing:Ul.transitional(Ul.boolean),clarifyTimeoutError:Ul.transitional(Ul.boolean)},!1),r!=null&&(je.isFunction(r)?n.paramsSerializer={serialize:r}:WS.assertOptions(r,{encode:Ul.function,serialize:Ul.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&je.merge(i.common,i[n.method]);i&&je.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=vl.concat(l,i);const a=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,p;if(!s){const m=[j_.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),p=m.length,u=Promise.resolve(n);d{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const l=new Promise(a=>{o.subscribe(a),i=a}).then(r);return l.cancel=function(){o.unsubscribe(i)},l},t(function(i,l,a){o.reason||(o.reason=new Ff(i,l,a),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new C2(function(r){t=r}),cancel:t}}}const N8e=C2;function F8e(e){return function(n){return e.apply(null,n)}}function L8e(e){return je.isObject(e)&&e.isAxiosError===!0}const VS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(VS).forEach(([e,t])=>{VS[t]=e});const k8e=VS;function ON(e){const t=new hg(e),n=lN(hg.prototype.request,t);return je.extend(n,hg.prototype,t,{allOwnKeys:!0}),je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return ON(Yc(e,r))},n}const Qn=ON(S2);Qn.Axios=hg;Qn.CanceledError=Ff;Qn.CancelToken=N8e;Qn.isCancel=$N;Qn.VERSION=wN;Qn.toFormData=r0;Qn.AxiosError=tn;Qn.Cancel=Qn.CanceledError;Qn.all=function(t){return Promise.all(t)};Qn.spread=F8e;Qn.isAxiosError=L8e;Qn.mergeConfig=Yc;Qn.AxiosHeaders=vl;Qn.formToJSON=e=>SN(je.isHTMLForm(e)?new FormData(e):e);Qn.getAdapter=xN.getAdapter;Qn.HttpStatusCode=k8e;Qn.default=Qn;const z8e=Qn,H8e="https://va.zi.fi/files/",PN=z8e.create({baseURL:H8e,headers:{Accept:"application/json"}});PN.interceptors.response.use(e=>e,e=>{var r;const t=((r=e.response)==null?void 0:r.data.message)??"Unexpected error",n=e.code?Number(e.code):500,o=new j8e(n,t);return Promise.reject(o)});class j8e extends Error{constructor(n,o){super(o);N4(this,"code");this.code=n}}const W8e="wss://va.zi.fi/api/watch",V8e="wss://va.zi.fi/api/upload",K8e="https://va.zi.fi/files/";class U8e{constructor(t=_l()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch(!0){case!!n.root:this.handleRootMessage(n);break;case!!n.update:this.handleUpdateMessage(n);break}}handleRootMessage({root:t}){this.store&&this.store.root&&(this.store.root=t)}handleUpdateMessage(t){const n=t.update[0];n&&(this.store.root=n)}}class G8e{constructor(t=_l()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch(!0){case!!n.written:this.handleWrittenMessage(n);break}}handleWrittenMessage(t){console.log("Written message",t.written)}}async function X8e(e){const t=await PN.get(e),n=e.substring(1,e.length);return{name:n,data:t.data,type:"file",ext:w6e(n)}}const Y8e={class:"progress-container"},q8e=se({__name:"NotificationLoading",setup(e){const t=_l();function n(o){t.deleteUploadingDocument(o)}return(o,r)=>{const i=Km;return Tn(!0),_o(ot,null,M5(lt(t).uploadingDocuments,l=>(Tn(),_o(ot,{key:l.key},[io("span",null,JS(l.name),1),io("div",Y8e,[h(i,{percent:l.progress},null,8,["percent"]),h(lt(LC),{class:"close-button",onClick:a=>n(l.key)},null,8,["onClick"])])],64))),128)}}}),hu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Z8e=hu(q8e,[["__scopeId","data-v-2656947e"]]),J8e=se({__name:"UploadButton",setup(e){const[t,n]=km.useNotification(),o=fe(),r=_l(),i=p=>a(p),l=fe(!1),a=p=>{l.value||(t.open({message:"Uploading documents",description:fn(Z8e),placement:p,duration:0,onClose:()=>{l.value=!1}}),l.value=!0)};function s(){o.value.click()}async function c(p,g,m){const v=new FileReader,S=new Promise(C=>v.onload=C);v.readAsArrayBuffer(p.slice(g,m));const $=await S;if($.target&&$.target instanceof FileReader)return $.target.result;throw new Error("Error loading file")}async function u(p,g,m){const v=r.wsUpload;if(v){const S=await c(p,g,m);v.send(JSON.stringify({name:p.name,size:p.size,start:g,end:m})),v.send(S)}}async function d(p){const g=p.target,m=1<<20;if(g&&g.files&&g.files.length>0){const v=g.files[0],S=Math.ceil(v.size/m),$=r.pushUploadingDocuments(v.name);i("bottomRight");for(let C=0;C{const m=hn,v=Ko;return Tn(),_o(ot,null,[h(v,{title:"Upload files from disk"},{default:Sn(()=>[h(m,{onClick:s,type:"text",class:"action-button",icon:fn(lt(ume))},null,8,["icon"]),io("input",{ref_key:"fileUploadButton",ref:o,onChange:d,class:"upload-input",type:"file",onclick:"this.value=null;"},null,544)]),_:1}),h(lt(n))],64)}}}),Q8e=hu(J8e,[["__scopeId","data-v-83916548"]]),eTe={class:"actions-container"},tTe={class:"actions-list"},nTe={class:"actions-list"},oTe=se({__name:"HeaderMain",setup(e){const t=_l();function n(){console.log("Creating file")}function o(){console.log("Uploading Folder")}function r(){console.log("Uploading Folder")}function i(){console.log("Searching ...")}function l(){console.log("Creating new view ...")}function a(){console.log("Preferences ...")}function s(){console.log("About ...")}function c(){t.selectedDocuments&&t.selectedDocuments.forEach(p=>{t.deleteDocument(p)})}function u(){console.log("Share ...")}function d(){console.log("Download ...")}return(p,g)=>{const m=hn,v=Ko;return Tn(),_o("div",eTe,[io("div",tTe,[h(Q8e),h(v,{title:"Upload folder from disk"},{default:Sn(()=>[h(m,{onClick:o,type:"text",class:"action-button",icon:fn(lt(Ame))},null,8,["icon"])]),_:1}),h(v,{title:"Create file"},{default:Sn(()=>[h(m,{onClick:n,type:"text",class:"action-button",icon:fn(lt(hme))},null,8,["icon"])]),_:1}),h(v,{title:"Create folder"},{default:Sn(()=>[h(m,{onClick:r,type:"text",class:"action-button",icon:fn(lt(Nme))},null,8,["icon"])]),_:1}),lt(t).selectedDocuments&<(t).selectedDocuments.length>0?(Tn(),_o(ot,{key:0},[h(v,{title:"Share"},{default:Sn(()=>[h(m,{type:"text",onClick:u,class:"action-button",icon:fn(lt(cD))},null,8,["icon"])]),_:1}),h(v,{title:"Download Zip"},{default:Sn(()=>[h(m,{type:"text",onClick:d,class:"action-button",icon:fn(lt(lD))},null,8,["icon"])]),_:1}),h(v,{title:"Delete"},{default:Sn(()=>[h(m,{type:"text",onClick:c,class:"action-button",icon:fn(lt(Fm))},null,8,["icon"])]),_:1})],64)):rd("",!0)]),io("div",nTe,[h(v,{title:"Search"},{default:Sn(()=>[h(m,{onClick:i,type:"text",class:"action-button",icon:fn(lt(yf))},null,8,["icon"])]),_:1}),h(v,{title:"Create new view"},{default:Sn(()=>[h(m,{onClick:l,type:"text",class:"action-button",icon:fn(lt(uD))},null,8,["icon"])]),_:1}),h(v,{title:"Preferences"},{default:Sn(()=>[h(m,{onClick:a,type:"text",class:"action-button",icon:fn(lt(V0e))},null,8,["icon"])]),_:1}),h(v,{title:"About"},{default:Sn(()=>[h(m,{onClick:s,type:"text",class:"action-button",icon:fn(lt(NC))},null,8,["icon"])]),_:1})])])}}}),rTe=se({__name:"AppNavigation",props:{path:{}},setup(e){const t=e;function n(o){return"/"+t.path.slice(0,o+1).join("/")}return(o,r)=>{const i=Vc,l=ca;return Tn(),_o("nav",null,[h(l,null,{default:Sn(()=>[h(i,null,{default:Sn(()=>[h(lt(zS),{to:"/"},{default:Sn(()=>[h(lt(n0e))]),_:1})]),_:1}),(Tn(!0),_o(ot,null,M5(o.path,(a,s)=>(Tn(),ha(i,{key:s},{default:Sn(()=>[h(lt(zS),{to:n(s)},{default:Sn(()=>[io("span",{class:Cv(s===o.path.length-1&&"last")},JS(decodeURIComponent(a)),3)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})])}}}),iTe=hu(rTe,[["__scopeId","data-v-069e7159"]]);var gv={exports:{}};/** +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[z_]=this[z_]={accessors:{}}).accessors,r=this.prototype;function i(l){const a=Uu(l);o[a]||(O8e(r,l),o[a]=!0)}return je.isArray(t)?t.forEach(i):i(t),this}}i0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(i0.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});je.freezeMethods(i0);const vl=i0;function Uy(e,t){const n=this||S2,o=t||n,r=vl.from(o.headers);let i=o.data;return je.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function $N(e){return!!(e&&e.__CANCEL__)}function Ff(e,t,n){tn.call(this,e??"canceled",tn.ERR_CANCELED,t,n),this.name="CanceledError"}je.inherits(Ff,tn,{__CANCEL__:!0});function P8e(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new tn("Request failed with status code "+n.status,[tn.ERR_BAD_REQUEST,tn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const I8e=si.isStandardBrowserEnv?function(){return{write:function(n,o,r,i,l,a){const s=[];s.push(n+"="+encodeURIComponent(o)),je.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),je.isString(i)&&s.push("path="+i),je.isString(l)&&s.push("domain="+l),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function T8e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _8e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function CN(e,t){return e&&!T8e(t)?_8e(e,t):t}const E8e=si.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(l){const a=je.isString(l)?r(l):l;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}();function M8e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function A8e(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,l;return t=t!==void 0?t:1e3,function(s){const c=Date.now(),u=o[i];l||(l=c),n[r]=s,o[r]=c;let d=i,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-l{const i=r.loaded,l=r.lengthComputable?r.total:void 0,a=i-n,s=o(a),c=i<=l;n=i;const u={loaded:i,total:l,progress:l?i/l:void 0,bytes:a,rate:s||void 0,estimated:s&&l&&c?(l-i)/s:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const R8e=typeof XMLHttpRequest<"u",D8e=R8e&&function(e){return new Promise(function(n,o){let r=e.data;const i=vl.from(e.headers).normalize(),l=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}je.isFormData(r)&&(si.isStandardBrowserEnv||si.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+m))}const u=CN(e.baseURL,e.url);c.open(e.method.toUpperCase(),bN(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function d(){if(!c)return;const g=vl.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};P8e(function($){n($),s()},function($){o($),s()},v),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(o(new tn("Request aborted",tn.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new tn("Network Error",tn.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||yN;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),o(new tn(m,v.clarifyTimeoutError?tn.ETIMEDOUT:tn.ECONNABORTED,e,c)),c=null},si.isStandardBrowserEnv){const g=(e.withCredentials||E8e(u))&&e.xsrfCookieName&&I8e.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&je.forEach(i.toJSON(),function(m,v){c.setRequestHeader(v,m)}),je.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",H_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",H_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=g=>{c&&(o(!g||g.type?new Ff(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=M8e(u);if(p&&si.protocols.indexOf(p)===-1){o(new tn("Unsupported protocol "+p+":",tn.ERR_BAD_REQUEST,e));return}c.send(r||null)})},pg={http:l8e,xhr:D8e};je.forEach(pg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xN={getAdapter:e=>{e=je.isArray(e)?e:[e];const{length:t}=e;let n,o;for(let r=0;re instanceof vl?e.toJSON():e;function Yc(e,t){t=t||{};const n={};function o(c,u,d){return je.isPlainObject(c)&&je.isPlainObject(u)?je.merge.call({caseless:d},c,u):je.isPlainObject(u)?je.merge({},u):je.isArray(u)?u.slice():u}function r(c,u,d){if(je.isUndefined(u)){if(!je.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function i(c,u){if(!je.isUndefined(u))return o(void 0,u)}function l(c,u){if(je.isUndefined(u)){if(!je.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function a(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(c,u)=>r(W_(c),W_(u),!0)};return je.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=s[u]||r,p=d(e[u],t[u],u);je.isUndefined(p)&&d!==a||(n[u]=p)}),n}const wN="1.5.0",$2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$2[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const V_={};$2.transitional=function(t,n,o){function r(i,l){return"[Axios v"+wN+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,a)=>{if(t===!1)throw new tn(r(l," has been removed"+(n?" in "+n:"")),tn.ERR_DEPRECATED);return n&&!V_[l]&&(V_[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,a):!0}};function B8e(e,t,n){if(typeof e!="object")throw new tn("options must be an object",tn.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],l=t[i];if(l){const a=e[i],s=a===void 0||l(a,i,e);if(s!==!0)throw new tn("option "+i+" must be "+s,tn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tn("Unknown option "+i,tn.ERR_BAD_OPTION)}}const WS={assertOptions:B8e,validators:$2},Ul=WS.validators;class hv{constructor(t){this.defaults=t,this.interceptors={request:new k_,response:new k_}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yc(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&WS.assertOptions(o,{silentJSONParsing:Ul.transitional(Ul.boolean),forcedJSONParsing:Ul.transitional(Ul.boolean),clarifyTimeoutError:Ul.transitional(Ul.boolean)},!1),r!=null&&(je.isFunction(r)?n.paramsSerializer={serialize:r}:WS.assertOptions(r,{encode:Ul.function,serialize:Ul.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&je.merge(i.common,i[n.method]);i&&je.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=vl.concat(l,i);const a=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,p;if(!s){const m=[j_.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),p=m.length,u=Promise.resolve(n);d{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const l=new Promise(a=>{o.subscribe(a),i=a}).then(r);return l.cancel=function(){o.unsubscribe(i)},l},t(function(i,l,a){o.reason||(o.reason=new Ff(i,l,a),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new C2(function(r){t=r}),cancel:t}}}const N8e=C2;function F8e(e){return function(n){return e.apply(null,n)}}function L8e(e){return je.isObject(e)&&e.isAxiosError===!0}const VS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(VS).forEach(([e,t])=>{VS[t]=e});const k8e=VS;function ON(e){const t=new hg(e),n=lN(hg.prototype.request,t);return je.extend(n,hg.prototype,t,{allOwnKeys:!0}),je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return ON(Yc(e,r))},n}const Qn=ON(S2);Qn.Axios=hg;Qn.CanceledError=Ff;Qn.CancelToken=N8e;Qn.isCancel=$N;Qn.VERSION=wN;Qn.toFormData=r0;Qn.AxiosError=tn;Qn.Cancel=Qn.CanceledError;Qn.all=function(t){return Promise.all(t)};Qn.spread=F8e;Qn.isAxiosError=L8e;Qn.mergeConfig=Yc;Qn.AxiosHeaders=vl;Qn.formToJSON=e=>SN(je.isHTMLForm(e)?new FormData(e):e);Qn.getAdapter=xN.getAdapter;Qn.HttpStatusCode=k8e;Qn.default=Qn;const z8e=Qn,H8e="https://va.zi.fi/files/",PN=z8e.create({baseURL:H8e,headers:{Accept:"application/json"}});PN.interceptors.response.use(e=>e,e=>{var r;const t=((r=e.response)==null?void 0:r.data.message)??"Unexpected error",n=e.code?Number(e.code):500,o=new j8e(n,t);return Promise.reject(o)});class j8e extends Error{constructor(n,o){super(o);N4(this,"code");this.code=n}}const W8e="wss://va.zi.fi/api/watch",V8e="wss://va.zi.fi/api/upload",K8e="https://va.zi.fi/files/";class U8e{constructor(t=_l()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch(!0){case!!n.root:this.handleRootMessage(n);break;case!!n.update:this.handleUpdateMessage(n);break}}handleRootMessage({root:t}){this.store&&this.store.root&&(this.store.root=t)}handleUpdateMessage(t){const n=t.update[0];n&&(this.store.root=n)}}class G8e{constructor(t=_l()){this.store=t,this.handleWebSocketMessage=this.handleWebSocketMessage.bind(this)}handleWebSocketMessage(t){const n=JSON.parse(t.data);switch(!0){case!!n.written:this.handleWrittenMessage(n);break}}handleWrittenMessage(t){console.log("Written message",t.written)}}async function X8e(e){const t=await PN.get(e),n=e.substring(1,e.length);return{name:n,data:t.data,type:"file",ext:w6e(n)}}const Y8e={class:"progress-container"},q8e=se({__name:"NotificationLoading",setup(e){const t=_l();function n(o){t.deleteUploadingDocument(o)}return(o,r)=>{const i=Km;return Tn(!0),_o(ot,null,M5(lt(t).uploadingDocuments,l=>(Tn(),_o(ot,{key:l.key},[io("span",null,JS(l.name),1),io("div",Y8e,[h(i,{percent:l.progress},null,8,["percent"]),h(lt(LC),{class:"close-button",onClick:a=>n(l.key)},null,8,["onClick"])])],64))),128)}}}),hu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Z8e=hu(q8e,[["__scopeId","data-v-2656947e"]]),J8e=se({__name:"UploadButton",setup(e){const[t,n]=km.useNotification(),o=fe(),r=_l(),i=p=>a(p),l=fe(!1),a=p=>{l.value||(t.open({message:"Uploading documents",description:fn(Z8e),placement:p,duration:0,onClose:()=>{l.value=!1}}),l.value=!0)};function s(){o.value.click()}async function c(p,g,m){const v=new FileReader,S=new Promise(C=>v.onload=C);v.readAsArrayBuffer(p.slice(g,m));const $=await S;if($.target&&$.target instanceof FileReader)return $.target.result;throw new Error("Error loading file")}async function u(p,g,m){const v=r.wsUpload;if(v){const S=await c(p,g,m);v.send(JSON.stringify({name:p.name,size:p.size,start:g,end:m})),v.send(S)}}async function d(p){const g=p.target,m=1<<20;if(g&&g.files&&g.files.length>0){const v=g.files[0],S=Math.ceil(v.size/m),$=r.pushUploadingDocuments(v.name);i("bottomRight");for(let C=0;C{const m=hn,v=Ko;return Tn(),_o(ot,null,[h(v,{title:"Upload files from disk"},{default:Sn(()=>[h(m,{onClick:s,type:"text",class:"action-button",icon:fn(lt(ume))},null,8,["icon"]),io("input",{ref_key:"fileUploadButton",ref:o,onChange:d,class:"upload-input",type:"file",onclick:"this.value=null;"},null,544)]),_:1}),h(lt(n))],64)}}}),Q8e=hu(J8e,[["__scopeId","data-v-77ef3f73"]]),eTe={class:"actions-container"},tTe={class:"actions-list"},nTe={class:"actions-list"},oTe=se({__name:"HeaderMain",setup(e){const t=_l();function n(){console.log("Creating file")}function o(){console.log("Uploading Folder")}function r(){console.log("Uploading Folder")}function i(){console.log("Searching ...")}function l(){console.log("Creating new view ...")}function a(){console.log("Preferences ...")}function s(){console.log("About ...")}function c(){t.selectedDocuments&&t.selectedDocuments.forEach(p=>{t.deleteDocument(p)})}function u(){console.log("Share ...")}function d(){console.log("Download ...")}return(p,g)=>{const m=hn,v=Ko;return Tn(),_o("div",eTe,[io("div",tTe,[h(Q8e),h(v,{title:"Upload folder from disk"},{default:Sn(()=>[h(m,{onClick:o,type:"text",class:"action-button",icon:fn(lt(Ame))},null,8,["icon"])]),_:1}),h(v,{title:"Create file"},{default:Sn(()=>[h(m,{onClick:n,type:"text",class:"action-button",icon:fn(lt(hme))},null,8,["icon"])]),_:1}),h(v,{title:"Create folder"},{default:Sn(()=>[h(m,{onClick:r,type:"text",class:"action-button",icon:fn(lt(Nme))},null,8,["icon"])]),_:1}),lt(t).selectedDocuments&<(t).selectedDocuments.length>0?(Tn(),_o(ot,{key:0},[h(v,{title:"Share"},{default:Sn(()=>[h(m,{type:"text",onClick:u,class:"action-button",icon:fn(lt(cD))},null,8,["icon"])]),_:1}),h(v,{title:"Download Zip"},{default:Sn(()=>[h(m,{type:"text",onClick:d,class:"action-button",icon:fn(lt(lD))},null,8,["icon"])]),_:1}),h(v,{title:"Delete"},{default:Sn(()=>[h(m,{type:"text",onClick:c,class:"action-button",icon:fn(lt(Fm))},null,8,["icon"])]),_:1})],64)):rd("",!0)]),io("div",nTe,[h(v,{title:"Search"},{default:Sn(()=>[h(m,{onClick:i,type:"text",class:"action-button",icon:fn(lt(yf))},null,8,["icon"])]),_:1}),h(v,{title:"Create new view"},{default:Sn(()=>[h(m,{onClick:l,type:"text",class:"action-button",icon:fn(lt(uD))},null,8,["icon"])]),_:1}),h(v,{title:"Preferences"},{default:Sn(()=>[h(m,{onClick:a,type:"text",class:"action-button",icon:fn(lt(V0e))},null,8,["icon"])]),_:1}),h(v,{title:"About"},{default:Sn(()=>[h(m,{onClick:s,type:"text",class:"action-button",icon:fn(lt(NC))},null,8,["icon"])]),_:1})])])}}}),rTe=se({__name:"AppNavigation",props:{path:{}},setup(e){const t=e;function n(o){return"/"+t.path.slice(0,o+1).join("/")}return(o,r)=>{const i=Vc,l=ca;return Tn(),_o("nav",null,[h(l,null,{default:Sn(()=>[h(i,null,{default:Sn(()=>[h(lt(zS),{to:"/"},{default:Sn(()=>[h(lt(n0e))]),_:1})]),_:1}),(Tn(!0),_o(ot,null,M5(o.path,(a,s)=>(Tn(),ha(i,{key:s},{default:Sn(()=>[h(lt(zS),{to:n(s)},{default:Sn(()=>[io("span",{class:Cv(s===o.path.length-1&&"last")},JS(decodeURIComponent(a)),3)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})])}}}),iTe=hu(rTe,[["__scopeId","data-v-069e7159"]]);var gv={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors diff --git a/cista/wwwroot/assets/index-adcd8284.css b/cista/wwwroot/assets/index-fe1bb208.css similarity index 99% rename from cista/wwwroot/assets/index-adcd8284.css rename to cista/wwwroot/assets/index-fe1bb208.css index ad58e91..1e91582 100644 --- a/cista/wwwroot/assets/index-adcd8284.css +++ b/cista/wwwroot/assets/index-fe1bb208.css @@ -1 +1 @@ -html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{--primary-background: #181818;--secondary-background: #ffffff;--font-color: #333333;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }@media (prefers-color-scheme: dark){:root{--primary-background: #181818;--secondary-background: #333333;--font-color: #ffffff;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }}body{background-color:var(--table-background)}.ant-breadcrumb-separator,.ant-breadcrumb-link,.ant-breadcrumb .anticon{color:var(--primary-color)!important;font-size:1.2em!important}#app{height:100%;display:flex;flex-direction:column;background-color:var(--secondary-background)}.ant-image-preview-mask{background-color:#0009!important;-webkit-backdrop-filter:blur(15px)!important;backdrop-filter:blur(15px)!important}.ant-table-cell:hover{background-color:initial!important}.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected>td,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected:hover>td{background-color:transparent}.ant-form-item .ant-form-item-label>label{color:var(--font-color)}@media (prefers-color-scheme: dark){.ant-table-wrapper .ant-table-thead>tr>th{background-color:var(--table-background)}.ant-table-wrapper .ant-table-thead th.ant-table-column-has-sorters:hover{background-color:var(--table-background)}.ant-table-content{background-color:var(--secondary-background)}.ant-table-cell-row-hover,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row:hover>td{background-color:var(--primary-background)!important}.ant-table-column-title,.ant-table-column-sorter,.ant-table-column-sort,.ant-table-cell,a{color:var(--primary-color)!important}.ant-table-cell>button>.anticon{color:var(--primary-color)}.ant-notification-close-x{color:var(--secondary-background)}.ant-empty-description{color:var(--primary-color)}}.progress-container[data-v-2656947e]{display:flex;align-items:center}.close-button[data-v-2656947e]:hover{color:#b81414}.upload-input[data-v-83916548]{display:none}.actions-container,.actions-list{display:flex;flex-wrap:nowrap;gap:15px}.actions-container{justify-content:space-between}.action-button{padding:0;font-size:1.5em;color:var(--secondary-color)}.action-button:hover{color:var(--blue-color)!important}@media only screen and (max-width: 600px){.actions-container,.actions-list{gap:6px}}nav[data-v-069e7159],span[data-v-069e7159]{color:var(--primary-color)}span[data-v-069e7159]:hover,.last[data-v-069e7159]{color:var(--blue-color)}[data-v-386423b9] .slick-arrow.custom-slick-arrow{width:60px;height:60px;font-size:60px;color:var(--primary-color);transition:ease-in all .3s;opacity:.3;z-index:1}[data-v-386423b9] .slick-arrow.custom-slick-arrow:before{display:none}[data-v-386423b9] .slick-arrow.custom-slick-arrow:hover{color:var(--primary-color);opacity:1}.slider[data-v-386423b9]{height:80vh;background-color:inherit}.centered[data-v-386423b9]{display:flex;justify-content:center;align-content:center}.centered-vertically[data-v-386423b9]{display:flex;align-items:center}.right[data-v-386423b9]{flex-direction:row-reverse}.action-button[data-v-386423b9]{padding:0;font-size:1.5em;opacity:.5;color:var(--secondary-color)}.action-button[data-v-386423b9][data-v-386423b9]:hover{color:var(--blue-color)}.ant-page-header[data-v-386423b9]{padding:0}.carousel[data-v-386423b9]{margin:0;height:inherit;background-color:var(--table-background)}main[data-v-094bcc7c]{padding:5px;height:100%}.more-action[data-v-094bcc7c]{display:flex;flex-direction:column;justify-content:start}.action-container[data-v-094bcc7c]{display:flex;align-items:center}.name[data-v-094bcc7c]{max-width:70%}.edit-action[data-v-094bcc7c]{min-width:5%}.carousel-container[data-v-094bcc7c]{height:inherit}.editable-cell-text-wrapper .editable-cell-icon[data-v-094bcc7c]{visibility:hidden}.editable-cell-text-wrapper:hover .editable-cell-icon[data-v-094bcc7c]{visibility:visible}.login-container[data-v-795453f2]{display:flex;justify-content:center;align-items:center;height:100vh}.button-login[data-v-795453f2]{background-color:var(--secondary-color);color:var(--secondary-background)}.ant-btn-primary[data-v-795453f2]:not(:disabled):hover{background-color:var(--blue-color)}.wrapper[data-v-48270352]{background-color:var(--primary-background);padding:.2em .5em;display:flex;flex-direction:column;gap:10px}.page-container[data-v-48270352]{flex-grow:2;padding:0} +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{--primary-background: #181818;--secondary-background: #ffffff;--font-color: #333333;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }@media (prefers-color-scheme: dark){:root{--primary-background: #181818;--secondary-background: #333333;--font-color: #ffffff;--table-background: #535353;--primary-color: #ffffff;--secondary-color: #ccc;--blue-color: #66ffeb }}body{background-color:var(--table-background)}.ant-breadcrumb-separator,.ant-breadcrumb-link,.ant-breadcrumb .anticon{color:var(--primary-color)!important;font-size:1.2em!important}#app{height:100%;display:flex;flex-direction:column;background-color:var(--secondary-background)}.ant-image-preview-mask{background-color:#0009!important;-webkit-backdrop-filter:blur(15px)!important;backdrop-filter:blur(15px)!important}.ant-table-cell:hover{background-color:initial!important}.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected>td,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row-selected:hover>td{background-color:transparent}.ant-form-item .ant-form-item-label>label{color:var(--font-color)}@media (prefers-color-scheme: dark){.ant-table-wrapper .ant-table-thead>tr>th{background-color:var(--table-background)}.ant-table-wrapper .ant-table-thead th.ant-table-column-has-sorters:hover{background-color:var(--table-background)}.ant-table-content{background-color:var(--secondary-background)}.ant-table-cell-row-hover,.ant-table-wrapper .ant-table-tbody>tr.ant-table-row:hover>td{background-color:var(--primary-background)!important}.ant-table-column-title,.ant-table-column-sorter,.ant-table-column-sort,.ant-table-cell,a{color:var(--primary-color)!important}.ant-table-cell>button>.anticon{color:var(--primary-color)}.ant-notification-close-x{color:var(--secondary-background)}.ant-empty-description{color:var(--primary-color)}}.progress-container[data-v-2656947e]{display:flex;align-items:center}.close-button[data-v-2656947e]:hover{color:#b81414}.upload-input[data-v-77ef3f73]{display:none}.actions-container,.actions-list{display:flex;flex-wrap:nowrap;gap:15px}.actions-container{justify-content:space-between}.action-button{padding:0;font-size:1.5em;color:var(--secondary-color)}.action-button:hover{color:var(--blue-color)!important}@media only screen and (max-width: 600px){.actions-container,.actions-list{gap:6px}}nav[data-v-069e7159],span[data-v-069e7159]{color:var(--primary-color)}span[data-v-069e7159]:hover,.last[data-v-069e7159]{color:var(--blue-color)}[data-v-386423b9] .slick-arrow.custom-slick-arrow{width:60px;height:60px;font-size:60px;color:var(--primary-color);transition:ease-in all .3s;opacity:.3;z-index:1}[data-v-386423b9] .slick-arrow.custom-slick-arrow:before{display:none}[data-v-386423b9] .slick-arrow.custom-slick-arrow:hover{color:var(--primary-color);opacity:1}.slider[data-v-386423b9]{height:80vh;background-color:inherit}.centered[data-v-386423b9]{display:flex;justify-content:center;align-content:center}.centered-vertically[data-v-386423b9]{display:flex;align-items:center}.right[data-v-386423b9]{flex-direction:row-reverse}.action-button[data-v-386423b9]{padding:0;font-size:1.5em;opacity:.5;color:var(--secondary-color)}.action-button[data-v-386423b9][data-v-386423b9]:hover{color:var(--blue-color)}.ant-page-header[data-v-386423b9]{padding:0}.carousel[data-v-386423b9]{margin:0;height:inherit;background-color:var(--table-background)}main[data-v-094bcc7c]{padding:5px;height:100%}.more-action[data-v-094bcc7c]{display:flex;flex-direction:column;justify-content:start}.action-container[data-v-094bcc7c]{display:flex;align-items:center}.name[data-v-094bcc7c]{max-width:70%}.edit-action[data-v-094bcc7c]{min-width:5%}.carousel-container[data-v-094bcc7c]{height:inherit}.editable-cell-text-wrapper .editable-cell-icon[data-v-094bcc7c]{visibility:hidden}.editable-cell-text-wrapper:hover .editable-cell-icon[data-v-094bcc7c]{visibility:visible}.login-container[data-v-795453f2]{display:flex;justify-content:center;align-items:center;height:100vh}.button-login[data-v-795453f2]{background-color:var(--secondary-color);color:var(--secondary-background)}.ant-btn-primary[data-v-795453f2]:not(:disabled):hover{background-color:var(--blue-color)}.wrapper[data-v-48270352]{background-color:var(--primary-background);padding:.2em .5em;display:flex;flex-direction:column;gap:10px}.page-container[data-v-48270352]{flex-grow:2;padding:0} diff --git a/cista/wwwroot/index.html b/cista/wwwroot/index.html index f0eabcc..1e11433 100644 --- a/cista/wwwroot/index.html +++ b/cista/wwwroot/index.html @@ -5,8 +5,8 @@ Vite Vasanko - - + +