%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/index-WINsn-uD.chunk.mjs |
/*! third party licenses: js/vendor.LICENSE.txt */ import{g as mn}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{p as oe,a as wn,o as bn}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{g as En}from"./emoji-picker-SoWZqoso.chunk.mjs";const Rn=e=>"/remote.php/"+e,mo=(e,r)=>{var i;return((i=void 0)!=null?i:Se())+Rn(e)},wo=(e,r,i)=>{var s;const a=Object.assign({ocsVersion:2},{}).ocsVersion===1?1:2;return((s=void 0)!=null?s:Se())+"/ocs/v"+a+".php"+Lt(e,r)},Lt=(e,r,i)=>{const s=Object.assign({escape:!0},{}),a=function(u,c){return c=c||{},u.replace(/{([^{}]*)}/g,function(m,y){const g=c[y];return s.escape?encodeURIComponent(typeof g=="string"||typeof g=="number"?g.toString():m):typeof g=="string"||typeof g=="number"?g.toString():m})};return e.charAt(0)!=="/"&&(e="/"+e),a(e,r||{})},On=(e,r,i)=>{var s,a,u;const c=Object.assign({noRewrite:!1},{}),m=(s=void 0)!=null?s:$t();return((u=(a=window==null?void 0:window.OC)==null?void 0:a.config)==null?void 0:u.modRewriteWorking)===!0&&!c.noRewrite?m+Lt(e,r):m+"/index.php"+Lt(e,r)},bo=(e,r)=>r.includes(".")?ie(e,"img",r):ie(e,"img","".concat(r,".svg")),ie=(e,r,i)=>{var s,a,u;const c=(u=(a=(s=window==null?void 0:window.OC)==null?void 0:s.coreApps)==null?void 0:a.includes(e))!=null?u:!1,m=i.slice(-3)==="php";let y=$t();return m&&!c?(y+="/index.php/apps/".concat(e),y+="/".concat(encodeURI(r)),i!=="index.php"&&(y+="/".concat(i))):!m&&!c?(y=Tn(e),y+="/".concat(r,"/"),y.at(-1)!=="/"&&(y+="/"),y+=i):(y+="/".concat(e),y+="/".concat(r),y+="/".concat(i)),y},Se=()=>window.location.protocol+"//"+window.location.host+$t();function $t(){let e=window._oc_webroot;if(typeof e>"u"){e=location.pathname;const r=e.indexOf("/index.php/");if(r!==-1)e=e.slice(0,r);else{const i=e.indexOf("/",1);e=e.slice(0,i>0?i:void 0)}}return e}function Tn(e){var r,i;return(i=((r=window._oc_appswebroots)!=null?r:{})[e])!=null?i:""}function Be(e,r){return function(){return e.apply(r,arguments)}}const{toString:An}=Object.prototype,{getPrototypeOf:Vt}=Object,bt=(e=>r=>{const i=An.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),V=e=>(e=e.toLowerCase(),r=>bt(r)===e),Et=e=>r=>typeof r===e,{isArray:ot}=Array,ct=Et("undefined");function vn(e){return e!==null&&!ct(e)&&e.constructor!==null&&!ct(e.constructor)&&F(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xe=V("ArrayBuffer");function Sn(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&xe(e.buffer),r}const Bn=Et("string"),F=Et("function"),Ue=Et("number"),Rt=e=>e!==null&&typeof e=="object",xn=e=>e===!0||e===!1,dt=e=>{if(bt(e)!=="object")return!1;const r=Vt(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Un=V("Date"),Cn=V("File"),In=V("Blob"),_n=V("FileList"),Ln=e=>Rt(e)&&F(e.pipe),jn=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||F(e.append)&&((r=bt(e))==="formdata"||r==="object"&&F(e.toString)&&e.toString()==="[object FormData]"))},Nn=V("URLSearchParams"),[Pn,kn,Fn,Dn]=["ReadableStream","Request","Response","Headers"].map(V),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let s,a;if(typeof e!="object"&&(e=[e]),ot(e))for(s=0,a=e.length;s<a;s++)r.call(null,e[s],s,e);else{const u=i?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;let m;for(s=0;s<c;s++)m=u[s],r.call(null,e[m],m,e)}}function Ce(e,r){r=r.toLowerCase();const i=Object.keys(e);let s=i.length,a;for(;s-- >0;)if(a=i[s],r===a.toLowerCase())return a;return null}const K=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:mn,Ie=e=>!ct(e)&&e!==K;function jt(){const{caseless:e}=Ie(this)&&this||{},r={},i=(s,a)=>{const u=e&&Ce(r,a)||a;dt(r[u])&&dt(s)?r[u]=jt(r[u],s):dt(s)?r[u]=jt({},s):ot(s)?r[u]=s.slice():r[u]=s};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&ft(arguments[s],i);return r}const qn=(e,r,i,{allOwnKeys:s}={})=>(ft(r,(a,u)=>{i&&F(a)?e[u]=Be(a,i):e[u]=a},{allOwnKeys:s}),e),zn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$n=(e,r,i,s)=>{e.prototype=Object.create(r.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Vn=(e,r,i,s)=>{let a,u,c;const m={};if(r=r||{},e==null)return r;do{for(a=Object.getOwnPropertyNames(e),u=a.length;u-- >0;)c=a[u],(!s||s(c,e,r))&&!m[c]&&(r[c]=e[c],m[c]=!0);e=i!==!1&&Vt(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Jn=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const s=e.indexOf(r,i);return s!==-1&&s===i},Wn=e=>{if(!e)return null;if(ot(e))return e;let r=e.length;if(!Ue(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},Gn=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&Vt(Uint8Array)),Hn=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;r.call(e,a[0],a[1])}},Xn=(e,r)=>{let i;const s=[];for(;(i=e.exec(r))!==null;)s.push(i);return s},Yn=V("HTMLFormElement"),Kn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),se=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),Zn=V("RegExp"),_e=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),s={};ft(i,(a,u)=>{let c;(c=r(a,u,e))!==!1&&(s[u]=c||a)}),Object.defineProperties(e,s)},Qn=e=>{_e(e,(r,i)=>{if(F(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const s=e[i];if(F(s)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},tr=(e,r)=>{const i={},s=a=>{a.forEach(u=>{i[u]=!0})};return ot(e)?s(e):s(String(e).split(r)),i},er=()=>{},nr=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,xt="abcdefghijklmnopqrstuvwxyz",ae="0123456789",Le={DIGIT:ae,ALPHA:xt,ALPHA_DIGIT:xt+xt.toUpperCase()+ae},rr=(e=16,r=Le.ALPHA_DIGIT)=>{let i="";const{length:s}=r;for(;e--;)i+=r[Math.random()*s|0];return i};function or(e){return!!(e&&F(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ir=e=>{const r=new Array(10),i=(s,a)=>{if(Rt(s)){if(r.indexOf(s)>=0)return;if(!("toJSON"in s)){r[a]=s;const u=ot(s)?[]:{};return ft(s,(c,m)=>{const y=i(c,a+1);!ct(y)&&(u[m]=y)}),r[a]=void 0,u}}return s};return i(e,0)},sr=V("AsyncFunction"),ar=e=>e&&(Rt(e)||F(e))&&F(e.then)&&F(e.catch),je=((e,r)=>e?setImmediate:r?((i,s)=>(K.addEventListener("message",({source:a,data:u})=>{a===K&&u===i&&s.length&&s.shift()()},!1),a=>{s.push(a),K.postMessage(i,"*")}))("axios@".concat(Math.random()),[]):i=>setTimeout(i))(typeof setImmediate=="function",F(K.postMessage)),ur=typeof queueMicrotask<"u"?queueMicrotask.bind(K):typeof oe<"u"&&oe.nextTick||je,p={isArray:ot,isArrayBuffer:xe,isBuffer:vn,isFormData:jn,isArrayBufferView:Sn,isString:Bn,isNumber:Ue,isBoolean:xn,isObject:Rt,isPlainObject:dt,isReadableStream:Pn,isRequest:kn,isResponse:Fn,isHeaders:Dn,isUndefined:ct,isDate:Un,isFile:Cn,isBlob:In,isRegExp:Zn,isFunction:F,isStream:Ln,isURLSearchParams:Nn,isTypedArray:Gn,isFileList:_n,forEach:ft,merge:jt,extend:qn,trim:Mn,stripBOM:zn,inherits:$n,toFlatObject:Vn,kindOf:bt,kindOfTest:V,endsWith:Jn,toArray:Wn,forEachEntry:Hn,matchAll:Xn,isHTMLForm:Yn,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:_e,freezeMethods:Qn,toObjectSet:tr,toCamelCase:Kn,noop:er,toFiniteNumber:nr,findKey:Ce,global:K,isContextDefined:Ie,ALPHABET:Le,generateString:rr,isSpecCompliantForm:or,toJSONObject:ir,isAsyncFn:sr,isThenable:ar,setImmediate:je,asap:ur};var Ne={},gt={};gt.byteLength=lr,gt.toByteArray=pr,gt.fromByteArray=yr;for(var W=[],D=[],cr=typeof Uint8Array<"u"?Uint8Array:Array,Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nt=0,fr=Ut.length;nt<fr;++nt)W[nt]=Ut[nt],D[Ut.charCodeAt(nt)]=nt;D[45]=62,D[95]=63;function Pe(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=r);var s=i===r?0:4-i%4;return[i,s]}function lr(e){var r=Pe(e),i=r[0],s=r[1];return(i+s)*3/4-s}function hr(e,r,i){return(r+i)*3/4-i}function pr(e){var r,i=Pe(e),s=i[0],a=i[1],u=new cr(hr(e,s,a)),c=0,m=a>0?s-4:s,y;for(y=0;y<m;y+=4)r=D[e.charCodeAt(y)]<<18|D[e.charCodeAt(y+1)]<<12|D[e.charCodeAt(y+2)]<<6|D[e.charCodeAt(y+3)],u[c++]=r>>16&255,u[c++]=r>>8&255,u[c++]=r&255;return a===2&&(r=D[e.charCodeAt(y)]<<2|D[e.charCodeAt(y+1)]>>4,u[c++]=r&255),a===1&&(r=D[e.charCodeAt(y)]<<10|D[e.charCodeAt(y+1)]<<4|D[e.charCodeAt(y+2)]>>2,u[c++]=r>>8&255,u[c++]=r&255),u}function dr(e){return W[e>>18&63]+W[e>>12&63]+W[e>>6&63]+W[e&63]}function gr(e,r,i){for(var s,a=[],u=r;u<i;u+=3)s=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(e[u+2]&255),a.push(dr(s));return a.join("")}function yr(e){for(var r,i=e.length,s=i%3,a=[],u=16383,c=0,m=i-s;c<m;c+=u)a.push(gr(e,c,c+u>m?m:c+u));return s===1?(r=e[i-1],a.push(W[r>>2]+W[r<<4&63]+"==")):s===2&&(r=(e[i-2]<<8)+e[i-1],a.push(W[r>>10]+W[r>>4&63]+W[r<<2&63]+"=")),a.join("")}var Nt={};Nt.read=function(e,r,i,s,a){var u,c,m=a*8-s-1,y=(1<<m)-1,g=y>>1,f=-7,E=i?a-1:0,T=i?-1:1,b=e[r+E];for(E+=T,u=b&(1<<-f)-1,b>>=-f,f+=m;f>0;u=u*256+e[r+E],E+=T,f-=8);for(c=u&(1<<-f)-1,u>>=-f,f+=s;f>0;c=c*256+e[r+E],E+=T,f-=8);if(u===0)u=1-g;else{if(u===y)return c?NaN:(b?-1:1)*(1/0);c=c+Math.pow(2,s),u=u-g}return(b?-1:1)*c*Math.pow(2,u-s)},Nt.write=function(e,r,i,s,a,u){var c,m,y,g=u*8-a-1,f=(1<<g)-1,E=f>>1,T=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=s?0:u-1,A=s?1:-1,R=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(m=isNaN(r)?1:0,c=f):(c=Math.floor(Math.log(r)/Math.LN2),r*(y=Math.pow(2,-c))<1&&(c--,y*=2),c+E>=1?r+=T/y:r+=T*Math.pow(2,1-E),r*y>=2&&(c++,y/=2),c+E>=f?(m=0,c=f):c+E>=1?(m=(r*y-1)*Math.pow(2,a),c=c+E):(m=r*Math.pow(2,E-1)*Math.pow(2,a),c=0));a>=8;e[i+b]=m&255,b+=A,m/=256,a-=8);for(c=c<<a|m,g+=a;g>0;e[i+b]=c&255,b+=A,c/=256,g-=8);e[i+b-A]|=R*128};(function(e){const r=gt,i=Nt,s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=At,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a;const{Uint8Array:u,ArrayBuffer:c,SharedArrayBuffer:m}=globalThis;f.TYPED_ARRAY_SUPPORT=y(),!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 y(){try{const t=new u(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,u.prototype),Object.setPrototypeOf(t,n),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 g(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const n=new u(t);return Object.setPrototypeOf(n,f.prototype),n}function f(t,n,o){if(typeof t=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(t)}return E(t,n,o)}f.poolSize=8192;function E(t,n,o){if(typeof t=="string")return R(t,n);if(c.isView(t))return k(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(J(t,c)||t&&J(t.buffer,c)||typeof m<"u"&&(J(t,m)||t&&J(t.buffer,m)))return _(t,n,o);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const l=t.valueOf&&t.valueOf();if(l!=null&&l!==t)return f.from(l,n,o);const h=S(t);if(h)return h;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return f.from(t[Symbol.toPrimitive]("string"),n,o);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,n,o){return E(t,n,o)},Object.setPrototypeOf(f.prototype,u.prototype),Object.setPrototypeOf(f,u);function T(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 b(t,n,o){return T(t),t<=0?g(t):n!==void 0?typeof o=="string"?g(t).fill(n,o):g(t).fill(n):g(t)}f.alloc=function(t,n,o){return b(t,n,o)};function A(t){return T(t),g(t<0?0:M(t)|0)}f.allocUnsafe=function(t){return A(t)},f.allocUnsafeSlow=function(t){return A(t)};function R(t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const o=q(t,n)|0;let l=g(o);const h=l.write(t,n);return h!==o&&(l=l.slice(0,h)),l}function C(t){const n=t.length<0?0:M(t.length)|0,o=g(n);for(let l=0;l<n;l+=1)o[l]=t[l]&255;return o}function k(t){if(J(t,u)){const n=new u(t);return _(n.buffer,n.byteOffset,n.byteLength)}return C(t)}function _(t,n,o){if(n<0||t.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<n+(o||0))throw new RangeError('"length" is outside of buffer bounds');let l;return n===void 0&&o===void 0?l=new u(t):o===void 0?l=new u(t,n):l=new u(t,n,o),Object.setPrototypeOf(l,f.prototype),l}function S(t){if(f.isBuffer(t)){const n=M(t.length)|0,o=g(n);return o.length===0||t.copy(o,0,0,n),o}if(t.length!==void 0)return typeof t.length!="number"||Bt(t.length)?g(0):C(t);if(t.type==="Buffer"&&Array.isArray(t.data))return C(t.data)}function M(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.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,n){if(J(t,u)&&(t=f.from(t,t.offset,t.byteLength)),J(n,u)&&(n=f.from(n,n.offset,n.byteLength)),!f.isBuffer(t)||!f.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;let o=t.length,l=n.length;for(let h=0,d=Math.min(o,l);h<d;++h)if(t[h]!==n[h]){o=t[h],l=n[h];break}return o<l?-1:l<o?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,n){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return f.alloc(0);let o;if(n===void 0)for(n=0,o=0;o<t.length;++o)n+=t[o].length;const l=f.allocUnsafe(n);let h=0;for(o=0;o<t.length;++o){let d=t[o];if(J(d,u))h+d.length>l.length?(f.isBuffer(d)||(d=f.from(d)),d.copy(l,h)):u.prototype.set.call(l,d,h);else if(f.isBuffer(d))d.copy(l,h);else throw new TypeError('"list" argument must be an Array of Buffers');h+=d.length}return l};function q(t,n){if(f.isBuffer(t))return t.length;if(c.isView(t)||J(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 o=t.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&o===0)return 0;let h=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return St(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o*2;case"hex":return o>>>1;case"base64":return re(t).length;default:if(h)return l?-1:St(t).length;n=(""+n).toLowerCase(),h=!0}}f.byteLength=q;function G(t,n,o){let l=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((o===void 0||o>this.length)&&(o=this.length),o<=0)||(o>>>=0,n>>>=0,o<=n))return"";for(t||(t="utf8");;)switch(t){case"hex":return un(this,n,o);case"utf8":case"utf-8":return Ht(this,n,o);case"ascii":return sn(this,n,o);case"latin1":case"binary":return an(this,n,o);case"base64":return rn(this,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cn(this,n,o);default:if(l)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),l=!0}}f.prototype._isBuffer=!0;function z(t,n,o){const l=t[n];t[n]=t[o],t[o]=l}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 n=0;n<t;n+=2)z(this,n,n+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 n=0;n<t;n+=4)z(this,n,n+3),z(this,n+1,n+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 n=0;n<t;n+=8)z(this,n,n+7),z(this,n+1,n+6),z(this,n+2,n+5),z(this,n+3,n+4);return this},f.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?Ht(this,0,t):G.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 n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},s&&(f.prototype[s]=f.prototype.inspect),f.prototype.compare=function(t,n,o,l,h){if(J(t,u)&&(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(n===void 0&&(n=0),o===void 0&&(o=t?t.length:0),l===void 0&&(l=0),h===void 0&&(h=this.length),n<0||o>t.length||l<0||h>this.length)throw new RangeError("out of range index");if(l>=h&&n>=o)return 0;if(l>=h)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,l>>>=0,h>>>=0,this===t)return 0;let d=h-l,w=o-n;const B=Math.min(d,w),j=this.slice(l,h),x=t.slice(n,o);for(let v=0;v<B;++v)if(j[v]!==x[v]){d=j[v],w=x[v];break}return d<w?-1:w<d?1:0};function Y(t,n,o,l,h){if(t.length===0)return-1;if(typeof o=="string"?(l=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,Bt(o)&&(o=h?0:t.length-1),o<0&&(o=t.length+o),o>=t.length){if(h)return-1;o=t.length-1}else if(o<0)if(h)o=0;else return-1;if(typeof n=="string"&&(n=f.from(n,l)),f.isBuffer(n))return n.length===0?-1:st(t,n,o,l,h);if(typeof n=="number")return n=n&255,typeof u.prototype.indexOf=="function"?h?u.prototype.indexOf.call(t,n,o):u.prototype.lastIndexOf.call(t,n,o):st(t,[n],o,l,h);throw new TypeError("val must be string, number or Buffer")}function st(t,n,o,l,h){let d=1,w=t.length,B=n.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(t.length<2||n.length<2)return-1;d=2,w/=2,B/=2,o/=2}function j(v,I){return d===1?v[I]:v.readUInt16BE(I*d)}let x;if(h){let v=-1;for(x=o;x<w;x++)if(j(t,x)===j(n,v===-1?0:x-v)){if(v===-1&&(v=x),x-v+1===B)return v*d}else v!==-1&&(x-=x-v),v=-1}else for(o+B>w&&(o=w-B),x=o;x>=0;x--){let v=!0;for(let I=0;I<B;I++)if(j(t,x+I)!==j(n,I)){v=!1;break}if(v)return x}return-1}f.prototype.includes=function(t,n,o){return this.indexOf(t,n,o)!==-1},f.prototype.indexOf=function(t,n,o){return Y(this,t,n,o,!0)},f.prototype.lastIndexOf=function(t,n,o){return Y(this,t,n,o,!1)};function Ze(t,n,o,l){o=Number(o)||0;const h=t.length-o;l?(l=Number(l),l>h&&(l=h)):l=h;const d=n.length;l>d/2&&(l=d/2);let w;for(w=0;w<l;++w){const B=parseInt(n.substr(w*2,2),16);if(Bt(B))return w;t[o+w]=B}return w}function Qe(t,n,o,l){return ht(St(n,t.length-o),t,o,l)}function tn(t,n,o,l){return ht(pn(n),t,o,l)}function en(t,n,o,l){return ht(re(n),t,o,l)}function nn(t,n,o,l){return ht(dn(n,t.length-o),t,o,l)}f.prototype.write=function(t,n,o,l){if(n===void 0)l="utf8",o=this.length,n=0;else if(o===void 0&&typeof n=="string")l=n,o=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(o)?(o=o>>>0,l===void 0&&(l="utf8")):(l=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const h=this.length-n;if((o===void 0||o>h)&&(o=h),t.length>0&&(o<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");l||(l="utf8");let d=!1;for(;;)switch(l){case"hex":return Ze(this,t,n,o);case"utf8":case"utf-8":return Qe(this,t,n,o);case"ascii":case"latin1":case"binary":return tn(this,t,n,o);case"base64":return en(this,t,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nn(this,t,n,o);default:if(d)throw new TypeError("Unknown encoding: "+l);l=(""+l).toLowerCase(),d=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rn(t,n,o){return n===0&&o===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(n,o))}function Ht(t,n,o){o=Math.min(t.length,o);const l=[];let h=n;for(;h<o;){const d=t[h];let w=null,B=d>239?4:d>223?3:d>191?2:1;if(h+B<=o){let j,x,v,I;switch(B){case 1:d<128&&(w=d);break;case 2:j=t[h+1],(j&192)===128&&(I=(d&31)<<6|j&63,I>127&&(w=I));break;case 3:j=t[h+1],x=t[h+2],(j&192)===128&&(x&192)===128&&(I=(d&15)<<12|(j&63)<<6|x&63,I>2047&&(I<55296||I>57343)&&(w=I));break;case 4:j=t[h+1],x=t[h+2],v=t[h+3],(j&192)===128&&(x&192)===128&&(v&192)===128&&(I=(d&15)<<18|(j&63)<<12|(x&63)<<6|v&63,I>65535&&I<1114112&&(w=I))}}w===null?(w=65533,B=1):w>65535&&(w-=65536,l.push(w>>>10&1023|55296),w=56320|w&1023),l.push(w),h+=B}return on(l)}const Xt=4096;function on(t){const n=t.length;if(n<=Xt)return String.fromCharCode.apply(String,t);let o="",l=0;for(;l<n;)o+=String.fromCharCode.apply(String,t.slice(l,l+=Xt));return o}function sn(t,n,o){let l="";o=Math.min(t.length,o);for(let h=n;h<o;++h)l+=String.fromCharCode(t[h]&127);return l}function an(t,n,o){let l="";o=Math.min(t.length,o);for(let h=n;h<o;++h)l+=String.fromCharCode(t[h]);return l}function un(t,n,o){const l=t.length;(!n||n<0)&&(n=0),(!o||o<0||o>l)&&(o=l);let h="";for(let d=n;d<o;++d)h+=gn[t[d]];return h}function cn(t,n,o){const l=t.slice(n,o);let h="";for(let d=0;d<l.length-1;d+=2)h+=String.fromCharCode(l[d]+l[d+1]*256);return h}f.prototype.slice=function(t,n){const o=this.length;t=~~t,n=n===void 0?o:~~n,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),n<t&&(n=t);const l=this.subarray(t,n);return Object.setPrototypeOf(l,f.prototype),l};function L(t,n,o){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+n>o)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(t,n,o){t=t>>>0,n=n>>>0,o||L(t,n,this.length);let l=this[t],h=1,d=0;for(;++d<n&&(h*=256);)l+=this[t+d]*h;return l},f.prototype.readUintBE=f.prototype.readUIntBE=function(t,n,o){t=t>>>0,n=n>>>0,o||L(t,n,this.length);let l=this[t+--n],h=1;for(;n>0&&(h*=256);)l+=this[t+--n]*h;return l},f.prototype.readUint8=f.prototype.readUInt8=function(t,n){return t=t>>>0,n||L(t,1,this.length),this[t]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(t,n){return t=t>>>0,n||L(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(t,n){return t=t>>>0,n||L(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(t,n){return t=t>>>0,n||L(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,n){return t=t>>>0,n||L(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readBigUInt64LE=H(function(t){t=t>>>0,et(t,"offset");const n=this[t],o=this[t+7];(n===void 0||o===void 0)&&at(t,this.length-8);const l=n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,h=this[++t]+this[++t]*2**8+this[++t]*2**16+o*2**24;return BigInt(l)+(BigInt(h)<<BigInt(32))}),f.prototype.readBigUInt64BE=H(function(t){t=t>>>0,et(t,"offset");const n=this[t],o=this[t+7];(n===void 0||o===void 0)&&at(t,this.length-8);const l=n*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],h=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+o;return(BigInt(l)<<BigInt(32))+BigInt(h)}),f.prototype.readIntLE=function(t,n,o){t=t>>>0,n=n>>>0,o||L(t,n,this.length);let l=this[t],h=1,d=0;for(;++d<n&&(h*=256);)l+=this[t+d]*h;return h*=128,l>=h&&(l-=Math.pow(2,8*n)),l},f.prototype.readIntBE=function(t,n,o){t=t>>>0,n=n>>>0,o||L(t,n,this.length);let l=n,h=1,d=this[t+--l];for(;l>0&&(h*=256);)d+=this[t+--l]*h;return h*=128,d>=h&&(d-=Math.pow(2,8*n)),d},f.prototype.readInt8=function(t,n){return t=t>>>0,n||L(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},f.prototype.readInt16LE=function(t,n){t=t>>>0,n||L(t,2,this.length);const o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o},f.prototype.readInt16BE=function(t,n){t=t>>>0,n||L(t,2,this.length);const o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o},f.prototype.readInt32LE=function(t,n){return t=t>>>0,n||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,n){return t=t>>>0,n||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readBigInt64LE=H(function(t){t=t>>>0,et(t,"offset");const n=this[t],o=this[t+7];(n===void 0||o===void 0)&&at(t,this.length-8);const l=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(o<<24);return(BigInt(l)<<BigInt(32))+BigInt(n+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),f.prototype.readBigInt64BE=H(function(t){t=t>>>0,et(t,"offset");const n=this[t],o=this[t+7];(n===void 0||o===void 0)&&at(t,this.length-8);const l=(n<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(l)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+o)}),f.prototype.readFloatLE=function(t,n){return t=t>>>0,n||L(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,n){return t=t>>>0,n||L(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,n){return t=t>>>0,n||L(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,n){return t=t>>>0,n||L(t,8,this.length),i.read(this,t,!1,52,8)};function N(t,n,o,l,h,d){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>h||n<d)throw new RangeError('"value" argument is out of bounds');if(o+l>t.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(t,n,o,l){if(t=+t,n=n>>>0,o=o>>>0,!l){const w=Math.pow(2,8*o)-1;N(this,t,n,o,w,0)}let h=1,d=0;for(this[n]=t&255;++d<o&&(h*=256);)this[n+d]=t/h&255;return n+o},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(t,n,o,l){if(t=+t,n=n>>>0,o=o>>>0,!l){const w=Math.pow(2,8*o)-1;N(this,t,n,o,w,0)}let h=o-1,d=1;for(this[n+h]=t&255;--h>=0&&(d*=256);)this[n+h]=t/d&255;return n+o},f.prototype.writeUint8=f.prototype.writeUInt8=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,1,255,0),this[n]=t&255,n+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,2,65535,0),this[n]=t&255,this[n+1]=t>>>8,n+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,2,65535,0),this[n]=t>>>8,this[n+1]=t&255,n+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,4,4294967295,0),this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255,n+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,4,4294967295,0),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4};function Yt(t,n,o,l,h){ne(n,l,h,t,o,7);let d=Number(n&BigInt(4294967295));t[o++]=d,d=d>>8,t[o++]=d,d=d>>8,t[o++]=d,d=d>>8,t[o++]=d;let w=Number(n>>BigInt(32)&BigInt(4294967295));return t[o++]=w,w=w>>8,t[o++]=w,w=w>>8,t[o++]=w,w=w>>8,t[o++]=w,o}function Kt(t,n,o,l,h){ne(n,l,h,t,o,7);let d=Number(n&BigInt(4294967295));t[o+7]=d,d=d>>8,t[o+6]=d,d=d>>8,t[o+5]=d,d=d>>8,t[o+4]=d;let w=Number(n>>BigInt(32)&BigInt(4294967295));return t[o+3]=w,w=w>>8,t[o+2]=w,w=w>>8,t[o+1]=w,w=w>>8,t[o]=w,o+8}f.prototype.writeBigUInt64LE=H(function(t,n=0){return Yt(this,t,n,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=H(function(t,n=0){return Kt(this,t,n,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(t,n,o,l){if(t=+t,n=n>>>0,!l){const B=Math.pow(2,8*o-1);N(this,t,n,o,B-1,-B)}let h=0,d=1,w=0;for(this[n]=t&255;++h<o&&(d*=256);)t<0&&w===0&&this[n+h-1]!==0&&(w=1),this[n+h]=(t/d>>0)-w&255;return n+o},f.prototype.writeIntBE=function(t,n,o,l){if(t=+t,n=n>>>0,!l){const B=Math.pow(2,8*o-1);N(this,t,n,o,B-1,-B)}let h=o-1,d=1,w=0;for(this[n+h]=t&255;--h>=0&&(d*=256);)t<0&&w===0&&this[n+h+1]!==0&&(w=1),this[n+h]=(t/d>>0)-w&255;return n+o},f.prototype.writeInt8=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,1,127,-128),t<0&&(t=255+t+1),this[n]=t&255,n+1},f.prototype.writeInt16LE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,2,32767,-32768),this[n]=t&255,this[n+1]=t>>>8,n+2},f.prototype.writeInt16BE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,2,32767,-32768),this[n]=t>>>8,this[n+1]=t&255,n+2},f.prototype.writeInt32LE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,4,2147483647,-2147483648),this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24,n+4},f.prototype.writeInt32BE=function(t,n,o){return t=+t,n=n>>>0,o||N(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255,n+4},f.prototype.writeBigInt64LE=H(function(t,n=0){return Yt(this,t,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=H(function(t,n=0){return Kt(this,t,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zt(t,n,o,l,h,d){if(o+l>t.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function Qt(t,n,o,l,h){return n=+n,o=o>>>0,h||Zt(t,n,o,4),i.write(t,n,o,l,23,4),o+4}f.prototype.writeFloatLE=function(t,n,o){return Qt(this,t,n,!0,o)},f.prototype.writeFloatBE=function(t,n,o){return Qt(this,t,n,!1,o)};function te(t,n,o,l,h){return n=+n,o=o>>>0,h||Zt(t,n,o,8),i.write(t,n,o,l,52,8),o+8}f.prototype.writeDoubleLE=function(t,n,o){return te(this,t,n,!0,o)},f.prototype.writeDoubleBE=function(t,n,o){return te(this,t,n,!1,o)},f.prototype.copy=function(t,n,o,l){if(!f.isBuffer(t))throw new TypeError("argument should be a Buffer");if(o||(o=0),!l&&l!==0&&(l=this.length),n>=t.length&&(n=t.length),n||(n=0),l>0&&l<o&&(l=o),l===o||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("Index out of range");if(l<0)throw new RangeError("sourceEnd out of bounds");l>this.length&&(l=this.length),t.length-n<l-o&&(l=t.length-n+o);const h=l-o;return this===t&&typeof u.prototype.copyWithin=="function"?this.copyWithin(n,o,l):u.prototype.set.call(t,this.subarray(o,l),n),h},f.prototype.fill=function(t,n,o,l){if(typeof t=="string"){if(typeof n=="string"?(l=n,n=0,o=this.length):typeof o=="string"&&(l=o,o=this.length),l!==void 0&&typeof l!="string")throw new TypeError("encoding must be a string");if(typeof l=="string"&&!f.isEncoding(l))throw new TypeError("Unknown encoding: "+l);if(t.length===1){const d=t.charCodeAt(0);(l==="utf8"&&d<128||l==="latin1")&&(t=d)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(n<0||this.length<n||this.length<o)throw new RangeError("Out of range index");if(o<=n)return this;n=n>>>0,o=o===void 0?this.length:o>>>0,t||(t=0);let h;if(typeof t=="number")for(h=n;h<o;++h)this[h]=t;else{const d=f.isBuffer(t)?t:f.from(t,l),w=d.length;if(w===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(h=0;h<o-n;++h)this[h+n]=d[h%w]}return this};const tt={};function vt(t,n,o){tt[t]=class extends o{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(t,"]"),this.stack,delete this.name}get code(){return t}set code(l){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:l,writable:!0})}toString(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}}vt("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),vt("ERR_INVALID_ARG_TYPE",function(t,n){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(typeof n)},TypeError),vt("ERR_OUT_OF_RANGE",function(t,n,o){let l='The value of "'.concat(t,'" is out of range.'),h=o;return Number.isInteger(o)&&Math.abs(o)>2**32?h=ee(String(o)):typeof o=="bigint"&&(h=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(h=ee(h)),h+="n"),l+=" It must be ".concat(n,". Received ").concat(h),l},RangeError);function ee(t){let n="",o=t.length;const l=t[0]==="-"?1:0;for(;o>=l+4;o-=3)n="_".concat(t.slice(o-3,o)).concat(n);return"".concat(t.slice(0,o)).concat(n)}function fn(t,n,o){et(n,"offset"),(t[n]===void 0||t[n+o]===void 0)&&at(n,t.length-(o+1))}function ne(t,n,o,l,h,d){if(t>o||t<n){const w=typeof n=="bigint"?"n":"";let B;throw n===0||n===BigInt(0)?B=">= 0".concat(w," and < 2").concat(w," ** ").concat((d+1)*8).concat(w):B=">= -(2".concat(w," ** ").concat((d+1)*8-1).concat(w,") and < 2 ** ").concat((d+1)*8-1).concat(w),new tt.ERR_OUT_OF_RANGE("value",B,t)}fn(l,h,d)}function et(t,n){if(typeof t!="number")throw new tt.ERR_INVALID_ARG_TYPE(n,"number",t)}function at(t,n,o){throw Math.floor(t)!==t?(et(t,o),new tt.ERR_OUT_OF_RANGE("offset","an integer",t)):n<0?new tt.ERR_BUFFER_OUT_OF_BOUNDS:new tt.ERR_OUT_OF_RANGE("offset",">= 0 and <= ".concat(n),t)}const ln=/[^+/0-9A-Za-z-_]/g;function hn(t){if(t=t.split("=")[0],t=t.trim().replace(ln,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function St(t,n){n=n||1/0;let o;const l=t.length;let h=null;const d=[];for(let w=0;w<l;++w){if(o=t.charCodeAt(w),o>55295&&o<57344){if(!h){if(o>56319){(n-=3)>-1&&d.push(239,191,189);continue}else if(w+1===l){(n-=3)>-1&&d.push(239,191,189);continue}h=o;continue}if(o<56320){(n-=3)>-1&&d.push(239,191,189),h=o;continue}o=(h-55296<<10|o-56320)+65536}else h&&(n-=3)>-1&&d.push(239,191,189);if(h=null,o<128){if((n-=1)<0)break;d.push(o)}else if(o<2048){if((n-=2)<0)break;d.push(o>>6|192,o&63|128)}else if(o<65536){if((n-=3)<0)break;d.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((n-=4)<0)break;d.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return d}function pn(t){const n=[];for(let o=0;o<t.length;++o)n.push(t.charCodeAt(o)&255);return n}function dn(t,n){let o,l,h;const d=[];for(let w=0;w<t.length&&!((n-=2)<0);++w)o=t.charCodeAt(w),l=o>>8,h=o%256,d.push(h),d.push(l);return d}function re(t){return r.toByteArray(hn(t))}function ht(t,n,o,l){let h;for(h=0;h<l&&!(h+o>=n.length||h>=t.length);++h)n[h+o]=t[h];return h}function J(t,n){return t instanceof n||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===n.name}function Bt(t){return t!==t}const gn=function(){const t="0123456789abcdef",n=new Array(256);for(let o=0;o<16;++o){const l=o*16;for(let h=0;h<16;++h)n[l+h]=t[o]+t[h]}return n}();function H(t){return typeof BigInt>"u"?yn:t}function yn(){throw new Error("BigInt not supported")}})(Ne);const mr=Ne.Buffer;function O(e,r,i,s,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),s&&(this.request=s),a&&(this.response=a)}p.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ue=O.prototype,ce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ce[e]={value:e}}),Object.defineProperties(O,ce),Object.defineProperty(ue,"isAxiosError",{value:!0}),O.from=(e,r,i,s,a,u)=>{const c=Object.create(ue);return p.toFlatObject(e,c,function(m){return m!==Error.prototype},m=>m!=="isAxiosError"),O.call(c,e.message,r,i,s,a),c.cause=e,c.name=e.name,u&&Object.assign(c,u),c};const wr=null;function Pt(e){return p.isPlainObject(e)||p.isArray(e)}function ke(e){return p.endsWith(e,"[]")?e.slice(0,-2):e}function fe(e,r,i){return e?e.concat(r).map(function(s,a){return s=ke(s),!i&&a?"["+s+"]":s}).join(i?".":""):r}function br(e){return p.isArray(e)&&!e.some(Pt)}const Er=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Ot(e,r,i){if(!p.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=p.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,A){return!p.isUndefined(A[b])});const s=i.metaTokens,a=i.visitor||g,u=i.dots,c=i.indexes,m=(i.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(r);if(!p.isFunction(a))throw new TypeError("visitor must be a function");function y(b){if(b===null)return"";if(p.isDate(b))return b.toISOString();if(!m&&p.isBlob(b))throw new O("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(b)||p.isTypedArray(b)?m&&typeof Blob=="function"?new Blob([b]):mr.from(b):b}function g(b,A,R){let C=b;if(b&&!R&&typeof b=="object"){if(p.endsWith(A,"{}"))A=s?A:A.slice(0,-2),b=JSON.stringify(b);else if(p.isArray(b)&&br(b)||(p.isFileList(b)||p.endsWith(A,"[]"))&&(C=p.toArray(b)))return A=ke(A),C.forEach(function(k,_){!(p.isUndefined(k)||k===null)&&r.append(c===!0?fe([A],_,u):c===null?A:A+"[]",y(k))}),!1}return Pt(b)?!0:(r.append(fe(R,A,u),y(b)),!1)}const f=[],E=Object.assign(Er,{defaultVisitor:g,convertValue:y,isVisitable:Pt});function T(b,A){if(!p.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+A.join("."));f.push(b),p.forEach(b,function(R,C){(!(p.isUndefined(R)||R===null)&&a.call(r,R,p.isString(C)?C.trim():C,A,E))===!0&&T(R,A?A.concat(C):[C])}),f.pop()}}if(!p.isObject(e))throw new TypeError("data must be an object");return T(e),r}function le(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function Jt(e,r){this._pairs=[],e&&Ot(e,this,r)}const he=Jt.prototype;he.append=function(e,r){this._pairs.push([e,r])},he.toString=function(e){const r=e?function(i){return e.call(this,i,le)}:le;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fe(e,r,i){if(!r)return e;const s=i&&i.encode||Rr,a=i&&i.serialize;let u;if(a?u=a(r,i):u=p.isURLSearchParams(r)?r.toString():new Jt(r,i).toString(s),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class pe{constructor(){this.handlers=[]}use(r,i,s){return this.handlers.push({fulfilled:r,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){p.forEach(this.handlers,function(i){i!==null&&r(i)})}}const De={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Or=typeof URLSearchParams<"u"?URLSearchParams:Jt,Tr=typeof FormData<"u"?FormData:null,Ar=typeof Blob<"u"?Blob:null,vr={isBrowser:!0,classes:{URLSearchParams:Or,FormData:Tr,Blob:Ar},protocols:["http","https","file","blob","url","data"]},Wt=typeof window<"u"&&typeof document<"u",Sr=(e=>Wt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Br=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xr=Wt&&window.location.href||"http://localhost",Ur=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wt,hasStandardBrowserEnv:Sr,hasStandardBrowserWebWorkerEnv:Br,origin:xr},Symbol.toStringTag,{value:"Module"})),$={...Ur,...vr};function Cr(e,r){return Ot(e,new $.classes.URLSearchParams,Object.assign({visitor:function(i,s,a,u){return $.isNode&&p.isBuffer(i)?(this.append(s,i.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},r))}function Ir(e){return p.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function _r(e){const r={},i=Object.keys(e);let s;const a=i.length;let u;for(s=0;s<a;s++)u=i[s],r[u]=e[u];return r}function Me(e){function r(i,s,a,u){let c=i[u++];if(c==="__proto__")return!0;const m=Number.isFinite(+c),y=u>=i.length;return c=!c&&p.isArray(a)?a.length:c,y?(p.hasOwnProp(a,c)?a[c]=[a[c],s]:a[c]=s,!m):((!a[c]||!p.isObject(a[c]))&&(a[c]=[]),r(i,s,a[c],u)&&p.isArray(a[c])&&(a[c]=_r(a[c])),!m)}if(p.isFormData(e)&&p.isFunction(e.entries)){const i={};return p.forEachEntry(e,(s,a)=>{r(Ir(s),a,i,0)}),i}return null}function Lr(e,r,i){if(p.isString(e))try{return(r||JSON.parse)(e),p.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const lt={transitional:De,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",s=i.indexOf("application/json")>-1,a=p.isObject(e);if(a&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return s?JSON.stringify(Me(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Cr(e,this.formSerializer).toString();if((u=p.isFileList(e))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ot(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),Lr(e)):e}],transformResponse:[function(e){const r=this.transitional||lt.transitional,i=r&&r.forcedJSONParsing,s=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(i&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(u){if(a)throw u.name==="SyntaxError"?O.from(u,O.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$.classes.FormData,Blob:$.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],e=>{lt.headers[e]={}});const jr=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nr=e=>{const r={};let i,s,a;return e&&e.split("\n").forEach(function(u){a=u.indexOf(":"),i=u.substring(0,a).trim().toLowerCase(),s=u.substring(a+1).trim(),!(!i||r[i]&&jr[i])&&(i==="set-cookie"?r[i]?r[i].push(s):r[i]=[s]:r[i]=r[i]?r[i]+", "+s:s)}),r},de=Symbol("internals");function ut(e){return e&&String(e).trim().toLowerCase()}function yt(e){return e===!1||e==null?e:p.isArray(e)?e.map(yt):String(e)}function Pr(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=i.exec(e);)r[s[1]]=s[2];return r}const kr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ct(e,r,i,s,a){if(p.isFunction(s))return s.call(this,r,i);if(a&&(r=i),!!p.isString(r)){if(p.isString(s))return r.indexOf(s)!==-1;if(p.isRegExp(s))return s.test(r)}}function Fr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,s)=>i.toUpperCase()+s)}function Dr(e,r){const i=p.toCamelCase(" "+r);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+i,{value:function(a,u,c){return this[s].call(this,r,a,u,c)},configurable:!0})})}let P=class{constructor(e){e&&this.set(e)}set(e,r,i){const s=this;function a(c,m,y){const g=ut(m);if(!g)throw new Error("header name must be a non-empty string");const f=p.findKey(s,g);(!f||s[f]===void 0||y===!0||y===void 0&&s[f]!==!1)&&(s[f||m]=yt(c))}const u=(c,m)=>p.forEach(c,(y,g)=>a(y,g,m));if(p.isPlainObject(e)||e instanceof this.constructor)u(e,r);else if(p.isString(e)&&(e=e.trim())&&!kr(e))u(Nr(e),r);else if(p.isHeaders(e))for(const[c,m]of e.entries())a(m,c,i);else e!=null&&a(r,e,i);return this}get(e,r){if(e=ut(e),e){const i=p.findKey(this,e);if(i){const s=this[i];if(!r)return s;if(r===!0)return Pr(s);if(p.isFunction(r))return r.call(this,s,i);if(p.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ut(e),e){const i=p.findKey(this,e);return!!(i&&this[i]!==void 0&&(!r||Ct(this,this[i],i,r)))}return!1}delete(e,r){const i=this;let s=!1;function a(u){if(u=ut(u),u){const c=p.findKey(i,u);c&&(!r||Ct(i,i[c],c,r))&&(delete i[c],s=!0)}}return p.isArray(e)?e.forEach(a):a(e),s}clear(e){const r=Object.keys(this);let i=r.length,s=!1;for(;i--;){const a=r[i];(!e||Ct(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const r=this,i={};return p.forEach(this,(s,a)=>{const u=p.findKey(i,a);if(u){r[u]=yt(s),delete r[a];return}const c=e?Fr(a):String(a).trim();c!==a&&delete r[a],r[c]=yt(s),i[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return p.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=e&&p.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const i=new this(e);return r.forEach(s=>i.set(s)),i}static accessor(e){const r=(this[de]=this[de]={accessors:{}}).accessors,i=this.prototype;function s(a){const u=ut(a);r[u]||(Dr(i,a),r[u]=!0)}return p.isArray(e)?e.forEach(s):s(e),this}};P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p.reduceDescriptors(P.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(s){this[i]=s}}}),p.freezeMethods(P);function It(e,r){const i=this||lt,s=r||i,a=P.from(s.headers);let u=s.data;return p.forEach(e,function(c){u=c.call(i,u,a.normalize(),r?r.status:void 0)}),a.normalize(),u}function qe(e){return!!(e&&e.__CANCEL__)}function it(e,r,i){O.call(this,e!=null?e:"canceled",O.ERR_CANCELED,r,i),this.name="CanceledError"}p.inherits(it,O,{__CANCEL__:!0});function ze(e,r,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?e(i):r(new O("Request failed with status code "+i.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Mr(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function qr(e,r){e=e||10;const i=new Array(e),s=new Array(e);let a=0,u=0,c;return r=r!==void 0?r:1e3,function(m){const y=Date.now(),g=s[u];c||(c=y),i[a]=m,s[a]=y;let f=u,E=0;for(;f!==a;)E+=i[f++],f=f%e;if(a=(a+1)%e,a===u&&(u=(u+1)%e),y-c<r)return;const T=g&&y-g;return T?Math.round(E*1e3/T):void 0}}function zr(e,r){let i=0,s=1e3/r,a,u;const c=(m,y=Date.now())=>{i=y,a=null,u&&(clearTimeout(u),u=null),e.apply(null,m)};return[(...m)=>{const y=Date.now(),g=y-i;g>=s?c(m,y):(a=m,u||(u=setTimeout(()=>{u=null,c(a)},s-g)))},()=>a&&c(a)]}const mt=(e,r,i=3)=>{let s=0;const a=qr(50,250);return zr(u=>{const c=u.loaded,m=u.lengthComputable?u.total:void 0,y=c-s,g=a(y),f=c<=m;s=c;const E={loaded:c,total:m,progress:m?c/m:void 0,bytes:y,rate:g||void 0,estimated:g&&m&&f?(m-c)/g:void 0,event:u,lengthComputable:m!=null,[r?"download":"upload"]:!0};e(E)},i)},ge=(e,r)=>{const i=e!=null;return[s=>r[0]({lengthComputable:i,total:e,loaded:s}),r[1]]},ye=e=>(...r)=>p.asap(()=>e(...r)),$r=$.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function s(a){let u=a;return e&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=s(window.location.href),function(a){const u=p.isString(a)?s(a):a;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Vr=$.hasStandardBrowserEnv?{write(e,r,i,s,a,u){const c=[e+"="+encodeURIComponent(r)];p.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),p.isString(s)&&c.push("path="+s),p.isString(a)&&c.push("domain="+a),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wr(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function $e(e,r){return e&&!Jr(r)?Wr(e,r):r}const me=e=>e instanceof P?{...e}:e;function Q(e,r){r=r||{};const i={};function s(g,f,E){return p.isPlainObject(g)&&p.isPlainObject(f)?p.merge.call({caseless:E},g,f):p.isPlainObject(f)?p.merge({},f):p.isArray(f)?f.slice():f}function a(g,f,E){if(p.isUndefined(f)){if(!p.isUndefined(g))return s(void 0,g,E)}else return s(g,f,E)}function u(g,f){if(!p.isUndefined(f))return s(void 0,f)}function c(g,f){if(p.isUndefined(f)){if(!p.isUndefined(g))return s(void 0,g)}else return s(void 0,f)}function m(g,f,E){if(E in r)return s(g,f);if(E in e)return s(void 0,g)}const y={url:u,method:u,data:u,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:m,headers:(g,f)=>a(me(g),me(f),!0)};return p.forEach(Object.keys(Object.assign({},e,r)),function(g){const f=y[g]||a,E=f(e[g],r[g],g);p.isUndefined(E)&&f!==m||(i[g]=E)}),i}const Ve=e=>{const r=Q({},e);let{data:i,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:u,headers:c,auth:m}=r;r.headers=c=P.from(c),r.url=Fe($e(r.baseURL,r.url),e.params,e.paramsSerializer),m&&c.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let y;if(p.isFormData(i)){if($.hasStandardBrowserEnv||$.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((y=c.getContentType())!==!1){const[g,...f]=y?y.split(";").map(E=>E.trim()).filter(Boolean):[];c.setContentType([g||"multipart/form-data",...f].join("; "))}}if($.hasStandardBrowserEnv&&(s&&p.isFunction(s)&&(s=s(r)),s||s!==!1&&$r(r.url))){const g=a&&u&&Vr.read(u);g&&c.set(a,g)}return r},Gr=typeof XMLHttpRequest<"u",Hr=Gr&&function(e){return new Promise(function(r,i){const s=Ve(e);let a=s.data;const u=P.from(s.headers).normalize();let{responseType:c,onUploadProgress:m,onDownloadProgress:y}=s,g,f,E,T,b;function A(){T&&T(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(g),s.signal&&s.signal.removeEventListener("abort",g)}let R=new XMLHttpRequest;R.open(s.method.toUpperCase(),s.url,!0),R.timeout=s.timeout;function C(){if(!R)return;const _=P.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:_,config:e,request:R};ze(function(M){r(M),A()},function(M){i(M),A()},S),R=null}"onloadend"in R?R.onloadend=C:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(C)},R.onabort=function(){R&&(i(new O("Request aborted",O.ECONNABORTED,e,R)),R=null)},R.onerror=function(){i(new O("Network Error",O.ERR_NETWORK,e,R)),R=null},R.ontimeout=function(){let _=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||De;s.timeoutErrorMessage&&(_=s.timeoutErrorMessage),i(new O(_,S.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,R)),R=null},a===void 0&&u.setContentType(null),"setRequestHeader"in R&&p.forEach(u.toJSON(),function(_,S){R.setRequestHeader(S,_)}),p.isUndefined(s.withCredentials)||(R.withCredentials=!!s.withCredentials),c&&c!=="json"&&(R.responseType=s.responseType),y&&([E,b]=mt(y,!0),R.addEventListener("progress",E)),m&&R.upload&&([f,T]=mt(m),R.upload.addEventListener("progress",f),R.upload.addEventListener("loadend",T)),(s.cancelToken||s.signal)&&(g=_=>{R&&(i(!_||_.type?new it(null,e,R):_),R.abort(),R=null)},s.cancelToken&&s.cancelToken.subscribe(g),s.signal&&(s.signal.aborted?g():s.signal.addEventListener("abort",g)));const k=Mr(s.url);if(k&&$.protocols.indexOf(k)===-1){i(new O("Unsupported protocol "+k+":",O.ERR_BAD_REQUEST,e));return}R.send(a||null)})},Xr=(e,r)=>{let i=new AbortController,s;const a=function(y){if(!s){s=!0,c();const g=y instanceof Error?y:this.reason;i.abort(g instanceof O?g:new it(g instanceof Error?g.message:g))}};let u=r&&setTimeout(()=>{a(new O("timeout ".concat(r," of ms exceeded"),O.ETIMEDOUT))},r);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",a):y.unsubscribe(a))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",a));const{signal:m}=i;return m.unsubscribe=c,[m,()=>{u&&clearTimeout(u),u=null}]},Yr=function*(e,r){let i=e.byteLength;if(i<r){yield e;return}let s=0,a;for(;s<i;)a=s+r,yield e.slice(s,a),s=a},Kr=async function*(e,r,i){for await(const s of e)yield*Yr(ArrayBuffer.isView(s)?s:await i(String(s)),r)},we=(e,r,i,s,a)=>{const u=Kr(e,r,a);let c=0,m,y=g=>{m||(m=!0,s&&s(g))};return new ReadableStream({async pull(g){try{const{done:f,value:E}=await u.next();if(f){y(),g.close();return}let T=E.byteLength;if(i){let b=c+=T;i(b)}g.enqueue(new Uint8Array(E))}catch(f){throw y(f),f}},cancel(g){return y(g),u.return()}},{highWaterMark:2})},Tt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Je=Tt&&typeof ReadableStream=="function",kt=Tt&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),We=(e,...r)=>{try{return!!e(...r)}catch{return!1}},Zr=Je&&We(()=>{let e=!1;const r=new Request($.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),be=64*1024,Ft=Je&&We(()=>p.isReadableStream(new Response("").body)),wt={stream:Ft&&(e=>e.body)};Tt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!wt[r]&&(wt[r]=p.isFunction(e[r])?i=>i[r]():(i,s)=>{throw new O("Response type '".concat(r,"' is not supported"),O.ERR_NOT_SUPPORT,s)})})})(new Response);const Qr=async e=>{if(e==null)return 0;if(p.isBlob(e))return e.size;if(p.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(p.isArrayBufferView(e)||p.isArrayBuffer(e))return e.byteLength;if(p.isURLSearchParams(e)&&(e=e+""),p.isString(e))return(await kt(e)).byteLength},to=async(e,r)=>{const i=p.toFiniteNumber(e.getContentLength());return i!=null?i:Qr(r)},eo=Tt&&(async e=>{let{url:r,method:i,data:s,signal:a,cancelToken:u,timeout:c,onDownloadProgress:m,onUploadProgress:y,responseType:g,headers:f,withCredentials:E="same-origin",fetchOptions:T}=Ve(e);g=g?(g+"").toLowerCase():"text";let[b,A]=a||u||c?Xr([a,u],c):[],R,C;const k=()=>{!R&&setTimeout(()=>{b&&b.unsubscribe()}),R=!0};let _;try{if(y&&Zr&&i!=="get"&&i!=="head"&&(_=await to(f,s))!==0){let q=new Request(r,{method:"POST",body:s,duplex:"half"}),G;if(p.isFormData(s)&&(G=q.headers.get("content-type"))&&f.setContentType(G),q.body){const[z,Y]=ge(_,mt(ye(y)));s=we(q.body,be,z,Y,kt)}}p.isString(E)||(E=E?"include":"omit"),C=new Request(r,{...T,signal:b,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:s,duplex:"half",credentials:E});let S=await fetch(C);const M=Ft&&(g==="stream"||g==="response");if(Ft&&(m||M)){const q={};["status","statusText","headers"].forEach(st=>{q[st]=S[st]});const G=p.toFiniteNumber(S.headers.get("content-length")),[z,Y]=m&&ge(G,mt(ye(m),!0))||[];S=new Response(we(S.body,be,z,()=>{Y&&Y(),M&&k()},kt),q)}g=g||"text";let At=await wt[p.findKey(wt,g)||"text"](S,e);return!M&&k(),A&&A(),await new Promise((q,G)=>{ze(q,G,{data:At,headers:P.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:C})})}catch(S){throw k(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,e,C),{cause:S.cause||S}):O.from(S,S&&S.code,e,C)}}),Dt={http:wr,xhr:Hr,fetch:eo};p.forEach(Dt,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Ee=e=>"- ".concat(e),no=e=>p.isFunction(e)||e===null||e===!1,Ge={getAdapter:e=>{e=p.isArray(e)?e:[e];const{length:r}=e;let i,s;const a={};for(let u=0;u<r;u++){i=e[u];let c;if(s=i,!no(i)&&(s=Dt[(c=String(i)).toLowerCase()],s===void 0))throw new O("Unknown adapter '".concat(c,"'"));if(s)break;a[c||"#"+u]=s}if(!s){const u=Object.entries(a).map(([m,y])=>"adapter ".concat(m," ")+(y===!1?"is not supported by the environment":"is not available in the build"));let c=r?u.length>1?"since :\n"+u.map(Ee).join("\n"):" "+Ee(u[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Dt};function _t(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function Re(e){return _t(e),e.headers=P.from(e.headers),e.data=It.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ge.getAdapter(e.adapter||lt.adapter)(e).then(function(r){return _t(e),r.data=It.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return qe(r)||(_t(e),r&&r.response&&(r.response.data=It.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const He="1.7.4",Gt={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{Gt[e]=function(i){return typeof i===e||"a"+(r<1?"n ":" ")+e}});const Oe={};Gt.transitional=function(e,r,i){function s(a,u){return"[Axios v"+He+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,c)=>{if(e===!1)throw new O(s(u," has been removed"+(r?" in "+r:"")),O.ERR_DEPRECATED);return r&&!Oe[u]&&(Oe[u]=!0,console.warn(s(u," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,u,c):!0}};function ro(e,r,i){if(typeof e!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let a=s.length;for(;a-- >0;){const u=s[a],c=r[u];if(c){const m=e[u],y=m===void 0||c(m,u,e);if(y!==!0)throw new O("option "+u+" must be "+y,O.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new O("Unknown option "+u,O.ERR_BAD_OPTION)}}const Mt={assertOptions:ro,validators:Gt},X=Mt.validators;let Z=class{constructor(e){this.defaults=e,this.interceptors={request:new pe,response:new pe}}async request(e,r){try{return await this._request(e,r)}catch(i){if(i instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+="\n"+a):i.stack=a}catch{}}throw i}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Q(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&Mt.assertOptions(i,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean)},!1),s!=null&&(p.isFunction(s)?r.paramsSerializer={serialize:s}:Mt.assertOptions(s,{encode:X.function,serialize:X.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&p.merge(a.common,a[r.method]);a&&p.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),r.headers=P.concat(u,a);const c=[];let m=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(m=m&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const y=[];this.interceptors.response.forEach(function(b){y.push(b.fulfilled,b.rejected)});let g,f=0,E;if(!m){const b=[Re.bind(this),void 0];for(b.unshift.apply(b,c),b.push.apply(b,y),E=b.length,g=Promise.resolve(r);f<E;)g=g.then(b[f++],b[f++]);return g}E=c.length;let T=r;for(f=0;f<E;){const b=c[f++],A=c[f++];try{T=b(T)}catch(R){A.call(this,R);break}}try{g=Re.call(this,T)}catch(b){return Promise.reject(b)}for(f=0,E=y.length;f<E;)g=g.then(y[f++],y[f++]);return g}getUri(e){e=Q(this.defaults,e);const r=$e(e.baseURL,e.url);return Fe(r,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){Z.prototype[e]=function(r,i){return this.request(Q(i||{},{method:e,url:r,data:(i||{}).data}))}}),p.forEach(["post","put","patch"],function(e){function r(i){return function(s,a,u){return this.request(Q(u||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Z.prototype[e]=r(),Z.prototype[e+"Form"]=r(!0)});let oo=class Xe{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(a){i=a});const s=this;this.promise.then(a=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](a);s._listeners=null}),this.promise.then=a=>{let u;const c=new Promise(m=>{s.subscribe(m),u=m}).then(a);return c.cancel=function(){s.unsubscribe(u)},c},r(function(a,u,c){s.reason||(s.reason=new it(a,u,c),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}static source(){let r;return{token:new Xe(function(i){r=i}),cancel:r}}};function io(e){return function(r){return e.apply(null,r)}}function so(e){return p.isObject(e)&&e.isAxiosError===!0}const qt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qt).forEach(([e,r])=>{qt[r]=e});function Ye(e){const r=new Z(e),i=Be(Z.prototype.request,r);return p.extend(i,Z.prototype,r,{allOwnKeys:!0}),p.extend(i,r,null,{allOwnKeys:!0}),i.create=function(s){return Ye(Q(e,s))},i}const U=Ye(lt);U.Axios=Z,U.CanceledError=it,U.CancelToken=oo,U.isCancel=qe,U.VERSION=He,U.toFormData=Ot,U.AxiosError=O,U.Cancel=U.CanceledError,U.all=function(e){return Promise.all(e)},U.spread=io,U.isAxiosError=so,U.mergeConfig=Q,U.AxiosHeaders=P,U.formToJSON=e=>Me(p.isHTMLForm(e)?new FormData(e):e),U.getAdapter=Ge.getAdapter,U.HttpStatusCode=qt,U.default=U;const{Axios:Eo,AxiosError:Ro,CanceledError:Oo,isCancel:ao,CancelToken:To,VERSION:Ao,all:vo,Cancel:So,isAxiosError:uo,spread:Bo,toFormData:xo,AxiosHeaders:Uo,HttpStatusCode:Co,formToJSON:Io,getAdapter:_o,mergeConfig:Lo}=U,Te=Symbol("csrf-retry"),co=e=>async r=>{var i;const{config:s,response:a,request:u}=r,c=u==null?void 0:u.responseURL;if((a==null?void 0:a.status)===412&&((i=a==null?void 0:a.data)==null?void 0:i.message)==="CSRF check failed"&&s[Te]===void 0){console.warn("Request to ".concat(c," failed because of a CSRF mismatch. Fetching a new token"));const{data:{token:m}}=await e.get(On("/csrftoken"));return console.debug("New request token ".concat(m," fetched")),e.defaults.headers.requesttoken=m,e({...s,headers:{...s.headers,requesttoken:m},[Te]:!0})}return Promise.reject(r)},pt=Symbol("retryDelay"),fo=e=>async r=>{var i;const{config:s,response:a,request:u}=r,c=u==null?void 0:u.responseURL,m=a==null?void 0:a.status,y=a==null?void 0:a.headers;if(m===503&&y["x-nextcloud-maintenance-mode"]==="1"&&s.retryIfMaintenanceMode&&(!s[pt]||s[pt]<=32)){const g=((i=s[pt])!=null?i:1)*2;return console.warn("Request to ".concat(c," failed because of maintenance mode. Retrying in ").concat(g,"s")),await new Promise(f=>{setTimeout(f,g*1e3)}),e({...s,[pt]:g})}return Promise.reject(r)},lo=async e=>{var r;const{config:i,response:s,request:a}=e,u=a==null?void 0:a.responseURL;return(s==null?void 0:s.status)===401&&((r=s==null?void 0:s.data)==null?void 0:r.message)==="Current user is not logged in"&&i.reloadExpiredSession&&(window!=null&&window.location)&&(console.error("Request to ".concat(u," failed because the user session expired. Reloading the page …")),window.location.reload()),Promise.reject(e)};var Ae;const Ke=U.create({headers:{requesttoken:(Ae=wn())!=null?Ae:"","X-Requested-With":"XMLHttpRequest"}}),rt=Object.assign(Ke,{CancelToken:U.CancelToken,isCancel:U.isCancel});rt.interceptors.response.use(e=>e,co(rt)),rt.interceptors.response.use(e=>e,fo(rt)),rt.interceptors.response.use(e=>e,lo),bn(e=>{Ke.defaults.headers.requesttoken=e});const jo=Object.freeze(Object.defineProperty({__proto__:null,default:rt,isAxiosError:uo,isCancel:ao},Symbol.toStringTag,{value:"Module"}));var zt={exports:{}};function ve(e,r=100,i={}){if(typeof e!="function")throw new TypeError("Expected the first parameter to be a function, got `".concat(typeof e,"`."));if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}=typeof i=="boolean"?{immediate:i}:i;let a,u,c,m,y;function g(){const T=a,b=u;return a=void 0,u=void 0,y=e.apply(T,b),y}function f(){const T=Date.now()-m;T<r&&T>=0?c=setTimeout(f,r-T):(c=void 0,s||(y=g()))}const E=function(...T){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,u=T,m=Date.now();const b=s&&!c;return c||(c=setTimeout(f,r)),b&&(y=g()),y};return Object.defineProperty(E,"isPending",{get(){return c!==void 0}}),E.clear=()=>{c&&(clearTimeout(c),c=void 0)},E.flush=()=>{c&&E.trigger()},E.trigger=()=>{y=g(),E.clear()},E}zt.exports.debounce=ve,zt.exports=ve;var ho=zt.exports;const No=En(ho);export{mr as B,mo as U,On as _,No as a,rt as c,jo as d,$t as f,bo as h,wo as v,Se as w};