univ-fs-webnfs
Version:
The universal Filesystem for Web File System Access API (Native File System API)
1 lines • 22.2 kB
JavaScript
(()=>{"use strict";var t,e,r,n,a={78:(t,e,r)=>{r.d(e,{_:()=>o,f:()=>i});var n=r(888),a=r(706);function o(){return i._ANY_CONV}class i{async convert(t,e){if((0,n.xb)(t,e))return this.empty();const r=await this._convert(t,this._initOptions(e));if(void 0!==r)return r;throw new Error(`[${this.constructor.name}] Illegal input: ${(0,n.oL)(t)}`)}isEmpty(t,e){return(0,n.xb)(t,e)&&this._isEmpty(t)}async merge(t,e){return t&&0!==t.length?1===t.length?t[0]:await this._merge(t,this._initOptions(e)):this.empty()}async size(t,e){return this.isEmpty(t,e)?0:await this._size(t,this._initOptions(e))}async toArrayBuffer(t,e){return this.isEmpty(t)?n.vl:await this._toArrayBuffer(t,e)}async toBase64(t,e){return this.isEmpty(t,e)?"":await this._toBase64(t,e)}async toText(t,e){return this.isEmpty(t,e)?"":await this._toText(t,e)}async toUint8Array(t,e){return this.isEmpty(t,e)?n.RJ:await this._toUint8Array(t,e)}_initOptions(t){t||(t={}),null==t.bufferSize&&(t.bufferSize=n.OC);const e=t.bufferSize%6;if(0!==e&&(t.bufferSize-=e,console.info(`"bufferSize" was modified to ${t.bufferSize}. ("bufferSize" must be divisible by 6.)`)),t.srcStringType||(t.srcStringType="text"),t.bufferToTextCharset||(t.bufferToTextCharset="utf8"),t.textToBufferCharset||(t.textToBufferCharset="utf8"),"file"===t.dstURLType){if(!a.UG)throw new Error("File URL is not supported")}else if("blob"===t.dstURLType&&(!a.eo||"function"!=typeof URL?.createObjectURL))throw new Error("Blob URL is not supported");return t}}},706:(t,e,r)=>{let n,a,o,i,s,c,f,u;r.d(e,{Db:()=>m,EV:()=>d,FA:()=>O,FQ:()=>R,HK:()=>z,Mn:()=>b,Os:()=>E,QM:()=>M,S6:()=>U,SH:()=>L,TO:()=>T,UG:()=>h,aP:()=>j,ai:()=>$,br:()=>g,eo:()=>w,hR:()=>C,jU:()=>l,lJ:()=>x,qu:()=>v,tb:()=>k,vg:()=>B,vj:()=>P,w$:()=>p,wQ:()=>N,zH:()=>Q,zi:()=>_});let l=!1,y=!1,h=!1;"undefined"!=typeof document?l=!0:"undefined"!=typeof navigator&&"ReactNative"===navigator.product?y=!0:h=!0;let d,w=!1,p=!1,b=!1,_=!1,g=!1,m=!1;"function"==typeof Blob&&(w=!0,d=new Blob([]),null!=Blob.prototype.text&&(p=!0),null!=Blob.prototype.stream&&(b=!0),null!=Blob.prototype.arrayBuffer&&(_=!0),y||(g=null!=FileReader.prototype.readAsArrayBuffer,m=null!=FileReader.prototype.readAsBinaryString));let v=!1,A=!1;"function"==typeof ReadableStream&&(v=!0,A=!0);let T,S=!1;function U(t,e){return new Promise(((r,n)=>{const a=new FileReader;a.onerror=function(t){n(a.error||t)},a.onload=function(){r(e(a.result))},t(a)}))}async function B(t,e){const r=t.getReader();try{let n;do{n=await r.read();const t=n.value;if(t&&!await e(t))break}while(!n.done);r.releaseLock(),j(t)}catch(e){r.releaseLock(),j(t,e)}}function E(t){return v&&null!=t&&"function"==typeof t.getReader&&"function"==typeof t.cancel}function x(t){return A&&null!=t&&"function"==typeof t.getWriter&&"function"==typeof t.close}function O(t){return h&&null!=t&&"function"==typeof t.pipe&&t.readable}async function L(t,e){if("function"==typeof t.pipeTo)await t.pipeTo(e);else{const r=e.getWriter();await B(t,(async t=>(await r.write(t),!0)))}}function z(t){return h&&null!=t&&"function"==typeof t.pipe&&t.writable}function P(t,e){return new Promise(((r,n)=>{t.once("error",n),e.once("error",n),e.once("finish",r),t.pipe(e)}))}async function R(t,e){if(n||(n=(await r.e(620).then(r.t.bind(r,620,23))).Writable),t.destroyed)return;const a=new n({write(t,r,n){e(t).then((t=>{t?n():a.destroy()})).catch((t=>{a.destroy(t)}))}});await P(t,a)}function j(t,e){t&&(O(t)||z(t)?t.destroy(e):E(t)?e?t.cancel(e).catch((t=>console.debug(t))):t.cancel().catch((t=>console.debug(t))):x(t)&&(e?t.abort(e).catch((t=>console.debug(t))):t.close().catch((t=>console.debug(t)))))}async function C(t){a||(a=(await r.e(883).then(r.t.bind(r,883,19))).fileURLToPath),i||(i=(await r.e(109).then(r.t.bind(r,109,23))).stat);const e=a(t);return await new Promise(((t,r)=>{i(e,((e,n)=>{e?r(e):t(n.size)}))}))}async function k(t){a||(a=(await r.e(883).then(r.t.bind(r,883,19))).fileURLToPath),s||(s=(await r.e(109).then(r.t.bind(r,109,23))).createReadStream);const e=a(t);return s(e)}async function N(t,e){u||(u=(await r.e(438).then(r.t.bind(r,438,23))).join),f||(f=(await r.e(898).then(r.t.bind(r,898,23))).tmpdir),c||(c=(await r.e(109).then(r.t.bind(r,109,23))).createWriteStream),o||(o=(await r.e(883).then(r.t.bind(r,883,19))).pathToFileURL),e=void 0!==e?e.startsWith(".")?e:"."+e:"";const n=u(f(),Date.now().toString()+e),a=c("dest.txt");return await P(t,a),o(n).href}function Q(t){return S&&t instanceof Buffer}function M(t){return h?Buffer.alloc(t):new Uint8Array(t)}function $(t){return h?Buffer.from(t):new Uint8Array(t)}"function"==typeof Buffer&&(S=!0,T=Buffer.alloc(0))},413:(t,e,r)=>{r.d(e,{R:()=>a,p:()=>i});var n=r(706);function a(t){const e=t.indexOf(",");return 0<=e?t.substring(e+1):t}let o;async function i(){return o||(o=n.UG?new((await r.e(77).then(r.bind(r,77))).NodeTextHelper):new((await r.e(215).then(r.bind(r,215))).TextHelper)),o}},888:(t,e,r)=>{r.d(e,{OC:()=>n,Q8:()=>s,RJ:()=>o,az:()=>c,oL:()=>u,og:()=>i,vl:()=>a,xb:()=>f});const n=98304,a=new ArrayBuffer(0),o=new Uint8Array(0);function i(t,e){let r,n=t.start??0;return null!=e&&e<n&&(n=e),null==t.length?null!=e&&(r=e):r=n+t.length,null!=e&&null!=r&&e<r&&(r=e),null!=r&&r<n&&(r=n),{start:n,end:r}}function s(t){return delete(t={...t}).start,delete t.length,t}function c(t){return null==t.start&&null==t.length}function f(t,e){return!t||0===e?.length}function u(t){const e=typeof t;return"function"===e||"object"===e?t?.constructor?.name||String.toString.call(t):e}},272:(t,e,r)=>{r.d(e,{aP:()=>a.aP,et:()=>S});for(var n=r(888),a=r(706),o=r(78),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<i.length;c++)s[i.charCodeAt(c)]=c;var f=function(t){var e,r=new Uint8Array(t),n=r.length,a="";for(e=0;e<n;e+=3)a+=i[r[e]>>2],a+=i[(3&r[e])<<4|r[e+1]>>4],a+=i[(15&r[e+1])<<2|r[e+2]>>6],a+=i[63&r[e+2]];return n%3==2?a=a.substring(0,a.length-1)+"=":n%3==1&&(a=a.substring(0,a.length-2)+"=="),a},u=r(413);const l="function"==typeof SharedArrayBuffer;class y extends o.f{constructor(){super(...arguments),this.type="arraybuffer"}empty(){return n.vl}is(t){return t instanceof ArrayBuffer||l&&t instanceof SharedArrayBuffer}async _convert(t,e){const r=(0,o._)()._find(t,e);return await r.toArrayBuffer(t,e)}_size(t){return Promise.resolve(t.byteLength)}_getStartEnd(t,e){return Promise.resolve((0,n.og)(e,t.byteLength))}_isEmpty(t){return 0===t.byteLength}_merge(t){const e=t.reduce(((t,e)=>t+e.byteLength),0),r=(0,a.QM)(e);let n=0;for(const e of t)r.set((0,a.ai)(e),n),n+=e.byteLength;return Promise.resolve(r.buffer)}async _toArrayBuffer(t,e){if((0,n.az)(e))return t;const{start:r,end:a}=await this._getStartEnd(t,e);return t.slice(r,a)}async _toBase64(t,e){const r=await this._toUint8Array(t,e);return f(r)}async _toText(t,e){const r=await this._toUint8Array(t,e),n=await(0,u.p)();return await n.bufferToText(r,e)}async _toUint8Array(t,e){const r=await this._toArrayBuffer(t,e);return a.UG?Buffer.from(r):new Uint8Array(r)}}class h extends o.f{constructor(){super(...arguments),this.type="base64"}empty(){return""}is(t,e){return"string"==typeof t&&"base64"===e.srcStringType}async _convert(t,e){const r=(0,o._)()._find(t,e);return await r.toBase64(t,e)}async _getStartEnd(t,e){const r=await this.size(t);return(0,n.og)(e,r)}_isEmpty(t){return!t}async _merge(t,e){if(a.jU){const r=await(0,o._)().merge("blob",t,e);return await this.convert(r)}{const r=await(0,o._)().merge("uint8array",t,e);return await this.convert(r)}}_size(t){const e=t.length,r=3*e/4;let n=0;for(let r=e-1;"="===t[r];r--)n++;const a=r-n;return Promise.resolve(a)}async _toArrayBuffer(t,e){const r=function(t){var e,r,n,a,o,i=.75*t.length,c=t.length,f=0;"="===t[t.length-1]&&(i--,"="===t[t.length-2]&&i--);var u=new ArrayBuffer(i),l=new Uint8Array(u);for(e=0;e<c;e+=4)r=s[t.charCodeAt(e)],n=s[t.charCodeAt(e+1)],a=s[t.charCodeAt(e+2)],o=s[t.charCodeAt(e+3)],l[f++]=r<<2|n>>4,l[f++]=(15&n)<<4|a>>2,l[f++]=(3&a)<<6|63&o;return u}(t);if((0,n.az)(e))return r;const{start:a,end:o}=await this._getStartEnd(t,e);return r.slice(a,o)}async _toBase64(t,e){if((0,n.az)(e))return t;const r=await this._toUint8Array(t,e);return await this._convert(r,(0,n.Q8)(e))}async _toText(t,e){const r=await this._toUint8Array(t,e),n=await(0,u.p)();return await n.bufferToText(r,e)}async _toUint8Array(t,e){const r=await this._toArrayBuffer(t,e);return(0,a.ai)(r)}}class d extends o.f{constructor(){super(...arguments),this.type="binary"}empty(){return""}is(t,e){return"string"==typeof t&&"binary"===e.srcStringType}async _convert(t,e){if("string"==typeof t&&"binary"===e.srcStringType){if((0,n.az)(e))return t;const{start:r,end:a}=await this._getStartEnd(t,e);return t.substring(r,a)}if((0,o._)().is("blob",t,e)&&a.Db){const r=(0,n.og)(e,t.size);let o=r.start;const i=r.end,s=e.bufferSize,c=[];for(;o<i;o+=s){const e=t.slice(o,o+s),r=await(0,a.S6)((t=>t.readAsBinaryString(e)),(t=>t));c.push(r)}return c.join("")}const r=await(0,o._)().convert("uint8array",t,e);return Array.from(r,(t=>String.fromCharCode(t))).join("")}_getStartEnd(t,e){return Promise.resolve((0,n.og)(e,t.length))}_isEmpty(t){return!t}_merge(t){return Promise.resolve(t.join(""))}_size(t){return Promise.resolve(t.length)}async _toArrayBuffer(t,e){const r=await this._toUint8Array(t,e);return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async _toBase64(t,e){const r=await this._toUint8Array(t,e);return f(r)}async _toText(t,e){const r=await this._toUint8Array(t,e),n=await(0,u.p)();return await n.bufferToText(r,e)}async _toUint8Array(t,e){if(!(0,n.az)(e)){const r=await this._getStartEnd(t,e),n=r.start,a=r.end;t=t.substring(n,a)}return a.UG?Buffer.from(t,"binary"):Uint8Array.from(t.split(""),(t=>t.charCodeAt(0)))}}class w{constructor(t){this.key=t,this.type="unknown"}convert(){throw new Error("convert method not implemented: "+this.key)}empty(){throw new Error("Method not implemented.")}getStartEnd(){throw new Error("Method not implemented.")}is(t){return!1}merge(){throw new Error("merge method not implemented: "+this.key)}size(){throw new Error("getSize method not implemented: "+this.key)}toArrayBuffer(){throw new Error("toArrayBuffer method not implemented: "+this.key)}toBase64(){throw new Error("toBase64 method not implemented: "+this.key)}toText(){throw new Error("toText method not implemented: "+this.key)}toUint8Array(){throw new Error("toUint8Array method not implemented: "+this.key)}}const p=[];for(let t=0;t<=255;++t){const e=t.toString(16).padStart(2,"0");p.push(e)}const b="0123456789abcdef",_={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};class g extends o.f{constructor(){super(...arguments),this.type="hex"}empty(){return""}is(t,e){return"string"==typeof t&&"hex"===e.srcStringType}async _convert(t,e){if("string"==typeof t&&"hex"===e.srcStringType){if((0,n.az)(e))return t;const{start:r,end:a}=await this._getStartEnd(t,e);return t.slice(2*r,a?2*a:void 0)}const r=await(0,o._)().convert("uint8array",t,e);return Array.from(r).map((t=>b[t>>4]+b[15&t])).join("")}_getStartEnd(t,e){return Promise.resolve((0,n.og)(e,t.length/2))}_isEmpty(t){return!t}async _merge(t){return Promise.resolve(t.join(""))}_size(t){return Promise.resolve(t.length/2)}async _toArrayBuffer(t,e){const r=await this._toUint8Array(t,e);return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async _toBase64(t,e){const r=await this._toUint8Array(t,e);return await(0,o._)().convert("base64",r,(0,n.Q8)(e))}async _toText(t,e){const r=await this._toUint8Array(t,e),n=await(0,u.p)();return await n.bufferToText(r,e)}async _toUint8Array(t,e){const r=await this._getStartEnd(t,e);let n=r.start;const o=r.end,i=o-n,s=(0,a.QM)(i);for(;n<o;n++){const e=t[2*n],r=_[e],a=t[2*n+1],o=_[a];if(null==r||null==o)break;s[n]=r<<4|o}return s}}class m extends o.f{constructor(){super(...arguments),this.type="text"}empty(){return""}is(t,e){return"string"==typeof t&&"text"===e.srcStringType}async _convert(t,e){const r=(0,o._)()._find(t,e);return await r.toText(t,e)}async _getStartEnd(t,e){const r=await this.size(t,e);return(0,n.og)(e,r)}_isEmpty(t){return!t}_merge(t){return Promise.resolve(t.join(""))}async _size(t,e){return(await this._toUint8Array(t,(0,n.Q8)(e))).byteLength}async _toArrayBuffer(t,e){const r=await this._toUint8Array(t,e);return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async _toBase64(t,e){const r=await this._toUint8Array(t,e);return await(0,o._)()._of("uint8array").toBase64(r,(0,n.Q8)(e))}async _toText(t,e){if(e.bufferToTextCharset===e.textToBufferCharset&&(0,n.az)(e))return t;const r=await this._toUint8Array(t,e),a=await(0,u.p)();return await a.bufferToText(r,e)}async _toUint8Array(t,e){const r=await(0,u.p)();return await r.textToBuffer(t,e)}}class v extends o.f{constructor(){super(...arguments),this.type="uint8array"}empty(){return n.RJ}is(t){return t instanceof Uint8Array||(0,a.zH)(t)}async _convert(t,e){if(a.UG&&"string"==typeof t){const r=e.srcStringType;let n;if("base64"===r)n=Buffer.from(t,"base64");else if("binary"===r)n=Buffer.from(t,"binary");else if("hex"===r)n=Buffer.from(t,"hex");else if("text"===r){const r=await(0,u.p)();n=await r.textToBuffer(t,e)}if(n){const{start:t,end:r}=await this._getStartEnd(n,e);return n.subarray(t,r)}}const r=await(0,o._)().convert("arraybuffer",t,e);return(0,a.ai)(r)}_getStartEnd(t,e){return Promise.resolve((0,n.og)(e,t.byteLength))}_isEmpty(t){return 0===t.byteLength}_merge(t){if(a.UG)return Promise.resolve(Buffer.concat(t));const e=t.reduce(((t,e)=>t+e.byteLength),0),r=(0,a.QM)(e);let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return Promise.resolve(r)}_size(t){return Promise.resolve(t.byteLength)}async _toArrayBuffer(t,e){const r=await this._toUint8Array(t,e);return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async _toBase64(t,e){const r=await this._toUint8Array(t,e);return f(r)}async _toText(t,e){const r=await this._toUint8Array(t,e),n=await(0,u.p)();return await n.bufferToText(r,e)}async _toUint8Array(t,e){if((0,n.az)(e))return t;const{start:r,end:a}=await this._getStartEnd(t,e);return t.subarray(r,a)}}class A extends o.f{constructor(){super(),this.type="url","function"!=typeof fetch&&r.e(911).then(r.t.bind(r,911,23)).then((t=>{globalThis.fetch=t.default})).catch((t=>console.warn(t)))}empty(){return""}is(t,e){return"string"==typeof t&&"url"===e.srcStringType}async _convert(t,e){let r;const n=e.dstURLType;if("file"===n&&a.wQ){const n=await(0,o._)().convert("readable",t,e);r=await(0,a.wQ)(n)}else if("blob"===n){const n=await(0,o._)().convert("blob",t,e);r=URL.createObjectURL(n)}else r="data:application/octet-stream;base64,"+await(0,o._)().convert("base64",t,e);return r}async _getStartEnd(t,e){const r=await this._size(t);return(0,n.og)(e,r)}_isEmpty(t){return!/^(file|http|https|blob|data):/.test(t)}async _merge(t,e){if(a.UG){const r=await(0,o._)().merge("readable",t,e);return await this._convert(r,{...e,dstURLType:e.dstURLType||"file"})}if(a.jU){const r=await(0,o._)().merge("readablestream",t,e);return await this._convert(r,{...e,dstURLType:e.dstURLType||"blob"})}{const r=await(0,o._)().merge("arraybuffer",t,e);return await this._convert(r,{...e,dstURLType:"data"})}}async _size(t){if(t.startsWith("file:")&&a.hR)return await(0,a.hR)(t);if(t.startsWith("blob:")&&a.jU){const e=await fetch(t);return(await e.blob()).size}if(t.startsWith("data:")){const e=(0,u.R)(t);return await(0,o._)()._of("base64").size(e)}{const e=(await fetch(t,{method:"HEAD"})).headers.get("Content-Length"),r=Math.trunc(e);if(!isNaN(r))return r}throw new Error(`Cannot get size of ${t}`)}async _toArrayBuffer(t,e){if(t.startsWith("file:")&&a.tb){const r=await(0,a.tb)(t);return await(0,o._)()._of("readable").toArrayBuffer(r,e)}{const r=await fetch(t);return await(0,o._)()._of("readablestream").toArrayBuffer(r.body,e)}}async _toBase64(t,e){const r=await this._toUint8Array(t,e);return await(0,o._)()._of("uint8array").toBase64(r,(0,n.Q8)(e))}async _toText(t,e){const r=await this._toArrayBuffer(t,e);return(0,o._)()._of("text").convert(r,(0,n.Q8)(e))}async _toUint8Array(t,e){const r=await this._toArrayBuffer(t,e);return(0,a.ai)(r)}}class T{constructor(t){this.converters=t}_empty(t){return"string"==typeof t?"":this._find(t).empty()}_emptyOf(t){return this._of(t).empty()}_find(t,e){for(const r of this.converters.values())if(r.is(t,e))return r;throw new Error(`No converter: input=${(0,n.oL)(t)}, srcStringType=${e?.srcStringType}`)}_of(t){const e=this.converters.get(t);if(e)return e;throw new Error(`No converter: type=${t}`)}async convert(t,e,r){if(0===r?.length)return this._emptyOf(t);const n=this._of(t);return await n.convert(e,r)}is(t,e,r){return this._of(t).is(e,r)}async merge(t,e,r){const n=await this._convertAll(t,e,r),a=this._of(t);return await a.merge(n,r)}async pipe(t,e,r){if((0,a.HK)(e)){const n=await this._of("readable").convert(t,r);try{await(0,a.vj)(n,e)}catch(t){(0,a.aP)(e,t)}}else{if(!(0,a.lJ)(e))throw new Error("Illegal output type: "+(0,n.oL)(e));{let n;try{n=await this._of("readablestream").convert(t,r),await(0,a.SH)(n,e),(0,a.aP)(e)}catch(t){(0,a.aP)(e,t)}}}}async size(t,e){const r=this._find(t,e);return await r.size(t,e)}async slice(t,e){if("number"!=typeof e.start&&"number"!=typeof e.length)throw new Error("Illegal argument: options.start and options.length are undefined.");if((0,n.xb)(t,e))return Promise.resolve(this._empty(t));const r=this._find(t,e);if(r)return await r.convert(t,e);throw new Error("Illegal output type: "+(0,n.oL)(t))}async _convertAll(t,e,r){const n=[];for(const a of e){const e=await this.convert(t,a,r);n.push(e)}return n}}const S=async()=>{if(o.f._ANY_CONV)return o.f._ANY_CONV;const t=new Map;if(t.set("base64",new h),t.set("binary",new d),t.set("hex",new g),t.set("url",new A),t.set("text",new m),t.set("arraybuffer",new y),t.set("uint8array",new v),a.eo){const e=new((await r.e(759).then(r.bind(r,759))).BlobConverter);t.set("blob",e)}else t.set("blob",new w("Blob"));try{const e=new((await r.e(90).then(r.bind(r,90))).ReadableConverter);t.set("readable",e)}catch{t.set("readable",new w("Readable"))}if(a.qu){const e=new((await r.e(953).then(r.bind(r,953))).ReadableStreamConverter);t.set("readablestream",e)}else t.set("readablestream",new w("ReadableStream"));const e=new T(t);return o.f._ANY_CONV=e,o.f._ANY_CONV}},804:(t,e)=>{new Int32Array(64);new Uint8Array(new Uint16Array([65279]).buffer)[0]}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,loaded:!1,exports:{}};return a[t].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.m=a,i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);i.r(a);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&r;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>r[t]));return o.default=()=>r,i.d(a,o),a},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,r)=>(i.f[r](t,e),e)),[])),i.u=t=>t+".univ-fs-webnfs.js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},n="univ-fs-webnfs:",i.l=(t,e,a,o)=>{if(r[t])r[t].push(e);else{var s,c;if(void 0!==a)for(var f=document.getElementsByTagName("script"),u=0;u<f.length;u++){var l=f[u];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==n+a){s=l;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",n+a),s.src=t),r[t]=[e];var y=(e,n)=>{s.onerror=s.onload=null,clearTimeout(h);var a=r[t];if(delete r[t],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((t=>t(n))),e)return e(n)},h=setTimeout(y.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=y.bind(null,s.onerror),s.onload=y.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),(()=>{var t={826:0};i.f.j=(e,r)=>{var n=i.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,a)=>n=t[e]=[r,a]));r.push(n[2]=a);var o=i.p+i.u(e),s=new Error;i.l(o,(r=>{if(i.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,n[1](s)}}),"chunk-"+e,e)}};var e=(e,r)=>{var n,a,[o,s,c]=r,f=0;if(o.some((e=>0!==t[e]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);c&&c(i)}for(e&&e(r);f<o.length;f++)a=o[f],i.o(t,a)&&t[a]&&t[a][0](),t[a]=0},r=self.webpackChunkuniv_fs_webnfs=self.webpackChunkuniv_fs_webnfs||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),(()=>{var t,e,r,n,a,o,s,c;(c=t||(t={})).Error="error",c.Ignore="ignore",(s=e||(e={})).File="file",s.Directory="directory",(o=r||(r={})).Error="error",o.Skip="skip",o.Overwrite="overwrite",(a=n||(n={})).Error="error",a.MakeParents="make_parents";class f extends Error{constructor(t){super(t.message);for(const[e,r]of Object.entries(t))this[e]=r}toString(){return JSON.stringify(this,null,2)}}const u=new Array(16);for(let t=0;t<16;t++)u[t]=t.toString(16);const l=new Array(256);for(let t=0;t<256;t++)l[t]=`${u[t>>>4&15]}${u[15&t]}`;i(804),i(272),Promise.allSettled||(Promise.allSettled=t=>Promise.all(t.map((t=>t.then((t=>({status:"fulfilled",value:t}))).catch((t=>({status:"rejected",reason:t})))))))})()})();