f7cloud_client/apps/text/js/index-CULZQJrn.chunk.mjs
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

11 lines
65 KiB
JavaScript
Raw Blame History

import{p as Oe}from"./index-CYtgifWR.chunk.mjs";import{B as Lt,g as Re,d as Ee}from"./NcLoadingIcon-zQCGdPwE.chunk.mjs";import{l as wt,b as _e}from"./dav-Rt1kTtvI-PDCKXEjH.chunk.mjs";import{g as ve}from"./emoji-picker-B23JpFV7.chunk.mjs";import{c as Le}from"./NcNoteCard-CwNXZ4vV-dRcgmGN6.chunk.mjs";var Ct={},St={exports:{}},Qt={},Zt;function Ce(){return Zt||(Zt=1,(function(g){Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var u={},T={};T.byteLength=l,T.toByteArray=B,T.fromByteArray=v;for(var b=[],R=[],D=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=0,m=A.length;L<m;++L)b[L]=A[L],R[A.charCodeAt(L)]=L;R[45]=62,R[95]=63;function w(d){var I=d.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var N=d.indexOf("=");N===-1&&(N=I);var _=N===I?0:4-N%4;return[N,_]}function l(d){var I=w(d),N=I[0],_=I[1];return(N+_)*3/4-_}function S(d,I,N){return(I+N)*3/4-N}function B(d){var I,N=w(d),_=N[0],F=N[1],O=new D(S(d,_,F)),C=0,s=F>0?_-4:_,M;for(M=0;M<s;M+=4)I=R[d.charCodeAt(M)]<<18|R[d.charCodeAt(M+1)]<<12|R[d.charCodeAt(M+2)]<<6|R[d.charCodeAt(M+3)],O[C++]=I>>16&255,O[C++]=I>>8&255,O[C++]=I&255;return F===2&&(I=R[d.charCodeAt(M)]<<2|R[d.charCodeAt(M+1)]>>4,O[C++]=I&255),F===1&&(I=R[d.charCodeAt(M)]<<10|R[d.charCodeAt(M+1)]<<4|R[d.charCodeAt(M+2)]>>2,O[C++]=I>>8&255,O[C++]=I&255),O}function X(d){return b[d>>18&63]+b[d>>12&63]+b[d>>6&63]+b[d&63]}function ot(d,I,N){for(var _,F=[],O=I;O<N;O+=3)_=(d[O]<<16&16711680)+(d[O+1]<<8&65280)+(d[O+2]&255),F.push(X(_));return F.join("")}function v(d){for(var I,N=d.length,_=N%3,F=[],O=16383,C=0,s=N-_;C<s;C+=O)F.push(ot(d,C,C+O>s?s:C+O));return _===1?(I=d[N-1],F.push(b[I>>2]+b[I<<4&63]+"==")):_===2&&(I=(d[N-2]<<8)+d[N-1],F.push(b[I>>10]+b[I>>4&63]+b[I<<2&63]+"=")),F.join("")}var z={};z.read=function(d,I,N,_,F){var O,C,s=F*8-_-1,M=(1<<s)-1,j=M>>1,f=-7,V=N?F-1:0,et=N?-1:1,K=d[I+V];for(V+=et,O=K&(1<<-f)-1,K>>=-f,f+=s;f>0;O=O*256+d[I+V],V+=et,f-=8);for(C=O&(1<<-f)-1,O>>=-f,f+=_;f>0;C=C*256+d[I+V],V+=et,f-=8);if(O===0)O=1-j;else{if(O===M)return C?NaN:(K?-1:1)*(1/0);C=C+Math.pow(2,_),O=O-j}return(K?-1:1)*C*Math.pow(2,O-_)},z.write=function(d,I,N,_,F,O){var C,s,M,j=O*8-F-1,f=(1<<j)-1,V=f>>1,et=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,K=_?0:O-1,nt=_?1:-1,U=I<0||I===0&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===1/0?(s=isNaN(I)?1:0,C=f):(C=Math.floor(Math.log(I)/Math.LN2),I*(M=Math.pow(2,-C))<1&&(C--,M*=2),C+V>=1?I+=et/M:I+=et*Math.pow(2,1-V),I*M>=2&&(C++,M/=2),C+V>=f?(s=0,C=f):C+V>=1?(s=(I*M-1)*Math.pow(2,F),C=C+V):(s=I*Math.pow(2,V-1)*Math.pow(2,F),C=0));F>=8;d[N+K]=s&255,K+=nt,s/=256,F-=8);for(C=C<<F|s,j+=F;j>0;d[N+K]=C&255,K+=nt,C/=256,j-=8);d[N+K-nt]|=U*128},(function(d){const I=T,N=z,_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=f,d.SlowBuffer=At,d.INSPECT_MAX_BYTES=50;const F=2147483647;d.kMaxLength=F;const{Uint8Array:O,ArrayBuffer:C,SharedArrayBuffer:s}=globalThis;f.TYPED_ARRAY_SUPPORT=M(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function M(){try{const t=new O(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,O.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function j(t){if(t>F)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new O(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return nt(t)}return V(t,e,r)}f.poolSize=8192;function V(t,e,r){if(typeof t=="string")return U(t,e);if(C.isView(t))return dt(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(it(t,C)||t&&it(t.buffer,C)||typeof s<"u"&&(it(t,s)||t&&it(t.buffer,s)))return lt(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return f.from(o,e,r);const c=st(t);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return f.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}f.from=function(t,e,r){return V(t,e,r)},Object.setPrototypeOf(f.prototype,O.prototype),Object.setPrototypeOf(f,O);function et(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function K(t,e,r){return et(t),t<=0?j(t):e!==void 0?typeof r=="string"?j(t).fill(e,r):j(t).fill(e):j(t)}f.alloc=function(t,e,r){return K(t,e,r)};function nt(t){return et(t),j(t<0?0:ut(t)|0)}f.allocUnsafe=function(t){return nt(t)},f.allocUnsafeSlow=function(t){return nt(t)};function U(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!f.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=gt(t,e)|0;let o=j(r);const c=o.write(t,e);return c!==r&&(o=o.slice(0,c)),o}function Et(t){const e=t.length<0?0:ut(t.length)|0,r=j(e);for(let o=0;o<e;o+=1)r[o]=t[o]&255;return r}function dt(t){if(it(t,O)){const e=new O(t);return lt(e.buffer,e.byteOffset,e.byteLength)}return Et(t)}function lt(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let o;return e===void 0&&r===void 0?o=new O(t):r===void 0?o=new O(t,e):o=new O(t,e,r),Object.setPrototypeOf(o,f.prototype),o}function st(t){if(f.isBuffer(t)){const e=ut(t.length)|0,r=j(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||vt(t.length)?j(0):Et(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Et(t.data)}function ut(t){if(t>=F)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+F.toString(16)+" bytes");return t|0}function At(t){return+t!=t&&(t=0),f.alloc(+t)}f.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==f.prototype},f.compare=function(t,e){if(it(t,O)&&(t=f.from(t,t.offset,t.byteLength)),it(e,O)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,o=e.length;for(let c=0,h=Math.min(r,o);c<h;++c)if(t[c]!==e[c]){r=t[c],o=e[c];break}return r<o?-1:o<r?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return f.alloc(0);let r;if(e===void 0)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const o=f.allocUnsafe(e);let c=0;for(r=0;r<t.length;++r){let h=t[r];if(it(h,O))c+h.length>o.length?(f.isBuffer(h)||(h=f.from(h)),h.copy(o,c)):O.prototype.set.call(o,h,c);else if(f.isBuffer(h))h.copy(o,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=h.length}return o};function gt(t,e){if(f.isBuffer(t))return t.length;if(C.isView(t)||it(t,C))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;let c=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _t(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Kt(t).length;default:if(c)return o?-1:_t(t).length;e=(""+e).toLowerCase(),c=!0}}f.byteLength=gt;function Tt(t,e,r){let o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yt(this,e,r);case"utf8":case"utf-8":return Q(this,e,r);case"ascii":return rt(this,e,r);case"latin1":case"binary":return Ot(this,e,r);case"base64":return J(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,e,r);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}f.prototype._isBuffer=!0;function at(t,e,r){const o=t[e];t[e]=t[r],t[r]=o}f.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)at(this,e,e+1);return this},f.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)at(this,e,e+3),at(this,e+1,e+2);return this},f.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)at(this,e,e+7),at(this,e+1,e+6),at(this,e+2,e+5),at(this,e+3,e+4);return this},f.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?Q(this,0,t):Tt.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:f.compare(this,t)===0},f.prototype.inspect=function(){let t="";const e=d.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},_&&(f.prototype[_]=f.prototype.inspect),f.prototype.compare=function(t,e,r,o,c){if(it(t,O)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),o===void 0&&(o=0),c===void 0&&(c=this.length),e<0||r>t.length||o<0||c>this.length)throw new RangeError("out of range index");if(o>=c&&e>=r)return 0;if(o>=c)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,o>>>=0,c>>>=0,this===t)return 0;let h=c-o,y=r-e;const x=Math.min(h,y),Z=this.slice(o,c),G=t.slice(e,r);for(let $=0;$<x;++$)if(Z[$]!==G[$]){h=Z[$],y=G[$];break}return h<y?-1:y<h?1:0};function i(t,e,r,o,c){if(t.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,vt(r)&&(r=c?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(c)return-1;r=t.length-1}else if(r<0)if(c)r=0;else return-1;if(typeof e=="string"&&(e=f.from(e,o)),f.isBuffer(e))return e.length===0?-1:n(t,e,r,o,c);if(typeof e=="number")return e=e&255,typeof O.prototype.indexOf=="function"?c?O.prototype.indexOf.call(t,e,r):O.prototype.lastIndexOf.call(t,e,r):n(t,[e],r,o,c);throw new TypeError("val must be string, number or Buffer")}function n(t,e,r,o,c){let h=1,y=t.length,x=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||e.length<2)return-1;h=2,y/=2,x/=2,r/=2}function Z($,H){return h===1?$[H]:$.readUInt16BE(H*h)}let G;if(c){let $=-1;for(G=r;G<y;G++)if(Z(t,G)===Z(e,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===x)return $*h}else $!==-1&&(G-=G-$),$=-1}else for(r+x>y&&(r=y-x),G=r;G>=0;G--){let $=!0;for(let H=0;H<x;H++)if(Z(t,G+H)!==Z(e,H)){$=!1;break}if($)return G}return-1}f.prototype.includes=function(t,e,r){return this.indexOf(t,e,r)!==-1},f.prototype.indexOf=function(t,e,r){return i(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return i(this,t,e,r,!1)};function E(t,e,r,o){r=Number(r)||0;const c=t.length-r;o?(o=Number(o),o>c&&(o=c)):o=c;const h=e.length;o>h/2&&(o=h/2);let y;for(y=0;y<o;++y){const x=parseInt(e.substr(y*2,2),16);if(vt(x))return y;t[r+y]=x}return y}function a(t,e,r,o){return Nt(_t(e,t.length-r),t,r,o)}function P(t,e,r,o){return Nt(Ne(e),t,r,o)}function k(t,e,r,o){return Nt(Kt(e),t,r,o)}function Y(t,e,r,o){return Nt(be(e,t.length-r),t,r,o)}f.prototype.write=function(t,e,r,o){if(e===void 0)o="utf8",r=this.length,e=0;else if(r===void 0&&typeof e=="string")o=e,r=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(r)?(r=r>>>0,o===void 0&&(o="utf8")):(o=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const c=this.length-e;if((r===void 0||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let h=!1;for(;;)switch(o){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return a(this,t,e,r);case"ascii":case"latin1":case"binary":return P(this,t,e,r);case"base64":return k(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,t,e,r);default:if(h)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),h=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function J(t,e,r){return e===0&&r===t.length?I.fromByteArray(t):I.fromByteArray(t.slice(e,r))}function Q(t,e,r){r=Math.min(t.length,r);const o=[];let c=e;for(;c<r;){const h=t[c];let y=null,x=h>239?4:h>223?3:h>191?2:1;if(c+x<=r){let Z,G,$,H;switch(x){case 1:h<128&&(y=h);break;case 2:Z=t[c+1],(Z&192)===128&&(H=(h&31)<<6|Z&63,H>127&&(y=H));break;case 3:Z=t[c+1],G=t[c+2],(Z&192)===128&&(G&192)===128&&(H=(h&15)<<12|(Z&63)<<6|G&63,H>2047&&(H<55296||H>57343)&&(y=H));break;case 4:Z=t[c+1],G=t[c+2],$=t[c+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(H=(h&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,H>65535&&H<1114112&&(y=H))}}y===null?(y=65533,x=1):y>65535&&(y-=65536,o.push(y>>>10&1023|55296),y=56320|y&1023),o.push(y),c+=x}return W(o)}const ft=4096;function W(t){const e=t.length;if(e<=ft)return String.fromCharCode.apply(String,t);let r="",o=0;for(;o<e;)r+=String.fromCharCode.apply(String,t.slice(o,o+=ft));return r}function rt(t,e,r){let o="";r=Math.min(t.length,r);for(let c=e;c<r;++c)o+=String.fromCharCode(t[c]&127);return o}function Ot(t,e,r){let o="";r=Math.min(t.length,r);for(let c=e;c<r;++c)o+=String.fromCharCode(t[c]);return o}function yt(t,e,r){const o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);let c="";for(let h=e;h<r;++h)c+=we[t[h]];return c}function mt(t,e,r){const o=t.slice(e,r);let c="";for(let h=0;h<o.length-1;h+=2)c+=String.fromCharCode(o[h]+o[h+1]*256);return c}f.prototype.slice=function(t,e){const r=this.length;t=~~t,e=e===void 0?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t);const o=this.subarray(t,e);return Object.setPrototypeOf(o,f.prototype),o};function q(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(t,e,r){t=t>>>0,e=e>>>0,r||q(t,e,this.length);let o=this[t],c=1,h=0;for(;++h<e&&(c*=256);)o+=this[t+h]*c;return o},f.prototype.readUintBE=f.prototype.readUIntBE=function(t,e,r){t=t>>>0,e=e>>>0,r||q(t,e,this.length);let o=this[t+--e],c=1;for(;e>0&&(c*=256);)o+=this[t+--e]*c;return o},f.prototype.readUint8=f.prototype.readUInt8=function(t,e){return t=t>>>0,e||q(t,1,this.length),this[t]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||q(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||q(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||q(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readBigUInt64LE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&It(t,this.length-8);const o=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,c=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(o)+(BigInt(c)<<BigInt(32))}),f.prototype.readBigUInt64BE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&It(t,this.length-8);const o=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],c=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(o)<<BigInt(32))+BigInt(c)}),f.prototype.readIntLE=function(t,e,r){t=t>>>0,e=e>>>0,r||q(t,e,this.length);let o=this[t],c=1,h=0;for(;++h<e&&(c*=256);)o+=this[t+h]*c;return c*=128,o>=c&&(o-=Math.pow(2,8*e)),o},f.prototype.readIntBE=function(t,e,r){t=t>>>0,e=e>>>0,r||q(t,e,this.length);let o=e,c=1,h=this[t+--o];for(;o>0&&(c*=256);)h+=this[t+--o]*c;return c*=128,h>=c&&(h-=Math.pow(2,8*e)),h},f.prototype.readInt8=function(t,e){return t=t>>>0,e||q(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},f.prototype.readInt16LE=function(t,e){t=t>>>0,e||q(t,2,this.length);const r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},f.prototype.readInt16BE=function(t,e){t=t>>>0,e||q(t,2,this.length);const r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},f.prototype.readInt32LE=function(t,e){return t=t>>>0,e||q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t=t>>>0,e||q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readBigInt64LE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&It(t,this.length-8);const o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),f.prototype.readBigInt64BE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&It(t,this.length-8);const o=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r)}),f.prototype.readFloatLE=function(t,e){return t=t>>>0,e||q(t,4,this.length),N.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t=t>>>0,e||q(t,4,this.length),N.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||q(t,8,this.length),N.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||q(t,8,this.length),N.read(this,t,!1,52,8)};function tt(t,e,r,o,c,h){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>c||e<h)throw new RangeError('"value" argument is out of bounds');if(r+o>t.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(t,e,r,o){if(t=+t,e=e>>>0,r=r>>>0,!o){const y=Math.pow(2,8*r)-1;tt(this,t,e,r,y,0)}let c=1,h=0;for(this[e]=t&255;++h<r&&(c*=256);)this[e+h]=t/c&255;return e+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(t,e,r,o){if(t=+t,e=e>>>0,r=r>>>0,!o){const y=Math.pow(2,8*r)-1;tt(this,t,e,r,y,0)}let c=r-1,h=1;for(this[e+c]=t&255;--c>=0&&(h*=256);)this[e+c]=t/h&255;return e+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,1,255,0),this[e]=t&255,e+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function Vt(t,e,r,o,c){zt(e,o,c,t,r,7);let h=Number(e&BigInt(4294967295));t[r++]=h,h=h>>8,t[r++]=h,h=h>>8,t[r++]=h,h=h>>8,t[r++]=h;let y=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=y,y=y>>8,t[r++]=y,y=y>>8,t[r++]=y,y=y>>8,t[r++]=y,r}function kt(t,e,r,o,c){zt(e,o,c,t,r,7);let h=Number(e&BigInt(4294967295));t[r+7]=h,h=h>>8,t[r+6]=h,h=h>>8,t[r+5]=h,h=h>>8,t[r+4]=h;let y=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=y,y=y>>8,t[r+2]=y,y=y>>8,t[r+1]=y,y=y>>8,t[r]=y,r+8}f.prototype.writeBigUInt64LE=ct(function(t,e=0){return Vt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ct(function(t,e=0){return kt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(t,e,r,o){if(t=+t,e=e>>>0,!o){const x=Math.pow(2,8*r-1);tt(this,t,e,r,x-1,-x)}let c=0,h=1,y=0;for(this[e]=t&255;++c<r&&(h*=256);)t<0&&y===0&&this[e+c-1]!==0&&(y=1),this[e+c]=(t/h>>0)-y&255;return e+r},f.prototype.writeIntBE=function(t,e,r,o){if(t=+t,e=e>>>0,!o){const x=Math.pow(2,8*r-1);tt(this,t,e,r,x-1,-x)}let c=r-1,h=1,y=0;for(this[e+c]=t&255;--c>=0&&(h*=256);)t<0&&y===0&&this[e+c+1]!==0&&(y=1),this[e+c]=(t/h>>0)-y&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},f.prototype.writeBigInt64LE=ct(function(t,e=0){return Vt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ct(function(t,e=0){return kt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Yt(t,e,r,o,c,h){if(r+o>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qt(t,e,r,o,c){return e=+e,r=r>>>0,c||Yt(t,e,r,4),N.write(t,e,r,o,23,4),r+4}f.prototype.writeFloatLE=function(t,e,r){return qt(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return qt(this,t,e,!1,r)};function Ht(t,e,r,o,c){return e=+e,r=r>>>0,c||Yt(t,e,r,8),N.write(t,e,r,o,52,8),r+8}f.prototype.writeDoubleLE=function(t,e,r){return Ht(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return Ht(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,o){if(!f.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!o&&o!==0&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-r&&(o=t.length-e+r);const c=o-r;return this===t&&typeof O.prototype.copyWithin=="function"?this.copyWithin(e,r,o):O.prototype.set.call(t,this.subarray(r,o),e),c},f.prototype.fill=function(t,e,r,o){if(typeof t=="string"){if(typeof e=="string"?(o=e,e=0,r=this.length):typeof r=="string"&&(o=r,r=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!f.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){const h=t.charCodeAt(0);(o==="utf8"&&h<128||o==="latin1")&&(t=h)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e=e>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let c;if(typeof t=="number")for(c=e;c<r;++c)this[c]=t;else{const h=f.isBuffer(t)?t:f.from(t,o),y=h.length;if(y===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(c=0;c<r-e;++c)this[c+e]=h[c%y]}return this};const ht={};function Rt(t,e,r){ht[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Rt("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Rt("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),Rt("ERR_OUT_OF_RANGE",function(t,e,r){let o=`The value of "${t}" is out of range.`,c=r;return Number.isInteger(r)&&Math.abs(r)>2**32?c=Wt(String(r)):typeof r=="bigint"&&(c=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(c=Wt(c)),c+="n"),o+=` It must be ${e}. Received ${c}`,o},RangeError);function Wt(t){let e="",r=t.length;const o=t[0]==="-"?1:0;for(;r>=o+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Ie(t,e,r){pt(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&It(e,t.length-(r+1))}function zt(t,e,r,o,c,h){if(t>r||t<e){const y=typeof e=="bigint"?"n":"";let x;throw e===0||e===BigInt(0)?x=`>= 0${y} and < 2${y} ** ${(h+1)*8}${y}`:x=`>= -(2${y} ** ${(h+1)*8-1}${y}) and < 2 ** ${(h+1)*8-1}${y}`,new ht.ERR_OUT_OF_RANGE("value",x,t)}Ie(o,c,h)}function pt(t,e){if(typeof t!="number")throw new ht.ERR_INVALID_ARG_TYPE(e,"number",t)}function It(t,e,r){throw Math.floor(t)!==t?(pt(t,r),new ht.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new ht.ERR_BUFFER_OUT_OF_BOUNDS:new ht.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const Te=/[^+/0-9A-Za-z-_]/g;function ye(t){if(t=t.split("=")[0],t=t.trim().replace(Te,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function _t(t,e){e=e||1/0;let r;const o=t.length;let c=null;const h=[];for(let y=0;y<o;++y){if(r=t.charCodeAt(y),r>55295&&r<57344){if(!c){if(r>56319){(e-=3)>-1&&h.push(239,191,189);continue}else if(y+1===o){(e-=3)>-1&&h.push(239,191,189);continue}c=r;continue}if(r<56320){(e-=3)>-1&&h.push(239,191,189),c=r;continue}r=(c-55296<<10|r-56320)+65536}else c&&(e-=3)>-1&&h.push(239,191,189);if(c=null,r<128){if((e-=1)<0)break;h.push(r)}else if(r<2048){if((e-=2)<0)break;h.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;h.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;h.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return h}function Ne(t){const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function be(t,e){let r,o,c;const h=[];for(let y=0;y<t.length&&!((e-=2)<0);++y)r=t.charCodeAt(y),o=r>>8,c=r%256,h.push(c),h.push(o);return h}function Kt(t){return I.toByteArray(ye(t))}function Nt(t,e,r,o){let c;for(c=0;c<o&&!(c+r>=e.length||c>=t.length);++c)e[c+r]=t[c];return c}function it(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function vt(t){return t!==t}const we=(function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const o=r*16;for(let c=0;c<16;++c)e[o+c]=t[r]+t[c]}return e})();function ct(t){return typeof BigInt>"u"?Ae:t}function Ae(){throw new Error("BigInt not supported")}})(u);const p=u.Buffer;g.Blob=u.Blob,g.BlobOptions=u.BlobOptions,g.Buffer=u.Buffer,g.File=u.File,g.FileOptions=u.FileOptions,g.INSPECT_MAX_BYTES=u.INSPECT_MAX_BYTES,g.SlowBuffer=u.SlowBuffer,g.TranscodeEncoding=u.TranscodeEncoding,g.atob=u.atob,g.btoa=u.btoa,g.constants=u.constants,g.default=p,g.isAscii=u.isAscii,g.isUtf8=u.isUtf8,g.kMaxLength=u.kMaxLength,g.kStringMaxLength=u.kStringMaxLength,g.resolveObjectURL=u.resolveObjectURL,g.transcode=u.transcode})(Qt)),Qt}var Jt;function Se(){return Jt||(Jt=1,(function(g,u){var T=Ce(),b=T.Buffer;function R(A,L){for(var m in A)L[m]=A[m]}b.from&&b.alloc&&b.allocUnsafe&&b.allocUnsafeSlow?g.exports=T:(R(T,u),u.Buffer=D);function D(A,L,m){return b(A,L,m)}D.prototype=Object.create(b.prototype),R(b,D),D.from=function(A,L,m){if(typeof A=="number")throw new TypeError("Argument must not be a number");return b(A,L,m)},D.alloc=function(A,L,m){if(typeof A!="number")throw new TypeError("Argument must be a number");var w=b(A);return L!==void 0?typeof m=="string"?w.fill(L,m):w.fill(L):w.fill(0),w},D.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return b(A)},D.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return T.SlowBuffer(A)}})(St,St.exports)),St.exports}var te;function De(){if(te)return Ct;te=1;var g=Se().Buffer,u=g.isEncoding||function(p){switch(p=""+p,p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(p){if(!p)return"utf8";for(var d;;)switch(p){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return p;default:if(d)return;p=(""+p).toLowerCase(),d=!0}}function b(p){var d=T(p);if(typeof d!="string"&&(g.isEncoding===u||!u(p)))throw new Error("Unknown encoding: "+p);return d||p}Ct.StringDecoder=R;function R(p){this.encoding=b(p);var d;switch(this.encoding){case"utf16le":this.text=S,this.end=B,d=4;break;case"utf8":this.fillLast=m,d=4;break;case"base64":this.text=X,this.end=ot,d=3;break;default:this.write=v,this.end=z;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(d)}R.prototype.write=function(p){if(p.length===0)return"";var d,I;if(this.lastNeed){if(d=this.fillLast(p),d===void 0)return"";I=this.lastNeed,this.lastNeed=0}else I=0;return I<p.length?d?d+this.text(p,I):this.text(p,I):d||""},R.prototype.end=l,R.prototype.text=w,R.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function D(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function A(p,d,I){var N=d.length-1;if(N<I)return 0;var _=D(d[N]);return _>=0?(_>0&&(p.lastNeed=_-1),_):--N<I||_===-2?0:(_=D(d[N]),_>=0?(_>0&&(p.lastNeed=_-2),_):--N<I||_===-2?0:(_=D(d[N]),_>=0?(_>0&&(_===2?_=0:p.lastNeed=_-3),_):0))}function L(p,d,I){if((d[0]&192)!==128)return p.lastNeed=0,"<22>";if(p.lastNeed>1&&d.length>1){if((d[1]&192)!==128)return p.lastNeed=1,"<22>";if(p.lastNeed>2&&d.length>2&&(d[2]&192)!==128)return p.lastNeed=2,"<22>"}}function m(p){var d=this.lastTotal-this.lastNeed,I=L(this,p);if(I!==void 0)return I;if(this.lastNeed<=p.length)return p.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,d,0,p.length),this.lastNeed-=p.length}function w(p,d){var I=A(this,p,d);if(!this.lastNeed)return p.toString("utf8",d);this.lastTotal=I;var N=p.length-(I-this.lastNeed);return p.copy(this.lastChar,0,N),p.toString("utf8",d,N)}function l(p){var d=p&&p.length?this.write(p):"";return this.lastNeed?d+"<22>":d}function S(p,d){if((p.length-d)%2===0){var I=p.toString("utf16le",d);if(I){var N=I.charCodeAt(I.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],I.slice(0,-1)}return I}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",d,p.length-1)}function B(p){var d=p&&p.length?this.write(p):"";if(this.lastNeed){var I=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,I)}return d}function X(p,d){var I=(p.length-d)%3;return I===0?p.toString("base64",d):(this.lastNeed=3-I,this.lastTotal=3,I===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",d,p.length-I))}function ot(p){var d=p&&p.length?this.write(p):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function v(p){return p.toString(this.encoding)}function z(p){return p&&p.length?this.write(p):""}return Ct}var Be=De();const Fe=ve(Be);var Dt={},ee,re;function de(){return re||(re=1,ee=typeof Oe=="object"&&Dt&&Dt.NODE_DEBUG&&/\bsemver\b/i.test(Dt.NODE_DEBUG)?(...g)=>console.error("SEMVER",...g):()=>{}),ee}var Bt,ne;function ge(){if(ne)return Bt;ne=1;const g="2.0.0",u=256,T=Number.MAX_SAFE_INTEGER||9007199254740991,b=16,R=u-6;return Bt={MAX_LENGTH:u,MAX_SAFE_COMPONENT_LENGTH:b,MAX_SAFE_BUILD_LENGTH:R,MAX_SAFE_INTEGER:T,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:g,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Bt}var Ft={exports:{}},ie;function Ue(){return ie||(ie=1,(function(g,u){const{MAX_SAFE_COMPONENT_LENGTH:T,MAX_SAFE_BUILD_LENGTH:b,MAX_LENGTH:R}=ge(),D=de();u=g.exports={};const A=u.re=[],L=u.safeRe=[],m=u.src=[],w=u.safeSrc=[],l=u.t={};let S=0;const B="[a-zA-Z0-9-]",X=[["\\s",1],["\\d",R],[B,b]],ot=z=>{for(const[p,d]of X)z=z.split(`${p}*`).join(`${p}{0,${d}}`).split(`${p}+`).join(`${p}{1,${d}}`);return z},v=(z,p,d)=>{const I=ot(p),N=S++;D(z,N,p),l[z]=N,m[N]=p,w[N]=I,A[N]=new RegExp(p,d?"g":void 0),L[N]=new RegExp(I,d?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${B}*`),v("MAINVERSION",`(${m[l.NUMERICIDENTIFIER]})\\.(${m[l.NUMERICIDENTIFIER]})\\.(${m[l.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${m[l.NUMERICIDENTIFIERLOOSE]})\\.(${m[l.NUMERICIDENTIFIERLOOSE]})\\.(${m[l.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${m[l.NONNUMERICIDENTIFIER]}|${m[l.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${m[l.NONNUMERICIDENTIFIER]}|${m[l.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${m[l.PRERELEASEIDENTIFIER]}(?:\\.${m[l.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${m[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${m[l.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${B}+`),v("BUILD",`(?:\\+(${m[l.BUILDIDENTIFIER]}(?:\\.${m[l.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${m[l.MAINVERSION]}${m[l.PRERELEASE]}?${m[l.BUILD]}?`),v("FULL",`^${m[l.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${m[l.MAINVERSIONLOOSE]}${m[l.PRERELEASELOOSE]}?${m[l.BUILD]}?`),v("LOOSE",`^${m[l.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${m[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${m[l.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${m[l.XRANGEIDENTIFIER]})(?:\\.(${m[l.XRANGEIDENTIFIER]})(?:\\.(${m[l.XRANGEIDENTIFIER]})(?:${m[l.PRERELEASE]})?${m[l.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${m[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[l.XRANGEIDENTIFIERLOOSE]})(?:${m[l.PRERELEASELOOSE]})?${m[l.BUILD]}?)?)?`),v("XRANGE",`^${m[l.GTLT]}\\s*${m[l.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${m[l.GTLT]}\\s*${m[l.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${T}})(?:\\.(\\d{1,${T}}))?(?:\\.(\\d{1,${T}}))?`),v("COERCE",`${m[l.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",m[l.COERCEPLAIN]+`(?:${m[l.PRERELEASE]})?(?:${m[l.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",m[l.COERCE],!0),v("COERCERTLFULL",m[l.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${m[l.LONETILDE]}\\s+`,!0),u.tildeTrimReplace="$1~",v("TILDE",`^${m[l.LONETILDE]}${m[l.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${m[l.LONETILDE]}${m[l.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${m[l.LONECARET]}\\s+`,!0),u.caretTrimReplace="$1^",v("CARET",`^${m[l.LONECARET]}${m[l.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${m[l.LONECARET]}${m[l.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${m[l.GTLT]}\\s*(${m[l.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${m[l.GTLT]}\\s*(${m[l.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${m[l.GTLT]}\\s*(${m[l.LOOSEPLAIN]}|${m[l.XRANGEPLAIN]})`,!0),u.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${m[l.XRANGEPLAIN]})\\s+-\\s+(${m[l.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${m[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${m[l.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ft,Ft.exports)),Ft.exports}var Ut,oe;function Pe(){if(oe)return Ut;oe=1;const g=Object.freeze({loose:!0}),u=Object.freeze({});return Ut=T=>T?typeof T!="object"?g:T:u,Ut}var Pt,se;function Me(){if(se)return Pt;se=1;const g=/^[0-9]+$/,u=(T,b)=>{if(typeof T=="number"&&typeof b=="number")return T===b?0:T<b?-1:1;const R=g.test(T),D=g.test(b);return R&&D&&(T=+T,b=+b),T===b?0:R&&!D?-1:D&&!R?1:T<b?-1:1};return Pt={compareIdentifiers:u,rcompareIdentifiers:(T,b)=>u(b,T)},Pt}var Mt,ae;function me(){if(ae)return Mt;ae=1;const g=de(),{MAX_LENGTH:u,MAX_SAFE_INTEGER:T}=ge(),{safeRe:b,t:R}=Ue(),D=Pe(),{compareIdentifiers:A}=Me();class L{constructor(w,l){if(l=D(l),w instanceof L){if(w.loose===!!l.loose&&w.includePrerelease===!!l.includePrerelease)return w;w=w.version}else if(typeof w!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof w}".`);if(w.length>u)throw new TypeError(`version is longer than ${u} characters`);g("SemVer",w,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const S=w.trim().match(l.loose?b[R.LOOSE]:b[R.FULL]);if(!S)throw new TypeError(`Invalid Version: ${w}`);if(this.raw=w,this.major=+S[1],this.minor=+S[2],this.patch=+S[3],this.major>T||this.major<0)throw new TypeError("Invalid major version");if(this.minor>T||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>T||this.patch<0)throw new TypeError("Invalid patch version");S[4]?this.prerelease=S[4].split(".").map(B=>{if(/^[0-9]+$/.test(B)){const X=+B;if(X>=0&&X<T)return X}return B}):this.prerelease=[],this.build=S[5]?S[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(w){if(g("SemVer.compare",this.version,this.options,w),!(w instanceof L)){if(typeof w=="string"&&w===this.version)return 0;w=new L(w,this.options)}return w.version===this.version?0:this.compareMain(w)||this.comparePre(w)}compareMain(w){return w instanceof L||(w=new L(w,this.options)),this.major<w.major?-1:this.major>w.major?1:this.minor<w.minor?-1:this.minor>w.minor?1:this.patch<w.patch?-1:this.patch>w.patch?1:0}comparePre(w){if(w instanceof L||(w=new L(w,this.options)),this.prerelease.length&&!w.prerelease.length)return-1;if(!this.prerelease.length&&w.prerelease.length)return 1;if(!this.prerelease.length&&!w.prerelease.length)return 0;let l=0;do{const S=this.prerelease[l],B=w.prerelease[l];if(g("prerelease compare",l,S,B),S===void 0&&B===void 0)return 0;if(B===void 0)return 1;if(S===void 0)return-1;if(S!==B)return A(S,B)}while(++l)}compareBuild(w){w instanceof L||(w=new L(w,this.options));let l=0;do{const S=this.build[l],B=w.build[l];if(g("build compare",l,S,B),S===void 0&&B===void 0)return 0;if(B===void 0)return 1;if(S===void 0)return-1;if(S!==B)return A(S,B)}while(++l)}inc(w,l,S){if(w.startsWith("pre")){if(!l&&S===!1)throw new Error("invalid increment argument: identifier is empty");if(l){const B=`-${l}`.match(this.options.loose?b[R.PRERELEASELOOSE]:b[R.PRERELEASE]);if(!B||B[1]!==l)throw new Error(`invalid identifier: ${l}`)}}switch(w){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",l,S);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",l,S);break;case"prepatch":this.prerelease.length=0,this.inc("patch",l,S),this.inc("pre",l,S);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",l,S),this.inc("pre",l,S);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const B=Number(S)?1:0;if(this.prerelease.length===0)this.prerelease=[B];else{let X=this.prerelease.length;for(;--X>=0;)typeof this.prerelease[X]=="number"&&(this.prerelease[X]++,X=-2);if(X===-1){if(l===this.prerelease.join(".")&&S===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(B)}}if(l){let X=[l,B];S===!1&&(X=[l]),A(this.prerelease[0],l)===0?isNaN(this.prerelease[1])&&(this.prerelease=X):this.prerelease=X}break}default:throw new Error(`invalid increment argument: ${w}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Mt=L,Mt}var $t,fe;function $e(){if(fe)return $t;fe=1;const g=me();return $t=(u,T)=>new g(u,T).major,$t}$e();var xt,ce;function xe(){if(ce)return xt;ce=1;const g=me();return xt=(u,T,b=!1)=>{if(u instanceof g)return u;try{return new g(u,T)}catch(R){if(!b)return null;throw R}},xt}var Gt,ue;function Ge(){if(ue)return Gt;ue=1;const g=xe();return Gt=(u,T)=>{const b=g(u,T);return b?b.version:null},Gt}Ge();class Ze{_header;constructor(u){this.validateHeader(u),this._header=u}get id(){return this._header.id}get order(){return this._header.order}get enabled(){return this._header.enabled}get render(){return this._header.render}get updated(){return this._header.updated}validateHeader(u){if(!u.id||!u.render||!u.updated)throw new Error("Invalid header: id, render and updated are required");if(typeof u.id!="string")throw new Error("Invalid id property");if(u.enabled!==void 0&&typeof u.enabled!="function")throw new Error("Invalid enabled property");if(u.render&&typeof u.render!="function")throw new Error("Invalid render property");if(u.updated&&typeof u.updated!="function")throw new Error("Invalid updated property")}}const Je=function(g){if(typeof window._nc_filelistheader>"u"&&(window._nc_filelistheader=[],wt.debug("FileListHeaders initialized")),window._nc_filelistheader.find(u=>u.id===g.id)){wt.error(`Header ${g.id} already registered`,{header:g});return}window._nc_filelistheader.push(g)};var le={},he;function Xe(){return he||(he=1,(function(g){(function(u){u.parser=function(i,n){return new b(i,n)},u.SAXParser=b,u.SAXStream=l,u.createStream=w,u.MAX_BUFFER_LENGTH=64*1024;var T=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];u.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function b(i,n){if(!(this instanceof b))return new b(i,n);var E=this;D(E),E.q=E.c="",E.bufferCheckPosition=u.MAX_BUFFER_LENGTH,E.opt=n||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!i,E.noscript=!!(i||E.opt.noscript),E.state=s.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(u.XML_ENTITIES):Object.create(u.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(v)),E.opt.unquotedAttributeValues===void 0&&(E.opt.unquotedAttributeValues=!i),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),j(E,"onready")}Object.create||(Object.create=function(i){function n(){}n.prototype=i;var E=new n;return E}),Object.keys||(Object.keys=function(i){var n=[];for(var E in i)i.hasOwnProperty(E)&&n.push(E);return n});function R(i){for(var n=Math.max(u.MAX_BUFFER_LENGTH,10),E=0,a=0,P=T.length;a<P;a++){var k=i[T[a]].length;if(k>n)switch(T[a]){case"textNode":V(i);break;case"cdata":f(i,"oncdata",i.cdata),i.cdata="";break;case"script":f(i,"onscript",i.script),i.script="";break;default:K(i,"Max buffer length exceeded: "+T[a])}E=Math.max(E,k)}var Y=u.MAX_BUFFER_LENGTH-E;i.bufferCheckPosition=Y+i.position}function D(i){for(var n=0,E=T.length;n<E;n++)i[T[n]]=""}function A(i){V(i),i.cdata!==""&&(f(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(f(i,"onscript",i.script),i.script="")}b.prototype={end:function(){nt(this)},write:at,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var L;try{L=require("stream").Stream}catch{L=function(){}}L||(L=function(){});var m=u.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function w(i,n){return new l(i,n)}function l(i,n){if(!(this instanceof l))return new l(i,n);L.apply(this),this._parser=new b(i,n),this.writable=!0,this.readable=!0;var E=this;this._parser.onend=function(){E.emit("end")},this._parser.onerror=function(a){E.emit("error",a),E._parser.error=null},this._decoder=null,m.forEach(function(a){Object.defineProperty(E,"on"+a,{get:function(){return E._parser["on"+a]},set:function(P){if(!P)return E.removeAllListeners(a),E._parser["on"+a]=P,P;E.on(a,P)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(L.prototype,{constructor:{value:l}}),l.prototype.write=function(i){if(typeof Lt=="function"&&typeof Lt.isBuffer=="function"&&Lt.isBuffer(i)){if(!this._decoder){var n=Fe.StringDecoder;this._decoder=new n("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},l.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},l.prototype.on=function(i,n){var E=this;return!E._parser["on"+i]&&m.indexOf(i)!==-1&&(E._parser["on"+i]=function(){var a=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);a.splice(0,0,i),E.emit.apply(E,a)}),L.prototype.on.call(E,i,n)};var S="[CDATA[",B="DOCTYPE",X="http://www.w3.org/XML/1998/namespace",ot="http://www.w3.org/2000/xmlns/",v={xml:X,xmlns:ot},z=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function N(i){return i===" "||i===`
`||i==="\r"||i===" "}function _(i){return i==='"'||i==="'"}function F(i){return i===">"||N(i)}function O(i,n){return i.test(n)}function C(i,n){return!O(i,n)}var s=0;u.STATE={BEGIN:s++,BEGIN_WHITESPACE:s++,TEXT:s++,TEXT_ENTITY:s++,OPEN_WAKA:s++,SGML_DECL:s++,SGML_DECL_QUOTED:s++,DOCTYPE:s++,DOCTYPE_QUOTED:s++,DOCTYPE_DTD:s++,DOCTYPE_DTD_QUOTED:s++,COMMENT_STARTING:s++,COMMENT:s++,COMMENT_ENDING:s++,COMMENT_ENDED:s++,CDATA:s++,CDATA_ENDING:s++,CDATA_ENDING_2:s++,PROC_INST:s++,PROC_INST_BODY:s++,PROC_INST_ENDING:s++,OPEN_TAG:s++,OPEN_TAG_SLASH:s++,ATTRIB:s++,ATTRIB_NAME:s++,ATTRIB_NAME_SAW_WHITE:s++,ATTRIB_VALUE:s++,ATTRIB_VALUE_QUOTED:s++,ATTRIB_VALUE_CLOSED:s++,ATTRIB_VALUE_UNQUOTED:s++,ATTRIB_VALUE_ENTITY_Q:s++,ATTRIB_VALUE_ENTITY_U:s++,CLOSE_TAG:s++,CLOSE_TAG_SAW_WHITE:s++,SCRIPT:s++,SCRIPT_ENDING:s++},u.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},u.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(u.ENTITIES).forEach(function(i){var n=u.ENTITIES[i],E=typeof n=="number"?String.fromCharCode(n):n;u.ENTITIES[i]=E});for(var M in u.STATE)u.STATE[u.STATE[M]]=M;s=u.STATE;function j(i,n,E){i[n]&&i[n](E)}function f(i,n,E){i.textNode&&V(i),j(i,n,E)}function V(i){i.textNode=et(i.opt,i.textNode),i.textNode&&j(i,"ontext",i.textNode),i.textNode=""}function et(i,n){return i.trim&&(n=n.trim()),i.normalize&&(n=n.replace(/\s+/g," ")),n}function K(i,n){return V(i),i.trackPosition&&(n+=`
Line: `+i.line+`
Column: `+i.column+`
Char: `+i.c),n=new Error(n),i.error=n,j(i,"onerror",n),i}function nt(i){return i.sawRoot&&!i.closedRoot&&U(i,"Unclosed root tag"),i.state!==s.BEGIN&&i.state!==s.BEGIN_WHITESPACE&&i.state!==s.TEXT&&K(i,"Unexpected end"),V(i),i.c="",i.closed=!0,j(i,"onend"),b.call(i,i.strict,i.opt),i}function U(i,n){if(typeof i!="object"||!(i instanceof b))throw new Error("bad call to strictFail");i.strict&&K(i,n)}function Et(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var n=i.tags[i.tags.length-1]||i,E=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(E.ns=n.ns),i.attribList.length=0,f(i,"onopentagstart",E)}function dt(i,n){var E=i.indexOf(":"),a=E<0?["",i]:i.split(":"),P=a[0],k=a[1];return n&&i==="xmlns"&&(P="xmlns",k=""),{prefix:P,local:k}}function lt(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var n=dt(i.attribName,!0),E=n.prefix,a=n.local;if(E==="xmlns")if(a==="xml"&&i.attribValue!==X)U(i,"xml: prefix must be bound to "+X+`
Actual: `+i.attribValue);else if(a==="xmlns"&&i.attribValue!==ot)U(i,"xmlns: prefix must be bound to "+ot+`
Actual: `+i.attribValue);else{var P=i.tag,k=i.tags[i.tags.length-1]||i;P.ns===k.ns&&(P.ns=Object.create(k.ns)),P.ns[a]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,f(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function st(i,n){if(i.opt.xmlns){var E=i.tag,a=dt(i.tagName);E.prefix=a.prefix,E.local=a.local,E.uri=E.ns[a.prefix]||"",E.prefix&&!E.uri&&(U(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),E.uri=a.prefix);var P=i.tags[i.tags.length-1]||i;E.ns&&P.ns!==E.ns&&Object.keys(E.ns).forEach(function(q){f(i,"onopennamespace",{prefix:q,uri:E.ns[q]})});for(var k=0,Y=i.attribList.length;k<Y;k++){var J=i.attribList[k],Q=J[0],ft=J[1],W=dt(Q,!0),rt=W.prefix,Ot=W.local,yt=rt===""?"":E.ns[rt]||"",mt={name:Q,value:ft,prefix:rt,local:Ot,uri:yt};rt&&rt!=="xmlns"&&!yt&&(U(i,"Unbound namespace prefix: "+JSON.stringify(rt)),mt.uri=rt),i.tag.attributes[Q]=mt,f(i,"onattribute",mt)}i.attribList.length=0}i.tag.isSelfClosing=!!n,i.sawRoot=!0,i.tags.push(i.tag),f(i,"onopentag",i.tag),n||(!i.noscript&&i.tagName.toLowerCase()==="script"?i.state=s.SCRIPT:i.state=s.TEXT,i.tag=null,i.tagName=""),i.attribName=i.attribValue="",i.attribList.length=0}function ut(i){if(!i.tagName){U(i,"Weird empty close tag."),i.textNode+="</>",i.state=s.TEXT;return}if(i.script){if(i.tagName!=="script"){i.script+="</"+i.tagName+">",i.tagName="",i.state=s.SCRIPT;return}f(i,"onscript",i.script),i.script=""}var n=i.tags.length,E=i.tagName;i.strict||(E=E[i.looseCase]());for(var a=E;n--;){var P=i.tags[n];if(P.name!==a)U(i,"Unexpected close tag");else break}if(n<0){U(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",i.state=s.TEXT;return}i.tagName=E;for(var k=i.tags.length;k-- >n;){var Y=i.tag=i.tags.pop();i.tagName=i.tag.name,f(i,"onclosetag",i.tagName);var J={};for(var Q in Y.ns)J[Q]=Y.ns[Q];var ft=i.tags[i.tags.length-1]||i;i.opt.xmlns&&Y.ns!==ft.ns&&Object.keys(Y.ns).forEach(function(W){var rt=Y.ns[W];f(i,"onclosenamespace",{prefix:W,uri:rt})})}n===0&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=s.TEXT}function At(i){var n=i.entity,E=n.toLowerCase(),a,P="";return i.ENTITIES[n]?i.ENTITIES[n]:i.ENTITIES[E]?i.ENTITIES[E]:(n=E,n.charAt(0)==="#"&&(n.charAt(1)==="x"?(n=n.slice(2),a=parseInt(n,16),P=a.toString(16)):(n=n.slice(1),a=parseInt(n,10),P=a.toString(10))),n=n.replace(/^0+/,""),isNaN(a)||P.toLowerCase()!==n?(U(i,"Invalid character entity"),"&"+i.entity+";"):String.fromCodePoint(a))}function gt(i,n){n==="<"?(i.state=s.OPEN_WAKA,i.startTagPosition=i.position):N(n)||(U(i,"Non-whitespace before first tag."),i.textNode=n,i.state=s.TEXT)}function Tt(i,n){var E="";return n<i.length&&(E=i.charAt(n)),E}function at(i){var n=this;if(this.error)throw this.error;if(n.closed)return K(n,"Cannot write after close. Assign an onready handler.");if(i===null)return nt(n);typeof i=="object"&&(i=i.toString());for(var E=0,a="";a=Tt(i,E++),n.c=a,!!a;)switch(n.trackPosition&&(n.position++,a===`
`?(n.line++,n.column=0):n.column++),n.state){case s.BEGIN:if(n.state=s.BEGIN_WHITESPACE,a==="\uFEFF")continue;gt(n,a);continue;case s.BEGIN_WHITESPACE:gt(n,a);continue;case s.TEXT:if(n.sawRoot&&!n.closedRoot){for(var P=E-1;a&&a!=="<"&&a!=="&";)a=Tt(i,E++),a&&n.trackPosition&&(n.position++,a===`
`?(n.line++,n.column=0):n.column++);n.textNode+=i.substring(P,E-1)}a==="<"&&!(n.sawRoot&&n.closedRoot&&!n.strict)?(n.state=s.OPEN_WAKA,n.startTagPosition=n.position):(!N(a)&&(!n.sawRoot||n.closedRoot)&&U(n,"Text data outside of root node."),a==="&"?n.state=s.TEXT_ENTITY:n.textNode+=a);continue;case s.SCRIPT:a==="<"?n.state=s.SCRIPT_ENDING:n.script+=a;continue;case s.SCRIPT_ENDING:a==="/"?n.state=s.CLOSE_TAG:(n.script+="<"+a,n.state=s.SCRIPT);continue;case s.OPEN_WAKA:if(a==="!")n.state=s.SGML_DECL,n.sgmlDecl="";else if(!N(a))if(O(z,a))n.state=s.OPEN_TAG,n.tagName=a;else if(a==="/")n.state=s.CLOSE_TAG,n.tagName="";else if(a==="?")n.state=s.PROC_INST,n.procInstName=n.procInstBody="";else{if(U(n,"Unencoded <"),n.startTagPosition+1<n.position){var k=n.position-n.startTagPosition;a=new Array(k).join(" ")+a}n.textNode+="<"+a,n.state=s.TEXT}continue;case s.SGML_DECL:if(n.sgmlDecl+a==="--"){n.state=s.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=s.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+a,n.sgmlDecl=""):(n.sgmlDecl+a).toUpperCase()===S?(f(n,"onopencdata"),n.state=s.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+a).toUpperCase()===B?(n.state=s.DOCTYPE,(n.doctype||n.sawRoot)&&U(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):a===">"?(f(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=s.TEXT):(_(a)&&(n.state=s.SGML_DECL_QUOTED),n.sgmlDecl+=a);continue;case s.SGML_DECL_QUOTED:a===n.q&&(n.state=s.SGML_DECL,n.q=""),n.sgmlDecl+=a;continue;case s.DOCTYPE:a===">"?(n.state=s.TEXT,f(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=a,a==="["?n.state=s.DOCTYPE_DTD:_(a)&&(n.state=s.DOCTYPE_QUOTED,n.q=a));continue;case s.DOCTYPE_QUOTED:n.doctype+=a,a===n.q&&(n.q="",n.state=s.DOCTYPE);continue;case s.DOCTYPE_DTD:a==="]"?(n.doctype+=a,n.state=s.DOCTYPE):a==="<"?(n.state=s.OPEN_WAKA,n.startTagPosition=n.position):_(a)?(n.doctype+=a,n.state=s.DOCTYPE_DTD_QUOTED,n.q=a):n.doctype+=a;continue;case s.DOCTYPE_DTD_QUOTED:n.doctype+=a,a===n.q&&(n.state=s.DOCTYPE_DTD,n.q="");continue;case s.COMMENT:a==="-"?n.state=s.COMMENT_ENDING:n.comment+=a;continue;case s.COMMENT_ENDING:a==="-"?(n.state=s.COMMENT_ENDED,n.comment=et(n.opt,n.comment),n.comment&&f(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+a,n.state=s.COMMENT);continue;case s.COMMENT_ENDED:a!==">"?(U(n,"Malformed comment"),n.comment+="--"+a,n.state=s.COMMENT):n.doctype&&n.doctype!==!0?n.state=s.DOCTYPE_DTD:n.state=s.TEXT;continue;case s.CDATA:a==="]"?n.state=s.CDATA_ENDING:n.cdata+=a;continue;case s.CDATA_ENDING:a==="]"?n.state=s.CDATA_ENDING_2:(n.cdata+="]"+a,n.state=s.CDATA);continue;case s.CDATA_ENDING_2:a===">"?(n.cdata&&f(n,"oncdata",n.cdata),f(n,"onclosecdata"),n.cdata="",n.state=s.TEXT):a==="]"?n.cdata+="]":(n.cdata+="]]"+a,n.state=s.CDATA);continue;case s.PROC_INST:a==="?"?n.state=s.PROC_INST_ENDING:N(a)?n.state=s.PROC_INST_BODY:n.procInstName+=a;continue;case s.PROC_INST_BODY:if(!n.procInstBody&&N(a))continue;a==="?"?n.state=s.PROC_INST_ENDING:n.procInstBody+=a;continue;case s.PROC_INST_ENDING:a===">"?(f(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=s.TEXT):(n.procInstBody+="?"+a,n.state=s.PROC_INST_BODY);continue;case s.OPEN_TAG:O(p,a)?n.tagName+=a:(Et(n),a===">"?st(n):a==="/"?n.state=s.OPEN_TAG_SLASH:(N(a)||U(n,"Invalid character in tag name"),n.state=s.ATTRIB));continue;case s.OPEN_TAG_SLASH:a===">"?(st(n,!0),ut(n)):(U(n,"Forward-slash in opening tag not followed by >"),n.state=s.ATTRIB);continue;case s.ATTRIB:if(N(a))continue;a===">"?st(n):a==="/"?n.state=s.OPEN_TAG_SLASH:O(z,a)?(n.attribName=a,n.attribValue="",n.state=s.ATTRIB_NAME):U(n,"Invalid attribute name");continue;case s.ATTRIB_NAME:a==="="?n.state=s.ATTRIB_VALUE:a===">"?(U(n,"Attribute without value"),n.attribValue=n.attribName,lt(n),st(n)):N(a)?n.state=s.ATTRIB_NAME_SAW_WHITE:O(p,a)?n.attribName+=a:U(n,"Invalid attribute name");continue;case s.ATTRIB_NAME_SAW_WHITE:if(a==="=")n.state=s.ATTRIB_VALUE;else{if(N(a))continue;U(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",f(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",a===">"?st(n):O(z,a)?(n.attribName=a,n.state=s.ATTRIB_NAME):(U(n,"Invalid attribute name"),n.state=s.ATTRIB)}continue;case s.ATTRIB_VALUE:if(N(a))continue;_(a)?(n.q=a,n.state=s.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||K(n,"Unquoted attribute value"),n.state=s.ATTRIB_VALUE_UNQUOTED,n.attribValue=a);continue;case s.ATTRIB_VALUE_QUOTED:if(a!==n.q){a==="&"?n.state=s.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=a;continue}lt(n),n.q="",n.state=s.ATTRIB_VALUE_CLOSED;continue;case s.ATTRIB_VALUE_CLOSED:N(a)?n.state=s.ATTRIB:a===">"?st(n):a==="/"?n.state=s.OPEN_TAG_SLASH:O(z,a)?(U(n,"No whitespace between attributes"),n.attribName=a,n.attribValue="",n.state=s.ATTRIB_NAME):U(n,"Invalid attribute name");continue;case s.ATTRIB_VALUE_UNQUOTED:if(!F(a)){a==="&"?n.state=s.ATTRIB_VALUE_ENTITY_U:n.attribValue+=a;continue}lt(n),a===">"?st(n):n.state=s.ATTRIB;continue;case s.CLOSE_TAG:if(n.tagName)a===">"?ut(n):O(p,a)?n.tagName+=a:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=s.SCRIPT):(N(a)||U(n,"Invalid tagname in closing tag"),n.state=s.CLOSE_TAG_SAW_WHITE);else{if(N(a))continue;C(z,a)?n.script?(n.script+="</"+a,n.state=s.SCRIPT):U(n,"Invalid tagname in closing tag."):n.tagName=a}continue;case s.CLOSE_TAG_SAW_WHITE:if(N(a))continue;a===">"?ut(n):U(n,"Invalid characters in closing tag");continue;case s.TEXT_ENTITY:case s.ATTRIB_VALUE_ENTITY_Q:case s.ATTRIB_VALUE_ENTITY_U:var Y,J;switch(n.state){case s.TEXT_ENTITY:Y=s.TEXT,J="textNode";break;case s.ATTRIB_VALUE_ENTITY_Q:Y=s.ATTRIB_VALUE_QUOTED,J="attribValue";break;case s.ATTRIB_VALUE_ENTITY_U:Y=s.ATTRIB_VALUE_UNQUOTED,J="attribValue";break}if(a===";"){var Q=At(n);n.opt.unparsedEntities&&!Object.values(u.XML_ENTITIES).includes(Q)?(n.entity="",n.state=Y,n.write(Q)):(n[J]+=Q,n.entity="",n.state=Y)}else O(n.entity.length?I:d,a)?n.entity+=a:(U(n,"Invalid character in entity name"),n[J]+="&"+n.entity+a,n.entity="",n.state=Y);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&R(n),n}String.fromCodePoint||(function(){var i=String.fromCharCode,n=Math.floor,E=function(){var a=16384,P=[],k,Y,J=-1,Q=arguments.length;if(!Q)return"";for(var ft="";++J<Q;){var W=Number(arguments[J]);if(!isFinite(W)||W<0||W>1114111||n(W)!==W)throw RangeError("Invalid code point: "+W);W<=65535?P.push(W):(W-=65536,k=(W>>10)+55296,Y=W%1024+56320,P.push(k,Y)),(J+1===Q||P.length>a)&&(ft+=i.apply(null,P),P.length=0)}return ft};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E})()})(g)})(le)),le}Xe();var je=(g=>(g[g.UploadFromDevice=0]="UploadFromDevice",g[g.CreateNew=1]="CreateNew",g[g.Other=2]="Other",g))(je||{});class Ve{_entries=[];registerEntry(u){this.validateEntry(u),u.category=u.category??1,this._entries.push(u)}unregisterEntry(u){const T=typeof u=="string"?this.getEntryIndex(u):this.getEntryIndex(u.id);if(T===-1){wt.warn("Entry not found, nothing removed",{entry:u,entries:this.getEntries()});return}this._entries.splice(T,1)}getEntries(u){return u?this._entries.filter(T=>typeof T.enabled=="function"?T.enabled(u):!0):this._entries}getEntryIndex(u){return this._entries.findIndex(T=>T.id===u)}validateEntry(u){if(!u.id||!u.displayName||!(u.iconSvgInline||u.iconClass)||!u.handler)throw new Error("Invalid entry");if(typeof u.id!="string"||typeof u.displayName!="string")throw new Error("Invalid id or displayName property");if(u.iconClass&&typeof u.iconClass!="string"||u.iconSvgInline&&typeof u.iconSvgInline!="string")throw new Error("Invalid icon provided");if(u.enabled!==void 0&&typeof u.enabled!="function")throw new Error("Invalid enabled property");if(typeof u.handler!="function")throw new Error("Invalid handler property");if("order"in u&&typeof u.order!="number")throw new Error("Invalid order property");if(this.getEntryIndex(u.id)!==-1)throw new Error("Duplicate entry")}}function ke(){return typeof window._nc_newfilemenu>"u"&&(window._nc_newfilemenu=new Ve,wt.debug("NewFileMenu initialized")),window._nc_newfilemenu}function tr(g){return ke().registerEntry(g)}var Ye=(g=>(g.ReservedName="reserved name",g.Character="character",g.Extension="extension",g))(Ye||{});class bt extends Error{constructor(u){super(`Invalid ${u.reason} '${u.segment}' in filename '${u.filename}'`,{cause:u})}get filename(){return this.cause.filename}get reason(){return this.cause.reason}get segment(){return this.cause.segment}}function er(g){const u=Le().files,T=u.forbidden_filename_characters??window._oc_config?.forbidden_filenames_characters??["/","\\"];for(const A of T)if(g.includes(A))throw new bt({segment:A,reason:"character",filename:g});if(g=g.toLocaleLowerCase(),(u.forbidden_filenames??[".htaccess"]).includes(g))throw new bt({filename:g,segment:g,reason:"reserved name"});const b=g.indexOf(".",1),R=g.substring(0,b===-1?void 0:b);if((u.forbidden_filename_basenames??[]).includes(R))throw new bt({filename:g,segment:R,reason:"reserved name"});const D=u.forbidden_filename_extensions??[".part",".filepart"];for(const A of D)if(g.length>A.length&&g.endsWith(A))throw new bt({segment:A,reason:"extension",filename:g})}const Xt=["B","KB","MB","GB","TB","PB"],jt=["B","KiB","MiB","GiB","TiB","PiB"];function rr(g,u=!1,T=!1,b=!1){T=T&&!b,typeof g=="string"&&(g=Number(g));let R=g>0?Math.floor(Math.log(g)/Math.log(b?1e3:1024)):0;R=Math.min((T?jt.length:Xt.length)-1,R);const D=T?jt[R]:Xt[R];let A=(g/Math.pow(b?1e3:1024,R)).toFixed(1);return u===!0&&R===0?(A!=="0.0"?"< 1 ":"0 ")+(T?jt[1]:Xt[1]):(R<2?A=parseFloat(A).toFixed(0):A=parseFloat(A).toLocaleString(Ee()),A+" "+D)}function pe(g){return g instanceof Date?g.toISOString():String(g)}function qe(g,u,T){u=u??[D=>D],T=T??[];const b=u.map((D,A)=>(T[A]??"asc")==="asc"?1:-1),R=Intl.Collator([Re(),Ee()],{numeric:!0,usage:"sort"});return[...g].sort((D,A)=>{for(const[L,m]of u.entries()){const w=R.compare(pe(m(D)),pe(m(A)));if(w!==0)return w*b[L]}return 0})}function nr(g,u={}){const T={sortingMode:"basename",sortingOrder:"asc",...u};function b(A){const L=A.displayname||A.attributes?.displayname||A.basename||"";return A.type===_e.Folder?L:L.lastIndexOf(".")>0?L.slice(0,L.lastIndexOf(".")):L}const R=[...T.sortFavoritesFirst?[A=>A.attributes?.favorite!==1]:[],...T.sortFoldersFirst?[A=>A.type!=="folder"]:[],...T.sortingMode!=="basename"?[A=>A[T.sortingMode]??A.attributes[T.sortingMode]]:[],A=>b(A),A=>A.basename],D=[...T.sortFavoritesFirst?["asc"]:[],...T.sortFoldersFirst?["asc"]:[],...T.sortingMode==="mtime"?[T.sortingOrder==="asc"?"desc":"asc"]:[],...T.sortingMode!=="mtime"&&T.sortingMode!=="basename"?[T.sortingOrder]:[],T.sortingOrder,T.sortingOrder];return qe(g,R,D)}export{Ze as H,bt as I,je as N,tr as a,Ye as b,rr as f,Je as r,nr as s,er as v};
//# sourceMappingURL=index-CULZQJrn.chunk.mjs.map