/*! For license information please see files-main.js.LICENSE.txt */ !function(){var e,n,r,a={35018:function(e,t,n){"use strict";var r=n(25108);const a=n(79742),o=n(80645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const i=2147483647;function l(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return m(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=l(n);const a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const a=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?l(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function m(e){return d(e),l(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=l(t);for(let r=0;r=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(a)return r?-1:Z(e).length;t=(""+t).toLowerCase(),a=!0}}function v(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function w(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){let o,s=1,i=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,i/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){let r=-1;for(o=n;oi&&(n=i-l),o=n;o>=0;o--){let n=!0;for(let r=0;ra&&(r=a):r=a;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s>8,a=n%256,o.push(a),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);const r=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+s<=n){let n,r,i,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[a+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[a+1],r=e[a+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[a+1],r=e[a+2],i=e[a+3],128==(192&n)&&128==(192&r)&&128==(192&i)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&i,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=s}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,a)}a+=t.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,a){if(J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(a>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const i=Math.min(o,s),l=this.slice(r,a),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function L(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;ar)&&(n=r);let a="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,a,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function B(e,t,n,r,a){G(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function U(e,t,n,r,a){G(t,r,a,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function I(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],a=1,o=0;for(;++o>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(a)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||O(e,t,this.length);let r=this[e],a=1,o=0;for(;++o=a&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let r=t,a=1,o=this[e+--r];for(;r>0&&(a*=256);)o+=this[e+--r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||O(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);let a=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||j(this,e,t,n,Math.pow(2,8*n)-1,0);let a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}let a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}let a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function G(e,t,n,r,a,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,a,o)}function H(e,t){if("number"!=typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),M("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=$(String(n)):"bigint"==typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=$(a)),a+="n"),r+=` It must be ${t}. Received ${a}`,r}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function Z(e,t){let n;t=t||1/0;const r=e.length;let a=null;const o=[];for(let s=0;s55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},85333:function(e,n,r){"use strict";var a={};r.r(a),r.d(a,{exclude:function(){return Os},extract:function(){return _s},parse:function(){return Ps},parseUrl:function(){return Es},pick:function(){return Fs},stringify:function(){return Ls},stringifyUrl:function(){return Ns}});var o=r(17499),s=r(43554),i=r(31352),l=r(79753),c=r(77958),u=function(){var e,t=(null===(e=OCA)||void 0===e||null===(e=e.Files)||void 0===e||null===(e=e.App)||void 0===e||null===(e=e.currentFileList)||void 0===e?void 0:e.dirInfo)||{path:"/",name:""};return"".concat(t.path,"/").concat(t.name).replace(/\/\//gi,"/")},d=r(93664),m=r(20144),p=r(62520),f=r(64024),h=r(86514),g=r(59110);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new _(a||[]);return r(s,"_invoke",{value:x(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(P([])));w&&w!==t&&n.call(w,o)&&(h=w);var b=f.prototype=m.prototype=Object.create(h);function A(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==v(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=k(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;S(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function w(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){w(o,r,a,s,i,"next",e)}function i(e){w(o,r,a,s,i,"throw",e)}s(void 0)}))}}var A=function(){var e=b(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.Z.get((0,l.generateOcsUrl)("apps/files/api/v1/templates"));case 2:return t=e.sent,e.abrupt("return",t.data.ocs.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=b(y().mark((function e(t,n,r){var a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.Z.post((0,l.generateOcsUrl)("apps/files/api/v1/templates/create"),{filePath:t,templatePath:n,templateType:r});case 2:return a=e.sent,e.abrupt("return",a.data.ocs.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),x=r(5656),k=256,T={name:"TemplatePreview",inheritAttrs:!1,props:{basename:{type:String,required:!0},checked:{type:Boolean,default:!1},fileid:{type:[String,Number],required:!0},filename:{type:String,required:!0},previewUrl:{type:String,default:null},hasPreview:{type:Boolean,default:!0},mime:{type:String,required:!0},ratio:{type:Number,default:null}},data:function(){return{failedPreview:!1}},computed:{nameWithoutExt:function(){return this.basename.indexOf(".")>-1?this.basename.split(".").slice(0,-1).join("."):this.basename},id:function(){return"template-picker-".concat(this.fileid)},realPreviewUrl:function(){return this.failedPreview&&this.mimeIcon?this.mimeIcon:this.previewUrl?this.previewUrl:(0,c.ts)()?(0,l.generateUrl)("/core/preview?fileId=".concat(this.fileid,"&x=").concat(k,"&y=").concat(k,"&a=1")):(0,l.generateUrl)("/apps/files_sharing/publicpreview/".concat(document.getElementById("sharingToken")&&document.getElementById("sharingToken").value,"?fileId=").concat(this.fileid,"&file=").concat((e=this.filename,t=(e.startsWith("/")?e:"/".concat(e)).split("/"),n="",t.forEach((function(e){""!==e&&(n+="/"+encodeURIComponent(e))})),n),"&x=").concat(k,"&y=").concat(k,"&a=1"));var e,t,n},mimeIcon:function(){return OC.MimeType.getIconUrl(this.mime)}},methods:{onCheck:function(){this.$emit("check",this.fileid)},onFailure:function(){this.failedPreview=!0}}},S=r(93379),_=r.n(S),P=r(7795),L=r.n(P),E=r(90569),N=r.n(E),F=r(3565),O=r.n(F),j=r(19216),B=r.n(j),U=r(44589),I=r.n(U),D=r(30192),R={};R.styleTagTransform=I(),R.setAttributes=O(),R.insert=N().bind(null,"head"),R.domAPI=L(),R.insertStyleElement=B(),_()(D.Z,R),D.Z&&D.Z.locals&&D.Z.locals;var z=r(51900),M=(0,z.Z)(T,(function(){var e=this,t=e._self._c;return t("li",{staticClass:"template-picker__item"},[t("input",{staticClass:"radio",attrs:{id:e.id,type:"radio",name:"template-picker"},domProps:{checked:e.checked},on:{change:e.onCheck}}),e._v(" "),t("label",{staticClass:"template-picker__label",attrs:{for:e.id}},[t("div",{staticClass:"template-picker__preview",class:e.failedPreview?"template-picker__preview--failed":""},[t("img",{staticClass:"template-picker__image",attrs:{src:e.realPreviewUrl,alt:"",draggable:"false"},on:{error:e.onFailure}})]),e._v(" "),t("span",{staticClass:"template-picker__title"},[e._v("\n\t\t\t"+e._s(e.nameWithoutExt)+"\n\t\t")])])])}),[],!1,null,"0859a92c",null).exports,$=r(25108);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function H(){H=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==G(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function q(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){q(o,r,a,s,i,"next",e)}function i(e){q(o,r,a,s,i,"throw",e)}s(void 0)}))}}var Z={name:"TemplatePicker",components:{NcEmptyContent:h.Z,NcModal:g.Z,TemplatePreview:M},props:{logger:{type:Object,required:!0}},data:function(){return{checked:-1,loading:!1,name:null,opened:!1,provider:null}},computed:{nameWithoutExt:function(){return this.name.indexOf(".")>-1?this.name.split(".").slice(0,-1).join("."):this.name},emptyTemplate:function(){var e,n;return{basename:t("files","Blank"),fileid:-1,filename:this.t("files","Blank"),hasPreview:!1,mime:(null===(e=this.provider)||void 0===e?void 0:e.mimetypes[0])||(null===(n=this.provider)||void 0===n?void 0:n.mimetypes)}},selectedTemplate:function(){var e=this;return this.provider.templates.find((function(t){return t.fileid===e.checked}))},style:function(){var e=(this.provider.ratio?this.provider.ratio:1.77)>1?240:160;return{"--margin":"8px","--width":e+"px","--border":"2px","--fullwidth":e+16+4+"px","--height":this.provider.ratio?Math.round(e/this.provider.ratio)+"px":null}}},methods:{open:function(e,t){var n=this;return V(H().mark((function r(){var a,o;return H().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n.checked=n.emptyTemplate.fileid,n.name=e,n.provider=t,r.next=5,A();case 5:if(a=r.sent,null!==(o=a.find((function(e){return e.app===t.app&&e.label===t.label})))){r.next=9;break}throw new Error("Failed to match provider in results");case 9:if(n.provider=o,0!==o.templates.length){r.next=13;break}return n.onSubmit(),r.abrupt("return");case 13:n.opened=!0;case 14:case"end":return r.stop()}}),r)})))()},close:function(){this.checked=this.emptyTemplate.fileid,this.loading=!1,this.name=null,this.opened=!1,this.provider=null},onCheck:function(e){this.checked=e},onSubmit:function(){var e=this;return V(H().mark((function t(){var n,r,a,o,s,i,l,c,d,m,h;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,r=u(),a=null===(n=OCA)||void 0===n||null===(n=n.Files)||void 0===n||null===(n=n.App)||void 0===n?void 0:n.currentFileList,e.nameWithoutExt===e.name&&(e.logger.debug("Fixed invalid filename",{name:e.name,extension:null===(o=e.provider)||void 0===o?void 0:o.extension}),e.name=e.name+(null===(s=e.provider)||void 0===s?void 0:s.extension)),t.prev=4,t.next=7,C((0,p.normalize)("".concat(r,"/").concat(e.name)),null===(i=e.selectedTemplate)||void 0===i?void 0:i.filename,null===(l=e.selectedTemplate)||void 0===l?void 0:l.templateType);case 7:return c=t.sent,e.logger.debug("Created new file",c),t.next=11,null==a?void 0:a.addAndFetchFileInfo(e.name).then((function(e,t){return t}));case 11:d=t.sent,m=new OCA.Files.FileInfoModel(d,{filesClient:null==a?void 0:a.filesClient}),(h=OCA.Files.fileActions.getDefaultFileAction(c.mime,"file",OC.PERMISSION_ALL))&&h.action(c.basename,{$file:null==a?void 0:a.findFileEl(e.name),dir:r,fileList:a,fileActions:null==a?void 0:a.fileActions,fileInfoModel:m}),e.close(),t.next=23;break;case 18:t.prev=18,t.t0=t.catch(4),e.logger.error("Error while creating the new file from template"),$.error(t.t0),(0,f.x2)(e.t("files","Unable to create new file from template"));case 23:return t.prev=23,e.loading=!1,t.finish(23);case 26:case"end":return t.stop()}}),t,null,[[4,18,23,26]])})))()}}},W=Z,K=r(54654),J={};J.styleTagTransform=I(),J.setAttributes=O(),J.insert=N().bind(null,"head"),J.domAPI=L(),J.insertStyleElement=B(),_()(K.Z,J),K.Z&&K.Z.locals&&K.Z.locals;var Y=(0,z.Z)(W,(function(){var e=this,t=e._self._c;return e.opened?t("NcModal",{staticClass:"templates-picker",attrs:{"clear-view-delay":-1,size:"large"},on:{close:e.close}},[t("form",{staticClass:"templates-picker__form",style:e.style,on:{submit:function(t){return t.preventDefault(),t.stopPropagation(),e.onSubmit.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.t("files","Pick a template for {name}",{name:e.nameWithoutExt})))]),e._v(" "),t("ul",{staticClass:"templates-picker__list"},[t("TemplatePreview",e._b({attrs:{checked:e.checked===e.emptyTemplate.fileid},on:{check:e.onCheck}},"TemplatePreview",e.emptyTemplate,!1)),e._v(" "),e._l(e.provider.templates,(function(n){return t("TemplatePreview",e._b({key:n.fileid,attrs:{checked:e.checked===n.fileid,ratio:e.provider.ratio},on:{check:e.onCheck}},"TemplatePreview",n,!1))}))],2),e._v(" "),t("div",{staticClass:"templates-picker__buttons"},[t("input",{staticClass:"primary",attrs:{type:"submit","aria-label":e.t("files","Create a new file with the selected template")},domProps:{value:e.t("files","Create")}})])]),e._v(" "),e.loading?t("NcEmptyContent",{staticClass:"templates-picker__loading",attrs:{icon:"icon-loading"}},[e._v("\n\t\t"+e._s(e.t("files","Creating file"))+"\n\t")]):e._e()],1):e._e()}),[],!1,null,"d46f1dc6",null),X=Y.exports;function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function ee(){ee=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Q(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function te(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var ne=(0,o.IY)().setApp("files").detectUser().build();m.default.mixin({methods:{t:i.Iu,n:i.uN}});var re=document.createElement("div");re.id="template-picker",document.body.appendChild(re);var ae=(0,s.j)("files","templates",[]),oe=(0,s.j)("files","templates_path",!1);ne.debug("Templates providers",ae),ne.debug("Templates folder",{templatesPath:oe});var se=new(m.default.extend(X))({name:"TemplatePicker",propsData:{logger:ne}});se.$mount("#template-picker"),window.addEventListener("DOMContentLoaded",(function(){if(!oe){ne.debug("Templates folder not initialized");var e={attach:function(e){e.addMenuEntry({id:"template-init",displayName:(0,i.Iu)("files","Set up templates folder"),templateName:(0,i.Iu)("files","Templates"),iconClass:"icon-template-add",fileType:"file",actionLabel:(0,i.Iu)("files","Create new templates folder"),actionHandler:function(t){le(t),e.removeMenuEntry("template-init")}})}};OC.Plugins.register("OCA.Files.NewFileMenu",e)}})),ae.forEach((function(e,t){var n={attach:function(n){var r=n.fileList;"files"!==r.id&&"files.public"!==r.id||n.addMenuEntry({id:"template-new-".concat(e.app,"-").concat(t),displayName:e.label,templateName:e.label+e.extension,iconClass:e.iconClass||"icon-file",fileType:"file",actionLabel:e.actionLabel,actionHandler:function(t){se.open(t,e)}})}};OC.Plugins.register("OCA.Files.NewFileMenu",n)}));var ie,le=function(){var e,t=(e=ee().mark((function e(t){var n,r;return ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(u()+"/".concat(t)).replace("//","/"),e.prev=1,ne.debug("Initializing the templates directory",{templatePath:n}),e.next=5,d.Z.post((0,l.generateOcsUrl)("apps/files/api/v1/templates/path"),{templatePath:n,copySystemTemplates:!0});case 5:r=e.sent,OCA.Files.App.currentFileList.changeDirectory(n,!0,!0),ae=r.data.ocs.data.templates,oe=r.data.ocs.data.template_path,e.next=15;break;case 11:e.prev=11,e.t0=e.catch(1),ne.error("Unable to initialize the templates directory"),(0,f.x2)((0,i.Iu)("files","Unable to initialize the templates directory"));case 15:case"end":return e.stop()}}),e,null,[[1,11]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){te(o,r,a,s,i,"next",e)}function i(e){te(o,r,a,s,i,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}(),ce=r(69183);ie={attach:function(e){var t=this;(0,ce.Ld)("nextcloud:unified-search.search",(function(t){var n=t.query;e.setFilter(n)})),(0,ce.Ld)("nextcloud:unified-search.reset",(function(){t.query=null,e.setFilter("")}))}},window.OC.Plugins.register("OCA.Files.FileList",ie);var ue=!0;function de(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==r.g?r.g:{}}m.default.util.warn;const me="function"==typeof Proxy,pe="devtools-plugin:setup";let fe,he;class ge{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const a=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(a),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(e){}o=e},now(){return void 0!==fe||("undefined"!=typeof window&&window.performance?(fe=!0,he=window.performance):void 0!==r.g&&(null===(e=r.g.perf_hooks)||void 0===e?void 0:e.performance)?(fe=!0,he=r.g.perf_hooks.performance):fe=!1),fe?he.now():Date.now();var e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function ve(e,t){const n=e,r=de(),a=de().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=me&&n.enableEarlyProxy;if(!a||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const e=o?new ge(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else a.emit(pe,e,t)}var ye=r(25108);let we;const be=e=>we=e,Ae=Symbol();function Ce(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var xe;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(xe||(xe={}));const ke="undefined"!=typeof window,Te="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&ke,Se=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function _e(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Fe(r.response,t,n)},r.onerror=function(){ye.error("could not download file")},r.send()}function Pe(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function Le(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Ee="object"==typeof navigator?navigator:{userAgent:""},Ne=(()=>/Macintosh/.test(Ee.userAgent)&&/AppleWebKit/.test(Ee.userAgent)&&!/Safari/.test(Ee.userAgent))(),Fe=ke?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!Ne?function(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"==typeof e?(r.href=e,r.origin!==location.origin?Pe(r.href)?_e(e,t,n):(r.target="_blank",Le(r)):Le(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){Le(r)}),0))}:"msSaveOrOpenBlob"in Ee?function(e,t="download",n){if("string"==typeof e)if(Pe(e))_e(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){Le(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return _e(e,t,n);const a="application/octet-stream"===e.type,o=/constructor/i.test(String(Se.HTMLElement))||"safari"in Se,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o||Ne)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw r=null,new Error("Wrong reader.result type");e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{};function Oe(e,t){const n="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,t):"error"===t?ye.error(n):"warn"===t?ye.warn(n):ye.log(n)}function je(e){return"_a"in e&&"install"in e}function Be(){if(!("clipboard"in navigator))return Oe("Your browser doesn't support the Clipboard API","error"),!0}function Ue(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(Oe('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let Ie;function De(e,t){for(const n in t){const r=e.state.value[n];r&&Object.assign(r,t[n])}}function Re(e){return{_custom:{display:e}}}const ze="🍍 Pinia (root)",Me="_root";function $e(e){return je(e)?{id:Me,label:ze}:{id:e.$id,label:e.$id}}function Ge(e){return e?Array.isArray(e)?e.reduce(((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Re(e.type),key:Re(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function He(e){switch(e){case xe.direct:return"mutation";case xe.patchFunction:case xe.patchObject:return"$patch";default:return"unknown"}}let qe=!0;const Ve=[],Ze="pinia:mutations",We="pinia",{assign:Ke}=Object,Je=e=>"🍍 "+e;function Ye(e,t){ve({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ve,app:e},(n=>{"function"!=typeof n.now&&Oe("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Ze,label:"Pinia 🍍",color:15064968}),n.addInspector({id:We,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(e){if(!Be())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),Oe("Global state copied to clipboard.")}catch(e){if(Ue(e))return;Oe("Failed to serialize the state. Check the console for more details.","error"),ye.error(e)}}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(e){if(!Be())try{De(e,JSON.parse(await navigator.clipboard.readText())),Oe("Global state pasted from clipboard.")}catch(e){if(Ue(e))return;Oe("Failed to deserialize the state from clipboard. Check the console for more details.","error"),ye.error(e)}}(t),n.sendInspectorTree(We),n.sendInspectorState(We)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(e){try{Fe(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){Oe("Failed to export the state as JSON. Check the console for more details.","error"),ye.error(e)}}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(e){try{const t=(Ie||(Ie=document.createElement("input"),Ie.type="file",Ie.accept=".json"),function(){return new Promise(((e,t)=>{Ie.onchange=async()=>{const t=Ie.files;if(!t)return e(null);const n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},Ie.oncancel=()=>e(null),Ie.onerror=t,Ie.click()}))}),n=await t();if(!n)return;const{text:r,file:a}=n;De(e,JSON.parse(r)),Oe(`Global state imported from "${a.name}".`)}catch(e){Oe("Failed to import the state from JSON. Check the console for more details.","error"),ye.error(e)}}(t),n.sendInspectorTree(We),n.sendInspectorState(We)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:e=>{const n=t._s.get(e);n?"function"!=typeof n.$reset?Oe(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),Oe(`Store "${e}" reset.`)):Oe(`Cannot reset "${e}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((e,t)=>{const n=e.componentInstance&&e.componentInstance.proxy;if(n&&n._pStores){const t=e.componentInstance.proxy._pStores;Object.values(t).forEach((t=>{e.instanceData.state.push({type:Je(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:(0,m.toRaw)(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce(((e,n)=>(e[n]=t.$state[n],e)),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:Je(t.$id),key:"getters",editable:!1,value:t._getters.reduce(((e,n)=>{try{e[n]=t[n]}catch(t){e[n]=t}return e}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===e&&n.inspectorId===We){let e=[t];e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter((e=>"$id"in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):ze.toLowerCase().includes(n.filter.toLowerCase()))):e).map($e)}})),n.on.getInspectorState((n=>{if(n.app===e&&n.inspectorId===We){const e=n.nodeId===Me?t:t._s.get(n.nodeId);if(!e)return;e&&(n.state=function(e){if(je(e)){const t=Array.from(e._s.keys()),n=e._s,r={state:t.map((t=>({editable:!0,key:t,value:e.state.value[t]}))),getters:t.filter((e=>n.get(e)._getters)).map((e=>{const t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce(((e,n)=>(e[n]=t[n],e)),{})}}))};return r}const t={state:Object.keys(e.$state).map((t=>({editable:!0,key:t,value:e.$state[t]})))};return e._getters&&e._getters.length&&(t.getters=e._getters.map((t=>({editable:!1,key:t,value:e[t]})))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map((t=>({editable:!0,key:t,value:e[t]})))),t}(e))}})),n.on.editInspectorState(((n,r)=>{if(n.app===e&&n.inspectorId===We){const e=n.nodeId===Me?t:t._s.get(n.nodeId);if(!e)return Oe(`store "${n.nodeId}" not found`,"error");const{path:r}=n;je(e)?r.unshift("state"):1===r.length&&e._customProperties.has(r[0])&&!(r[0]in e.$state)||r.unshift("$state"),qe=!1,n.set(e,r,n.state.value),qe=!0}})),n.on.editComponentState((e=>{if(e.type.startsWith("🍍")){const n=e.type.replace(/^🍍\s*/,""),r=t._s.get(n);if(!r)return Oe(`store "${n}" not found`,"error");const{path:a}=e;if("state"!==a[0])return Oe(`Invalid path for store "${n}":\n${a}\nOnly state can be modified.`);a[0]="$state",qe=!1,e.set(r,a,e.state.value),qe=!0}}))}))}let Xe,Qe=0;function et(e,t,n){const r=t.reduce(((t,n)=>(t[n]=(0,m.toRaw)(e)[n],t)),{});for(const t in r)e[t]=function(){const a=Qe,o=n?new Proxy(e,{get(...e){return Xe=a,Reflect.get(...e)},set(...e){return Xe=a,Reflect.set(...e)}}):e;Xe=a;const s=r[t].apply(o,arguments);return Xe=void 0,s}}function tt({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,et(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;(0,m.toRaw)(t)._hotUpdate=function(e){r.apply(this,arguments),et(t,Object.keys(e._hmrPayload.actions),!!t._isOptionsAPI)},function(e,t){Ve.includes(Je(t.$id))||Ve.push(Je(t.$id)),ve({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Ve,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(e=>{const n="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction((({after:r,onError:a,name:o,args:s})=>{const i=Qe++;e.addTimelineEvent({layerId:Ze,event:{time:n(),title:"🛫 "+o,subtitle:"start",data:{store:Re(t.$id),action:Re(o),args:s},groupId:i}}),r((r=>{Xe=void 0,e.addTimelineEvent({layerId:Ze,event:{time:n(),title:"🛬 "+o,subtitle:"end",data:{store:Re(t.$id),action:Re(o),args:s,result:r},groupId:i}})})),a((r=>{Xe=void 0,e.addTimelineEvent({layerId:Ze,event:{time:n(),logType:"error",title:"💥 "+o,subtitle:"end",data:{store:Re(t.$id),action:Re(o),args:s,error:r},groupId:i}})}))}),!0),t._customProperties.forEach((r=>{(0,m.watch)((()=>(0,m.unref)(t[r])),((t,a)=>{e.notifyComponentUpdate(),e.sendInspectorState(We),qe&&e.addTimelineEvent({layerId:Ze,event:{time:n(),title:"Change",subtitle:r,data:{newValue:t,oldValue:a},groupId:Xe}})}),{deep:!0})})),t.$subscribe((({events:r,type:a},o)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(We),!qe)return;const s={time:n(),title:He(a),data:Ke({store:Re(t.$id)},Ge(r)),groupId:Xe};a===xe.patchFunction?s.subtitle="⤵️":a===xe.patchObject?s.subtitle="🧩":r&&!Array.isArray(r)&&(s.subtitle=r.type),r&&(s.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),e.addTimelineEvent({layerId:Ze,event:s})}),{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=(0,m.markRaw)((a=>{r(a),e.addTimelineEvent({layerId:Ze,event:{time:n(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Re(t.$id),info:Re("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree(We),e.sendInspectorState(We)}));const{$dispose:a}=t;t.$dispose=()=>{a(),e.notifyComponentUpdate(),e.sendInspectorTree(We),e.sendInspectorState(We),e.getSettings().logStoreChanges&&Oe(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(We),e.sendInspectorState(We),e.getSettings().logStoreChanges&&Oe(`"${t.$id}" store installed 🆕`)}))}(e,t)}const nt=()=>{};function rt(e,t,n,r=nt){e.push(t);const a=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&(0,m.getCurrentScope)()&&(0,m.onScopeDispose)(a),a}function at(e,...t){e.slice().forEach((e=>{e(...t)}))}const ot=e=>e();function st(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],a=e[n];Ce(a)&&Ce(r)&&e.hasOwnProperty(n)&&!(0,m.isRef)(r)&&!(0,m.isReactive)(r)?e[n]=st(a,r):e[n]=r}return e}const it=Symbol(),lt=new WeakMap,{assign:ct}=Object;function ut(e,t,n={},r,a,o){let s;const i=ct({actions:{}},n),l={deep:!0};let c,u,d,p=[],f=[];const h=r.state.value[e];o||h||(ue?(0,m.set)(r.state.value,e,{}):r.state.value[e]={});const g=(0,m.ref)({});let v;function y(t){let n;c=u=!1,"function"==typeof t?(t(r.state.value[e]),n={type:xe.patchFunction,storeId:e,events:d}):(st(r.state.value[e],t),n={type:xe.patchObject,payload:t,storeId:e,events:d});const a=v=Symbol();(0,m.nextTick)().then((()=>{v===a&&(c=!0)})),u=!0,at(p,n,r.state.value[e])}const w=o?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ct(e,t)}))}:nt;function b(t,n){return function(){be(r);const a=Array.from(arguments),o=[],s=[];let i;at(f,{args:a,name:t,store:x,after:function(e){o.push(e)},onError:function(e){s.push(e)}});try{i=n.apply(this&&this.$id===e?this:x,a)}catch(e){throw at(s,e),e}return i instanceof Promise?i.then((e=>(at(o,e),e))).catch((e=>(at(s,e),Promise.reject(e)))):(at(o,i),i)}}const A=(0,m.markRaw)({actions:{},getters:{},state:[],hotState:g}),C={_p:r,$id:e,$onAction:rt.bind(null,f),$patch:y,$reset:w,$subscribe(t,n={}){const a=rt(p,t,n.detached,(()=>o())),o=s.run((()=>(0,m.watch)((()=>r.state.value[e]),(r=>{("sync"===n.flush?u:c)&&t({storeId:e,type:xe.direct,events:d},r)}),ct({},l,n))));return a},$dispose:function(){s.stop(),p=[],f=[],r._s.delete(e)}};ue&&(C._r=!1);const x=(0,m.reactive)(Te?ct({_hmrPayload:A,_customProperties:(0,m.markRaw)(new Set)},C):C);r._s.set(e,x);const k=r._a&&r._a.runWithContext||ot,T=r._e.run((()=>(s=(0,m.effectScope)(),k((()=>s.run(t))))));for(const t in T){const n=T[t];if((0,m.isRef)(n)&&(_=n,!(0,m.isRef)(_)||!_.effect)||(0,m.isReactive)(n))o||(!h||(S=n,ue?lt.has(S):Ce(S)&&S.hasOwnProperty(it))||((0,m.isRef)(n)?n.value=h[t]:st(n,h[t])),ue?(0,m.set)(r.state.value[e],t,n):r.state.value[e][t]=n);else if("function"==typeof n){const e=b(t,n);ue?(0,m.set)(T,t,e):T[t]=e,i.actions[t]=n}}var S,_;if(ue?Object.keys(T).forEach((e=>{(0,m.set)(x,e,T[e])})):(ct(x,T),ct((0,m.toRaw)(x),T)),Object.defineProperty(x,"$state",{get:()=>r.state.value[e],set:e=>{y((t=>{ct(t,e)}))}}),Te){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(x,t,ct({value:x[t]},e))}))}return ue&&(x._r=!0),r._p.forEach((e=>{if(Te){const t=s.run((()=>e({store:x,app:r._a,pinia:r,options:i})));Object.keys(t||{}).forEach((e=>x._customProperties.add(e))),ct(x,t)}else ct(x,s.run((()=>e({store:x,app:r._a,pinia:r,options:i}))))})),h&&o&&n.hydrate&&n.hydrate(x.$state,h),c=!0,u=!0,x}function dt(e,t,n){let r,a;const o="function"==typeof t;function s(e,n){const s=!!(0,m.getCurrentInstance)();return(e=e||(s?(0,m.inject)(Ae,null):null))&&be(e),(e=we)._s.has(r)||(o?ut(r,t,a,e):function(e,t,n,r){const{state:a,actions:o,getters:s}=t,i=n.state.value[e];let l;l=ut(e,(function(){i||(ue?(0,m.set)(n.state.value,e,a?a():{}):n.state.value[e]=a?a():{});const t=(0,m.toRefs)(n.state.value[e]);return ct(t,o,Object.keys(s||{}).reduce(((t,r)=>(t[r]=(0,m.markRaw)((0,m.computed)((()=>{be(n);const t=n._s.get(e);if(!ue||t._r)return s[r].call(t,t)}))),t)),{}))}),t,n,0,!0)}(r,a,e)),e._s.get(r)}return"string"==typeof e?(r=e,a=o?n:t):(a=e,r=e.id),s.$id=r,s}var mt=r(42515),pt=function(e,t){return et?1:0},ft=function(e,t){var n=e.localeCompare(t);return n?n/Math.abs(n):0},ht=/(^0x[\da-fA-F]+$|^([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?!\.\d+)(?=\D|\s|$))|\d+)/g,gt=/^\s+|\s+$/g,vt=/\s+/g,yt=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/,wt=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[/-]\d{1,4}[/-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,bt=/^0+[1-9]{1}[0-9]*$/,At=/[^\x00-\x80]/,Ct=function(e,t){return et?1:0},xt=function(e){return e.replace(vt," ").replace(gt,"")},kt=function(e){if(0!==e.length){var t=Number(e);if(!Number.isNaN(t))return t}},Tt=function(e,t,n){if(yt.test(e)&&(!bt.test(e)||0===t||"."!==n[t-1]))return kt(e)||0},St=function(e,t,n){return{parsedNumber:Tt(e,t,n),normalizedString:xt(e)}},_t=function(e){var t=function(e){return e.replace(ht,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0")}(e).map(St);return t},Pt=function(e){return"function"==typeof e},Lt=function(e){return Number.isNaN(e)||e instanceof Number&&Number.isNaN(e.valueOf())},Et=function(e){return null===e},Nt=function(e){return!(null===e||"object"!=typeof e||Array.isArray(e)||e instanceof Number||e instanceof String||e instanceof Boolean||e instanceof Date)},Ft=function(e){return"symbol"==typeof e},Ot=function(e){return void 0===e},jt=function(e){if("string"==typeof e||e instanceof String||("number"==typeof e||e instanceof Number)&&!Lt(e)||"boolean"==typeof e||e instanceof Boolean||e instanceof Date){var t=function(e){return"boolean"==typeof e||e instanceof Boolean?Number(e).toString():"number"==typeof e||e instanceof Number?e.toString():e instanceof Date?e.getTime().toString():"string"==typeof e||e instanceof String?e.toLowerCase().replace(gt,""):""}(e),n=function(e){var t=kt(e);return void 0!==t?t:function(e){try{var t=Date.parse(e);return!Number.isNaN(t)&&wt.test(e)?t:void 0}catch(e){return}}(e)}(t);return{parsedNumber:n,chunks:_t(n?""+n:t),value:e}}return{isArray:Array.isArray(e),isFunction:Pt(e),isNaN:Lt(e),isNull:Et(e),isObject:Nt(e),isSymbol:Ft(e),isUndefined:Ot(e),value:e}},Bt=function(e){return"function"==typeof e?e:function(t){if(Array.isArray(t)){var n=Number(e);if(Number.isInteger(n))return t[n]}else if(t&&"object"==typeof t){var r=Object.getOwnPropertyDescriptor(t,e);return null==r?void 0:r.value}return t}};function Ut(e,t,n){if(!e||!Array.isArray(e))return[];var r=function(e){if(!e)return[];var t=Array.isArray(e)?[].concat(e):[e];return t.some((function(e){return"string"!=typeof e&&"number"!=typeof e&&"function"!=typeof e}))?[]:t}(t),a=function(e){if(!e)return[];var t=Array.isArray(e)?[].concat(e):[e];return t.some((function(e){return"asc"!==e&&"desc"!==e&&"function"!=typeof e}))?[]:t}(n);return function(e,t,n){var r=t.length?t.map(Bt):[function(e){return e}],a=e.map((function(e,t){return{index:t,values:r.map((function(t){return t(e)})).map(jt)}}));return a.sort((function(e,t){return function(e,t,n){for(var r=e.index,a=e.values,o=t.index,s=t.values,i=a.length,l=n.length,c=0;ca||r>a?n<=a?-1:1:0}(p.chunks,f.chunks):function(e,t){return(e.chunks?!t.chunks:t.chunks)?e.chunks?-1:1:(e.isNaN?!t.isNaN:t.isNaN)?e.isNaN?-1:1:(e.isSymbol?!t.isSymbol:t.isSymbol)?e.isSymbol?-1:1:(e.isObject?!t.isObject:t.isObject)?e.isObject?-1:1:(e.isArray?!t.isArray:t.isArray)?e.isArray?-1:1:(e.isFunction?!t.isFunction:t.isFunction)?e.isFunction?-1:1:(e.isNull?!t.isNull:t.isNull)?e.isNull?-1:1:0}(p,f));if(m)return m*("desc"===u?-1:1)}}var p,f;return r-o}(e,t,n)})),a.map((function(t){return function(e,t){return e[t]}(e,t.index)}))}(e,r,a)}var It=r(50319),Dt=r(41922),Rt=r(56071),zt=r(57274),Mt=r(63813),$t=r(20435),Gt=r(19695),Ht={name:"ShareVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qt=(0,z.Z)(Ht,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon share-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,Vt=r(48250),Zt=(0,o.IY)().setApp("files").detectUser().build();function Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function Kt(){Kt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Wt(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Jt(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var Yt=new x.p$({id:"details",displayName:function(){return(0,i.Iu)("files","Open details")},iconSvgInline:function(){return Vt},enabled:function(e){var t,n,r;return 1===e.length&&!!e[0]&&!(null===(t=window)||void 0===t||null===(t=t.OCA)||void 0===t||null===(t=t.Files)||void 0===t||!t.Sidebar)&&null!==(n=(null===(r=e[0].root)||void 0===r?void 0:r.startsWith("/files/"))&&e[0].permissions!==x.y3.NONE)&&void 0!==n&&n},exec:function(e,t,n){return(r=Kt().mark((function r(){return Kt().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,window.OCA.Files.Sidebar.open(e.path);case 3:return window.OCP.Files.Router.goToRoute(null,{view:t.id,fileid:e.fileid},{dir:n},!0),r.abrupt("return",null);case 7:return r.prev=7,r.t0=r.catch(0),Zt.error("Error while opening sidebar",{error:r.t0}),r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r,null,[[0,7]])})),function(){var e=this,t=arguments;return new Promise((function(n,a){var o=r.apply(e,t);function s(e){Jt(o,n,a,s,i,"next",e)}function i(e){Jt(o,n,a,s,i,"throw",e)}s(void 0)}))})();var r},order:-50});function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[];m.default.set(this,"selected",function(e){if(Array.isArray(e))return an(e)}(e=new Set(t))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return an(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},setLastIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;m.default.set(this,"lastSelection",e?this.selected:[]),m.default.set(this,"lastSelectedIndex",e)},reset:function(){m.default.set(this,"selected",[]),m.default.set(this,"lastSelection",[]),m.default.set(this,"lastSelectedIndex",null)}}});function ln(e){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ln(e)}function cn(){cn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==ln(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function un(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var dn=(0,s.j)("files","config",{show_hidden:!1,crop_image_previews:!0,sort_favorites_first:!0}),mn=function(){var e=dt("userconfig",{state:function(){return{userConfig:dn}},actions:{onUpdate:function(e,t){m.default.set(this.userConfig,e,t)},update:function(e,t){return(n=cn().mark((function n(){return cn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d.Z.put((0,l.generateUrl)("/apps/files/api/v1/config/"+e),{value:t});case 2:(0,ce.j8)("files:config:updated",{key:e,value:t});case 3:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,a){var o=n.apply(e,t);function s(e){un(o,r,a,s,i,"next",e)}function i(e){un(o,r,a,s,i,"throw",e)}s(void 0)}))})();var n}}}),t=e.apply(void 0,arguments);return t._initialized||((0,ce.Ld)("files:config:updated",(function(e){var n=e.key,r=e.value;t.onUpdate(n,r)})),t._initialized=!0),t};function pn(e){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pn(e)}function fn(){fn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==pn(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function hn(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var gn=(0,s.j)("files","viewConfigs",{}),vn=function(){var e=dt("viewconfig",{state:function(){return{viewConfig:gn}},getters:{getConfig:function(e){return function(t){return e.viewConfig[t]||{}}}},actions:{onUpdate:function(e,t,n){this.viewConfig[e]||m.default.set(this.viewConfig,e,{}),m.default.set(this.viewConfig[e],t,n)},update:function(e,t,n){return(r=fn().mark((function r(){return fn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:d.Z.put((0,l.generateUrl)("/apps/files/api/v1/views/".concat(e,"/").concat(t)),{value:n}),(0,ce.j8)("files:viewconfig:updated",{view:e,key:t,value:n});case 2:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,a){var o=r.apply(e,t);function s(e){hn(o,n,a,s,i,"next",e)}function i(e){hn(o,n,a,s,i,"throw",e)}s(void 0)}))})();var r},setSortingBy:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"basename",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"files";this.update(t,"sorting_mode",e),this.update(t,"sorting_direction","asc")},toggleSortingDirection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"files",t="asc"===(this.getConfig(e)||{sorting_direction:"asc"}).sorting_direction?"desc":"asc";this.update(e,"sorting_direction",t)}}}),t=e.apply(void 0,arguments);return t._initialized||((0,ce.Ld)("files:viewconfig:updated",(function(e){var n=e.view,r=e.key,a=e.value;t.onUpdate(n,r,a)})),t._initialized=!0),t},yn=r(15764),wn=r(36402),bn=r(43133);function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function or(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var sr,ir=m.default.extend(nr),lr=function(){var e,t=(e=ar().mark((function e(t){return ar().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){sr||(sr=(new ir).$mount(),document.body.appendChild(sr.$el)),sr.update(t),sr.$on("loaded",(function(){e(sr.$el),sr.$off("loaded")}))})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){or(o,r,a,s,i,"next",e)}function i(e){or(o,r,a,s,i,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}(),cr=(r(32316),r(51120));const{Axios:ur,AxiosError:dr,CanceledError:mr,isCancel:pr,CancelToken:fr,VERSION:hr,all:gr,Cancel:vr,isAxiosError:yr,spread:wr,toFormData:br,AxiosHeaders:Ar,HttpStatusCode:Cr,formToJSON:xr,mergeConfig:kr}=cr.default;var Tr,Sr,_r=r(96384),Pr={name:"FolderMoveIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Lr=(0,z.Z)(Pr,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon folder-move-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,Er=r(34945),Nr=function(){return Tr||(Tr=new Er.Z({concurrency:3})),Tr};!function(e){e.MOVE="Move",e.COPY="Copy",e.MOVE_OR_COPY="move-or-copy"}(Sr||(Sr={}));var Fr=function(e){return 0!=(e.reduce((function(e,t){return Math.min(e,t.permissions)}),x.y3.ALL)&x.y3.UPDATE)},Or=function(e){return function(e){return e.every((function(e){var t,n;return!JSON.parse(null!==(t=null===(n=e.attributes)||void 0===n?void 0:n["share-attributes"])&&void 0!==t?t:"[]").some((function(e){return"permissions"===e.scope&&!1===e.enabled&&"download"===e.key}))}))}(e)};function jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}function Br(){Br=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==jr(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Ur(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function Ir(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){Ur(o,r,a,s,i,"next",e)}function i(e){Ur(o,r,a,s,i,"throw",e)}s(void 0)}))}}var Dr=function(e){return Fr(e)?Or(e)?Sr.MOVE_OR_COPY:Sr.MOVE:Sr.COPY},Rr=function(){var e=Ir(Br().mark((function e(t,n,r){var a,o,s,u,f,h=arguments;return Br().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=h.length>3&&void 0!==h[3]&&h[3],n){e.next=3;break}return e.abrupt("return");case 3:if(n.type===x.Tv.Folder){e.next=5;break}throw new Error((0,i.Iu)("files","Destination is not a folder"));case 5:if(t.dirname!==n.path){e.next=7;break}throw new Error((0,i.Iu)("files","This file/folder is already in that directory"));case 7:if(!t.path.startsWith(n.path)){e.next=9;break}throw new Error((0,i.Iu)("files","You cannot move a file/folder onto itself or into a subfolder of itself"));case 9:return s=(0,p.join)(n.path,t.basename),u=(0,l.generateRemoteUrl)(encodePath("dav/files/".concat(null===(a=(0,c.ts)())||void 0===a?void 0:a.uid).concat(s))),Zt.debug("".concat(r," ").concat(t.basename," to ").concat(u)),m.default.set(t,"status",x.e4.LOADING),f=Nr(),e.next=16,f.add(Ir(Br().mark((function e(){var n,a,s;return Br().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,d.Z)({method:r===Sr.COPY?"COPY":"MOVE",url:t.encodedSource,headers:{Destination:encodeURI(u),Overwrite:o?void 0:"F"}});case 3:r===Sr.MOVE&&(0,ce.j8)("files:node:deleted",t),e.next=24;break;case 6:if(e.prev=6,e.t0=e.catch(0),!(e.t0 instanceof dr)){e.next=23;break}if(412!==(null===e.t0||void 0===e.t0||null===(n=e.t0.response)||void 0===n?void 0:n.status)){e.next=13;break}throw new Error((0,i.Iu)("files","A file or folder with that name already exists in this folder"));case 13:if(423!==(null===e.t0||void 0===e.t0||null===(a=e.t0.response)||void 0===a?void 0:a.status)){e.next=17;break}throw new Error((0,i.Iu)("files","The files is locked"));case 17:if(404!==(null===e.t0||void 0===e.t0||null===(s=e.t0.response)||void 0===s?void 0:s.status)){e.next=21;break}throw new Error((0,i.Iu)("files","The file does not exist anymore"));case 21:if(!e.t0.message){e.next=23;break}throw new Error(e.t0.message);case 23:throw new Error;case 24:return e.prev=24,m.default.set(t,"status",void 0),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[0,6,24,27]])}))));case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),zr=function(){var e=Ir(Br().mark((function e(t){var n,r,a,o=arguments;return Br().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:"/",r=o.length>2?o[2]:void 0,a=(0,f.fn)((0,i.Iu)("files","Chose destination")).allowDirectories(!0).setFilter((function(e){return 0!=(e.permissions&x.y3.CREATE)&&r.fileid!==e.fileid})).setMimeTypeFilter([]).setMultiSelect(!1).startAt(n),e.abrupt("return",new Promise((function(e,n){a.setButtonFactory((function(a,o){var s=[],l=(0,p.basename)(o);return r.dirname===o||r.path===o||(t!==Sr.COPY&&t!==Sr.MOVE_OR_COPY||s.push({label:l?(0,i.Iu)("files","Copy to {target}",{target:l}):(0,i.Iu)("files","Copy"),type:"primary",icon:Yn,callback:function(t){return Ir(Br().mark((function a(){return Br().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Rr(r,t[0],Sr.COPY);case 3:e(!0),a.next=9;break;case 6:a.prev=6,a.t0=a.catch(0),n(a.t0);case 9:case"end":return a.stop()}}),a,null,[[0,6]])})))()}}),t!==Sr.MOVE&&t!==Sr.MOVE_OR_COPY||s.push({label:l?(0,i.Iu)("files","Move to {target}",{target:l}):(0,i.Iu)("files","Move"),type:t===Sr.MOVE?"primary":"secondary",icon:Lr,callback:function(t){return Ir(Br().mark((function a(){return Br().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Rr(r,t[0],Sr.MOVE);case 3:e(!0),a.next=9;break;case 6:a.prev=6,a.t0=a.catch(0),n(a.t0);case 9:case"end":return a.stop()}}),a,null,[[0,6]])})))()}})),s})),a.build().pick().catch((function(){n(new Error((0,i.Iu)("files","Cancelled move or copy operation")))}))})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Mr=(new x.p$({id:"move-copy",displayName:function(e){switch(Dr(e)){case Sr.MOVE:return(0,i.Iu)("files","Move");case Sr.COPY:return(0,i.Iu)("files","Copy");case Sr.MOVE_OR_COPY:return(0,i.Iu)("files","Move or copy")}},iconSvgInline:function(){return _r},enabled:function(e){return!!e.every((function(e){var t;return null===(t=e.root)||void 0===t?void 0:t.startsWith("/files/")}))&&e.length>0&&(Fr(e)||Or(e))},exec:function(e,t,n){return Ir(Br().mark((function t(){var r;return Br().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Dr([e]),t.prev=1,t.next=4,zr(r,n,e);case 4:return t.abrupt("return",!0);case 7:if(t.prev=7,t.t0=t.catch(1),!(t.t0 instanceof Error&&t.t0.message)){t.next=12;break}return(0,f.x2)(t.t0.message),t.abrupt("return",null);case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,null,[[1,7]])})))()},order:15}),dt("actionsmenu",{state:function(){return{opened:null}}})),$r=dt("dragging",{state:function(){return{dragging:[]}},actions:{set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];m.default.set(this,"dragging",e)},reset:function(){m.default.set(this,"dragging",[])}}});function Gr(e){return Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(e)}function Hr(){Hr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Gr(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function qr(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var Vr={name:"CustomElementRender",props:{source:{type:Object,required:!0},currentView:{type:Object,required:!0},render:{type:Function,required:!0}},watch:{source:function(){this.updateRootElement()},currentView:function(){this.updateRootElement()}},mounted:function(){this.updateRootElement()},methods:{updateRootElement:function(){var e,t=this;return(e=Hr().mark((function e(){var n;return Hr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.render(t.source,t.currentView);case 2:(n=e.sent)?t.$el.replaceChildren(n):t.$el.replaceChildren();case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){qr(o,r,a,s,i,"next",e)}function i(e){qr(o,r,a,s,i,"throw",e)}s(void 0)}))})()}}},Zr=Vr,Wr=(0,z.Z)(Zr,(function(){return(0,this._self._c)("span")}),[],!1,null,null,null).exports;function Kr(e){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(e)}function Jr(){Jr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Kr(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Yr(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var Xr={name:"FavoriteIcon",components:{NcIconSvgWrapper:Mt.Z},data:function(){return{StarSvg:''}},mounted:function(){var e,t=this;return(e=Jr().mark((function e(){return Jr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$nextTick();case 2:t.$el.querySelector("svg").setAttribute("viewBox","-4 -4 30 30");case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){Yr(o,r,a,s,i,"next",e)}function i(e){Yr(o,r,a,s,i,"throw",e)}s(void 0)}))})()}},Qr=Xr,ea=r(92054),ta={};ta.styleTagTransform=I(),ta.setAttributes=O(),ta.insert=N().bind(null,"head"),ta.domAPI=L(),ta.insertStyleElement=B(),_()(ea.Z,ta),ea.Z&&ea.Z.locals&&ea.Z.locals;var na=(0,z.Z)(Qr,(function(){return(0,this._self._c)("NcIconSvgWrapper",{staticClass:"favorite-marker-icon",attrs:{svg:this.StarSvg}})}),[],!1,null,"0f26d460",null).exports;function ra(e){return ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ra(e)}function aa(){aa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==ra(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function oa(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function sa(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){oa(o,r,a,s,i,"next",e)}function i(e){oa(o,r,a,s,i,"throw",e)}s(void 0)}))}}function ia(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ra(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ra(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(e){return function(e){if(Array.isArray(e))return ca(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ca(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)return qn;switch(null===(r=this.source)||void 0===r||null===(r=r.attributes)||void 0===r?void 0:r["mount-type"]){case"external":case"external-session":return Gn;case"group":return On.Z}return null},linkTo:function(){var e;return this.source.attributes.failed?{title:this.t("files","This node is unavailable"),is:"span"}:this.enabledDefaultActions.length>0?{title:this.enabledDefaultActions[0].displayName([this.source],this.currentView),role:"button"}:(null===(e=this.source)||void 0===e?void 0:e.permissions)&x.y3.READ?{download:this.source.basename,href:this.source.source,title:this.t("files","Download file {name}",{name:this.displayName})}:{is:"span"}},draggingFiles:function(){return this.draggingStore.dragging},selectedFiles:function(){return this.selectionStore.selected},isSelected:function(){return this.selectedFiles.includes(this.fileid)},cropPreviews:function(){return this.userConfig.crop_image_previews},previewUrl:function(){if(this.source.type===x.Tv.Folder)return null;if(!0===this.backgroundFailed)return null;try{var e=this.source.attributes.previewUrl||(0,l.generateUrl)("/core/preview?fileid={fileid}",{fileid:this.fileid}),t=new URL(window.location.origin+e);return t.searchParams.set("x","32"),t.searchParams.set("y","32"),t.searchParams.set("mimeFallback","true"),t.searchParams.set("a",!0===this.cropPreviews?"0":"1"),t.href}catch(e){return null}},enabledActions:function(){var e=this;return this.source.attributes.failed?[]:ua.filter((function(t){return!t.enabled||t.enabled([e.source],e.currentView)})).sort((function(e,t){return(e.order||0)-(t.order||0)}))},enabledInlineActions:function(){var e=this;return this.filesListWidth<768?[]:this.enabledActions.filter((function(t){var n;return null==t||null===(n=t.inline)||void 0===n?void 0:n.call(t,e.source,e.currentView)}))},enabledRenderActions:function(){return this.visible?this.enabledActions.filter((function(e){return"function"==typeof e.renderInline})):[]},enabledDefaultActions:function(){return this.enabledActions.filter((function(e){return!(null==e||!e.default)}))},enabledMenuActions:function(){return[].concat(la(this.enabledInlineActions),la(this.enabledActions.filter((function(e){return e.default!==x.DT.HIDDEN&&"function"!=typeof e.renderInline})))).filter((function(e,t,n){return t===n.findIndex((function(t){return t.id===e.id}))}))},openedMenu:{get:function(){return this.actionsMenuStore.opened===this.uniqueId},set:function(e){this.actionsMenuStore.opened=e?this.uniqueId:null}},uniqueId:function(){return this.source.source.split("").reduce((function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e}),0)},isFavorite:function(){return 1===this.source.attributes.favorite},isLoading:function(){return this.source.status===x.e4.LOADING},renameLabel:function(){var e;return(ia(e={},x.Tv.File,t("files","File name")),ia(e,x.Tv.Folder,t("files","Folder name")),e)[this.source.type]},isRenaming:function(){return this.renamingStore.renamingNode===this.source},isRenamingSmallScreen:function(){return this.isRenaming&&this.filesListWidth<512},newName:{get:function(){return this.renamingStore.newName},set:function(e){this.renamingStore.newName=e}},isActive:function(){var e,t;return this.fileid===(null===(e=this.currentFileId)||void 0===e||null===(t=e.toString)||void 0===t?void 0:t.call(e))},canDrag:function(){var e=this,t=function(e){return 0!=(e.permissions&x.y3.UPDATE)};return this.selectedFiles.length>0?this.selectedFiles.map((function(t){return e.filesStore.getNode(t)})).every(t):t(this.source)},canDrop:function(){return this.source.type===x.Tv.Folder&&!this.draggingFiles.includes(this.fileid)&&0!=(this.source.permissions&x.y3.CREATE)}},watch:{source:function(){this.resetState()},isRenaming:function(e){e&&this.startRenaming()}},beforeDestroy:function(){this.resetState()},methods:{resetState:function(){this.loading="",this.backgroundFailed=void 0,this.$refs.previewImg&&(this.$refs.previewImg.src=""),this.openedMenu=!1},onActionClick:function(e){var t=this;return sa(aa().mark((function n(){var r,a;return aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.displayName([t.source],t.currentView),n.prev=1,t.loading=e.id,m.default.set(t.source,"status",x.e4.LOADING),n.next=6,e.exec(t.source,t.currentView,t.currentDir);case 6:if(null!==(a=n.sent)){n.next=9;break}return n.abrupt("return");case 9:if(!a){n.next=12;break}return(0,f.s$)(t.t("files",'"{displayName}" action executed successfully',{displayName:r})),n.abrupt("return");case 12:(0,f.x2)(t.t("files",'"{displayName}" action failed',{displayName:r})),n.next=19;break;case 15:n.prev=15,n.t0=n.catch(1),Zt.error("Error while executing action",{action:e,e:n.t0}),(0,f.x2)(t.t("files",'"{displayName}" action failed',{displayName:r}));case 19:return n.prev=19,t.loading="",m.default.set(t.source,"status",void 0),n.finish(19);case 23:case"end":return n.stop()}}),n,null,[[1,15,19,23]])})))()},execDefaultAction:function(e){this.enabledDefaultActions.length>0&&(e.preventDefault(),e.stopPropagation(),this.enabledDefaultActions[0].exec(this.source,this.currentView,this.currentDir))},openDetailsIfAvailable:function(e){var t;e.preventDefault(),e.stopPropagation(),null!=Yt&&null!==(t=Yt.enabled)&&void 0!==t&&t.call(Yt,[this.source],this.currentView)&&Yt.exec(this.source,this.currentView,this.currentDir)},onSelectionChange:function(e){var t,n=this,r=this.index,a=this.selectionStore.lastSelectedIndex;if(null!==(t=this.keyboardStore)&&void 0!==t&&t.shiftKey&&null!==a){var o=this.selectedFiles.includes(this.fileid),s=Math.min(r,a),i=Math.max(a,r),l=this.selectionStore.lastSelection,c=this.nodes.map((function(e){var t,n;return null===(t=e.fileid)||void 0===t||null===(n=t.toString)||void 0===n?void 0:n.call(t)})).slice(s,i+1),u=[].concat(la(l),la(c)).filter((function(e){return!o||e!==n.fileid}));return Zt.debug("Shift key pressed, selecting all files in between",{start:s,end:i,filesToSelect:c,isAlreadySelected:o}),void this.selectionStore.set(u)}var d=e?[].concat(la(this.selectedFiles),[this.fileid]):this.selectedFiles.filter((function(e){return e!==n.fileid}));Zt.debug("Updating selection",{selection:d}),this.selectionStore.set(d),this.selectionStore.setLastIndex(r)},onRightClick:function(e){if(!this.openedMenu){var t=this.selectedFiles.length>1;this.actionsMenuStore.opened=this.isSelected&&t?"global":this.uniqueId,e.preventDefault(),e.stopPropagation()}},checkInputValidity:function(e){var t,n,r=e.target,a=(null===(t=(n=this.newName).trim)||void 0===t?void 0:t.call(n))||"";Zt.debug("Checking input validity",{newName:a});try{this.isFileNameValid(a),r.setCustomValidity(""),r.title=""}catch(e){r.setCustomValidity(e.message),r.title=e.message}finally{r.reportValidity()}},isFileNameValid:function(e){var t=this,n=e.trim();if("."===n||".."===n)throw new Error(this.t("files",'"{name}" is an invalid file name.',{name:e}));if(0===n.length)throw new Error(this.t("files","File name cannot be empty."));if(-1!==n.indexOf("/"))throw new Error(this.t("files",'"/" is not allowed inside a file name.'));if(n.match(OC.config.blacklist_files_regex))throw new Error(this.t("files",'"{name}" is not an allowed filetype.',{name:e}));if(this.checkIfNodeExists(e))throw new Error(this.t("files","{newName} already exists.",{newName:e}));return n.split("").forEach((function(e){if(-1!==da.indexOf(e))throw new Error(t.t("files",'"{char}" is not allowed inside a file name.',{char:e}))})),!0},checkIfNodeExists:function(e){var t=this;return this.nodes.find((function(n){return n.basename===e&&n!==t.source}))},startRenaming:function(){var e=this;this.$nextTick((function(){var t,n=(e.source.extension||"").split("").length,r=e.source.basename.split("").length-n,a=null===(t=e.$refs.renameInput)||void 0===t||null===(t=t.$refs)||void 0===t||null===(t=t.inputField)||void 0===t||null===(t=t.$refs)||void 0===t?void 0:t.input;a?(a.setSelectionRange(0,r),a.focus(),a.dispatchEvent(new Event("keyup"))):Zt.error("Could not find the rename input")}))},stopRenaming:function(){this.isRenaming&&this.renamingStore.$reset()},onRename:function(){var e=this;return sa(aa().mark((function t(){var n,r,a,o,s,i,l;return aa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.source.basename,o=e.source.encodedSource,""!==(s=(null===(n=(r=e.newName).trim)||void 0===n?void 0:n.call(r))||"")){t.next=6;break}return(0,f.x2)(e.t("files","Name cannot be empty")),t.abrupt("return");case 6:if(a!==s){t.next=9;break}return e.stopRenaming(),t.abrupt("return");case 9:if(!e.checkIfNodeExists(s)){t.next=12;break}return(0,f.x2)(e.t("files","Another entry with the same name already exists")),t.abrupt("return");case 12:return e.loading="renaming",m.default.set(e.source,"status",x.e4.LOADING),e.source.rename(s),Zt.debug("Moving file to",{destination:e.source.encodedSource,oldEncodedSource:o}),t.prev=16,t.next=19,(0,d.Z)({method:"MOVE",url:o,headers:{Destination:e.source.encodedSource}});case 19:(0,ce.j8)("files:node:updated",e.source),(0,ce.j8)("files:node:renamed",e.source),(0,f.s$)(e.t("files",'Renamed "{oldName}" to "{newName}"',{oldName:a,newName:s})),e.stopRenaming(),e.$nextTick((function(){e.$refs.basename.focus()})),t.next=40;break;case 26:if(t.prev=26,t.t0=t.catch(16),Zt.error("Error while renaming file",{error:t.t0}),e.source.rename(a),e.$refs.renameInput.focus(),404!==(null===t.t0||void 0===t.t0||null===(i=t.t0.response)||void 0===i?void 0:i.status)){t.next=36;break}return(0,f.x2)(e.t("files",'Could not rename "{oldName}", it does not exist any more',{oldName:a})),t.abrupt("return");case 36:if(412!==(null===t.t0||void 0===t.t0||null===(l=t.t0.response)||void 0===l?void 0:l.status)){t.next=39;break}return(0,f.x2)(e.t("files",'The name "{newName}" is already used in the folder "{dir}". Please choose a different name.',{newName:s,dir:e.currentDir})),t.abrupt("return");case 39:(0,f.x2)(e.t("files",'Could not rename "{oldName}"',{oldName:a}));case 40:return t.prev=40,e.loading=!1,m.default.set(e.source,"status",void 0),t.finish(40);case 44:case"end":return t.stop()}}),t,null,[[16,26,40,44]])})))()},getBoundariesElement:function(){return document.querySelector(".app-content > .files-list")},actionDisplayName:function(e){if(this.filesListWidth<768&&e.inline&&"function"==typeof e.title){var t=e.title([this.source],this.currentView);if(t)return t}return e.displayName([this.source],this.currentView)},onDragOver:function(e){if(this.dragover=this.canDrop,!this.canDrop)return e.preventDefault(),e.stopPropagation(),void(e.dataTransfer.dropEffect="none");e.ctrlKey?e.dataTransfer.dropEffect="copy":e.dataTransfer.dropEffect="move"},onDragLeave:function(e){this.$el.contains(e.target)&&e.target!==this.$el||(this.dragover=!1)},onDragStart:function(e){var t=this;return sa(aa().mark((function n(){var r,a;return aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.stopPropagation(),t.canDrag){n.next=5;break}return e.preventDefault(),e.stopPropagation(),n.abrupt("return");case 5:return Zt.debug("Drag started"),t.renamingStore.$reset(),t.selectedFiles.includes(t.fileid)?t.draggingStore.set(t.selectedFiles):t.draggingStore.set([t.fileid]),r=t.draggingStore.dragging.map((function(e){return t.filesStore.getNode(e)})),n.next=11,lr(r);case 11:a=n.sent,e.dataTransfer.setDragImage(a,-10,-10);case 13:case"end":return n.stop()}}),n)})))()},onDragEnd:function(){this.draggingStore.reset(),this.dragover=!1,Zt.debug("Drag ended")},onDrop:function(e){var t=this;return sa(aa().mark((function n(){var r;return aa().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.canDrop&&0===e.button){n.next=2;break}return n.abrupt("return");case 2:r=e.ctrlKey,t.dragover=!1,Zt.debug("Dropped",{event:e,selection:t.draggingFiles}),t.draggingFiles.map((function(e){return t.filesStore.getNode(e)})).forEach(function(){var e=sa(aa().mark((function e(n){return aa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m.default.set(n,"status",x.e4.LOADING),e.prev=1,e.next=4,Rr(n,t.source,r?Sr.COPY:Sr.MOVE);case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(1),Zt.error("Error while moving file",{error:e.t0}),r?(0,f.x2)(t.t("files","Could not copy {file}. {message}",{file:n.basename,message:e.t0.message||""})):(0,f.x2)(t.t("files","Could not move {file}. {message}",{file:n.basename,message:e.t0.message||""}));case 10:return e.prev=10,m.default.set(n,"status",void 0),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,6,10,13]])})));return function(t){return e.apply(this,arguments)}}()),t.draggingFiles.some((function(e){return t.selectedFiles.includes(e)}))&&(Zt.debug("Dropped selection, resetting select store..."),t.selectionStore.reset());case 8:case"end":return n.stop()}}),n)})))()},t:i.Iu,formatFileSize:x.sS}}),pa=ma,fa=r(94763),ha={};ha.styleTagTransform=I(),ha.setAttributes=O(),ha.insert=N().bind(null,"head"),ha.domAPI=L(),ha.insertStyleElement=B(),_()(fa.Z,ha),fa.Z&&fa.Z.locals&&fa.Z.locals;var ga=r(45406),va={};va.styleTagTransform=I(),va.setAttributes=O(),va.insert=N().bind(null,"head"),va.domAPI=L(),va.insertStyleElement=B(),_()(ga.Z,va),ga.Z&&ga.Z.locals&&ga.Z.locals;var ya=(0,z.Z)(pa,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("tr",{staticClass:"files-list__row",class:{"files-list__row--visible":e.visible,"files-list__row--active":e.isActive,"files-list__row--dragover":e.dragover,"files-list__row--loading":e.isLoading},attrs:{"data-cy-files-list-row":"","data-cy-files-list-row-fileid":e.fileid,"data-cy-files-list-row-name":e.source.basename,draggable:e.canDrag},on:{contextmenu:e.onRightClick,dragover:e.onDragOver,dragleave:e.onDragLeave,dragstart:e.onDragStart,dragend:e.onDragEnd,drop:e.onDrop}},[e.source.attributes.failed?t("span",{staticClass:"files-list__row--failed"}):e._e(),e._v(" "),t("td",{staticClass:"files-list__row-checkbox"},[e.isLoading?t("NcLoadingIcon"):e.visible?t("NcCheckboxRadioSwitch",{attrs:{"aria-label":e.t("files","Select the row for {displayName}",{displayName:e.displayName}),checked:e.isSelected},on:{"update:checked":e.onSelectionChange}}):e._e()],1),e._v(" "),t("td",{staticClass:"files-list__row-name",attrs:{"data-cy-files-list-row-name":""}},[t("span",{staticClass:"files-list__row-icon",on:{click:e.execDefaultAction}},["folder"===e.source.type?[e.dragover?t("FolderOpenIcon"):[t("FolderIcon"),e._v(" "),e.folderOverlay?t(e.folderOverlay,{tag:"OverlayIcon",staticClass:"files-list__row-icon-overlay"}):e._e()]]:e.previewUrl&&!0!==e.backgroundFailed?t("img",{ref:"previewImg",staticClass:"files-list__row-icon-preview",class:{"files-list__row-icon-preview--loaded":!1===e.backgroundFailed},attrs:{alt:"",src:e.previewUrl},on:{error:function(t){e.backgroundFailed=!0},load:function(t){e.backgroundFailed=!1}}}):t("FileIcon"),e._v(" "),e.isFavorite?t("span",{staticClass:"files-list__row-icon-favorite",attrs:{"aria-label":e.t("files","Favorite")}},[t("FavoriteIcon")],1):e._e()],2),e._v(" "),e.isRenaming?t("form",{directives:[{name:"on-click-outside",rawName:"v-on-click-outside",value:e.stopRenaming,expression:"stopRenaming"}],staticClass:"files-list__row-rename",attrs:{"aria-hidden":!e.isRenaming,"aria-label":e.t("files","Rename file")},on:{submit:function(t){return t.preventDefault(),t.stopPropagation(),e.onRename.apply(null,arguments)}}},[t("NcTextField",{ref:"renameInput",attrs:{label:e.renameLabel,autofocus:!0,minlength:1,required:!0,value:e.newName,enterkeyhint:"done"},on:{"update:value":function(t){e.newName=t},keyup:[e.checkInputValidity,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.stopRenaming.apply(null,arguments)}]}})],1):t("a",e._b({ref:"basename",staticClass:"files-list__row-name-link",attrs:{"aria-hidden":e.isRenaming,"data-cy-files-list-row-name-link":""},on:{click:e.execDefaultAction}},"a",e.linkTo,!1),[t("span",{staticClass:"files-list__row-name-text"},[t("span",{staticClass:"files-list__row-name-",domProps:{textContent:e._s(e.displayName)}}),e._v(" "),t("span",{staticClass:"files-list__row-name-ext",domProps:{textContent:e._s(e.extension)}})])])]),e._v(" "),t("td",{directives:[{name:"show",rawName:"v-show",value:!e.isRenamingSmallScreen,expression:"!isRenamingSmallScreen"}],staticClass:"files-list__row-actions",class:"files-list__row-actions-".concat(e.uniqueId),attrs:{"data-cy-files-list-row-actions":""}},[e._l(e.enabledRenderActions,(function(n){return t("CustomElementRender",{key:n.id,staticClass:"files-list__row-action--inline",class:"files-list__row-action-"+n.id,attrs:{"current-view":e.currentView,render:n.renderInline,source:e.source}})})),e._v(" "),e.visible?t("NcActions",{ref:"actionsMenu",attrs:{"boundaries-element":e.getBoundariesElement(),container:e.getBoundariesElement(),disabled:e.isLoading,"force-name":!0,"force-menu":0===e.enabledInlineActions.length,inline:e.enabledInlineActions.length,open:e.openedMenu},on:{"update:open":function(t){e.openedMenu=t}}},e._l(e.enabledMenuActions,(function(n){var r;return t("NcActionButton",{key:n.id,class:"files-list__row-action-"+n.id,attrs:{"close-after-click":!0,"data-cy-files-list-row-action":n.id,title:null===(r=n.title)||void 0===r?void 0:r.call(n,[e.source],e.currentView)},on:{click:function(t){return e.onActionClick(n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[e.loading===n.id?t("NcLoadingIcon",{attrs:{size:18}}):t("NcIconSvgWrapper",{attrs:{svg:n.iconSvgInline([e.source],e.currentView)}})]},proxy:!0}],null,!0)},[e._v("\n\t\t\t\t"+e._s(e.actionDisplayName(n))+"\n\t\t\t")])})),1):e._e()],2),e._v(" "),e.isSizeAvailable?t("td",{staticClass:"files-list__row-size",style:e.sizeOpacity,attrs:{"data-cy-files-list-row-size":""},on:{click:e.openDetailsIfAvailable}},[t("span",[e._v(e._s(e.size))])]):e._e(),e._v(" "),e.isMtimeAvailable?t("td",{staticClass:"files-list__row-mtime",style:e.mtimeOpacity,attrs:{"data-cy-files-list-row-mtime":""},on:{click:e.openDetailsIfAvailable}},[t("span",[e._v(e._s(e.mtime))])]):e._e(),e._v(" "),e._l(e.columns,(function(n){var r;return t("td",{key:n.id,staticClass:"files-list__row-column-custom",class:"files-list__row-".concat(null===(r=e.currentView)||void 0===r?void 0:r.id,"-").concat(n.id),attrs:{"data-cy-files-list-row-column-custom":n.id},on:{click:e.openDetailsIfAvailable}},[e.visible?t("CustomElementRender",{attrs:{"current-view":e.currentView,render:n.render,source:e.source}}):e._e()],1)}))],2)}),[],!1,null,"4904ac40",null),wa=ya.exports,ba=r(25108),Aa={name:"FilesListHeader",props:{header:{type:Object,required:!0},currentFolder:{type:Object,required:!0},currentView:{type:Object,required:!0}},computed:{enabled:function(){return this.header.enabled(this.currentFolder,this.currentView)}},watch:{enabled:function(e){e&&this.header.updated(this.currentFolder,this.currentView)},currentFolder:function(){this.header.updated(this.currentFolder,this.currentView)}},mounted:function(){ba.debug("Mounted",this.header.id),this.header.render(this.$refs.mount,this.currentFolder,this.currentView)}},Ca=(0,z.Z)(Aa,(function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.enabled,expression:"enabled"}],class:"files-list__header-".concat(e.header.id)},[t("span",{ref:"mount"})])}),[],!1,null,null,null).exports;function xa(e){return xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(e)}var ka=m.default.extend({name:"FilesListTableFooter",components:{},props:{isMtimeAvailable:{type:Boolean,default:!1},isSizeAvailable:{type:Boolean,default:!1},nodes:{type:Array,required:!0},summary:{type:String,default:""},filesListWidth:{type:Number,default:0}},setup:function(){var e=rn();return{filesStore:nn(),pathsStore:e}},computed:{currentView:function(){return this.$navigation.active},dir:function(){var e;return((null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.dir)||"/").replace(/^(.+)\/$/,"$1")},currentFolder:function(){var e;if(null!==(e=this.currentView)&&void 0!==e&&e.id){if("/"===this.dir)return this.filesStore.getRoot(this.currentView.id);var t=this.pathsStore.getPath(this.currentView.id,this.dir);return this.filesStore.getNode(t)}},columns:function(){var e;return this.filesListWidth<512?[]:(null===(e=this.currentView)||void 0===e?void 0:e.columns)||[]},totalSize:function(){var e;return null!==(e=this.currentFolder)&&void 0!==e&&e.size?(0,x.sS)(this.currentFolder.size,!0):(0,x.sS)(this.nodes.reduce((function(e,t){return e+t.size||0}),0),!0)}},methods:{classForColumn:function(e){return t={"files-list__row-column-custom":!0},n="files-list__row-".concat(this.currentView.id,"-").concat(e.id),r=!0,(n=function(e){var t=function(e,t){if("object"!==xa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==xa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===xa(t)?t:String(t)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r},t:i.Iu}}),Ta=r(20771),Sa={};Sa.styleTagTransform=I(),Sa.setAttributes=O(),Sa.insert=N().bind(null,"head"),Sa.domAPI=L(),Sa.insertStyleElement=B(),_()(Ta.Z,Sa),Ta.Z&&Ta.Z.locals&&Ta.Z.locals;var _a=(0,z.Z)(ka,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("tr",[t("th",{staticClass:"files-list__row-checkbox"},[t("span",{staticClass:"hidden-visually"},[e._v(e._s(e.t("files","Total rows summary")))])]),e._v(" "),t("td",{staticClass:"files-list__row-name"},[t("span",{staticClass:"files-list__row-icon"}),e._v(" "),t("span",[e._v(e._s(e.summary))])]),e._v(" "),t("td",{staticClass:"files-list__row-actions"}),e._v(" "),e.isSizeAvailable?t("td",{staticClass:"files-list__column files-list__row-size"},[t("span",[e._v(e._s(e.totalSize))])]):e._e(),e._v(" "),e.isMtimeAvailable?t("td",{staticClass:"files-list__column files-list__row-mtime"}):e._e(),e._v(" "),e._l(e.columns,(function(n){var r;return t("th",{key:n.id,class:e.classForColumn(n)},[t("span",[e._v(e._s(null===(r=n.summary)||void 0===r?void 0:r.call(n,e.nodes,e.currentView)))])])}))],2)}),[],!1,null,"5d5c2897",null).exports,Pa=m.default.extend({data:function(){return{filesListWidth:null}},created:function(){var e=this,t=document.querySelector("#app-content-vue");this.$resizeObserver=new ResizeObserver((function(n){n.length>0&&n[0].target===t&&(e.filesListWidth=n[0].contentRect.width)})),this.$resizeObserver.observe(t)},beforeDestroy:function(){this.$resizeObserver.disconnect()}});function La(e){return La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(e)}function Ea(){Ea=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==La(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Na(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var Fa=(0,x.Vn)(),Oa=m.default.extend({name:"FilesListTableHeaderActions",components:{NcActions:Zn.Z,NcActionButton:Vn.Z,NcIconSvgWrapper:Mt.Z,NcLoadingIcon:$t.Z},mixins:[Pa],props:{currentView:{type:Object,required:!0},selectedNodes:{type:Array,default:function(){return[]}}},setup:function(){return{actionsMenuStore:Mr(),filesStore:nn(),selectionStore:sn()}},data:function(){return{loading:null}},computed:{dir:function(){var e;return((null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.dir)||"/").replace(/^(.+)\/$/,"$1")},enabledActions:function(){var e=this;return Fa.filter((function(e){return e.execBatch})).filter((function(t){return!t.enabled||t.enabled(e.nodes,e.currentView)})).sort((function(e,t){return(e.order||0)-(t.order||0)}))},nodes:function(){var e=this;return this.selectedNodes.map((function(t){return e.getNode(t)})).filter((function(e){return e}))},areSomeNodesLoading:function(){return this.nodes.some((function(e){return e.status===x.e4.LOADING}))},openedMenu:{get:function(){return"global"===this.actionsMenuStore.opened},set:function(e){this.actionsMenuStore.opened=e?"global":null}},inlineActions:function(){return this.filesListWidth<512?0:this.filesListWidth<768?1:this.filesListWidth<1024?2:3}},methods:{getNode:function(e){return this.filesStore.getNode(e)},onActionClick:function(e){var t,n=this;return(t=Ea().mark((function t(){var r,a,o,s;return Ea().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.displayName(n.nodes,n.currentView),a=n.selectedNodes,t.prev=2,n.loading=e.id,n.nodes.forEach((function(e){m.default.set(e,"status",x.e4.LOADING)})),t.next=7,e.execBatch(n.nodes,n.currentView,n.dir);case 7:if((o=t.sent).some((function(e){return null!==e}))){t.next=11;break}return n.selectionStore.reset(),t.abrupt("return");case 11:if(!o.some((function(e){return!1===e}))){t.next=16;break}return s=a.filter((function(e,t){return!1===o[t]})),n.selectionStore.set(s),(0,f.x2)(n.t("files",'"{displayName}" failed on some elements ',{displayName:r})),t.abrupt("return");case 16:(0,f.s$)(n.t("files",'"{displayName}" batch action executed successfully',{displayName:r})),n.selectionStore.reset(),t.next=24;break;case 20:t.prev=20,t.t0=t.catch(2),Zt.error("Error while executing action",{action:e,e:t.t0}),(0,f.x2)(n.t("files",'"{displayName}" action failed',{displayName:r}));case 24:return t.prev=24,n.loading=null,n.nodes.forEach((function(e){m.default.set(e,"status",void 0)})),t.finish(24);case 28:case"end":return t.stop()}}),t,null,[[2,20,24,28]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function s(e){Na(o,r,a,s,i,"next",e)}function i(e){Na(o,r,a,s,i,"throw",e)}s(void 0)}))})()},t:i.Iu}}),ja=Oa,Ba=r(5157),Ua={};Ua.styleTagTransform=I(),Ua.setAttributes=O(),Ua.insert=N().bind(null,"head"),Ua.domAPI=L(),Ua.insertStyleElement=B(),_()(Ba.Z,Ua),Ba.Z&&Ba.Z.locals&&Ba.Z.locals;var Ia=(0,z.Z)(ja,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("th",{staticClass:"files-list__column files-list__row-actions-batch",attrs:{colspan:"2"}},[t("NcActions",{ref:"actionsMenu",attrs:{disabled:!!e.loading||e.areSomeNodesLoading,"force-name":!0,inline:e.inlineActions,"menu-name":e.inlineActions<=1?e.t("files","Actions"):null,open:e.openedMenu},on:{"update:open":function(t){e.openedMenu=t}}},e._l(e.enabledActions,(function(n){return t("NcActionButton",{key:n.id,class:"files-list__row-actions-batch-"+n.id,on:{click:function(t){return e.onActionClick(n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[e.loading===n.id?t("NcLoadingIcon",{attrs:{size:18}}):t("NcIconSvgWrapper",{attrs:{svg:n.iconSvgInline(e.nodes,e.currentView)}})]},proxy:!0}],null,!0)},[e._v("\n\t\t\t"+e._s(n.displayName(e.nodes,e.currentView))+"\n\t\t")])})),1)],1)}),[],!1,null,"72bacee0",null),Da=Ia.exports,Ra=r(20404),za=r(54490);function Ma(e){return Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(e)}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t(e[t]=function(){return qa(this.$pinia)[t]},e)),{}):Object.keys(Va).reduce(((e,t)=>(e[t]=function(){const e=qa(this.$pinia),n=Va[t];return"function"==typeof n?n.call(this,e):e[n]},e)),{}))),{},{currentView:function(){return this.$navigation.active},sortingMode:function(){var e,t;return(null===(e=this.getConfig(this.currentView.id))||void 0===e?void 0:e.sorting_mode)||(null===(t=this.currentView)||void 0===t?void 0:t.defaultSortKey)||"basename"},isAscSorting:function(){var e;return"asc"===(null===(e=this.getConfig(this.currentView.id))||void 0===e?void 0:e.sorting_direction)}}),methods:{toggleSortBy:function(e){this.sortingMode!==e?this.setSortingBy(e,this.currentView.id):this.toggleSortingDirection(this.currentView.id)}}}),Wa=m.default.extend({name:"FilesListTableHeaderButton",components:{MenuDown:Ra.Z,MenuUp:za.Z,NcButton:zt.Z},mixins:[Za],props:{name:{type:String,required:!0},mode:{type:String,required:!0}},methods:{sortAriaLabel:function(e){var t=this.isAscSorting?this.t("files","ascending"):this.t("files","descending");return this.t("files","Sort list by {column} ({direction})",{column:e,direction:t})},t:i.Iu}}),Ka=r(13674),Ja={};Ja.styleTagTransform=I(),Ja.setAttributes=O(),Ja.insert=N().bind(null,"head"),Ja.domAPI=L(),Ja.insertStyleElement=B(),_()(Ka.Z,Ja),Ka.Z&&Ka.Z.locals&&Ka.Z.locals;var Ya=(0,z.Z)(Wa,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcButton",{staticClass:"files-list__column-sort-button",class:{"files-list__column-sort-button--active":e.sortingMode===e.mode},attrs:{"aria-label":e.sortAriaLabel(e.name),alignment:"size"!==e.mode?"start-reverse":"",type:"tertiary"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleSortBy(e.mode)}}},[e.sortingMode!==e.mode||e.isAscSorting?t("MenuUp",{attrs:{slot:"icon"},slot:"icon"}):t("MenuDown",{attrs:{slot:"icon"},slot:"icon"}),e._v("\n\t"+e._s(e.name)+"\n")],1)}),[],!1,null,null,null).exports;function Xa(e){return Xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xa(e)}var Qa=m.default.extend({name:"FilesListTableHeader",components:{FilesListTableHeaderButton:Ya,NcCheckboxRadioSwitch:Wn.Z,FilesListTableHeaderActions:Da},mixins:[Za],props:{isMtimeAvailable:{type:Boolean,default:!1},isSizeAvailable:{type:Boolean,default:!1},nodes:{type:Array,required:!0},filesListWidth:{type:Number,default:0}},setup:function(){return{filesStore:nn(),selectionStore:sn()}},computed:{currentView:function(){return this.$navigation.active},columns:function(){var e;return this.filesListWidth<512?[]:(null===(e=this.currentView)||void 0===e?void 0:e.columns)||[]},dir:function(){var e;return((null===(e=this.$route)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.dir)||"/").replace(/^(.+)\/$/,"$1")},selectAllBind:function(){var e=this.isNoneSelected||this.isSomeSelected?this.t("files","Select all"):this.t("files","Unselect all");return{"aria-label":e,checked:this.isAllSelected,indeterminate:this.isSomeSelected,title:e}},selectedNodes:function(){return this.selectionStore.selected},isAllSelected:function(){return this.selectedNodes.length===this.nodes.length},isNoneSelected:function(){return 0===this.selectedNodes.length},isSomeSelected:function(){return!this.isAllSelected&&!this.isNoneSelected}},methods:{classForColumn:function(e){return t={"files-list__column":!0,"files-list__column--sortable":!!e.sort,"files-list__row-column-custom":!0},n="files-list__row-".concat(this.currentView.id,"-").concat(e.id),r=!0,(n=function(e){var t=function(e,t){if("object"!==Xa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xa(t)?t:String(t)}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r},onToggleAll:function(e){if(e){var t=this.nodes.map((function(e){return e.fileid.toString()}));Zt.debug("Added all nodes to selection",{selection:t}),this.selectionStore.setLastIndex(null),this.selectionStore.set(t)}else Zt.debug("Cleared selection"),this.selectionStore.reset()},t:i.Iu}}),eo=r(41049),to={};to.styleTagTransform=I(),to.setAttributes=O(),to.insert=N().bind(null,"head"),to.domAPI=L(),to.insertStyleElement=B(),_()(eo.Z,to),eo.Z&&eo.Z.locals&&eo.Z.locals;var no=(0,z.Z)(Qa,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("tr",{staticClass:"files-list__row-head"},[t("th",{staticClass:"files-list__column files-list__row-checkbox"},[t("NcCheckboxRadioSwitch",e._b({on:{"update:checked":e.onToggleAll}},"NcCheckboxRadioSwitch",e.selectAllBind,!1))],1),e._v(" "),e.isNoneSelected?[t("th",{staticClass:"files-list__column files-list__row-name files-list__column--sortable",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleSortBy("basename")}}},[t("span",{staticClass:"files-list__row-icon"}),e._v(" "),t("FilesListTableHeaderButton",{attrs:{name:e.t("files","Name"),mode:"basename"}})],1),e._v(" "),t("th",{staticClass:"files-list__row-actions"}),e._v(" "),e.isSizeAvailable?t("th",{staticClass:"files-list__column files-list__row-size",class:{"files-list__column--sortable":e.isSizeAvailable}},[t("FilesListTableHeaderButton",{attrs:{name:e.t("files","Size"),mode:"size"}})],1):e._e(),e._v(" "),e.isMtimeAvailable?t("th",{staticClass:"files-list__column files-list__row-mtime",class:{"files-list__column--sortable":e.isMtimeAvailable}},[t("FilesListTableHeaderButton",{attrs:{name:e.t("files","Modified"),mode:"mtime"}})],1):e._e(),e._v(" "),e._l(e.columns,(function(n){return t("th",{key:n.id,class:e.classForColumn(n)},[n.sort?t("FilesListTableHeaderButton",{attrs:{name:n.title,mode:n.id}}):t("span",[e._v("\n\t\t\t\t"+e._s(n.title)+"\n\t\t\t")])],1)}))]:t("FilesListTableHeaderActions",{attrs:{"current-view":e.currentView,"selected-nodes":e.selectedNodes}})],2)}),[],!1,null,"50439046",null).exports,ro=r(20296),ao=m.default.extend({name:"VirtualList",props:{dataComponent:{type:[Object,Function],required:!0},dataKey:{type:String,required:!0},dataSources:{type:Array,required:!0},itemHeight:{type:Number,required:!0},extraProps:{type:Object,default:function(){return{}}},scrollToIndex:{type:Number,default:0}},data:function(){return{bufferItems:3,index:this.scrollToIndex,beforeHeight:0,headerHeight:0,tableHeight:0,resizeObserver:null}},computed:{isReady:function(){return this.tableHeight>0},startIndex:function(){return Math.max(0,this.index-3)},shownItems:function(){return Math.ceil((this.tableHeight-this.headerHeight)/this.itemHeight)+6},renderedItems:function(){return this.isReady?this.dataSources.slice(this.startIndex,this.startIndex+this.shownItems):[]},tbodyStyle:function(){var e=this.startIndex+this.shownItems>this.dataSources.length,t=this.dataSources.length-this.startIndex-this.shownItems,n=Math.min(this.dataSources.length-this.startIndex,t);return{paddingTop:"".concat(this.startIndex*this.itemHeight,"px"),paddingBottom:e?0:"".concat(n*this.itemHeight,"px")}}},watch:{scrollToIndex:function(){this.index=this.scrollToIndex,this.$el.scrollTop=this.index*this.itemHeight+this.beforeHeight}},mounted:function(){var e,t,n,r=this,a=null===(e=this.$refs)||void 0===e?void 0:e.before,o=this.$el,s=null===(t=this.$refs)||void 0===t?void 0:t.tfoot,i=null===(n=this.$refs)||void 0===n?void 0:n.thead;this.resizeObserver=new ResizeObserver((0,ro.debounce)((function(){var e,t,n;r.beforeHeight=null!==(e=null==a?void 0:a.clientHeight)&&void 0!==e?e:0,r.headerHeight=null!==(t=null==i?void 0:i.clientHeight)&&void 0!==t?t:0,r.tableHeight=null!==(n=null==o?void 0:o.clientHeight)&&void 0!==n?n:0,Zt.debug("VirtualList resizeObserver updated"),r.onScroll()}),100,!1)),this.resizeObserver.observe(a),this.resizeObserver.observe(o),this.resizeObserver.observe(s),this.resizeObserver.observe(i),this.$el.addEventListener("scroll",this.onScroll),this.scrollToIndex&&(this.$el.scrollTop=this.index*this.itemHeight+this.beforeHeight)},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect()},methods:{onScroll:function(){this.index=Math.max(0,Math.round((this.$el.scrollTop-this.beforeHeight)/this.itemHeight))}}}),oo=(0,z.Z)(ao,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("table",{staticClass:"files-list",attrs:{"data-cy-files-list":""}},[t("div",{ref:"before",staticClass:"files-list__before"},[e._t("before")],2),e._v(" "),t("thead",{ref:"thead",staticClass:"files-list__thead",attrs:{"data-cy-files-list-thead":""}},[e._t("header")],2),e._v(" "),t("tbody",{staticClass:"files-list__tbody",style:e.tbodyStyle,attrs:{"data-cy-files-list-tbody":""}},e._l(e.renderedItems,(function(n,r){return t(e.dataComponent,e._b({key:r,tag:"component",attrs:{visible:(r>=e.bufferItems||e.index<=e.bufferItems)&&re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1024){var n;if(this.currentFolder.fileid===this.fileId)return;var r=this.nodes.find((function(t){return t.fileid===e.fileId}));r&&null!=Yt&&null!==(n=Yt.enabled)&&void 0!==n&&n.call(Yt,[r],this.currentView)&&(Zt.debug("Opening sidebar on file "+r.path,{node:r}),Yt.exec(r,this.currentView,this.currentFolder.path))}},methods:{getFileId:function(e){return e.fileid},t:i.Iu}}),lo=r(32625),co={};co.styleTagTransform=I(),co.setAttributes=O(),co.insert=N().bind(null,"head"),co.domAPI=L(),co.insertStyleElement=B(),_()(lo.Z,co),lo.Z&&lo.Z.locals&&lo.Z.locals;var uo,mo=(0,z.Z)(io,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("VirtualList",{attrs:{"data-component":e.FileEntry,"data-key":"source","data-sources":e.nodes,"item-height":56,"extra-props":{isMtimeAvailable:e.isMtimeAvailable,isSizeAvailable:e.isSizeAvailable,nodes:e.nodes,filesListWidth:e.filesListWidth},"scroll-to-index":e.scrollToIndex},scopedSlots:e._u([{key:"before",fn:function(){return[t("caption",{staticClass:"hidden-visually"},[e._v("\n\t\t\t"+e._s(e.currentView.caption||e.t("files","List of files and folders."))+"\n\t\t\t"+e._s(e.t("files","This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list."))+"\n\t\t")]),e._v(" "),e._l(e.sortedHeaders,(function(n){return t("FilesListHeader",{key:n.id,attrs:{"current-folder":e.currentFolder,"current-view":e.currentView,header:n}})}))]},proxy:!0},{key:"header",fn:function(){return[t("FilesListTableHeader",{attrs:{"files-list-width":e.filesListWidth,"is-mtime-available":e.isMtimeAvailable,"is-size-available":e.isSizeAvailable,nodes:e.nodes}})]},proxy:!0},{key:"footer",fn:function(){return[t("FilesListTableFooter",{attrs:{"files-list-width":e.filesListWidth,"is-mtime-available":e.isMtimeAvailable,"is-size-available":e.isSizeAvailable,nodes:e.nodes,summary:e.summary}})]},proxy:!0}])})}),[],!1,null,"0d3f1152",null).exports;function po(e){return po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},po(e)}function fo(){fo=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==po(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function ho(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?l?(m=Date.now(),s||(r=setTimeout(u?h:f,e))):f():!0!==s&&(r=setTimeout(u?h:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},f}var No={name:"ChartPieIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fo=(0,z.Z)(No,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chart-pie-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,2V22C5.9,21.5 2,17.2 2,12C2,6.8 5.9,2.5 11,2M13,2V11H22C21.5,6.2 17.8,2.5 13,2M13,13V22C17.7,21.5 21.5,17.8 22,13H13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,Oo=r(34854);function jo(e){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jo(e)}function Bo(){Bo=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==jo(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Uo(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var Io,Do={name:"NavigationQuota",components:{ChartPie:Fo,NcAppNavigationItem:Lo.Z,NcProgressBar:Oo.Z},data:function(){return{loadingStorageStats:!1,storageStats:(0,s.j)("files","storageStats",null)}},computed:{storageStatsTitle:function(){var e,t,n,r=(0,x.sS)(null===(e=this.storageStats)||void 0===e?void 0:e.used,!1,!1),a=(0,x.sS)(null===(t=this.storageStats)||void 0===t?void 0:t.quota,!1,!1);return(null===(n=this.storageStats)||void 0===n?void 0:n.quota)<0?this.t("files","{usedQuotaByte} used",{usedQuotaByte:r}):this.t("files","{used} of {quota} used",{used:r,quota:a})},storageStatsTooltip:function(){return this.storageStats.relative?this.t("files","{relative}% used",this.storageStats):""}},beforeMount:function(){setInterval(this.throttleUpdateStorageStats,6e4),(0,ce.Ld)("files:node:created",this.throttleUpdateStorageStats),(0,ce.Ld)("files:node:deleted",this.throttleUpdateStorageStats),(0,ce.Ld)("files:node:moved",this.throttleUpdateStorageStats),(0,ce.Ld)("files:node:updated",this.throttleUpdateStorageStats)},methods:{debounceUpdateStorageStats:(Io={}.atBegin,Eo(200,(function(e){this.updateStorageStats(e)}),{debounceMode:!1!==(void 0!==Io&&Io)})),throttleUpdateStorageStats:Eo(1e3,(function(e){this.updateStorageStats(e)})),updateStorageStats:function(){var e,n=arguments,r=this;return(e=Bo().mark((function e(){var a,o,s;return Bo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.length>0&&void 0!==n[0]?n[0]:null,!r.loadingStorageStats){e.next=3;break}return e.abrupt("return");case 3:return r.loadingStorageStats=!0,e.prev=4,e.next=7,d.Z.get((0,l.generateUrl)("/apps/files/api/v1/stats"));case 7:if(null!=(s=e.sent)&&null!==(o=s.data)&&void 0!==o&&o.data){e.next=10;break}throw new Error("Invalid storage stats");case 10:r.storageStats=s.data.data,e.next=17;break;case 13:e.prev=13,e.t0=e.catch(4),Zt.error("Could not refresh storage stats",{error:e.t0}),a&&(0,f.x2)(t("files","Could not refresh storage stats"));case 17:return e.prev=17,r.loadingStorageStats=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[4,13,17,20]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){Uo(o,r,a,s,i,"next",e)}function i(e){Uo(o,r,a,s,i,"throw",e)}s(void 0)}))})()},t:i.Iu}},Ro=Do,zo=r(72656),Mo={};Mo.styleTagTransform=I(),Mo.setAttributes=O(),Mo.insert=N().bind(null,"head"),Mo.domAPI=L(),Mo.insertStyleElement=B(),_()(zo.Z,Mo),zo.Z&&zo.Z.locals&&zo.Z.locals;var $o=(0,z.Z)(Ro,(function(){var e=this,t=e._self._c;return e.storageStats?t("NcAppNavigationItem",{staticClass:"app-navigation-entry__settings-quota",class:{"app-navigation-entry__settings-quota--not-unlimited":e.storageStats.quota>=0},attrs:{"aria-label":e.t("files","Storage informations"),loading:e.loadingStorageStats,name:e.storageStatsTitle,title:e.storageStatsTooltip,"data-cy-files-navigation-settings-quota":""},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.debounceUpdateStorageStats.apply(null,arguments)}}},[t("ChartPie",{attrs:{slot:"icon",size:20},slot:"icon"}),e._v(" "),e.storageStats.quota>=0?t("NcProgressBar",{attrs:{slot:"extra",error:e.storageStats.relative>80,value:Math.min(e.storageStats.relative,100)},slot:"extra"}):e._e()],1):e._e()}),[],!1,null,"b1323a64",null),Go=$o.exports,Ho=r(20932),qo=r(34739),Vo={name:"ClipboardIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Zo=(0,z.Z)(Vo,(function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon clipboard-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])}),[],!1,null,null,null).exports,Wo=r(86232),Ko={name:"Setting",props:{el:{type:Function,required:!0}},mounted:function(){this.$el.appendChild(this.el())}},Jo=(0,z.Z)(Ko,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports;function Yo(e){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yo(e)}function Xo(){Xo=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",i=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new T(a||[]);return r(s,"_invoke",{value:A(e,n,i)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function m(){}function p(){}function f(){}var h={};l(h,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(S([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=f.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function a(r,o,s,i){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==Yo(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,i)}),(function(e){a("throw",e,s,i)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return a("throw",e,s,i)}))}i(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function A(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var i=C(s,n);if(i){if(i===d)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var a=u(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,d;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var i=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(i&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;k(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Qo(e,t,n,r,a,o,s){try{var i=e[o](s),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}var es={name:"Settings",components:{Clipboard:Zo,NcAppSettingsDialog:Ho.Z,NcAppSettingsSection:qo.Z,NcCheckboxRadioSwitch:Wn.Z,NcInputField:Wo.Z,Setting:Jo},props:{open:{type:Boolean,default:!1}},setup:function(){return{userConfigStore:mn()}},data:function(){var e,t;return{settings:(null===(e=window.OCA)||void 0===e||null===(e=e.Files)||void 0===e||null===(e=e.Settings)||void 0===e?void 0:e.settings)||[],webdavUrl:(0,l.generateRemoteUrl)("dav/files/"+encodeURIComponent(null===(t=(0,c.ts)())||void 0===t?void 0:t.uid)),webdavDocs:"https://docs.nextcloud.com/server/stable/go.php?to=user-webdav",appPasswordUrl:(0,l.generateUrl)("/settings/user/security#generate-app-token-section"),webdavUrlCopied:!1}},computed:{userConfig:function(){return this.userConfigStore.userConfig}},beforeMount:function(){this.settings.forEach((function(e){return e.open()}))},beforeDestroy:function(){this.settings.forEach((function(e){return e.close()}))},methods:{onClose:function(){this.$emit("close")},setConfig:function(e,t){this.userConfigStore.update(e,t)},copyCloudId:function(){var e,n=this;return(e=Xo().mark((function e(){return Xo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document.querySelector("input#webdav-url-input").select(),navigator.clipboard){e.next=4;break}return(0,f.x2)(t("files","Clipboard is not available")),e.abrupt("return");case 4:return e.next=6,navigator.clipboard.writeText(n.webdavUrl);case 6:n.webdavUrlCopied=!0,(0,f.s$)(t("files","WebDAV URL copied to clipboard")),setTimeout((function(){n.webdavUrlCopied=!1}),5e3);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){Qo(o,r,a,s,i,"next",e)}function i(e){Qo(o,r,a,s,i,"throw",e)}s(void 0)}))})()},t:i.Iu}},ts=es,ns=r(72277),rs={};rs.styleTagTransform=I(),rs.setAttributes=O(),rs.insert=N().bind(null,"head"),rs.domAPI=L(),rs.insertStyleElement=B(),_()(ns.Z,rs),ns.Z&&ns.Z.locals&&ns.Z.locals;var as=(0,z.Z)(ts,(function(){var e=this,t=e._self._c;return t("NcAppSettingsDialog",{attrs:{open:e.open,"show-navigation":!0,name:e.t("files","Files settings")},on:{"update:open":e.onClose}},[t("NcAppSettingsSection",{attrs:{id:"settings",name:e.t("files","Files settings")}},[t("NcCheckboxRadioSwitch",{attrs:{checked:e.userConfig.sort_favorites_first},on:{"update:checked":function(t){return e.setConfig("sort_favorites_first",t)}}},[e._v("\n\t\t\t"+e._s(e.t("files","Sort favorites first"))+"\n\t\t")]),e._v(" "),t("NcCheckboxRadioSwitch",{attrs:{checked:e.userConfig.show_hidden},on:{"update:checked":function(t){return e.setConfig("show_hidden",t)}}},[e._v("\n\t\t\t"+e._s(e.t("files","Show hidden files"))+"\n\t\t")]),e._v(" "),t("NcCheckboxRadioSwitch",{attrs:{checked:e.userConfig.crop_image_previews},on:{"update:checked":function(t){return e.setConfig("crop_image_previews",t)}}},[e._v("\n\t\t\t"+e._s(e.t("files","Crop image previews"))+"\n\t\t")])],1),e._v(" "),0!==e.settings.length?t("NcAppSettingsSection",{attrs:{id:"more-settings",name:e.t("files","Additional settings")}},[e._l(e.settings,(function(e){return[t("Setting",{key:e.name,attrs:{el:e.el}})]}))],2):e._e(),e._v(" "),t("NcAppSettingsSection",{attrs:{id:"webdav",name:e.t("files","WebDAV")}},[t("NcInputField",{attrs:{id:"webdav-url-input","show-trailing-button":!0,success:e.webdavUrlCopied,"trailing-button-label":e.t("files","Copy to clipboard"),value:e.webdavUrl,readonly:"readonly",type:"url"},on:{focus:function(e){return e.target.select()},"trailing-button-click":e.copyCloudId},scopedSlots:e._u([{key:"trailing-button-icon",fn:function(){return[t("Clipboard",{attrs:{size:20}})]},proxy:!0}])}),e._v(" "),t("em",[t("a",{staticClass:"setting-link",attrs:{href:e.webdavDocs,target:"_blank",rel:"noreferrer noopener"}},[e._v("\n\t\t\t\t"+e._s(e.t("files","Use this address to access your Files via WebDAV"))+" ↗\n\t\t\t")])]),e._v(" "),t("br"),e._v(" "),t("em",[t("a",{staticClass:"setting-link",attrs:{href:e.appPasswordUrl}},[e._v("\n\t\t\t\t"+e._s(e.t("files","If you have enabled 2FA, you must create and use a new app password by clicking here."))+" ↗\n\t\t\t")])])],1)],1)}),[],!1,null,"7aaa0c4e",null).exports;function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nnull==e,ws=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),bs=Symbol("encodeFragmentIdentifier");function As(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Cs(e,t){return t.encode?t.strict?ws(e):encodeURIComponent(e):e}function xs(e,t){return t.decode?function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=ps.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=hs(n[0]);e!==n[0]&&(t[n[0]]=e)}n=ps.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const n of r)e=e.replace(new RegExp(n,"g"),t[n]);return e}(e)}}(e):e}function ks(e){return Array.isArray(e)?e.sort():"object"==typeof e?ks(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function Ts(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Ss(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function _s(e){const t=(e=Ts(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function Ps(e,t){As((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const a="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!a&&xs(n,e).includes(e.arrayFormatSeparator);n=o?xs(n,e):n;const s=a||o?n.split(e.arrayFormatSeparator).map((t=>xs(t,e))):null===n?n:xs(n,e);r[t]=s};case"bracket-separator":return(t,n,r)=>{const a=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!a)return void(r[t]=n?xs(n,e):n);const o=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>xs(t,e)));void 0!==r[t]?r[t]=[...r[t],...o]:r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){if(""===a)continue;const e=t.decode?a.replace(/\+/g," "):a;let[o,s]=gs(e,"=");void 0===o&&(o=e),s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:xs(s,t),n(xs(o,t),s,r)}for(const[e,n]of Object.entries(r))if("object"==typeof n&&null!==n)for(const[e,r]of Object.entries(n))n[e]=Ss(r,t);else r[e]=Ss(n,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=ks(n):e[t]=n,e}),Object.create(null))}function Ls(e,t){if(!e)return"";As((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&ys(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Cs(t,e),"[",a,"]"].join("")]:[...n,[Cs(t,e),"[",Cs(a,e),"]=",Cs(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Cs(t,e),"[]"].join("")]:[...n,[Cs(t,e),"[]=",Cs(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Cs(t,e),":list="].join("")]:[...n,[Cs(t,e),":list=",Cs(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:(a=null===a?"":a,0===r.length?[[Cs(n,e),t,Cs(a,e)].join("")]:[[r,Cs(a,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,Cs(t,e)]:[...n,[Cs(t,e),"=",Cs(r,e)].join("")]}}(t),a={};for(const[t,r]of Object.entries(e))n(t)||(a[t]=r);const o=Object.keys(a);return!1!==t.sort&&o.sort(t.sort),o.map((n=>{const a=e[n];return void 0===a?"":null===a?Cs(n,t):Array.isArray(a)?0===a.length&&"bracket-separator"===t.arrayFormat?Cs(n,t)+"[]":a.reduce(r(n),[]).join("&"):Cs(n,t)+"="+Cs(a,t)})).filter((e=>e.length>0)).join("&")}function Es(e,t){t={decode:!0,...t};let[n,r]=gs(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:Ps(_s(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:xs(r,t)}:{}}}function Ns(e,t){t={encode:!0,strict:!0,[bs]:!0,...t};const n=Ts(e.url).split("?")[0]||"";let r=Ls({...Ps(_s(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let a=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,a=t[bs]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${a}`}function Fs(e,t,n){n={parseFragmentIdentifier:!0,[bs]:!1,...n};const{url:r,query:a,fragmentIdentifier:o}=Es(e,n);return Ns({url:r,query:vs(a,t),fragmentIdentifier:o},n)}function Os(e,t,n){return Fs(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var js=a,Bs=r(25108);function Us(e,t){for(var n in t)e[n]=t[n];return e}var Is=/[!'()*]/g,Ds=function(e){return"%"+e.charCodeAt(0).toString(16)},Rs=/%2C/g,zs=function(e){return encodeURIComponent(e).replace(Is,Ds).replace(Rs,",")};function Ms(e){try{return decodeURIComponent(e)}catch(e){}return e}var $s=function(e){return null==e||"object"==typeof e?e:String(e)};function Gs(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=Ms(n.shift()),a=n.length>0?Ms(n.join("=")):null;void 0===t[r]?t[r]=a:Array.isArray(t[r])?t[r].push(a):t[r]=[t[r],a]})),t):t}function Hs(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return zs(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(zs(t)):r.push(zs(t)+"="+zs(e)))})),r.join("&")}return zs(t)+"="+zs(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var qs=/\/?$/;function Vs(e,t,n,r){var a=r&&r.options.stringifyQuery,o=t.query||{};try{o=Zs(o)}catch(e){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:Js(t,a),matched:e?Ks(e):[]};return n&&(s.redirectedFrom=Js(n,a)),Object.freeze(s)}function Zs(e){if(Array.isArray(e))return e.map(Zs);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=Zs(e[n]);return t}return e}var Ws=Vs(null,{path:"/"});function Ks(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Js(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var a=e.hash;return void 0===a&&(a=""),(n||"/")+(t||Hs)(r)+a}function Ys(e,t,n){return t===Ws?e===t:!!t&&(e.path&&t.path?e.path.replace(qs,"")===t.path.replace(qs,"")&&(n||e.hash===t.hash&&Xs(e.query,t.query)):!(!e.name||!t.name)&&e.name===t.name&&(n||e.hash===t.hash&&Xs(e.query,t.query)&&Xs(e.params,t.params)))}function Xs(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,a){var o=e[n];if(r[a]!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"==typeof o&&"object"==typeof s?Xs(o,s):String(o)===String(s)}))}function Qs(e){for(var t=0;t=0&&(t=e.slice(r),e=e.slice(0,r));var a=e.indexOf("?");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{path:e,query:n,hash:t}}(a.path||""),c=t&&t.path||"/",u=l.path?ni(l.path,c,n||a.append):c,d=function(e,t,n){void 0===t&&(t={});var r,a=n||Gs;try{r=a(e||"")}catch(e){r={}}for(var o in t){var s=t[o];r[o]=Array.isArray(s)?s.map($s):$s(s)}return r}(l.query,a.query,r&&r.options.parseQuery),m=a.hash||l.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:u,query:d,hash:m}}var Ai,Ci=function(){},xi={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,a=n.resolve(this.to,r,this.append),o=a.location,s=a.route,i=a.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,m=null==u?"router-link-exact-active":u,p=null==this.activeClass?d:this.activeClass,f=null==this.exactActiveClass?m:this.exactActiveClass,h=s.redirectedFrom?Vs(null,bi(s.redirectedFrom),null,n):s;l[f]=Ys(r,h,this.exactPath),l[p]=this.exact||this.exactPath?l[f]:function(e,t){return 0===e.path.replace(qs,"/").indexOf(t.path.replace(qs,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,h);var g=l[f]?this.ariaCurrentValue:null,v=function(e){ki(e)&&(t.replace?n.replace(o,Ci):n.push(o,Ci))},y={click:ki};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=v})):y[this.event]=v;var w={class:l},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:i,route:s,navigate:v,isActive:l[p],isExactActive:l[f]});if(b){if(1===b.length)return b[0];if(b.length>1||!b.length)return 0===b.length?e():e("span",{},b)}if("a"===this.tag)w.on=y,w.attrs={href:i,"aria-current":g};else{var A=Ti(this.$slots.default);if(A){A.isStatic=!1;var C=A.data=Us({},A.data);for(var x in C.on=C.on||{},C.on){var k=C.on[x];x in y&&(C.on[x]=Array.isArray(k)?k:[k])}for(var T in y)T in C.on?C.on[T].push(y[T]):C.on[T]=v;var S=A.data.attrs=Us({},A.data.attrs);S.href=i,S["aria-current"]=g}else w.on=y}return e(this.tag,w,this.$slots.default)}};function ki(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ti(e){if(e)for(var t,n=0;n-1&&(l.params[m]=n.params[m]);return l.path=wi(u.path,l.params),i(u,l,s)}if(l.path){l.params={};for(var p=0;p-1}function nl(e,t){return tl(e)&&e._isRouter&&(null==t||e.type===t)}function rl(e,t,n){var r=function(a){a>=e.length?n():e[a]?t(e[a],(function(){r(a+1)})):r(a+1)};r(0)}function al(e,t){return ol(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function ol(e){return Array.prototype.concat.apply([],e)}var sl="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function il(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var ll=function(e,t){this.router=e,this.base=function(e){if(!e)if(Si){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=Ws,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function cl(e,t,n,r){var a=al(e,(function(e,r,a,o){var s=function(e,t){return"function"!=typeof e&&(e=Ai.extend(e)),e.options[t]}(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,r,a,o)})):n(s,r,a,o)}));return ol(r?a.reverse():a)}function ul(e,t){if(t)return function(){return e.apply(t,arguments)}}ll.prototype.listen=function(e){this.cb=e},ll.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},ll.prototype.onError=function(e){this.errorCbs.push(e)},ll.prototype.transitionTo=function(e,t,n){var r,a=this;try{r=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var o=this.current;this.confirmTransition(r,(function(){a.updateRoute(r),t&&t(r),a.ensureURL(),a.router.afterHooks.forEach((function(e){e&&e(r,o)})),a.ready||(a.ready=!0,a.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!a.ready&&(nl(e,Yi.redirected)&&o===Ws||(a.ready=!0,a.readyErrorCbs.forEach((function(t){t(e)}))))}))},ll.prototype.confirmTransition=function(e,t,n){var r=this,a=this.current;this.pending=e;var o,s,i=function(e){!nl(e)&&tl(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):Bs.error(e)),n&&n(e)},l=e.matched.length-1,c=a.matched.length-1;if(Ys(e,a)&&l===c&&e.matched[l]===a.matched[c])return this.ensureURL(),e.hash&&Ri(this.router,a,e,!1),i(((s=Qi(o=a,e,Yi.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",s));var u,d=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=Wi&&n;r&&this.listeners.push(Di());var a=function(){var n=e.current,a=ml(e.base);e.current===Ws&&a===e._startLocation||e.transitionTo(a,(function(e){r&&Ri(t,e,n,!0)}))};window.addEventListener("popstate",a),this.listeners.push((function(){window.removeEventListener("popstate",a)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){Ki(ri(r.base+e.fullPath)),Ri(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){Ji(ri(r.base+e.fullPath)),Ri(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ml(this.base)!==this.current.fullPath){var t=ri(this.base+this.current.fullPath);e?Ki(t):Ji(t)}},t.prototype.getCurrentLocation=function(){return ml(this.base)},t}(ll);function ml(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(ri(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var pl=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=ml(e);if(!/^\/#/.test(t))return window.location.replace(ri(e+"/#"+t)),!0}(this.base)||fl()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=Wi&&t;n&&this.listeners.push(Di());var r=function(){var t=e.current;fl()&&e.transitionTo(hl(),(function(r){n&&Ri(e.router,r,t,!0),Wi||yl(r.fullPath)}))},a=Wi?"popstate":"hashchange";window.addEventListener(a,r),this.listeners.push((function(){window.removeEventListener(a,r)}))}},t.prototype.push=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){vl(e.fullPath),Ri(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){yl(e.fullPath),Ri(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;hl()!==t&&(e?vl(t):yl(t))},t.prototype.getCurrentLocation=function(){return hl()},t}(ll);function fl(){var e=hl();return"/"===e.charAt(0)||(yl("/"+e),!1)}function hl(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function gl(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function vl(e){Wi?Ki(gl(e)):window.location.hash=e}function yl(e){Wi?Ji(gl(e)):window.location.replace(gl(e))}var wl=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){nl(e,Yi.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(ll),bl=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Ei(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Wi&&!1!==e.fallback,this.fallback&&(t="hash"),Si||(t="abstract"),this.mode=t,t){case"history":this.history=new dl(this,e.base);break;case"hash":this.history=new pl(this,e.base,this.fallback);break;case"abstract":this.history=new wl(this,e.base)}},Al={currentRoute:{configurable:!0}};bl.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Al.currentRoute.get=function(){return this.history&&this.history.current},bl.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof dl||n instanceof pl){var r=function(e){n.setupListeners(),function(e){var r=n.current,a=t.options.scrollBehavior;Wi&&a&&"fullPath"in e&&Ri(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},bl.prototype.beforeEach=function(e){return xl(this.beforeHooks,e)},bl.prototype.beforeResolve=function(e){return xl(this.resolveHooks,e)},bl.prototype.afterEach=function(e){return xl(this.afterHooks,e)},bl.prototype.onReady=function(e,t){this.history.onReady(e,t)},bl.prototype.onError=function(e){this.history.onError(e)},bl.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},bl.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},bl.prototype.go=function(e){this.history.go(e)},bl.prototype.back=function(){this.go(-1)},bl.prototype.forward=function(){this.go(1)},bl.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},bl.prototype.resolve=function(e,t,n){var r=bi(e,t=t||this.history.current,n,this),a=this.match(r,t),o=a.redirectedFrom||a.fullPath,s=function(e,t,n){var r="hash"===n?"#"+t:t;return e?ri(e+"/"+r):r}(this.history.base,o,this.mode);return{location:r,route:a,href:s,normalizedTo:r,resolved:a}},bl.prototype.getRoutes=function(){return this.matcher.getRoutes()},bl.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Ws&&this.history.transitionTo(this.history.getCurrentLocation())},bl.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Ws&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(bl.prototype,Al);var Cl=bl;function xl(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}bl.install=function e(t){if(!e.installed||Ai!==t){e.installed=!0,Ai=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",ei),t.component("RouterLink",xi);var a=t.config.optionMergeStrategies;a.beforeRouteEnter=a.beforeRouteLeave=a.beforeRouteUpdate=a.created}},bl.version="3.6.5",bl.isNavigationFailure=nl,bl.NavigationFailureType=Yi,bl.START_LOCATION=Ws,Si&&window.Vue&&window.Vue.use(bl),m.default.use(Cl);var kl=Cl.prototype.push;Cl.prototype.push=function(e,t,n){return t||n?kl.call(this,e,t,n):kl.call(this,e).catch((function(e){return e}))};var Tl=new Cl({mode:"history",base:(0,l.generateUrl)("/apps/files"),linkActiveClass:"active",routes:[{path:"/",redirect:{name:"filelist"}},{path:"/:view/:fileid?",name:"filelist",props:!0}],stringifyQuery:function(e){var t=js.stringify(e).replace(/%2F/gim,"/");return t?"?"+t:""}});function Sl(e){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sl(e)}function _l(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return this._router.push({path:e,replace:t})}},{key:"goToRoute",value:function(e,t,n,r){return this._router.push({name:e,query:n,params:t,replace:r})}}],n&&_l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function El(e){return El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},El(e)}function Nl(e,t){for(var n=0;n0?(Bl.error("A setting with the same name is already registered"),!1):(this._settings.push(e),!0)}},{key:"settings",get:function(){return this._settings}}])&&Il(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();r.nc=btoa((0,c.IH)()),window.OCA.Files=null!==(Rl=window.OCA.Files)&&void 0!==Rl?Rl:{},window.OCP.Files=null!==(zl=window.OCP.Files)&&void 0!==zl?zl:{};var $l=new Ll(Tl);Object.assign(window.OCP.Files,{Router:$l}),m.default.use((function(e){e.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const t=e.pinia;if(!this._provided){const e={};Object.defineProperty(this,"_provided",{get:()=>e,set:t=>Object.assign(e,t)})}this._provided[Ae]=t,this.$pinia||(this.$pinia=t),t._a=this,ke&&be(t),Te&&Ye(t._a,t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})}));var Gl=function(){const e=(0,m.effectScope)(!0),t=e.run((()=>(0,m.ref)({})));let n=[],r=[];const a=(0,m.markRaw)({install(e){be(a),ue||(a._a=e,e.provide(Ae,a),e.config.globalProperties.$pinia=a,Te&&Ye(e,a),r.forEach((e=>n.push(e))),r=[])},use(e){return this._a||ue?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Te&&"undefined"!=typeof Proxy&&a.use(tt),a}(),Hl=(0,x.Ti)();m.default.prototype.$navigation=Hl;var ql=new Ml;Object.assign(window.OCA.Files,{Settings:ql}),Object.assign(window.OCA.Files.Settings,{Setting:jl}),new(m.default.extend(us))({name:"FilesNavigationRoot",propsData:{Navigation:Hl},router:Tl,pinia:Gl}).$mount("#app-navigation-files"),new(m.default.extend(So))({name:"FilesListRoot",router:Tl,pinia:Gl}).$mount("#app-content-vue")},43011:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".upload-picker[data-v-5f1bec03]{display:inline-flex;align-items:center;height:44px}.upload-picker__progress[data-v-5f1bec03]{width:200px;max-width:0;transition:max-width var(--animation-quick) ease-in-out;margin-top:8px}.upload-picker__progress p[data-v-5f1bec03]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-picker--uploading .upload-picker__progress[data-v-5f1bec03]{max-width:200px;margin-right:20px;margin-left:8px}.upload-picker--paused .upload-picker__progress[data-v-5f1bec03]{animation:breathing-5f1bec03 3s ease-out infinite normal}@keyframes breathing-5f1bec03{0%{opacity:.5}25%{opacity:1}60%{opacity:.5}to{opacity:.5}}\n","",{version:3,sources:["webpack://./node_modules/@nextcloud/upload/dist/assets/index.css"],names:[],mappings:"AAAA,gCAAgC,mBAAmB,CAAC,kBAAkB,CAAC,WAAW,CAAC,0CAA0C,WAAW,CAAC,WAAW,CAAC,uDAAuD,CAAC,cAAc,CAAC,4CAA4C,eAAe,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,oEAAoE,eAAe,CAAC,iBAAiB,CAAC,eAAe,CAAC,iEAAiE,wDAAwD,CAAC,8BAA8B,GAAG,UAAU,CAAC,IAAI,SAAS,CAAC,IAAI,UAAU,CAAC,GAAG,UAAU,CAAC",sourcesContent:[".upload-picker[data-v-5f1bec03]{display:inline-flex;align-items:center;height:44px}.upload-picker__progress[data-v-5f1bec03]{width:200px;max-width:0;transition:max-width var(--animation-quick) ease-in-out;margin-top:8px}.upload-picker__progress p[data-v-5f1bec03]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-picker--uploading .upload-picker__progress[data-v-5f1bec03]{max-width:200px;margin-right:20px;margin-left:8px}.upload-picker--paused .upload-picker__progress[data-v-5f1bec03]{animation:breathing-5f1bec03 3s ease-out infinite normal}@keyframes breathing-5f1bec03{0%{opacity:.5}25%{opacity:1}60%{opacity:.5}to{opacity:.5}}\n"],sourceRoot:""}]),t.Z=s},27406:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".breadcrumb[data-v-c33b6662]{flex:1 1 100% !important;width:100%}.breadcrumb[data-v-c33b6662] a{cursor:pointer !important}","",{version:3,sources:["webpack://./apps/files/src/components/BreadCrumbs.vue"],names:[],mappings:"AACA,6BAEC,wBAAA,CACA,UAAA,CAEA,+BACC,yBAAA",sourcesContent:["\n.breadcrumb {\n\t// Take as much space as possible\n\tflex: 1 1 100% !important;\n\twidth: 100%;\n\n\t::v-deep a {\n\t\tcursor: pointer !important;\n\t}\n}\n\n"],sourceRoot:""}]),t.Z=s},99732:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".files-list-drag-image{position:absolute;top:-9999px;left:-9999px;display:flex;overflow:hidden;align-items:center;height:44px;padding:6px 12px;background:var(--color-main-background)}.files-list-drag-image__icon,.files-list-drag-image .files-list__row-icon{display:flex;overflow:hidden;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--border-radius)}.files-list-drag-image__icon{overflow:visible;margin-right:12px}.files-list-drag-image__icon img{max-width:100%;max-height:100%}.files-list-drag-image__icon .material-design-icon{color:var(--color-text-maxcontrast)}.files-list-drag-image__icon .material-design-icon.folder-icon{color:var(--color-primary-element)}.files-list-drag-image__icon>span{display:flex}.files-list-drag-image__icon>span .files-list__row-icon+.files-list__row-icon{margin-top:6px;margin-left:-26px}.files-list-drag-image__icon>span .files-list__row-icon+.files-list__row-icon+.files-list__row-icon{margin-top:12px}.files-list-drag-image__icon>span:not(:empty)+*{display:none}.files-list-drag-image__name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}","",{version:3,sources:["webpack://./apps/files/src/components/DragAndDropPreview.vue"],names:[],mappings:"AAIA,uBACC,iBAAA,CACA,WAAA,CACA,YAAA,CACA,YAAA,CACA,eAAA,CACA,kBAAA,CACA,WAAA,CACA,gBAAA,CACA,uCAAA,CAEA,0EAEC,YAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,kCAAA,CAGD,6BACC,gBAAA,CACA,iBAAA,CAEA,iCACC,cAAA,CACA,eAAA,CAGD,mDACC,mCAAA,CACA,+DACC,kCAAA,CAKF,kCACC,YAAA,CAGA,8EACC,cA9CU,CA+CV,iBAAA,CACA,oGACC,eAAA,CAKF,gDACC,YAAA,CAKH,6BACC,eAAA,CACA,kBAAA,CACA,sBAAA",sourcesContent:["\n$size: 32px;\n$stack-shift: 6px;\n\n.files-list-drag-image {\n\tposition: absolute;\n\ttop: -9999px;\n\tleft: -9999px;\n\tdisplay: flex;\n\toverflow: hidden;\n\talign-items: center;\n\theight: 44px;\n\tpadding: 6px 12px;\n\tbackground: var(--color-main-background);\n\n\t&__icon,\n\t.files-list__row-icon {\n\t\tdisplay: flex;\n\t\toverflow: hidden;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 32px;\n\t\theight: 32px;\n\t\tborder-radius: var(--border-radius);\n\t}\n\n\t&__icon {\n\t\toverflow: visible;\n\t\tmargin-right: 12px;\n\n\t\timg {\n\t\t\tmax-width: 100%;\n\t\t\tmax-height: 100%;\n\t\t}\n\n\t\t.material-design-icon {\n\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t&.folder-icon {\n\t\t\t\tcolor: var(--color-primary-element);\n\t\t\t}\n\t\t}\n\n\t\t// Previews container\n\t\t> span {\n\t\t\tdisplay: flex;\n\n\t\t\t// Stack effect if more than one element\n\t\t\t.files-list__row-icon + .files-list__row-icon {\n\t\t\t\tmargin-top: $stack-shift;\n\t\t\t\tmargin-left: $stack-shift - $size;\n\t\t\t\t& + .files-list__row-icon {\n\t\t\t\t\tmargin-top: $stack-shift * 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If we have manually clone the preview,\n\t\t\t// let's hide any fallback icons\n\t\t\t&:not(:empty) + * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__name {\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n"],sourceRoot:""}]),t.Z=s},92054:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".favorite-marker-icon[data-v-0f26d460]{color:#a08b00;min-width:unset !important;min-height:unset !important}.favorite-marker-icon[data-v-0f26d460] svg{width:26px !important;height:26px !important;max-width:unset !important;max-height:unset !important}.favorite-marker-icon[data-v-0f26d460] svg path{stroke:var(--color-main-background);stroke-width:8px;stroke-linejoin:round;paint-order:stroke}","",{version:3,sources:["webpack://./apps/files/src/components/FavoriteIcon.vue"],names:[],mappings:"AACA,uCACC,aAAA,CAEA,0BAAA,CACG,2BAAA,CAGF,4CAEC,qBAAA,CACA,sBAAA,CAGA,0BAAA,CACA,2BAAA,CAGA,iDACC,mCAAA,CACA,gBAAA,CACA,qBAAA,CACA,kBAAA",sourcesContent:["\n.favorite-marker-icon {\n\tcolor: #a08b00;\n\t// Override NcIconSvgWrapper defaults (clickable area)\n\tmin-width: unset !important;\n min-height: unset !important;\n\n\t:deep() {\n\t\tsvg {\n\t\t\t// We added a stroke for a11y so we must increase the size to include the stroke\n\t\t\twidth: 26px !important;\n\t\t\theight: 26px !important;\n\n\t\t\t// Override NcIconSvgWrapper defaults of 20px\n\t\t\tmax-width: unset !important;\n\t\t\tmax-height: unset !important;\n\n\t\t\t// Sow a border around the icon for better contrast\n\t\t\tpath {\n\t\t\t\tstroke: var(--color-main-background);\n\t\t\t\tstroke-width: 8px;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t\tpaint-order: stroke;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.Z=s},94763:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,"tr[data-v-4904ac40]:hover,tr[data-v-4904ac40]:focus{background-color:var(--color-background-dark)}.files-list__row-icon-overlay[data-v-4904ac40]{position:absolute;max-height:18px;max-width:18px;color:var(--color-main-background);margin-top:2px}.files-list__row-icon-preview[data-v-4904ac40]:not(.files-list__row-icon-preview--loaded){background:var(--color-loading-dark)}","",{version:3,sources:["webpack://./apps/files/src/components/FileEntry.vue"],names:[],mappings:"AAGC,oDAEC,6CAAA,CAKF,+CACC,iBAAA,CACA,eAAA,CACA,cAAA,CACA,kCAAA,CAEA,cAAA,CAID,0FACI,oCAAA",sourcesContent:["\n/* Hover effect on tbody lines only */\ntr {\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: var(--color-background-dark);\n\t}\n}\n\n// Folder overlay\n.files-list__row-icon-overlay {\n\tposition: absolute;\n\tmax-height: 18px;\n\tmax-width: 18px;\n\tcolor: var(--color-main-background);\n\t// better alignment with the folder icon\n\tmargin-top: 2px;\n}\n\n/* Preview not loaded animation effect */\n.files-list__row-icon-preview:not(.files-list__row-icon-preview--loaded) {\n background: var(--color-loading-dark);\n\t// animation: preview-gradient-fade 1.2s ease-in-out infinite;\n}\n"],sourceRoot:""}]),t.Z=s},20771:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,"tr[data-v-5d5c2897]{padding-bottom:300px;border-top:1px solid var(--color-border);background-color:rgba(0,0,0,0) !important;border-bottom:none !important}td[data-v-5d5c2897]{user-select:none;color:var(--color-text-maxcontrast) !important}","",{version:3,sources:["webpack://./apps/files/src/components/FilesListTableFooter.vue"],names:[],mappings:"AAEA,oBACC,oBAAA,CACA,wCAAA,CAEA,yCAAA,CACA,6BAAA,CAGD,oBACC,gBAAA,CAEA,8CAAA",sourcesContent:["\n// Scoped row\ntr {\n\tpadding-bottom: 300px;\n\tborder-top: 1px solid var(--color-border);\n\t// Prevent hover effect on the whole row\n\tbackground-color: transparent !important;\n\tborder-bottom: none !important;\n}\n\ntd {\n\tuser-select: none;\n\t// Make sure the cell colors don't apply to column headers\n\tcolor: var(--color-text-maxcontrast) !important;\n}\n\n"],sourceRoot:""}]),t.Z=s},41049:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".files-list__column[data-v-50439046]{user-select:none;color:var(--color-text-maxcontrast) !important}.files-list__column--sortable[data-v-50439046]{cursor:pointer}","",{version:3,sources:["webpack://./apps/files/src/components/FilesListTableHeader.vue"],names:[],mappings:"AACA,qCACC,gBAAA,CAEA,8CAAA,CAEA,+CACC,cAAA",sourcesContent:["\n.files-list__column {\n\tuser-select: none;\n\t// Make sure the cell colors don't apply to column headers\n\tcolor: var(--color-text-maxcontrast) !important;\n\n\t&--sortable {\n\t\tcursor: pointer;\n\t}\n}\n\n"],sourceRoot:""}]),t.Z=s},5157:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".files-list__row-actions-batch[data-v-72bacee0]{flex:1 1 100% !important}.files-list__row-actions-batch[data-v-72bacee0] .button-vue__wrapper{width:100%}.files-list__row-actions-batch[data-v-72bacee0] .button-vue__wrapper span.button-vue__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}","",{version:3,sources:["webpack://./apps/files/src/components/FilesListTableHeaderActions.vue"],names:[],mappings:"AACA,gDACC,wBAAA,CAGA,qEACC,UAAA,CACA,2FACC,eAAA,CACA,sBAAA,CACA,kBAAA",sourcesContent:["\n.files-list__row-actions-batch {\n\tflex: 1 1 100% !important;\n\n\t// Remove when https://github.com/nextcloud/nextcloud-vue/pull/3936 is merged\n\t::v-deep .button-vue__wrapper {\n\t\twidth: 100%;\n\t\tspan.button-vue__text {\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.Z=s},13674:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".files-list__column-sort-button{margin:0 calc(var(--cell-margin)*-1)}.files-list__column-sort-button .button-vue__icon{transition-timing-function:linear;transition-duration:.1s;transition-property:opacity;opacity:0}.files-list__column-sort-button .button-vue__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.files-list__column-sort-button--active .button-vue__icon,.files-list__column-sort-button:hover .button-vue__icon,.files-list__column-sort-button:focus .button-vue__icon,.files-list__column-sort-button:active .button-vue__icon{opacity:1 !important}","",{version:3,sources:["webpack://./apps/files/src/components/FilesListTableHeaderButton.vue"],names:[],mappings:"AACA,gCAEC,oCAAA,CAEA,kDACC,iCAAA,CACA,uBAAA,CACA,2BAAA,CACA,SAAA,CAID,kDACC,eAAA,CACA,kBAAA,CACA,sBAAA,CAOA,mOACC,oBAAA",sourcesContent:["\n.files-list__column-sort-button {\n\t// Compensate for cells margin\n\tmargin: 0 calc(var(--cell-margin) * -1);\n\n\t.button-vue__icon {\n\t\ttransition-timing-function: linear;\n\t\ttransition-duration: .1s;\n\t\ttransition-property: opacity;\n\t\topacity: 0;\n\t}\n\n\t// Remove when https://github.com/nextcloud/nextcloud-vue/pull/3936 is merged\n\t.button-vue__text {\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&--active,\n\t&:hover,\n\t&:focus,\n\t&:active {\n\t\t.button-vue__icon {\n\t\t\topacity: 1 !important;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.Z=s},32625:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".files-list[data-v-0d3f1152]{--row-height: 55px;--cell-margin: 14px;--checkbox-padding: calc((var(--row-height) - var(--checkbox-size)) / 2);--checkbox-size: 24px;--clickable-area: 44px;--icon-preview-size: 32px;display:block;overflow:auto;height:100%}.files-list[data-v-0d3f1152] tbody{display:flex;flex-direction:column;width:100%;position:relative}.files-list[data-v-0d3f1152] .files-list__before{display:flex;flex-direction:column}.files-list[data-v-0d3f1152] .files-list__thead{position:sticky;z-index:10;top:0}.files-list[data-v-0d3f1152] .files-list__thead,.files-list[data-v-0d3f1152] .files-list__tfoot{display:flex;width:100%;background-color:var(--color-main-background)}.files-list[data-v-0d3f1152] tr{position:relative;display:flex;align-items:center;width:100%;user-select:none;border-bottom:1px solid var(--color-border);user-select:none}.files-list[data-v-0d3f1152] td,.files-list[data-v-0d3f1152] th{display:flex;align-items:center;flex:0 0 auto;justify-content:left;width:var(--row-height);height:var(--row-height);margin:0;padding:0;color:var(--color-text-maxcontrast);border:none}.files-list[data-v-0d3f1152] td span,.files-list[data-v-0d3f1152] th span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.files-list[data-v-0d3f1152] .files-list__row--failed{position:absolute;display:block;top:0;left:0;right:0;bottom:0;opacity:.1;z-index:-1;background:var(--color-error)}.files-list[data-v-0d3f1152] .files-list__row-checkbox{justify-content:center}.files-list[data-v-0d3f1152] .files-list__row-checkbox .checkbox-radio-switch{display:flex;justify-content:center;--icon-size: var(--checkbox-size)}.files-list[data-v-0d3f1152] .files-list__row-checkbox .checkbox-radio-switch label.checkbox-radio-switch__label{width:var(--clickable-area);height:var(--clickable-area);margin:0;padding:calc((var(--clickable-area) - var(--checkbox-size))/2)}.files-list[data-v-0d3f1152] .files-list__row-checkbox .checkbox-radio-switch .checkbox-radio-switch__icon{margin:0 !important}.files-list[data-v-0d3f1152] .files-list__row:hover,.files-list[data-v-0d3f1152] .files-list__row:focus,.files-list[data-v-0d3f1152] .files-list__row:active,.files-list[data-v-0d3f1152] .files-list__row--active,.files-list[data-v-0d3f1152] .files-list__row--dragover{background-color:var(--color-background-hover);--color-text-maxcontrast: var(--color-main-text)}.files-list[data-v-0d3f1152] .files-list__row:hover>*,.files-list[data-v-0d3f1152] .files-list__row:focus>*,.files-list[data-v-0d3f1152] .files-list__row:active>*,.files-list[data-v-0d3f1152] .files-list__row--active>*,.files-list[data-v-0d3f1152] .files-list__row--dragover>*{--color-border: var(--color-border-dark)}.files-list[data-v-0d3f1152] .files-list__row:hover .favorite-marker-icon svg path,.files-list[data-v-0d3f1152] .files-list__row:focus .favorite-marker-icon svg path,.files-list[data-v-0d3f1152] .files-list__row:active .favorite-marker-icon svg path,.files-list[data-v-0d3f1152] .files-list__row--active .favorite-marker-icon svg path,.files-list[data-v-0d3f1152] .files-list__row--dragover .favorite-marker-icon svg path{stroke:var(--color-background-dark)}.files-list[data-v-0d3f1152] .files-list__row--dragover *{pointer-events:none}.files-list[data-v-0d3f1152] .files-list__row-icon{position:relative;display:flex;overflow:visible;align-items:center;flex:0 0 var(--icon-preview-size);justify-content:center;width:var(--icon-preview-size);height:100%;margin-right:var(--checkbox-padding);color:var(--color-primary-element)}.files-list[data-v-0d3f1152] .files-list__row-icon *{cursor:pointer}.files-list[data-v-0d3f1152] .files-list__row-icon>span{justify-content:flex-start}.files-list[data-v-0d3f1152] .files-list__row-icon>span:not(.files-list__row-icon-favorite) svg{width:var(--icon-preview-size);height:var(--icon-preview-size)}.files-list[data-v-0d3f1152] .files-list__row-icon>span.folder-icon,.files-list[data-v-0d3f1152] .files-list__row-icon>span.folder-open-icon{margin:-3px}.files-list[data-v-0d3f1152] .files-list__row-icon>span.folder-icon svg,.files-list[data-v-0d3f1152] .files-list__row-icon>span.folder-open-icon svg{width:calc(var(--icon-preview-size) + 6px);height:calc(var(--icon-preview-size) + 6px)}.files-list[data-v-0d3f1152] .files-list__row-icon-preview{overflow:hidden;width:var(--icon-preview-size);height:var(--icon-preview-size);border-radius:var(--border-radius);background-repeat:no-repeat;background-position:center;background-size:contain}.files-list[data-v-0d3f1152] .files-list__row-icon-favorite{position:absolute;top:0px;right:-10px}.files-list[data-v-0d3f1152] .files-list__row-name{overflow:hidden;flex:1 1 auto}.files-list[data-v-0d3f1152] .files-list__row-name a{display:flex;align-items:center;width:100%;height:100%;min-width:0}.files-list[data-v-0d3f1152] .files-list__row-name a:focus-visible{outline:none}.files-list[data-v-0d3f1152] .files-list__row-name a:focus .files-list__row-name-text,.files-list[data-v-0d3f1152] .files-list__row-name a:focus-visible .files-list__row-name-text{outline:2px solid var(--color-main-text) !important;border-radius:20px}.files-list[data-v-0d3f1152] .files-list__row-name .files-list__row-name-text{color:var(--color-main-text);padding:5px 10px;margin-left:-10px;display:inline-flex}.files-list[data-v-0d3f1152] .files-list__row-name .files-list__row-name-ext{color:var(--color-text-maxcontrast)}.files-list[data-v-0d3f1152] .files-list__row-rename{width:100%;max-width:600px}.files-list[data-v-0d3f1152] .files-list__row-rename input{width:100%;margin-left:-8px;padding:2px 6px;border-width:2px}.files-list[data-v-0d3f1152] .files-list__row-rename input:invalid{border-color:var(--color-error);color:red}.files-list[data-v-0d3f1152] .files-list__row-actions{width:auto}.files-list[data-v-0d3f1152] .files-list__row-actions~td,.files-list[data-v-0d3f1152] .files-list__row-actions~th{margin:0 var(--cell-margin)}.files-list[data-v-0d3f1152] .files-list__row-actions button .button-vue__text{font-weight:normal}.files-list[data-v-0d3f1152] .files-list__row-action--inline{margin-right:7px}.files-list[data-v-0d3f1152] .files-list__row-mtime,.files-list[data-v-0d3f1152] .files-list__row-size{color:var(--color-text-maxcontrast)}.files-list[data-v-0d3f1152] .files-list__row-size{width:calc(var(--row-height)*1.5);justify-content:flex-end}.files-list[data-v-0d3f1152] .files-list__row-mtime{width:calc(var(--row-height)*2)}.files-list[data-v-0d3f1152] .files-list__row-column-custom{width:calc(var(--row-height)*2)}","",{version:3,sources:["webpack://./apps/files/src/components/FilesListVirtual.vue"],names:[],mappings:"AACA,6BACC,kBAAA,CACA,mBAAA,CAEA,wEAAA,CACA,qBAAA,CACA,sBAAA,CACA,yBAAA,CAEA,aAAA,CACA,aAAA,CACA,WAAA,CAIC,mCACC,YAAA,CACA,qBAAA,CACA,UAAA,CAEA,iBAAA,CAID,iDACC,YAAA,CACA,qBAAA,CAID,gDAEC,eAAA,CACA,UAAA,CACA,KAAA,CAGD,gGAEC,YAAA,CACA,UAAA,CACA,6CAAA,CAID,gCACC,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,UAAA,CACA,gBAAA,CACA,2CAAA,CACA,gBAAA,CAGD,gEACC,YAAA,CACA,kBAAA,CACA,aAAA,CACA,oBAAA,CACA,uBAAA,CACA,wBAAA,CACA,QAAA,CACA,SAAA,CACA,mCAAA,CACA,WAAA,CAKA,0EACC,eAAA,CACA,kBAAA,CACA,sBAAA,CAIF,sDACC,iBAAA,CACA,aAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,QAAA,CACA,UAAA,CACA,UAAA,CACA,6BAAA,CAGD,uDACC,sBAAA,CAEA,8EACC,YAAA,CACA,sBAAA,CAEA,iCAAA,CAEA,iHACC,2BAAA,CACA,4BAAA,CACA,QAAA,CACA,8DAAA,CAGD,2GACC,mBAAA,CAMF,2QAEC,8CAAA,CAGA,gDAAA,CACA,qRACC,wCAAA,CAID,saACC,mCAAA,CAIF,0DAEC,mBAAA,CAKF,mDACC,iBAAA,CACA,YAAA,CACA,gBAAA,CACA,kBAAA,CAEA,iCAAA,CACA,sBAAA,CACA,8BAAA,CACA,WAAA,CAEA,oCAAA,CACA,kCAAA,CAGA,qDACC,cAAA,CAGD,wDACC,0BAAA,CAEA,gGACC,8BAAA,CACA,+BAAA,CAID,6IAEC,WAAA,CACA,qJACC,0CAAA,CACA,2CAAA,CAKH,2DACC,eAAA,CACA,8BAAA,CACA,+BAAA,CACA,kCAAA,CACA,2BAAA,CAEA,0BAAA,CACA,uBAAA,CAGD,4DACC,iBAAA,CACA,OAAA,CACA,WAAA,CAKF,mDAEC,eAAA,CAEA,aAAA,CAEA,qDACC,YAAA,CACA,kBAAA,CAEA,UAAA,CACA,WAAA,CAEA,WAAA,CAGA,mEACC,YAAA,CAID,oLAEC,mDAAA,CACA,kBAAA,CAIF,8EACC,4BAAA,CAEA,gBAAA,CACA,iBAAA,CAEA,mBAAA,CAGD,6EACC,mCAAA,CAKF,qDACC,UAAA,CACA,eAAA,CACA,2DACC,UAAA,CAEA,gBAAA,CACA,eAAA,CACA,gBAAA,CAEA,mEAEC,+BAAA,CACA,SAAA,CAKH,sDACC,UAAA,CAGA,kHAEC,2BAAA,CAIA,+EAEC,kBAAA,CAKH,6DACC,gBAAA,CAGD,uGAEC,mCAAA,CAED,mDACC,iCAAA,CAEA,wBAAA,CAGD,oDACC,+BAAA,CAGD,4DACC,+BAAA",sourcesContent:["\n.files-list {\n\t--row-height: 55px;\n\t--cell-margin: 14px;\n\n\t--checkbox-padding: calc((var(--row-height) - var(--checkbox-size)) / 2);\n\t--checkbox-size: 24px;\n\t--clickable-area: 44px;\n\t--icon-preview-size: 32px;\n\n\tdisplay: block;\n\toverflow: auto;\n\theight: 100%;\n\n\t&::v-deep {\n\t\t// Table head, body and footer\n\t\ttbody {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\twidth: 100%;\n\t\t\t// Necessary for virtual scrolling absolute\n\t\t\tposition: relative;\n\t\t}\n\n\t\t// Before table and thead\n\t\t.files-list__before {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\n\t\t// Table header\n\t\t.files-list__thead {\n\t\t\t// Pinned on top when scrolling\n\t\t\tposition: sticky;\n\t\t\tz-index: 10;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t.files-list__thead,\n\t\t.files-list__tfoot {\n\t\t\tdisplay: flex;\n\t\t\twidth: 100%;\n\t\t\tbackground-color: var(--color-main-background);\n\n\t\t}\n\n\t\ttr {\n\t\t\tposition: relative;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\twidth: 100%;\n\t\t\tuser-select: none;\n\t\t\tborder-bottom: 1px solid var(--color-border);\n\t\t\tuser-select: none;\n\t\t}\n\n\t\ttd, th {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tflex: 0 0 auto;\n\t\t\tjustify-content: left;\n\t\t\twidth: var(--row-height);\n\t\t\theight: var(--row-height);\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\tborder: none;\n\n\t\t\t// Columns should try to add any text\n\t\t\t// node wrapped in a span. That should help\n\t\t\t// with the ellipsis on overflow.\n\t\t\tspan {\n\t\t\t\toverflow: hidden;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t}\n\t\t}\n\n\t\t.files-list__row--failed {\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t\topacity: .1;\n\t\t\tz-index: -1;\n\t\t\tbackground: var(--color-error);\n\t\t}\n\n\t\t.files-list__row-checkbox {\n\t\t\tjustify-content: center;\n\n\t\t\t.checkbox-radio-switch {\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: center;\n\n\t\t\t\t--icon-size: var(--checkbox-size);\n\n\t\t\t\tlabel.checkbox-radio-switch__label {\n\t\t\t\t\twidth: var(--clickable-area);\n\t\t\t\t\theight: var(--clickable-area);\n\t\t\t\t\tmargin: 0;\n\t\t\t\t\tpadding: calc((var(--clickable-area) - var(--checkbox-size)) / 2);\n\t\t\t\t}\n\n\t\t\t\t.checkbox-radio-switch__icon {\n\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.files-list__row {\n\t\t\t&:hover, &:focus, &:active, &--active, &--dragover {\n\t\t\t\t// WCAG AA compliant\n\t\t\t\tbackground-color: var(--color-background-hover);\n\t\t\t\t// text-maxcontrast have been designed to pass WCAG AA over\n\t\t\t\t// a white background, we need to adjust then.\n\t\t\t\t--color-text-maxcontrast: var(--color-main-text);\n\t\t\t\t> * {\n\t\t\t\t\t--color-border: var(--color-border-dark);\n\t\t\t\t}\n\n\t\t\t\t// Hover state of the row should also change the favorite markers background\n\t\t\t\t.favorite-marker-icon svg path {\n\t\t\t\t\tstroke: var(--color-background-dark);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&--dragover * {\n\t\t\t\t// Prevent dropping on row children\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t}\n\n\t\t// Entry preview or mime icon\n\t\t.files-list__row-icon {\n\t\t\tposition: relative;\n\t\t\tdisplay: flex;\n\t\t\toverflow: visible;\n\t\t\talign-items: center;\n\t\t\t// No shrinking or growing allowed\n\t\t\tflex: 0 0 var(--icon-preview-size);\n\t\t\tjustify-content: center;\n\t\t\twidth: var(--icon-preview-size);\n\t\t\theight: 100%;\n\t\t\t// Show same padding as the checkbox right padding for visual balance\n\t\t\tmargin-right: var(--checkbox-padding);\n\t\t\tcolor: var(--color-primary-element);\n\n\t\t\t// Icon is also clickable\n\t\t\t* {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t& > span {\n\t\t\t\tjustify-content: flex-start;\n\n\t\t\t\t&:not(.files-list__row-icon-favorite) svg {\n\t\t\t\t\twidth: var(--icon-preview-size);\n\t\t\t\t\theight: var(--icon-preview-size);\n\t\t\t\t}\n\n\t\t\t\t// Slightly increase the size of the folder icon\n\t\t\t\t&.folder-icon,\n\t\t\t\t&.folder-open-icon {\n\t\t\t\t\tmargin: -3px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\twidth: calc(var(--icon-preview-size) + 6px);\n\t\t\t\t\t\theight: calc(var(--icon-preview-size) + 6px);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-preview {\n\t\t\t\toverflow: hidden;\n\t\t\t\twidth: var(--icon-preview-size);\n\t\t\t\theight: var(--icon-preview-size);\n\t\t\t\tborder-radius: var(--border-radius);\n\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t// Center and contain the preview\n\t\t\t\tbackground-position: center;\n\t\t\t\tbackground-size: contain;\n\t\t\t}\n\n\t\t\t&-favorite {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0px;\n\t\t\t\tright: -10px;\n\t\t\t}\n\t\t}\n\n\t\t// Entry link\n\t\t.files-list__row-name {\n\t\t\t// Prevent link from overflowing\n\t\t\toverflow: hidden;\n\t\t\t// Take as much space as possible\n\t\t\tflex: 1 1 auto;\n\n\t\t\ta {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\t// Fill cell height and width\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\t// Necessary for flex grow to work\n\t\t\t\tmin-width: 0;\n\n\t\t\t\t// Already added to the inner text, see rule below\n\t\t\t\t&:focus-visible {\n\t\t\t\t\toutline: none;\n\t\t\t\t}\n\n\t\t\t\t// Keyboard indicator a11y\n\t\t\t\t&:focus .files-list__row-name-text,\n\t\t\t\t&:focus-visible .files-list__row-name-text {\n\t\t\t\t\toutline: 2px solid var(--color-main-text) !important;\n\t\t\t\t\tborder-radius: 20px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.files-list__row-name-text {\n\t\t\t\tcolor: var(--color-main-text);\n\t\t\t\t// Make some space for the outline\n\t\t\t\tpadding: 5px 10px;\n\t\t\t\tmargin-left: -10px;\n\t\t\t\t// Align two name and ext\n\t\t\t\tdisplay: inline-flex;\n\t\t\t}\n\n\t\t\t.files-list__row-name-ext {\n\t\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\t}\n\t\t}\n\n\t\t// Rename form\n\t\t.files-list__row-rename {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 600px;\n\t\t\tinput {\n\t\t\t\twidth: 100%;\n\t\t\t\t// Align with text, 0 - padding - border\n\t\t\t\tmargin-left: -8px;\n\t\t\t\tpadding: 2px 6px;\n\t\t\t\tborder-width: 2px;\n\n\t\t\t\t&:invalid {\n\t\t\t\t\t// Show red border on invalid input\n\t\t\t\t\tborder-color: var(--color-error);\n\t\t\t\t\tcolor: red;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.files-list__row-actions {\n\t\t\twidth: auto;\n\n\t\t\t// Add margin to all cells after the actions\n\t\t\t& ~ td,\n\t\t\t& ~ th {\n\t\t\t\tmargin: 0 var(--cell-margin);\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t\t.button-vue__text {\n\t\t\t\t\t// Remove bold from default button styling\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.files-list__row-action--inline {\n\t\t\tmargin-right: 7px;\n\t\t}\n\n\t\t.files-list__row-mtime,\n\t\t.files-list__row-size {\n\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t}\n\t\t.files-list__row-size {\n\t\t\twidth: calc(var(--row-height) * 1.5);\n\t\t\t// Right align content/text\n\t\t\tjustify-content: flex-end;\n\t\t}\n\n\t\t.files-list__row-mtime {\n\t\t\twidth: calc(var(--row-height) * 2);\n\t\t}\n\n\t\t.files-list__row-column-custom {\n\t\t\twidth: calc(var(--row-height) * 2);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),t.Z=s},72656:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".app-navigation-entry__settings-quota--not-unlimited[data-v-b1323a64] .app-navigation-entry__name{margin-top:-6px}.app-navigation-entry__settings-quota progress[data-v-b1323a64]{position:absolute;bottom:12px;margin-left:44px;width:calc(100% - 44px - 22px)}","",{version:3,sources:["webpack://./apps/files/src/components/NavigationQuota.vue"],names:[],mappings:"AAIC,kGACC,eAAA,CAGD,gEACC,iBAAA,CACA,WAAA,CACA,gBAAA,CACA,8BAAA",sourcesContent:["\n// User storage stats display\n.app-navigation-entry__settings-quota {\n\t// Align title with progress and icon\n\t&--not-unlimited::v-deep .app-navigation-entry__name {\n\t\tmargin-top: -6px;\n\t}\n\n\tprogress {\n\t\tposition: absolute;\n\t\tbottom: 12px;\n\t\tmargin-left: 44px;\n\t\twidth: calc(100% - 44px - 22px);\n\t}\n}\n"],sourceRoot:""}]),t.Z=s},30192:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".template-picker__item[data-v-0859a92c]{display:flex}.template-picker__label[data-v-0859a92c]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-0859a92c],.template-picker__label *[data-v-0859a92c]{cursor:pointer;user-select:none}.template-picker__label[data-v-0859a92c]::before{display:none !important}.template-picker__preview[data-v-0859a92c]{display:block;overflow:hidden;flex:1 1;width:var(--width);min-height:var(--height);max-height:var(--height);padding:0;border:var(--border) solid var(--color-border);border-radius:var(--border-radius-large)}input:checked+label>.template-picker__preview[data-v-0859a92c]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-0859a92c]{display:flex}.template-picker__image[data-v-0859a92c]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-0859a92c]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-0859a92c]{overflow:hidden;max-width:calc(var(--width) + 4px);padding:var(--margin);white-space:nowrap;text-overflow:ellipsis}","",{version:3,sources:["webpack://./apps/files/src/components/TemplatePreview.vue"],names:[],mappings:"AAGC,wCACC,YAAA,CAGD,yCACC,YAAA,CAEA,kBAAA,CACA,QAAA,CACA,qBAAA,CAEA,oFACC,cAAA,CACA,gBAAA,CAGD,iDACC,uBAAA,CAIF,2CACC,aAAA,CACA,eAAA,CAEA,QAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,SAAA,CACA,8CAAA,CACA,wCAAA,CAEA,+DACC,yCAAA,CAGD,mDAEC,YAAA,CAIF,yCACC,cAAA,CACA,6CAAA,CAEA,gBAAA,CAID,2EACC,2BAAA,CAEA,WAAA,CACA,yCAAA,CAEA,kBAAA,CAGD,yCACC,eAAA,CAEA,kCAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA",sourcesContent:["\n\n.template-picker {\n\t&__item {\n\t\tdisplay: flex;\n\t}\n\n\t&__label {\n\t\tdisplay: flex;\n\t\t// Align in the middle of the grid\n\t\talign-items: center;\n\t\tflex: 1 1;\n\t\tflex-direction: column;\n\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&::before {\n\t\t\tdisplay: none !important;\n\t\t}\n\t}\n\n\t&__preview {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\t// Stretch so all entries are the same width\n\t\tflex: 1 1;\n\t\twidth: var(--width);\n\t\tmin-height: var(--height);\n\t\tmax-height: var(--height);\n\t\tpadding: 0;\n\t\tborder: var(--border) solid var(--color-border);\n\t\tborder-radius: var(--border-radius-large);\n\n\t\tinput:checked + label > & {\n\t\t\tborder-color: var(--color-primary-element);\n\t\t}\n\n\t\t&--failed {\n\t\t\t// Make sure to properly center fallback icon\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n\n\t&__image {\n\t\tmax-width: 100%;\n\t\tbackground-color: var(--color-main-background);\n\n\t\tobject-fit: cover;\n\t}\n\n\t// Failed preview, fallback to mime icon\n\t&__preview--failed &__image {\n\t\twidth: calc(var(--margin) * 8);\n\t\t// Center mime icon\n\t\tmargin: auto;\n\t\tbackground-color: transparent !important;\n\n\t\tobject-fit: initial;\n\t}\n\n\t&__title {\n\t\toverflow: hidden;\n\t\t// also count preview border\n\t\tmax-width: calc(var(--width) + 2*2px);\n\t\tpadding: var(--margin);\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n"],sourceRoot:""}]),t.Z=s},12356:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".app-content[data-v-83e51916]{display:flex;overflow:hidden;flex-direction:column;max-height:100%}.files-list__header[data-v-83e51916]{display:flex;align-content:center;flex:0 0;margin:4px 4px 4px 50px}.files-list__header>*[data-v-83e51916]{flex:0 0}.files-list__header-share-button[data-v-83e51916]{opacity:.3}.files-list__header-share-button--shared[data-v-83e51916]{opacity:1}.files-list__refresh-icon[data-v-83e51916]{flex:0 0 44px;width:44px;height:44px}.files-list__loading-icon[data-v-83e51916]{margin:auto}","",{version:3,sources:["webpack://./apps/files/src/views/FilesList.vue"],names:[],mappings:"AACA,8BAEC,YAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAOA,qCACC,YAAA,CACA,oBAAA,CAEA,QAAA,CAEA,uBAAA,CACA,uCAGC,QAAA,CAGD,kDACC,UAAA,CACA,0DACC,SAAA,CAKH,2CACC,aAAA,CACA,UAAA,CACA,WAAA,CAGD,2CACC,WAAA",sourcesContent:["\n.app-content {\n\t// Virtual list needs to be full height and is scrollable\n\tdisplay: flex;\n\toverflow: hidden;\n\tflex-direction: column;\n\tmax-height: 100%;\n}\n\n$margin: 4px;\n$navigationToggleSize: 50px;\n\n.files-list {\n\t&__header {\n\t\tdisplay: flex;\n\t\talign-content: center;\n\t\t// Do not grow or shrink (vertically)\n\t\tflex: 0 0;\n\t\t// Align with the navigation toggle icon\n\t\tmargin: $margin $margin $margin $navigationToggleSize;\n\t\t> * {\n\t\t\t// Do not grow or shrink (horizontally)\n\t\t\t// Only the breadcrumbs shrinks\n\t\t\tflex: 0 0;\n\t\t}\n\n\t\t&-share-button {\n\t\t\topacity: .3;\n\t\t\t&--shared {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__refresh-icon {\n\t\tflex: 0 0 44px;\n\t\twidth: 44px;\n\t\theight: 44px;\n\t}\n\n\t&__loading-icon {\n\t\tmargin: auto;\n\t}\n}\n\n"],sourceRoot:""}]),t.Z=s},24924:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".app-navigation[data-v-5b025a97] .app-navigation-entry-icon{background-repeat:no-repeat;background-position:center}.app-navigation>ul.app-navigation__list[data-v-5b025a97]{padding-bottom:var(--default-grid-baseline, 4px)}.app-navigation-entry__settings[data-v-5b025a97]{height:auto !important;overflow:hidden !important;padding-top:0 !important;flex:0 0 auto}","",{version:3,sources:["webpack://./apps/files/src/views/Navigation.vue"],names:[],mappings:"AAEA,4DACC,2BAAA,CACA,0BAAA,CAGD,yDAEC,gDAAA,CAGD,iDACC,sBAAA,CACA,0BAAA,CACA,wBAAA,CAEA,aAAA",sourcesContent:["\n// TODO: remove when https://github.com/nextcloud/nextcloud-vue/pull/3539 is in\n.app-navigation::v-deep .app-navigation-entry-icon {\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n}\n\n.app-navigation > ul.app-navigation__list {\n\t// Use flex gap value for more elegant spacing\n\tpadding-bottom: var(--default-grid-baseline, 4px);\n}\n\n.app-navigation-entry__settings {\n\theight: auto !important;\n\toverflow: hidden !important;\n\tpadding-top: 0 !important;\n\t// Prevent shrinking or growing\n\tflex: 0 0 auto;\n}\n"],sourceRoot:""}]),t.Z=s},72277:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".setting-link[data-v-7aaa0c4e]:hover{text-decoration:underline}","",{version:3,sources:["webpack://./apps/files/src/views/Settings.vue"],names:[],mappings:"AACA,qCACC,yBAAA",sourcesContent:["\n.setting-link:hover {\n\ttext-decoration: underline;\n}\n"],sourceRoot:""}]),t.Z=s},54654:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,".templates-picker__form[data-v-d46f1dc6]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-d46f1dc6]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-d46f1dc6]{display:grid;grid-gap:calc(var(--margin)*2);grid-auto-columns:1fr;max-width:calc(var(--fullwidth)*6);grid-template-columns:repeat(auto-fit, var(--fullwidth));grid-auto-rows:1fr;justify-content:center}.templates-picker__buttons[data-v-d46f1dc6]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0, var(--gradient-main-background))}.templates-picker__buttons button[data-v-d46f1dc6],.templates-picker__buttons input[type=submit][data-v-d46f1dc6]{height:44px}.templates-picker[data-v-d46f1dc6] .modal-container{position:relative}.templates-picker__loading[data-v-d46f1dc6]{position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;margin:0;background-color:var(--color-main-background-translucent)}","",{version:3,sources:["webpack://./apps/files/src/views/TemplatePicker.vue"],names:[],mappings:"AAEC,yCACC,6BAAA,CAEA,gBAAA,CAEA,4CACC,iBAAA,CACA,gBAAA,CACA,4CAAA,CAIF,yCACC,YAAA,CACA,8BAAA,CACA,qBAAA,CAEA,kCAAA,CACA,wDAAA,CAEA,kBAAA,CAEA,sBAAA,CAGD,4CACC,YAAA,CACA,mBAAA,CACA,2CAAA,CACA,eAAA,CACA,QAAA,CACA,oEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,MAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,yDAAA",sourcesContent:["\n.templates-picker {\n\t&__form {\n\t\tpadding: calc(var(--margin) * 2);\n\t\t// Will be handled by the buttons\n\t\tpadding-bottom: 0;\n\n\t\th2 {\n\t\t\ttext-align: center;\n\t\t\tfont-weight: bold;\n\t\t\tmargin: var(--margin) 0 calc(var(--margin) * 2);\n\t\t}\n\t}\n\n\t&__list {\n\t\tdisplay: grid;\n\t\tgrid-gap: calc(var(--margin) * 2);\n\t\tgrid-auto-columns: 1fr;\n\t\t// We want maximum 5 columns. Putting 6 as we don't count the grid gap. So it will always be lower than 6\n\t\tmax-width: calc(var(--fullwidth) * 6);\n\t\tgrid-template-columns: repeat(auto-fit, var(--fullwidth));\n\t\t// Make sure all rows are the same height\n\t\tgrid-auto-rows: 1fr;\n\t\t// Center the columns set\n\t\tjustify-content: center;\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tjustify-content: end;\n\t\tpadding: calc(var(--margin) * 2) var(--margin);\n\t\tposition: sticky;\n\t\tbottom: 0;\n\t\tbackground-image: linear-gradient(0, var(--gradient-main-background));\n\n\t\tbutton, input[type='submit'] {\n\t\t\theight: 44px;\n\t\t}\n\t}\n\n\t// Make sure we're relative for the loading emptycontent on top\n\t::v-deep .modal-container {\n\t\tposition: relative;\n\t}\n\n\t&__loading {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin: 0;\n\t\tbackground-color: var(--color-main-background-translucent);\n\t}\n}\n\n"],sourceRoot:""}]),t.Z=s},45406:function(e,t,n){"use strict";var r=n(87537),a=n.n(r),o=n(23645),s=n.n(o)()(a());s.push([e.id,"\n/* @keyframes preview-gradient-fade {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n} */\n","",{version:3,sources:["webpack://./apps/files/src/components/FileEntry.vue"],names:[],mappings:";AA+iCA;;;;;;;;;;GAUA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2023 John Molakvoæ \n -\n - @author John Molakvoæ \n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see .\n -\n --\x3e\n\n\n\n