@opencloud-eu/web-pkg 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +0,0 @@
1
- var u1=Object.defineProperty;var Nc=Se=>{throw TypeError(Se)};var l1=(Se,Pe,He)=>Pe in Se?u1(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Se[Pe]=He;var ye=(Se,Pe,He)=>l1(Se,typeof Pe!="symbol"?Pe+"":Pe,He),Vs=(Se,Pe,He)=>Pe.has(Se)||Nc("Cannot "+He);var J=(Se,Pe,He)=>(Vs(Se,Pe,"read from private field"),He?He.call(Se):Pe.get(Se)),Re=(Se,Pe,He)=>Pe.has(Se)?Nc("Cannot add the same private member more than once"):Pe instanceof WeakSet?Pe.add(Se):Pe.set(Se,He),ve=(Se,Pe,He,Qt)=>(Vs(Se,Pe,"write to private field"),Qt?Qt.call(Se,He):Pe.set(Se,He),He),qe=(Se,Pe,He)=>(Vs(Se,Pe,"access private method"),He);var rn=(Se,Pe,He,Qt)=>({set _(Yn){ve(Se,Pe,Yn,He)},get _(){return J(Se,Pe,Qt)}});(function(){"use strict";var Tt,Or,Nr,Kt,Jr,Rr,Zr,St,Ir,pt,Qr,_t,Pr,Ht,en,Vn,Oe,Rc,Ic,Pc,Fc,Cc,Gn,Ws,Gs,Kn,Bc,zn,rt,it,Vt,ke,Je,zt,fr,Xt,Bt,cr,tn,hr,Uc,Yt,Xn,Ks,jc;var Se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={exports:{}},Qt;function Yn(){return Qt||(Qt=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(f,l,s){this.fn=f,this.context=l,this.once=s||!1}function i(f,l,s,c,d){if(typeof s!="function")throw new TypeError("The listener must be a function");var x=new o(s,c||f,d),m=r?r+l:l;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],x]:f._events[m].push(x):(f._events[m]=x,f._eventsCount++),f}function a(f,l){--f._eventsCount===0?f._events=new n:delete f._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,c;if(this._eventsCount===0)return l;for(c in s=this._events)t.call(s,c)&&l.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,c=this._events[s];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,x=c.length,m=new Array(x);d<x;d++)m[d]=c[d].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,c=this._events[s];return c?c.fn?1:c.length:0},u.prototype.emit=function(l,s,c,d,x,m){var E=r?r+l:l;if(!this._events[E])return!1;var A=this._events[E],p=arguments.length,h,g;if(A.fn){switch(A.once&&this.removeListener(l,A.fn,void 0,!0),p){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,s),!0;case 3:return A.fn.call(A.context,s,c),!0;case 4:return A.fn.call(A.context,s,c,d),!0;case 5:return A.fn.call(A.context,s,c,d,x),!0;case 6:return A.fn.call(A.context,s,c,d,x,m),!0}for(g=1,h=new Array(p-1);g<p;g++)h[g-1]=arguments[g];A.fn.apply(A.context,h)}else{var y=A.length,w;for(g=0;g<y;g++)switch(A[g].once&&this.removeListener(l,A[g].fn,void 0,!0),p){case 1:A[g].fn.call(A[g].context);break;case 2:A[g].fn.call(A[g].context,s);break;case 3:A[g].fn.call(A[g].context,s,c);break;case 4:A[g].fn.call(A[g].context,s,c,d);break;default:if(!h)for(w=1,h=new Array(p-1);w<p;w++)h[w-1]=arguments[w];A[g].fn.apply(A[g].context,h)}}return!0},u.prototype.on=function(l,s,c){return i(this,l,s,c,!1)},u.prototype.once=function(l,s,c){return i(this,l,s,c,!0)},u.prototype.removeListener=function(l,s,c,d){var x=r?r+l:l;if(!this._events[x])return this;if(!s)return a(this,x),this;var m=this._events[x];if(m.fn)m.fn===s&&(!d||m.once)&&(!c||m.context===c)&&a(this,x);else{for(var E=0,A=[],p=m.length;E<p;E++)(m[E].fn!==s||d&&!m[E].once||c&&m[E].context!==c)&&A.push(m[E]);A.length?this._events[x]=A.length===1?A[0]:A:a(this,x)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&a(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(He)),He.exports}var Mc=Yn(),kc=Pe(Mc);class zs extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Dc extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const Xs=e=>globalThis.DOMException===void 0?new Dc(e):new DOMException(e),Ys=e=>{const t=e.reason===void 0?Xs("This operation was aborted."):e.reason;return t instanceof Error?t:Xs(t)};function $c(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,c)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){const{signal:x}=t;x.aborted&&c(Ys(x)),u=()=>{c(Ys(x))},x.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,c);return}const d=new zs;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(x){c(x)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?c(o):(d.message=o??`Promise timed out after ${r} milliseconds`,c(d))},r),(async()=>{try{s(await e)}catch(x){c(x)}})()}).finally(()=>{l.clear(),u&&t.signal&&t.signal.removeEventListener("abort",u)});return l.clear=()=>{i.clearTimeout.call(void 0,a),a=void 0},l}function qc(e,t,r){let n=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}class Hc{constructor(){Re(this,Tt,[])}enqueue(t,r){r={priority:0,...r};const n={priority:r.priority,id:r.id,run:t};if(this.size===0||J(this,Tt)[this.size-1].priority>=r.priority){J(this,Tt).push(n);return}const o=qc(J(this,Tt),n,(i,a)=>a.priority-i.priority);J(this,Tt).splice(o,0,n)}setPriority(t,r){const n=J(this,Tt).findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=J(this,Tt).splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){const t=J(this,Tt).shift();return t==null?void 0:t.run}filter(t){return J(this,Tt).filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return J(this,Tt).length}}Tt=new WeakMap;class Vc extends kc{constructor(r){var n,o;super();Re(this,Oe);Re(this,Or);Re(this,Nr);Re(this,Kt,0);Re(this,Jr);Re(this,Rr);Re(this,Zr,0);Re(this,St);Re(this,Ir);Re(this,pt);Re(this,Qr);Re(this,_t,0);Re(this,Pr);Re(this,Ht);Re(this,en);Re(this,Vn,1n);ye(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Hc,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((n=r.intervalCap)==null?void 0:n.toString())??""}\` (${typeof r.intervalCap})`);if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((o=r.interval)==null?void 0:o.toString())??""}\` (${typeof r.interval})`);ve(this,Or,r.carryoverConcurrencyCount),ve(this,Nr,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ve(this,Jr,r.intervalCap),ve(this,Rr,r.interval),ve(this,pt,new r.queueClass),ve(this,Qr,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ve(this,en,r.throwOnTimeout===!0),ve(this,Ht,r.autoStart===!1)}get concurrency(){return J(this,Pr)}set concurrency(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);ve(this,Pr,r),qe(this,Oe,Kn).call(this)}setPriority(r,n){J(this,pt).setPriority(r,n)}async add(r,n={}){return n.id??(n.id=(rn(this,Vn)._++).toString()),n={timeout:this.timeout,throwOnTimeout:J(this,en),...n},new Promise((o,i)=>{J(this,pt).enqueue(async()=>{var a;rn(this,_t)._++,rn(this,Kt)._++;try{(a=n.signal)==null||a.throwIfAborted();let u=r({signal:n.signal});n.timeout&&(u=$c(Promise.resolve(u),{milliseconds:n.timeout})),n.signal&&(u=Promise.race([u,qe(this,Oe,Bc).call(this,n.signal)]));const f=await u;o(f),this.emit("completed",f)}catch(u){if(u instanceof zs&&!n.throwOnTimeout){o();return}i(u),this.emit("error",u)}finally{qe(this,Oe,Pc).call(this)}},n),this.emit("add"),qe(this,Oe,Gn).call(this)})}async addAll(r,n){return Promise.all(r.map(async o=>this.add(o,n)))}start(){return J(this,Ht)?(ve(this,Ht,!1),qe(this,Oe,Kn).call(this),this):this}pause(){ve(this,Ht,!0)}clear(){ve(this,pt,new(J(this,Qr)))}async onEmpty(){J(this,pt).size!==0&&await qe(this,Oe,zn).call(this,"empty")}async onSizeLessThan(r){J(this,pt).size<r||await qe(this,Oe,zn).call(this,"next",()=>J(this,pt).size<r)}async onIdle(){J(this,_t)===0&&J(this,pt).size===0||await qe(this,Oe,zn).call(this,"idle")}get size(){return J(this,pt).size}sizeBy(r){return J(this,pt).filter(r).length}get pending(){return J(this,_t)}get isPaused(){return J(this,Ht)}}Or=new WeakMap,Nr=new WeakMap,Kt=new WeakMap,Jr=new WeakMap,Rr=new WeakMap,Zr=new WeakMap,St=new WeakMap,Ir=new WeakMap,pt=new WeakMap,Qr=new WeakMap,_t=new WeakMap,Pr=new WeakMap,Ht=new WeakMap,en=new WeakMap,Vn=new WeakMap,Oe=new WeakSet,Rc=function(){return J(this,Nr)||J(this,Kt)<J(this,Jr)},Ic=function(){return J(this,_t)<J(this,Pr)},Pc=function(){rn(this,_t)._--,qe(this,Oe,Gn).call(this),this.emit("next")},Fc=function(){qe(this,Oe,Gs).call(this),qe(this,Oe,Ws).call(this),ve(this,Ir,void 0)},Cc=function(){const r=Date.now();if(J(this,St)===void 0){const n=J(this,Zr)-r;if(n<0)ve(this,Kt,J(this,Or)?J(this,_t):0);else return J(this,Ir)===void 0&&ve(this,Ir,setTimeout(()=>{qe(this,Oe,Fc).call(this)},n)),!0}return!1},Gn=function(){if(J(this,pt).size===0)return J(this,St)&&clearInterval(J(this,St)),ve(this,St,void 0),this.emit("empty"),J(this,_t)===0&&this.emit("idle"),!1;if(!J(this,Ht)){const r=!J(this,Oe,Cc);if(J(this,Oe,Rc)&&J(this,Oe,Ic)){const n=J(this,pt).dequeue();return n?(this.emit("active"),n(),r&&qe(this,Oe,Ws).call(this),!0):!1}}return!1},Ws=function(){J(this,Nr)||J(this,St)!==void 0||(ve(this,St,setInterval(()=>{qe(this,Oe,Gs).call(this)},J(this,Rr))),ve(this,Zr,Date.now()+J(this,Rr)))},Gs=function(){J(this,Kt)===0&&J(this,_t)===0&&J(this,St)&&(clearInterval(J(this,St)),ve(this,St,void 0)),ve(this,Kt,J(this,Or)?J(this,_t):0),qe(this,Oe,Kn).call(this)},Kn=function(){for(;qe(this,Oe,Gn).call(this););},Bc=async function(r){return new Promise((n,o)=>{r.addEventListener("abort",()=>{o(r.reason)},{once:!0})})},zn=async function(r,n){return new Promise(o=>{const i=()=>{n&&!n()||(this.off(r,i),o())};this.on(r,i)})};function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Js={exports:{}},Xe=Js.exports={},It,Pt;function Jn(){throw new Error("setTimeout has not been defined")}function Zn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?It=setTimeout:It=Jn}catch{It=Jn}try{typeof clearTimeout=="function"?Pt=clearTimeout:Pt=Zn}catch{Pt=Zn}})();function Zs(e){if(It===setTimeout)return setTimeout(e,0);if((It===Jn||!It)&&setTimeout)return It=setTimeout,setTimeout(e,0);try{return It(e,0)}catch{try{return It.call(null,e,0)}catch{return It.call(this,e,0)}}}function Gc(e){if(Pt===clearTimeout)return clearTimeout(e);if((Pt===Zn||!Pt)&&clearTimeout)return Pt=clearTimeout,clearTimeout(e);try{return Pt(e)}catch{try{return Pt.call(null,e)}catch{return Pt.call(this,e)}}}var Ut=[],dr=!1,er,nn=-1;function Kc(){!dr||!er||(dr=!1,er.length?Ut=er.concat(Ut):nn=-1,Ut.length&&Qs())}function Qs(){if(!dr){var e=Zs(Kc);dr=!0;for(var t=Ut.length;t;){for(er=Ut,Ut=[];++nn<t;)er&&er[nn].run();nn=-1,t=Ut.length}er=null,dr=!1,Gc(e)}}Xe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ut.push(new ea(e,t)),Ut.length===1&&!dr&&Zs(Qs)};function ea(e,t){this.fun=e,this.array=t}ea.prototype.run=function(){this.fun.apply(null,this.array)},Xe.title="browser",Xe.browser=!0,Xe.env={},Xe.argv=[],Xe.version="",Xe.versions={};function jt(){}Xe.on=jt,Xe.addListener=jt,Xe.once=jt,Xe.off=jt,Xe.removeListener=jt,Xe.removeAllListeners=jt,Xe.emit=jt,Xe.prependListener=jt,Xe.prependOnceListener=jt,Xe.listeners=function(e){return[]},Xe.binding=function(e){throw new Error("process.binding is not supported")},Xe.cwd=function(){return"/"},Xe.chdir=function(e){throw new Error("process.chdir is not supported")},Xe.umask=function(){return 0};var zc=Js.exports;const me=Wc(zc);var Qn,ta;function Xc(){if(ta)return Qn;ta=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,i){for(var a="",u=0,f=-1,l=0,s,c=0;c<=o.length;++c){if(c<o.length)s=o.charCodeAt(c);else{if(s===47)break;s=47}if(s===47){if(!(f===c-1||l===1))if(f!==c-1&&l===2){if(a.length<2||u!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var d=a.lastIndexOf("/");if(d!==a.length-1){d===-1?(a="",u=0):(a=a.slice(0,d),u=a.length-1-a.lastIndexOf("/")),f=c,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,f=c,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(f+1,c):a=o.slice(f+1,c),u=c-f-1;f=c,l=0}else s===46&&l!==-1?++l:l=-1}return a}function r(o,i){var a=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+u:a+o+u:u}var n={resolve:function(){for(var i="",a=!1,u,f=arguments.length-1;f>=-1&&!a;f--){var l;f>=0?l=arguments[f]:(u===void 0&&(u=me.cwd()),l=u),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,u=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&u&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var u=arguments[a];e(u),u.length>0&&(i===void 0?i=u:i+="/"+u)}return i===void 0?".":n.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=n.resolve(i),a=n.resolve(a),i===a))return"";for(var u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var f=i.length,l=f-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var c=a.length,d=c-s,x=l<d?l:d,m=-1,E=0;E<=x;++E){if(E===x){if(d>x){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>x&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var A=i.charCodeAt(u+E),p=a.charCodeAt(s+E);if(A!==p)break;A===47&&(m=E)}var h="";for(E=u+m+1;E<=f;++E)(E===f||i.charCodeAt(E)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+a.slice(s+m):(s+=m,a.charCodeAt(s)===47&&++s,a.slice(s))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),u=a===47,f=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){f=s;break}}else l=!1;return f===-1?u?"/":".":u&&f===1?"//":i.slice(0,f)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var u=0,f=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var c=a.length-1,d=-1;for(s=i.length-1;s>=0;--s){var x=i.charCodeAt(s);if(x===47){if(!l){u=s+1;break}}else d===-1&&(l=!1,d=s+1),c>=0&&(x===a.charCodeAt(c)?--c===-1&&(f=s):(c=-1,f=d))}return u===f?f=d:f===-1&&(f=i.length),i.slice(u,f)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else f===-1&&(l=!1,f=s+1);return f===-1?"":i.slice(u,f)}},extname:function(i){e(i);for(var a=-1,u=0,f=-1,l=!0,s=0,c=i.length-1;c>=0;--c){var d=i.charCodeAt(c);if(d===47){if(!l){u=c+1;break}continue}f===-1&&(l=!1,f=c+1),d===46?a===-1?a=c:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||f===-1||s===0||s===1&&a===f-1&&a===u+1?"":i.slice(a,f)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var u=i.charCodeAt(0),f=u===47,l;f?(a.root="/",l=1):l=0;for(var s=-1,c=0,d=-1,x=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!x){c=m+1;break}continue}d===-1&&(x=!1,d=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||d===-1||E===0||E===1&&s===d-1&&s===c+1?d!==-1&&(c===0&&f?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(c,d)):(c===0&&f?(a.name=i.slice(1,s),a.base=i.slice(1,d)):(a.name=i.slice(c,s),a.base=i.slice(c,d)),a.ext=i.slice(s,d)),c>0?a.dir=i.slice(0,c-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,Qn=n,Qn}var on=Xc(),ra=Pe(on);const Mt=globalThis||void 0||self;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yc}=Object.prototype,{getPrototypeOf:ei}=Object,sn=(e=>t=>{const r=Yc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>sn(t)===e),an=e=>t=>typeof t===e,{isArray:pr}=Array,Fr=an("undefined");function Jc(e){return e!==null&&!Fr(e)&&e.constructor!==null&&!Fr(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ia=Nt("ArrayBuffer");function Zc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ia(e.buffer),t}const Qc=an("string"),mt=an("function"),oa=an("number"),un=e=>e!==null&&typeof e=="object",eh=e=>e===!0||e===!1,ln=e=>{if(sn(e)!=="object")return!1;const t=ei(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},th=Nt("Date"),rh=Nt("File"),nh=Nt("Blob"),ih=Nt("FileList"),oh=e=>un(e)&&mt(e.pipe),sh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=sn(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},ah=Nt("URLSearchParams"),[uh,lh,fh,ch]=["ReadableStream","Request","Response","Headers"].map(Nt),hh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),pr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function sa(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Mt,aa=e=>!Fr(e)&&e!==tr;function ti(){const{caseless:e}=aa(this)&&this||{},t={},r=(n,o)=>{const i=e&&sa(t,o)||o;ln(t[i])&&ln(n)?t[i]=ti(t[i],n):ln(n)?t[i]=ti({},n):pr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Cr(arguments[n],r);return t}const dh=(e,t,r,{allOwnKeys:n}={})=>(Cr(t,(o,i)=>{r&&mt(o)?e[i]=na(o,r):e[i]=o},{allOwnKeys:n}),e),ph=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},yh=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&ei(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},mh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},bh=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!oa(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ei(Uint8Array)),vh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Eh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},xh=Nt("HTMLFormElement"),Ah=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ua=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Th=Nt("RegExp"),la=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Cr(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Sh=e=>{la(e,(t,r)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(mt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_h=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return pr(e)?n(e):n(String(e).split(t)),r},Oh=()=>{},Nh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rh(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ih=e=>{const t=new Array(10),r=(n,o)=>{if(un(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=pr(n)?[]:{};return Cr(n,(a,u)=>{const f=r(a,o+1);!Fr(f)&&(i[u]=f)}),t[o]=void 0,i}}return n};return r(e,0)},Ph=Nt("AsyncFunction"),Fh=e=>e&&(un(e)||mt(e))&&mt(e.then)&&mt(e.catch),fa=((e,t)=>e?setImmediate:t?((r,n)=>(tr.addEventListener("message",({source:o,data:i})=>{o===tr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),tr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",mt(tr.postMessage)),Ch=typeof queueMicrotask<"u"?queueMicrotask.bind(tr):typeof me<"u"&&me.nextTick||fa;var Z={isArray:pr,isArrayBuffer:ia,isBuffer:Jc,isFormData:sh,isArrayBufferView:Zc,isString:Qc,isNumber:oa,isBoolean:eh,isObject:un,isPlainObject:ln,isReadableStream:uh,isRequest:lh,isResponse:fh,isHeaders:ch,isUndefined:Fr,isDate:th,isFile:rh,isBlob:nh,isRegExp:Th,isFunction:mt,isStream:oh,isURLSearchParams:ah,isTypedArray:wh,isFileList:ih,forEach:Cr,merge:ti,extend:dh,trim:hh,stripBOM:ph,inherits:gh,toFlatObject:yh,kindOf:sn,kindOfTest:Nt,endsWith:mh,toArray:bh,forEachEntry:vh,matchAll:Eh,isHTMLForm:xh,hasOwnProperty:ua,hasOwnProp:ua,reduceDescriptors:la,freezeMethods:Sh,toObjectSet:_h,toCamelCase:Ah,noop:Oh,toFiniteNumber:Nh,findKey:sa,global:tr,isContextDefined:aa,isSpecCompliantForm:Rh,toJSONObject:Ih,isAsyncFn:Ph,isThenable:Fh,setImmediate:fa,asap:Ch},ca={},fn={};fn.byteLength=Uh,fn.toByteArray=Mh,fn.fromByteArray=$h;for(var Ft=[],wt=[],Bh=typeof Uint8Array<"u"?Uint8Array:Array,ri="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gr=0,Lh=ri.length;gr<Lh;++gr)Ft[gr]=ri[gr],wt[ri.charCodeAt(gr)]=gr;wt[45]=62,wt[95]=63;function ha(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Uh(e){var t=ha(e),r=t[0],n=t[1];return(r+n)*3/4-n}function jh(e,t,r){return(t+r)*3/4-r}function Mh(e){var t,r=ha(e),n=r[0],o=r[1],i=new Bh(jh(e,n,o)),a=0,u=o>0?n-4:n,f;for(f=0;f<u;f+=4)t=wt[e.charCodeAt(f)]<<18|wt[e.charCodeAt(f+1)]<<12|wt[e.charCodeAt(f+2)]<<6|wt[e.charCodeAt(f+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=wt[e.charCodeAt(f)]<<2|wt[e.charCodeAt(f+1)]>>4,i[a++]=t&255),o===1&&(t=wt[e.charCodeAt(f)]<<10|wt[e.charCodeAt(f+1)]<<4|wt[e.charCodeAt(f+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function kh(e){return Ft[e>>18&63]+Ft[e>>12&63]+Ft[e>>6&63]+Ft[e&63]}function Dh(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(kh(n));return o.join("")}function $h(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Dh(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(Ft[t>>2]+Ft[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Ft[t>>10]+Ft[t>>4&63]+Ft[t<<2&63]+"=")),o.join("")}var ni={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ni.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,f=(1<<u)-1,l=f>>1,s=-7,c=r?o-1:0,d=r?-1:1,x=e[t+c];for(c+=d,i=x&(1<<-s)-1,x>>=-s,s+=u;s>0;i=i*256+e[t+c],c+=d,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+c],c+=d,s-=8);if(i===0)i=1-l;else{if(i===f)return a?NaN:(x?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(x?-1:1)*a*Math.pow(2,i-n)},ni.write=function(e,t,r,n,o,i){var a,u,f,l=i*8-o-1,s=(1<<l)-1,c=s>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:i-1,m=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+c>=1?t+=d/f:t+=d*Math.pow(2,1-c),t*f>=2&&(a++,f/=2),a+c>=s?(u=0,a=s):a+c>=1?(u=(t*f-1)*Math.pow(2,o),a=a+c):(u=t*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;e[r+x]=u&255,x+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+x]=a&255,x+=m,a/=256,l-=8);e[r+x-m]|=E*128};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */(function(e){const t=fn,r=ni,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=f(),!s.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 f(){try{const F=new i(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return c(F,b,S)}s.poolSize=8192;function c(F,b,S){if(typeof F=="string")return E(F,b);if(a.isView(F))return p(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(at(F,a)||F&&at(F.buffer,a)||typeof u<"u"&&(at(F,u)||F&&at(F.buffer,u)))return h(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=F.valueOf&&F.valueOf();if(M!=null&&M!==F)return s.from(M,b,S);const H=g(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return c(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function d(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function x(F,b,S){return d(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return x(F,b,S)};function m(F){return d(F),l(F<0?0:y(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function E(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=T(F,b)|0;let M=l(S);const H=M.write(F,b);return H!==S&&(M=M.slice(0,H)),M}function A(F){const b=F.length<0?0:y(F.length)|0,S=l(b);for(let M=0;M<b;M+=1)S[M]=F[M]&255;return S}function p(F){if(at(F,i)){const b=new i(F);return h(b.buffer,b.byteOffset,b.byteLength)}return A(F)}function h(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let M;return b===void 0&&S===void 0?M=new i(F):S===void 0?M=new i(F,b):M=new i(F,b,S),Object.setPrototypeOf(M,s.prototype),M}function g(F){if(s.isBuffer(F)){const b=y(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||Ot(F.length)?l(0):A(F);if(F.type==="Buffer"&&Array.isArray(F.data))return A(F.data)}function y(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(at(b,i)&&(b=s.from(b,b.offset,b.byteLength)),at(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let M=b.length,H=S.length;for(let z=0,ne=Math.min(M,H);z<ne;++z)if(b[z]!==S[z]){M=b[z],H=S[z];break}return M<H?-1:H<M?1:0},s.isEncoding=function(b){switch(String(b).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}},s.concat=function(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let M;if(S===void 0)for(S=0,M=0;M<b.length;++M)S+=b[M].length;const H=s.allocUnsafe(S);let z=0;for(M=0;M<b.length;++M){let ne=b[M];if(at(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function T(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||at(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return nt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ue(F).length;default:if(H)return M?-1:nt(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=T;function P(F,b,S){let M=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return K(this,b,S);case"utf8":case"utf-8":return fe(this,b,S);case"ascii":return xe(this,b,S);case"latin1":case"binary":return be(this,b,S);case"base64":return he(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,b,S);default:if(M)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const M=F[b];F[b]=F[S],F[S]=M}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)I(this,S,S+7),I(this,S+1,S+6),I(this,S+2,S+5),I(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?fe(this,0,b):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,M,H,z){if(at(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),M===void 0&&(M=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||M>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=M)return 0;if(H>=z)return-1;if(S>=M)return 1;if(S>>>=0,M>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,Ae=M-S;const je=Math.min(ne,Ae),Me=this.slice(H,z),De=b.slice(S,M);for(let Ie=0;Ie<je;++Ie)if(Me[Ie]!==De[Ie]){ne=Me[Ie],Ae=De[Ie];break}return ne<Ae?-1:Ae<ne?1:0};function O(F,b,S,M,H){if(F.length===0)return-1;if(typeof S=="string"?(M=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ot(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,M)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,M,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,M,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,M,H){let z=1,ne=F.length,Ae=b.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,Ae/=2,S/=2}function je(De,Ie){return z===1?De[Ie]:De.readUInt16BE(Ie*z)}let Me;if(H){let De=-1;for(Me=S;Me<ne;Me++)if(je(F,Me)===je(b,De===-1?0:Me-De)){if(De===-1&&(De=Me),Me-De+1===Ae)return De*z}else De!==-1&&(Me-=Me-De),De=-1}else for(S+Ae>ne&&(S=ne-Ae),Me=S;Me>=0;Me--){let De=!0;for(let Ie=0;Ie<Ae;Ie++)if(je(F,Me+Ie)!==je(b,Ie)){De=!1;break}if(De)return Me}return-1}s.prototype.includes=function(b,S,M){return this.indexOf(b,S,M)!==-1},s.prototype.indexOf=function(b,S,M){return O(this,b,S,M,!0)},s.prototype.lastIndexOf=function(b,S,M){return O(this,b,S,M,!1)};function G(F,b,S,M){S=Number(S)||0;const H=F.length-S;M?(M=Number(M),M>H&&(M=H)):M=H;const z=b.length;M>z/2&&(M=z/2);let ne;for(ne=0;ne<M;++ne){const Ae=parseInt(b.substr(ne*2,2),16);if(Ot(Ae))return ne;F[S+ne]=Ae}return ne}function L(F,b,S,M){return ft(nt(b,F.length-S),F,S,M)}function D(F,b,S,M){return ft(Ze(b),F,S,M)}function oe(F,b,S,M){return ft(Ue(b),F,S,M)}function re(F,b,S,M){return ft(Ne(b,F.length-S),F,S,M)}s.prototype.write=function(b,S,M,H){if(S===void 0)H="utf8",M=this.length,S=0;else if(M===void 0&&typeof S=="string")H=S,M=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(M)?(M=M>>>0,H===void 0&&(H="utf8")):(H=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((M===void 0||M>z)&&(M=z),b.length>0&&(M<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return G(this,b,S,M);case"utf8":case"utf-8":return L(this,b,S,M);case"ascii":case"latin1":case"binary":return D(this,b,S,M);case"base64":return oe(this,b,S,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,b,S,M);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function he(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function fe(F,b,S){S=Math.min(F.length,S);const M=[];let H=b;for(;H<S;){const z=F[H];let ne=null,Ae=z>239?4:z>223?3:z>191?2:1;if(H+Ae<=S){let je,Me,De,Ie;switch(Ae){case 1:z<128&&(ne=z);break;case 2:je=F[H+1],(je&192)===128&&(Ie=(z&31)<<6|je&63,Ie>127&&(ne=Ie));break;case 3:je=F[H+1],Me=F[H+2],(je&192)===128&&(Me&192)===128&&(Ie=(z&15)<<12|(je&63)<<6|Me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(ne=Ie));break;case 4:je=F[H+1],Me=F[H+2],De=F[H+3],(je&192)===128&&(Me&192)===128&&(De&192)===128&&(Ie=(z&15)<<18|(je&63)<<12|(Me&63)<<6|De&63,Ie>65535&&Ie<1114112&&(ne=Ie))}}ne===null?(ne=65533,Ae=1):ne>65535&&(ne-=65536,M.push(ne>>>10&1023|55296),ne=56320|ne&1023),M.push(ne),H+=Ae}return ce(M)}const ge=4096;function ce(F){const b=F.length;if(b<=ge)return String.fromCharCode.apply(String,F);let S="",M=0;for(;M<b;)S+=String.fromCharCode.apply(String,F.slice(M,M+=ge));return S}function xe(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]&127);return M}function be(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]);return M}function K(F,b,S){const M=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>M)&&(S=M);let H="";for(let z=b;z<S;++z)H+=Rt[F[z]];return H}function Q(F,b,S){const M=F.slice(b,S);let H="";for(let z=0;z<M.length-1;z+=2)H+=String.fromCharCode(M[z]+M[z+1]*256);return H}s.prototype.slice=function(b,S){const M=this.length;b=~~b,S=S===void 0?M:~~S,b<0?(b+=M,b<0&&(b=0)):b>M&&(b=M),S<0?(S+=M,S<0&&(S=0)):S>M&&(S=M),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function ee(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||ee(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||ee(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||ee(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+M*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||ee(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const M=this[b]|this[b+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const M=this[b+1]|this[b]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(M<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||ee(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||ee(b,8,this.length),r.read(this,b,!1,52,8)};function ue(F,b,S,M,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+M>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const Ae=Math.pow(2,8*M)-1;ue(this,b,S,M,Ae,0)}let z=1,ne=0;for(this[S]=b&255;++ne<M&&(z*=256);)this[S+ne]=b/z&255;return S+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const Ae=Math.pow(2,8*M)-1;ue(this,b,S,M,Ae,0)}let z=M-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,M,H){pe(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,b,S,M,H){pe(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=ot(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ot(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const je=Math.pow(2,8*M-1);ue(this,b,S,M,je-1,-je)}let z=0,ne=1,Ae=0;for(this[S]=b&255;++z<M&&(ne*=256);)b<0&&Ae===0&&this[S+z-1]!==0&&(Ae=1),this[S+z]=(b/ne>>0)-Ae&255;return S+M},s.prototype.writeIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const je=Math.pow(2,8*M-1);ue(this,b,S,M,je-1,-je)}let z=M-1,ne=1,Ae=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&Ae===0&&this[S+z+1]!==0&&(Ae=1),this[S+z]=(b/ne>>0)-Ae&255;return S+M},s.prototype.writeInt8=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=ot(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ot(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,M,H,z){if(S+M>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,M,23,4),S+4}s.prototype.writeFloatLE=function(b,S,M){return q(this,b,S,!0,M)},s.prototype.writeFloatBE=function(b,S,M){return q(this,b,S,!1,M)};function $(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,M,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,M){return $(this,b,S,!0,M)},s.prototype.writeDoubleBE=function(b,S,M){return $(this,b,S,!1,M)},s.prototype.copy=function(b,S,M,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(M||(M=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<M&&(H=M),H===M||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-M&&(H=b.length-S+M);const z=H-M;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,M,H):i.prototype.set.call(b,this.subarray(M,H),S),z},s.prototype.fill=function(b,S,M,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,M=this.length):typeof M=="string"&&(H=M,M=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<M)throw new RangeError("Out of range index");if(M<=S)return this;S=S>>>0,M=M===void 0?this.length:M>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<M;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),Ae=ne.length;if(Ae===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<M-S;++z)this[z+S]=ne[z%Ae]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let M=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=Y(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=Y(H)),H+="n"),M+=` It must be ${b}. Received ${H}`,M},RangeError);function Y(F){let b="",S=F.length;const M=F[0]==="-"?1:0;for(;S>=M+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function se(F,b,S){le(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&de(b,F.length-(S+1))}function pe(F,b,S,M,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let Ae;throw b===0||b===BigInt(0)?Ae=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:Ae=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",Ae,F)}se(M,H,z)}function le(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function de(F,b,S){throw Math.floor(F)!==F?(le(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Le=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Le,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function nt(F,b){b=b||1/0;let S;const M=F.length;let H=null;const z=[];for(let ne=0;ne<M;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===M){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function Ze(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function Ne(F,b){let S,M,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),M=S>>8,H=S%256,z.push(H),z.push(M);return z}function Ue(F){return t.toByteArray(te(F))}function ft(F,b,S,M){let H;for(H=0;H<M&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function at(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function Ot(F){return F!==F}const Rt=function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const M=S*16;for(let H=0;H<16;++H)b[M+H]=F[S]+F[H]}return b}();function ot(F){return typeof BigInt>"u"?Jt:F}function Jt(){throw new Error("BigInt not supported")}})(ca);const yr=ca.Buffer;function we(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(we,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:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const da=we.prototype,pa={};["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=>{pa[e]={value:e}}),Object.defineProperties(we,pa),Object.defineProperty(da,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(da);return Z.toFlatObject(e,a,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),we.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var qh=null;function ii(e){return Z.isPlainObject(e)||Z.isArray(e)}function ga(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function ya(e,t,r){return e?e.concat(t).map(function(o,i){return o=ga(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Hh(e){return Z.isArray(e)&&!e.some(ii)}const Vh=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function cn(e,t,r){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,A){return!Z.isUndefined(A[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(Z.isDate(m))return m.toISOString();if(!f&&Z.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(m)||Z.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):yr.from(m):m}function s(m,E,A){let p=m;if(m&&!A&&typeof m=="object"){if(Z.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(Z.isArray(m)&&Hh(m)||(Z.isFileList(m)||Z.endsWith(E,"[]"))&&(p=Z.toArray(m)))return E=ga(E),p.forEach(function(g,y){!(Z.isUndefined(g)||g===null)&&t.append(a===!0?ya([E],y,i):a===null?E:E+"[]",l(g))}),!1}return ii(m)?!0:(t.append(ya(A,E,i),l(m)),!1)}const c=[],d=Object.assign(Vh,{defaultVisitor:s,convertValue:l,isVisitable:ii});function x(m,E){if(!Z.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));c.push(m),Z.forEach(m,function(p,h){(!(Z.isUndefined(p)||p===null)&&o.call(t,p,Z.isString(h)?h.trim():h,E,d))===!0&&x(p,E?E.concat(h):[h])}),c.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ma(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function oi(e,t){this._pairs=[],e&&cn(e,this,t)}const ba=oi.prototype;ba.append=function(t,r){this._pairs.push([t,r])},ba.toString=function(t){const r=t?function(n){return t.call(this,n,ma)}:ma;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Wh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wa(e,t,r){if(!t)return e;const n=r&&r.encode||Wh;Z.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Z.isURLSearchParams(t)?t.toString():new oi(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class va{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gh=typeof URLSearchParams<"u"?URLSearchParams:oi,Kh=typeof FormData<"u"?FormData:null,zh=typeof Blob<"u"?Blob:null,Xh={isBrowser:!0,classes:{URLSearchParams:Gh,FormData:Kh,Blob:zh},protocols:["http","https","file","blob","url","data"]};const si=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,Yh=si&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),Jh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zh=si&&window.location.href||"http://localhost";var Qh=Object.freeze({__proto__:null,hasBrowserEnv:si,hasStandardBrowserEnv:Yh,hasStandardBrowserWebWorkerEnv:Jh,navigator:ai,origin:Zh}),ut={...Qh,...Xh};function ed(e,t){return cn(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ut.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function td(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rd(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function xa(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),f=i>=r.length;return a=!a&&Z.isArray(o)?o.length:a,f?(Z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Z.isArray(o[a])&&(o[a]=rd(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(td(n),o,r,0)}),r}return null}function nd(e,t,r){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Br={transitional:Ea,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(xa(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ed(t,this.formSerializer).toString();if((u=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return cn(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),nd(t)):t}],transformResponse:[function(t){const r=this.transitional||Br.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?we.from(u,we.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{Br.headers[e]={}});const id=Z.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"]);var od=e=>{const t={};let r,n,o;return e&&e.split(`
7
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&id[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Aa=Symbol("internals");function Lr(e){return e&&String(e).trim().toLowerCase()}function hn(e){return e===!1||e==null?e:Z.isArray(e)?e.map(hn):String(e)}function sd(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ad=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ui(e,t,r,n,o){if(Z.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Z.isString(t)){if(Z.isString(n))return t.indexOf(n)!==-1;if(Z.isRegExp(n))return n.test(t)}}function ud(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ld(e,t){const r=Z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,f,l){const s=Lr(f);if(!s)throw new Error("header name must be a non-empty string");const c=Z.findKey(o,s);(!c||o[c]===void 0||l===!0||l===void 0&&o[c]!==!1)&&(o[c||f]=hn(u))}const a=(u,f)=>Z.forEach(u,(l,s)=>i(l,s,f));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Z.isString(t)&&(t=t.trim())&&!ad(t))a(od(t),r);else if(Z.isHeaders(t))for(const[u,f]of t.entries())i(f,u,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Lr(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return sd(o);if(Z.isFunction(r))return r.call(this,o,n);if(Z.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Lr(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ui(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Lr(a),a){const u=Z.findKey(n,a);u&&(!r||ui(n,n[u],u,r))&&(delete n[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||ui(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(n,i);if(a){r[a]=hn(o),delete r[i];return}const u=t?ud(i):String(i).trim();u!==i&&delete r[i],r[u]=hn(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
8
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ld(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function li(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ta(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function Sa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function fd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),s=n[i];a||(a=l),r[o]=f,n[o]=l;let c=i,d=0;for(;c!==o;)d+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const x=s&&l-s;return x?Math.round(d*1e3/x):void 0}}function hd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),c=s-r;c>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-c)))},()=>o&&a(o)]}const dn=(e,t,r=3)=>{let n=0;const o=cd(50,250);return hd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,f=a-n,l=o(f),s=a<=u;n=a;const c={loaded:a,total:u,progress:u?a/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(c)},r)},_a=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oa=e=>(...t)=>Z.asap(()=>e(...t));var dd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,pd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!gd(t);return e&&(n||r==!1)?yd(e,t):t}const Ra=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,c,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,c,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,c,d)}else return n(l,s,c,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,c){if(c in t)return n(l,s);if(c in e)return n(void 0,l)}const f={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,c)=>o(Ra(l),Ra(s),c,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const c=f[s]||o,d=c(e[s],t[s],s);Z.isUndefined(d)&&c!==u||(r[s]=d)}),r}var Ia=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=wa(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[l,...s]=f?f.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&dd(t.url))){const l=o&&i&&pd.read(i);l&&a.set(o,l)}return t},md=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:l}=o,s,c,d,x,m;function E(){x&&x(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function p(){if(!A)return;const g=yt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:g,config:e,request:A};Sa(function(P){r(P),E()},function(P){n(P),E()},w),A=null}"onloadend"in A?A.onloadend=p:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(p)},A.onabort=function(){A&&(n(new we("Request aborted",we.ECONNABORTED,e,A)),A=null)},A.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ea;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(y,w){A.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),l&&([d,m]=dn(l,!0),A.addEventListener("progress",d)),f&&A.upload&&([c,x]=dn(f),A.upload.addEventListener("progress",c),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=g=>{A&&(n(!g||g.type?new mr(null,e,A):g),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=fd(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const bd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>Z.asap(u),f}},wd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},vd=async function*(e,t){for await(const r of Ed(e))yield*wd(r,t)},Ed=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Pa=(e,t,r,n)=>{const o=vd(e,t);let i=0,a,u=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:l,value:s}=await o.next();if(l){u(),f.close();return}let c=s.byteLength;if(r){let d=i+=c;r(d)}f.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fa=pn&&typeof ReadableStream=="function",xd=pn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ca=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ad=Fa&&Ca(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=64*1024,fi=Fa&&Ca(()=>Z.isReadableStream(new Response("").body)),gn={stream:fi&&(e=>e.body)};pn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gn[t]&&(gn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Td=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await xd(e)).byteLength},Sd=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Td(t)};var _d=pn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:s,withCredentials:c="same-origin",fetchOptions:d}=Ia(e);l=l?(l+"").toLowerCase():"text";let x=bd([o,i&&i.toAbortSignal()],a),m;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(f&&Ad&&r!=="get"&&r!=="head"&&(A=await Sd(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(Z.isFormData(n)&&(T=w.headers.get("content-type"))&&s.setContentType(T),w.body){const[P,I]=_a(A,dn(Oa(f)));n=Pa(w.body,Ba,P,I)}}Z.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:x,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?c:void 0});let h=await fetch(m);const g=fi&&(l==="stream"||l==="response");if(fi&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const T=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&_a(T,dn(Oa(u),!0))||[];h=new Response(Pa(h.body,Ba,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await gn[Z.findKey(gn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,T)=>{Sa(w,T,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const ci={http:qh,xhr:md,fetch:_d};Z.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const La=e=>`- ${e}`,Od=e=>Z.isFunction(e)||e===null||e===!1;var Ua={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Od(r)&&(n=ci[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
- `+i.map(La).join(`
10
- `):" "+La(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ci};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function ja(e){return hi(e),e.headers=yt.from(e.headers),e.data=li.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ua.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return hi(e),n.data=li.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ta(n)||(hi(e),n&&n.response&&(n.response.data=li.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const Ma="1.8.4",yn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ka={};yn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ma+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!ka[a]&&(ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},yn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Nd(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],f=u===void 0||a(u,i,e);if(f!==!0)throw new we("option "+i+" must be "+f,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var mn={assertOptions:Nd,validators:yn};const Ct=mn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&mn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:mn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),mn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(f=f&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,c=0,d;if(!f){const m=[ja.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);c<d;)s=s.then(m[c++],m[c++]);return s}d=u.length;let x=r;for(c=0;c<d;){const m=u[c++],E=u[c++];try{x=m(x)}catch(A){E.call(this,A);break}}try{s=ja.call(this,x)}catch(m){return Promise.reject(m)}for(c=0,d=l.length;c<d;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Na(t.baseURL,t.url,t.allowAbsoluteUrls);return wa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Rd=class Lc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Lc(function(o){t=o}),cancel:t}}};function Id(e){return function(r){return e.apply(null,r)}}function Pd(e){return Z.isObject(e)&&e.isAxiosError===!0}const di={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(di).forEach(([e,t])=>{di[t]=e});function Da(e){const t=new nr(e),r=na(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Da(rr(e,o))},r}const Ye=Da(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Rd,Ye.isCancel=Ta,Ye.VERSION=Ma,Ye.toFormData=cn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Id,Ye.isAxiosError=Pd,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>xa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ua.getAdapter,Ye.HttpStatusCode=di,Ye.default=Ye;const{Axios:c1,AxiosError:h1,CanceledError:d1,isCancel:p1,CancelToken:g1,VERSION:y1,all:m1,Cancel:b1,isAxiosError:w1,spread:v1,toFormData:E1,AxiosHeaders:x1,HttpStatusCode:A1,formToJSON:T1,getAdapter:S1,mergeConfig:_1}=Ye,bn=e=>encodeURIComponent(e).split("%2F").join("/"),Fd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Cd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Bd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Fd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Ld=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:f}=t,l=u===!0||u==="keep"&&i,s=f===!0||f==="keep"&&a;let c=r;return o.length>0&&((c||l)&&(c+="/"),c+=o.join("/")),s&&(c+="/"),!c&&l&&(c+="/"),c},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Cd(e);const n=Bd(e);return Ld(n,r)};class $a extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Ud extends $a{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function jd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Md(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const wn=e=>({value:e,type:null}),kd=e=>wn(e),Fe=e=>wn(e),pi=e=>wn(e),Dd=e=>wn(e),$d={Permissions:Fe("permissions"),IsFavorite:pi("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:pi("getcontentlength"),ContentSize:pi("size"),LastModifiedDate:Fe("getlastmodified"),Tags:kd("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:Dd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries($d).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var qd=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,Hd=typeof self=="object"&&self&&self.Object===Object&&self,gi=qd||Hd||Function("return this")(),br=gi.Symbol,qa=Object.prototype,Vd=qa.hasOwnProperty,Wd=qa.toString,Ur=br?br.toStringTag:void 0;function Gd(e){var t=Vd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Wd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Kd=Object.prototype,zd=Kd.toString;function Xd(e){return zd.call(e)}var Yd="[object Null]",Jd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Jd:Yd:Ha&&Ha in Object(e)?Gd(e):Xd(e)}function Zd(e){return e!=null&&typeof e=="object"}var Qd="[object Symbol]";function yi(e){return typeof e=="symbol"||Zd(e)&&Va(e)==Qd}function ep(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var mi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(mi(e))return ep(e,Ka)+"";if(yi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var tp="[object AsyncFunction]",rp="[object Function]",np="[object GeneratorFunction]",ip="[object Proxy]";function op(e){if(!za(e))return!1;var t=Va(e);return t==rp||t==np||t==tp||t==ip}var bi=gi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sp(e){return!!Xa&&Xa in e}var ap=Function.prototype,up=ap.toString;function lp(e){if(e!=null){try{return up.call(e)}catch{}try{return e+""}catch{}}return""}var fp=/[\\^$.*+?()[\]{}|]/g,cp=/^\[object .+?Constructor\]$/,hp=Function.prototype,dp=Object.prototype,pp=hp.toString,gp=dp.hasOwnProperty,yp=RegExp("^"+pp.call(gp).replace(fp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mp(e){if(!za(e)||sp(e))return!1;var t=op(e)?yp:cp;return t.test(lp(e))}function bp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=bp(e,t);return mp(r)?r:void 0}function wp(e,t){return e===t||e!==e&&t!==t}var vp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ep=/^\w*$/;function xp(e,t){if(mi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yi(e)?!0:Ep.test(e)||!vp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function Ap(){this.__data__=jr?jr(null):{},this.size=0}function Tp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sp="__lodash_hash_undefined__",_p=Object.prototype,Op=_p.hasOwnProperty;function Np(e){var t=this.__data__;if(jr){var r=t[e];return r===Sp?void 0:r}return Op.call(t,e)?t[e]:void 0}var Rp=Object.prototype,Ip=Rp.hasOwnProperty;function Pp(e){var t=this.__data__;return jr?t[e]!==void 0:Ip.call(t,e)}var Fp="__lodash_hash_undefined__";function Cp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Fp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=Ap,or.prototype.delete=Tp,or.prototype.get=Np,or.prototype.has=Pp,or.prototype.set=Cp;function Bp(){this.__data__=[],this.size=0}function vn(e,t){for(var r=e.length;r--;)if(wp(e[r][0],t))return r;return-1}var Lp=Array.prototype,Up=Lp.splice;function jp(e){var t=this.__data__,r=vn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Up.call(t,r,1),--this.size,!0}function Mp(e){var t=this.__data__,r=vn(t,e);return r<0?void 0:t[r][1]}function kp(e){return vn(this.__data__,e)>-1}function Dp(e,t){var r=this.__data__,n=vn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Bp,wr.prototype.delete=jp,wr.prototype.get=Mp,wr.prototype.has=kp,wr.prototype.set=Dp;var $p=Ya(gi,"Map");function qp(){this.size=0,this.__data__={hash:new or,map:new($p||wr),string:new or}}function Hp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function En(e,t){var r=e.__data__;return Hp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Vp(e){var t=En(this,e).delete(e);return this.size-=t?1:0,t}function Wp(e){return En(this,e).get(e)}function Gp(e){return En(this,e).has(e)}function Kp(e,t){var r=En(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=qp,sr.prototype.delete=Vp,sr.prototype.get=Wp,sr.prototype.has=Gp,sr.prototype.set=Kp;var zp="Expected a function";function wi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(wi.Cache||sr),r}wi.Cache=sr;var Xp=500;function Yp(e){var t=wi(e,function(n){return r.size===Xp&&r.clear(),n}),r=t.cache;return t}var Jp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zp=/\\(\\)?/g,Qp=Yp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jp,function(r,n,o,i){t.push(o?i.replace(Zp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function eg(e,t){return mi(e)?e:xp(e,t)?[e]:Qp(Mr(e))}function tg(e){if(typeof e=="string"||yi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function rg(e,t){t=eg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[tg(t[r++])];return r&&r==n?e:void 0}function ng(e,t,r){var n=e==null?void 0:rg(e,t);return n===void 0?r:n}function ig(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function og(e,t,r){var n=e.length;return r=r===void 0?n:r,ig(e,t,r)}var sg="\\ud800-\\udfff",ag="\\u0300-\\u036f",ug="\\ufe20-\\ufe2f",lg="\\u20d0-\\u20ff",fg=ag+ug+lg,cg="\\ufe0e\\ufe0f",hg="\\u200d",dg=RegExp("["+hg+sg+fg+cg+"]");function Ja(e){return dg.test(e)}function pg(e){return e.split("")}var Za="\\ud800-\\udfff",gg="\\u0300-\\u036f",yg="\\ufe20-\\ufe2f",mg="\\u20d0-\\u20ff",bg=gg+yg+mg,wg="\\ufe0e\\ufe0f",vg="["+Za+"]",vi="["+bg+"]",Ei="\\ud83c[\\udffb-\\udfff]",Eg="(?:"+vi+"|"+Ei+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",xg="\\u200d",ru=Eg+"?",nu="["+wg+"]?",Ag="(?:"+xg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Tg=nu+ru+Ag,Sg="(?:"+[Qa+vi+"?",vi,eu,tu,vg].join("|")+")",_g=RegExp(Ei+"(?="+Ei+")|"+Sg+Tg,"g");function Og(e){return e.match(_g)||[]}function Ng(e){return Ja(e)?Og(e):pg(e)}function Rg(e){return function(t){t=Mr(t);var r=Ja(t)?Ng(t):void 0,n=r?r[0]:t.charAt(0),o=r?og(r,1).join(""):t.slice(1);return n[e]()+o}}var Ig=Rg("toUpperCase");function Pg(e){return Ig(Mr(e).toLowerCase())}function Fg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Cg(e){return function(t){return e==null?void 0:e[t]}}var Bg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lg=Cg(Bg),Ug=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jg="\\u0300-\\u036f",Mg="\\ufe20-\\ufe2f",kg="\\u20d0-\\u20ff",Dg=jg+Mg+kg,$g="["+Dg+"]",qg=RegExp($g,"g");function Hg(e){return e=Mr(e),e&&e.replace(Ug,Lg).replace(qg,"")}var Vg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Wg(e){return e.match(Vg)||[]}var Gg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Kg(e){return Gg.test(e)}var iu="\\ud800-\\udfff",zg="\\u0300-\\u036f",Xg="\\ufe20-\\ufe2f",Yg="\\u20d0-\\u20ff",Jg=zg+Xg+Yg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Zg="\\xac\\xb1\\xd7\\xf7",Qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",e0="\\u2000-\\u206f",t0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",r0="\\ufe0e\\ufe0f",uu=Zg+Qg+e0+t0,lu="['’]",fu="["+uu+"]",n0="["+Jg+"]",cu="\\d+",i0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+cu+ou+su+au+"]",o0="\\ud83c[\\udffb-\\udfff]",s0="(?:"+n0+"|"+o0+")",a0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",u0="\\u200d",yu="(?:"+hu+"|"+du+")",l0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=s0+"?",vu="["+r0+"]?",f0="(?:"+u0+"(?:"+[a0,pu,gu].join("|")+")"+vu+wu+")*",c0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",d0=vu+wu+f0,p0="(?:"+[i0,pu,gu].join("|")+")"+d0,g0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[fu,vr,"$"].join("|")+")",l0+"+"+bu+"(?="+[fu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,h0,c0,cu,p0].join("|"),"g");function y0(e){return e.match(g0)||[]}function m0(e,t,r){return e=Mr(e),t=t,t===void 0?Kg(e)?y0(e):Wg(e):e.match(t)||[]}var b0="['’]",w0=RegExp(b0,"g");function v0(e){return function(t){return Fg(m0(Hg(t).replace(w0,"")),e,"")}}var E0=v0(function(e,t,r){return t=t.toLowerCase(),e+(r?Pg(t):t)});const x0={complex:["tar.bz2","tar.gz","tar.xz"]},xi=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",A0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(x0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},xn=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[E0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,A;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||on.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let f,l,s;u&&(f=u[ae.ActiveLock],l=f[ae.LockOwner],s=f[ae.LockTime]);let c=[];e.props[ae.ShareTypes]&&(c=e.props[ae.ShareTypes]["share-type"],Array.isArray(c)||(c=[c]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const x={id:n,fileId:n,storageId:A0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!f,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((A=e.props[ae.ContentLength])==null?void 0:A.toString())||"0",permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:c,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:xn(e.props[ae.Audio]),location:xn(e.props[ae.Location]),image:xn(e.props[ae.Image]),photo:xn(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>xi(n)};return Object.defineProperty(x,"nodeId",{get(){return xu(this.id)}}),x}function T0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=ra.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:ra.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>xi(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",An=e=>(e==null?void 0:e.driveType)==="public";function S0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function Ai(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function _0(e){var c,d,x,m,E,A;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(x=e.props)==null?void 0:x[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(A=e.props)==null?void 0:A[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=Md(e.id)):(l=`public/${e.id}`,s=jd(e.id)),Object.assign(O0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:f})}function O0(e,t){var c,d,x,m,E,A;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(c=e.root)==null?void 0:c.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||S0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||Ai(e.id),{leadingSlash:!0}),f=_e(e.serverUrl,"remote.php/dav",u),l=(m=(x=e.root)==null?void 0:x.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:N0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(A=e.owner)==null?void 0:A.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>xi(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(f,p)},isMember(p){var h;return An(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function N0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const R0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return ng(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ti={},Tn={exports:{}},Su;function Si(){if(Su)return Tn.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,T,P){return Function.prototype.apply.call(w,T,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}Tn.exports=i,Tn.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(w){for(var T=[],P=1;P<arguments.length;P++)T.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(T.length>0&&(j=T[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,T);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,T);return!0};function l(y,w,T,P){var I,O,j;if(u(T),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,T.listener?T.listener:T),O=y._events),j=O[w]),j===void 0)j=O[w]=T,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[T,j]:[j,T]:P?j.unshift(T):j.push(T),I=f(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,T){return l(this,w,T,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,T){return l(this,w,T,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,w,T){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:T},I=s.bind(P);return I.listener=T,P.wrapFn=I,I}i.prototype.once=function(w,T){return u(T),this.on(w,c(this,w,T)),this},i.prototype.prependOnceListener=function(w,T){return u(T),this.prependListener(w,c(this,w,T)),this},i.prototype.removeListener=function(w,T){var P,I,O,j,G;if(u(T),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===T||P.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||T));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===T||P[j].listener===T){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||T)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var T,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=P[w],typeof T=="function")this.removeListener(w,T);else if(T!==void 0)for(I=T.length-1;I>=0;I--)this.removeListener(w,T[I]);return this};function d(y,w,T){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?A(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):x.call(y,w)},i.prototype.listenerCount=x;function x(y){var w=this._events;if(w!==void 0){var T=w[y];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var T=new Array(w),P=0;P<w;++P)T[P]=y[P];return T}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function A(y){for(var w=new Array(y.length),T=0;T<w.length;++T)w[T]=y[T].listener||y[T];return w}function p(y,w){return new Promise(function(T,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),T([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,T){typeof y.on=="function"&&g(y,"error",w,T)}function g(y,w,T,P){if(typeof y.on=="function")P.once?y.once(w,T):y.on(w,T);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),T(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return Tn.exports}var Sn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Sn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Sn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Sn.exports}var _i,Ou;function Nu(){return Ou||(Ou=1,_i=Si().EventEmitter),_i}var Oi={},Ru;function _n(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=a.length;u<f;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function c(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],T=y[1],P=new i(c(h,w,T)),I=0,O=T>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return T===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),T===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function x(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,T=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),T.push(x(w));return T.join("")}function E(h){for(var g,y=h.length,w=y%3,T=[],P=16383,I=0,O=y-w;I<O;I+=P)T.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],T.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],T.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),T.join("")}var A={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */A.read=function(h,g,y,w,T){var P,I,O=T*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?T-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},A.write=function(h,g,y,w,T,P){var I,O,j,G=P*8-T-1,L=(1<<G)-1,D=L>>1,oe=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,fe=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,T),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,T),I=0));T>=8;h[y+re]=O&255,re+=he,O/=256,T-=8);for(I=I<<T|O,G+=T;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=fe*128};/*!
12
- * The buffer module from node.js, for the browser.
13
- *
14
- * @author Feross Aboukhadijeh <https://feross.org>
15
- * @license MIT
16
- */(function(h){const g=r,y=A,w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;h.Buffer=L,h.SlowBuffer=Q,h.INSPECT_MAX_BYTES=50;const T=2147483647;h.kMaxLength=T;const{Uint8Array:P,ArrayBuffer:I,SharedArrayBuffer:O}=globalThis;L.TYPED_ARRAY_SUPPORT=j(),!L.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 j(){try{const C=new P(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,P.prototype),Object.setPrototypeOf(C,v),C.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function G(C){if(C>T)throw new RangeError('The value "'+C+'" is invalid for option "size"');const v=new P(C);return Object.setPrototypeOf(v,L.prototype),v}function L(C,v,_){if(typeof C=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(C)}return D(C,v,_)}L.poolSize=8192;function D(C,v,_){if(typeof C=="string")return fe(C,v);if(I.isView(C))return ce(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(Lt(C,I)||C&&Lt(C.buffer,I)||typeof O<"u"&&(Lt(C,O)||C&&Lt(C.buffer,O)))return xe(C,v,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=C.valueOf&&C.valueOf();if(k!=null&&k!==C)return L.from(k,v,_);const W=be(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),v,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}L.from=function(C,v,_){return D(C,v,_)},Object.setPrototypeOf(L.prototype,P.prototype),Object.setPrototypeOf(L,P);function oe(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function re(C,v,_){return oe(C),C<=0?G(C):v!==void 0?typeof _=="string"?G(C).fill(v,_):G(C).fill(v):G(C)}L.alloc=function(C,v,_){return re(C,v,_)};function he(C){return oe(C),G(C<0?0:K(C)|0)}L.allocUnsafe=function(C){return he(C)},L.allocUnsafeSlow=function(C){return he(C)};function fe(C,v){if((typeof v!="string"||v==="")&&(v="utf8"),!L.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const _=ee(C,v)|0;let k=G(_);const W=k.write(C,v);return W!==_&&(k=k.slice(0,W)),k}function ge(C){const v=C.length<0?0:K(C.length)|0,_=G(v);for(let k=0;k<v;k+=1)_[k]=C[k]&255;return _}function ce(C){if(Lt(C,P)){const v=new P(C);return xe(v.buffer,v.byteOffset,v.byteLength)}return ge(C)}function xe(C,v,_){if(v<0||C.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<v+(_||0))throw new RangeError('"length" is outside of buffer bounds');let k;return v===void 0&&_===void 0?k=new P(C):_===void 0?k=new P(C,v):k=new P(C,v,_),Object.setPrototypeOf(k,L.prototype),k}function be(C){if(L.isBuffer(C)){const v=K(C.length)|0,_=G(v);return _.length===0||C.copy(_,0,0,v),_}if(C.length!==void 0)return typeof C.length!="number"||Hs(C.length)?G(0):ge(C);if(C.type==="Buffer"&&Array.isArray(C.data))return ge(C.data)}function K(C){if(C>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return C|0}function Q(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==L.prototype},L.compare=function(v,_){if(Lt(v,P)&&(v=L.from(v,v.offset,v.byteLength)),Lt(_,P)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(v)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===_)return 0;let k=v.length,W=_.length;for(let X=0,ie=Math.min(k,W);X<ie;++X)if(v[X]!==_[X]){k=v[X],W=_[X];break}return k<W?-1:W<k?1:0},L.isEncoding=function(v){switch(String(v).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}},L.concat=function(v,_){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return L.alloc(0);let k;if(_===void 0)for(_=0,k=0;k<v.length;++k)_+=v[k].length;const W=L.allocUnsafe(_);let X=0;for(k=0;k<v.length;++k){let ie=v[k];if(Lt(ie,P))X+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,X)):P.prototype.set.call(W,ie,X);else if(L.isBuffer(ie))ie.copy(W,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ie.length}return W};function ee(C,v){if(L.isBuffer(C))return C.length;if(I.isView(C)||Lt(C,I))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const _=C.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&_===0)return 0;let W=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return je(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ie(C).length;default:if(W)return k?-1:je(C).length;v=(""+v).toLowerCase(),W=!0}}L.byteLength=ee;function ue(C,v,_){let k=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,v>>>=0,_<=v))return"";for(C||(C="utf8");;)switch(C){case"hex":return nt(this,v,_);case"utf8":case"utf-8":return pe(this,v,_);case"ascii":return Le(this,v,_);case"latin1":case"binary":return te(this,v,_);case"base64":return se(this,v,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,v,_);default:if(k)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),k=!0}}L.prototype._isBuffer=!0;function V(C,v,_){const k=C[v];C[v]=C[_],C[_]=k}L.prototype.swap16=function(){const v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<v;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<v;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<v;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const v=this.length;return v===0?"":arguments.length===0?pe(this,0,v):ue.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(v){if(!L.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:L.compare(this,v)===0},L.prototype.inspect=function(){let v="";const _=h.INSPECT_MAX_BYTES;return v=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(v+=" ... "),"<Buffer "+v+">"},w&&(L.prototype[w]=L.prototype.inspect),L.prototype.compare=function(v,_,k,W,X){if(Lt(v,P)&&(v=L.from(v,v.offset,v.byteLength)),!L.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(_===void 0&&(_=0),k===void 0&&(k=v?v.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||k>v.length||W<0||X>this.length)throw new RangeError("out of range index");if(W>=X&&_>=k)return 0;if(W>=X)return-1;if(_>=k)return 1;if(_>>>=0,k>>>=0,W>>>=0,X>>>=0,this===v)return 0;let ie=X-W,Te=k-_;const Ke=Math.min(ie,Te),$e=this.slice(W,X),ze=v.slice(_,k);for(let Be=0;Be<Ke;++Be)if($e[Be]!==ze[Be]){ie=$e[Be],Te=ze[Be];break}return ie<Te?-1:Te<ie?1:0};function R(C,v,_,k,W){if(C.length===0)return-1;if(typeof _=="string"?(k=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Hs(_)&&(_=W?0:C.length-1),_<0&&(_=C.length+_),_>=C.length){if(W)return-1;_=C.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof v=="string"&&(v=L.from(v,k)),L.isBuffer(v))return v.length===0?-1:N(C,v,_,k,W);if(typeof v=="number")return v=v&255,typeof P.prototype.indexOf=="function"?W?P.prototype.indexOf.call(C,v,_):P.prototype.lastIndexOf.call(C,v,_):N(C,[v],_,k,W);throw new TypeError("val must be string, number or Buffer")}function N(C,v,_,k,W){let X=1,ie=C.length,Te=v.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(C.length<2||v.length<2)return-1;X=2,ie/=2,Te/=2,_/=2}function Ke(ze,Be){return X===1?ze[Be]:ze.readUInt16BE(Be*X)}let $e;if(W){let ze=-1;for($e=_;$e<ie;$e++)if(Ke(C,$e)===Ke(v,ze===-1?0:$e-ze)){if(ze===-1&&(ze=$e),$e-ze+1===Te)return ze*X}else ze!==-1&&($e-=$e-ze),ze=-1}else for(_+Te>ie&&(_=ie-Te),$e=_;$e>=0;$e--){let ze=!0;for(let Be=0;Be<Te;Be++)if(Ke(C,$e+Be)!==Ke(v,Be)){ze=!1;break}if(ze)return $e}return-1}L.prototype.includes=function(v,_,k){return this.indexOf(v,_,k)!==-1},L.prototype.indexOf=function(v,_,k){return R(this,v,_,k,!0)},L.prototype.lastIndexOf=function(v,_,k){return R(this,v,_,k,!1)};function q(C,v,_,k){_=Number(_)||0;const W=C.length-_;k?(k=Number(k),k>W&&(k=W)):k=W;const X=v.length;k>X/2&&(k=X/2);let ie;for(ie=0;ie<k;++ie){const Te=parseInt(v.substr(ie*2,2),16);if(Hs(Te))return ie;C[_+ie]=Te}return ie}function $(C,v,_,k){return Wn(je(v,C.length-_),C,_,k)}function B(C,v,_,k){return Wn(Me(v),C,_,k)}function U(C,v,_,k){return Wn(Ie(v),C,_,k)}function Y(C,v,_,k){return Wn(De(v,C.length-_),C,_,k)}L.prototype.write=function(v,_,k,W){if(_===void 0)W="utf8",k=this.length,_=0;else if(k===void 0&&typeof _=="string")W=_,k=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(k)?(k=k>>>0,W===void 0&&(W="utf8")):(W=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-_;if((k===void 0||k>X)&&(k=X),v.length>0&&(k<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ie=!1;for(;;)switch(W){case"hex":return q(this,v,_,k);case"utf8":case"utf-8":return $(this,v,_,k);case"ascii":case"latin1":case"binary":return B(this,v,_,k);case"base64":return U(this,v,_,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,v,_,k);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ie=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se(C,v,_){return v===0&&_===C.length?g.fromByteArray(C):g.fromByteArray(C.slice(v,_))}function pe(C,v,_){_=Math.min(C.length,_);const k=[];let W=v;for(;W<_;){const X=C[W];let ie=null,Te=X>239?4:X>223?3:X>191?2:1;if(W+Te<=_){let Ke,$e,ze,Be;switch(Te){case 1:X<128&&(ie=X);break;case 2:Ke=C[W+1],(Ke&192)===128&&(Be=(X&31)<<6|Ke&63,Be>127&&(ie=Be));break;case 3:Ke=C[W+1],$e=C[W+2],(Ke&192)===128&&($e&192)===128&&(Be=(X&15)<<12|(Ke&63)<<6|$e&63,Be>2047&&(Be<55296||Be>57343)&&(ie=Be));break;case 4:Ke=C[W+1],$e=C[W+2],ze=C[W+3],(Ke&192)===128&&($e&192)===128&&(ze&192)===128&&(Be=(X&15)<<18|(Ke&63)<<12|($e&63)<<6|ze&63,Be>65535&&Be<1114112&&(ie=Be))}}ie===null?(ie=65533,Te=1):ie>65535&&(ie-=65536,k.push(ie>>>10&1023|55296),ie=56320|ie&1023),k.push(ie),W+=Te}return de(k)}const le=4096;function de(C){const v=C.length;if(v<=le)return String.fromCharCode.apply(String,C);let _="",k=0;for(;k<v;)_+=String.fromCharCode.apply(String,C.slice(k,k+=le));return _}function Le(C,v,_){let k="";_=Math.min(C.length,_);for(let W=v;W<_;++W)k+=String.fromCharCode(C[W]&127);return k}function te(C,v,_){let k="";_=Math.min(C.length,_);for(let W=v;W<_;++W)k+=String.fromCharCode(C[W]);return k}function nt(C,v,_){const k=C.length;(!v||v<0)&&(v=0),(!_||_<0||_>k)&&(_=k);let W="";for(let X=v;X<_;++X)W+=s1[C[X]];return W}function Ze(C,v,_){const k=C.slice(v,_);let W="";for(let X=0;X<k.length-1;X+=2)W+=String.fromCharCode(k[X]+k[X+1]*256);return W}L.prototype.slice=function(v,_){const k=this.length;v=~~v,_=_===void 0?k:~~_,v<0?(v+=k,v<0&&(v=0)):v>k&&(v=k),_<0?(_+=k,_<0&&(_=0)):_>k&&(_=k),_<v&&(_=v);const W=this.subarray(v,_);return Object.setPrototypeOf(W,L.prototype),W};function Ne(C,v,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+v>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(v,_,k){v=v>>>0,_=_>>>0,k||Ne(v,_,this.length);let W=this[v],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[v+ie]*X;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(v,_,k){v=v>>>0,_=_>>>0,k||Ne(v,_,this.length);let W=this[v+--_],X=1;for(;_>0&&(X*=256);)W+=this[v+--_]*X;return W},L.prototype.readUint8=L.prototype.readUInt8=function(v,_){return v=v>>>0,_||Ne(v,1,this.length),this[v]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(v,_){return v=v>>>0,_||Ne(v,2,this.length),this[v]|this[v+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(v,_){return v=v>>>0,_||Ne(v,2,this.length),this[v]<<8|this[v+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(v,_){return v=v>>>0,_||Ne(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(v,_){return v=v>>>0,_||Ne(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},L.prototype.readBigUInt64LE=Zt(function(v){v=v>>>0,H(v,"offset");const _=this[v],k=this[v+7];(_===void 0||k===void 0)&&z(v,this.length-8);const W=_+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24,X=this[++v]+this[++v]*2**8+this[++v]*2**16+k*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Zt(function(v){v=v>>>0,H(v,"offset");const _=this[v],k=this[v+7];(_===void 0||k===void 0)&&z(v,this.length-8);const W=_*2**24+this[++v]*2**16+this[++v]*2**8+this[++v],X=this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+k;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(v,_,k){v=v>>>0,_=_>>>0,k||Ne(v,_,this.length);let W=this[v],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[v+ie]*X;return X*=128,W>=X&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(v,_,k){v=v>>>0,_=_>>>0,k||Ne(v,_,this.length);let W=_,X=1,ie=this[v+--W];for(;W>0&&(X*=256);)ie+=this[v+--W]*X;return X*=128,ie>=X&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(v,_){return v=v>>>0,_||Ne(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},L.prototype.readInt16LE=function(v,_){v=v>>>0,_||Ne(v,2,this.length);const k=this[v]|this[v+1]<<8;return k&32768?k|4294901760:k},L.prototype.readInt16BE=function(v,_){v=v>>>0,_||Ne(v,2,this.length);const k=this[v+1]|this[v]<<8;return k&32768?k|4294901760:k},L.prototype.readInt32LE=function(v,_){return v=v>>>0,_||Ne(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},L.prototype.readInt32BE=function(v,_){return v=v>>>0,_||Ne(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},L.prototype.readBigInt64LE=Zt(function(v){v=v>>>0,H(v,"offset");const _=this[v],k=this[v+7];(_===void 0||k===void 0)&&z(v,this.length-8);const W=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(k<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),L.prototype.readBigInt64BE=Zt(function(v){v=v>>>0,H(v,"offset");const _=this[v],k=this[v+7];(_===void 0||k===void 0)&&z(v,this.length-8);const W=(_<<24)+this[++v]*2**16+this[++v]*2**8+this[++v];return(BigInt(W)<<BigInt(32))+BigInt(this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+k)}),L.prototype.readFloatLE=function(v,_){return v=v>>>0,_||Ne(v,4,this.length),y.read(this,v,!0,23,4)},L.prototype.readFloatBE=function(v,_){return v=v>>>0,_||Ne(v,4,this.length),y.read(this,v,!1,23,4)},L.prototype.readDoubleLE=function(v,_){return v=v>>>0,_||Ne(v,8,this.length),y.read(this,v,!0,52,8)},L.prototype.readDoubleBE=function(v,_){return v=v>>>0,_||Ne(v,8,this.length),y.read(this,v,!1,52,8)};function Ue(C,v,_,k,W,X){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>W||v<X)throw new RangeError('"value" argument is out of bounds');if(_+k>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(v,_,k,W){if(v=+v,_=_>>>0,k=k>>>0,!W){const Te=Math.pow(2,8*k)-1;Ue(this,v,_,k,Te,0)}let X=1,ie=0;for(this[_]=v&255;++ie<k&&(X*=256);)this[_+ie]=v/X&255;return _+k},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(v,_,k,W){if(v=+v,_=_>>>0,k=k>>>0,!W){const Te=Math.pow(2,8*k)-1;Ue(this,v,_,k,Te,0)}let X=k-1,ie=1;for(this[_+X]=v&255;--X>=0&&(ie*=256);)this[_+X]=v/ie&255;return _+k},L.prototype.writeUint8=L.prototype.writeUInt8=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,1,255,0),this[_]=v&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,2,65535,0),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,2,65535,0),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,4,4294967295,0),this[_+3]=v>>>24,this[_+2]=v>>>16,this[_+1]=v>>>8,this[_]=v&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,4,4294967295,0),this[_]=v>>>24,this[_+1]=v>>>16,this[_+2]=v>>>8,this[_+3]=v&255,_+4};function ft(C,v,_,k,W){M(v,k,W,C,_,7);let X=Number(v&BigInt(4294967295));C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X;let ie=Number(v>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function at(C,v,_,k,W){M(v,k,W,C,_,7);let X=Number(v&BigInt(4294967295));C[_+7]=X,X=X>>8,C[_+6]=X,X=X>>8,C[_+5]=X,X=X>>8,C[_+4]=X;let ie=Number(v>>BigInt(32)&BigInt(4294967295));return C[_+3]=ie,ie=ie>>8,C[_+2]=ie,ie=ie>>8,C[_+1]=ie,ie=ie>>8,C[_]=ie,_+8}L.prototype.writeBigUInt64LE=Zt(function(v,_=0){return ft(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Zt(function(v,_=0){return at(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(v,_,k,W){if(v=+v,_=_>>>0,!W){const Ke=Math.pow(2,8*k-1);Ue(this,v,_,k,Ke-1,-Ke)}let X=0,ie=1,Te=0;for(this[_]=v&255;++X<k&&(ie*=256);)v<0&&Te===0&&this[_+X-1]!==0&&(Te=1),this[_+X]=(v/ie>>0)-Te&255;return _+k},L.prototype.writeIntBE=function(v,_,k,W){if(v=+v,_=_>>>0,!W){const Ke=Math.pow(2,8*k-1);Ue(this,v,_,k,Ke-1,-Ke)}let X=k-1,ie=1,Te=0;for(this[_+X]=v&255;--X>=0&&(ie*=256);)v<0&&Te===0&&this[_+X+1]!==0&&(Te=1),this[_+X]=(v/ie>>0)-Te&255;return _+k},L.prototype.writeInt8=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,1,127,-128),v<0&&(v=255+v+1),this[_]=v&255,_+1},L.prototype.writeInt16LE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,2,32767,-32768),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeInt16BE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,2,32767,-32768),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeInt32LE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,4,2147483647,-2147483648),this[_]=v&255,this[_+1]=v>>>8,this[_+2]=v>>>16,this[_+3]=v>>>24,_+4},L.prototype.writeInt32BE=function(v,_,k){return v=+v,_=_>>>0,k||Ue(this,v,_,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[_]=v>>>24,this[_+1]=v>>>16,this[_+2]=v>>>8,this[_+3]=v&255,_+4},L.prototype.writeBigInt64LE=Zt(function(v,_=0){return ft(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Zt(function(v,_=0){return at(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ot(C,v,_,k,W,X){if(_+k>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Rt(C,v,_,k,W){return v=+v,_=_>>>0,W||Ot(C,v,_,4),y.write(C,v,_,k,23,4),_+4}L.prototype.writeFloatLE=function(v,_,k){return Rt(this,v,_,!0,k)},L.prototype.writeFloatBE=function(v,_,k){return Rt(this,v,_,!1,k)};function ot(C,v,_,k,W){return v=+v,_=_>>>0,W||Ot(C,v,_,8),y.write(C,v,_,k,52,8),_+8}L.prototype.writeDoubleLE=function(v,_,k){return ot(this,v,_,!0,k)},L.prototype.writeDoubleBE=function(v,_,k){return ot(this,v,_,!1,k)},L.prototype.copy=function(v,_,k,W){if(!L.isBuffer(v))throw new TypeError("argument should be a Buffer");if(k||(k=0),!W&&W!==0&&(W=this.length),_>=v.length&&(_=v.length),_||(_=0),W>0&&W<k&&(W=k),W===k||v.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),v.length-_<W-k&&(W=v.length-_+k);const X=W-k;return this===v&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,k,W):P.prototype.set.call(v,this.subarray(k,W),_),X},L.prototype.fill=function(v,_,k,W){if(typeof v=="string"){if(typeof _=="string"?(W=_,_=0,k=this.length):typeof k=="string"&&(W=k,k=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!L.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(v.length===1){const ie=v.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(v=ie)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(_<0||this.length<_||this.length<k)throw new RangeError("Out of range index");if(k<=_)return this;_=_>>>0,k=k===void 0?this.length:k>>>0,v||(v=0);let X;if(typeof v=="number")for(X=_;X<k;++X)this[X]=v;else{const ie=L.isBuffer(v)?v:L.from(v,W),Te=ie.length;if(Te===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(X=0;X<k-_;++X)this[X+_]=ie[X%Te]}return this};const Jt={};function F(C,v,_){Jt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(C,v){return`The "${C}" argument must be of type number. Received type ${typeof v}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,v,_){let k=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=b(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=b(W)),W+="n"),k+=` It must be ${v}. Received ${W}`,k},RangeError);function b(C){let v="",_=C.length;const k=C[0]==="-"?1:0;for(;_>=k+4;_-=3)v=`_${C.slice(_-3,_)}${v}`;return`${C.slice(0,_)}${v}`}function S(C,v,_){H(v,"offset"),(C[v]===void 0||C[v+_]===void 0)&&z(v,C.length-(_+1))}function M(C,v,_,k,W,X){if(C>_||C<v){const ie=typeof v=="bigint"?"n":"";let Te;throw v===0||v===BigInt(0)?Te=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:Te=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new Jt.ERR_OUT_OF_RANGE("value",Te,C)}S(k,W,X)}function H(C,v){if(typeof C!="number")throw new Jt.ERR_INVALID_ARG_TYPE(v,"number",C)}function z(C,v,_){throw Math.floor(C)!==C?(H(C,_),new Jt.ERR_OUT_OF_RANGE("offset","an integer",C)):v<0?new Jt.ERR_BUFFER_OUT_OF_BOUNDS:new Jt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function Ae(C){if(C=C.split("=")[0],C=C.trim().replace(ne,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function je(C,v){v=v||1/0;let _;const k=C.length;let W=null;const X=[];for(let ie=0;ie<k;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(v-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===k){(v-=3)>-1&&X.push(239,191,189);continue}W=_;continue}if(_<56320){(v-=3)>-1&&X.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(v-=3)>-1&&X.push(239,191,189);if(W=null,_<128){if((v-=1)<0)break;X.push(_)}else if(_<2048){if((v-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((v-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((v-=4)<0)break;X.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return X}function Me(C){const v=[];for(let _=0;_<C.length;++_)v.push(C.charCodeAt(_)&255);return v}function De(C,v){let _,k,W;const X=[];for(let ie=0;ie<C.length&&!((v-=2)<0);++ie)_=C.charCodeAt(ie),k=_>>8,W=_%256,X.push(W),X.push(k);return X}function Ie(C){return g.toByteArray(Ae(C))}function Wn(C,v,_,k){let W;for(W=0;W<k&&!(W+_>=v.length||W>=C.length);++W)v[W+_]=C[W];return W}function Lt(C,v){return C instanceof v||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===v.name}function Hs(C){return C!==C}const s1=function(){const C="0123456789abcdef",v=new Array(256);for(let _=0;_<16;++_){const k=_*16;for(let W=0;W<16;++W)v[k+W]=C[_]+C[W]}return v}();function Zt(C){return typeof BigInt>"u"?a1:C}function a1(){throw new Error("BigInt not supported")}})(t);const p=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=p,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode}(Oi)),Oi}var Ni={},Ri={},Ii,Iu;function Pu(){return Iu||(Iu=1,Ii=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),Ii}var Pi,Fu;function On(){if(Fu)return Pi;Fu=1;var e=Pu();return Pi=function(){return e()&&!!Symbol.toStringTag},Pi}var Fi,Cu;function Bu(){return Cu||(Cu=1,Fi=Object),Fi}var Ci,Lu;function I0(){return Lu||(Lu=1,Ci=Error),Ci}var Bi,Uu;function P0(){return Uu||(Uu=1,Bi=EvalError),Bi}var Li,ju;function F0(){return ju||(ju=1,Li=RangeError),Li}var Ui,Mu;function C0(){return Mu||(Mu=1,Ui=ReferenceError),Ui}var ji,ku;function Du(){return ku||(ku=1,ji=SyntaxError),ji}var Mi,$u;function kr(){return $u||($u=1,Mi=TypeError),Mi}var ki,qu;function B0(){return qu||(qu=1,ki=URIError),ki}var Di,Hu;function L0(){return Hu||(Hu=1,Di=Math.abs),Di}var $i,Vu;function U0(){return Vu||(Vu=1,$i=Math.floor),$i}var qi,Wu;function j0(){return Wu||(Wu=1,qi=Math.max),qi}var Hi,Gu;function M0(){return Gu||(Gu=1,Hi=Math.min),Hi}var Vi,Ku;function k0(){return Ku||(Ku=1,Vi=Math.pow),Vi}var Wi,zu;function D0(){return zu||(zu=1,Wi=Math.round),Wi}var Gi,Xu;function $0(){return Xu||(Xu=1,Gi=Number.isNaN||function(t){return t!==t}),Gi}var Ki,Yu;function q0(){if(Yu)return Ki;Yu=1;var e=$0();return Ki=function(r){return e(r)||r===0?r:r<0?-1:1},Ki}var zi,Ju;function H0(){return Ju||(Ju=1,zi=Object.getOwnPropertyDescriptor),zi}var Xi,Zu;function xr(){if(Zu)return Xi;Zu=1;var e=H0();if(e)try{e([],"length")}catch{e=null}return Xi=e,Xi}var Yi,Qu;function Nn(){if(Qu)return Yi;Qu=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Yi=e,Yi}var Ji,el;function V0(){if(el)return Ji;el=1;var e=typeof Symbol<"u"&&Symbol,t=Pu();return Ji=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Ji}var Zi,tl;function rl(){return tl||(tl=1,Zi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Zi}var Qi,nl;function il(){if(nl)return Qi;nl=1;var e=Bu();return Qi=e.getPrototypeOf||null,Qi}var eo,ol;function W0(){if(ol)return eo;ol=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(f,l){for(var s=[],c=0;c<f.length;c+=1)s[c]=f[c];for(var d=0;d<l.length;d+=1)s[d+f.length]=l[d];return s},i=function(f,l){for(var s=[],c=l,d=0;c<f.length;c+=1,d+=1)s[d]=f[c];return s},a=function(u,f){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=f);return l};return eo=function(f){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),c,d=function(){if(this instanceof c){var p=l.apply(this,o(s,arguments));return Object(p)===p?p:this}return l.apply(f,o(s,arguments))},x=r(0,l.length-s.length),m=[],E=0;E<x;E++)m[E]="$"+E;if(c=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var A=function(){};A.prototype=l.prototype,c.prototype=new A,A.prototype=null}return c},eo}var to,sl;function Dr(){if(sl)return to;sl=1;var e=W0();return to=Function.prototype.bind||e,to}var ro,al;function no(){return al||(al=1,ro=Function.prototype.call),ro}var io,ul;function oo(){return ul||(ul=1,io=Function.prototype.apply),io}var so,ll;function G0(){return ll||(ll=1,so=typeof Reflect<"u"&&Reflect&&Reflect.apply),so}var ao,fl;function cl(){if(fl)return ao;fl=1;var e=Dr(),t=oo(),r=no(),n=G0();return ao=n||e.call(r,t),ao}var uo,hl;function lo(){if(hl)return uo;hl=1;var e=Dr(),t=kr(),r=no(),n=cl();return uo=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},uo}var fo,dl;function K0(){if(dl)return fo;dl=1;var e=lo(),t=xr(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return fo=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,fo}var co,pl;function gl(){if(pl)return co;pl=1;var e=rl(),t=il(),r=K0();return co=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,co}var ho,yl;function ml(){if(yl)return ho;yl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Dr();return ho=r.call(e,t),ho}var po,bl;function wl(){if(bl)return po;bl=1;var e,t=Bu(),r=I0(),n=P0(),o=F0(),i=C0(),a=Du(),u=kr(),f=B0(),l=L0(),s=U0(),c=j0(),d=M0(),x=k0(),m=D0(),E=q0(),A=Function,p=function(q){try{return A('"use strict"; return ('+q+").constructor;")()}catch{}},h=xr(),g=Nn(),y=function(){throw new u},w=h?function(){try{return arguments.callee,y}catch{try{return h(arguments,"callee").get}catch{return y}}}():y,T=V0()(),P=gl(),I=il(),O=rl(),j=oo(),G=no(),L={},D=typeof Uint8Array>"u"||!P?e:P(Uint8Array),oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":w,"%TypedArray%":D,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":j,"%Object.defineProperty%":g,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":c,"%Math.min%":d,"%Math.pow%":x,"%Math.round%":m,"%Math.sign%":E,"%Reflect.getPrototypeOf%":O};if(P)try{null.error}catch(q){var re=P(P(q));oe["%Error.prototype%"]=re}var he=function q($){var B;if($==="%AsyncFunction%")B=p("async function () {}");else if($==="%GeneratorFunction%")B=p("function* () {}");else if($==="%AsyncGeneratorFunction%")B=p("async function* () {}");else if($==="%AsyncGenerator%"){var U=q("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if($==="%AsyncIteratorPrototype%"){var Y=q("%AsyncGenerator%");Y&&P&&(B=P(Y.prototype))}return oe[$]=B,B},fe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ge=Dr(),ce=ml(),xe=ge.call(G,Array.prototype.concat),be=ge.call(j,Array.prototype.splice),K=ge.call(G,String.prototype.replace),Q=ge.call(G,String.prototype.slice),ee=ge.call(G,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function($){var B=Q($,0,1),U=Q($,-1);if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Y=[];return K($,ue,function(se,pe,le,de){Y[Y.length]=le?K(de,V,"$1"):pe||se}),Y},N=function($,B){var U=$,Y;if(ce(fe,U)&&(Y=fe[U],U="%"+Y[0]+"%"),ce(oe,U)){var se=oe[U];if(se===L&&(se=he(U)),typeof se>"u"&&!B)throw new u("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:Y,name:U,value:se}}throw new a("intrinsic "+$+" does not exist!")};return po=function($,B){if(typeof $!="string"||$.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,$)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R($),Y=U.length>0?U[0]:"",se=N("%"+Y+"%",B),pe=se.name,le=se.value,de=!1,Le=se.alias;Le&&(Y=Le[0],be(U,xe([0,1],Le)));for(var te=1,nt=!0;te<U.length;te+=1){var Ze=U[te],Ne=Q(Ze,0,1),Ue=Q(Ze,-1);if((Ne==='"'||Ne==="'"||Ne==="`"||Ue==='"'||Ue==="'"||Ue==="`")&&Ne!==Ue)throw new a("property names with quotes must have matching quotes");if((Ze==="constructor"||!nt)&&(de=!0),Y+="."+Ze,pe="%"+Y+"%",ce(oe,pe))le=oe[pe];else if(le!=null){if(!(Ze in le)){if(!B)throw new u("base intrinsic for "+$+" exists, but the property is not available.");return}if(h&&te+1>=U.length){var ft=h(le,Ze);nt=!!ft,nt&&"get"in ft&&!("originalValue"in ft.get)?le=ft.get:le=le[Ze]}else nt=ce(le,Ze),le=le[Ze];nt&&!de&&(oe[pe]=le)}}return le},po}var go,vl;function $r(){if(vl)return go;vl=1;var e=wl(),t=lo(),r=t([e("%String.prototype.indexOf%")]);return go=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},go}var yo,El;function z0(){if(El)return yo;El=1;var e=On()(),t=$r(),r=t("Object.prototype.toString"),n=function(u){return e&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:r(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&r(u)!=="[object Array]"&&"callee"in u&&r(u.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,yo=i?n:o,yo}var mo,xl;function X0(){if(xl)return mo;xl=1;var e=$r(),t=On()(),r=ml(),n=xr(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},f={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=u),o=function(d){if(!d||typeof d!="object")return!1;var x=n(d,"lastIndex"),m=x&&r(x,"value");if(!m)return!1;try{i(d,f)}catch(E){return E===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===s}}return mo=o,mo}var bo,Al;function Y0(){if(Al)return bo;Al=1;var e=$r(),t=X0(),r=e("RegExp.prototype.exec"),n=kr();return bo=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},bo}var wo,Tl;function J0(){if(Tl)return wo;Tl=1;var e=$r(),t=Y0(),r=t(/^\s*(?:function)?\*/),n=On()(),o=gl(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},f;return wo=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var c=i(s);return c==="[object GeneratorFunction]"}if(!o)return!1;if(typeof f>"u"){var d=u();f=d?o(d):!1}return o(s)===f},wo}var vo,Sl;function Z0(){if(Sl)return vo;Sl=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(h){h!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(g){try{var y=e.call(g);return o.test(y)}catch{return!1}},a=function(g){try{return i(g)?!1:(e.call(g),!0)}catch{return!1}},u=Object.prototype.toString,f="[object Object]",l="[object Function]",s="[object GeneratorFunction]",c="[object HTMLAllCollection]",d="[object HTML document.all class]",x="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var p=document.all;u.call(p)===u.call(document.all)&&(A=function(g){if((E||!g)&&(typeof g>"u"||typeof g=="object"))try{var y=u.call(g);return(y===c||y===d||y===x||y===f)&&g("")==null}catch{}return!1})}return vo=t?function(g){if(A(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{t(g,null,r)}catch(y){if(y!==n)return!1}return!i(g)&&a(g)}:function(g){if(A(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(m)return a(g);if(i(g))return!1;var y=u.call(g);return y!==l&&y!==s&&!/^\[object HTML/.test(y)?!1:a(g)},vo}var Eo,_l;function Q0(){if(_l)return Eo;_l=1;var e=Z0(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(f,l,s){for(var c=0,d=f.length;c<d;c++)r.call(f,c)&&(s==null?l(f[c],c,f):l.call(s,f[c],c,f))},o=function(f,l,s){for(var c=0,d=f.length;c<d;c++)s==null?l(f.charAt(c),c,f):l.call(s,f.charAt(c),c,f)},i=function(f,l,s){for(var c in f)r.call(f,c)&&(s==null?l(f[c],c,f):l.call(s,f[c],c,f))};function a(u){return t.call(u)==="[object Array]"}return Eo=function(f,l,s){if(!e(l))throw new TypeError("iterator must be a function");var c;arguments.length>=3&&(c=s),a(f)?n(f,l,c):typeof f=="string"?o(f,l,c):i(f,l,c)},Eo}var xo,Ol;function ey(){return Ol||(Ol=1,xo=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),xo}var Ao,Nl;function ty(){if(Nl)return Ao;Nl=1;var e=ey(),t=typeof globalThis>"u"?Se:globalThis;return Ao=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Ao}var To={exports:{}},So,Rl;function ry(){if(Rl)return So;Rl=1;var e=Nn(),t=Du(),r=kr(),n=xr();return So=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&d?d.configurable:!s,enumerable:f===null&&d?d.enumerable:!f,value:u,writable:l===null&&d?d.writable:!l});else if(c||!f&&!l&&!s)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},So}var _o,Il;function ny(){if(Il)return _o;Il=1;var e=Nn(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},_o=t,_o}var Oo,Pl;function iy(){if(Pl)return Oo;Pl=1;var e=wl(),t=ry(),r=ny()(),n=xr(),o=kr(),i=e("%Math.floor%");return Oo=function(u,f){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||i(f)!==f)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,c=!0;if("length"in u&&n){var d=n(u,"length");d&&!d.configurable&&(s=!1),d&&!d.writable&&(c=!1)}return(s||c||!l)&&(r?t(u,"length",f,!0,!0):t(u,"length",f)),u},Oo}var No,Fl;function oy(){if(Fl)return No;Fl=1;var e=Dr(),t=oo(),r=cl();return No=function(){return r(e,t,arguments)},No}var Cl;function sy(){return Cl||(Cl=1,function(e){var t=iy(),r=Nn(),n=lo(),o=oy();e.exports=function(a){var u=n(arguments),f=a.length-(arguments.length-1);return t(u,1+(f>0?f:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(To)),To.exports}var Ro,Bl;function Ll(){if(Bl)return Ro;Bl=1;var e=Q0(),t=ty(),r=sy(),n=$r(),o=xr(),i=n("Object.prototype.toString"),a=On()(),u=typeof globalThis>"u"?Se:globalThis,f=t(),l=n("String.prototype.slice"),s=Object.getPrototypeOf,c=n("Array.prototype.indexOf",!0)||function(A,p){for(var h=0;h<A.length;h+=1)if(A[h]===p)return h;return-1},d={__proto__:null};a&&o&&s?e(f,function(E){var A=new u[E];if(Symbol.toStringTag in A){var p=s(A),h=o(p,Symbol.toStringTag);if(!h){var g=s(p);h=o(g,Symbol.toStringTag)}d["$"+E]=r(h.get)}}):e(f,function(E){var A=new u[E],p=A.slice||A.set;p&&(d["$"+E]=r(p))});var x=function(A){var p=!1;return e(d,function(h,g){if(!p)try{"$"+h(A)===g&&(p=l(g,1))}catch{}}),p},m=function(A){var p=!1;return e(d,function(h,g){if(!p)try{h(A),p=l(g,1)}catch{}}),p};return Ro=function(A){if(!A||typeof A!="object")return!1;if(!a){var p=l(i(A),8,-1);return c(f,p)>-1?p:p!=="Object"?!1:m(A)}return o?x(A):null},Ro}var Io,Ul;function ay(){if(Ul)return Io;Ul=1;var e=Ll();return Io=function(r){return!!e(r)},Io}var jl;function uy(){return jl||(jl=1,function(e){var t=z0(),r=J0(),n=Ll(),o=ay();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",f=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),c=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(u)var x=i(Symbol.prototype.valueOf);function m(te,nt){if(typeof te!="object")return!1;try{return nt(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function E(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=E;function A(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Q(te)}e.isArrayBufferView=A;function p(te){return n(te)==="Uint8Array"}e.isUint8Array=p;function h(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=h;function g(te){return n(te)==="Uint16Array"}e.isUint16Array=g;function y(te){return n(te)==="Uint32Array"}e.isUint32Array=y;function w(te){return n(te)==="Int8Array"}e.isInt8Array=w;function T(te){return n(te)==="Int16Array"}e.isInt16Array=T;function P(te){return n(te)==="Int32Array"}e.isInt32Array=P;function I(te){return n(te)==="Float32Array"}e.isFloat32Array=I;function O(te){return n(te)==="Float64Array"}e.isFloat64Array=O;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function G(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=G;function L(te){return f(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function D(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=D;function oe(te){return f(te)==="[object Set]"}oe.working=typeof Set<"u"&&oe(new Set);function re(te){return typeof Set>"u"?!1:oe.working?oe(te):te instanceof Set}e.isSet=re;function he(te){return f(te)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function fe(te){return typeof WeakMap>"u"?!1:he.working?he(te):te instanceof WeakMap}e.isWeakMap=fe;function ge(te){return f(te)==="[object WeakSet]"}ge.working=typeof WeakSet<"u"&&ge(new WeakSet);function ce(te){return ge(te)}e.isWeakSet=ce;function xe(te){return f(te)==="[object ArrayBuffer]"}xe.working=typeof ArrayBuffer<"u"&&xe(new ArrayBuffer);function be(te){return typeof ArrayBuffer>"u"?!1:xe.working?xe(te):te instanceof ArrayBuffer}e.isArrayBuffer=be;function K(te){return f(te)==="[object DataView]"}K.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&K(new DataView(new ArrayBuffer(1),0,1));function Q(te){return typeof DataView>"u"?!1:K.working?K(te):te instanceof DataView}e.isDataView=Q;var ee=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ue(te){return f(te)==="[object SharedArrayBuffer]"}function V(te){return typeof ee>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new ee)),ue.working?ue(te):te instanceof ee)}e.isSharedArrayBuffer=V;function R(te){return f(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return f(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return f(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return f(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return f(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function Y(te){return m(te,s)}e.isStringObject=Y;function se(te){return m(te,c)}e.isBooleanObject=se;function pe(te){return a&&m(te,d)}e.isBigIntObject=pe;function le(te){return u&&m(te,x)}e.isSymbolObject=le;function de(te){return U(te)||Y(te)||se(te)||pe(te)||le(te)}e.isBoxedPrimitive=de;function Le(te){return typeof Uint8Array<"u"&&(be(te)||V(te))}e.isAnyArrayBuffer=Le,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})}(Ri)),Ri}var Po,Ml;function ly(){return Ml||(Ml=1,Po=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Po}var kl;function Dl(){return kl||(kl=1,function(e){var t=Object.getOwnPropertyDescriptors||function(Q){for(var ee=Object.keys(Q),ue={},V=0;V<ee.length;V++)ue[ee[V]]=Object.getOwnPropertyDescriptor(Q,ee[V]);return ue},r=/%[sdj%]/g;e.format=function(K){if(!w(K)){for(var Q=[],ee=0;ee<arguments.length;ee++)Q.push(a(arguments[ee]));return Q.join(" ")}for(var ee=1,ue=arguments,V=ue.length,R=String(K).replace(r,function(q){if(q==="%%")return"%";if(ee>=V)return q;switch(q){case"%s":return String(ue[ee++]);case"%d":return Number(ue[ee++]);case"%j":try{return JSON.stringify(ue[ee++])}catch{return"[Circular]"}default:return q}}),N=ue[ee];ee<V;N=ue[++ee])h(N)||!O(N)?R+=" "+N:R+=" "+a(N);return R},e.deprecate=function(K,Q){if(typeof me<"u"&&me.noDeprecation===!0)return K;if(typeof me>"u")return function(){return e.deprecate(K,Q).apply(this,arguments)};var ee=!1;function ue(){if(!ee){if(me.throwDeprecation)throw new Error(Q);me.traceDeprecation?console.trace(Q):console.error(Q),ee=!0}return K.apply(this,arguments)}return ue};var n={},o=/^$/;if(me.env.NODE_DEBUG){var i=me.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(K){if(K=K.toUpperCase(),!n[K])if(o.test(K)){var Q=me.pid;n[K]=function(){var ee=e.format.apply(e,arguments);console.error("%s %d: %s",K,Q,ee)}}else n[K]=function(){};return n[K]};function a(K,Q){var ee={seen:[],stylize:f};return arguments.length>=3&&(ee.depth=arguments[2]),arguments.length>=4&&(ee.colors=arguments[3]),p(Q)?ee.showHidden=Q:Q&&e._extend(ee,Q),P(ee.showHidden)&&(ee.showHidden=!1),P(ee.depth)&&(ee.depth=2),P(ee.colors)&&(ee.colors=!1),P(ee.customInspect)&&(ee.customInspect=!0),ee.colors&&(ee.stylize=u),s(ee,K,ee.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(K,Q){var ee=a.styles[Q];return ee?"\x1B["+a.colors[ee][0]+"m"+K+"\x1B["+a.colors[ee][1]+"m":K}function f(K,Q){return K}function l(K){var Q={};return K.forEach(function(ee,ue){Q[ee]=!0}),Q}function s(K,Q,ee){if(K.customInspect&&Q&&L(Q.inspect)&&Q.inspect!==e.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var ue=Q.inspect(ee,K);return w(ue)||(ue=s(K,ue,ee)),ue}var V=c(K,Q);if(V)return V;var R=Object.keys(Q),N=l(R);if(K.showHidden&&(R=Object.getOwnPropertyNames(Q)),G(Q)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return d(Q);if(R.length===0){if(L(Q)){var q=Q.name?": "+Q.name:"";return K.stylize("[Function"+q+"]","special")}if(I(Q))return K.stylize(RegExp.prototype.toString.call(Q),"regexp");if(j(Q))return K.stylize(Date.prototype.toString.call(Q),"date");if(G(Q))return d(Q)}var $="",B=!1,U=["{","}"];if(A(Q)&&(B=!0,U=["[","]"]),L(Q)){var Y=Q.name?": "+Q.name:"";$=" [Function"+Y+"]"}if(I(Q)&&($=" "+RegExp.prototype.toString.call(Q)),j(Q)&&($=" "+Date.prototype.toUTCString.call(Q)),G(Q)&&($=" "+d(Q)),R.length===0&&(!B||Q.length==0))return U[0]+$+U[1];if(ee<0)return I(Q)?K.stylize(RegExp.prototype.toString.call(Q),"regexp"):K.stylize("[Object]","special");K.seen.push(Q);var se;return B?se=x(K,Q,ee,N,R):se=R.map(function(pe){return m(K,Q,ee,N,pe,B)}),K.seen.pop(),E(se,$,U)}function c(K,Q){if(P(Q))return K.stylize("undefined","undefined");if(w(Q)){var ee="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(ee,"string")}if(y(Q))return K.stylize(""+Q,"number");if(p(Q))return K.stylize(""+Q,"boolean");if(h(Q))return K.stylize("null","null")}function d(K){return"["+Error.prototype.toString.call(K)+"]"}function x(K,Q,ee,ue,V){for(var R=[],N=0,q=Q.length;N<q;++N)ge(Q,String(N))?R.push(m(K,Q,ee,ue,String(N),!0)):R.push("");return V.forEach(function($){$.match(/^\d+$/)||R.push(m(K,Q,ee,ue,$,!0))}),R}function m(K,Q,ee,ue,V,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Q,V)||{value:Q[V]},$.get?$.set?q=K.stylize("[Getter/Setter]","special"):q=K.stylize("[Getter]","special"):$.set&&(q=K.stylize("[Setter]","special")),ge(ue,V)||(N="["+V+"]"),q||(K.seen.indexOf($.value)<0?(h(ee)?q=s(K,$.value,null):q=s(K,$.value,ee-1),q.indexOf(`
17
- `)>-1&&(R?q=q.split(`
18
- `).map(function(B){return" "+B}).join(`
19
- `).slice(2):q=`
20
- `+q.split(`
21
- `).map(function(B){return" "+B}).join(`
22
- `))):q=K.stylize("[Circular]","special")),P(N)){if(R&&V.match(/^\d+$/))return q;N=JSON.stringify(""+V),N.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.slice(1,-1),N=K.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=K.stylize(N,"string"))}return N+": "+q}function E(K,Q,ee){var ue=K.reduce(function(V,R){return R.indexOf(`
23
- `)>=0,V+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?ee[0]+(Q===""?"":Q+`
24
- `)+" "+K.join(`,
25
- `)+" "+ee[1]:ee[0]+Q+" "+K.join(", ")+" "+ee[1]}e.types=uy();function A(K){return Array.isArray(K)}e.isArray=A;function p(K){return typeof K=="boolean"}e.isBoolean=p;function h(K){return K===null}e.isNull=h;function g(K){return K==null}e.isNullOrUndefined=g;function y(K){return typeof K=="number"}e.isNumber=y;function w(K){return typeof K=="string"}e.isString=w;function T(K){return typeof K=="symbol"}e.isSymbol=T;function P(K){return K===void 0}e.isUndefined=P;function I(K){return O(K)&&oe(K)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function O(K){return typeof K=="object"&&K!==null}e.isObject=O;function j(K){return O(K)&&oe(K)==="[object Date]"}e.isDate=j,e.types.isDate=j;function G(K){return O(K)&&(oe(K)==="[object Error]"||K instanceof Error)}e.isError=G,e.types.isNativeError=G;function L(K){return typeof K=="function"}e.isFunction=L;function D(K){return K===null||typeof K=="boolean"||typeof K=="number"||typeof K=="string"||typeof K=="symbol"||typeof K>"u"}e.isPrimitive=D,e.isBuffer=ly();function oe(K){return Object.prototype.toString.call(K)}function re(K){return K<10?"0"+K.toString(10):K.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fe(){var K=new Date,Q=[re(K.getHours()),re(K.getMinutes()),re(K.getSeconds())].join(":");return[K.getDate(),he[K.getMonth()],Q].join(" ")}e.log=function(){console.log("%s - %s",fe(),e.format.apply(e,arguments))},e.inherits=ar(),e._extend=function(K,Q){if(!Q||!O(Q))return K;for(var ee=Object.keys(Q),ue=ee.length;ue--;)K[ee[ue]]=Q[ee[ue]];return K};function ge(K,Q){return Object.prototype.hasOwnProperty.call(K,Q)}var ce=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');if(ce&&Q[ce]){var ee=Q[ce];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,ce,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ue,V,R=new Promise(function($,B){ue=$,V=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?V($):ue(B)});try{Q.apply(this,N)}catch($){V($)}return R}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),ce&&Object.defineProperty(ee,ce,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,t(Q))},e.promisify.custom=ce;function xe(K,Q){if(!K){var ee=new Error("Promise was rejected with a falsy value");ee.reason=K,K=ee}return Q(K)}function be(K){if(typeof K!="function")throw new TypeError('The "original" argument must be of type Function');function Q(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee.push(arguments[ue]);var V=ee.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return V.apply(R,arguments)};K.apply(this,ee).then(function(q){me.nextTick(N.bind(null,null,q))},function(q){me.nextTick(xe.bind(null,q,N))})}return Object.setPrototypeOf(Q,Object.getPrototypeOf(K)),Object.defineProperties(Q,t(K)),Q}e.callbackify=be}(Ni)),Ni}var Fo,$l;function fy(){if($l)return Fo;$l=1;function e(m,E){var A=Object.keys(m);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(m);E&&(p=p.filter(function(h){return Object.getOwnPropertyDescriptor(m,h).enumerable})),A.push.apply(A,p)}return A}function t(m){for(var E=1;E<arguments.length;E++){var A=arguments[E]!=null?arguments[E]:{};E%2?e(Object(A),!0).forEach(function(p){r(m,p,A[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(A)):e(Object(A)).forEach(function(p){Object.defineProperty(m,p,Object.getOwnPropertyDescriptor(A,p))})}return m}function r(m,E,A){return E=a(E),E in m?Object.defineProperty(m,E,{value:A,enumerable:!0,configurable:!0,writable:!0}):m[E]=A,m}function n(m,E){if(!(m instanceof E))throw new TypeError("Cannot call a class as a function")}function o(m,E){for(var A=0;A<E.length;A++){var p=E[A];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,a(p.key),p)}}function i(m,E,A){return E&&o(m.prototype,E),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var E=u(m,"string");return typeof E=="symbol"?E:String(E)}function u(m,E){if(typeof m!="object"||m===null)return m;var A=m[Symbol.toPrimitive];if(A!==void 0){var p=A.call(m,E);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var f=_n(),l=f.Buffer,s=Dl(),c=s.inspect,d=c&&c.custom||"inspect";function x(m,E,A){l.prototype.copy.call(m,E,A)}return Fo=function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(A){var p={data:A,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(A){var p={data:A,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var p=this.head,h=""+p.data;p=p.next;)h+=A+p.data;return h}},{key:"concat",value:function(A){if(this.length===0)return l.alloc(0);for(var p=l.allocUnsafe(A>>>0),h=this.head,g=0;h;)x(h.data,p,g),g+=h.data.length,h=h.next;return p}},{key:"consume",value:function(A,p){var h;return A<this.head.data.length?(h=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?h=this.shift():h=p?this._getString(A):this._getBuffer(A),h}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var p=this.head,h=1,g=p.data;for(A-=g.length;p=p.next;){var y=p.data,w=A>y.length?y.length:A;if(w===y.length?g+=y:g+=y.slice(0,A),A-=w,A===0){w===y.length?(++h,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=y.slice(w));break}++h}return this.length-=h,g}},{key:"_getBuffer",value:function(A){var p=l.allocUnsafe(A),h=this.head,g=1;for(h.data.copy(p),A-=h.data.length;h=h.next;){var y=h.data,w=A>y.length?y.length:A;if(y.copy(p,p.length-A,0,w),A-=w,A===0){w===y.length?(++g,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=y.slice(w));break}++g}return this.length-=g,p}},{key:d,value:function(A,p){return c(this,t(t({},p),{},{depth:0,customInspect:!1}))}}]),m}(),Fo}var Co,ql;function Hl(){if(ql)return Co;ql=1;function e(a,u){var f=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(u?u(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(o,this,a)):me.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(c){!u&&c?f._writableState?f._writableState.errorEmitted?me.nextTick(r,f):(f._writableState.errorEmitted=!0,me.nextTick(t,f,c)):me.nextTick(t,f,c):u?(me.nextTick(r,f),u(c)):me.nextTick(r,f)}),this)}function t(a,u){o(a,u),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,u){a.emit("error",u)}function i(a,u){var f=a._readableState,l=a._writableState;f&&f.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return Co={destroy:e,undestroy:n,errorOrDestroy:i},Co}var Bo={},Vl;function Ar(){if(Vl)return Bo;Vl=1;function e(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,u.__proto__=f}var t={};function r(u,f,l){l||(l=Error);function s(d,x,m){return typeof f=="string"?f:f(d,x,m)}var c=function(d){e(x,d);function x(m,E,A){return d.call(this,s(m,E,A))||this}return x}(l);c.prototype.name=l.name,c.prototype.code=u,t[u]=c}function n(u,f){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(f," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(f," ").concat(u[0]," or ").concat(u[1]):"of ".concat(f," ").concat(u[0])}else return"of ".concat(f," ").concat(String(u))}function o(u,f,l){return u.substr(0,f.length)===f}function i(u,f,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-f.length,l)===f}function a(u,f,l){return typeof l!="number"&&(l=0),l+f.length>u.length?!1:u.indexOf(f,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,f){return'The value "'+f+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,f,l){var s;typeof f=="string"&&o(f,"not ")?(s="must not be",f=f.replace(/^not /,"")):s="must be";var c;if(i(u," argument"))c="The ".concat(u," ").concat(s," ").concat(n(f,"type"));else{var d=a(u,".")?"property":"argument";c='The "'.concat(u,'" ').concat(d," ").concat(s," ").concat(n(f,"type"))}return c+=". Received type ".concat(typeof l),c},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Bo.codes=t,Bo}var Lo,Wl;function Gl(){if(Wl)return Lo;Wl=1;var e=Ar().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var u=t(o,a,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var f=a?i:"highWaterMark";throw new e(f,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Lo={getHighWaterMark:r},Lo}var Uo,Kl;function cy(){if(Kl)return Uo;Kl=1,Uo=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!Se.localStorage)return!1}catch{return!1}var n=Se.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Uo}var jo,zl;function Xl(){if(zl)return jo;zl=1,jo=I;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ue(R,V)}}var t;I.WritableState=T;var r={deprecate:cy()},n=Nu(),o=_n().Buffer,i=(typeof Se<"u"?Se:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var f=Hl(),l=Gl(),s=l.getHighWaterMark,c=Ar().codes,d=c.ERR_INVALID_ARG_TYPE,x=c.ERR_METHOD_NOT_IMPLEMENTED,m=c.ERR_MULTIPLE_CALLBACK,E=c.ERR_STREAM_CANNOT_PIPE,A=c.ERR_STREAM_DESTROYED,p=c.ERR_STREAM_NULL_VALUES,h=c.ERR_STREAM_WRITE_AFTER_END,g=c.ERR_UNKNOWN_ENCODING,y=f.errorOrDestroy;ar()(I,n);function w(){}function T(V,R,N){t=t||Tr(),V=V||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!V.objectMode,N&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=V.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){he(R,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}T.prototype.getBuffer=function(){for(var R=this.bufferedRequest,N=[];R;)N.push(R),R=R.next;return N},function(){try{Object.defineProperty(T.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(R){return P.call(this,R)?!0:this!==I?!1:R&&R._writableState instanceof T}})):P=function(R){return R instanceof this};function I(V){t=t||Tr();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(V);this._writableState=new T(V,this,R),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}I.prototype.pipe=function(){y(this,new E)};function O(V,R){var N=new h;y(V,N),me.nextTick(R,N)}function j(V,R,N,q){var $;return N===null?$=new p:typeof N!="string"&&!R.objectMode&&($=new d("chunk",["string","Buffer"],N)),$?(y(V,$),me.nextTick(q,$),!1):!0}I.prototype.write=function(V,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(N=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof N!="function"&&(N=w),q.ending?O(this,N):(B||j(this,q,V,N))&&(q.pendingcb++,$=L(this,q,B,V,R,N)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&ce(this,V))},I.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new g(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(V,R,N){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,N)),R}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,N,q,$,B){if(!N){var U=G(R,q,$);q!==U&&(N=!0,$="buffer",q=U)}var Y=R.objectMode?1:q.length;R.length+=Y;var se=R.length<R.highWaterMark;if(se||(R.needDrain=!0),R.writing||R.corked){var pe=R.lastBufferedRequest;R.lastBufferedRequest={chunk:q,encoding:$,isBuf:N,callback:B,next:null},pe?pe.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else D(V,R,!1,Y,q,$,B);return se}function D(V,R,N,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new A("write")):N?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function oe(V,R,N,q,$){--R.pendingcb,N?(me.nextTick($,q),me.nextTick(Q,V,R),V._writableState.errorEmitted=!0,y(V,q)):($(q),V._writableState.errorEmitted=!0,y(V,q),Q(V,R))}function re(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function he(V,R){var N=V._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(re(N),R)oe(V,N,q,R,$);else{var B=xe(N)||V.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&ce(V,N),q?me.nextTick(fe,V,N,B,$):fe(V,N,B,$)}}function fe(V,R,N,q){N||ge(V,R),R.pendingcb--,q(),Q(V,R)}function ge(V,R){R.length===0&&R.needDrain&&(R.needDrain=!1,V.emit("drain"))}function ce(V,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(V._writev&&N&&N.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=N;for(var U=0,Y=!0;N;)$[U]=N,N.isBuf||(Y=!1),N=N.next,U+=1;$.allBuffers=Y,D(V,R,!0,R.length,$,"",B.finish),R.pendingcb++,R.lastBufferedRequest=null,B.next?(R.corkedRequestsFree=B.next,B.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;N;){var se=N.chunk,pe=N.encoding,le=N.callback,de=R.objectMode?1:se.length;if(D(V,R,!1,de,se,pe,le),N=N.next,R.bufferedRequestCount--,R.writing)break}N===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=N,R.bufferProcessing=!1}I.prototype._write=function(V,R,N){N(new x("_write()"))},I.prototype._writev=null,I.prototype.end=function(V,R,N){var q=this._writableState;return typeof V=="function"?(N=V,V=null,R=null):typeof R=="function"&&(N=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||ee(this,q,N),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function xe(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function be(V,R){V._final(function(N){R.pendingcb--,N&&y(V,N),R.prefinished=!0,V.emit("prefinish"),Q(V,R)})}function K(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,me.nextTick(be,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Q(V,R){var N=xe(R);if(N&&(K(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var q=V._readableState;(!q||q.autoDestroy&&q.endEmitted)&&V.destroy()}return N}function ee(V,R,N){R.ending=!0,Q(V,R),N&&(R.finished?me.nextTick(N):V.once("finish",N)),R.ended=!0,V.writable=!1}function ue(V,R,N){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=V}return Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),I.prototype.destroy=f.destroy,I.prototype._undestroy=f.undestroy,I.prototype._destroy=function(V,R){R(V)},jo}var Mo,Yl;function Tr(){if(Yl)return Mo;Yl=1;var e=Object.keys||function(l){var s=[];for(var c in l)s.push(c);return s};Mo=a;var t=nf(),r=Xl();ar()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||me.nextTick(f,this)}function f(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),Mo}var ko={},Rn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Jl;function hy(){return Jl||(Jl=1,function(e,t){var r=_n(),n=r.Buffer;function o(a,u){for(var f in a)u[f]=a[f]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,f){return n(a,u,f)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,f){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,f)},i.alloc=function(a,u,f){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof f=="string"?l.fill(u,f):l.fill(u):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(Rn,Rn.exports)),Rn.exports}var Zl;function Do(){if(Zl)return ko;Zl=1;var e=hy().Buffer,t=e.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 r(p){if(!p)return"utf8";for(var h;;)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(h)return;p=(""+p).toLowerCase(),h=!0}}function n(p){var h=r(p);if(typeof h!="string"&&(e.isEncoding===t||!t(p)))throw new Error("Unknown encoding: "+p);return h||p}ko.StringDecoder=o;function o(p){this.encoding=n(p);var h;switch(this.encoding){case"utf16le":this.text=c,this.end=d,h=4;break;case"utf8":this.fillLast=f,h=4;break;case"base64":this.text=x,this.end=m,h=3;break;default:this.write=E,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(h)}o.prototype.write=function(p){if(p.length===0)return"";var h,g;if(this.lastNeed){if(h=this.fillLast(p),h===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g<p.length?h?h+this.text(p,g):this.text(p,g):h||""},o.prototype.end=s,o.prototype.text=l,o.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 i(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,h,g){var y=h.length-1;if(y<g)return 0;var w=i(h[y]);return w>=0?(w>0&&(p.lastNeed=w-1),w):--y<g||w===-2?0:(w=i(h[y]),w>=0?(w>0&&(p.lastNeed=w-2),w):--y<g||w===-2?0:(w=i(h[y]),w>=0?(w>0&&(w===2?w=0:p.lastNeed=w-3),w):0))}function u(p,h,g){if((h[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&h.length>1){if((h[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&h.length>2&&(h[2]&192)!==128)return p.lastNeed=2,"�"}}function f(p){var h=this.lastTotal-this.lastNeed,g=u(this,p);if(g!==void 0)return g;if(this.lastNeed<=p.length)return p.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,h,0,p.length),this.lastNeed-=p.length}function l(p,h){var g=a(this,p,h);if(!this.lastNeed)return p.toString("utf8",h);this.lastTotal=g;var y=p.length-(g-this.lastNeed);return p.copy(this.lastChar,0,y),p.toString("utf8",h,y)}function s(p){var h=p&&p.length?this.write(p):"";return this.lastNeed?h+"�":h}function c(p,h){if((p.length-h)%2===0){var g=p.toString("utf16le",h);if(g){var y=g.charCodeAt(g.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",h,p.length-1)}function d(p){var h=p&&p.length?this.write(p):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,g)}return h}function x(p,h){var g=(p.length-h)%3;return g===0?p.toString("base64",h):(this.lastNeed=3-g,this.lastTotal=3,g===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",h,p.length-g))}function m(p){var h=p&&p.length?this.write(p):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function E(p){return p.toString(this.encoding)}function A(p){return p&&p.length?this.write(p):""}return ko}var $o,Ql;function qo(){if(Ql)return $o;Ql=1;var e=Ar().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];i.apply(this,f)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,u){if(typeof a=="function")return o(i,null,a);a||(a={}),u=t(u||r);var f=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||d()},c=i._writableState&&i._writableState.finished,d=function(){l=!1,c=!0,f||u.call(i)},x=i._readableState&&i._readableState.endEmitted,m=function(){f=!1,x=!0,l||u.call(i)},E=function(g){u.call(i,g)},A=function(){var g;if(f&&!x)return(!i._readableState||!i._readableState.ended)&&(g=new e),u.call(i,g);if(l&&!c)return(!i._writableState||!i._writableState.ended)&&(g=new e),u.call(i,g)},p=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",A),i.req?p():i.on("request",p)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",d),a.error!==!1&&i.on("error",E),i.on("close",A),function(){i.removeListener("complete",d),i.removeListener("abort",A),i.removeListener("request",p),i.req&&i.req.removeListener("finish",d),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",d),i.removeListener("end",m),i.removeListener("error",E),i.removeListener("close",A)}}return $o=o,$o}var Ho,ef;function dy(){if(ef)return Ho;ef=1;var e;function t(g,y,w){return y=r(y),y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function r(g){var y=n(g,"string");return typeof y=="symbol"?y:String(y)}function n(g,y){if(typeof g!="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var T=w.call(g,y);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}var o=qo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),c=Symbol("stream");function d(g,y){return{value:g,done:y}}function x(g){var y=g[i];if(y!==null){var w=g[c].read();w!==null&&(g[l]=null,g[i]=null,g[a]=null,y(d(w,!1)))}}function m(g){me.nextTick(x,g)}function E(g,y){return function(w,T){g.then(function(){if(y[f]){w(d(void 0,!0));return}y[s](w,T)},T)}}var A=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((e={get stream(){return this[c]},next:function(){var y=this,w=this[u];if(w!==null)return Promise.reject(w);if(this[f])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise(function(O,j){me.nextTick(function(){y[u]?j(y[u]):O(d(void 0,!0))})});var T=this[l],P;if(T)P=new Promise(E(T,this));else{var I=this[c].read();if(I!==null)return Promise.resolve(d(I,!1));P=new Promise(this[s])}return this[l]=P,P}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var y=this;return new Promise(function(w,T){y[c].destroy(null,function(P){if(P){T(P);return}w(d(void 0,!0))})})}),e),A),h=function(y){var w,T=Object.create(p,(w={},t(w,c,{value:y,writable:!0}),t(w,i,{value:null,writable:!0}),t(w,a,{value:null,writable:!0}),t(w,u,{value:null,writable:!0}),t(w,f,{value:y._readableState.endEmitted,writable:!0}),t(w,s,{value:function(I,O){var j=T[c].read();j?(T[l]=null,T[i]=null,T[a]=null,I(d(j,!1))):(T[i]=I,T[a]=O)},writable:!0}),w));return T[l]=null,o(y,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=T[a];I!==null&&(T[l]=null,T[i]=null,T[a]=null,I(P)),T[u]=P;return}var O=T[i];O!==null&&(T[l]=null,T[i]=null,T[a]=null,O(d(void 0,!0))),T[f]=!0}),y.on("readable",m.bind(null,T)),T};return Ho=h,Ho}var Vo,tf;function py(){return tf||(tf=1,Vo=function(){throw new Error("Readable.from is not available in the browser")}),Vo}var Wo,rf;function nf(){if(rf)return Wo;rf=1,Wo=O;var e;O.ReadableState=I,Si().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Nu(),n=_n().Buffer,o=(typeof Se<"u"?Se:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return n.from(B)}function a(B){return n.isBuffer(B)||B instanceof o}var u=Dl(),f;u&&u.debuglog?f=u.debuglog("stream"):f=function(){};var l=fy(),s=Hl(),c=Gl(),d=c.getHighWaterMark,x=Ar().codes,m=x.ERR_INVALID_ARG_TYPE,E=x.ERR_STREAM_PUSH_AFTER_EOF,A=x.ERR_METHOD_NOT_IMPLEMENTED,p=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,h,g,y;ar()(O,r);var w=s.errorOrDestroy,T=["error","close","destroy","pause","resume"];function P(B,U,Y){if(typeof B.prependListener=="function")return B.prependListener(U,Y);!B._events||!B._events[U]?B.on(U,Y):Array.isArray(B._events[U])?B._events[U].unshift(Y):B._events[U]=[Y,B._events[U]]}function I(B,U,Y){e=e||Tr(),B=B||{},typeof Y!="boolean"&&(Y=U instanceof e),this.objectMode=!!B.objectMode,Y&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=d(this,B,"readableHighWaterMark",Y),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(h||(h=Do().StringDecoder),this.decoder=new h(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Tr(),!(this instanceof O))return new O(B);var U=this instanceof e;this._readableState=new I(B,this,U),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),O.prototype.destroy=s.destroy,O.prototype._undestroy=s.undestroy,O.prototype._destroy=function(B,U){U(B)},O.prototype.push=function(B,U){var Y=this._readableState,se;return Y.objectMode?se=!0:typeof B=="string"&&(U=U||Y.defaultEncoding,U!==Y.encoding&&(B=n.from(B,U),U=""),se=!0),j(this,B,U,!1,se)},O.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,Y,se,pe){f("readableAddChunk",U);var le=B._readableState;if(U===null)le.reading=!1,he(B,le);else{var de;if(pe||(de=L(le,U)),de)w(B,de);else if(le.objectMode||U&&U.length>0)if(typeof U!="string"&&!le.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),se)le.endEmitted?w(B,new p):G(B,le,U,!0);else if(le.ended)w(B,new E);else{if(le.destroyed)return!1;le.reading=!1,le.decoder&&!Y?(U=le.decoder.write(U),le.objectMode||U.length!==0?G(B,le,U,!1):ce(B,le)):G(B,le,U,!1)}else se||(le.reading=!1,ce(B,le))}return!le.ended&&(le.length<le.highWaterMark||le.length===0)}function G(B,U,Y,se){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",Y)):(U.length+=U.objectMode?1:Y.length,se?U.buffer.unshift(Y):U.buffer.push(Y),U.needReadable&&fe(B)),ce(B,U)}function L(B,U){var Y;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(Y=new m("chunk",["string","Buffer","Uint8Array"],U)),Y}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(B){h||(h=Do().StringDecoder);var U=new h(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var Y=this._readableState.buffer.head,se="";Y!==null;)se+=U.write(Y.data),Y=Y.next;return this._readableState.buffer.clear(),se!==""&&this._readableState.buffer.push(se),this._readableState.length=se.length,this};var D=1073741824;function oe(B){return B>=D?B=D:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function re(B,U){return B<=0||U.length===0&&U.ended?0:U.objectMode?1:B!==B?U.flowing&&U.length?U.buffer.head.data.length:U.length:(B>U.highWaterMark&&(U.highWaterMark=oe(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}O.prototype.read=function(B){f("read",B),B=parseInt(B,10);var U=this._readableState,Y=B;if(B!==0&&(U.emittedReadable=!1),B===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return f("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):fe(this),null;if(B=re(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var se=U.needReadable;f("need readable",se),(U.length===0||U.length-B<U.highWaterMark)&&(se=!0,f("length less than watermark",se)),U.ended||U.reading?(se=!1,f("reading or ended",se)):se&&(f("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(B=re(Y,U)));var pe;return B>0?pe=R(B,U):pe=null,pe===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Y!==B&&U.ended&&N(this)),pe!==null&&this.emit("data",pe),pe};function he(B,U){if(f("onEofChunk"),!U.ended){if(U.decoder){var Y=U.decoder.end();Y&&Y.length&&(U.buffer.push(Y),U.length+=U.objectMode?1:Y.length)}U.ended=!0,U.sync?fe(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ge(B)))}}function fe(B){var U=B._readableState;f("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(f("emitReadable",U.flowing),U.emittedReadable=!0,me.nextTick(ge,B))}function ge(B){var U=B._readableState;f("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(B.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,V(B)}function ce(B,U){U.readingMore||(U.readingMore=!0,me.nextTick(xe,B,U))}function xe(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var Y=U.length;if(f("maybeReadMore read 0"),B.read(0),Y===U.length)break}U.readingMore=!1}O.prototype._read=function(B){w(this,new A("_read()"))},O.prototype.pipe=function(B,U){var Y=this,se=this._readableState;switch(se.pipesCount){case 0:se.pipes=B;break;case 1:se.pipes=[se.pipes,B];break;default:se.pipes.push(B);break}se.pipesCount+=1,f("pipe count=%d opts=%j",se.pipesCount,U);var pe=(!U||U.end!==!1)&&B!==me.stdout&&B!==me.stderr,le=pe?Le:Ot;se.endEmitted?me.nextTick(le):Y.once("end",le),B.on("unpipe",de);function de(Rt,ot){f("onunpipe"),Rt===Y&&ot&&ot.hasUnpiped===!1&&(ot.hasUnpiped=!0,Ze())}function Le(){f("onend"),B.end()}var te=be(Y);B.on("drain",te);var nt=!1;function Ze(){f("cleanup"),B.removeListener("close",ft),B.removeListener("finish",at),B.removeListener("drain",te),B.removeListener("error",Ue),B.removeListener("unpipe",de),Y.removeListener("end",Le),Y.removeListener("end",Ot),Y.removeListener("data",Ne),nt=!0,se.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",Ne);function Ne(Rt){f("ondata");var ot=B.write(Rt);f("dest.write",ot),ot===!1&&((se.pipesCount===1&&se.pipes===B||se.pipesCount>1&&$(se.pipes,B)!==-1)&&!nt&&(f("false write response, pause",se.awaitDrain),se.awaitDrain++),Y.pause())}function Ue(Rt){f("onerror",Rt),Ot(),B.removeListener("error",Ue),t(B,"error")===0&&w(B,Rt)}P(B,"error",Ue);function ft(){B.removeListener("finish",at),Ot()}B.once("close",ft);function at(){f("onfinish"),B.removeListener("close",ft),Ot()}B.once("finish",at);function Ot(){f("unpipe"),Y.unpipe(B)}return B.emit("pipe",Y),se.flowing||(f("pipe resume"),Y.resume()),B};function be(B){return function(){var Y=B._readableState;f("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&t(B,"data")&&(Y.flowing=!0,V(B))}}O.prototype.unpipe=function(B){var U=this._readableState,Y={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return B&&B!==U.pipes?this:(B||(B=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,B&&B.emit("unpipe",this,Y),this);if(!B){var se=U.pipes,pe=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var le=0;le<pe;le++)se[le].emit("unpipe",this,{hasUnpiped:!1});return this}var de=$(U.pipes,B);return de===-1?this:(U.pipes.splice(de,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,Y),this)},O.prototype.on=function(B,U){var Y=r.prototype.on.call(this,B,U),se=this._readableState;return B==="data"?(se.readableListening=this.listenerCount("readable")>0,se.flowing!==!1&&this.resume()):B==="readable"&&!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.flowing=!1,se.emittedReadable=!1,f("on readable",se.length,se.reading),se.length?fe(this):se.reading||me.nextTick(Q,this)),Y},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(B,U){var Y=r.prototype.removeListener.call(this,B,U);return B==="readable"&&me.nextTick(K,this),Y},O.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&me.nextTick(K,this),U};function K(B){var U=B._readableState;U.readableListening=B.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Q(B){f("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(f("resume"),B.flowing=!B.readableListening,ee(this,B)),B.paused=!1,this};function ee(B,U){U.resumeScheduled||(U.resumeScheduled=!0,me.nextTick(ue,B,U))}function ue(B,U){f("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(B){var U=B._readableState;for(f("flow",U.flowing);U.flowing&&B.read()!==null;);}O.prototype.wrap=function(B){var U=this,Y=this._readableState,se=!1;B.on("end",function(){if(f("wrapped end"),Y.decoder&&!Y.ended){var de=Y.decoder.end();de&&de.length&&U.push(de)}U.push(null)}),B.on("data",function(de){if(f("wrapped data"),Y.decoder&&(de=Y.decoder.write(de)),!(Y.objectMode&&de==null)&&!(!Y.objectMode&&(!de||!de.length))){var Le=U.push(de);Le||(se=!0,B.pause())}});for(var pe in B)this[pe]===void 0&&typeof B[pe]=="function"&&(this[pe]=function(Le){return function(){return B[Le].apply(B,arguments)}}(pe));for(var le=0;le<T.length;le++)B.on(T[le],this.emit.bind(this,T[le]));return this._read=function(de){f("wrapped _read",de),se&&(se=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=dy()),g(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),O._fromList=R,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function R(B,U){if(U.length===0)return null;var Y;return U.objectMode?Y=U.buffer.shift():!B||B>=U.length?(U.decoder?Y=U.buffer.join(""):U.buffer.length===1?Y=U.buffer.first():Y=U.buffer.concat(U.length),U.buffer.clear()):Y=U.buffer.consume(B,U.decoder),Y}function N(B){var U=B._readableState;f("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,me.nextTick(q,U,B))}function q(B,U){if(f("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,U.readable=!1,U.emit("end"),B.autoDestroy)){var Y=U._writableState;(!Y||Y.autoDestroy&&Y.finished)&&U.destroy()}}typeof Symbol=="function"&&(O.from=function(B,U){return y===void 0&&(y=py()),y(O,B,U)});function $(B,U){for(var Y=0,se=B.length;Y<se;Y++)if(B[Y]===U)return Y;return-1}return Wo}var Go,of;function sf(){if(of)return Go;of=1,Go=u;var e=Ar().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Tr();ar()(u,i);function a(s,c){var d=this._transformState;d.transforming=!1;var x=d.writecb;if(x===null)return this.emit("error",new r);d.writechunk=null,d.writecb=null,c!=null&&this.push(c),x(s);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(s){if(!(this instanceof u))return new u(s);i.call(this,s),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",f)}function f(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(c,d){l(s,c,d)}):l(this,null,null)}u.prototype.push=function(s,c){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,c)},u.prototype._transform=function(s,c,d){d(new t("_transform()"))},u.prototype._write=function(s,c,d){var x=this._transformState;if(x.writecb=d,x.writechunk=s,x.writeencoding=c,!x.transforming){var m=this._readableState;(x.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var c=this._transformState;c.writechunk!==null&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},u.prototype._destroy=function(s,c){i.prototype._destroy.call(this,s,function(d){c(d)})};function l(s,c,d){if(c)return s.emit("error",c);if(d!=null&&s.push(d),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return Go}var Ko,af;function gy(){if(af)return Ko;af=1,Ko=t;var e=sf();ar()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},Ko}var zo,uf;function yy(){if(uf)return zo;uf=1;var e;function t(d){var x=!1;return function(){x||(x=!0,d.apply(void 0,arguments))}}var r=Ar().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(d){if(d)throw d}function a(d){return d.setHeader&&typeof d.abort=="function"}function u(d,x,m,E){E=t(E);var A=!1;d.on("close",function(){A=!0}),e===void 0&&(e=qo()),e(d,{readable:x,writable:m},function(h){if(h)return E(h);A=!0,E()});var p=!1;return function(h){if(!A&&!p){if(p=!0,a(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();E(h||new o("pipe"))}}}function f(d){d()}function l(d,x){return d.pipe(x)}function s(d){return!d.length||typeof d[d.length-1]!="function"?i:d.pop()}function c(){for(var d=arguments.length,x=new Array(d),m=0;m<d;m++)x[m]=arguments[m];var E=s(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new n("streams");var A,p=x.map(function(h,g){var y=g<x.length-1,w=g>0;return u(h,y,w,function(T){A||(A=T),T&&p.forEach(f),!y&&(p.forEach(f),E(A))})});return x.reduce(l)}return zo=c,zo}var Xo,lf;function my(){if(lf)return Xo;lf=1,Xo=r;var e=Si().EventEmitter,t=ar();t(r,e),r.Readable=nf(),r.Writable=Xl(),r.Duplex=Tr(),r.Transform=sf(),r.PassThrough=gy(),r.finished=qo(),r.pipeline=yy(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(x){n.writable&&n.write(x)===!1&&i.pause&&i.pause()}i.on("data",a);function u(){i.readable&&i.resume&&i.resume()}n.on("drain",u),!n._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",s));var f=!1;function l(){f||(f=!0,n.end())}function s(){f||(f=!0,typeof n.destroy=="function"&&n.destroy())}function c(x){if(d(),e.listenerCount(this,"error")===0)throw x}i.on("error",c),n.on("error",c);function d(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",c),n.removeListener("error",c),i.removeListener("end",d),i.removeListener("close",d),n.removeListener("close",d)}return i.on("end",d),i.on("close",d),n.on("close",d),n.emit("pipe",i),n},Xo}var ff;function by(){return ff||(ff=1,function(e){(function(t){t.parser=function(R,N){return new n(R,N)},t.SAXParser=n,t.SAXStream=s,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,N){if(!(this instanceof n))return new n(R,N);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=N||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!R,q.noscript=!!(R||q.opt.noscript),q.state=O.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(E)),q.opt.unquotedAttributeValues===void 0&&(q.opt.unquotedAttributeValues=!R),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),G(q,"onready")}Object.create||(Object.create=function(R){function N(){}N.prototype=R;var q=new N;return q}),Object.keys||(Object.keys=function(R){var N=[];for(var q in R)R.hasOwnProperty(q)&&N.push(q);return N});function o(R){for(var N=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>N)switch(r[$]){case"textNode":D(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:re(R,"Max buffer length exceeded: "+r[$])}q=Math.max(q,U)}var Y=t.MAX_BUFFER_LENGTH-q;R.bufferCheckPosition=Y+R.position}function i(R){for(var N=0,q=r.length;N<q;N++)R[r[N]]=""}function a(R){D(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){he(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=my().Stream}catch{u=function(){}}u||(u=function(){});var f=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,N){return new s(R,N)}function s(R,N){if(!(this instanceof s))return new s(R,N);u.apply(this),this._parser=new n(R,N),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function($){q.emit("error",$),q._parser.error=null},this._decoder=null,f.forEach(function($){Object.defineProperty(q,"on"+$,{get:function(){return q._parser["on"+$]},set:function(B){if(!B)return q.removeAllListeners($),q._parser["on"+$]=B,B;q.on($,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof yr=="function"&&typeof yr.isBuffer=="function"&&yr.isBuffer(R)){if(!this._decoder){var N=Do().StringDecoder;this._decoder=new N("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},s.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},s.prototype.on=function(R,N){var q=this;return!q._parser["on"+R]&&f.indexOf(R)!==-1&&(q._parser["on"+R]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,R),q.emit.apply(q,$)}),u.prototype.on.call(q,R,N)};var c="[CDATA[",d="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",E={xml:x,xmlns:m},A=/[:_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-]/,h=/[#:_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]/,g=/[#:_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 y(R){return R===" "||R===`
26
- `||R==="\r"||R===" "}function w(R){return R==='"'||R==="'"}function T(R){return R===">"||y(R)}function P(R,N){return R.test(N)}function I(R,N){return!P(R,N)}var O=0;t.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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(t.ENTITIES).forEach(function(R){var N=t.ENTITIES[R],q=typeof N=="number"?String.fromCharCode(N):N;t.ENTITIES[R]=q});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;O=t.STATE;function G(R,N,q){R[N]&&R[N](q)}function L(R,N,q){R.textNode&&D(R),G(R,N,q)}function D(R){R.textNode=oe(R.opt,R.textNode),R.textNode&&G(R,"ontext",R.textNode),R.textNode=""}function oe(R,N){return R.trim&&(N=N.trim()),R.normalize&&(N=N.replace(/\s+/g," ")),N}function re(R,N){return D(R),R.trackPosition&&(N+=`
27
- Line: `+R.line+`
28
- Column: `+R.column+`
29
- Char: `+R.c),N=new Error(N),R.error=N,G(R,"onerror",N),R}function he(R){return R.sawRoot&&!R.closedRoot&&fe(R,"Unclosed root tag"),R.state!==O.BEGIN&&R.state!==O.BEGIN_WHITESPACE&&R.state!==O.TEXT&&re(R,"Unexpected end"),D(R),R.c="",R.closed=!0,G(R,"onend"),n.call(R,R.strict,R.opt),R}function fe(R,N){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&re(R,N)}function ge(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var N=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=N.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function ce(R,N){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return N&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function xe(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var N=ce(R.attribName,!0),q=N.prefix,$=N.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==x)fe(R,"xml: prefix must be bound to "+x+`
30
- Actual: `+R.attribValue);else if($==="xmlns"&&R.attribValue!==m)fe(R,"xmlns: prefix must be bound to "+m+`
31
- Actual: `+R.attribValue);else{var B=R.tag,U=R.tags[R.tags.length-1]||R;B.ns===U.ns&&(B.ns=Object.create(U.ns)),B.ns[$]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,L(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}function be(R,N){if(R.opt.xmlns){var q=R.tag,$=ce(R.tagName);q.prefix=$.prefix,q.local=$.local,q.uri=q.ns[$.prefix]||"",q.prefix&&!q.uri&&(fe(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),q.uri=$.prefix);var B=R.tags[R.tags.length-1]||R;q.ns&&B.ns!==q.ns&&Object.keys(q.ns).forEach(function(Ne){L(R,"onopennamespace",{prefix:Ne,uri:q.ns[Ne]})});for(var U=0,Y=R.attribList.length;U<Y;U++){var se=R.attribList[U],pe=se[0],le=se[1],de=ce(pe,!0),Le=de.prefix,te=de.local,nt=Le===""?"":q.ns[Le]||"",Ze={name:pe,value:le,prefix:Le,local:te,uri:nt};Le&&Le!=="xmlns"&&!nt&&(fe(R,"Unbound namespace prefix: "+JSON.stringify(Le)),Ze.uri=Le),R.tag.attributes[pe]=Ze,L(R,"onattribute",Ze)}R.attribList.length=0}R.tag.isSelfClosing=!!N,R.sawRoot=!0,R.tags.push(R.tag),L(R,"onopentag",R.tag),N||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=O.SCRIPT:R.state=O.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}function K(R){if(!R.tagName){fe(R,"Weird empty close tag."),R.textNode+="</>",R.state=O.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=O.SCRIPT;return}L(R,"onscript",R.script),R.script=""}var N=R.tags.length,q=R.tagName;R.strict||(q=q[R.looseCase]());for(var $=q;N--;){var B=R.tags[N];if(B.name!==$)fe(R,"Unexpected close tag");else break}if(N<0){fe(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=O.TEXT;return}R.tagName=q;for(var U=R.tags.length;U-- >N;){var Y=R.tag=R.tags.pop();R.tagName=R.tag.name,L(R,"onclosetag",R.tagName);var se={};for(var pe in Y.ns)se[pe]=Y.ns[pe];var le=R.tags[R.tags.length-1]||R;R.opt.xmlns&&Y.ns!==le.ns&&Object.keys(Y.ns).forEach(function(de){var Le=Y.ns[de];L(R,"onclosenamespace",{prefix:de,uri:Le})})}N===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=O.TEXT}function Q(R){var N=R.entity,q=N.toLowerCase(),$,B="";return R.ENTITIES[N]?R.ENTITIES[N]:R.ENTITIES[q]?R.ENTITIES[q]:(N=q,N.charAt(0)==="#"&&(N.charAt(1)==="x"?(N=N.slice(2),$=parseInt(N,16),B=$.toString(16)):(N=N.slice(1),$=parseInt(N,10),B=$.toString(10))),N=N.replace(/^0+/,""),isNaN($)||B.toLowerCase()!==N?(fe(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function ee(R,N){N==="<"?(R.state=O.OPEN_WAKA,R.startTagPosition=R.position):y(N)||(fe(R,"Non-whitespace before first tag."),R.textNode=N,R.state=O.TEXT)}function ue(R,N){var q="";return N<R.length&&(q=R.charAt(N)),q}function V(R){var N=this;if(this.error)throw this.error;if(N.closed)return re(N,"Cannot write after close. Assign an onready handler.");if(R===null)return he(N);typeof R=="object"&&(R=R.toString());for(var q=0,$="";$=ue(R,q++),N.c=$,!!$;)switch(N.trackPosition&&(N.position++,$===`
32
- `?(N.line++,N.column=0):N.column++),N.state){case O.BEGIN:if(N.state=O.BEGIN_WHITESPACE,$==="\uFEFF")continue;ee(N,$);continue;case O.BEGIN_WHITESPACE:ee(N,$);continue;case O.TEXT:if(N.sawRoot&&!N.closedRoot){for(var B=q-1;$&&$!=="<"&&$!=="&";)$=ue(R,q++),$&&N.trackPosition&&(N.position++,$===`
33
- `?(N.line++,N.column=0):N.column++);N.textNode+=R.substring(B,q-1)}$==="<"&&!(N.sawRoot&&N.closedRoot&&!N.strict)?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):(!y($)&&(!N.sawRoot||N.closedRoot)&&fe(N,"Text data outside of root node."),$==="&"?N.state=O.TEXT_ENTITY:N.textNode+=$);continue;case O.SCRIPT:$==="<"?N.state=O.SCRIPT_ENDING:N.script+=$;continue;case O.SCRIPT_ENDING:$==="/"?N.state=O.CLOSE_TAG:(N.script+="<"+$,N.state=O.SCRIPT);continue;case O.OPEN_WAKA:if($==="!")N.state=O.SGML_DECL,N.sgmlDecl="";else if(!y($))if(P(A,$))N.state=O.OPEN_TAG,N.tagName=$;else if($==="/")N.state=O.CLOSE_TAG,N.tagName="";else if($==="?")N.state=O.PROC_INST,N.procInstName=N.procInstBody="";else{if(fe(N,"Unencoded <"),N.startTagPosition+1<N.position){var U=N.position-N.startTagPosition;$=new Array(U).join(" ")+$}N.textNode+="<"+$,N.state=O.TEXT}continue;case O.SGML_DECL:if(N.sgmlDecl+$==="--"){N.state=O.COMMENT,N.comment="",N.sgmlDecl="";continue}N.doctype&&N.doctype!==!0&&N.sgmlDecl?(N.state=O.DOCTYPE_DTD,N.doctype+="<!"+N.sgmlDecl+$,N.sgmlDecl=""):(N.sgmlDecl+$).toUpperCase()===c?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===d?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&fe(N,"Inappropriately located doctype declaration"),N.doctype="",N.sgmlDecl=""):$===">"?(L(N,"onsgmldeclaration",N.sgmlDecl),N.sgmlDecl="",N.state=O.TEXT):(w($)&&(N.state=O.SGML_DECL_QUOTED),N.sgmlDecl+=$);continue;case O.SGML_DECL_QUOTED:$===N.q&&(N.state=O.SGML_DECL,N.q=""),N.sgmlDecl+=$;continue;case O.DOCTYPE:$===">"?(N.state=O.TEXT,L(N,"ondoctype",N.doctype),N.doctype=!0):(N.doctype+=$,$==="["?N.state=O.DOCTYPE_DTD:w($)&&(N.state=O.DOCTYPE_QUOTED,N.q=$));continue;case O.DOCTYPE_QUOTED:N.doctype+=$,$===N.q&&(N.q="",N.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:$==="]"?(N.doctype+=$,N.state=O.DOCTYPE):$==="<"?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):w($)?(N.doctype+=$,N.state=O.DOCTYPE_DTD_QUOTED,N.q=$):N.doctype+=$;continue;case O.DOCTYPE_DTD_QUOTED:N.doctype+=$,$===N.q&&(N.state=O.DOCTYPE_DTD,N.q="");continue;case O.COMMENT:$==="-"?N.state=O.COMMENT_ENDING:N.comment+=$;continue;case O.COMMENT_ENDING:$==="-"?(N.state=O.COMMENT_ENDED,N.comment=oe(N.opt,N.comment),N.comment&&L(N,"oncomment",N.comment),N.comment=""):(N.comment+="-"+$,N.state=O.COMMENT);continue;case O.COMMENT_ENDED:$!==">"?(fe(N,"Malformed comment"),N.comment+="--"+$,N.state=O.COMMENT):N.doctype&&N.doctype!==!0?N.state=O.DOCTYPE_DTD:N.state=O.TEXT;continue;case O.CDATA:$==="]"?N.state=O.CDATA_ENDING:N.cdata+=$;continue;case O.CDATA_ENDING:$==="]"?N.state=O.CDATA_ENDING_2:(N.cdata+="]"+$,N.state=O.CDATA);continue;case O.CDATA_ENDING_2:$===">"?(N.cdata&&L(N,"oncdata",N.cdata),L(N,"onclosecdata"),N.cdata="",N.state=O.TEXT):$==="]"?N.cdata+="]":(N.cdata+="]]"+$,N.state=O.CDATA);continue;case O.PROC_INST:$==="?"?N.state=O.PROC_INST_ENDING:y($)?N.state=O.PROC_INST_BODY:N.procInstName+=$;continue;case O.PROC_INST_BODY:if(!N.procInstBody&&y($))continue;$==="?"?N.state=O.PROC_INST_ENDING:N.procInstBody+=$;continue;case O.PROC_INST_ENDING:$===">"?(L(N,"onprocessinginstruction",{name:N.procInstName,body:N.procInstBody}),N.procInstName=N.procInstBody="",N.state=O.TEXT):(N.procInstBody+="?"+$,N.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:P(p,$)?N.tagName+=$:(ge(N),$===">"?be(N):$==="/"?N.state=O.OPEN_TAG_SLASH:(y($)||fe(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(be(N,!0),K(N)):(fe(N,"Forward-slash in opening tag not followed by >"),N.state=O.ATTRIB);continue;case O.ATTRIB:if(y($))continue;$===">"?be(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(A,$)?(N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):fe(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(fe(N,"Attribute without value"),N.attribValue=N.attribName,xe(N),be(N)):y($)?N.state=O.ATTRIB_NAME_SAW_WHITE:P(p,$)?N.attribName+=$:fe(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(y($))continue;fe(N,"Attribute without value"),N.tag.attributes[N.attribName]="",N.attribValue="",L(N,"onattribute",{name:N.attribName,value:""}),N.attribName="",$===">"?be(N):P(A,$)?(N.attribName=$,N.state=O.ATTRIB_NAME):(fe(N,"Invalid attribute name"),N.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(y($))continue;w($)?(N.q=$,N.state=O.ATTRIB_VALUE_QUOTED):(N.opt.unquotedAttributeValues||re(N,"Unquoted attribute value"),N.state=O.ATTRIB_VALUE_UNQUOTED,N.attribValue=$);continue;case O.ATTRIB_VALUE_QUOTED:if($!==N.q){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_Q:N.attribValue+=$;continue}xe(N),N.q="",N.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:y($)?N.state=O.ATTRIB:$===">"?be(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(A,$)?(fe(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):fe(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!T($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}xe(N),$===">"?be(N):N.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(N.tagName)$===">"?K(N):P(p,$)?N.tagName+=$:N.script?(N.script+="</"+N.tagName,N.tagName="",N.state=O.SCRIPT):(y($)||fe(N,"Invalid tagname in closing tag"),N.state=O.CLOSE_TAG_SAW_WHITE);else{if(y($))continue;I(A,$)?N.script?(N.script+="</"+$,N.state=O.SCRIPT):fe(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(y($))continue;$===">"?K(N):fe(N,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var Y,se;switch(N.state){case O.TEXT_ENTITY:Y=O.TEXT,se="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:Y=O.ATTRIB_VALUE_QUOTED,se="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:Y=O.ATTRIB_VALUE_UNQUOTED,se="attribValue";break}if($===";"){var pe=Q(N);N.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(pe)?(N.entity="",N.state=Y,N.write(pe)):(N[se]+=pe,N.entity="",N.state=Y)}else P(N.entity.length?g:h,$)?N.entity+=$:(fe(N,"Invalid character in entity name"),N[se]+="&"+N.entity+$,N.entity="",N.state=Y);continue;default:throw new Error(N,"Unknown state: "+N.state)}return N.position>=N.bufferCheckPosition&&o(N),N}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var R=String.fromCharCode,N=Math.floor,q=function(){var $=16384,B=[],U,Y,se=-1,pe=arguments.length;if(!pe)return"";for(var le="";++se<pe;){var de=Number(arguments[se]);if(!isFinite(de)||de<0||de>1114111||N(de)!==de)throw RangeError("Invalid code point: "+de);de<=65535?B.push(de):(de-=65536,U=(de>>10)+55296,Y=de%1024+56320,B.push(U,Y)),(se+1===pe||B.length>$)&&(le+=R.apply(null,B),B.length=0)}return le};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q}()})(e)}(Ti)),Ti}var Yo,cf;function Jo(){return cf||(cf=1,Yo={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),Yo}var Zo,hf;function Qo(){if(hf)return Zo;hf=1;var e=Jo().isArray;return Zo={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},Zo}var es,df;function pf(){if(df)return es;df=1;var e=by(),t=Qo(),r=Jo().isArray,n,o;function i(p){return n=t.copyOptions(p),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function a(p){var h=Number(p);if(!isNaN(h))return h;var g=p.toLowerCase();return g==="true"?!0:g==="false"?!1:p}function u(p,h){var g;if(n.compact){if(!o[n[p+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[p+"Key"])!==-1:n.alwaysArray)&&(o[n[p+"Key"]]=[]),o[n[p+"Key"]]&&!r(o[n[p+"Key"]])&&(o[n[p+"Key"]]=[o[n[p+"Key"]]]),p+"Fn"in n&&typeof h=="string"&&(h=n[p+"Fn"](h,o)),p==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(g in h)if(h.hasOwnProperty(g))if("instructionFn"in n)h[g]=n.instructionFn(h[g],g,o);else{var y=h[g];delete h[g],h[n.instructionNameFn(g,y,o)]=y}}r(o[n[p+"Key"]])?o[n[p+"Key"]].push(h):o[n[p+"Key"]]=h}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var w={};if(w[n.typeKey]=p,p==="instruction"){for(g in h)if(h.hasOwnProperty(g))break;w[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(g,h,o):g,n.instructionHasAttributes?(w[n.attributesKey]=h[g][n.attributesKey],"instructionFn"in n&&(w[n.attributesKey]=n.instructionFn(w[n.attributesKey],g,o))):("instructionFn"in n&&(h[g]=n.instructionFn(h[g],g,o)),w[n.instructionKey]=h[g])}else p+"Fn"in n&&(h=n[p+"Fn"](h,o)),w[n[p+"Key"]]=h;n.addParent&&(w[n.parentKey]=o),o[n.elementsKey].push(w)}}function f(p){if("attributesFn"in n&&p&&(p=n.attributesFn(p,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&p){var h;for(h in p)if(p.hasOwnProperty(h)&&(n.trim&&(p[h]=p[h].trim()),n.nativeTypeAttributes&&(p[h]=a(p[h])),"attributeValueFn"in n&&(p[h]=n.attributeValueFn(p[h],h,o)),"attributeNameFn"in n)){var g=p[h];delete p[h],p[n.attributeNameFn(h,p[h],o)]=g}}return p}function l(p){var h={};if(p.body&&(p.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var g=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,y;(y=g.exec(p.body))!==null;)h[y[1]]=y[2]||y[3]||y[4];h=f(h)}if(p.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(h).length&&(o[n.declarationKey][n.attributesKey]=h),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(p.body=p.body.trim());var w={};n.instructionHasAttributes&&Object.keys(h).length?(w[p.name]={},w[p.name][n.attributesKey]=h):w[p.name]=p.body,u("instruction",w)}}function s(p,h){var g;if(typeof p=="object"&&(h=p.attributes,p=p.name),h=f(h),"elementNameFn"in n&&(p=n.elementNameFn(p,o)),n.compact){if(g={},!n.ignoreAttributes&&h&&Object.keys(h).length){g[n.attributesKey]={};var y;for(y in h)h.hasOwnProperty(y)&&(g[n.attributesKey][y]=h[y])}!(p in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(p)!==-1:n.alwaysArray)&&(o[p]=[]),o[p]&&!r(o[p])&&(o[p]=[o[p]]),r(o[p])?o[p].push(g):o[p]=g}else o[n.elementsKey]||(o[n.elementsKey]=[]),g={},g[n.typeKey]="element",g[n.nameKey]=p,!n.ignoreAttributes&&h&&Object.keys(h).length&&(g[n.attributesKey]=h),n.alwaysChildren&&(g[n.elementsKey]=[]),o[n.elementsKey].push(g);g[n.parentKey]=o,o=g}function c(p){n.ignoreText||!p.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(p=p.trim()),n.nativeType&&(p=a(p)),n.sanitize&&(p=p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",p))}function d(p){n.ignoreComment||(n.trim&&(p=p.trim()),u("comment",p))}function x(p){var h=o[n.parentKey];n.addParent||delete o[n.parentKey],o=h}function m(p){n.ignoreCdata||(n.trim&&(p=p.trim()),u("cdata",p))}function E(p){n.ignoreDoctype||(p=p.replace(/^ /,""),n.trim&&(p=p.trim()),u("doctype",p))}function A(p){p.note=p}return es=function(p,h){var g=e.parser(!0,{}),y={};if(o=y,n=i(h),g.opt={strictEntities:!0},g.onopentag=s,g.ontext=c,g.oncomment=d,g.onclosetag=x,g.onerror=A,g.oncdata=m,g.ondoctype=E,g.onprocessinginstruction=l,g.write(p).close(),y[n.elementsKey]){var w=y[n.elementsKey];delete y[n.elementsKey],y[n.elementsKey]=w,delete y.text}return y},es}var ts,gf;function wy(){if(gf)return ts;gf=1;var e=Qo(),t=pf();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return ts=function(n,o){var i,a,u,f;return i=r(o),a=t(n,i),f="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===f?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},ts}var rs,yf;function mf(){if(yf)return rs;yf=1;var e=Qo(),t=Jo().isArray,r,n;function o(g){var y=e.copyOptions(g);return e.ensureFlagExists("ignoreDeclaration",y),e.ensureFlagExists("ignoreInstruction",y),e.ensureFlagExists("ignoreAttributes",y),e.ensureFlagExists("ignoreText",y),e.ensureFlagExists("ignoreComment",y),e.ensureFlagExists("ignoreCdata",y),e.ensureFlagExists("ignoreDoctype",y),e.ensureFlagExists("compact",y),e.ensureFlagExists("indentText",y),e.ensureFlagExists("indentCdata",y),e.ensureFlagExists("indentAttributes",y),e.ensureFlagExists("indentInstruction",y),e.ensureFlagExists("fullTagEmptyElement",y),e.ensureFlagExists("noQuotesForNativeAttributes",y),e.ensureSpacesExists(y),typeof y.spaces=="number"&&(y.spaces=Array(y.spaces+1).join(" ")),e.ensureKeyExists("declaration",y),e.ensureKeyExists("instruction",y),e.ensureKeyExists("attributes",y),e.ensureKeyExists("text",y),e.ensureKeyExists("comment",y),e.ensureKeyExists("cdata",y),e.ensureKeyExists("doctype",y),e.ensureKeyExists("type",y),e.ensureKeyExists("name",y),e.ensureKeyExists("elements",y),e.checkFnExists("doctype",y),e.checkFnExists("instruction",y),e.checkFnExists("cdata",y),e.checkFnExists("comment",y),e.checkFnExists("text",y),e.checkFnExists("instructionName",y),e.checkFnExists("elementName",y),e.checkFnExists("attributeName",y),e.checkFnExists("attributeValue",y),e.checkFnExists("attributes",y),e.checkFnExists("fullTagEmptyElement",y),y}function i(g,y,w){return(!w&&g.spaces?`
34
- `:"")+Array(y+1).join(g.spaces)}function a(g,y,w){if(y.ignoreAttributes)return"";"attributesFn"in y&&(g=y.attributesFn(g,n,r));var T,P,I,O,j=[];for(T in g)g.hasOwnProperty(T)&&g[T]!==null&&g[T]!==void 0&&(O=y.noQuotesForNativeAttributes&&typeof g[T]!="string"?"":'"',P=""+g[T],P=P.replace(/"/g,"&quot;"),I="attributeNameFn"in y?y.attributeNameFn(T,P,n,r):T,j.push(y.spaces&&y.indentAttributes?i(y,w+1,!1):" "),j.push(I+"="+O+("attributeValueFn"in y?y.attributeValueFn(P,T,n,r):P)+O));return g&&Object.keys(g).length&&y.spaces&&y.indentAttributes&&j.push(i(y,w,!1)),j.join("")}function u(g,y,w){return r=g,n="xml",y.ignoreDeclaration?"":"<?xml"+a(g[y.attributesKey],y,w)+"?>"}function f(g,y,w){if(y.ignoreInstruction)return"";var T;for(T in g)if(g.hasOwnProperty(T))break;var P="instructionNameFn"in y?y.instructionNameFn(T,g[T],n,r):T;if(typeof g[T]=="object")return r=g,n=P,"<?"+P+a(g[T][y.attributesKey],y,w)+"?>";var I=g[T]?g[T]:"";return"instructionFn"in y&&(I=y.instructionFn(I,T,n,r)),"<?"+P+(I?" "+I:"")+"?>"}function l(g,y){return y.ignoreComment?"":"<!--"+("commentFn"in y?y.commentFn(g,n,r):g)+"-->"}function s(g,y){return y.ignoreCdata?"":"<![CDATA["+("cdataFn"in y?y.cdataFn(g,n,r):g.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function c(g,y){return y.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in y?y.doctypeFn(g,n,r):g)+">"}function d(g,y){return y.ignoreText?"":(g=""+g,g=g.replace(/&amp;/g,"&"),g=g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in y?y.textFn(g,n,r):g)}function x(g,y){var w;if(g.elements&&g.elements.length)for(w=0;w<g.elements.length;++w)switch(g.elements[w][y.typeKey]){case"text":if(y.indentText)return!0;break;case"cdata":if(y.indentCdata)return!0;break;case"instruction":if(y.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(g,y,w){r=g,n=g.name;var T=[],P="elementNameFn"in y?y.elementNameFn(g.name,g):g.name;T.push("<"+P),g[y.attributesKey]&&T.push(a(g[y.attributesKey],y,w));var I=g[y.elementsKey]&&g[y.elementsKey].length||g[y.attributesKey]&&g[y.attributesKey]["xml:space"]==="preserve";return I||("fullTagEmptyElementFn"in y?I=y.fullTagEmptyElementFn(g.name,g):I=y.fullTagEmptyElement),I?(T.push(">"),g[y.elementsKey]&&g[y.elementsKey].length&&(T.push(E(g[y.elementsKey],y,w+1)),r=g,n=g.name),T.push(y.spaces&&x(g,y)?`
35
- `+Array(w+1).join(y.spaces):""),T.push("</"+P+">")):T.push("/>"),T.join("")}function E(g,y,w,T){return g.reduce(function(P,I){var O=i(y,w,T&&!P);switch(I.type){case"element":return P+O+m(I,y,w);case"comment":return P+O+l(I[y.commentKey],y);case"doctype":return P+O+c(I[y.doctypeKey],y);case"cdata":return P+(y.indentCdata?O:"")+s(I[y.cdataKey],y);case"text":return P+(y.indentText?O:"")+d(I[y.textKey],y);case"instruction":var j={};return j[I[y.nameKey]]=I[y.attributesKey]?I:I[y.instructionKey],P+(y.indentInstruction?O:"")+f(j,y,w)}},"")}function A(g,y,w){var T;for(T in g)if(g.hasOwnProperty(T))switch(T){case y.parentKey:case y.attributesKey:break;case y.textKey:if(y.indentText||w)return!0;break;case y.cdataKey:if(y.indentCdata||w)return!0;break;case y.instructionKey:if(y.indentInstruction||w)return!0;break;case y.doctypeKey:case y.commentKey:return!0;default:return!0}return!1}function p(g,y,w,T,P){r=g,n=y;var I="elementNameFn"in w?w.elementNameFn(y,g):y;if(typeof g>"u"||g===null||g==="")return"fullTagEmptyElementFn"in w&&w.fullTagEmptyElementFn(y,g)||w.fullTagEmptyElement?"<"+I+"></"+I+">":"<"+I+"/>";var O=[];if(y){if(O.push("<"+I),typeof g!="object")return O.push(">"+d(g,w)+"</"+I+">"),O.join("");g[w.attributesKey]&&O.push(a(g[w.attributesKey],w,T));var j=A(g,w,!0)||g[w.attributesKey]&&g[w.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in w?j=w.fullTagEmptyElementFn(y,g):j=w.fullTagEmptyElement),j)O.push(">");else return O.push("/>"),O.join("")}return O.push(h(g,w,T+1,!1)),r=g,n=y,y&&O.push((P?i(w,T,!1):"")+"</"+I+">"),O.join("")}function h(g,y,w,T){var P,I,O,j=[];for(I in g)if(g.hasOwnProperty(I))for(O=t(g[I])?g[I]:[g[I]],P=0;P<O.length;++P){switch(I){case y.declarationKey:j.push(u(O[P],y,w));break;case y.instructionKey:j.push((y.indentInstruction?i(y,w,T):"")+f(O[P],y,w));break;case y.attributesKey:case y.parentKey:break;case y.textKey:j.push((y.indentText?i(y,w,T):"")+d(O[P],y));break;case y.cdataKey:j.push((y.indentCdata?i(y,w,T):"")+s(O[P],y));break;case y.doctypeKey:j.push(i(y,w,T)+c(O[P],y));break;case y.commentKey:j.push(i(y,w,T)+l(O[P],y));break;default:j.push(i(y,w,T)+p(O[P],I,y,w,A(O[P],y)))}T=T&&!j.length}return j.join("")}return rs=function(g,y){y=o(y);var w=[];return r=g,n="_root_",y.compact?w.push(h(g,y,0,!0)):(g[y.declarationKey]&&w.push(u(g[y.declarationKey],y,0)),g[y.elementsKey]&&g[y.elementsKey].length&&w.push(E(g[y.elementsKey],y,0,!w.length))),w.join("")},rs}var ns,bf;function vy(){if(bf)return ns;bf=1;var e=mf();return ns=function(t,r){t instanceof yr&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},ns}var is,wf;function Ey(){if(wf)return is;wf=1;var e=pf(),t=wy(),r=mf(),n=vy();return is={xml2js:e,xml2json:t,js2xml:r,json2xml:n},is}var xy=Ey(),Ay=Pe(xy);function qr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Ty(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function os(e,...t){if(!Ty(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function vf(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");qr(e.outputLen),qr(e.blockLen)}function In(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Sy(e,t){os(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Pn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function _y(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function Hr(e){return typeof e=="string"&&(e=_y(e)),os(e),e}class Ef{clone(){return this._cloneInto()}}function Oy(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}function Ny(e){const t=n=>e().update(Hr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class xf extends Ef{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,vf(t);const n=Hr(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let a=0;a<i.length;a++)i[a]^=54;this.iHash.update(i),this.oHash=t.create();for(let a=0;a<i.length;a++)i[a]^=106;this.oHash.update(i),i.fill(0)}update(t){return In(this),this.iHash.update(t),this}digestInto(t){In(this),os(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:o,destroyed:i,blockLen:a,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Af=(e,t,r)=>new xf(e,t).update(r).digest();Af.create=(e,t)=>new xf(e,t);function Ry(e,t,r,n){vf(e);const o=Oy({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(qr(i),qr(a),qr(u),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const f=Hr(t),l=Hr(r),s=new Uint8Array(a),c=Af.create(e,f),d=c._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:c,PRFSalt:d}}function Iy(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),o.fill(0),r}function Py(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:f}=Ry(e,t,r,n);let l;const s=new Uint8Array(4),c=Pn(s),d=new Uint8Array(u.outputLen);for(let x=1,m=0;m<i;x++,m+=u.outputLen){const E=a.subarray(m,m+u.outputLen);c.setInt32(0,x,!1),(l=f._cloneInto(l)).update(s).digestInto(d),E.set(d.subarray(0,E.length));for(let A=1;A<o;A++){u._cloneInto(l).update(d).digestInto(d);for(let p=0;p<E.length;p++)E[p]^=d[p]}}return Iy(u,f,a,l,d)}function Fy(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),a=Number(r>>o&i),u=Number(r&i),f=n?4:0,l=n?0:4;e.setUint32(t+f,a,n),e.setUint32(t+l,u,n)}class Cy extends Ef{constructor(t,r,n,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Pn(this.buffer)}update(t){In(this);const{view:r,buffer:n,blockLen:o}=this;t=Hr(t);const i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const f=Pn(t);for(;o<=i-a;a+=o)this.process(f,a);continue}n.set(t.subarray(a,a+u),this.pos),this.pos+=u,a+=u,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){In(this),Sy(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>o-a&&(this.process(n,0),a=0);for(let c=a;c<o;c++)r[c]=0;Fy(n,o-8,BigInt(this.length*8),i),this.process(n,0);const u=Pn(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=f/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<l;c++)u.setUint32(4*c,s[c],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:a,pos:u}=this;return t.length=o,t.pos=u,t.finished=i,t.destroyed=a,o%r&&t.buffer.set(n),t}}const Fn=BigInt(2**32-1),ss=BigInt(32);function Tf(e,t=!1){return t?{h:Number(e&Fn),l:Number(e>>ss&Fn)}:{h:Number(e>>ss&Fn)|0,l:Number(e&Fn)|0}}function By(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:i,l:a}=Tf(e[o],t);[r[o],n[o]]=[i,a]}return[r,n]}const Ly=(e,t)=>BigInt(e>>>0)<<ss|BigInt(t>>>0),Uy=(e,t,r)=>e>>>r,jy=(e,t,r)=>e<<32-r|t>>>r,My=(e,t,r)=>e>>>r|t<<32-r,ky=(e,t,r)=>e<<32-r|t>>>r,Dy=(e,t,r)=>e<<64-r|t>>>r-32,$y=(e,t,r)=>e>>>r-32|t<<64-r,qy=(e,t)=>t,Hy=(e,t)=>e,Vy=(e,t,r)=>e<<r|t>>>32-r,Wy=(e,t,r)=>t<<r|e>>>32-r,Gy=(e,t,r)=>t<<r-32|e>>>64-r,Ky=(e,t,r)=>e<<r-32|t>>>64-r;function zy(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Ee={fromBig:Tf,split:By,toBig:Ly,shrSH:Uy,shrSL:jy,rotrSH:My,rotrSL:ky,rotrBH:Dy,rotrBL:$y,rotr32H:qy,rotr32L:Hy,rotlSH:Vy,rotlSL:Wy,rotlBH:Gy,rotlBL:Ky,add:zy,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,add5H:(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,add5L:(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0)},[Xy,Yy]=Ee.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Wt=new Uint32Array(80),Gt=new Uint32Array(80);class Jy extends Cy{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:f,Eh:l,El:s,Fh:c,Fl:d,Gh:x,Gl:m,Hh:E,Hl:A}=this;return[t,r,n,o,i,a,u,f,l,s,c,d,x,m,E,A]}set(t,r,n,o,i,a,u,f,l,s,c,d,x,m,E,A){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=u|0,this.Dl=f|0,this.Eh=l|0,this.El=s|0,this.Fh=c|0,this.Fl=d|0,this.Gh=x|0,this.Gl=m|0,this.Hh=E|0,this.Hl=A|0}process(t,r){for(let g=0;g<16;g++,r+=4)Wt[g]=t.getUint32(r),Gt[g]=t.getUint32(r+=4);for(let g=16;g<80;g++){const y=Wt[g-15]|0,w=Gt[g-15]|0,T=Ee.rotrSH(y,w,1)^Ee.rotrSH(y,w,8)^Ee.shrSH(y,w,7),P=Ee.rotrSL(y,w,1)^Ee.rotrSL(y,w,8)^Ee.shrSL(y,w,7),I=Wt[g-2]|0,O=Gt[g-2]|0,j=Ee.rotrSH(I,O,19)^Ee.rotrBH(I,O,61)^Ee.shrSH(I,O,6),G=Ee.rotrSL(I,O,19)^Ee.rotrBL(I,O,61)^Ee.shrSL(I,O,6),L=Ee.add4L(P,G,Gt[g-7],Gt[g-16]),D=Ee.add4H(L,T,j,Wt[g-7],Wt[g-16]);Wt[g]=D|0,Gt[g]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:f,Dh:l,Dl:s,Eh:c,El:d,Fh:x,Fl:m,Gh:E,Gl:A,Hh:p,Hl:h}=this;for(let g=0;g<80;g++){const y=Ee.rotrSH(c,d,14)^Ee.rotrSH(c,d,18)^Ee.rotrBH(c,d,41),w=Ee.rotrSL(c,d,14)^Ee.rotrSL(c,d,18)^Ee.rotrBL(c,d,41),T=c&x^~c&E,P=d&m^~d&A,I=Ee.add5L(h,w,P,Yy[g],Gt[g]),O=Ee.add5H(I,p,y,T,Xy[g],Wt[g]),j=I|0,G=Ee.rotrSH(n,o,28)^Ee.rotrBH(n,o,34)^Ee.rotrBH(n,o,39),L=Ee.rotrSL(n,o,28)^Ee.rotrBL(n,o,34)^Ee.rotrBL(n,o,39),D=n&i^n&u^i&u,oe=o&a^o&f^a&f;p=E|0,h=A|0,E=x|0,A=m|0,x=c|0,m=d|0,{h:c,l:d}=Ee.add(l|0,s|0,O|0,j|0),l=u|0,s=f|0,u=i|0,f=a|0,i=n|0,a=o|0;const re=Ee.add3L(j,L,oe);n=Ee.add3H(re,O,G,D),o=re|0}({h:n,l:o}=Ee.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Ee.add(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:f}=Ee.add(this.Ch|0,this.Cl|0,u|0,f|0),{h:l,l:s}=Ee.add(this.Dh|0,this.Dl|0,l|0,s|0),{h:c,l:d}=Ee.add(this.Eh|0,this.El|0,c|0,d|0),{h:x,l:m}=Ee.add(this.Fh|0,this.Fl|0,x|0,m|0),{h:E,l:A}=Ee.add(this.Gh|0,this.Gl|0,E|0,A|0),{h:p,l:h}=Ee.add(this.Hh|0,this.Hl|0,p|0,h|0),this.set(n,o,i,a,u,f,l,s,c,d,x,m,E,A,p,h)}roundClean(){Wt.fill(0),Gt.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Zy=Ny(()=>new Jy),Qy=(e,t,r,n)=>yr.from(Py(Zy,e,t,{c:r,dkLen:n}));class em{constructor({axiosClient:t,baseURI:r}){ye(this,"axiosClient");ye(this,"baseURI");ye(this,"signingKey");ye(this,"ALGORITHM","sha512");ye(this,"TTL",1200);ye(this,"HASH_LENGTH",32);ye(this,"ITERATION_COUNT",1e4);this.axiosClient=t,this.baseURI=r}async signUrl(t,r){const n=new URL(t);n.searchParams.set("OC-Credential",r),n.searchParams.set("OC-Date",new Date().toISOString()),n.searchParams.set("OC-Expires",this.TTL.toString()),n.searchParams.set("OC-Verb","GET");const o=await this.createHashedKey(n.toString());return n.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),n.searchParams.set("OC-Signature",o),n.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const t=await this.axiosClient.get(_e(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=Ay.xml2js(t.data,{compact:!0});return this.signingKey=r.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(t){const r=await this.getSignKey();return Qy(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const tm=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=R0(n,t),i=new em({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},Dt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return _e(e.webDavPath,r);if(t!==void 0){if(An(e))throw new Error("public spaces need a path provided");return _e("spaces",t,n||"")}return e.webDavPath},rm=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:f},{overwrite:l,...s}={}){const c=Dt(r,{fileId:o,path:n}),d=Dt(i,{fileId:u,path:a,name:f});return e.copy(c,d,{overwrite:l||!1,...s})}}),nm=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...f}){const l=Dt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},f)}}),im=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...f}={}){try{const l=Dt(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...f});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(l){const{message:s,response:c}=l;throw new $a(s,c,c.status)}}}),om=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),sm=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:f=86400,version:l=null,doHeadRequest:s=!1,username:c="",...d}){const x=a==="inline";let{downloadURL:m}=i,E=!0;if(!m&&!x&&(m=l?e.getFileUrl(_e("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),c&&s&&await r.head(m),u&&c?m=await tm(n,r).signUrl(m,c):E=!1),!E||x){const A=await t.getFileContents(o,i,{responseType:"blob",...d});m=URL.createObjectURL(A.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),am=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(_e("public-files",n))}}),um=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:f=!1,...l}={}){let s;if(An(n)){s=await e.propfind(_e(n.webDavPath,o),{depth:a,properties:u||ir.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=_e(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const d=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&d==="ocm"&&s[0].props[ae.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...E]=s;return{resource:_0({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:d}),children:E.map(A=>Er(A,e.extraProps))}}const x=s.map(m=>Er(m,e.extraProps));return{resource:x[0],children:x.slice(1)}}const c=async()=>{const d=await t.getPathForFileId(i);return this.listFiles(n,{path:d},{depth:a,davProperties:u})};try{let d="";if(f?d=Ai(n.id):d=Dt(n,{fileId:i,path:o}),s=await e.propfind(d,{depth:a,properties:u||ir.Default,...l}),f)return{resource:Er(s[0],e.extraProps),children:s.slice(1).map(T0)};const x=s.map(E=>Er(E,e.extraProps)),m=i===n.id;return i&&!m&&i!==x[0].fileId?c():{resource:x[0],children:x.slice(1)}}catch(d){if(d.statusCode===404&&i)return c();throw d}}}),lm=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:f},{overwrite:l,...s}={}){const c=Dt(r,{fileId:o,path:n}),d=Dt(i,{fileId:u,path:a,name:f});return e.move(c,d,{overwrite:l||!1,...s})}}),fm=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:f="",overwrite:l,onUploadProgress:s=null,...c}){const d=Dt(n,{fileId:a,name:o,path:i}),{result:x}=await e.put(d,u,{previousEntityTag:f,overwrite:l,onUploadProgress:s,...c});return t.getFileInfo(n,{fileId:x.headers.get("Oc-Fileid"),path:i})}}),cm=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(_e(r.webDavPath,n),o)}}),hm=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(An(r))return;const u=_e(r.webDavPath,o);return e.move(_e(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),dm=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const f=Dt(r,{path:i,fileId:n,name:o}),l=_e("meta",n,"v",a,{leadingSlash:!0}),s=_e("files",f,{leadingSlash:!0});return e.copy(l,s,u)}}),pm=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Ai(r.id);return n&&(i=_e(i,n)),e.delete(i,o)}}),gm=(e,t)=>({async search(r,{davProperties:n=ir.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:f}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:f.map(l=>({...Er(l,e.extraProps),highlights:l.props[ae.Highlights]||""})),totalResults:u?parseInt(u==null?void 0:u.split("/")[1]):null}}}),ym=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(_e("meta",r,{leadingSlash:!0}),{properties:[ae.MetaPathForUser],...n}))[0].props[ae.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var mm={2:e=>{function t(o,i,a){o instanceof RegExp&&(o=r(o,a)),i instanceof RegExp&&(i=r(i,a));var u=n(o,i,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+o.length,u[1]),post:a.slice(u[1]+i.length)}}function r(o,i){var a=i.match(o);return a?a[0]:null}function n(o,i,a){var u,f,l,s,c,d=a.indexOf(o),x=a.indexOf(i,d+1),m=d;if(d>=0&&x>0){for(u=[],l=a.length;m>=0&&!c;)m==d?(u.push(m),d=a.indexOf(o,m+1)):u.length==1?c=[u.pop(),x]:((f=u.pop())<l&&(l=f,s=x),x=a.indexOf(i,m+1)),m=d<x&&d>=0?d:x;u.length&&(c=[l,s])}return c}e.exports=t,t.range=n},101:function(e,t,r){var n;e=r.nmd(e),function(o){var i=(e&&e.exports,typeof Mt=="object"&&Mt);i.global!==i&&i.window;var a=function(c){this.message=c};(a.prototype=new Error).name="InvalidCharacterError";var u=function(c){throw new a(c)},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(c){c=String(c),/[^\0-\xFF]/.test(c)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var d,x,m,E,A=c.length%3,p="",h=-1,g=c.length-A;++h<g;)d=c.charCodeAt(h)<<16,x=c.charCodeAt(++h)<<8,m=c.charCodeAt(++h),p+=f.charAt((E=d+x+m)>>18&63)+f.charAt(E>>12&63)+f.charAt(E>>6&63)+f.charAt(63&E);return A==2?(d=c.charCodeAt(h)<<8,x=c.charCodeAt(++h),p+=f.charAt((E=d+x)>>10)+f.charAt(E>>4&63)+f.charAt(E<<2&63)+"="):A==1&&(E=c.charCodeAt(h),p+=f.charAt(E>>2)+f.charAt(E<<4&63)+"=="),p},decode:function(c){var d=(c=String(c).replace(l,"")).length;d%4==0&&(d=(c=c.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(c))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var x,m,E=0,A="",p=-1;++p<d;)m=f.indexOf(c.charAt(p)),x=E%4?64*x+m:m,E++%4&&(A+=String.fromCharCode(255&x>>(-2*E&6)));return A},version:"1.0.0"};(n=(function(){return s}).call(t,r,t,e))===void 0||(e.exports=n)}()},172:(e,t)=>{t.d=function(r){if(!r)return 0;for(var n=(r=r.toString()).length,o=r.length;o--;){var i=r.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}},526:e=>{var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],o=0;o<r.length;o++)n.push(255&r.charCodeAt(o));return n},bytesToString:function(r){for(var n=[],o=0;o<r.length;o++)n.push(String.fromCharCode(r[o]));return n.join("")}}};e.exports=t},298:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=r.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],i=0,a=0;i<n.length;i++,a+=8)o[a>>>5]|=n[i]<<24-a%32;return o},wordsToBytes:function(n){for(var o=[],i=0;i<32*n.length;i+=8)o.push(n[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(n){for(var o=[],i=0;i<n.length;i++)o.push((n[i]>>>4).toString(16)),o.push((15&n[i]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],i=0;i<n.length;i+=2)o.push(parseInt(n.substr(i,2),16));return o},bytesToBase64:function(n){for(var o=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],u=0;u<4;u++)8*i+6*u<=8*n.length?o.push(t.charAt(a>>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&o.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(i))>>>6-2*a);return o}},e.exports=r},635:(e,t,r)=>{const n=r(31),o=r(338),i=r(221);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},118:e=>{e.exports=function(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}},705:(e,t)=>{const r=":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",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(i){return i!==void 0},t.isEmptyObject=function(i){return Object.keys(i).length===0},t.merge=function(i,a,u){if(a){const f=Object.keys(a),l=f.length;for(let s=0;s<l;s++)i[f[s]]=u==="strict"?[a[f[s]]]:a[f[s]]}},t.getValue=function(i){return t.isExist(i)?i:""},t.isName=function(i){return o.exec(i)!=null},t.getAllMatches=function(i,a){const u=[];let f=a.exec(i);for(;f;){const l=[];l.startIndex=a.lastIndex-f[0].length;const s=f.length;for(let c=0;c<s;c++)l.push(f[c]);u.push(l),f=a.exec(i)}return u},t.nameRegexp=n},31:(e,t,r)=>{const n=r(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(h){return h===" "||h===" "||h===`
36
- `||h==="\r"}function a(h,g){const y=g;for(;g<h.length;g++)if(!(h[g]!="?"&&h[g]!=" ")){const w=h.substr(y,g-y);if(g>5&&w==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",A(h,g));if(h[g]=="?"&&h[g+1]==">"){g++;break}}return g}function u(h,g){if(h.length>g+5&&h[g+1]==="-"&&h[g+2]==="-"){for(g+=3;g<h.length;g++)if(h[g]==="-"&&h[g+1]==="-"&&h[g+2]===">"){g+=2;break}}else if(h.length>g+8&&h[g+1]==="D"&&h[g+2]==="O"&&h[g+3]==="C"&&h[g+4]==="T"&&h[g+5]==="Y"&&h[g+6]==="P"&&h[g+7]==="E"){let y=1;for(g+=8;g<h.length;g++)if(h[g]==="<")y++;else if(h[g]===">"&&(y--,y===0))break}else if(h.length>g+9&&h[g+1]==="["&&h[g+2]==="C"&&h[g+3]==="D"&&h[g+4]==="A"&&h[g+5]==="T"&&h[g+6]==="A"&&h[g+7]==="["){for(g+=8;g<h.length;g++)if(h[g]==="]"&&h[g+1]==="]"&&h[g+2]===">"){g+=2;break}}return g}t.validate=function(h,g){g=Object.assign({},o,g);const y=[];let w=!1,T=!1;h[0]==="\uFEFF"&&(h=h.substr(1));for(let I=0;I<h.length;I++)if(h[I]==="<"&&h[I+1]==="?"){if(I+=2,I=a(h,I),I.err)return I}else{if(h[I]!=="<"){if(i(h[I]))continue;return m("InvalidChar","char '"+h[I]+"' is not expected.",A(h,I))}{let O=I;if(I++,h[I]==="!"){I=u(h,I);continue}{let j=!1;h[I]==="/"&&(j=!0,I++);let G="";for(;I<h.length&&h[I]!==">"&&h[I]!==" "&&h[I]!==" "&&h[I]!==`
37
- `&&h[I]!=="\r";I++)G+=h[I];if(G=G.trim(),G[G.length-1]==="/"&&(G=G.substring(0,G.length-1),I--),P=G,!n.isName(P)){let oe;return oe=G.trim().length===0?"Invalid space after '<'.":"Tag '"+G+"' is an invalid name.",m("InvalidTag",oe,A(h,I))}const L=s(h,I);if(L===!1)return m("InvalidAttr","Attributes for '"+G+"' have open quote.",A(h,I));let D=L.value;if(I=L.index,D[D.length-1]==="/"){const oe=I-D.length;D=D.substring(0,D.length-1);const re=d(D,g);if(re!==!0)return m(re.err.code,re.err.msg,A(h,oe+re.err.line));w=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+G+"' doesn't have proper closing.",A(h,I));if(D.trim().length>0)return m("InvalidTag","Closing tag '"+G+"' can't have attributes or invalid starting.",A(h,O));if(y.length===0)return m("InvalidTag","Closing tag '"+G+"' has not been opened.",A(h,O));{const oe=y.pop();if(G!==oe.tagName){let re=A(h,oe.tagStartPos);return m("InvalidTag","Expected closing tag '"+oe.tagName+"' (opened in line "+re.line+", col "+re.col+") instead of closing tag '"+G+"'.",A(h,O))}y.length==0&&(T=!0)}}else{const oe=d(D,g);if(oe!==!0)return m(oe.err.code,oe.err.msg,A(h,I-D.length+oe.err.line));if(T===!0)return m("InvalidXml","Multiple possible root nodes found.",A(h,I));g.unpairedTags.indexOf(G)!==-1||y.push({tagName:G,tagStartPos:O}),w=!0}for(I++;I<h.length;I++)if(h[I]==="<"){if(h[I+1]==="!"){I++,I=u(h,I);continue}if(h[I+1]!=="?")break;if(I=a(h,++I),I.err)return I}else if(h[I]==="&"){const oe=x(h,I);if(oe==-1)return m("InvalidChar","char '&' is not expected.",A(h,I));I=oe}else if(T===!0&&!i(h[I]))return m("InvalidXml","Extra text at the end",A(h,I));h[I]==="<"&&I--}}}var P;return w?y.length==1?m("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",A(h,y[0].tagStartPos)):!(y.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(y.map(I=>I.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const f='"',l="'";function s(h,g){let y="",w="",T=!1;for(;g<h.length;g++){if(h[g]===f||h[g]===l)w===""?w=h[g]:w!==h[g]||(w="");else if(h[g]===">"&&w===""){T=!0;break}y+=h[g]}return w===""&&{value:y,index:g,tagClosed:T}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d(h,g){const y=n.getAllMatches(h,c),w={};for(let T=0;T<y.length;T++){if(y[T][1].length===0)return m("InvalidAttr","Attribute '"+y[T][2]+"' has no space in starting.",p(y[T]));if(y[T][3]!==void 0&&y[T][4]===void 0)return m("InvalidAttr","Attribute '"+y[T][2]+"' is without value.",p(y[T]));if(y[T][3]===void 0&&!g.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+y[T][2]+"' is not allowed.",p(y[T]));const P=y[T][2];if(!E(P))return m("InvalidAttr","Attribute '"+P+"' is an invalid name.",p(y[T]));if(w.hasOwnProperty(P))return m("InvalidAttr","Attribute '"+P+"' is repeated.",p(y[T]));w[P]=1}return!0}function x(h,g){if(h[++g]===";")return-1;if(h[g]==="#")return function(w,T){let P=/\d/;for(w[T]==="x"&&(T++,P=/[\da-fA-F]/);T<w.length;T++){if(w[T]===";")return T;if(!w[T].match(P))break}return-1}(h,++g);let y=0;for(;g<h.length;g++,y++)if(!(h[g].match(/\w/)&&y<20)){if(h[g]===";")break;return-1}return g}function m(h,g,y){return{err:{code:h,msg:g,line:y.line||y,col:y.col}}}function E(h){return n.isName(h)}function A(h,g){const y=h.substring(0,g).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function p(h){return h.startIndex+h[1].length}},221:(e,t,r)=>{const n=r(87),o=r(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,c){return c},attributeValueProcessor:function(s,c){return c},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(s){this.options=Object.assign({},i,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=u,this.options.format?(this.indentate=f,this.tagEndChar=`>
38
- `,this.newLine=`
39
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,c,d,x){const m=this.j2x(s,d+1,x.concat(c));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],c,m.attrStr,d):this.buildObjectNode(m.val,c,m.attrStr,d)}function f(s){return this.options.indentBy.repeat(s)}function l(s){return!(!s.startsWith(this.options.attributeNamePrefix)||s===this.options.textNodeName)&&s.substr(this.attrPrefixLen)}a.prototype.build=function(s){return this.options.preserveOrder?n(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)},a.prototype.j2x=function(s,c,d){let x="",m="";const E=d.join(".");for(let A in s)if(Object.prototype.hasOwnProperty.call(s,A))if(s[A]===void 0)this.isAttribute(A)&&(m+="");else if(s[A]===null)this.isAttribute(A)?m+="":A[0]==="?"?m+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(s[A]instanceof Date)m+=this.buildTextValNode(s[A],A,"",c);else if(typeof s[A]!="object"){const p=this.isAttribute(A);if(p&&!this.ignoreAttributesFn(p,E))x+=this.buildAttrPairStr(p,""+s[A]);else if(!p)if(A===this.options.textNodeName){let h=this.options.tagValueProcessor(A,""+s[A]);m+=this.replaceEntitiesValue(h)}else m+=this.buildTextValNode(s[A],A,"",c)}else if(Array.isArray(s[A])){const p=s[A].length;let h="",g="";for(let y=0;y<p;y++){const w=s[A][y];if(w!==void 0)if(w===null)A[0]==="?"?m+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(typeof w=="object")if(this.options.oneListGroup){const T=this.j2x(w,c+1,d.concat(A));h+=T.val,this.options.attributesGroupName&&w.hasOwnProperty(this.options.attributesGroupName)&&(g+=T.attrStr)}else h+=this.processTextOrObjNode(w,A,c,d);else if(this.options.oneListGroup){let T=this.options.tagValueProcessor(A,w);T=this.replaceEntitiesValue(T),h+=T}else h+=this.buildTextValNode(w,A,"",c)}this.options.oneListGroup&&(h=this.buildObjectNode(h,A,g,c)),m+=h}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){const p=Object.keys(s[A]),h=p.length;for(let g=0;g<h;g++)x+=this.buildAttrPairStr(p[g],""+s[A][p[g]])}else m+=this.processTextOrObjNode(s[A],A,c,d);return{attrStr:x,val:m}},a.prototype.buildAttrPairStr=function(s,c){return c=this.options.attributeValueProcessor(s,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+s:" "+s+'="'+c+'"'},a.prototype.buildObjectNode=function(s,c,d,x){if(s==="")return c[0]==="?"?this.indentate(x)+"<"+c+d+"?"+this.tagEndChar:this.indentate(x)+"<"+c+d+this.closeTag(c)+this.tagEndChar;{let m="</"+c+this.tagEndChar,E="";return c[0]==="?"&&(E="?",m=""),!d&&d!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&c===this.options.commentPropName&&E.length===0?this.indentate(x)+`<!--${s}-->`+this.newLine:this.indentate(x)+"<"+c+d+E+this.tagEndChar+s+this.indentate(x)+m:this.indentate(x)+"<"+c+d+E+">"+s+m}},a.prototype.closeTag=function(s){let c="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(c="/"):c=this.options.suppressEmptyNode?"/":`></${s}`,c},a.prototype.buildTextValNode=function(s,c,d,x){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(x)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(x)+`<!--${s}-->`+this.newLine;if(c[0]==="?")return this.indentate(x)+"<"+c+d+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(c,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(x)+"<"+c+d+this.closeTag(c)+this.tagEndChar:this.indentate(x)+"<"+c+d+">"+m+"</"+c+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const d=this.options.entities[c];s=s.replace(d.regex,d.val)}return s},e.exports=a},87:e=>{function t(a,u,f,l){let s="",c=!1;for(let d=0;d<a.length;d++){const x=a[d],m=r(x);if(m===void 0)continue;let E="";if(E=f.length===0?m:`${f}.${m}`,m===u.textNodeName){let g=x[m];o(E,u)||(g=u.tagValueProcessor(m,g),g=i(g,u)),c&&(s+=l),s+=g,c=!1;continue}if(m===u.cdataPropName){c&&(s+=l),s+=`<![CDATA[${x[m][0][u.textNodeName]}]]>`,c=!1;continue}if(m===u.commentPropName){s+=l+`<!--${x[m][0][u.textNodeName]}-->`,c=!0;continue}if(m[0]==="?"){const g=n(x[":@"],u),y=m==="?xml"?"":l;let w=x[m][0][u.textNodeName];w=w.length!==0?" "+w:"",s+=y+`<${m}${w}${g}?>`,c=!0;continue}let A=l;A!==""&&(A+=u.indentBy);const p=l+`<${m}${n(x[":@"],u)}`,h=t(x[m],u,E,A);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=p+">":s+=p+"/>":h&&h.length!==0||!u.suppressEmptyNode?h&&h.endsWith(">")?s+=p+`>${h}${l}</${m}>`:(s+=p+">",h&&l!==""&&(h.includes("/>")||h.includes("</"))?s+=l+u.indentBy+h+l:s+=h,s+=`</${m}>`):s+=p+"/>",c=!0}return s}function r(a){const u=Object.keys(a);for(let f=0;f<u.length;f++){const l=u[f];if(a.hasOwnProperty(l)&&l!==":@")return l}}function n(a,u){let f="";if(a&&!u.ignoreAttributes)for(let l in a){if(!a.hasOwnProperty(l))continue;let s=u.attributeValueProcessor(l,a[l]);s=i(s,u),s===!0&&u.suppressBooleanAttributes?f+=` ${l.substr(u.attributeNamePrefix.length)}`:f+=` ${l.substr(u.attributeNamePrefix.length)}="${s}"`}return f}function o(a,u){let f=(a=a.substr(0,a.length-u.textNodeName.length-1)).substr(a.lastIndexOf(".")+1);for(let l in u.stopNodes)if(u.stopNodes[l]===a||u.stopNodes[l]==="*."+f)return!0;return!1}function i(a,u){if(a&&a.length>0&&u.processEntities)for(let f=0;f<u.entities.length;f++){const l=u.entities[f];a=a.replace(l.regex,l.val)}return a}e.exports=function(a,u){let f="";return u.format&&u.indentBy.length>0&&(f=`
40
- `),t(a,u,"",f)}},193:(e,t,r)=>{const n=r(705);function o(c,d){let x="";for(;d<c.length&&c[d]!=="'"&&c[d]!=='"';d++)x+=c[d];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=c[d++];let E="";for(;d<c.length&&c[d]!==m;d++)E+=c[d];return[x,E,d]}function i(c,d){return c[d+1]==="!"&&c[d+2]==="-"&&c[d+3]==="-"}function a(c,d){return c[d+1]==="!"&&c[d+2]==="E"&&c[d+3]==="N"&&c[d+4]==="T"&&c[d+5]==="I"&&c[d+6]==="T"&&c[d+7]==="Y"}function u(c,d){return c[d+1]==="!"&&c[d+2]==="E"&&c[d+3]==="L"&&c[d+4]==="E"&&c[d+5]==="M"&&c[d+6]==="E"&&c[d+7]==="N"&&c[d+8]==="T"}function f(c,d){return c[d+1]==="!"&&c[d+2]==="A"&&c[d+3]==="T"&&c[d+4]==="T"&&c[d+5]==="L"&&c[d+6]==="I"&&c[d+7]==="S"&&c[d+8]==="T"}function l(c,d){return c[d+1]==="!"&&c[d+2]==="N"&&c[d+3]==="O"&&c[d+4]==="T"&&c[d+5]==="A"&&c[d+6]==="T"&&c[d+7]==="I"&&c[d+8]==="O"&&c[d+9]==="N"}function s(c){if(n.isName(c))return c;throw new Error(`Invalid entity name ${c}`)}e.exports=function(c,d){const x={};if(c[d+3]!=="O"||c[d+4]!=="C"||c[d+5]!=="T"||c[d+6]!=="Y"||c[d+7]!=="P"||c[d+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{d+=9;let m=1,E=!1,A=!1,p="";for(;d<c.length;d++)if(c[d]!=="<"||A)if(c[d]===">"){if(A?c[d-1]==="-"&&c[d-2]==="-"&&(A=!1,m--):m--,m===0)break}else c[d]==="["?E=!0:p+=c[d];else{if(E&&a(c,d)){let h,g;d+=7,[h,g,d]=o(c,d+1),g.indexOf("&")===-1&&(x[s(h)]={regx:RegExp(`&${h};`,"g"),val:g})}else if(E&&u(c,d))d+=8;else if(E&&f(c,d))d+=8;else if(E&&l(c,d))d+=9;else{if(!i)throw new Error("Invalid DOCTYPE");A=!0}m++,p=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:d}}},63:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(n,o){return o},attributeValueProcessor:function(n,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(n,o,i){return n}};t.buildOptions=function(n){return Object.assign({},r,n)},t.defaultOptions=r},299:(e,t,r)=>{const n=r(705),o=r(365),i=r(193),a=r(494),u=r(118);function f(T){const P=Object.keys(T);for(let I=0;I<P.length;I++){const O=P[I];this.lastEntities[O]={regex:new RegExp("&"+O+";","g"),val:T[O]}}}function l(T,P,I,O,j,G,L){if(T!==void 0&&(this.options.trimValues&&!O&&(T=T.trim()),T.length>0)){L||(T=this.replaceEntitiesValue(T));const D=this.options.tagValueProcessor(P,T,I,j,G);return D==null?T:typeof D!=typeof T||D!==T?D:this.options.trimValues||T.trim()===T?w(T,this.options.parseTagValue,this.options.numberParseOptions):T}}function s(T){if(this.options.removeNSPrefix){const P=T.split(":"),I=T.charAt(0)==="/"?"/":"";if(P[0]==="xmlns")return"";P.length===2&&(T=I+P[1])}return T}const c=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(T,P,I){if(this.options.ignoreAttributes!==!0&&typeof T=="string"){const O=n.getAllMatches(T,c),j=O.length,G={};for(let L=0;L<j;L++){const D=this.resolveNameSpace(O[L][1]);if(this.ignoreAttributesFn(D,P))continue;let oe=O[L][4],re=this.options.attributeNamePrefix+D;if(D.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),oe!==void 0){this.options.trimValues&&(oe=oe.trim()),oe=this.replaceEntitiesValue(oe);const he=this.options.attributeValueProcessor(D,oe,P);G[re]=he==null?oe:typeof he!=typeof oe||he!==oe?he:w(oe,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(G[re]=!0)}if(!Object.keys(G).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=G,L}return G}}const x=function(T){T=T.replace(/\r\n?/g,`
41
- `);const P=new o("!xml");let I=P,O="",j="";for(let G=0;G<T.length;G++)if(T[G]==="<")if(T[G+1]==="/"){const L=h(T,">",G,"Closing Tag is not closed.");let D=T.substring(G+2,L).trim();if(this.options.removeNSPrefix){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1))}this.options.transformTagName&&(D=this.options.transformTagName(D)),I&&(O=this.saveTextToParentTag(O,I,j));const oe=j.substring(j.lastIndexOf(".")+1);if(D&&this.options.unpairedTags.indexOf(D)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${D}>`);let re=0;oe&&this.options.unpairedTags.indexOf(oe)!==-1?(re=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=j.lastIndexOf("."),j=j.substring(0,re),I=this.tagsNodeStack.pop(),O="",G=L}else if(T[G+1]==="?"){let L=g(T,G,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(O=this.saveTextToParentTag(O,I,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const D=new o(L.tagName);D.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(D[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(I,D,j)}G=L.closeIndex+1}else if(T.substr(G+1,3)==="!--"){const L=h(T,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const D=T.substring(G+4,L-2);O=this.saveTextToParentTag(O,I,j),I.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}G=L}else if(T.substr(G+1,2)==="!D"){const L=i(T,G);this.docTypeEntities=L.entities,G=L.i}else if(T.substr(G+1,2)==="!["){const L=h(T,"]]>",G,"CDATA is not closed.")-2,D=T.substring(G+9,L);O=this.saveTextToParentTag(O,I,j);let oe=this.parseTextData(D,I.tagname,j,!0,!1,!0,!0);oe==null&&(oe=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:D}]):I.add(this.options.textNodeName,oe),G=L+2}else{let L=g(T,G,this.options.removeNSPrefix),D=L.tagName;const oe=L.rawTagName;let re=L.tagExp,he=L.attrExpPresent,fe=L.closeIndex;this.options.transformTagName&&(D=this.options.transformTagName(D)),I&&O&&I.tagname!=="!xml"&&(O=this.saveTextToParentTag(O,I,j,!1));const ge=I;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(I=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),D!==P.tagname&&(j+=j?"."+D:D),this.isItStopNode(this.options.stopNodes,j,D)){let ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),j=j.substr(0,j.length-1),re=D):re=re.substr(0,re.length-1),G=L.closeIndex;else if(this.options.unpairedTags.indexOf(D)!==-1)G=L.closeIndex;else{const be=this.readStopNodeData(T,oe,fe+1);if(!be)throw new Error(`Unexpected end of ${oe}`);G=be.i,ce=be.tagContent}const xe=new o(D);D!==re&&he&&(xe[":@"]=this.buildAttributesMap(re,j,D)),ce&&(ce=this.parseTextData(ce,D,j,!0,he,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),xe.add(this.options.textNodeName,ce),this.addChild(I,xe,j)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),j=j.substr(0,j.length-1),re=D):re=re.substr(0,re.length-1),this.options.transformTagName&&(D=this.options.transformTagName(D));const ce=new o(D);D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,ce,j),j=j.substr(0,j.lastIndexOf("."))}else{const ce=new o(D);this.tagsNodeStack.push(I),D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,ce,j),I=ce}O="",G=fe}}else O+=T[G];return P.child};function m(T,P,I){const O=this.options.updateTag(P.tagname,I,P[":@"]);O===!1||(typeof O=="string"&&(P.tagname=O),T.addChild(P))}const E=function(T){if(this.options.processEntities){for(let P in this.docTypeEntities){const I=this.docTypeEntities[P];T=T.replace(I.regx,I.val)}for(let P in this.lastEntities){const I=this.lastEntities[P];T=T.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){const I=this.htmlEntities[P];T=T.replace(I.regex,I.val)}T=T.replace(this.ampEntity.regex,this.ampEntity.val)}return T};function A(T,P,I,O){return T&&(O===void 0&&(O=Object.keys(P.child).length===0),(T=this.parseTextData(T,P.tagname,I,!1,!!P[":@"]&&Object.keys(P[":@"]).length!==0,O))!==void 0&&T!==""&&P.add(this.options.textNodeName,T),T=""),T}function p(T,P,I){const O="*."+I;for(const j in T){const G=T[j];if(O===G||P===G)return!0}return!1}function h(T,P,I,O){const j=T.indexOf(P,I);if(j===-1)throw new Error(O);return j+P.length-1}function g(T,P,I){const O=function(he,fe){let ge,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",xe="";for(let be=fe;be<he.length;be++){let K=he[be];if(ge)K===ge&&(ge="");else if(K==='"'||K==="'")ge=K;else if(K===ce[0]){if(!ce[1])return{data:xe,index:be};if(he[be+1]===ce[1])return{data:xe,index:be}}else K===" "&&(K=" ");xe+=K}}(T,P+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!O)return;let j=O.data;const G=O.index,L=j.search(/\s/);let D=j,oe=!0;L!==-1&&(D=j.substring(0,L),j=j.substring(L+1).trimStart());const re=D;if(I){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1),oe=D!==O.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function y(T,P,I){const O=I;let j=1;for(;I<T.length;I++)if(T[I]==="<")if(T[I+1]==="/"){const G=h(T,">",I,`${P} is not closed`);if(T.substring(I+2,G).trim()===P&&(j--,j===0))return{tagContent:T.substring(O,I),i:G};I=G}else if(T[I+1]==="?")I=h(T,"?>",I+1,"StopNode is not closed.");else if(T.substr(I+1,3)==="!--")I=h(T,"-->",I+3,"StopNode is not closed.");else if(T.substr(I+1,2)==="![")I=h(T,"]]>",I,"StopNode is not closed.")-2;else{const G=g(T,I,">");G&&((G&&G.tagName)===P&&G.tagExp[G.tagExp.length-1]!=="/"&&j++,I=G.closeIndex)}}function w(T,P,I){if(P&&typeof T=="string"){const O=T.trim();return O==="true"||O!=="false"&&a(T,I)}return n.isExist(T)?T:""}e.exports=class{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=f,this.parseXml=x,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=d,this.isItStopNode=p,this.replaceEntitiesValue=E,this.readStopNodeData=y,this.saveTextToParentTag=A,this.addChild=m,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}},338:(e,t,r)=>{const{buildOptions:n}=r(63),o=r(299),{prettify:i}=r(728),a=r(31);e.exports=class{constructor(u){this.externalEntities={},this.options=n(u)}parse(u,f){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(f){f===!0&&(f={});const c=a.validate(u,f);if(c!==!0)throw Error(`${c.err.msg}:${c.err.line}:${c.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const s=l.parseXml(u);return this.options.preserveOrder||s===void 0?s:i(s,this.options)}addEntity(u,f){if(f.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(f==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=f}}},728:(e,t)=>{function r(a,u,f){let l;const s={};for(let c=0;c<a.length;c++){const d=a[c],x=n(d);let m="";if(m=f===void 0?x:f+"."+x,x===u.textNodeName)l===void 0?l=d[x]:l+=""+d[x];else{if(x===void 0)continue;if(d[x]){let E=r(d[x],u,m);const A=i(E,u);d[":@"]?o(E,d[":@"],m,u):Object.keys(E).length!==1||E[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(E).length===0&&(u.alwaysCreateTextNode?E[u.textNodeName]="":E=""):E=E[u.textNodeName],s[x]!==void 0&&s.hasOwnProperty(x)?(Array.isArray(s[x])||(s[x]=[s[x]]),s[x].push(E)):u.isArray(x,m,A)?s[x]=[E]:s[x]=E}}}return typeof l=="string"?l.length>0&&(s[u.textNodeName]=l):l!==void 0&&(s[u.textNodeName]=l),s}function n(a){const u=Object.keys(a);for(let f=0;f<u.length;f++){const l=u[f];if(l!==":@")return l}}function o(a,u,f,l){if(u){const s=Object.keys(u),c=s.length;for(let d=0;d<c;d++){const x=s[d];l.isArray(x,f+"."+x,!0,!0)?a[x]=[u[x]]:a[x]=u[x]}}}function i(a,u){const{textNodeName:f}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[f]&&typeof a[f]!="boolean"&&a[f]!==0)}t.prettify=function(a,u){return r(a,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:e=>{function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}e.exports=function(r){return r!=null&&(t(r)||function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}(r)||!!r._isBuffer)}},542:(e,t,r)=>{(function(){var n=r(298),o=r(526).utf8,i=r(135),a=r(526).bin,u=function(f,l){f.constructor==String?f=l&&l.encoding==="binary"?a.stringToBytes(f):o.stringToBytes(f):i(f)?f=Array.prototype.slice.call(f,0):Array.isArray(f)||f.constructor===Uint8Array||(f=f.toString());for(var s=n.bytesToWords(f),c=8*f.length,d=1732584193,x=-271733879,m=-1732584194,E=271733878,A=0;A<s.length;A++)s[A]=16711935&(s[A]<<8|s[A]>>>24)|4278255360&(s[A]<<24|s[A]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var p=u._ff,h=u._gg,g=u._hh,y=u._ii;for(A=0;A<s.length;A+=16){var w=d,T=x,P=m,I=E;d=p(d,x,m,E,s[A+0],7,-680876936),E=p(E,d,x,m,s[A+1],12,-389564586),m=p(m,E,d,x,s[A+2],17,606105819),x=p(x,m,E,d,s[A+3],22,-1044525330),d=p(d,x,m,E,s[A+4],7,-176418897),E=p(E,d,x,m,s[A+5],12,1200080426),m=p(m,E,d,x,s[A+6],17,-1473231341),x=p(x,m,E,d,s[A+7],22,-45705983),d=p(d,x,m,E,s[A+8],7,1770035416),E=p(E,d,x,m,s[A+9],12,-1958414417),m=p(m,E,d,x,s[A+10],17,-42063),x=p(x,m,E,d,s[A+11],22,-1990404162),d=p(d,x,m,E,s[A+12],7,1804603682),E=p(E,d,x,m,s[A+13],12,-40341101),m=p(m,E,d,x,s[A+14],17,-1502002290),d=h(d,x=p(x,m,E,d,s[A+15],22,1236535329),m,E,s[A+1],5,-165796510),E=h(E,d,x,m,s[A+6],9,-1069501632),m=h(m,E,d,x,s[A+11],14,643717713),x=h(x,m,E,d,s[A+0],20,-373897302),d=h(d,x,m,E,s[A+5],5,-701558691),E=h(E,d,x,m,s[A+10],9,38016083),m=h(m,E,d,x,s[A+15],14,-660478335),x=h(x,m,E,d,s[A+4],20,-405537848),d=h(d,x,m,E,s[A+9],5,568446438),E=h(E,d,x,m,s[A+14],9,-1019803690),m=h(m,E,d,x,s[A+3],14,-187363961),x=h(x,m,E,d,s[A+8],20,1163531501),d=h(d,x,m,E,s[A+13],5,-1444681467),E=h(E,d,x,m,s[A+2],9,-51403784),m=h(m,E,d,x,s[A+7],14,1735328473),d=g(d,x=h(x,m,E,d,s[A+12],20,-1926607734),m,E,s[A+5],4,-378558),E=g(E,d,x,m,s[A+8],11,-2022574463),m=g(m,E,d,x,s[A+11],16,1839030562),x=g(x,m,E,d,s[A+14],23,-35309556),d=g(d,x,m,E,s[A+1],4,-1530992060),E=g(E,d,x,m,s[A+4],11,1272893353),m=g(m,E,d,x,s[A+7],16,-155497632),x=g(x,m,E,d,s[A+10],23,-1094730640),d=g(d,x,m,E,s[A+13],4,681279174),E=g(E,d,x,m,s[A+0],11,-358537222),m=g(m,E,d,x,s[A+3],16,-722521979),x=g(x,m,E,d,s[A+6],23,76029189),d=g(d,x,m,E,s[A+9],4,-640364487),E=g(E,d,x,m,s[A+12],11,-421815835),m=g(m,E,d,x,s[A+15],16,530742520),d=y(d,x=g(x,m,E,d,s[A+2],23,-995338651),m,E,s[A+0],6,-198630844),E=y(E,d,x,m,s[A+7],10,1126891415),m=y(m,E,d,x,s[A+14],15,-1416354905),x=y(x,m,E,d,s[A+5],21,-57434055),d=y(d,x,m,E,s[A+12],6,1700485571),E=y(E,d,x,m,s[A+3],10,-1894986606),m=y(m,E,d,x,s[A+10],15,-1051523),x=y(x,m,E,d,s[A+1],21,-2054922799),d=y(d,x,m,E,s[A+8],6,1873313359),E=y(E,d,x,m,s[A+15],10,-30611744),m=y(m,E,d,x,s[A+6],15,-1560198380),x=y(x,m,E,d,s[A+13],21,1309151649),d=y(d,x,m,E,s[A+4],6,-145523070),E=y(E,d,x,m,s[A+11],10,-1120210379),m=y(m,E,d,x,s[A+2],15,718787259),x=y(x,m,E,d,s[A+9],21,-343485551),d=d+w>>>0,x=x+T>>>0,m=m+P>>>0,E=E+I>>>0}return n.endian([d,x,m,E])};u._ff=function(f,l,s,c,d,x,m){var E=f+(l&s|~l&c)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._gg=function(f,l,s,c,d,x,m){var E=f+(l&c|s&~c)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._hh=function(f,l,s,c,d,x,m){var E=f+(l^s^c)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._ii=function(f,l,s,c,d,x,m){var E=f+(s^(l|~c))+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._blocksize=16,u._digestsize=16,e.exports=function(f,l){if(f==null)throw new Error("Illegal argument "+f);var s=n.wordsToBytes(u(f,l));return l&&l.asBytes?s:l&&l.asString?a.bytesToString(s):n.bytesToHex(s)}})()},285:(e,t,r)=>{var n=r(2);e.exports=function(p){return p?(p.substr(0,2)==="{}"&&(p="\\{\\}"+p.substr(2)),A(function(h){return h.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(f)}(p),!0).map(s)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",f="\0PERIOD"+Math.random()+"\0";function l(p){return parseInt(p,10)==p?parseInt(p,10):p.charCodeAt(0)}function s(p){return p.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(f).join(".")}function c(p){if(!p)return[""];var h=[],g=n("{","}",p);if(!g)return p.split(",");var y=g.pre,w=g.body,T=g.post,P=y.split(",");P[P.length-1]+="{"+w+"}";var I=c(T);return T.length&&(P[P.length-1]+=I.shift(),P.push.apply(P,I)),h.push.apply(h,P),h}function d(p){return"{"+p+"}"}function x(p){return/^-?0\d/.test(p)}function m(p,h){return p<=h}function E(p,h){return p>=h}function A(p,h){var g=[],y=n("{","}",p);if(!y)return[p];var w=y.pre,T=y.post.length?A(y.post,!1):[""];if(/\$$/.test(y.pre))for(var P=0;P<T.length;P++){var I=w+"{"+y.body+"}"+T[P];g.push(I)}else{var O,j,G=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),D=G||L,oe=y.body.indexOf(",")>=0;if(!D&&!oe)return y.post.match(/,.*\}/)?A(p=y.pre+"{"+y.body+a+y.post):[p];if(D)O=y.body.split(/\.\./);else if((O=c(y.body)).length===1&&(O=A(O[0],!1).map(d)).length===1)return T.map(function(V){return y.pre+O[0]+V});if(D){var re=l(O[0]),he=l(O[1]),fe=Math.max(O[0].length,O[1].length),ge=O.length==3?Math.abs(l(O[2])):1,ce=m;he<re&&(ge*=-1,ce=E);var xe=O.some(x);j=[];for(var be=re;ce(be,he);be+=ge){var K;if(L)(K=String.fromCharCode(be))==="\\"&&(K="");else if(K=String(be),xe){var Q=fe-K.length;if(Q>0){var ee=new Array(Q+1).join("0");K=be<0?"-"+ee+K.slice(1):ee+K}}j.push(K)}}else{j=[];for(var ue=0;ue<O.length;ue++)j.push.apply(j,A(O[ue],!1))}for(ue=0;ue<j.length;ue++)for(P=0;P<T.length;P++)I=w+j[ue]+T[P],(!h||D||I)&&g.push(I)}return g}},829:e=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(l)}function r(l){var s=typeof Map=="function"?new Map:void 0;return r=function(c){if(c===null||(d=c,Function.toString.call(d).indexOf("[native code]")===-1))return c;var d;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(c))return s.get(c);s.set(c,x)}function x(){return n(c,arguments,i(this).constructor)}return x.prototype=Object.create(c.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,c)},r(l)}function n(l,s,c){return n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(d,x,m){var E=[null];E.push.apply(E,x);var A=new(Function.bind.apply(d,E));return m&&o(A,m.prototype),A},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(c,d){return c.__proto__=d,c},o(l,s)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i(l)}var a=function(l){function s(c){var d;return function(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),(d=function(x,m){return!m||t(m)!=="object"&&typeof m!="function"?function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(x):m}(this,i(s).call(this,c))).name="ObjectPrototypeMutationError",d}return function(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(d&&d.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),d&&o(c,d)}(s,l),s}(r(Error));function u(l,s){for(var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},d=s.split("."),x=d.length,m=function(p){var h=d[p];if(!l)return{v:void 0};if(h==="+"){if(Array.isArray(l))return{v:l.map(function(y,w){var T=d.slice(p+1);return T.length>0?u(y,T.join("."),c):c(l,w,d,p)})};var g=d.slice(0,p).join(".");throw new Error("Object at wildcard (".concat(g,") is not an array"))}l=c(l,h,d,p)},E=0;E<x;E++){var A=m(E);if(t(A)==="object")return A.v}return l}function f(l,s){return l.length===s+1}e.exports={set:function(l,s,c){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=c,l[s];try{return u(l,s,function(d,x,m,E){if(d===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!d[x]){var A=Number.isInteger(Number(m[E+1])),p=m[E+1]==="+";d[x]=A||p?[]:{}}return f(m,E)&&(d[x]=c),d[x]})}catch(d){if(d instanceof a)throw d;return l}},get:function(l,s){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s];try{return u(l,s,function(c,d){return c[d]})}catch{return l}},has:function(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(l)!="object"||l===null||s===void 0)return!1;if(typeof s=="number")return s in l;try{var d=!1;return u(l,s,function(x,m,E,A){if(!f(E,A))return x&&x[m];d=c.own?x.hasOwnProperty(m):m in x}),d}catch{return!1}},hasOwn:function(l,s,c){return this.has(l,s,c||{own:!0})},isIn:function(l,s,c){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var x=!1,m=!1;return u(l,s,function(E,A,p,h){return x=x||E===c||!!E&&E[A]===c,m=f(p,h)&&t(E)==="object"&&A in E,E&&E[A]}),d.validPath?x&&m:x}catch{return!1}},ObjectPrototypeMutationError:a}},47:(e,t,r)=>{var n=r(410),o=function(l){return typeof l=="string"};function i(l,s){for(var c=[],d=0;d<l.length;d++){var x=l[d];x&&x!=="."&&(x===".."?c.length&&c[c.length-1]!==".."?c.pop():s&&c.push(".."):c.push(x))}return c}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function f(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,c=arguments.length-1;c>=-1&&!s;c--){var d=c>=0?arguments[c]:me.cwd();if(!o(d))throw new TypeError("Arguments to path.resolve must be strings");d&&(l=d+"/"+l,s=d.charAt(0)==="/")}return(s?"/":"")+(l=i(l.split("/"),!s).join("/"))||"."},u.normalize=function(l){var s=u.isAbsolute(l),c=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&c&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var c=arguments[s];if(!o(c))throw new TypeError("Arguments to path.join must be strings");c&&(l+=l?"/"+c:c)}return u.normalize(l)},u.relative=function(l,s){function c(h){for(var g=0;g<h.length&&h[g]==="";g++);for(var y=h.length-1;y>=0&&h[y]==="";y--);return g>y?[]:h.slice(g,y+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var d=c(l.split("/")),x=c(s.split("/")),m=Math.min(d.length,x.length),E=m,A=0;A<m;A++)if(d[A]!==x[A]){E=A;break}var p=[];for(A=E;A<d.length;A++)p.push("..");return(p=p.concat(x.slice(E))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=f(l),c=s[0],d=s[1];return c||d?(d&&(d=d.substr(0,d.length-1)),c+d):"."},u.basename=function(l,s){var c=f(l)[2];return s&&c.substr(-1*s.length)===s&&(c=c.substr(0,c.length-s.length)),c},u.extname=function(l){return f(l)[3]},u.format=function(l){if(!n.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var s=l.root||"";if(!o(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+u.sep:"")+(l.base||"")},u.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var s=f(l);if(!s||s.length!==4)throw new TypeError("Invalid path '"+l+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,s[1].length-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var r=Object.prototype.hasOwnProperty;function n(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}t.stringify=function(i,a){a=a||"";var u,f,l=[];for(f in typeof a!="string"&&(a="?"),i)if(r.call(i,f)){if((u=i[f])||u!=null&&!isNaN(u)||(u=""),f=o(f),u=o(u),f===null||u===null)continue;l.push(f+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,f={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in f||(f[l]=s)}return f}},670:e=>{e.exports=function(t,r){if(r=r.split(":")[0],!(t=+t))return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}},494:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},n,i),!o||typeof o!="string")return o;let a=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return o;if(i.hex&&t.test(a))return Number.parseInt(a,16);{const f=r.exec(a);if(f){const l=f[1],s=f[2];let c=((u=f[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const d=f[4]||f[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const x=Number(a),m=""+x;return m.search(/[eE]/)!==-1||d?i.eNotation?x:o:a.indexOf(".")!==-1?m==="0"&&c===""||m===c||l&&m==="-"+c?x:o:s?c===m||l+c===m?x:o:a===m||a===l+m?x:o}}return o}var u}},737:(e,t,r)=>{var n=r(670),o=r(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,f=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function c(h){return(h||"").toString().replace(i,"")}var d=[["#","hash"],["?","query"],function(h,g){return E(g.protocol)?h.replace(/\\/g,"/"):h},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],x={hash:1,query:1};function m(h){var g,y=(typeof window<"u"?window:typeof Mt<"u"?Mt:typeof self<"u"?self:{}).location||{},w={},T=typeof(h=h||y);if(h.protocol==="blob:")w=new p(unescape(h.pathname),{});else if(T==="string")for(g in w=new p(h,{}),x)delete w[g];else if(T==="object"){for(g in h)g in x||(w[g]=h[g]);w.slashes===void 0&&(w.slashes=u.test(h.href))}return w}function E(h){return h==="file:"||h==="ftp:"||h==="http:"||h==="https:"||h==="ws:"||h==="wss:"}function A(h,g){h=(h=c(h)).replace(a,""),g=g||{};var y,w=l.exec(h),T=w[1]?w[1].toLowerCase():"",P=!!w[2],I=!!w[3],O=0;return P?I?(y=w[2]+w[3]+w[4],O=w[2].length+w[3].length):(y=w[2]+w[4],O=w[2].length):I?(y=w[3]+w[4],O=w[3].length):y=w[4],T==="file:"?O>=2&&(y=y.slice(2)):E(T)?y=w[4]:T?P&&(y=y.slice(2)):O>=2&&E(g.protocol)&&(y=w[4]),{protocol:T,slashes:P||E(T),slashesCount:O,rest:y}}function p(h,g,y){if(h=(h=c(h)).replace(a,""),!(this instanceof p))return new p(h,g,y);var w,T,P,I,O,j,G=d.slice(),L=typeof g,D=this,oe=0;for(L!=="object"&&L!=="string"&&(y=g,g=null),y&&typeof y!="function"&&(y=o.parse),w=!(T=A(h||"",g=m(g))).protocol&&!T.slashes,D.slashes=T.slashes||w&&g.slashes,D.protocol=T.protocol||g.protocol||"",h=T.rest,(T.protocol==="file:"&&(T.slashesCount!==2||s.test(h))||!T.slashes&&(T.protocol||T.slashesCount<2||!E(D.protocol)))&&(G[3]=[/(.*)/,"pathname"]);oe<G.length;oe++)typeof(I=G[oe])!="function"?(P=I[0],j=I[1],P!=P?D[j]=h:typeof P=="string"?~(O=P==="@"?h.lastIndexOf(P):h.indexOf(P))&&(typeof I[2]=="number"?(D[j]=h.slice(0,O),h=h.slice(O+I[2])):(D[j]=h.slice(O),h=h.slice(0,O))):(O=P.exec(h))&&(D[j]=O[1],h=h.slice(0,O.index)),D[j]=D[j]||w&&I[3]&&g[j]||"",I[4]&&(D[j]=D[j].toLowerCase())):h=I(h,D);y&&(D.query=y(D.query)),w&&g.slashes&&D.pathname.charAt(0)!=="/"&&(D.pathname!==""||g.pathname!=="")&&(D.pathname=function(re,he){if(re==="")return he;for(var fe=(he||"/").split("/").slice(0,-1).concat(re.split("/")),ge=fe.length,ce=fe[ge-1],xe=!1,be=0;ge--;)fe[ge]==="."?fe.splice(ge,1):fe[ge]===".."?(fe.splice(ge,1),be++):be&&(ge===0&&(xe=!0),fe.splice(ge,1),be--);return xe&&fe.unshift(""),ce!=="."&&ce!==".."||fe.push(""),fe.join("/")}(D.pathname,g.pathname)),D.pathname.charAt(0)!=="/"&&E(D.protocol)&&(D.pathname="/"+D.pathname),n(D.port,D.protocol)||(D.host=D.hostname,D.port=""),D.username=D.password="",D.auth&&(~(O=D.auth.indexOf(":"))?(D.username=D.auth.slice(0,O),D.username=encodeURIComponent(decodeURIComponent(D.username)),D.password=D.auth.slice(O+1),D.password=encodeURIComponent(decodeURIComponent(D.password))):D.username=encodeURIComponent(decodeURIComponent(D.auth)),D.auth=D.password?D.username+":"+D.password:D.username),D.origin=D.protocol!=="file:"&&E(D.protocol)&&D.host?D.protocol+"//"+D.host:"null",D.href=D.toString()}p.prototype={set:function(h,g,y){var w=this;switch(h){case"query":typeof g=="string"&&g.length&&(g=(y||o.parse)(g)),w[h]=g;break;case"port":w[h]=g,n(g,w.protocol)?g&&(w.host=w.hostname+":"+g):(w.host=w.hostname,w[h]="");break;case"hostname":w[h]=g,w.port&&(g+=":"+w.port),w.host=g;break;case"host":w[h]=g,f.test(g)?(g=g.split(":"),w.port=g.pop(),w.hostname=g.join(":")):(w.hostname=g,w.port="");break;case"protocol":w.protocol=g.toLowerCase(),w.slashes=!y;break;case"pathname":case"hash":if(g){var T=h==="pathname"?"/":"#";w[h]=g.charAt(0)!==T?T+g:g}else w[h]=g;break;case"username":case"password":w[h]=encodeURIComponent(g);break;case"auth":var P=g.indexOf(":");~P?(w.username=g.slice(0,P),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=g.slice(P+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(g))}for(var I=0;I<d.length;I++){var O=d[I];O[4]&&(w[O[1]]=w[O[1]].toLowerCase())}return w.auth=w.password?w.username+":"+w.password:w.username,w.origin=w.protocol!=="file:"&&E(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString(),w},toString:function(h){h&&typeof h=="function"||(h=o.stringify);var g,y=this,w=y.host,T=y.protocol;T&&T.charAt(T.length-1)!==":"&&(T+=":");var P=T+(y.protocol&&y.slashes||E(y.protocol)?"//":"");return y.username?(P+=y.username,y.password&&(P+=":"+y.password),P+="@"):y.password?(P+=":"+y.password,P+="@"):y.protocol!=="file:"&&E(y.protocol)&&!w&&y.pathname!=="/"&&(P+="@"),(w[w.length-1]===":"||f.test(y.hostname)&&!y.port)&&(w+=":"),P+=w+y.pathname,(g=typeof y.query=="object"?h(y.query):y.query)&&(P+=g.charAt(0)!=="?"?"?"+g:g),y.hash&&(P+=y.hash),P}},p.extractProtocol=A,p.location=m,p.trimLeft=c,p.qs=o,e.exports=p},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Sf={};function Ce(e){var t=Sf[e];if(t!==void 0)return t.exports;var r=Sf[e]={id:e,loaded:!1,exports:{}};return mm[e].call(r.exports,r,r.exports,Ce),r.loaded=!0,r.exports}Ce.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Ce.d(t,{a:t}),t},Ce.d=(e,t)=>{for(var r in t)Ce.o(t,r)&&!Ce.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Ce.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ce.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var Et={};Ce.d(Et,{hT:()=>ht,O4:()=>$t,Kd:()=>_m,YK:()=>Om,UU:()=>Cb,Gu:()=>Uf,ky:()=>Zf,h4:()=>zr,ch:()=>$n,hq:()=>ur,i5:()=>Qf});var bm=Ce(737),wm=Ce.n(bm);function as(e){if(!us(e))throw new Error("Parameter was not an error")}function us(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class ct extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=function(u){let f,l="";if(u.length===0)f={};else if(us(u[0]))f={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")f=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");f={},l=l=u.join(" ")||""}return{options:f,shortMessage:l}}(n);let a=i;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return as(t),t._cause&&us(t._cause)?t._cause:null}static fullStack(t){as(t);const r=ct.cause(t);return r?`${t.stack}
42
- caused by: ${ct.fullStack(r)}`:t.stack??""}static info(t){as(t);const r={},n=ct.cause(t);return n&&Object.assign(r,ct.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var vm=Ce(47),Cn=Ce.n(vm);const _f="__PATH_SEPARATOR_POSIX__",Of="__PATH_SEPARATOR_WINDOWS__";function Ve(e){try{const t=e.replace(/\//g,_f).replace(/\\\\/g,Of);return encodeURIComponent(t).split(Of).join("\\\\").split(_f).join("/")}catch(t){throw new ct(t,"Failed encoding path")}}function Nf(e){return e.startsWith("/")?e:"/"+e}function Vr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function Em(e){let t=new(wm())(e).pathname;return t.length<=0&&(t="/"),Vr(t)}function We(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){return function(n){var o=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<n.length;a++){var u=n[a];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(a>0&&(u=u.replace(/^[\/]+/,"")),u=a<n.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),o.push(u))}var f=o.join("/"),l=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(t.reduce((n,o,i)=>((i===0||o!=="/"||o==="/"&&n[n.length-1]!=="/")&&n.push(o),n),[]))}var xm=Ce(542),Wr=Ce.n(xm);const Am="abcdef0123456789";function Rf(e,t){const r=e.url.replace("//",""),n=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),u=function(d,x,m,E,A,p,h){const g=h||Wr()(`${x}:${m}:${E}`);return d&&d.toLowerCase()==="md5-sess"?Wr()(`${g}:${A}:${p}`):g}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),f=Wr()(`${o}:${n}`),l=i?Wr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${f}`):Wr()(`${u}:${t.nonce}:${f}`),s={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:l,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},c=[];for(const d in s)s[d]&&(d==="qop"||d==="nc"||d==="algorithm"?c.push(`${d}=${s[d]}`):c.push(`${d}="${s[d]}"`));return`Digest ${c.join(", ")}`}function If(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Tm=Ce(101),Pf=Ce.n(Tm);function Ff(e){return Pf().decode(e)}function Cf(e,t){var r;return`Basic ${r=`${e}:${t}`,Pf().encode(r)}`}const Bn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Sm=Bn.fetch.bind(Bn),_m=Bn.Request,Om=Bn.Response;let ht=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),$t=function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e}({});function Bf(e,t,r,n,o){switch(e.authType){case ht.Auto:t&&r&&(e.headers.Authorization=Cf(t,r));break;case ht.Digest:e.digest=function(a,u,f){return{username:a,password:u,ha1:f,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,r,o);break;case ht.None:break;case ht.Password:e.headers.Authorization=Cf(t,r);break;case ht.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new ct({info:{code:$t.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Ce(345),Ce(800);const Lf="@@HOTPATCHER",Nm=()=>{};function ls(e){return{original:e,methods:[e],final:!1}}class Rm{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Lf}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Lf)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach(n=>{this.configuration.registry.hasOwnProperty(n)?r&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])}),t._configuration=this.configuration,this}execute(t){const r=this.get(t)||Nm;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r(...o)}get(t){const r=this.configuration.registry[t];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];let l=u;const s=this;for(;o.length>0;)l=[o.shift().apply(s,l)];return l[0]}}(...r.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(r):this.configuration.registry[t]=ls(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(ls(r),{original:i})}else this.configuration.registry[t]=ls(r);return this}patchInline(t,r){this.isPatched(t)||this.patch(t,r);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return this.execute(t,...o)}plugin(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach(i=>{this.patch(t,i,{chain:!0})}),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let fs=null;function Uf(){return fs||(fs=new Rm),fs}function Ln(e){return function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function jf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=null,o=[...t];for(;o.length>0;){const i=o.shift();n=n?Mf(n,i):Ln(i)}return n}function Mf(e,t){const r=Ln(e);return Object.keys(t).forEach(n=>{r.hasOwnProperty(n)?Array.isArray(t[n])?r[n]=Array.isArray(r[n])?[...r[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?r[n]=typeof r[n]=="object"&&r[n]?Mf(r[n],t[n]):Ln(t[n]):r[n]=t[n]:r[n]=t[n]}),r}function Im(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function cs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length===0)return{};const n={};return t.reduce((o,i)=>(Object.keys(i).forEach(a=>{const u=a.toLowerCase();n.hasOwnProperty(u)?o[n[u]]=i[a]:(n[u]=a,o[a]=i[a])}),o),{})}Ce(805);const Pm=typeof ArrayBuffer=="function",{toString:Fm}=Object.prototype;function kf(e){return Pm&&(e instanceof ArrayBuffer||Fm.call(e)==="[object ArrayBuffer]")}function Df(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function hs(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function ds(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const $f=hs(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=jf(e,{headers:{Authorization:Rf(e,t)}})),ds(Un(e),function(r){let n=!1;return o=function(a){return n?a:r},(i=function(){if(r.status==401)return t.hasDigestAuth=function(a,u){if(!If(a))return!1;const f=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=f.exec(l);if(!s)break;u[s[1]]=s[2]||s[3]}return u.nc+=1,u.cnonce=function(){let l="";for(let s=0;s<32;++s)l=`${l}${Am[Math.floor(16*Math.random())]}`;return l}(),!0}(r,t),function(){if(t.hasDigestAuth)return ds(Un(e=jf(e,{headers:{Authorization:Rf(e,t)}})),function(a){return a.status==401?t.hasDigestAuth=!1:t.nc++,n=!0,a})}();t.nc++}())&&i.then?i.then(o):o(i);var o,i})}),Cm=hs(function(e,t){return ds(Un(e),function(r){return r.ok?(t.authType=ht.Password,r):r.status==401&&If(r)?(t.authType=ht.Digest,Bf(t,t.username,t.password,void 0,void 0),e._digest=t.digest,$f(e)):r})}),Qe=hs(function(e,t){return t.authType===ht.Auto?Cm(e,t):e._digest?$f(e):Un(e)});function et(e,t,r){const n=Ln(e);return n.headers=cs(t.headers,n.headers||{},r.headers||{}),r.data!==void 0&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),typeof t.withCredentials=="boolean"&&(n.withCredentials=t.withCredentials),n}function Un(e){const t=Uf();return t.patchInline("request",r=>t.patchInline("fetch",Sm,r.url,function(n){let o={};const i={method:n.method};if(n.headers&&(o=cs(o,n.headers)),n.data!==void 0){const[a,u]=function(f){if(typeof f=="string")return[f,{}];if(Df(f))return[f,{}];if(kf(f))return[f,{}];if(f&&typeof f=="object")return[JSON.stringify(f),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof f)}(n.data);i.body=a,o=cs(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i}(r)),e)}var Bm=Ce(285);const jn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Lm={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Gr=e=>e.replace(/[[\]\\-]/g,"\\$&"),qf=e=>e.join(""),Um=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let i=r+1,a=!1,u=!1,f=!1,l=!1,s=r,c="";e:for(;i<e.length;){const E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!f){s=i+1;break}if(a=!0,E!=="\\"||f){if(E==="["&&!f){for(const[A,[p,h,g]]of Object.entries(Lm))if(e.startsWith(A,i)){if(c)return["$.",!1,e.length-r,!0];i+=A.length,g?o.push(p):n.push(p),u=u||h;continue e}}f=!1,c?(E>c?n.push(Gr(c)+"-"+Gr(E)):E===c&&n.push(Gr(E)),c="",i++):e.startsWith("-]",i+1)?(n.push(Gr(E+"-")),i+=2):e.startsWith("-",i+1)?(c=E,i+=2):(n.push(Gr(E)),i++)}else f=!0,i++}else l=!0,i++}if(s<i)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l)return[(d=n[0].length===2?n[0].slice(-1):n[0],d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var d;const x="["+(l?"^":"")+qf(n)+"]",m="["+(l?"":"^")+qf(o)+"]";return[n.length&&o.length?"("+x+"|"+m+")":n.length?x:m,u,s-r,!0]},Kr=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},jm=new Set(["!","?","+","*","@"]),Hf=e=>jm.has(e),ps="(?!\\.)",Mm=new Set(["[","."]),km=new Set(["..","."]),Dm=new Set("().*{}+?[]^$\\!"),gs="[^/]",Vf=gs+"*?",Wf=gs+"+?",gt=class gt{constructor(t,r){Re(this,hr);ye(this,"type");Re(this,rt);Re(this,it);Re(this,Vt,!1);Re(this,ke,[]);Re(this,Je);Re(this,zt);Re(this,fr);Re(this,Xt,!1);Re(this,Bt);Re(this,cr);Re(this,tn,!1);let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&ve(this,it,!0),ve(this,Je,r),ve(this,rt,J(this,Je)?J(J(this,Je),rt):this),ve(this,Bt,J(this,rt)===this?n:J(J(this,rt),Bt)),ve(this,fr,J(this,rt)===this?[]:J(J(this,rt),fr)),t!=="!"||J(J(this,rt),Xt)||J(this,fr).push(this),ve(this,zt,J(this,Je)?J(J(this,Je),ke).length:0)}get hasMagic(){if(J(this,it)!==void 0)return J(this,it);for(const t of J(this,ke))if(typeof t!="string"&&(t.type||t.hasMagic))return ve(this,it,!0);return J(this,it)}toString(){return J(this,cr)!==void 0?J(this,cr):this.type?ve(this,cr,this.type+"("+J(this,ke).map(t=>String(t)).join("|")+")"):ve(this,cr,J(this,ke).map(t=>String(t)).join(""))}push(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const o of r)if(o!==""){if(typeof o!="string"&&!(o instanceof gt&&J(o,Je)===this))throw new Error("invalid part: "+o);J(this,ke).push(o)}}toJSON(){var r;const t=this.type===null?J(this,ke).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...J(this,ke).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===J(this,rt)||J(J(this,rt),Xt)&&((r=J(this,Je))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(J(this,rt)===this)return!0;if(!((r=J(this,Je))!=null&&r.isStart()))return!1;if(J(this,zt)===0)return!0;const t=J(this,Je);for(let n=0;n<J(this,zt);n++){const o=J(t,ke)[n];if(!(o instanceof gt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(J(this,rt)===this||((r=J(this,Je))==null?void 0:r.type)==="!")return!0;if(!((n=J(this,Je))!=null&&n.isEnd()))return!1;if(!this.type)return(o=J(this,Je))==null?void 0:o.isEnd();const t=J(this,Je)?J(J(this,Je),ke).length:0;return J(this,zt)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new gt(this.type,t);for(const n of J(this,ke))r.copyIn(n);return r}static fromGlob(t){var o;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new gt(null,void 0,r);return qe(o=gt,Yt,Xn).call(o,t,n,0,r),n}toMMPattern(){if(this!==J(this,rt))return J(this,rt).toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||J(this,it)||J(this,Bt).nocase&&!J(this,Bt).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(J(this,Bt).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return J(this,Bt)}toRegExpSource(t){var f;const r=t??!!J(this,Bt).dot;if(J(this,rt)===this&&qe(this,hr,Uc).call(this),!this.type){const l=this.isStart()&&this.isEnd(),s=J(this,ke).map(x=>{var h;const[m,E,A,p]=typeof x=="string"?qe(h=gt,Yt,jc).call(h,x,J(this,it),l):x.toRegExpSource(t);return ve(this,it,J(this,it)||A),ve(this,Vt,J(this,Vt)||p),m}).join("");let c="";if(this.isStart()&&typeof J(this,ke)[0]=="string"&&(J(this,ke).length!==1||!km.has(J(this,ke)[0]))){const x=Mm,m=r&&x.has(s.charAt(0))||s.startsWith("\\.")&&x.has(s.charAt(2))||s.startsWith("\\.\\.")&&x.has(s.charAt(4)),E=!r&&!t&&x.has(s.charAt(0));c=m?"(?!(?:^|/)\\.\\.?(?:$|/))":E?ps:""}let d="";return this.isEnd()&&J(J(this,rt),Xt)&&((f=J(this,Je))==null?void 0:f.type)==="!"&&(d="(?:$|\\/)"),[c+s+d,Kr(s),ve(this,it,!!J(this,it)),J(this,Vt)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=qe(this,hr,Ks).call(this,r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const l=this.toString();return ve(this,ke,[l]),this.type=null,ve(this,it,void 0),[l,Kr(this.toString()),!1,!1]}let a=!n||t||r?"":qe(this,hr,Ks).call(this,!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&J(this,tn)?(this.isStart()&&!r?ps:"")+Wf:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":ps)+Vf+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,Kr(i),ve(this,it,!!J(this,it)),J(this,Vt)]}};rt=new WeakMap,it=new WeakMap,Vt=new WeakMap,ke=new WeakMap,Je=new WeakMap,zt=new WeakMap,fr=new WeakMap,Xt=new WeakMap,Bt=new WeakMap,cr=new WeakMap,tn=new WeakMap,hr=new WeakSet,Uc=function(){if(this!==J(this,rt))throw new Error("should only call on root");if(J(this,Xt))return this;let t;for(this.toString(),ve(this,Xt,!0);t=J(this,fr).pop();){if(t.type!=="!")continue;let r=t,n=J(r,Je);for(;n;){for(let o=J(r,zt)+1;!n.type&&o<J(n,ke).length;o++)for(const i of J(t,ke)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(J(n,ke)[o])}r=n,n=J(r,Je)}}return this},Yt=new WeakSet,Xn=function(t,r,n,o){var x,m;let i=!1,a=!1,u=-1,f=!1;if(r.type===null){let E=n,A="";for(;E<t.length;){const p=t.charAt(E++);if(i||p==="\\")i=!i,A+=p;else if(a)E===u+1?p!=="^"&&p!=="!"||(f=!0):p!=="]"||E===u+2&&f||(a=!1),A+=p;else if(p!=="[")if(o.noext||!Hf(p)||t.charAt(E)!=="(")A+=p;else{r.push(A),A="";const h=new gt(p,r);E=qe(x=gt,Yt,Xn).call(x,t,h,E,o),r.push(h)}else a=!0,u=E,f=!1,A+=p}return r.push(A),E}let l=n+1,s=new gt(null,r);const c=[];let d="";for(;l<t.length;){const E=t.charAt(l++);if(i||E==="\\")i=!i,d+=E;else if(a)l===u+1?E!=="^"&&E!=="!"||(f=!0):E!=="]"||l===u+2&&f||(a=!1),d+=E;else if(E!=="[")if(Hf(E)&&t.charAt(l)==="("){s.push(d),d="";const A=new gt(E,s);s.push(A),l=qe(m=gt,Yt,Xn).call(m,t,A,l,o)}else if(E!=="|"){if(E===")")return d===""&&J(r,ke).length===0&&ve(r,tn,!0),s.push(d),d="",r.push(...c,s),l;d+=E}else s.push(d),d="",c.push(s),s=new gt(null,r);else a=!0,u=l,f=!1,d+=E}return r.type=null,ve(r,it,void 0),ve(r,ke,[t.substring(n-1)]),l},Ks=function(t){return J(this,ke).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return ve(this,Vt,J(this,Vt)||a),n}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},jc=function(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",a=!1;for(let u=0;u<t.length;u++){const f=t.charAt(u);if(o)o=!1,i+=(Dm.has(f)?"\\":"")+f;else if(f!=="\\"){if(f==="["){const[l,s,c,d]=Um(t,u);if(c){i+=l,a=a||s,u+=c-1,r=r||d;continue}}f!=="*"?f!=="?"?i+=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=gs,r=!0):(i+=n&&t==="*"?Wf:Vf,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,Kr(t),!!r,a]},Re(gt,Yt);let Mn=gt;const lt=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return jn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new kn(t,r).match(e)},$m=/^\*+([^+@!?\*\[\(]*)$/,qm=e=>t=>!t.startsWith(".")&&t.endsWith(e),Hm=e=>t=>t.endsWith(e),Vm=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Wm=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Gm=/^\*+\.\*+$/,Km=e=>!e.startsWith(".")&&e.includes("."),zm=e=>e!=="."&&e!==".."&&e.includes("."),Xm=/^\.\*+$/,Ym=e=>e!=="."&&e!==".."&&e.startsWith("."),Jm=/^\*+$/,Zm=e=>e.length!==0&&!e.startsWith("."),Qm=e=>e.length!==0&&e!=="."&&e!=="..",eb=/^\?+([^+@!?\*\[\(]*)?$/,tb=e=>{let[t,r=""]=e;const n=Gf([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},rb=e=>{let[t,r=""]=e;const n=Kf([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},nb=e=>{let[t,r=""]=e;const n=Kf([t]);return r?o=>n(o)&&o.endsWith(r):n},ib=e=>{let[t,r=""]=e;const n=Gf([t]);return r?o=>n(o)&&o.endsWith(r):n},Gf=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},Kf=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},zf=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";lt.sep=zf==="win32"?"\\":"/";const xt=Symbol("globstar **");lt.GLOBSTAR=xt,lt.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>lt(r,e,t)};const At=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};lt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return lt;const t=lt;return Object.assign(function(r,n){return t(r,n,At(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends t.Minimatch{constructor(r){super(r,At(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(At(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,At(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(r,At(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,At(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,At(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,At(e,n))},defaults:r=>t.defaults(At(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,At(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,At(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,At(e,o))},sep:t.sep,GLOBSTAR:xt})};const Xf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return jn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Bm(e)};lt.braceExpand=Xf,lt.makeRe=function(e){return new kn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},lt.match=function(e,t){const r=new kn(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter(n=>r.match(n)),r.options.nonull&&!e.length&&e.push(t),e};const Yf=/[?*]|[+@!]\(.*?\)|\[|\]/;class kn{constructor(t){ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"regexp");let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};jn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||zf,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((i,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&Yf.test(i[2])||Yf.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(f)return[...i.slice(0,4),...i.slice(4).map(s=>this.parse(s))];if(l)return[i[0],...i.slice(1).map(s=>this.parse(s))]}return i.map(f=>this.parse(f))});if(this.debug(this.pattern,o),this.set=o.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){const a=this.set[i];a[0]===""&&a[1]===""&&this.globParts[i][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=r>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const i=n[n.length-1];return o==="**"&&i==="**"?n:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(o),n)},[])).length===0?[""]:r)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const i=t[o];o===1&&i===""&&t[0]===""||i!=="."&&i!==""||(r=!0,t.splice(o,1),o--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a>o&&n.splice(o+1,a-o);let u=n[o+1];const f=n[o+2],l=n[o+3];if(u!==".."||!f||f==="."||f===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(o,1);const s=n.slice(0);s[o]="**",t.push(s),o--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||u!=="."&&u!==""||(r=!0,n.splice(a,1),a--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){const a=n[i-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;const u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,a=[],u="";for(;o<t.length&&i<r.length;)if(t[o]===r[i])a.push(u==="b"?r[i]:t[o]),o++,i++;else if(n&&t[o]==="**"&&r[i]===t[o+1])a.push(t[o]),o++;else if(n&&r[i]==="**"&&t[o]===r[i+1])a.push(r[i]),i++;else if(t[o]!=="*"||!r[i]||!this.options.dot&&r[i].startsWith(".")||r[i]==="**"){if(r[i]!=="*"||!t[o]||!this.options.dot&&t[o].startsWith(".")||t[o]==="**"||u==="a")return!1;u="b",a.push(r[i]),o++,i++}else{if(u==="b")return!1;u="a",a.push(t[o]),o++,i++}return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const E=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),A=!E&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),p=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),h=A?3:E?0:void 0,g=!p&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:p?0:void 0;if(typeof h=="number"&&typeof g=="number"){const[y,w]=[t[h],r[g]];y.toLowerCase()===w.toLowerCase()&&(r[g]=y,g>h?r=r.slice(g):h>g&&(t=t.slice(h)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var a=0,u=0,f=t.length,l=r.length;a<f&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],c=t[a];if(this.debug(r,s,c),s===!1)return!1;if(s===xt){this.debug("GLOBSTAR",[r,s,c]);var d=a,x=u+1;if(x===l){for(this.debug("** at the end");a<f;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;d<f;){var m=t[d];if(this.debug(`
43
- globstar while`,t,d,r,x,m),this.matchOne(t.slice(d),r.slice(x),n))return this.debug("globstar found match!",d,f,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,d,r,x);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug(`
44
- >>> no match, partial?`,t,d,r,x),d!==f))}let E;if(typeof s=="string"?(E=c===s,this.debug("string match",s,c,E)):(E=s.test(c),this.debug("pattern match",s,c,E)),!E)return!1}if(a===f&&u===l)return!0;if(a===f)return n;if(u===l)return a===f-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return Xf(this.pattern,this.options)}parse(t){jn(t);const r=this.options;if(t==="**")return xt;if(t==="")return"";let n,o=null;(n=t.match(Jm))?o=r.dot?Qm:Zm:(n=t.match($m))?o=(r.nocase?r.dot?Wm:Vm:r.dot?Hm:qm)(n[1]):(n=t.match(eb))?o=(r.nocase?r.dot?rb:tb:r.dot?nb:ib)(n):(n=t.match(Gm))?o=r.dot?zm:Km:(n=t.match(Xm))&&(o=Ym);const i=Mn.fromGlob(t,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(r.nocase?["i"]:[]);let i=t.map(f=>{const l=f.map(s=>{if(s instanceof RegExp)for(const c of s.flags.split(""))o.add(c);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===xt?xt:s._src});return l.forEach((s,c)=>{const d=l[c+1],x=l[c-1];s===xt&&x!==xt&&(x===void 0?d!==void 0&&d!==xt?l[c+1]="(?:\\/|"+n+"\\/)?"+d:l[c]=n:d===void 0?l[c-1]=x+"(?:\\/|"+n+")?":d!==xt&&(l[c-1]=x+"(?:\\/|\\/"+n+"\\/)"+d,l[c+1]=xt))}),l.filter(s=>s!==xt).join("/")}).join("|");const[a,u]=t.length>1?["(?:",")"]:["",""];i="^"+a+i+u+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let a=o[o.length-1];if(!a)for(let u=o.length-2;!a&&u>=0;u--)a=o[u];for(let u=0;u<i.length;u++){const f=i[u];let l=o;if(n.matchBase&&f.length===1&&(l=[a]),this.matchOne(l,f,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return lt.defaults(t).Minimatch}}function ys(e){const t=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function tt(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw ys(t);return t}function ur(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Im(e.headers):{},status:e.status,statusText:e.statusText}:t}lt.AST=Mn,lt.Minimatch=kn,lt.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},lt.unescape=Kr;const ob=(Jf=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=et({url:We(e.remoteURL,Ve(t)),method:"COPY",headers:{Destination:We(e.remoteURL,Ve(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){tt(e,u)},(i=Qe(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(Jf.apply(this,e))}catch(r){return Promise.reject(r)}});var Jf,ms=Ce(635),sb=Ce(829),qt=Ce.n(sb),Sr=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Sr||{});function Dn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sr.Original;const n=qt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function zr(e){return new Promise(t=>{t(function(r){const{multistatus:n}=r;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(n)?n[0]:n};return qt().set(o,"multistatus.response",Dn(o,"multistatus.response",Sr.Array)),qt().set(o,"multistatus.response",qt().get(o,"multistatus.response").map(i=>function(a){const u=Object.assign({},a);return u.status?qt().set(u,"status",Dn(u,"status",Sr.Object)):(qt().set(u,"propstat",Dn(u,"propstat",Sr.Object)),qt().set(u,"propstat.prop",Dn(u,"propstat.prop",Sr.Object))),u}(i))),o}(new ms.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(r,n,o)=>n==="true"||n==="false"?n==="true":n,tagValueProcessor(r,n,o){if(!o.endsWith("propstat.prop.displayname"))return n}}).parse(e)))})}function $n(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:n=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:a=null,getetag:u=null}=e,f=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Cn().basename(t),lastmod:n,size:parseInt(o,10),type:f,etag:typeof u=="string"?u.replace(/"/g,""):null};return f==="file"&&(l.mime=a&&typeof a=="string"?a.split(";")[0]:""),r&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),l.props=e),l}function Zf(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{e.multistatus.response[0].propstat&&(n=e.multistatus.response[0])}catch{}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=n,[a,u,f]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${f}`);throw s.status=l,s}return $n(o,Vr(t),r)}function Qf(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function bs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const ws=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=et({url:We(e.remoteURL,Ve(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return bs(Qe(o,e),function(i){return tt(e,i),bs(i.text(),function(a){return bs(zr(a),function(u){const f=Zf(u,t,n);return ur(i,f,n)})})})});function ec(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const ab=tc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=function(i){if(!i||i==="/")return[];let a=i;const u=[];do u.push(a),a=Cn().dirname(a);while(a&&a!=="/");return u}(Vr(t));n.sort((i,a)=>i.length>a.length?1:a.length>i.length?-1:0);let o=!1;return function(i,a,u){if(typeof i[nc]=="function"){let E=function(A){try{for(;!(f=c.next()).done;)if((A=a(f.value))&&A.then){if(!ic(A))return void A.then(E,s||(s=dt.bind(null,l=new _r,2)));A=A.v}l?dt(l,1,A):l=A}catch(p){dt(l||(l=new _r),2,p)}};var f,l,s,c=i[nc]();if(E(),c.return){var d=function(A){try{f.done||c.return()}catch{}return A};if(l&&l.then)return l.then(d,function(A){throw d(A)});d()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var x=[],m=0;m<i.length;m++)x.push(i[m]);return function(E,A,p){var h,g,y=-1;return function w(T){try{for(;++y<E.length&&(!p||!p());)if((T=A(y))&&T.then){if(!ic(T))return void T.then(w,g||(g=dt.bind(null,h=new _r,2)));T=T.v}h?dt(h,1,T):h=T}catch(P){dt(h||(h=new _r),2,P)}}(),h}(x,function(E){return a(x[E])},u)}(n,function(i){return a=function(){return function(f,l){try{var s=ec(ws(e,i),function(c){if(c.type!=="directory")throw new Error(`Path includes a file: ${t}`)})}catch(c){return l(c)}return s&&s.then?s.then(void 0,l):s}(0,function(f){const l=f;return function(){if(l.status===404)return o=!0,rc(vs(e,i,{...r,recursive:!1}));throw f}()})},(u=function(){if(o)return rc(vs(e,i,{...r,recursive:!1}))}())&&u.then?u.then(a):a();var a,u},function(){return!1})});function tc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function ub(){}function rc(e,t){return e&&e.then?e.then(ub):Promise.resolve()}const nc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function dt(e,t,r){if(!e.s){if(r instanceof _r){if(!r.s)return void(r.o=dt.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(dt.bind(null,e,t),dt.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const _r=function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const i=1&o?t:r;if(i){try{dt(n,1,i(this.v))}catch(a){dt(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?dt(n,1,t?t(a):a):r?dt(n,1,r(a)):dt(n,2,a)}catch(a){dt(n,2,a)}},n},e}();function ic(e){return e instanceof _r&&1&e.s}const vs=tc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return ab(e,t,r);const n=et({url:We(e.remoteURL,(o=Ve(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return ec(Qe(n,e),function(i){tt(e,i)})});var lb=Ce(388),oc=Ce.n(lb);const fb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let u=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(u=`${u}${r.range.end}`),n.Range=u}const o=et({url:We(e.remoteURL,Ve(t)),method:"GET",headers:n},e,r);return a=function(u){if(tt(e,u),n.Range&&u.status!==206){const f=new Error(`Invalid response code for partial request: ${u.status}`);throw f.status=u.status,f}return r.callback&&setTimeout(()=>{r.callback(u)},0),u.body},(i=Qe(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),cb=()=>{},hb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){r.url||(r.url=We(e.remoteURL,Ve(t)));const n=et(r,e,{});return i=function(a){return tt(e,a),a},(o=Qe(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),db=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=et({url:We(e.remoteURL,Ve(t)),method:"DELETE"},e,r);return i=function(a){tt(e,a)},(o=Qe(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),pb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(n,o){try{var i=(a=ws(e,t,r),u=function(){return!0},f?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,f;return i&&i.then?i.then(void 0,o):i}(0,function(n){if(n.status===404)return!1;throw n})});function Es(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const gb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=et({url:We(e.remoteURL,Ve(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Es(Qe(n,e),function(o){return tt(e,o),Es(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Es(zr(i),function(a){const u=Nf(t);let f=function(l,s,c){let d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],x=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Cn().join(s,"/"),{multistatus:{response:E}}=l,A=E.map(p=>{const h=function(y){try{return y.replace(/^https?:\/\/[^\/]+/,"")}catch(w){throw new ct(w,"Failed normalising HREF")}}(p.href),{propstat:{prop:g}}=p;return $n(g,m==="/"?decodeURIComponent(Vr(h)):Vr(Cn().relative(decodeURIComponent(m),decodeURIComponent(h))),d)});return x?A:A.filter(p=>p.basename&&(p.type==="file"||p.filename!==c.replace(/\/$/,"")))}(a,Nf(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(f=function(l,s){return l.filter(c=>lt(c.filename,s,{matchBase:!0}))}(f,r.glob)),ur(o,f,r.details)})})})});function xs(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const yb=xs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=et({url:We(e.remoteURL,Ve(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[wb]},e,r);return qn(Qe(n,e),function(o){return tt(e,o),qn(o.text(),function(i){return ur(o,i,r.details)})})});function qn(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const mb=xs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=et({url:We(e.remoteURL,Ve(t)),method:"GET"},e,r);return qn(Qe(n,e),function(o){let i;return tt(e,o),function(a,u){var f=a();return f&&f.then?f.then(u):u()}(function(){return qn(o.arrayBuffer(),function(a){i=a})},function(){return ur(o,i,r.details)})})}),bb=xs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:n="binary"}=r;if(n!=="binary"&&n!=="text")throw new ct({info:{code:$t.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?yb(e,t,r):mb(e,t,r)}),wb=e=>e;function vb(e){return new ms.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(sc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function sc(e,t){const r={...e};for(const n in r)r.hasOwnProperty(n)&&(r[n]&&typeof r[n]=="object"&&n.indexOf(":")===-1?(r[`${t}:${n}`]=sc(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function As(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function ac(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Eb=ac(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=et({url:We(e.remoteURL,Ve(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return As(Qe(o,e),function(i){if(tt(e,i),i.status!==204&&i.status!==200)throw ys(i)})}),xb=ac(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=Ab}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=et({url:We(e.remoteURL,Ve(t)),method:"LOCK",headers:i,data:vb(e.contactHref)},e,r);return As(Qe(a,e),function(u){return tt(e,u),As(u.text(),function(f){const l=(d=f,new ms.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(d)),s=qt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),c=qt().get(l,"prop.lockdiscovery.activelock.timeout");var d;if(!s)throw ys(u,"No lock token received: ");return{token:s,serverTimeout:c}})})}),Ab="Infinite, Second-4100000000";function Ts(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Tb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=et({url:We(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Ts(Qe(n,e),function(o){return tt(e,o),Ts(o.text(),function(i){return Ts(zr(i),function(a){const u=function(f){try{const[l]=f.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":c}}}=l;return s!==void 0&&c!==void 0?{used:parseInt(String(s),10),available:Qf(c)}:null}catch{}return null}(a);return ur(o,u,t.details)})})})});function Ss(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Sb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=et({url:We(e.remoteURL,Ve(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Ss(Qe(o,e),function(i){return tt(e,i),Ss(i.text(),function(a){return Ss(zr(a),function(u){const f=function(l,s,c){const d={truncated:!1,results:[]};return d.truncated=l.multistatus.response.some(x=>{var m,E;return((E=(x.status||((m=x.propstat)==null?void 0:m.status)).split(" ",3))==null?void 0:E[1])==="507"&&x.href.replace(/\/$/,"").endsWith(Ve(s).replace(/\/$/,""))}),l.multistatus.response.forEach(x=>{if(x.propstat===void 0)return;const m=x.href.split("/").map(decodeURIComponent).join("/");d.results.push($n(x.propstat.prop,m,c))}),d}(u,t,n);return ur(i,f,n)})})})}),_b=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=et({url:We(e.remoteURL,Ve(t)),method:"MOVE",headers:{Destination:We(e.remoteURL,Ve(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){tt(e,u)},(i=Qe(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});var Ob=Ce(172);const Nb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=n,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${function(s){if(kf(s))return s.byteLength;if(Df(s))return s.length;if(typeof s=="string")return(0,Ob.d)(s);throw new ct({info:{code:$t.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),i||(a["If-None-Match"]="*");const u=et({url:We(e.remoteURL,Ve(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{tt(e,s)}catch(c){const d=c;if(d.status!==412||i)throw d;return!1}return!0},(f=Qe(u,e))&&f.then||(f=Promise.resolve(f)),l?f.then(l):f;var f,l}),uc=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=et({url:We(e.remoteURL,Ve(t)),method:"OPTIONS"},e,r);return i=function(a){try{tt(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map(u=>u.trim()),server:a.headers.get("Server")??""}},(o=Qe(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Xr(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Rb=_s(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ct({info:{code:$t.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},u=et({url:We(e.remoteURL,Ve(t)),method:"PUT",headers:a,data:o},e,i);return Xr(Qe(u,e),function(f){tt(e,f)})});function lc(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Ib=_s(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ct({info:{code:$t.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},u=et({url:We(e.remoteURL,Ve(t)),method:"PATCH",headers:a,data:o},e,i);return Xr(Qe(u,e),function(f){tt(e,f)})});function _s(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Pb=_s(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Xr(uc(e,t,i),function(a){let u=!1;return lc(function(){if(a.compliance.includes("sabredav-partialupdate"))return Xr(Ib(e,t,r,n,o,i),function(f){return u=!0,f})},function(f){let l=!1;return u?f:lc(function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Xr(Rb(e,t,r,n,o,i),function(s){return l=!0,s})},function(s){if(l)return s;throw new ct({info:{code:$t.NotSupported}},"Not supported")})})})}),Fb="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Cb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Fb,ha1:i,headers:a={},httpAgent:u,httpsAgent:f,password:l,token:s,username:c,withCredentials:d}=t;let x=r;x||(x=c||l?ht.Password:ht.None);const m={authType:x,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:f,password:l,remotePath:Em(e),remoteURL:e,token:s,username:c,withCredentials:d};return Bf(m,c,l,s,i),{copyFile:(E,A,p)=>ob(m,E,A,p),createDirectory:(E,A)=>vs(m,E,A),createReadStream:(E,A)=>function(p,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const y=new(oc()).PassThrough;return fb(p,h,g).then(w=>{w.pipe(y)}).catch(w=>{y.emit("error",w)}),y}(m,E,A),createWriteStream:(E,A,p)=>function(h,g){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cb;const T=new(oc()).PassThrough,P={};y.overwrite===!1&&(P["If-None-Match"]="*");const I=et({url:We(h.remoteURL,Ve(g)),method:"PUT",headers:P,data:T,maxRedirects:0},h,y);return Qe(I,h).then(O=>tt(h,O)).then(O=>{setTimeout(()=>{w(O)},0)}).catch(O=>{T.emit("error",O)}),T}(m,E,A,p),customRequest:(E,A)=>hb(m,E,A),deleteFile:(E,A)=>db(m,E,A),exists:(E,A)=>pb(m,E,A),getDirectoryContents:(E,A)=>gb(m,E,A),getFileContents:(E,A)=>bb(m,E,A),getFileDownloadLink:E=>function(A,p){let h=We(A.remoteURL,Ve(p));const g=/^https:/i.test(h)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=Ff(A.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ct({info:{code:$t.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return h}(m,E),getFileUploadLink:E=>function(A,p){let h=`${We(A.remoteURL,Ve(p))}?Content-Type=application/octet-stream`;const g=/^https:/i.test(h)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=Ff(A.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ct({info:{code:$t.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return h}(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>Tb(m,E),lock:(E,A)=>xb(m,E,A),moveFile:(E,A,p)=>_b(m,E,A,p),putFileContents:(E,A,p)=>Nb(m,E,A,p),partialUpdateFileContents:(E,A,p,h,g)=>Pb(m,E,A,p,h,g),getDAVCompliance:E=>uc(m,E),search:(E,A)=>Sb(m,E,A),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,A)=>ws(m,E,A),unlock:(E,A,p)=>Eb(m,E,A,p)}}Et.hT,Et.O4,Et.Kd,Et.YK;var Bb=Et.UU;Et.Gu,Et.ky;var Lb=Et.h4,Ub=Et.ch;Et.hq,Et.i5;const st=[];for(let e=0;e<256;++e)st.push((e+256).toString(16).slice(1));function jb(e,t=0){return(st[e[t+0]]+st[e[t+1]]+st[e[t+2]]+st[e[t+3]]+"-"+st[e[t+4]]+st[e[t+5]]+"-"+st[e[t+6]]+st[e[t+7]]+"-"+st[e[t+8]]+st[e[t+9]]+"-"+st[e[t+10]]+st[e[t+11]]+st[e[t+12]]+st[e[t+13]]+st[e[t+14]]+st[e[t+15]]).toLowerCase()}let Os;const Mb=new Uint8Array(16);function kb(){if(!Os){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Os=crypto.getRandomValues.bind(crypto)}return Os(Mb)}var fc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Db(e,t,r){var o;if(fc.randomUUID&&!e)return fc.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??kb();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,jb(n)}var Ns={},Rs={},cc;function Is(){return cc||(cc=1,function(e){const t=":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",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",o=new RegExp("^"+n+"$"),i=function(u,f){const l=[];let s=f.exec(u);for(;s;){const c=[];c.startIndex=f.lastIndex-s[0].length;const d=s.length;for(let x=0;x<d;x++)c.push(s[x]);l.push(c),s=f.exec(u)}return l},a=function(u){const f=o.exec(u);return!(f===null||typeof f>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,f,l){if(f){const s=Object.keys(f),c=s.length;for(let d=0;d<c;d++)l==="strict"?u[s[d]]=[f[s[d]]]:u[s[d]]=f[s[d]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n}(Rs)),Rs}var hc;function dc(){if(hc)return Ns;hc=1;const e=Is(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ns.validate=function(p,h){h=Object.assign({},t,h);const g=[];let y=!1,w=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let T=0;T<p.length;T++)if(p[T]==="<"&&p[T+1]==="?"){if(T+=2,T=n(p,T),T.err)return T}else if(p[T]==="<"){let P=T;if(T++,p[T]==="!"){T=o(p,T);continue}else{let I=!1;p[T]==="/"&&(I=!0,T++);let O="";for(;T<p.length&&p[T]!==">"&&p[T]!==" "&&p[T]!==" "&&p[T]!==`
45
- `&&p[T]!=="\r";T++)O+=p[T];if(O=O.trim(),O[O.length-1]==="/"&&(O=O.substring(0,O.length-1),T--),!m(O)){let L;return O.trim().length===0?L="Invalid space after '<'.":L="Tag '"+O+"' is an invalid name.",d("InvalidTag",L,E(p,T))}const j=u(p,T);if(j===!1)return d("InvalidAttr","Attributes for '"+O+"' have open quote.",E(p,T));let G=j.value;if(T=j.index,G[G.length-1]==="/"){const L=T-G.length;G=G.substring(0,G.length-1);const D=l(G,h);if(D===!0)y=!0;else return d(D.err.code,D.err.msg,E(p,L+D.err.line))}else if(I)if(j.tagClosed){if(G.trim().length>0)return d("InvalidTag","Closing tag '"+O+"' can't have attributes or invalid starting.",E(p,P));if(g.length===0)return d("InvalidTag","Closing tag '"+O+"' has not been opened.",E(p,P));{const L=g.pop();if(O!==L.tagName){let D=E(p,L.tagStartPos);return d("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+D.line+", col "+D.col+") instead of closing tag '"+O+"'.",E(p,P))}g.length==0&&(w=!0)}}else return d("InvalidTag","Closing tag '"+O+"' doesn't have proper closing.",E(p,T));else{const L=l(G,h);if(L!==!0)return d(L.err.code,L.err.msg,E(p,T-G.length+L.err.line));if(w===!0)return d("InvalidXml","Multiple possible root nodes found.",E(p,T));h.unpairedTags.indexOf(O)!==-1||g.push({tagName:O,tagStartPos:P}),y=!0}for(T++;T<p.length;T++)if(p[T]==="<")if(p[T+1]==="!"){T++,T=o(p,T);continue}else if(p[T+1]==="?"){if(T=n(p,++T),T.err)return T}else break;else if(p[T]==="&"){const L=c(p,T);if(L==-1)return d("InvalidChar","char '&' is not expected.",E(p,T));T=L}else if(w===!0&&!r(p[T]))return d("InvalidXml","Extra text at the end",E(p,T));p[T]==="<"&&T--}}else{if(r(p[T]))continue;return d("InvalidChar","char '"+p[T]+"' is not expected.",E(p,T))}if(y){if(g.length==1)return d("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",E(p,g[0].tagStartPos));if(g.length>0)return d("InvalidXml","Invalid '"+JSON.stringify(g.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return d("InvalidXml","Start tag expected.",1);return!0};function r(p){return p===" "||p===" "||p===`
46
- `||p==="\r"}function n(p,h){const g=h;for(;h<p.length;h++)if(p[h]=="?"||p[h]==" "){const y=p.substr(g,h-g);if(h>5&&y==="xml")return d("InvalidXml","XML declaration allowed only at the start of the document.",E(p,h));if(p[h]=="?"&&p[h+1]==">"){h++;break}else continue}return h}function o(p,h){if(p.length>h+5&&p[h+1]==="-"&&p[h+2]==="-"){for(h+=3;h<p.length;h++)if(p[h]==="-"&&p[h+1]==="-"&&p[h+2]===">"){h+=2;break}}else if(p.length>h+8&&p[h+1]==="D"&&p[h+2]==="O"&&p[h+3]==="C"&&p[h+4]==="T"&&p[h+5]==="Y"&&p[h+6]==="P"&&p[h+7]==="E"){let g=1;for(h+=8;h<p.length;h++)if(p[h]==="<")g++;else if(p[h]===">"&&(g--,g===0))break}else if(p.length>h+9&&p[h+1]==="["&&p[h+2]==="C"&&p[h+3]==="D"&&p[h+4]==="A"&&p[h+5]==="T"&&p[h+6]==="A"&&p[h+7]==="["){for(h+=8;h<p.length;h++)if(p[h]==="]"&&p[h+1]==="]"&&p[h+2]===">"){h+=2;break}}return h}const i='"',a="'";function u(p,h){let g="",y="",w=!1;for(;h<p.length;h++){if(p[h]===i||p[h]===a)y===""?y=p[h]:y!==p[h]||(y="");else if(p[h]===">"&&y===""){w=!0;break}g+=p[h]}return y!==""?!1:{value:g,index:h,tagClosed:w}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(p,h){const g=e.getAllMatches(p,f),y={};for(let w=0;w<g.length;w++){if(g[w][1].length===0)return d("InvalidAttr","Attribute '"+g[w][2]+"' has no space in starting.",A(g[w]));if(g[w][3]!==void 0&&g[w][4]===void 0)return d("InvalidAttr","Attribute '"+g[w][2]+"' is without value.",A(g[w]));if(g[w][3]===void 0&&!h.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+g[w][2]+"' is not allowed.",A(g[w]));const T=g[w][2];if(!x(T))return d("InvalidAttr","Attribute '"+T+"' is an invalid name.",A(g[w]));if(!y.hasOwnProperty(T))y[T]=1;else return d("InvalidAttr","Attribute '"+T+"' is repeated.",A(g[w]))}return!0}function s(p,h){let g=/\d/;for(p[h]==="x"&&(h++,g=/[\da-fA-F]/);h<p.length;h++){if(p[h]===";")return h;if(!p[h].match(g))break}return-1}function c(p,h){if(h++,p[h]===";")return-1;if(p[h]==="#")return h++,s(p,h);let g=0;for(;h<p.length;h++,g++)if(!(p[h].match(/\w/)&&g<20)){if(p[h]===";")break;return-1}return h}function d(p,h,g){return{err:{code:p,msg:h,line:g.line||g,col:g.col}}}function x(p){return e.isName(p)}function m(p){return e.isName(p)}function E(p,h){const g=p.substring(0,h).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function A(p){return p.startIndex+p[1].length}return Ns}var Hn={},pc;function $b(){if(pc)return Hn;pc=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,n,o){return r}},t=function(r){return Object.assign({},e,r)};return Hn.buildOptions=t,Hn.defaultOptions=e,Hn}var Ps,gc;function qb(){if(gc)return Ps;gc=1;class e{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child})}}return Ps=e,Ps}var Fs,yc;function Hb(){if(yc)return Fs;yc=1;const e=Is();function t(l,s){const c={};if(l[s+3]==="O"&&l[s+4]==="C"&&l[s+5]==="T"&&l[s+6]==="Y"&&l[s+7]==="P"&&l[s+8]==="E"){s=s+9;let d=1,x=!1,m=!1,E="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(x&&o(l,s)){s+=7;let A,p;[A,p,s]=r(l,s+1),p.indexOf("&")===-1&&(c[f(A)]={regx:RegExp(`&${A};`,"g"),val:p})}else if(x&&i(l,s))s+=8;else if(x&&a(l,s))s+=8;else if(x&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");d++,E=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,d--):d--,d===0)break}else l[s]==="["?x=!0:E+=l[s];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:c,i:s}}function r(l,s){let c="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)c+=l[s];if(c=c.trim(),c.indexOf(" ")!==-1)throw new Error("External entites are not supported");const d=l[s++];let x="";for(;s<l.length&&l[s]!==d;s++)x+=l[s];return[c,x,s]}function n(l,s){return l[s+1]==="!"&&l[s+2]==="-"&&l[s+3]==="-"}function o(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="N"&&l[s+4]==="T"&&l[s+5]==="I"&&l[s+6]==="T"&&l[s+7]==="Y"}function i(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="L"&&l[s+4]==="E"&&l[s+5]==="M"&&l[s+6]==="E"&&l[s+7]==="N"&&l[s+8]==="T"}function a(l,s){return l[s+1]==="!"&&l[s+2]==="A"&&l[s+3]==="T"&&l[s+4]==="T"&&l[s+5]==="L"&&l[s+6]==="I"&&l[s+7]==="S"&&l[s+8]==="T"}function u(l,s){return l[s+1]==="!"&&l[s+2]==="N"&&l[s+3]==="O"&&l[s+4]==="T"&&l[s+5]==="A"&&l[s+6]==="T"&&l[s+7]==="I"&&l[s+8]==="O"&&l[s+9]==="N"}function f(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return Fs=t,Fs}var Cs,mc;function Vb(){if(mc)return Cs;mc=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function n(a,u={}){if(u=Object.assign({},r,u),!a||typeof a!="string")return a;if(a==="0")return 0;let f=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(f))return a;if(u.hex&&e.test(f))return i(f,16);if(f.search(/[eE]/)!==-1){const l=f.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)f=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(f):a}else return a}else{const l=t.exec(f);if(l){const s=l[1],c=l[2];let d=o(l[3]);if(!u.leadingZeros&&c.length>0&&s&&f[2]!==".")return a;if(!u.leadingZeros&&c.length>0&&!s&&f[1]!==".")return a;if(u.leadingZeros&&c===a)return 0;{const x=Number(f),m=""+x;return m.search(/[eE]/)!==-1?u.eNotation?x:a:f.indexOf(".")!==-1?m==="0"&&d===""||m===d||s&&m==="-"+d?x:a:c?d===m||s+d===m?x:a:f===m||f===s+m?x:a}}else return a}}function o(a){return a&&a.indexOf(".")!==-1&&(a=a.replace(/0+$/,""),a==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a}function i(a,u){if(parseInt)return parseInt(a,u);if(Number.parseInt)return Number.parseInt(a,u);if(window&&window.parseInt)return window.parseInt(a,u);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return Cs=n,Cs}var Bs,bc;function wc(){if(bc)return Bs;bc=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}return Bs=e,Bs}var Ls,vc;function Wb(){if(vc)return Ls;vc=1;const e=Is(),t=qb(),r=Hb(),n=Vb(),o=wc();class i{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=a,this.parseXml=c,this.parseTextData=u,this.resolveNameSpace=f,this.buildAttributesMap=s,this.isItStopNode=E,this.replaceEntitiesValue=x,this.readStopNodeData=g,this.saveTextToParentTag=m,this.addChild=d,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(w){const T=Object.keys(w);for(let P=0;P<T.length;P++){const I=T[P];this.lastEntities[I]={regex:new RegExp("&"+I+";","g"),val:w[I]}}}function u(w,T,P,I,O,j,G){if(w!==void 0&&(this.options.trimValues&&!I&&(w=w.trim()),w.length>0)){G||(w=this.replaceEntitiesValue(w));const L=this.options.tagValueProcessor(T,w,P,O,j);return L==null?w:typeof L!=typeof w||L!==w?L:this.options.trimValues?y(w,this.options.parseTagValue,this.options.numberParseOptions):w.trim()===w?y(w,this.options.parseTagValue,this.options.numberParseOptions):w}}function f(w){if(this.options.removeNSPrefix){const T=w.split(":"),P=w.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(w=P+T[1])}return w}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(w,T,P){if(this.options.ignoreAttributes!==!0&&typeof w=="string"){const I=e.getAllMatches(w,l),O=I.length,j={};for(let G=0;G<O;G++){const L=this.resolveNameSpace(I[G][1]);if(this.ignoreAttributesFn(L,T))continue;let D=I[G][4],oe=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(oe=this.options.transformAttributeName(oe)),oe==="__proto__"&&(oe="#__proto__"),D!==void 0){this.options.trimValues&&(D=D.trim()),D=this.replaceEntitiesValue(D);const re=this.options.attributeValueProcessor(L,D,T);re==null?j[oe]=D:typeof re!=typeof D||re!==D?j[oe]=re:j[oe]=y(D,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[oe]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const G={};return G[this.options.attributesGroupName]=j,G}return j}}const c=function(w){w=w.replace(/\r\n?/g,`
47
- `);const T=new t("!xml");let P=T,I="",O="";for(let j=0;j<w.length;j++)if(w[j]==="<")if(w[j+1]==="/"){const L=p(w,">",j,"Closing Tag is not closed.");let D=w.substring(j+2,L).trim();if(this.options.removeNSPrefix){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1))}this.options.transformTagName&&(D=this.options.transformTagName(D)),P&&(I=this.saveTextToParentTag(I,P,O));const oe=O.substring(O.lastIndexOf(".")+1);if(D&&this.options.unpairedTags.indexOf(D)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${D}>`);let re=0;oe&&this.options.unpairedTags.indexOf(oe)!==-1?(re=O.lastIndexOf(".",O.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=O.lastIndexOf("."),O=O.substring(0,re),P=this.tagsNodeStack.pop(),I="",j=L}else if(w[j+1]==="?"){let L=h(w,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,P,O),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const D=new t(L.tagName);D.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(D[":@"]=this.buildAttributesMap(L.tagExp,O,L.tagName)),this.addChild(P,D,O)}j=L.closeIndex+1}else if(w.substr(j+1,3)==="!--"){const L=p(w,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const D=w.substring(j+4,L-2);I=this.saveTextToParentTag(I,P,O),P.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}j=L}else if(w.substr(j+1,2)==="!D"){const L=r(w,j);this.docTypeEntities=L.entities,j=L.i}else if(w.substr(j+1,2)==="!["){const L=p(w,"]]>",j,"CDATA is not closed.")-2,D=w.substring(j+9,L);I=this.saveTextToParentTag(I,P,O);let oe=this.parseTextData(D,P.tagname,O,!0,!1,!0,!0);oe==null&&(oe=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:D}]):P.add(this.options.textNodeName,oe),j=L+2}else{let L=h(w,j,this.options.removeNSPrefix),D=L.tagName;const oe=L.rawTagName;let re=L.tagExp,he=L.attrExpPresent,fe=L.closeIndex;this.options.transformTagName&&(D=this.options.transformTagName(D)),P&&I&&P.tagname!=="!xml"&&(I=this.saveTextToParentTag(I,P,O,!1));const ge=P;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(P=this.tagsNodeStack.pop(),O=O.substring(0,O.lastIndexOf("."))),D!==T.tagname&&(O+=O?"."+D:D),this.isItStopNode(this.options.stopNodes,O,D)){let ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),O=O.substr(0,O.length-1),re=D):re=re.substr(0,re.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(D)!==-1)j=L.closeIndex;else{const be=this.readStopNodeData(w,oe,fe+1);if(!be)throw new Error(`Unexpected end of ${oe}`);j=be.i,ce=be.tagContent}const xe=new t(D);D!==re&&he&&(xe[":@"]=this.buildAttributesMap(re,O,D)),ce&&(ce=this.parseTextData(ce,D,O,!0,he,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),xe.add(this.options.textNodeName,ce),this.addChild(P,xe,O)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),O=O.substr(0,O.length-1),re=D):re=re.substr(0,re.length-1),this.options.transformTagName&&(D=this.options.transformTagName(D));const ce=new t(D);D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,ce,O),O=O.substr(0,O.lastIndexOf("."))}else{const ce=new t(D);this.tagsNodeStack.push(P),D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,ce,O),P=ce}I="",j=fe}}else I+=w[j];return T.child};function d(w,T,P){const I=this.options.updateTag(T.tagname,P,T[":@"]);I===!1||(typeof I=="string"&&(T.tagname=I),w.addChild(T))}const x=function(w){if(this.options.processEntities){for(let T in this.docTypeEntities){const P=this.docTypeEntities[T];w=w.replace(P.regx,P.val)}for(let T in this.lastEntities){const P=this.lastEntities[T];w=w.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const P=this.htmlEntities[T];w=w.replace(P.regex,P.val)}w=w.replace(this.ampEntity.regex,this.ampEntity.val)}return w};function m(w,T,P,I){return w&&(I===void 0&&(I=T.child.length===0),w=this.parseTextData(w,T.tagname,P,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,I),w!==void 0&&w!==""&&T.add(this.options.textNodeName,w),w=""),w}function E(w,T,P){const I="*."+P;for(const O in w){const j=w[O];if(I===j||T===j)return!0}return!1}function A(w,T,P=">"){let I,O="";for(let j=T;j<w.length;j++){let G=w[j];if(I)G===I&&(I="");else if(G==='"'||G==="'")I=G;else if(G===P[0])if(P[1]){if(w[j+1]===P[1])return{data:O,index:j}}else return{data:O,index:j};else G===" "&&(G=" ");O+=G}}function p(w,T,P,I){const O=w.indexOf(T,P);if(O===-1)throw new Error(I);return O+T.length-1}function h(w,T,P,I=">"){const O=A(w,T+1,I);if(!O)return;let j=O.data;const G=O.index,L=j.search(/\s/);let D=j,oe=!0;L!==-1&&(D=j.substring(0,L),j=j.substring(L+1).trimStart());const re=D;if(P){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1),oe=D!==O.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function g(w,T,P){const I=P;let O=1;for(;P<w.length;P++)if(w[P]==="<")if(w[P+1]==="/"){const j=p(w,">",P,`${T} is not closed`);if(w.substring(P+2,j).trim()===T&&(O--,O===0))return{tagContent:w.substring(I,P),i:j};P=j}else if(w[P+1]==="?")P=p(w,"?>",P+1,"StopNode is not closed.");else if(w.substr(P+1,3)==="!--")P=p(w,"-->",P+3,"StopNode is not closed.");else if(w.substr(P+1,2)==="![")P=p(w,"]]>",P,"StopNode is not closed.")-2;else{const j=h(w,P,">");j&&((j&&j.tagName)===T&&j.tagExp[j.tagExp.length-1]!=="/"&&O++,P=j.closeIndex)}}function y(w,T,P){if(T&&typeof w=="string"){const I=w.trim();return I==="true"?!0:I==="false"?!1:n(w,P)}else return e.isExist(w)?w:""}return Ls=i,Ls}var Us={},Ec;function Gb(){if(Ec)return Us;Ec=1;function e(i,a){return t(i,a)}function t(i,a,u){let f;const l={};for(let s=0;s<i.length;s++){const c=i[s],d=r(c);let x="";if(u===void 0?x=d:x=u+"."+d,d===a.textNodeName)f===void 0?f=c[d]:f+=""+c[d];else{if(d===void 0)continue;if(c[d]){let m=t(c[d],a,x);const E=o(m,a);c[":@"]?n(m,c[":@"],x,a):Object.keys(m).length===1&&m[a.textNodeName]!==void 0&&!a.alwaysCreateTextNode?m=m[a.textNodeName]:Object.keys(m).length===0&&(a.alwaysCreateTextNode?m[a.textNodeName]="":m=""),l[d]!==void 0&&l.hasOwnProperty(d)?(Array.isArray(l[d])||(l[d]=[l[d]]),l[d].push(m)):a.isArray(d,x,E)?l[d]=[m]:l[d]=m}}}return typeof f=="string"?f.length>0&&(l[a.textNodeName]=f):f!==void 0&&(l[a.textNodeName]=f),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const f=a[u];if(f!==":@")return f}}function n(i,a,u,f){if(a){const l=Object.keys(a),s=l.length;for(let c=0;c<s;c++){const d=l[c];f.isArray(d,u+"."+d,!0,!0)?i[d]=[a[d]]:i[d]=a[d]}}}function o(i,a){const{textNodeName:u}=a,f=Object.keys(i).length;return!!(f===0||f===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return Us.prettify=e,Us}var js,xc;function Kb(){if(xc)return js;xc=1;const{buildOptions:e}=$b(),t=Wb(),{prettify:r}=Gb(),n=dc();class o{constructor(a){this.externalEntities={},this.options=e(a)}parse(a,u){if(typeof a!="string")if(a.toString)a=a.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(u){u===!0&&(u={});const s=n.validate(a,u);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const f=new t(this.options);f.addExternalEntities(this.externalEntities);const l=f.parseXml(a);return this.options.preserveOrder||l===void 0?l:r(l,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}return js=o,js}var Ms,Ac;function zb(){if(Ac)return Ms;Ac=1;const e=`
48
- `;function t(u,f){let l="";return f.format&&f.indentBy.length>0&&(l=e),r(u,f,"",l)}function r(u,f,l,s){let c="",d=!1;for(let x=0;x<u.length;x++){const m=u[x],E=n(m);if(E===void 0)continue;let A="";if(l.length===0?A=E:A=`${l}.${E}`,E===f.textNodeName){let w=m[E];i(A,f)||(w=f.tagValueProcessor(E,w),w=a(w,f)),d&&(c+=s),c+=w,d=!1;continue}else if(E===f.cdataPropName){d&&(c+=s),c+=`<![CDATA[${m[E][0][f.textNodeName]}]]>`,d=!1;continue}else if(E===f.commentPropName){c+=s+`<!--${m[E][0][f.textNodeName]}-->`,d=!0;continue}else if(E[0]==="?"){const w=o(m[":@"],f),T=E==="?xml"?"":s;let P=m[E][0][f.textNodeName];P=P.length!==0?" "+P:"",c+=T+`<${E}${P}${w}?>`,d=!0;continue}let p=s;p!==""&&(p+=f.indentBy);const h=o(m[":@"],f),g=s+`<${E}${h}`,y=r(m[E],f,A,p);f.unpairedTags.indexOf(E)!==-1?f.suppressUnpairedNode?c+=g+">":c+=g+"/>":(!y||y.length===0)&&f.suppressEmptyNode?c+=g+"/>":y&&y.endsWith(">")?c+=g+`>${y}${s}</${E}>`:(c+=g+">",y&&s!==""&&(y.includes("/>")||y.includes("</"))?c+=s+f.indentBy+y+s:c+=y,c+=`</${E}>`),d=!0}return c}function n(u){const f=Object.keys(u);for(let l=0;l<f.length;l++){const s=f[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,f){let l="";if(u&&!f.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let c=f.attributeValueProcessor(s,u[s]);c=a(c,f),c===!0&&f.suppressBooleanAttributes?l+=` ${s.substr(f.attributeNamePrefix.length)}`:l+=` ${s.substr(f.attributeNamePrefix.length)}="${c}"`}return l}function i(u,f){u=u.substr(0,u.length-f.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in f.stopNodes)if(f.stopNodes[s]===u||f.stopNodes[s]==="*."+l)return!0;return!1}function a(u,f){if(u&&u.length>0&&f.processEntities)for(let l=0;l<f.entities.length;l++){const s=f.entities[l];u=u.replace(s.regex,s.val)}return u}return Ms=t,Ms}var ks,Tc;function Xb(){if(Tc)return ks;Tc=1;const e=zb(),t=wc(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,f){return f},attributeValueProcessor:function(u,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function n(u){this.options=Object.assign({},r,u),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=o,this.options.format?(this.indentate=i,this.tagEndChar=`>
49
- `,this.newLine=`
50
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(u){return this.options.preserveOrder?e(u,this.options):(Array.isArray(u)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(u={[this.options.arrayNodeName]:u}),this.j2x(u,0,[]).val)},n.prototype.j2x=function(u,f,l){let s="",c="";const d=l.join(".");for(let x in u)if(Object.prototype.hasOwnProperty.call(u,x))if(typeof u[x]>"u")this.isAttribute(x)&&(c+="");else if(u[x]===null)this.isAttribute(x)||x===this.options.cdataPropName?c+="":x[0]==="?"?c+=this.indentate(f)+"<"+x+"?"+this.tagEndChar:c+=this.indentate(f)+"<"+x+"/"+this.tagEndChar;else if(u[x]instanceof Date)c+=this.buildTextValNode(u[x],x,"",f);else if(typeof u[x]!="object"){const m=this.isAttribute(x);if(m&&!this.ignoreAttributesFn(m,d))s+=this.buildAttrPairStr(m,""+u[x]);else if(!m)if(x===this.options.textNodeName){let E=this.options.tagValueProcessor(x,""+u[x]);c+=this.replaceEntitiesValue(E)}else c+=this.buildTextValNode(u[x],x,"",f)}else if(Array.isArray(u[x])){const m=u[x].length;let E="",A="";for(let p=0;p<m;p++){const h=u[x][p];if(!(typeof h>"u"))if(h===null)x[0]==="?"?c+=this.indentate(f)+"<"+x+"?"+this.tagEndChar:c+=this.indentate(f)+"<"+x+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){const g=this.j2x(h,f+1,l.concat(x));E+=g.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(A+=g.attrStr)}else E+=this.processTextOrObjNode(h,x,f,l);else if(this.options.oneListGroup){let g=this.options.tagValueProcessor(x,h);g=this.replaceEntitiesValue(g),E+=g}else E+=this.buildTextValNode(h,x,"",f)}this.options.oneListGroup&&(E=this.buildObjectNode(E,x,A,f)),c+=E}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){const m=Object.keys(u[x]),E=m.length;for(let A=0;A<E;A++)s+=this.buildAttrPairStr(m[A],""+u[x][m[A]])}else c+=this.processTextOrObjNode(u[x],x,f,l);return{attrStr:s,val:c}},n.prototype.buildAttrPairStr=function(u,f){return f=this.options.attributeValueProcessor(u,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+u:" "+u+'="'+f+'"'};function o(u,f,l,s){const c=this.j2x(u,l+1,s.concat(f));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],f,c.attrStr,l):this.buildObjectNode(c.val,f,c.attrStr,l)}n.prototype.buildObjectNode=function(u,f,l,s){if(u==="")return f[0]==="?"?this.indentate(s)+"<"+f+l+"?"+this.tagEndChar:this.indentate(s)+"<"+f+l+this.closeTag(f)+this.tagEndChar;{let c="</"+f+this.tagEndChar,d="";return f[0]==="?"&&(d="?",c=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+f+l+d+">"+u+c:this.options.commentPropName!==!1&&f===this.options.commentPropName&&d.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+f+l+d+this.tagEndChar+u+this.indentate(s)+c}},n.prototype.closeTag=function(u){let f="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(f="/"):this.options.suppressEmptyNode?f="/":f=`></${u}`,f},n.prototype.buildTextValNode=function(u,f,l,s){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(f[0]==="?")return this.indentate(s)+"<"+f+l+"?"+this.tagEndChar;{let c=this.options.tagValueProcessor(f,u);return c=this.replaceEntitiesValue(c),c===""?this.indentate(s)+"<"+f+l+this.closeTag(f)+this.tagEndChar:this.indentate(s)+"<"+f+l+">"+c+"</"+f+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const l=this.options.entities[f];u=u.replace(l.regex,l.val)}return u};function i(u){return this.options.indentBy.repeat(u)}function a(u){return u.startsWith(this.options.attributeNamePrefix)&&u!==this.options.textNodeName?u.substr(this.attrPrefixLen):!1}return ks=n,ks}var Ds,Sc;function Yb(){if(Sc)return Ds;Sc=1;const e=dc(),t=Kb(),r=Xb();return Ds={XMLParser:t,XMLValidator:e,XMLBuilder:r},Ds}var $s=Yb();const qs=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[ir.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),_c=(e=[],{pattern:t,filterRules:r,limit:n=0,extraProps:o=[]})=>{let i="d:propfind";t&&(i="oc:search-files"),r&&(i="oc:filter-files");const a=e.reduce((s,c)=>Object.assign(s,{[c]:null}),{}),u=qs(a,o),f={[i]:{"d:prop":u,"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns",...t&&{"oc:search":{"oc:pattern":t,"oc:limit":n}},...r&&{"oc:filter-rules":qs(r,[])}}};return new $s.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(f)},Jb=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":qs(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new $s.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Zb=e=>{const t={},r=e.get("tus-version");return r?(t.version=r.split(","),e.get("tus-extension")&&(t.extension=e.get("tus-extension").split(",")),e.get("tus-resumable")&&(t.resumable=e.get("tus-resumable")),e.get("tus-max-size")&&(t.maxSize=parseInt(e.get("tus-max-size"),10)),t):null},Qb=async e=>{const t=n=>{const o=decodeURIComponent(n);return n!=null&&n.startsWith("/remote.php/dav/")?_e(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Lb(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Ub(o.prop,t(n),!0),processing:o.status==="HTTP/1.1 425 TOO EARLY"};return i.props.name&&(i.props.name=i.props.name.toString()),i})},e1=e=>{const t=new $s.XMLParser,r={message:"Unknown error",errorCode:void 0};try{const n=t.parse(e);if(!n["d:error"])return r;if(n["d:error"]["s:message"]){const o=n["d:error"]["s:message"];typeof o=="string"&&(r.message=o)}if(n["d:error"]["s:errorcode"]){const o=n["d:error"]["s:errorcode"];typeof o=="string"&&(r.errorCode=o)}}catch{return r}return r};class t1{constructor({baseUrl:t,headers:r}){ye(this,"client");ye(this,"davPath");ye(this,"headers");ye(this,"extraProps");this.davPath=_e(t,"remote.php/dav"),this.client=Bb(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:kt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:f}=await this.request(t,{method:kt.propfind,data:_c(n,{extraProps:this.extraProps}),headers:a,...i});return u!=null&&u.length&&(u[0].tusSupport=Zb(f.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:f}=await this.request(t,{method:kt.report,data:_c(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:f.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=_e(this.davPath,bn(r));return this.request(t,{method:kt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=_e(this.davPath,bn(r));return this.request(t,{method:kt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const f={...n};return i?f["If-Match"]=i:a||(f["If-None-Match"]="*"),this.request(t,{method:kt.put,data:r,headers:f,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:kt.delete,...r})}propPatch(t,r,n={}){const o=Jb(r);return this.request(t,{method:kt.proppatch,data:o,...n})}getFileUrl(t){return _e(this.davPath,bn(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":Db(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=_e(this.davPath,bn(t),{leadingSlash:!0}),o={...r,url:n,headers:this.buildHeaders(r.headers||{})};try{const i=await this.client.customRequest("",o);let a;if(i.status===207){const u=await i.text();a=await Qb(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),f=e1(u);throw new Ud(f.message,f.errorCode,a,a.status)}}}const r1=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(_e("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>Er(a,e.extraProps))}}),n1=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[ae.IsFavorite]:o?"true":"false"};return e.propPatch(_e(r.webDavPath,n),a,i)}}),i1=(e,t)=>({listFavoriteFiles({davProperties:r=ir.Default,username:n="",...o}={}){return e.report(_e("files",n),{properties:r,filterRules:{favorite:1},...o})}}),o1=(e,t)=>{const r=Ye.create();t&&r.interceptors.request.use(D=>(Object.assign(D.headers,t()),D));const n={axiosClient:r,baseUrl:e},o=new t1({baseUrl:e,headers:t}),i=D=>{o.extraProps.push(D)},a=ym(o),{getPathForFileId:u}=a,f=um(o,a),{listFiles:l}=f,s=om(f),{getFileInfo:c}=s,{createFolder:d}=nm(o,s),x=im(o,n),{getFileContents:m}=x,{putFileContents:E}=fm(o,s),{getFileUrl:A,revokeUrl:p}=sm(o,x,n),{getPublicFileUrl:h}=am(o),{copyFiles:g}=rm(o),{moveFiles:y}=lm(o),{deleteFile:w}=cm(o),{restoreFile:T}=hm(o),{listFileVersions:P}=r1(o),{restoreFileVersion:I}=dm(o),{clearTrashBin:O}=pm(o),{search:j}=gm(o),{listFavoriteFiles:G}=i1(o),{setFavorite:L}=n1(o);return{copyFiles:g,createFolder:d,deleteFile:w,restoreFile:T,restoreFileVersion:I,getFileContents:m,getFileInfo:c,getFileUrl:A,getPublicFileUrl:h,getPathForFileId:u,listFiles:l,listFileVersions:P,moveFiles:y,putFileContents:E,revokeUrl:p,clearTrashBin:O,search:j,listFavoriteFiles:G,setFavorite:L,registerExtraProp:i}};var Oc=(e=>(e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e))(Oc||{});let Yr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&Yr){const x=Yr.Authorization;x!=null&&x.toString().startsWith("Bearer")&&(Yr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,transferData:i}=r;Yr=o;const a=o1(n,()=>Yr),u=[],f=[],l=new Vc({concurrency:4}),s=x=>a.copyFiles(x.sourceSpace,x.resource,x.targetSpace,{path:x.path},{overwrite:x.overwrite}),c=x=>a.moveFiles(x.sourceSpace,x.resource,x.targetSpace,{path:x.path},{overwrite:x.overwrite}),d=i.map(x=>l.add(async()=>{var E;const m=x.resource;try{x.transferType===Oc.COPY?(await s(x),m.id=void 0,m.fileId=void 0):await c(x),m.path=on.join(x.targetFolder.path,m.name),m.webDavPath=on.join(x.targetFolder.webDavPath,m.name),u.push(m)}catch(A){console.error(A),f.push({resourceName:m.name,message:A.message,statusCode:A.statusCode,xReqId:(E=A.response.headers)==null?void 0:E.get("x-request-id")})}}));await Promise.allSettled(d),postMessage(JSON.stringify({successful:u,failed:f}))}})();