@opencloud-eu/web-pkg 2.3.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,19 +1,19 @@
1
- var h1=Object.defineProperty;var Df=Te=>{throw TypeError(Te)};var d1=(Te,Ie,qe)=>Ie in Te?h1(Te,Ie,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Te[Ie]=qe;var ye=(Te,Ie,qe)=>d1(Te,typeof Ie!="symbol"?Ie+"":Ie,qe),Ys=(Te,Ie,qe)=>Ie.has(Te)||Df("Cannot "+qe);var J=(Te,Ie,qe)=>(Ys(Te,Ie,"read from private field"),qe?qe.call(Te):Ie.get(Te)),Ne=(Te,Ie,qe)=>Ie.has(Te)?Df("Cannot add the same private member more than once"):Ie instanceof WeakSet?Ie.add(Te):Ie.set(Te,qe),ve=(Te,Ie,qe,er)=>(Ys(Te,Ie,"write to private field"),er?er.call(Te,qe):Ie.set(Te,qe),qe),$e=(Te,Ie,qe)=>(Ys(Te,Ie,"access private method"),qe);var an=(Te,Ie,qe,er)=>({set _(ni){ve(Te,Ie,ni,qe)},get _(){return J(Te,Ie,er)}});(function(){"use strict";var Tt,Ir,Pr,zt,tn,Fr,rn,St,Cr,pt,nn,_t,Br,Ht,on,Jn,_e,$f,qf,Vf,Hf,Wf,Qn,Js,Zs,ei,Gf,ti,tt,nt,Wt,ke,Ye,Xt,fr,Yt,Bt,hr,sn,dr,zf,Jt,ri,Qs,Xf;var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qe={exports:{}},er;function ni(){return er||(er=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(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function i(c,l,s,f,d){if(typeof s!="function")throw new TypeError("The listener must be a function");var x=new o(s,f||c,d),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],x]:c._events[m].push(x):(c._events[m]=x,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)t.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,x=f.length,m=new Array(x);d<x;d++)m[d]=f[d].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,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,f),!0;case 4:return A.fn.call(A.context,s,f,d),!0;case 5:return A.fn.call(A.context,s,f,d,x),!0;case 6:return A.fn.call(A.context,s,f,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,f);break;case 4:A[g].fn.call(A[g].context,s,f,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,f){return i(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return i(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,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)&&(!f||m.context===f)&&a(this,x);else{for(var E=0,A=[],p=m.length;E<p;E++)(m[E].fn!==s||d&&!m[E].once||f&&m[E].context!==f)&&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}(qe)),qe.exports}var Yf=ni(),Jf=Ie(Yf);class ea extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Zf extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const ta=e=>globalThis.DOMException===void 0?new Zf(e):new DOMException(e),ra=e=>{const t=e.reason===void 0?ta("This operation was aborted."):e.reason;return t instanceof Error?t:ta(t)};function Qf(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,f)=>{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&&f(ra(x)),u=()=>{f(ra(x))},x.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,f);return}const d=new ea;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(x){f(x)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?f(o):(d.message=o??`Promise timed out after ${r} milliseconds`,f(d))},r),(async()=>{try{s(await e)}catch(x){f(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 eh(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 th{constructor(){Ne(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=eh(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 rh extends Jf{constructor(r){var n,o;super();Ne(this,_e);Ne(this,Ir);Ne(this,Pr);Ne(this,zt,0);Ne(this,tn);Ne(this,Fr);Ne(this,rn,0);Ne(this,St);Ne(this,Cr);Ne(this,pt);Ne(this,nn);Ne(this,_t,0);Ne(this,Br);Ne(this,Ht);Ne(this,on);Ne(this,Jn,1n);ye(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:th,...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,Ir,r.carryoverConcurrencyCount),ve(this,Pr,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ve(this,tn,r.intervalCap),ve(this,Fr,r.interval),ve(this,pt,new r.queueClass),ve(this,nn,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ve(this,on,r.throwOnTimeout===!0),ve(this,Ht,r.autoStart===!1)}get concurrency(){return J(this,Br)}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,Br,r),$e(this,_e,ei).call(this)}setPriority(r,n){J(this,pt).setPriority(r,n)}async add(r,n={}){return n.id??(n.id=(an(this,Jn)._++).toString()),n={timeout:this.timeout,throwOnTimeout:J(this,on),...n},new Promise((o,i)=>{J(this,pt).enqueue(async()=>{var a;an(this,_t)._++,an(this,zt)._++;try{(a=n.signal)==null||a.throwIfAborted();let u=r({signal:n.signal});n.timeout&&(u=Qf(Promise.resolve(u),{milliseconds:n.timeout})),n.signal&&(u=Promise.race([u,$e(this,_e,Gf).call(this,n.signal)]));const c=await u;o(c),this.emit("completed",c)}catch(u){if(u instanceof ea&&!n.throwOnTimeout){o();return}i(u),this.emit("error",u)}finally{$e(this,_e,Vf).call(this)}},n),this.emit("add"),$e(this,_e,Qn).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),$e(this,_e,ei).call(this),this):this}pause(){ve(this,Ht,!0)}clear(){ve(this,pt,new(J(this,nn)))}async onEmpty(){J(this,pt).size!==0&&await $e(this,_e,ti).call(this,"empty")}async onSizeLessThan(r){J(this,pt).size<r||await $e(this,_e,ti).call(this,"next",()=>J(this,pt).size<r)}async onIdle(){J(this,_t)===0&&J(this,pt).size===0||await $e(this,_e,ti).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)}}Ir=new WeakMap,Pr=new WeakMap,zt=new WeakMap,tn=new WeakMap,Fr=new WeakMap,rn=new WeakMap,St=new WeakMap,Cr=new WeakMap,pt=new WeakMap,nn=new WeakMap,_t=new WeakMap,Br=new WeakMap,Ht=new WeakMap,on=new WeakMap,Jn=new WeakMap,_e=new WeakSet,$f=function(){return J(this,Pr)||J(this,zt)<J(this,tn)},qf=function(){return J(this,_t)<J(this,Br)},Vf=function(){an(this,_t)._--,$e(this,_e,Qn).call(this),this.emit("next")},Hf=function(){$e(this,_e,Zs).call(this),$e(this,_e,Js).call(this),ve(this,Cr,void 0)},Wf=function(){const r=Date.now();if(J(this,St)===void 0){const n=J(this,rn)-r;if(n<0)ve(this,zt,J(this,Ir)?J(this,_t):0);else return J(this,Cr)===void 0&&ve(this,Cr,setTimeout(()=>{$e(this,_e,Hf).call(this)},n)),!0}return!1},Qn=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,_e,Wf);if(J(this,_e,$f)&&J(this,_e,qf)){const n=J(this,pt).dequeue();return n?(this.emit("active"),n(),r&&$e(this,_e,Js).call(this),!0):!1}}return!1},Js=function(){J(this,Pr)||J(this,St)!==void 0||(ve(this,St,setInterval(()=>{$e(this,_e,Zs).call(this)},J(this,Fr))),ve(this,rn,Date.now()+J(this,Fr)))},Zs=function(){J(this,zt)===0&&J(this,_t)===0&&J(this,St)&&(clearInterval(J(this,St)),ve(this,St,void 0)),ve(this,zt,J(this,Ir)?J(this,_t):0),$e(this,_e,ei).call(this)},ei=function(){for(;$e(this,_e,Qn).call(this););},Gf=async function(r){return new Promise((n,o)=>{r.addEventListener("abort",()=>{o(r.reason)},{once:!0})})},ti=async function(r,n){return new Promise(o=>{const i=()=>{n&&!n()||(this.off(r,i),o())};this.on(r,i)})};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var na={exports:{}},ze=na.exports={},It,Pt;function ii(){throw new Error("setTimeout has not been defined")}function oi(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?It=setTimeout:It=ii}catch{It=ii}try{typeof clearTimeout=="function"?Pt=clearTimeout:Pt=oi}catch{Pt=oi}})();function ia(e){if(It===setTimeout)return setTimeout(e,0);if((It===ii||!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 ih(e){if(Pt===clearTimeout)return clearTimeout(e);if((Pt===oi||!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=[],pr=!1,tr,un=-1;function oh(){!pr||!tr||(pr=!1,tr.length?Ut=tr.concat(Ut):un=-1,Ut.length&&oa())}function oa(){if(!pr){var e=ia(oh);pr=!0;for(var t=Ut.length;t;){for(tr=Ut,Ut=[];++un<t;)tr&&tr[un].run();un=-1,t=Ut.length}tr=null,pr=!1,ih(e)}}ze.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 sa(e,t)),Ut.length===1&&!pr&&ia(oa)};function sa(e,t){this.fun=e,this.array=t}sa.prototype.run=function(){this.fun.apply(null,this.array)},ze.title="browser",ze.browser=!0,ze.env={},ze.argv=[],ze.version="",ze.versions={};function jt(){}ze.on=jt,ze.addListener=jt,ze.once=jt,ze.off=jt,ze.removeListener=jt,ze.removeAllListeners=jt,ze.emit=jt,ze.prependListener=jt,ze.prependOnceListener=jt,ze.listeners=function(e){return[]},ze.binding=function(e){throw new Error("process.binding is not supported")},ze.cwd=function(){return"/"},ze.chdir=function(e){throw new Error("process.chdir is not supported")},ze.umask=function(){return 0};var sh=na.exports;const me=nh(sh);var si,aa;function ah(){if(aa)return si;aa=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,c=-1,l=0,s,f=0;f<=o.length;++f){if(f<o.length)s=o.charCodeAt(f);else{if(s===47)break;s=47}if(s===47){if(!(c===f-1||l===1))if(c!==f-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("/")),c=f,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,c=f,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(c+1,f):a=o.slice(c+1,f),u=f-c-1;c=f,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,c=arguments.length-1;c>=-1&&!a;c--){var l;c>=0?l=arguments[c]:(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 c=i.length,l=c-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var f=a.length,d=f-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<=c;++E)(E===c||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,c=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){c=s;break}}else l=!1;return c===-1?u?"/":".":u&&c===1?"//":i.slice(0,c)},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,c=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=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),f>=0&&(x===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=d))}return u===c?c=d:c===-1&&(c=i.length),i.slice(u,c)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":i.slice(u,c)}},extname:function(i){e(i);for(var a=-1,u=0,c=-1,l=!0,s=0,f=i.length-1;f>=0;--f){var d=i.charCodeAt(f);if(d===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),d===46?a===-1?a=f:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||c===-1||s===0||s===1&&a===c-1&&a===u+1?"":i.slice(a,c)},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),c=u===47,l;c?(a.root="/",l=1):l=0;for(var s=-1,f=0,d=-1,x=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!x){f=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===f+1?d!==-1&&(f===0&&c?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(f,d)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,d)):(a.name=i.slice(f,s),a.base=i.slice(f,d)),a.ext=i.slice(s,d)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,si=n,si}var ln=ah(),ua=Ie(ln);const kt=globalThis||void 0||self;function la(e,t){return function(){return e.apply(t,arguments)}}const{toString:uh}=Object.prototype,{getPrototypeOf:ai}=Object,{iterator:cn,toStringTag:ca}=Symbol,fn=(e=>t=>{const r=uh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>fn(t)===e),hn=e=>t=>typeof t===e,{isArray:gr}=Array,Lr=hn("undefined");function lh(e){return e!==null&&!Lr(e)&&e.constructor!==null&&!Lr(e.constructor)&&yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fa=Nt("ArrayBuffer");function ch(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fa(e.buffer),t}const fh=hn("string"),yt=hn("function"),ha=hn("number"),dn=e=>e!==null&&typeof e=="object",hh=e=>e===!0||e===!1,pn=e=>{if(fn(e)!=="object")return!1;const t=ai(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ca in e)&&!(cn in e)},dh=Nt("Date"),ph=Nt("File"),gh=Nt("Blob"),yh=Nt("FileList"),mh=e=>dn(e)&&yt(e.pipe),bh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yt(e.append)&&((t=fn(e))==="formdata"||t==="object"&&yt(e.toString)&&e.toString()==="[object FormData]"))},wh=Nt("URLSearchParams"),[vh,Eh,xh,Ah]=["ReadableStream","Request","Response","Headers"].map(Nt),Th=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ur(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),gr(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 da(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 rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:kt,pa=e=>!Lr(e)&&e!==rr;function ui(){const{caseless:e}=pa(this)&&this||{},t={},r=(n,o)=>{const i=e&&da(t,o)||o;pn(t[i])&&pn(n)?t[i]=ui(t[i],n):pn(n)?t[i]=ui({},n):gr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ur(arguments[n],r);return t}const Sh=(e,t,r,{allOwnKeys:n}={})=>(Ur(t,(o,i)=>{r&&yt(o)?e[i]=la(o,r):e[i]=o},{allOwnKeys:n}),e),_h=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Oh=(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)},Nh=(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&&ai(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Rh=(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},Ih=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!ha(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ph=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ai(Uint8Array)),Fh=(e,t)=>{const n=(e&&e[cn]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ch=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Bh=Nt("HTMLFormElement"),Lh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ga=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Uh=Nt("RegExp"),ya=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ur(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},jh=e=>{ya(e,(t,r)=>{if(yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(yt(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+"'")})}})},kh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return gr(e)?n(e):n(String(e).split(t)),r},Mh=()=>{},Dh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $h(e){return!!(e&&yt(e.append)&&e[ca]==="FormData"&&e[cn])}const qh=e=>{const t=new Array(10),r=(n,o)=>{if(dn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=gr(n)?[]:{};return Ur(n,(a,u)=>{const c=r(a,o+1);!Lr(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Vh=Nt("AsyncFunction"),Hh=e=>e&&(dn(e)||yt(e))&&yt(e.then)&&yt(e.catch),ma=((e,t)=>e?setImmediate:t?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yt(rr.postMessage)),Wh=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof me<"u"&&me.nextTick||ma;var Z={isArray:gr,isArrayBuffer:fa,isBuffer:lh,isFormData:bh,isArrayBufferView:ch,isString:fh,isNumber:ha,isBoolean:hh,isObject:dn,isPlainObject:pn,isReadableStream:vh,isRequest:Eh,isResponse:xh,isHeaders:Ah,isUndefined:Lr,isDate:dh,isFile:ph,isBlob:gh,isRegExp:Uh,isFunction:yt,isStream:mh,isURLSearchParams:wh,isTypedArray:Ph,isFileList:yh,forEach:Ur,merge:ui,extend:Sh,trim:Th,stripBOM:_h,inherits:Oh,toFlatObject:Nh,kindOf:fn,kindOfTest:Nt,endsWith:Rh,toArray:Ih,forEachEntry:Fh,matchAll:Ch,isHTMLForm:Bh,hasOwnProperty:ga,hasOwnProp:ga,reduceDescriptors:ya,freezeMethods:jh,toObjectSet:kh,toCamelCase:Lh,noop:Mh,toFiniteNumber:Dh,findKey:da,global:rr,isContextDefined:pa,isSpecCompliantForm:$h,toJSONObject:qh,isAsyncFn:Vh,isThenable:Hh,setImmediate:ma,asap:Wh,isIterable:e=>e!=null&&yt(e[cn])},ba={},gn={};gn.byteLength=zh,gn.toByteArray=Yh,gn.fromByteArray=Qh;for(var Ft=[],wt=[],Gh=typeof Uint8Array<"u"?Uint8Array:Array,li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr=0,Kh=li.length;yr<Kh;++yr)Ft[yr]=li[yr],wt[li.charCodeAt(yr)]=yr;wt[45]=62,wt[95]=63;function wa(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 zh(e){var t=wa(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Xh(e,t,r){return(t+r)*3/4-r}function Yh(e){var t,r=wa(e),n=r[0],o=r[1],i=new Gh(Xh(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=wt[e.charCodeAt(c)]<<18|wt[e.charCodeAt(c+1)]<<12|wt[e.charCodeAt(c+2)]<<6|wt[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=wt[e.charCodeAt(c)]<<2|wt[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=wt[e.charCodeAt(c)]<<10|wt[e.charCodeAt(c+1)]<<4|wt[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Jh(e){return Ft[e>>18&63]+Ft[e>>12&63]+Ft[e>>6&63]+Ft[e&63]}function Zh(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(Jh(n));return o.join("")}function Qh(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Zh(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 ci={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ci.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,c=(1<<u)-1,l=c>>1,s=-7,f=r?o-1:0,d=r?-1:1,x=e[t+f];for(f+=d,i=x&(1<<-s)-1,x>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=d,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=d,s-=8);if(i===0)i=1-l;else{if(i===c)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)},ci.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=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*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=d/c:t+=d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=s?(u=0,a=s):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a=a+f):(u=t*Math.pow(2,f-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};/*!
1
+ var h1=Object.defineProperty;var Df=Te=>{throw TypeError(Te)};var d1=(Te,Ie,qe)=>Ie in Te?h1(Te,Ie,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Te[Ie]=qe;var ye=(Te,Ie,qe)=>d1(Te,typeof Ie!="symbol"?Ie+"":Ie,qe),Js=(Te,Ie,qe)=>Ie.has(Te)||Df("Cannot "+qe);var J=(Te,Ie,qe)=>(Js(Te,Ie,"read from private field"),qe?qe.call(Te):Ie.get(Te)),Ne=(Te,Ie,qe)=>Ie.has(Te)?Df("Cannot add the same private member more than once"):Ie instanceof WeakSet?Ie.add(Te):Ie.set(Te,qe),ve=(Te,Ie,qe,er)=>(Js(Te,Ie,"write to private field"),er?er.call(Te,qe):Ie.set(Te,qe),qe),$e=(Te,Ie,qe)=>(Js(Te,Ie,"access private method"),qe);var an=(Te,Ie,qe,er)=>({set _(ni){ve(Te,Ie,ni,qe)},get _(){return J(Te,Ie,er)}});(function(){"use strict";var Tt,Ir,Pr,zt,tn,Fr,rn,St,Cr,pt,nn,_t,Br,Ht,on,Jn,_e,$f,qf,Vf,Hf,Wf,Qn,Zs,Qs,ei,Gf,ti,tt,nt,Wt,ke,Ye,Xt,fr,Yt,Bt,hr,sn,dr,zf,Jt,ri,ea,Xf;var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qe={exports:{}},er;function ni(){return er||(er=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(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function i(c,l,s,f,d){if(typeof s!="function")throw new TypeError("The listener must be a function");var x=new o(s,f||c,d),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],x]:c._events[m].push(x):(c._events[m]=x,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)t.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,x=f.length,m=new Array(x);d<x;d++)m[d]=f[d].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,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,f),!0;case 4:return A.fn.call(A.context,s,f,d),!0;case 5:return A.fn.call(A.context,s,f,d,x),!0;case 6:return A.fn.call(A.context,s,f,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,f);break;case 4:A[g].fn.call(A[g].context,s,f,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,f){return i(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return i(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,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)&&(!f||m.context===f)&&a(this,x);else{for(var E=0,A=[],p=m.length;E<p;E++)(m[E].fn!==s||d&&!m[E].once||f&&m[E].context!==f)&&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}(qe)),qe.exports}var Yf=ni(),Jf=Ie(Yf);class ta extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Zf extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const ra=e=>globalThis.DOMException===void 0?new Zf(e):new DOMException(e),na=e=>{const t=e.reason===void 0?ra("This operation was aborted."):e.reason;return t instanceof Error?t:ra(t)};function Qf(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,f)=>{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&&f(na(x)),u=()=>{f(na(x))},x.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,f);return}const d=new ta;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(x){f(x)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?f(o):(d.message=o??`Promise timed out after ${r} milliseconds`,f(d))},r),(async()=>{try{s(await e)}catch(x){f(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 eh(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 th{constructor(){Ne(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=eh(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 rh extends Jf{constructor(r){var n,o;super();Ne(this,_e);Ne(this,Ir);Ne(this,Pr);Ne(this,zt,0);Ne(this,tn);Ne(this,Fr);Ne(this,rn,0);Ne(this,St);Ne(this,Cr);Ne(this,pt);Ne(this,nn);Ne(this,_t,0);Ne(this,Br);Ne(this,Ht);Ne(this,on);Ne(this,Jn,1n);ye(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:th,...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,Ir,r.carryoverConcurrencyCount),ve(this,Pr,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ve(this,tn,r.intervalCap),ve(this,Fr,r.interval),ve(this,pt,new r.queueClass),ve(this,nn,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ve(this,on,r.throwOnTimeout===!0),ve(this,Ht,r.autoStart===!1)}get concurrency(){return J(this,Br)}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,Br,r),$e(this,_e,ei).call(this)}setPriority(r,n){J(this,pt).setPriority(r,n)}async add(r,n={}){return n.id??(n.id=(an(this,Jn)._++).toString()),n={timeout:this.timeout,throwOnTimeout:J(this,on),...n},new Promise((o,i)=>{J(this,pt).enqueue(async()=>{var a;an(this,_t)._++,an(this,zt)._++;try{(a=n.signal)==null||a.throwIfAborted();let u=r({signal:n.signal});n.timeout&&(u=Qf(Promise.resolve(u),{milliseconds:n.timeout})),n.signal&&(u=Promise.race([u,$e(this,_e,Gf).call(this,n.signal)]));const c=await u;o(c),this.emit("completed",c)}catch(u){if(u instanceof ta&&!n.throwOnTimeout){o();return}i(u),this.emit("error",u)}finally{$e(this,_e,Vf).call(this)}},n),this.emit("add"),$e(this,_e,Qn).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),$e(this,_e,ei).call(this),this):this}pause(){ve(this,Ht,!0)}clear(){ve(this,pt,new(J(this,nn)))}async onEmpty(){J(this,pt).size!==0&&await $e(this,_e,ti).call(this,"empty")}async onSizeLessThan(r){J(this,pt).size<r||await $e(this,_e,ti).call(this,"next",()=>J(this,pt).size<r)}async onIdle(){J(this,_t)===0&&J(this,pt).size===0||await $e(this,_e,ti).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)}}Ir=new WeakMap,Pr=new WeakMap,zt=new WeakMap,tn=new WeakMap,Fr=new WeakMap,rn=new WeakMap,St=new WeakMap,Cr=new WeakMap,pt=new WeakMap,nn=new WeakMap,_t=new WeakMap,Br=new WeakMap,Ht=new WeakMap,on=new WeakMap,Jn=new WeakMap,_e=new WeakSet,$f=function(){return J(this,Pr)||J(this,zt)<J(this,tn)},qf=function(){return J(this,_t)<J(this,Br)},Vf=function(){an(this,_t)._--,$e(this,_e,Qn).call(this),this.emit("next")},Hf=function(){$e(this,_e,Qs).call(this),$e(this,_e,Zs).call(this),ve(this,Cr,void 0)},Wf=function(){const r=Date.now();if(J(this,St)===void 0){const n=J(this,rn)-r;if(n<0)ve(this,zt,J(this,Ir)?J(this,_t):0);else return J(this,Cr)===void 0&&ve(this,Cr,setTimeout(()=>{$e(this,_e,Hf).call(this)},n)),!0}return!1},Qn=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,_e,Wf);if(J(this,_e,$f)&&J(this,_e,qf)){const n=J(this,pt).dequeue();return n?(this.emit("active"),n(),r&&$e(this,_e,Zs).call(this),!0):!1}}return!1},Zs=function(){J(this,Pr)||J(this,St)!==void 0||(ve(this,St,setInterval(()=>{$e(this,_e,Qs).call(this)},J(this,Fr))),ve(this,rn,Date.now()+J(this,Fr)))},Qs=function(){J(this,zt)===0&&J(this,_t)===0&&J(this,St)&&(clearInterval(J(this,St)),ve(this,St,void 0)),ve(this,zt,J(this,Ir)?J(this,_t):0),$e(this,_e,ei).call(this)},ei=function(){for(;$e(this,_e,Qn).call(this););},Gf=async function(r){return new Promise((n,o)=>{r.addEventListener("abort",()=>{o(r.reason)},{once:!0})})},ti=async function(r,n){return new Promise(o=>{const i=()=>{n&&!n()||(this.off(r,i),o())};this.on(r,i)})};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ia={exports:{}},ze=ia.exports={},It,Pt;function ii(){throw new Error("setTimeout has not been defined")}function oi(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?It=setTimeout:It=ii}catch{It=ii}try{typeof clearTimeout=="function"?Pt=clearTimeout:Pt=oi}catch{Pt=oi}})();function oa(e){if(It===setTimeout)return setTimeout(e,0);if((It===ii||!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 ih(e){if(Pt===clearTimeout)return clearTimeout(e);if((Pt===oi||!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=[],pr=!1,tr,un=-1;function oh(){!pr||!tr||(pr=!1,tr.length?Ut=tr.concat(Ut):un=-1,Ut.length&&sa())}function sa(){if(!pr){var e=oa(oh);pr=!0;for(var t=Ut.length;t;){for(tr=Ut,Ut=[];++un<t;)tr&&tr[un].run();un=-1,t=Ut.length}tr=null,pr=!1,ih(e)}}ze.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 aa(e,t)),Ut.length===1&&!pr&&oa(sa)};function aa(e,t){this.fun=e,this.array=t}aa.prototype.run=function(){this.fun.apply(null,this.array)},ze.title="browser",ze.browser=!0,ze.env={},ze.argv=[],ze.version="",ze.versions={};function jt(){}ze.on=jt,ze.addListener=jt,ze.once=jt,ze.off=jt,ze.removeListener=jt,ze.removeAllListeners=jt,ze.emit=jt,ze.prependListener=jt,ze.prependOnceListener=jt,ze.listeners=function(e){return[]},ze.binding=function(e){throw new Error("process.binding is not supported")},ze.cwd=function(){return"/"},ze.chdir=function(e){throw new Error("process.chdir is not supported")},ze.umask=function(){return 0};var sh=ia.exports;const me=nh(sh);var si,ua;function ah(){if(ua)return si;ua=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,c=-1,l=0,s,f=0;f<=o.length;++f){if(f<o.length)s=o.charCodeAt(f);else{if(s===47)break;s=47}if(s===47){if(!(c===f-1||l===1))if(c!==f-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("/")),c=f,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,c=f,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(c+1,f):a=o.slice(c+1,f),u=f-c-1;c=f,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,c=arguments.length-1;c>=-1&&!a;c--){var l;c>=0?l=arguments[c]:(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 c=i.length,l=c-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var f=a.length,d=f-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<=c;++E)(E===c||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,c=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){c=s;break}}else l=!1;return c===-1?u?"/":".":u&&c===1?"//":i.slice(0,c)},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,c=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=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),f>=0&&(x===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=d))}return u===c?c=d:c===-1&&(c=i.length),i.slice(u,c)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":i.slice(u,c)}},extname:function(i){e(i);for(var a=-1,u=0,c=-1,l=!0,s=0,f=i.length-1;f>=0;--f){var d=i.charCodeAt(f);if(d===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),d===46?a===-1?a=f:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||c===-1||s===0||s===1&&a===c-1&&a===u+1?"":i.slice(a,c)},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),c=u===47,l;c?(a.root="/",l=1):l=0;for(var s=-1,f=0,d=-1,x=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!x){f=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===f+1?d!==-1&&(f===0&&c?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(f,d)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,d)):(a.name=i.slice(f,s),a.base=i.slice(f,d)),a.ext=i.slice(s,d)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,si=n,si}var ln=ah(),la=Ie(ln);const kt=globalThis||void 0||self;function ca(e,t){return function(){return e.apply(t,arguments)}}const{toString:uh}=Object.prototype,{getPrototypeOf:ai}=Object,{iterator:cn,toStringTag:fa}=Symbol,fn=(e=>t=>{const r=uh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>fn(t)===e),hn=e=>t=>typeof t===e,{isArray:gr}=Array,Lr=hn("undefined");function lh(e){return e!==null&&!Lr(e)&&e.constructor!==null&&!Lr(e.constructor)&&yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ha=Nt("ArrayBuffer");function ch(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ha(e.buffer),t}const fh=hn("string"),yt=hn("function"),da=hn("number"),dn=e=>e!==null&&typeof e=="object",hh=e=>e===!0||e===!1,pn=e=>{if(fn(e)!=="object")return!1;const t=ai(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(fa in e)&&!(cn in e)},dh=Nt("Date"),ph=Nt("File"),gh=Nt("Blob"),yh=Nt("FileList"),mh=e=>dn(e)&&yt(e.pipe),bh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yt(e.append)&&((t=fn(e))==="formdata"||t==="object"&&yt(e.toString)&&e.toString()==="[object FormData]"))},wh=Nt("URLSearchParams"),[vh,Eh,xh,Ah]=["ReadableStream","Request","Response","Headers"].map(Nt),Th=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ur(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),gr(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 pa(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 rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:kt,ga=e=>!Lr(e)&&e!==rr;function ui(){const{caseless:e}=ga(this)&&this||{},t={},r=(n,o)=>{const i=e&&pa(t,o)||o;pn(t[i])&&pn(n)?t[i]=ui(t[i],n):pn(n)?t[i]=ui({},n):gr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ur(arguments[n],r);return t}const Sh=(e,t,r,{allOwnKeys:n}={})=>(Ur(t,(o,i)=>{r&&yt(o)?e[i]=ca(o,r):e[i]=o},{allOwnKeys:n}),e),_h=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Oh=(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)},Nh=(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&&ai(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Rh=(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},Ih=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!da(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ph=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ai(Uint8Array)),Fh=(e,t)=>{const n=(e&&e[cn]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ch=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Bh=Nt("HTMLFormElement"),Lh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ya=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Uh=Nt("RegExp"),ma=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ur(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},jh=e=>{ma(e,(t,r)=>{if(yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(yt(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+"'")})}})},kh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return gr(e)?n(e):n(String(e).split(t)),r},Mh=()=>{},Dh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $h(e){return!!(e&&yt(e.append)&&e[fa]==="FormData"&&e[cn])}const qh=e=>{const t=new Array(10),r=(n,o)=>{if(dn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=gr(n)?[]:{};return Ur(n,(a,u)=>{const c=r(a,o+1);!Lr(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Vh=Nt("AsyncFunction"),Hh=e=>e&&(dn(e)||yt(e))&&yt(e.then)&&yt(e.catch),ba=((e,t)=>e?setImmediate:t?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yt(rr.postMessage)),Wh=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof me<"u"&&me.nextTick||ba;var Z={isArray:gr,isArrayBuffer:ha,isBuffer:lh,isFormData:bh,isArrayBufferView:ch,isString:fh,isNumber:da,isBoolean:hh,isObject:dn,isPlainObject:pn,isReadableStream:vh,isRequest:Eh,isResponse:xh,isHeaders:Ah,isUndefined:Lr,isDate:dh,isFile:ph,isBlob:gh,isRegExp:Uh,isFunction:yt,isStream:mh,isURLSearchParams:wh,isTypedArray:Ph,isFileList:yh,forEach:Ur,merge:ui,extend:Sh,trim:Th,stripBOM:_h,inherits:Oh,toFlatObject:Nh,kindOf:fn,kindOfTest:Nt,endsWith:Rh,toArray:Ih,forEachEntry:Fh,matchAll:Ch,isHTMLForm:Bh,hasOwnProperty:ya,hasOwnProp:ya,reduceDescriptors:ma,freezeMethods:jh,toObjectSet:kh,toCamelCase:Lh,noop:Mh,toFiniteNumber:Dh,findKey:pa,global:rr,isContextDefined:ga,isSpecCompliantForm:$h,toJSONObject:qh,isAsyncFn:Vh,isThenable:Hh,setImmediate:ba,asap:Wh,isIterable:e=>e!=null&&yt(e[cn])},wa={},gn={};gn.byteLength=zh,gn.toByteArray=Yh,gn.fromByteArray=Qh;for(var Ft=[],wt=[],Gh=typeof Uint8Array<"u"?Uint8Array:Array,li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr=0,Kh=li.length;yr<Kh;++yr)Ft[yr]=li[yr],wt[li.charCodeAt(yr)]=yr;wt[45]=62,wt[95]=63;function va(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 zh(e){var t=va(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Xh(e,t,r){return(t+r)*3/4-r}function Yh(e){var t,r=va(e),n=r[0],o=r[1],i=new Gh(Xh(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=wt[e.charCodeAt(c)]<<18|wt[e.charCodeAt(c+1)]<<12|wt[e.charCodeAt(c+2)]<<6|wt[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=wt[e.charCodeAt(c)]<<2|wt[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=wt[e.charCodeAt(c)]<<10|wt[e.charCodeAt(c+1)]<<4|wt[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Jh(e){return Ft[e>>18&63]+Ft[e>>12&63]+Ft[e>>6&63]+Ft[e&63]}function Zh(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(Jh(n));return o.join("")}function Qh(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Zh(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 ci={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ci.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,c=(1<<u)-1,l=c>>1,s=-7,f=r?o-1:0,d=r?-1:1,x=e[t+f];for(f+=d,i=x&(1<<-s)-1,x>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=d,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=d,s-=8);if(i===0)i=1-l;else{if(i===c)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)},ci.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=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*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=d/c:t+=d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=s?(u=0,a=s):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a=a+f):(u=t*Math.pow(2,f-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
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(e){const t=gn,r=ci,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=c(),!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 c(){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 f(F,b,S)}s.poolSize=8192;function f(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(st(F,a)||F&&st(F.buffer,a)||typeof u<"u"&&(st(F,u)||F&&st(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 k=F.valueOf&&F.valueOf();if(k!=null&&k!==F)return s.from(k,b,S);const V=g(F);if(V)return V;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 f(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 k=l(S);const V=k.write(F,b);return V!==S&&(k=k.slice(0,V)),k}function A(F){const b=F.length<0?0:y(F.length)|0,S=l(b);for(let k=0;k<b;k+=1)S[k]=F[k]&255;return S}function p(F){if(st(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 k;return b===void 0&&S===void 0?k=new i(F):S===void 0?k=new i(F,b):k=new i(F,b,S),Object.setPrototypeOf(k,s.prototype),k}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(st(b,i)&&(b=s.from(b,b.offset,b.byteLength)),st(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 k=b.length,V=S.length;for(let z=0,ne=Math.min(k,V);z<ne;++z)if(b[z]!==S[z]){k=b[z],V=S[z];break}return k<V?-1:V<k?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 k;if(S===void 0)for(S=0,k=0;k<b.length;++k)S+=b[k].length;const V=s.allocUnsafe(S);let z=0;for(k=0;k<b.length;++k){let ne=b[k];if(st(ne,i))z+ne.length>V.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(V,z)):i.prototype.set.call(V,ne,z);else if(s.isBuffer(ne))ne.copy(V,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return V};function T(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||st(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,k=arguments.length>2&&arguments[2]===!0;if(!k&&S===0)return 0;let V=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return rt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Le(F).length;default:if(V)return k?-1:rt(F).length;b=(""+b).toLowerCase(),V=!0}}s.byteLength=T;function P(F,b,S){let k=!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 ce(this,b,S);case"ascii":return Ee(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(k)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),k=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const k=F[b];F[b]=F[S],F[S]=k}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?ce(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,k,V,z){if(st(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),k===void 0&&(k=b?b.length:0),V===void 0&&(V=0),z===void 0&&(z=this.length),S<0||k>b.length||V<0||z>this.length)throw new RangeError("out of range index");if(V>=z&&S>=k)return 0;if(V>=z)return-1;if(S>=k)return 1;if(S>>>=0,k>>>=0,V>>>=0,z>>>=0,this===b)return 0;let ne=z-V,xe=k-S;const Ue=Math.min(ne,xe),je=this.slice(V,z),Me=b.slice(S,k);for(let Re=0;Re<Ue;++Re)if(je[Re]!==Me[Re]){ne=je[Re],xe=Me[Re];break}return ne<xe?-1:xe<ne?1:0};function O(F,b,S,k,V){if(F.length===0)return-1;if(typeof S=="string"?(k=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ot(S)&&(S=V?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(V)return-1;S=F.length-1}else if(S<0)if(V)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,k)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,k,V);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?V?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,k,V);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,k,V){let z=1,ne=F.length,xe=b.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,xe/=2,S/=2}function Ue(Me,Re){return z===1?Me[Re]:Me.readUInt16BE(Re*z)}let je;if(V){let Me=-1;for(je=S;je<ne;je++)if(Ue(F,je)===Ue(b,Me===-1?0:je-Me)){if(Me===-1&&(Me=je),je-Me+1===xe)return Me*z}else Me!==-1&&(je-=je-Me),Me=-1}else for(S+xe>ne&&(S=ne-xe),je=S;je>=0;je--){let Me=!0;for(let Re=0;Re<xe;Re++)if(Ue(F,je+Re)!==Ue(b,Re)){Me=!1;break}if(Me)return je}return-1}s.prototype.includes=function(b,S,k){return this.indexOf(b,S,k)!==-1},s.prototype.indexOf=function(b,S,k){return O(this,b,S,k,!0)},s.prototype.lastIndexOf=function(b,S,k){return O(this,b,S,k,!1)};function G(F,b,S,k){S=Number(S)||0;const V=F.length-S;k?(k=Number(k),k>V&&(k=V)):k=V;const z=b.length;k>z/2&&(k=z/2);let ne;for(ne=0;ne<k;++ne){const xe=parseInt(b.substr(ne*2,2),16);if(Ot(xe))return ne;F[S+ne]=xe}return ne}function L(F,b,S,k){return ct(rt(b,F.length-S),F,S,k)}function D(F,b,S,k){return ct(Je(b),F,S,k)}function oe(F,b,S,k){return ct(Le(b),F,S,k)}function re(F,b,S,k){return ct(Oe(b,F.length-S),F,S,k)}s.prototype.write=function(b,S,k,V){if(S===void 0)V="utf8",k=this.length,S=0;else if(k===void 0&&typeof S=="string")V=S,k=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(k)?(k=k>>>0,V===void 0&&(V="utf8")):(V=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((k===void 0||k>z)&&(k=z),b.length>0&&(k<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ne=!1;for(;;)switch(V){case"hex":return G(this,b,S,k);case"utf8":case"utf-8":return L(this,b,S,k);case"ascii":case"latin1":case"binary":return D(this,b,S,k);case"base64":return oe(this,b,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,b,S,k);default:if(ne)throw new TypeError("Unknown encoding: "+V);V=(""+V).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 ce(F,b,S){S=Math.min(F.length,S);const k=[];let V=b;for(;V<S;){const z=F[V];let ne=null,xe=z>239?4:z>223?3:z>191?2:1;if(V+xe<=S){let Ue,je,Me,Re;switch(xe){case 1:z<128&&(ne=z);break;case 2:Ue=F[V+1],(Ue&192)===128&&(Re=(z&31)<<6|Ue&63,Re>127&&(ne=Re));break;case 3:Ue=F[V+1],je=F[V+2],(Ue&192)===128&&(je&192)===128&&(Re=(z&15)<<12|(Ue&63)<<6|je&63,Re>2047&&(Re<55296||Re>57343)&&(ne=Re));break;case 4:Ue=F[V+1],je=F[V+2],Me=F[V+3],(Ue&192)===128&&(je&192)===128&&(Me&192)===128&&(Re=(z&15)<<18|(Ue&63)<<12|(je&63)<<6|Me&63,Re>65535&&Re<1114112&&(ne=Re))}}ne===null?(ne=65533,xe=1):ne>65535&&(ne-=65536,k.push(ne>>>10&1023|55296),ne=56320|ne&1023),k.push(ne),V+=xe}return fe(k)}const ge=4096;function fe(F){const b=F.length;if(b<=ge)return String.fromCharCode.apply(String,F);let S="",k=0;for(;k<b;)S+=String.fromCharCode.apply(String,F.slice(k,k+=ge));return S}function Ee(F,b,S){let k="";S=Math.min(F.length,S);for(let V=b;V<S;++V)k+=String.fromCharCode(F[V]&127);return k}function be(F,b,S){let k="";S=Math.min(F.length,S);for(let V=b;V<S;++V)k+=String.fromCharCode(F[V]);return k}function K(F,b,S){const k=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>k)&&(S=k);let V="";for(let z=b;z<S;++z)V+=Rt[F[z]];return V}function Q(F,b,S){const k=F.slice(b,S);let V="";for(let z=0;z<k.length-1;z+=2)V+=String.fromCharCode(k[z]+k[z+1]*256);return V}s.prototype.slice=function(b,S){const k=this.length;b=~~b,S=S===void 0?k:~~S,b<0?(b+=k,b<0&&(b=0)):b>k&&(b=k),S<0?(S+=k,S<0&&(S=0)):S>k&&(S=k),S<b&&(S=b);const V=this.subarray(b,S);return Object.setPrototypeOf(V,s.prototype),V};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,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)V+=this[b+ne]*z;return V},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=this[b+--S],z=1;for(;S>0&&(z*=256);)V+=this[b+--S]*z;return V},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=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+k*2**24;return BigInt(V)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=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+k;return(BigInt(V)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)V+=this[b+ne]*z;return z*=128,V>=z&&(V-=Math.pow(2,8*S)),V},s.prototype.readIntBE=function(b,S,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=S,z=1,ne=this[b+--V];for(;V>0&&(z*=256);)ne+=this[b+--V]*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 k=this[b]|this[b+1]<<8;return k&32768?k|4294901760:k},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const k=this[b+1]|this[b]<<8;return k&32768?k|4294901760:k},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=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(k<<24);return(BigInt(V)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(V)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+k)}),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,k,V,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>V||b<z)throw new RangeError('"value" argument is out of bounds');if(S+k>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,k,V){if(b=+b,S=S>>>0,k=k>>>0,!V){const xe=Math.pow(2,8*k)-1;ue(this,b,S,k,xe,0)}let z=1,ne=0;for(this[S]=b&255;++ne<k&&(z*=256);)this[S+ne]=b/z&255;return S+k},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,k,V){if(b=+b,S=S>>>0,k=k>>>0,!V){const xe=Math.pow(2,8*k)-1;ue(this,b,S,k,xe,0)}let z=k-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+k},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,k){return b=+b,S=S>>>0,k||ue(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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 H(F,b,S,k,V){pe(b,k,V,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,k,V){pe(b,k,V,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=it(function(b,S=0){return H(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=it(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,k,V){if(b=+b,S=S>>>0,!V){const Ue=Math.pow(2,8*k-1);ue(this,b,S,k,Ue-1,-Ue)}let z=0,ne=1,xe=0;for(this[S]=b&255;++z<k&&(ne*=256);)b<0&&xe===0&&this[S+z-1]!==0&&(xe=1),this[S+z]=(b/ne>>0)-xe&255;return S+k},s.prototype.writeIntBE=function(b,S,k,V){if(b=+b,S=S>>>0,!V){const Ue=Math.pow(2,8*k-1);ue(this,b,S,k,Ue-1,-Ue)}let z=k-1,ne=1,xe=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&xe===0&&this[S+z+1]!==0&&(xe=1),this[S+z]=(b/ne>>0)-xe&255;return S+k},s.prototype.writeInt8=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||ue(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,k){return b=+b,S=S>>>0,k||ue(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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=it(function(b,S=0){return H(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=it(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,k,V,z){if(S+k>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,k,V){return b=+b,S=S>>>0,V||N(F,b,S,4),r.write(F,b,S,k,23,4),S+4}s.prototype.writeFloatLE=function(b,S,k){return q(this,b,S,!0,k)},s.prototype.writeFloatBE=function(b,S,k){return q(this,b,S,!1,k)};function $(F,b,S,k,V){return b=+b,S=S>>>0,V||N(F,b,S,8),r.write(F,b,S,k,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,k){return $(this,b,S,!0,k)},s.prototype.writeDoubleBE=function(b,S,k){return $(this,b,S,!1,k)},s.prototype.copy=function(b,S,k,V){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(k||(k=0),!V&&V!==0&&(V=this.length),S>=b.length&&(S=b.length),S||(S=0),V>0&&V<k&&(V=k),V===k||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),b.length-S<V-k&&(V=b.length-S+k);const z=V-k;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,k,V):i.prototype.set.call(b,this.subarray(k,V),S),z},s.prototype.fill=function(b,S,k,V){if(typeof b=="string"){if(typeof S=="string"?(V=S,S=0,k=this.length):typeof k=="string"&&(V=k,k=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!s.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(b.length===1){const ne=b.charCodeAt(0);(V==="utf8"&&ne<128||V==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<k)throw new RangeError("Out of range index");if(k<=S)return this;S=S>>>0,k=k===void 0?this.length:k>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<k;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,V),xe=ne.length;if(xe===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<k-S;++z)this[z+S]=ne[z%xe]}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(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,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 k=`The value of "${F}" is out of range.`,V=S;return Number.isInteger(S)&&Math.abs(S)>2**32?V=Y(String(S)):typeof S=="bigint"&&(V=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(V=Y(V)),V+="n"),k+=` It must be ${b}. Received ${V}`,k},RangeError);function Y(F){let b="",S=F.length;const k=F[0]==="-"?1:0;for(;S>=k+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,k,V,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let xe;throw b===0||b===BigInt(0)?xe=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:xe=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",xe,F)}se(k,V,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 Be=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Be,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function rt(F,b){b=b||1/0;let S;const k=F.length;let V=null;const z=[];for(let ne=0;ne<k;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!V){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===k){(b-=3)>-1&&z.push(239,191,189);continue}V=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),V=S;continue}S=(V-55296<<10|S-56320)+65536}else V&&(b-=3)>-1&&z.push(239,191,189);if(V=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 Je(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function Oe(F,b){let S,k,V;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),k=S>>8,V=S%256,z.push(V),z.push(k);return z}function Le(F){return t.toByteArray(te(F))}function ct(F,b,S,k){let V;for(V=0;V<k&&!(V+S>=b.length||V>=F.length);++V)b[V+S]=F[V];return V}function st(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 k=S*16;for(let V=0;V<16;++V)b[k+V]=F[S]+F[V]}return b}();function it(F){return typeof BigInt>"u"?Zt:F}function Zt(){throw new Error("BigInt not supported")}})(ba);const mr=ba.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 va=we.prototype,Ea={};["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=>{Ea[e]={value:e}}),Object.defineProperties(we,Ea),Object.defineProperty(va,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(va);return Z.toFlatObject(e,a,function(c){return c!==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 ed=null;function fi(e){return Z.isPlainObject(e)||Z.isArray(e)}function xa(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Aa(e,t,r){return e?e.concat(t).map(function(o,i){return o=xa(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function td(e){return Z.isArray(e)&&!e.some(fi)}const rd=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function yn(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,c=(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(!c&&Z.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(m)||Z.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):mr.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)&&td(m)||(Z.isFileList(m)||Z.endsWith(E,"[]"))&&(p=Z.toArray(m)))return E=xa(E),p.forEach(function(g,y){!(Z.isUndefined(g)||g===null)&&t.append(a===!0?Aa([E],y,i):a===null?E:E+"[]",l(g))}),!1}return fi(m)?!0:(t.append(Aa(A,E,i),l(m)),!1)}const f=[],d=Object.assign(rd,{defaultVisitor:s,convertValue:l,isVisitable:fi});function x(m,E){if(!Z.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.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])}),f.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Ta(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hi(e,t){this._pairs=[],e&&yn(e,this,t)}const Sa=hi.prototype;Sa.append=function(t,r){this._pairs.push([t,r])},Sa.toString=function(t){const r=t?function(n){return t.call(this,n,Ta)}:Ta;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function nd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _a(e,t,r){if(!t)return e;const n=r&&r.encode||nd;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 hi(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Oa{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 Na={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},id=typeof URLSearchParams<"u"?URLSearchParams:hi,od=typeof FormData<"u"?FormData:null,sd=typeof Blob<"u"?Blob:null,ad={isBrowser:!0,classes:{URLSearchParams:id,FormData:od,Blob:sd},protocols:["http","https","file","blob","url","data"]};const di=typeof window<"u"&&typeof document<"u",pi=typeof navigator=="object"&&navigator||void 0,ud=di&&(!pi||["ReactNative","NativeScript","NS"].indexOf(pi.product)<0),ld=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cd=di&&window.location.href||"http://localhost";var fd=Object.freeze({__proto__:null,hasBrowserEnv:di,hasStandardBrowserEnv:ud,hasStandardBrowserWebWorkerEnv:ld,navigator:pi,origin:cd}),at={...fd,...ad};function hd(e,t){return yn(e,new at.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return at.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dd(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pd(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 Ra(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&Z.isArray(o)?o.length:a,c?(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]=pd(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(dd(n),o,r,0)}),r}return null}function gd(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 jr={transitional:Na,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(Ra(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 hd(t,this.formSerializer).toString();if((u=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return yn(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),gd(t)):t}],transformResponse:[function(t){const r=this.transitional||jr.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:at.classes.FormData,Blob:at.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=>{jr.headers[e]={}});const yd=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 md=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]&&yd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Ia=Symbol("internals");function kr(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:Z.isArray(e)?e.map(mn):String(e)}function bd(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 wd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gi(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 vd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ed(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 mt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=kr(c);if(!s)throw new Error("header name must be a non-empty string");const f=Z.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=mn(u))}const a=(u,c)=>Z.forEach(u,(l,s)=>i(l,s,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Z.isString(t)&&(t=t.trim())&&!wd(t))a(md(t),r);else if(Z.isObject(t)&&Z.isIterable(t)){let u={},c,l;for(const s of t){if(!Z.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?Z.isArray(c)?[...c,s[1]]:[c,s[1]]:s[1]}a(u,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=kr(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return bd(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=kr(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||gi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=kr(a),a){const u=Z.findKey(n,a);u&&(!r||gi(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||gi(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]=mn(o),delete r[i];return}const u=t?vd(i):String(i).trim();u!==i&&delete r[i],r[u]=mn(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
- `)}getSetCookie(){return this.get("set-cookie")||[]}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[Ia]=this[Ia]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=kr(a);n[u]||(Ed(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(mt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(mt);function yi(e,t){const r=this||jr,n=t||r,o=mt.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 Pa(e){return!!(e&&e.__CANCEL__)}function br(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(br,we,{__CANCEL__:!0});function Fa(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 xd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ad(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(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,d=0;for(;f!==o;)d+=r[f++],f=f%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 Td(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(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const bn=(e,t,r=3)=>{let n=0;const o=Ad(50,250);return Td(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Ca=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ba=e=>(...t)=>Z.asap(()=>e(...t));var Sd=at.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,at.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,_d=at.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 Od(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function La(e,t,r){let n=!Od(t);return e&&(n||r==!1)?Nd(e,t):t}const Ua=e=>e instanceof mt?{...e}:e;function nr(e,t){t=t||{};const r={};function n(l,s,f,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,f,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,f,d)}else return n(l,s,f,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,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={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,f)=>o(Ua(l),Ua(s),f,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const f=c[s]||o,d=f(e[s],t[s],s);Z.isUndefined(d)&&f!==u||(r[s]=d)}),r}var ja=e=>{const t=nr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=mt.from(a),t.url=_a(La(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 c;if(Z.isFormData(r)){if(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...s]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(at.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&Sd(t.url))){const l=o&&i&&_d.read(i);l&&a.set(o,l)}return t},Rd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=ja(e);let i=o.data;const a=mt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,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=mt.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};Fa(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||Na;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]=bn(l,!0),A.addEventListener("progress",d)),c&&A.upload&&([f,x]=bn(c),A.upload.addEventListener("progress",f),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=g=>{A&&(n(!g||g.type?new br(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=xd(o.url);if(h&&at.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const Id=(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 br(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:c}=n;return c.unsubscribe=()=>Z.asap(u),c}},Pd=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},Fd=async function*(e,t){for await(const r of Cd(e))yield*Pd(r,t)},Cd=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()}},ka=(e,t,r,n)=>{const o=Fd(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let d=i+=f;r(d)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},wn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ma=wn&&typeof ReadableStream=="function",Bd=wn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Da=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ld=Ma&&Da(()=>{let e=!1;const t=new Request(at.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$a=64*1024,mi=Ma&&Da(()=>Z.isReadableStream(new Response("").body)),vn={stream:mi&&(e=>e.body)};wn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vn[t]&&(vn[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 Ud=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(at.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 Bd(e)).byteLength},jd=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Ud(t)};var kd=wn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:l,headers:s,withCredentials:f="same-origin",fetchOptions:d}=ja(e);l=l?(l+"").toLowerCase():"text";let x=Id([o,i&&i.toAbortSignal()],a),m;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(c&&Ld&&r!=="get"&&r!=="head"&&(A=await jd(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]=Ca(A,bn(Ba(c)));n=ka(w.body,$a,P,I)}}Z.isString(f)||(f=f?"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?f:void 0});let h=await fetch(m);const g=mi&&(l==="stream"||l==="response");if(mi&&(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&&Ca(T,bn(Ba(u),!0))||[];h=new Response(ka(h.body,$a,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await vn[Z.findKey(vn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,T)=>{Fa(w,T,{data:y,headers:mt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/Load failed|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 bi={http:ed,xhr:Rd,fetch:kd};Z.forEach(bi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qa=e=>`- ${e}`,Md=e=>Z.isFunction(e)||e===null||e===!1;var Va={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,!Md(r)&&(n=bi[(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,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
- `+i.map(qa).join(`
10
- `):" "+qa(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:bi};function wi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function Ha(e){return wi(e),e.headers=mt.from(e.headers),e.data=yi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Va.getAdapter(e.adapter||jr.adapter)(e).then(function(n){return wi(e),n.data=yi.call(e,e.transformResponse,n),n.headers=mt.from(n.headers),n},function(n){return Pa(n)||(wi(e),n&&n.response&&(n.response.data=yi.call(e,e.transformResponse,n.response),n.response.headers=mt.from(n.response.headers))),Promise.reject(n)})}const Wa="1.9.0",En={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{En[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ga={};En.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Wa+"] 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&&!Ga[a]&&(Ga[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}},En.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Dd(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],c=u===void 0||a(u,i,e);if(c!==!0)throw new we("option "+i+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var xn={assertOptions:Dd,validators:En};const Ct=xn.validators;let ir=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Oa,response:new Oa}}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=nr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&xn.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}:xn.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),xn.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=mt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(c=c&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,f=0,d;if(!c){const m=[Ha.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);f<d;)s=s.then(m[f++],m[f++]);return s}d=u.length;let x=r;for(f=0;f<d;){const m=u[f++],E=u[f++];try{x=m(x)}catch(A){E.call(this,A);break}}try{s=Ha.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,d=l.length;f<d;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=nr(this.defaults,t);const r=La(t.baseURL,t.url,t.allowAbsoluteUrls);return _a(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){ir.prototype[t]=function(r,n){return this.request(nr(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(nr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ir.prototype[t]=r(),ir.prototype[t+"Form"]=r(!0)});let $d=class Kf{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 br(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 Kf(function(o){t=o}),cancel:t}}};function qd(e){return function(r){return e.apply(null,r)}}function Vd(e){return Z.isObject(e)&&e.isAxiosError===!0}const vi={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(vi).forEach(([e,t])=>{vi[t]=e});function Ka(e){const t=new ir(e),r=la(ir.prototype.request,t);return Z.extend(r,ir.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ka(nr(e,o))},r}const Xe=Ka(jr);Xe.Axios=ir,Xe.CanceledError=br,Xe.CancelToken=$d,Xe.isCancel=Pa,Xe.VERSION=Wa,Xe.toFormData=yn,Xe.AxiosError=we,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=qd,Xe.isAxiosError=Vd,Xe.mergeConfig=nr,Xe.AxiosHeaders=mt,Xe.formToJSON=e=>Ra(Z.isHTMLForm(e)?new FormData(e):e),Xe.getAdapter=Va.getAdapter,Xe.HttpStatusCode=vi,Xe.default=Xe;const{Axios:y1,AxiosError:m1,CanceledError:b1,isCancel:w1,CancelToken:v1,VERSION:E1,all:x1,Cancel:A1,isAxiosError:T1,spread:S1,toFormData:_1,AxiosHeaders:O1,HttpStatusCode:N1,formToJSON:R1,getAdapter:I1,mergeConfig:P1}=Xe,An=e=>encodeURIComponent(e).split("%2F").join("/"),Hd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Wd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Gd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Hd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Kd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},Se=(...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=Wd(e);const n=Gd(e);return Kd(n,r)};class za extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class zd extends za{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Xd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Yd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class We{}ye(We,"Shared","S"),ye(We,"Shareable","R"),ye(We,"Mounted","M"),ye(We,"Deletable","D"),ye(We,"Renameable","N"),ye(We,"Moveable","V"),ye(We,"Updateable","NV"),ye(We,"FileUpdateable","W"),ye(We,"FolderCreateable","CK"),ye(We,"Deny","Z"),ye(We,"SecureView","X");var Mt=(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))(Mt||{});const Tn=e=>({value:e,type:null}),Jd=e=>Tn(e),Pe=e=>Tn(e),Ei=e=>Tn(e),Zd=e=>Tn(e),Qd={Permissions:Pe("permissions"),IsFavorite:Ei("favorite"),FileId:Pe("fileid"),FileParent:Pe("file-parent"),Name:Pe("name"),OwnerId:Pe("owner-id"),OwnerDisplayName:Pe("owner-display-name"),PrivateLink:Pe("privatelink"),ContentLength:Ei("getcontentlength"),ContentSize:Ei("size"),LastModifiedDate:Pe("getlastmodified"),Tags:Jd("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Pe("getetag"),MimeType:Pe("getcontenttype"),ResourceType:Zd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Pe("owner"),LockTime:Pe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Pe("downloadURL"),Highlights:Pe("highlights"),MetaPathForUser:Pe("meta-path-for-user"),RemoteItemId:Pe("remote-item-id"),ShareId:Pe("shareid"),ShareRoot:Pe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Pe("share-permissions"),TrashbinOriginalFilename:Pe("trashbin-original-filename"),TrashbinOriginalLocation:Pe("trashbin-original-location"),TrashbinDeletedDate:Pe("trashbin-delete-datetime"),PublicLinkItemType:Pe("public-link-item-type"),PublicLinkPermission:Pe("public-link-permission"),PublicLinkExpiration:Pe("public-link-expiration"),PublicLinkShareDate:Pe("public-link-share-datetime"),PublicLinkShareOwner:Pe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Qd).map(([e,t])=>[e,t.value])),cr=class cr{};ye(cr,"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(cr,"PublicLink",cr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(cr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(cr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let or=cr;var ep=typeof kt=="object"&&kt&&kt.Object===Object&&kt,tp=typeof self=="object"&&self&&self.Object===Object&&self,xi=ep||tp||Function("return this")(),wr=xi.Symbol,Xa=Object.prototype,rp=Xa.hasOwnProperty,np=Xa.toString,Mr=wr?wr.toStringTag:void 0;function ip(e){var t=rp.call(e,Mr),r=e[Mr];try{e[Mr]=void 0;var n=!0}catch{}var o=np.call(e);return n&&(t?e[Mr]=r:delete e[Mr]),o}var op=Object.prototype,sp=op.toString;function ap(e){return sp.call(e)}var up="[object Null]",lp="[object Undefined]",Ya=wr?wr.toStringTag:void 0;function Ja(e){return e==null?e===void 0?lp:up:Ya&&Ya in Object(e)?ip(e):ap(e)}function cp(e){return e!=null&&typeof e=="object"}var fp="[object Symbol]";function Ai(e){return typeof e=="symbol"||cp(e)&&Ja(e)==fp}function hp(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 Ti=Array.isArray,Za=wr?wr.prototype:void 0,Qa=Za?Za.toString:void 0;function eu(e){if(typeof e=="string")return e;if(Ti(e))return hp(e,eu)+"";if(Ai(e))return Qa?Qa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dp="[object AsyncFunction]",pp="[object Function]",gp="[object GeneratorFunction]",yp="[object Proxy]";function mp(e){if(!tu(e))return!1;var t=Ja(e);return t==pp||t==gp||t==dp||t==yp}var Si=xi["__core-js_shared__"],ru=function(){var e=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bp(e){return!!ru&&ru in e}var wp=Function.prototype,vp=wp.toString;function Ep(e){if(e!=null){try{return vp.call(e)}catch{}try{return e+""}catch{}}return""}var xp=/[\\^$.*+?()[\]{}|]/g,Ap=/^\[object .+?Constructor\]$/,Tp=Function.prototype,Sp=Object.prototype,_p=Tp.toString,Op=Sp.hasOwnProperty,Np=RegExp("^"+_p.call(Op).replace(xp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rp(e){if(!tu(e)||bp(e))return!1;var t=mp(e)?Np:Ap;return t.test(Ep(e))}function Ip(e,t){return e==null?void 0:e[t]}function nu(e,t){var r=Ip(e,t);return Rp(r)?r:void 0}function Pp(e,t){return e===t||e!==e&&t!==t}var Fp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cp=/^\w*$/;function Bp(e,t){if(Ti(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ai(e)?!0:Cp.test(e)||!Fp.test(e)||t!=null&&e in Object(t)}var Dr=nu(Object,"create");function Lp(){this.__data__=Dr?Dr(null):{},this.size=0}function Up(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jp="__lodash_hash_undefined__",kp=Object.prototype,Mp=kp.hasOwnProperty;function Dp(e){var t=this.__data__;if(Dr){var r=t[e];return r===jp?void 0:r}return Mp.call(t,e)?t[e]:void 0}var $p=Object.prototype,qp=$p.hasOwnProperty;function Vp(e){var t=this.__data__;return Dr?t[e]!==void 0:qp.call(t,e)}var Hp="__lodash_hash_undefined__";function Wp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dr&&t===void 0?Hp:t,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=Lp,sr.prototype.delete=Up,sr.prototype.get=Dp,sr.prototype.has=Vp,sr.prototype.set=Wp;function Gp(){this.__data__=[],this.size=0}function Sn(e,t){for(var r=e.length;r--;)if(Pp(e[r][0],t))return r;return-1}var Kp=Array.prototype,zp=Kp.splice;function Xp(e){var t=this.__data__,r=Sn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zp.call(t,r,1),--this.size,!0}function Yp(e){var t=this.__data__,r=Sn(t,e);return r<0?void 0:t[r][1]}function Jp(e){return Sn(this.__data__,e)>-1}function Zp(e,t){var r=this.__data__,n=Sn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vr(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])}}vr.prototype.clear=Gp,vr.prototype.delete=Xp,vr.prototype.get=Yp,vr.prototype.has=Jp,vr.prototype.set=Zp;var Qp=nu(xi,"Map");function eg(){this.size=0,this.__data__={hash:new sr,map:new(Qp||vr),string:new sr}}function tg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _n(e,t){var r=e.__data__;return tg(t)?r[typeof t=="string"?"string":"hash"]:r.map}function rg(e){var t=_n(this,e).delete(e);return this.size-=t?1:0,t}function ng(e){return _n(this,e).get(e)}function ig(e){return _n(this,e).has(e)}function og(e,t){var r=_n(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ar(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])}}ar.prototype.clear=eg,ar.prototype.delete=rg,ar.prototype.get=ng,ar.prototype.has=ig,ar.prototype.set=og;var sg="Expected a function";function _i(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sg);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(_i.Cache||ar),r}_i.Cache=ar;var ag=500;function ug(e){var t=_i(e,function(n){return r.size===ag&&r.clear(),n}),r=t.cache;return t}var lg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cg=/\\(\\)?/g,fg=ug(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lg,function(r,n,o,i){t.push(o?i.replace(cg,"$1"):n||r)}),t});function $r(e){return e==null?"":eu(e)}function hg(e,t){return Ti(e)?e:Bp(e,t)?[e]:fg($r(e))}function dg(e){if(typeof e=="string"||Ai(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pg(e,t){t=hg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dg(t[r++])];return r&&r==n?e:void 0}function gg(e,t,r){var n=e==null?void 0:pg(e,t);return n===void 0?r:n}function yg(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 mg(e,t,r){var n=e.length;return r=r===void 0?n:r,yg(e,t,r)}var bg="\\ud800-\\udfff",wg="\\u0300-\\u036f",vg="\\ufe20-\\ufe2f",Eg="\\u20d0-\\u20ff",xg=wg+vg+Eg,Ag="\\ufe0e\\ufe0f",Tg="\\u200d",Sg=RegExp("["+Tg+bg+xg+Ag+"]");function iu(e){return Sg.test(e)}function _g(e){return e.split("")}var ou="\\ud800-\\udfff",Og="\\u0300-\\u036f",Ng="\\ufe20-\\ufe2f",Rg="\\u20d0-\\u20ff",Ig=Og+Ng+Rg,Pg="\\ufe0e\\ufe0f",Fg="["+ou+"]",Oi="["+Ig+"]",Ni="\\ud83c[\\udffb-\\udfff]",Cg="(?:"+Oi+"|"+Ni+")",su="[^"+ou+"]",au="(?:\\ud83c[\\udde6-\\uddff]){2}",uu="[\\ud800-\\udbff][\\udc00-\\udfff]",Bg="\\u200d",lu=Cg+"?",cu="["+Pg+"]?",Lg="(?:"+Bg+"(?:"+[su,au,uu].join("|")+")"+cu+lu+")*",Ug=cu+lu+Lg,jg="(?:"+[su+Oi+"?",Oi,au,uu,Fg].join("|")+")",kg=RegExp(Ni+"(?="+Ni+")|"+jg+Ug,"g");function Mg(e){return e.match(kg)||[]}function Dg(e){return iu(e)?Mg(e):_g(e)}function $g(e){return function(t){t=$r(t);var r=iu(t)?Dg(t):void 0,n=r?r[0]:t.charAt(0),o=r?mg(r,1).join(""):t.slice(1);return n[e]()+o}}var qg=$g("toUpperCase");function Vg(e){return qg($r(e).toLowerCase())}function Hg(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 Wg(e){return function(t){return e==null?void 0:e[t]}}var Gg={À:"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"},Kg=Wg(Gg),zg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xg="\\u0300-\\u036f",Yg="\\ufe20-\\ufe2f",Jg="\\u20d0-\\u20ff",Zg=Xg+Yg+Jg,Qg="["+Zg+"]",e0=RegExp(Qg,"g");function t0(e){return e=$r(e),e&&e.replace(zg,Kg).replace(e0,"")}var r0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n0(e){return e.match(r0)||[]}var i0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function o0(e){return i0.test(e)}var fu="\\ud800-\\udfff",s0="\\u0300-\\u036f",a0="\\ufe20-\\ufe2f",u0="\\u20d0-\\u20ff",l0=s0+a0+u0,hu="\\u2700-\\u27bf",du="a-z\\xdf-\\xf6\\xf8-\\xff",c0="\\xac\\xb1\\xd7\\xf7",f0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",h0="\\u2000-\\u206f",d0=" \\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",pu="A-Z\\xc0-\\xd6\\xd8-\\xde",p0="\\ufe0e\\ufe0f",gu=c0+f0+h0+d0,yu="['’]",mu="["+gu+"]",g0="["+l0+"]",bu="\\d+",y0="["+hu+"]",wu="["+du+"]",vu="[^"+fu+gu+bu+hu+du+pu+"]",m0="\\ud83c[\\udffb-\\udfff]",b0="(?:"+g0+"|"+m0+")",w0="[^"+fu+"]",Eu="(?:\\ud83c[\\udde6-\\uddff]){2}",xu="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="["+pu+"]",v0="\\u200d",Au="(?:"+wu+"|"+vu+")",E0="(?:"+Er+"|"+vu+")",Tu="(?:"+yu+"(?:d|ll|m|re|s|t|ve))?",Su="(?:"+yu+"(?:D|LL|M|RE|S|T|VE))?",_u=b0+"?",Ou="["+p0+"]?",x0="(?:"+v0+"(?:"+[w0,Eu,xu].join("|")+")"+Ou+_u+")*",A0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",T0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",S0=Ou+_u+x0,_0="(?:"+[y0,Eu,xu].join("|")+")"+S0,O0=RegExp([Er+"?"+wu+"+"+Tu+"(?="+[mu,Er,"$"].join("|")+")",E0+"+"+Su+"(?="+[mu,Er+Au,"$"].join("|")+")",Er+"?"+Au+"+"+Tu,Er+"+"+Su,T0,A0,bu,_0].join("|"),"g");function N0(e){return e.match(O0)||[]}function R0(e,t,r){return e=$r(e),t=t,t===void 0?o0(e)?N0(e):n0(e):e.match(t)||[]}var I0="['’]",P0=RegExp(I0,"g");function F0(e){return function(t){return Hg(R0(t0(t).replace(P0,"")),e,"")}}var C0=F0(function(e,t,r){return t=t.toLowerCase(),e+(r?Vg(t):t)});const B0={complex:["tar.bz2","tar.gz","tar.xz"]},Ri=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Nu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",L0=e=>Nu(e,0),Ru=e=>Nu(e,1),Iu=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(B0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},On=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[C0(r)]=e[r]}),t};function xr(e,t=[]){var m,E,A;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||ln.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=Iu({...e,name:r}),u=e.props[ae.LockDiscovery];let c,l,s;u&&(c=u[ae.ActiveLock],l=c[ae.LockOwner],s=c[ae.LockTime]);let f=[];e.props[ae.ShareTypes]&&(f=e.props[ae.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));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:L0(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:!!c,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:f,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:On(e.props[ae.Audio]),location:On(e.props[ae.Location]),image:On(e.props[ae.Image]),photo:On(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(We.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(We.Deletable)>=0},canRename:function(){return this.permissions.indexOf(We.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(We.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(We.Updateable)>=0||this.permissions.indexOf(We.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(We.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(We.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(We.Deny)>=0},getDomSelector:()=>Ri(n)};return Object.defineProperty(x,"nodeId",{get(){return Ru(this.id)}}),x}function U0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Iu({name:r,type:e.type}),o=ua.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:ua.basename(r),extension:n,path:Se(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:()=>Ri(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 Pu=e=>(e==null?void 0:e.driveType)==="personal",Nn=e=>(e==null?void 0:e.driveType)==="public";function j0(e,t){return Se("spaces",e,t,{leadingSlash:!0})}function Ii(e,t=""){return Se("spaces","trash-bin",e,t,{leadingSlash:!0})}function k0(e){var f,d,x,m,E,A;const t=e.publicLinkPassword,r=(f=e.props)==null?void 0:f[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],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Yd(e.id)):(l=`public/${e.id}`,s=Xd(e.id)),Object.assign(M0({...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:c})}function M0(e,t){var f,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=(f=e.root)==null?void 0:f.deleted)==null?void 0:d.state)==="trashed",i=Se(e.webDavPath||j0(e.id),{leadingSlash:!0}),a=Se(e.serverUrl,"remote.php/dav",i),u=Se(e.webDavTrashPath||Ii(e.id),{leadingSlash:!0}),c=Se(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:D0(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 Pu(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 Pu(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:()=>Ri(e.id),getDriveAliasAndItem({path:p}){return Se(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return Se(a,p)},getWebDavTrashUrl({path:p}){return Se(c,p)},isMember(p){var h;return Nn(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 Ru(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 D0(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 $0=(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 gg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Pi={},Rn={exports:{}},Fu;function Fi(){if(Fu)return Rn.exports;Fu=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)}Rn.exports=i,Rn.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 c(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return c(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=c(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 f(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,f(this,w,T)),this},i.prototype.prependOnceListener=function(w,T){return u(T),this.prependListener(w,f(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 Rn.exports}var In={exports:{}},Cu;function ur(){return Cu||(Cu=1,typeof Object.create=="function"?In.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:In.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),In.exports}var Ci,Bu;function Lu(){return Bu||(Bu=1,Ci=Fi().EventEmitter),Ci}var Bi={},Uu;function Pn(){return Uu||(Uu=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,c=a.length;u<c;++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 f(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(f(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,ce=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]|=ce*128};/*!
6
+ */(function(e){const t=gn,r=ci,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=c(),!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 c(){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 f(F,b,S)}s.poolSize=8192;function f(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(st(F,a)||F&&st(F.buffer,a)||typeof u<"u"&&(st(F,u)||F&&st(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 k=F.valueOf&&F.valueOf();if(k!=null&&k!==F)return s.from(k,b,S);const V=g(F);if(V)return V;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 f(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 k=l(S);const V=k.write(F,b);return V!==S&&(k=k.slice(0,V)),k}function A(F){const b=F.length<0?0:y(F.length)|0,S=l(b);for(let k=0;k<b;k+=1)S[k]=F[k]&255;return S}function p(F){if(st(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 k;return b===void 0&&S===void 0?k=new i(F):S===void 0?k=new i(F,b):k=new i(F,b,S),Object.setPrototypeOf(k,s.prototype),k}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(st(b,i)&&(b=s.from(b,b.offset,b.byteLength)),st(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 k=b.length,V=S.length;for(let z=0,ne=Math.min(k,V);z<ne;++z)if(b[z]!==S[z]){k=b[z],V=S[z];break}return k<V?-1:V<k?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 k;if(S===void 0)for(S=0,k=0;k<b.length;++k)S+=b[k].length;const V=s.allocUnsafe(S);let z=0;for(k=0;k<b.length;++k){let ne=b[k];if(st(ne,i))z+ne.length>V.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(V,z)):i.prototype.set.call(V,ne,z);else if(s.isBuffer(ne))ne.copy(V,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return V};function T(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||st(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,k=arguments.length>2&&arguments[2]===!0;if(!k&&S===0)return 0;let V=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return rt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Le(F).length;default:if(V)return k?-1:rt(F).length;b=(""+b).toLowerCase(),V=!0}}s.byteLength=T;function P(F,b,S){let k=!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 ce(this,b,S);case"ascii":return Ee(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(k)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),k=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const k=F[b];F[b]=F[S],F[S]=k}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?ce(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,k,V,z){if(st(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),k===void 0&&(k=b?b.length:0),V===void 0&&(V=0),z===void 0&&(z=this.length),S<0||k>b.length||V<0||z>this.length)throw new RangeError("out of range index");if(V>=z&&S>=k)return 0;if(V>=z)return-1;if(S>=k)return 1;if(S>>>=0,k>>>=0,V>>>=0,z>>>=0,this===b)return 0;let ne=z-V,xe=k-S;const Ue=Math.min(ne,xe),je=this.slice(V,z),Me=b.slice(S,k);for(let Re=0;Re<Ue;++Re)if(je[Re]!==Me[Re]){ne=je[Re],xe=Me[Re];break}return ne<xe?-1:xe<ne?1:0};function O(F,b,S,k,V){if(F.length===0)return-1;if(typeof S=="string"?(k=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ot(S)&&(S=V?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(V)return-1;S=F.length-1}else if(S<0)if(V)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,k)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,k,V);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?V?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,k,V);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,k,V){let z=1,ne=F.length,xe=b.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,xe/=2,S/=2}function Ue(Me,Re){return z===1?Me[Re]:Me.readUInt16BE(Re*z)}let je;if(V){let Me=-1;for(je=S;je<ne;je++)if(Ue(F,je)===Ue(b,Me===-1?0:je-Me)){if(Me===-1&&(Me=je),je-Me+1===xe)return Me*z}else Me!==-1&&(je-=je-Me),Me=-1}else for(S+xe>ne&&(S=ne-xe),je=S;je>=0;je--){let Me=!0;for(let Re=0;Re<xe;Re++)if(Ue(F,je+Re)!==Ue(b,Re)){Me=!1;break}if(Me)return je}return-1}s.prototype.includes=function(b,S,k){return this.indexOf(b,S,k)!==-1},s.prototype.indexOf=function(b,S,k){return O(this,b,S,k,!0)},s.prototype.lastIndexOf=function(b,S,k){return O(this,b,S,k,!1)};function G(F,b,S,k){S=Number(S)||0;const V=F.length-S;k?(k=Number(k),k>V&&(k=V)):k=V;const z=b.length;k>z/2&&(k=z/2);let ne;for(ne=0;ne<k;++ne){const xe=parseInt(b.substr(ne*2,2),16);if(Ot(xe))return ne;F[S+ne]=xe}return ne}function L(F,b,S,k){return ct(rt(b,F.length-S),F,S,k)}function D(F,b,S,k){return ct(Je(b),F,S,k)}function oe(F,b,S,k){return ct(Le(b),F,S,k)}function re(F,b,S,k){return ct(Oe(b,F.length-S),F,S,k)}s.prototype.write=function(b,S,k,V){if(S===void 0)V="utf8",k=this.length,S=0;else if(k===void 0&&typeof S=="string")V=S,k=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(k)?(k=k>>>0,V===void 0&&(V="utf8")):(V=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((k===void 0||k>z)&&(k=z),b.length>0&&(k<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ne=!1;for(;;)switch(V){case"hex":return G(this,b,S,k);case"utf8":case"utf-8":return L(this,b,S,k);case"ascii":case"latin1":case"binary":return D(this,b,S,k);case"base64":return oe(this,b,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,b,S,k);default:if(ne)throw new TypeError("Unknown encoding: "+V);V=(""+V).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 ce(F,b,S){S=Math.min(F.length,S);const k=[];let V=b;for(;V<S;){const z=F[V];let ne=null,xe=z>239?4:z>223?3:z>191?2:1;if(V+xe<=S){let Ue,je,Me,Re;switch(xe){case 1:z<128&&(ne=z);break;case 2:Ue=F[V+1],(Ue&192)===128&&(Re=(z&31)<<6|Ue&63,Re>127&&(ne=Re));break;case 3:Ue=F[V+1],je=F[V+2],(Ue&192)===128&&(je&192)===128&&(Re=(z&15)<<12|(Ue&63)<<6|je&63,Re>2047&&(Re<55296||Re>57343)&&(ne=Re));break;case 4:Ue=F[V+1],je=F[V+2],Me=F[V+3],(Ue&192)===128&&(je&192)===128&&(Me&192)===128&&(Re=(z&15)<<18|(Ue&63)<<12|(je&63)<<6|Me&63,Re>65535&&Re<1114112&&(ne=Re))}}ne===null?(ne=65533,xe=1):ne>65535&&(ne-=65536,k.push(ne>>>10&1023|55296),ne=56320|ne&1023),k.push(ne),V+=xe}return fe(k)}const ge=4096;function fe(F){const b=F.length;if(b<=ge)return String.fromCharCode.apply(String,F);let S="",k=0;for(;k<b;)S+=String.fromCharCode.apply(String,F.slice(k,k+=ge));return S}function Ee(F,b,S){let k="";S=Math.min(F.length,S);for(let V=b;V<S;++V)k+=String.fromCharCode(F[V]&127);return k}function be(F,b,S){let k="";S=Math.min(F.length,S);for(let V=b;V<S;++V)k+=String.fromCharCode(F[V]);return k}function K(F,b,S){const k=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>k)&&(S=k);let V="";for(let z=b;z<S;++z)V+=Rt[F[z]];return V}function Q(F,b,S){const k=F.slice(b,S);let V="";for(let z=0;z<k.length-1;z+=2)V+=String.fromCharCode(k[z]+k[z+1]*256);return V}s.prototype.slice=function(b,S){const k=this.length;b=~~b,S=S===void 0?k:~~S,b<0?(b+=k,b<0&&(b=0)):b>k&&(b=k),S<0?(S+=k,S<0&&(S=0)):S>k&&(S=k),S<b&&(S=b);const V=this.subarray(b,S);return Object.setPrototypeOf(V,s.prototype),V};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,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)V+=this[b+ne]*z;return V},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=this[b+--S],z=1;for(;S>0&&(z*=256);)V+=this[b+--S]*z;return V},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=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+k*2**24;return BigInt(V)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=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+k;return(BigInt(V)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)V+=this[b+ne]*z;return z*=128,V>=z&&(V-=Math.pow(2,8*S)),V},s.prototype.readIntBE=function(b,S,k){b=b>>>0,S=S>>>0,k||ee(b,S,this.length);let V=S,z=1,ne=this[b+--V];for(;V>0&&(z*=256);)ne+=this[b+--V]*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 k=this[b]|this[b+1]<<8;return k&32768?k|4294901760:k},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const k=this[b+1]|this[b]<<8;return k&32768?k|4294901760:k},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=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(k<<24);return(BigInt(V)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const V=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(V)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+k)}),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,k,V,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>V||b<z)throw new RangeError('"value" argument is out of bounds');if(S+k>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,k,V){if(b=+b,S=S>>>0,k=k>>>0,!V){const xe=Math.pow(2,8*k)-1;ue(this,b,S,k,xe,0)}let z=1,ne=0;for(this[S]=b&255;++ne<k&&(z*=256);)this[S+ne]=b/z&255;return S+k},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,k,V){if(b=+b,S=S>>>0,k=k>>>0,!V){const xe=Math.pow(2,8*k)-1;ue(this,b,S,k,xe,0)}let z=k-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+k},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,k){return b=+b,S=S>>>0,k||ue(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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 H(F,b,S,k,V){pe(b,k,V,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,k,V){pe(b,k,V,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=it(function(b,S=0){return H(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=it(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,k,V){if(b=+b,S=S>>>0,!V){const Ue=Math.pow(2,8*k-1);ue(this,b,S,k,Ue-1,-Ue)}let z=0,ne=1,xe=0;for(this[S]=b&255;++z<k&&(ne*=256);)b<0&&xe===0&&this[S+z-1]!==0&&(xe=1),this[S+z]=(b/ne>>0)-xe&255;return S+k},s.prototype.writeIntBE=function(b,S,k,V){if(b=+b,S=S>>>0,!V){const Ue=Math.pow(2,8*k-1);ue(this,b,S,k,Ue-1,-Ue)}let z=k-1,ne=1,xe=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&xe===0&&this[S+z+1]!==0&&(xe=1),this[S+z]=(b/ne>>0)-xe&255;return S+k},s.prototype.writeInt8=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||ue(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,k){return b=+b,S=S>>>0,k||ue(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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=it(function(b,S=0){return H(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=it(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,k,V,z){if(S+k>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,k,V){return b=+b,S=S>>>0,V||N(F,b,S,4),r.write(F,b,S,k,23,4),S+4}s.prototype.writeFloatLE=function(b,S,k){return q(this,b,S,!0,k)},s.prototype.writeFloatBE=function(b,S,k){return q(this,b,S,!1,k)};function $(F,b,S,k,V){return b=+b,S=S>>>0,V||N(F,b,S,8),r.write(F,b,S,k,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,k){return $(this,b,S,!0,k)},s.prototype.writeDoubleBE=function(b,S,k){return $(this,b,S,!1,k)},s.prototype.copy=function(b,S,k,V){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(k||(k=0),!V&&V!==0&&(V=this.length),S>=b.length&&(S=b.length),S||(S=0),V>0&&V<k&&(V=k),V===k||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),b.length-S<V-k&&(V=b.length-S+k);const z=V-k;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,k,V):i.prototype.set.call(b,this.subarray(k,V),S),z},s.prototype.fill=function(b,S,k,V){if(typeof b=="string"){if(typeof S=="string"?(V=S,S=0,k=this.length):typeof k=="string"&&(V=k,k=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!s.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(b.length===1){const ne=b.charCodeAt(0);(V==="utf8"&&ne<128||V==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<k)throw new RangeError("Out of range index");if(k<=S)return this;S=S>>>0,k=k===void 0?this.length:k>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<k;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,V),xe=ne.length;if(xe===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<k-S;++z)this[z+S]=ne[z%xe]}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(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,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 k=`The value of "${F}" is out of range.`,V=S;return Number.isInteger(S)&&Math.abs(S)>2**32?V=Y(String(S)):typeof S=="bigint"&&(V=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(V=Y(V)),V+="n"),k+=` It must be ${b}. Received ${V}`,k},RangeError);function Y(F){let b="",S=F.length;const k=F[0]==="-"?1:0;for(;S>=k+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,k,V,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let xe;throw b===0||b===BigInt(0)?xe=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:xe=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",xe,F)}se(k,V,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 Be=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Be,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function rt(F,b){b=b||1/0;let S;const k=F.length;let V=null;const z=[];for(let ne=0;ne<k;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!V){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===k){(b-=3)>-1&&z.push(239,191,189);continue}V=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),V=S;continue}S=(V-55296<<10|S-56320)+65536}else V&&(b-=3)>-1&&z.push(239,191,189);if(V=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 Je(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function Oe(F,b){let S,k,V;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),k=S>>8,V=S%256,z.push(V),z.push(k);return z}function Le(F){return t.toByteArray(te(F))}function ct(F,b,S,k){let V;for(V=0;V<k&&!(V+S>=b.length||V>=F.length);++V)b[V+S]=F[V];return V}function st(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 k=S*16;for(let V=0;V<16;++V)b[k+V]=F[S]+F[V]}return b}();function it(F){return typeof BigInt>"u"?Zt:F}function Zt(){throw new Error("BigInt not supported")}})(wa);const mr=wa.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 Ea=we.prototype,xa={};["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=>{xa[e]={value:e}}),Object.defineProperties(we,xa),Object.defineProperty(Ea,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(Ea);return Z.toFlatObject(e,a,function(c){return c!==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 ed=null;function fi(e){return Z.isPlainObject(e)||Z.isArray(e)}function Aa(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function Ta(e,t,r){return e?e.concat(t).map(function(o,i){return o=Aa(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function td(e){return Z.isArray(e)&&!e.some(fi)}const rd=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function yn(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,c=(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(!c&&Z.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(m)||Z.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):mr.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)&&td(m)||(Z.isFileList(m)||Z.endsWith(E,"[]"))&&(p=Z.toArray(m)))return E=Aa(E),p.forEach(function(g,y){!(Z.isUndefined(g)||g===null)&&t.append(a===!0?Ta([E],y,i):a===null?E:E+"[]",l(g))}),!1}return fi(m)?!0:(t.append(Ta(A,E,i),l(m)),!1)}const f=[],d=Object.assign(rd,{defaultVisitor:s,convertValue:l,isVisitable:fi});function x(m,E){if(!Z.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.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])}),f.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Sa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hi(e,t){this._pairs=[],e&&yn(e,this,t)}const _a=hi.prototype;_a.append=function(t,r){this._pairs.push([t,r])},_a.toString=function(t){const r=t?function(n){return t.call(this,n,Sa)}:Sa;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function nd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oa(e,t,r){if(!t)return e;const n=r&&r.encode||nd;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 hi(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Na{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 Ra={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},id=typeof URLSearchParams<"u"?URLSearchParams:hi,od=typeof FormData<"u"?FormData:null,sd=typeof Blob<"u"?Blob:null,ad={isBrowser:!0,classes:{URLSearchParams:id,FormData:od,Blob:sd},protocols:["http","https","file","blob","url","data"]};const di=typeof window<"u"&&typeof document<"u",pi=typeof navigator=="object"&&navigator||void 0,ud=di&&(!pi||["ReactNative","NativeScript","NS"].indexOf(pi.product)<0),ld=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cd=di&&window.location.href||"http://localhost";var fd=Object.freeze({__proto__:null,hasBrowserEnv:di,hasStandardBrowserEnv:ud,hasStandardBrowserWebWorkerEnv:ld,navigator:pi,origin:cd}),at={...fd,...ad};function hd(e,t){return yn(e,new at.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return at.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function dd(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pd(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 Ia(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&Z.isArray(o)?o.length:a,c?(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]=pd(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(dd(n),o,r,0)}),r}return null}function gd(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 jr={transitional:Ra,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(Ia(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 hd(t,this.formSerializer).toString();if((u=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return yn(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),gd(t)):t}],transformResponse:[function(t){const r=this.transitional||jr.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:at.classes.FormData,Blob:at.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=>{jr.headers[e]={}});const yd=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 md=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]&&yd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Pa=Symbol("internals");function kr(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:Z.isArray(e)?e.map(mn):String(e)}function bd(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 wd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gi(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 vd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ed(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 mt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=kr(c);if(!s)throw new Error("header name must be a non-empty string");const f=Z.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=mn(u))}const a=(u,c)=>Z.forEach(u,(l,s)=>i(l,s,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Z.isString(t)&&(t=t.trim())&&!wd(t))a(md(t),r);else if(Z.isObject(t)&&Z.isIterable(t)){let u={},c,l;for(const s of t){if(!Z.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?Z.isArray(c)?[...c,s[1]]:[c,s[1]]:s[1]}a(u,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=kr(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return bd(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=kr(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||gi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=kr(a),a){const u=Z.findKey(n,a);u&&(!r||gi(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||gi(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]=mn(o),delete r[i];return}const u=t?vd(i):String(i).trim();u!==i&&delete r[i],r[u]=mn(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
+ `)}getSetCookie(){return this.get("set-cookie")||[]}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[Pa]=this[Pa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=kr(a);n[u]||(Ed(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(mt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(mt);function yi(e,t){const r=this||jr,n=t||r,o=mt.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 Fa(e){return!!(e&&e.__CANCEL__)}function br(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(br,we,{__CANCEL__:!0});function Ca(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 xd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ad(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(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,d=0;for(;f!==o;)d+=r[f++],f=f%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 Td(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(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const bn=(e,t,r=3)=>{let n=0;const o=Ad(50,250);return Td(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Ba=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},La=e=>(...t)=>Z.asap(()=>e(...t));var Sd=at.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,at.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,_d=at.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 Od(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ua(e,t,r){let n=!Od(t);return e&&(n||r==!1)?Nd(e,t):t}const ja=e=>e instanceof mt?{...e}:e;function nr(e,t){t=t||{};const r={};function n(l,s,f,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,f,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,f,d)}else return n(l,s,f,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,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={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,f)=>o(ja(l),ja(s),f,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const f=c[s]||o,d=f(e[s],t[s],s);Z.isUndefined(d)&&f!==u||(r[s]=d)}),r}var ka=e=>{const t=nr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=mt.from(a),t.url=Oa(Ua(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 c;if(Z.isFormData(r)){if(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...s]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(at.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&Sd(t.url))){const l=o&&i&&_d.read(i);l&&a.set(o,l)}return t},Rd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=ka(e);let i=o.data;const a=mt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,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=mt.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};Ca(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||Ra;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]=bn(l,!0),A.addEventListener("progress",d)),c&&A.upload&&([f,x]=bn(c),A.upload.addEventListener("progress",f),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=g=>{A&&(n(!g||g.type?new br(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=xd(o.url);if(h&&at.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const Id=(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 br(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:c}=n;return c.unsubscribe=()=>Z.asap(u),c}},Pd=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},Fd=async function*(e,t){for await(const r of Cd(e))yield*Pd(r,t)},Cd=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()}},Ma=(e,t,r,n)=>{const o=Fd(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let d=i+=f;r(d)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},wn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Da=wn&&typeof ReadableStream=="function",Bd=wn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$a=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ld=Da&&$a(()=>{let e=!1;const t=new Request(at.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qa=64*1024,mi=Da&&$a(()=>Z.isReadableStream(new Response("").body)),vn={stream:mi&&(e=>e.body)};wn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vn[t]&&(vn[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 Ud=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(at.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 Bd(e)).byteLength},jd=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Ud(t)};var kd=wn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:l,headers:s,withCredentials:f="same-origin",fetchOptions:d}=ka(e);l=l?(l+"").toLowerCase():"text";let x=Id([o,i&&i.toAbortSignal()],a),m;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(c&&Ld&&r!=="get"&&r!=="head"&&(A=await jd(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]=Ba(A,bn(La(c)));n=Ma(w.body,qa,P,I)}}Z.isString(f)||(f=f?"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?f:void 0});let h=await fetch(m);const g=mi&&(l==="stream"||l==="response");if(mi&&(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&&Ba(T,bn(La(u),!0))||[];h=new Response(Ma(h.body,qa,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await vn[Z.findKey(vn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,T)=>{Ca(w,T,{data:y,headers:mt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/Load failed|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 bi={http:ed,xhr:Rd,fetch:kd};Z.forEach(bi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Va=e=>`- ${e}`,Md=e=>Z.isFunction(e)||e===null||e===!1;var Ha={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,!Md(r)&&(n=bi[(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,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
+ `+i.map(Va).join(`
10
+ `):" "+Va(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:bi};function wi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function Wa(e){return wi(e),e.headers=mt.from(e.headers),e.data=yi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ha.getAdapter(e.adapter||jr.adapter)(e).then(function(n){return wi(e),n.data=yi.call(e,e.transformResponse,n),n.headers=mt.from(n.headers),n},function(n){return Fa(n)||(wi(e),n&&n.response&&(n.response.data=yi.call(e,e.transformResponse,n.response),n.response.headers=mt.from(n.response.headers))),Promise.reject(n)})}const Ga="1.9.0",En={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{En[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ka={};En.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ga+"] 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}},En.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Dd(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],c=u===void 0||a(u,i,e);if(c!==!0)throw new we("option "+i+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var xn={assertOptions:Dd,validators:En};const Ct=xn.validators;let ir=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Na,response:new Na}}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=nr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&xn.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}:xn.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),xn.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=mt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(c=c&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,f=0,d;if(!c){const m=[Wa.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);f<d;)s=s.then(m[f++],m[f++]);return s}d=u.length;let x=r;for(f=0;f<d;){const m=u[f++],E=u[f++];try{x=m(x)}catch(A){E.call(this,A);break}}try{s=Wa.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,d=l.length;f<d;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=nr(this.defaults,t);const r=Ua(t.baseURL,t.url,t.allowAbsoluteUrls);return Oa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){ir.prototype[t]=function(r,n){return this.request(nr(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(nr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ir.prototype[t]=r(),ir.prototype[t+"Form"]=r(!0)});let $d=class Kf{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 br(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 Kf(function(o){t=o}),cancel:t}}};function qd(e){return function(r){return e.apply(null,r)}}function Vd(e){return Z.isObject(e)&&e.isAxiosError===!0}const vi={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(vi).forEach(([e,t])=>{vi[t]=e});function za(e){const t=new ir(e),r=ca(ir.prototype.request,t);return Z.extend(r,ir.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return za(nr(e,o))},r}const Xe=za(jr);Xe.Axios=ir,Xe.CanceledError=br,Xe.CancelToken=$d,Xe.isCancel=Fa,Xe.VERSION=Ga,Xe.toFormData=yn,Xe.AxiosError=we,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=qd,Xe.isAxiosError=Vd,Xe.mergeConfig=nr,Xe.AxiosHeaders=mt,Xe.formToJSON=e=>Ia(Z.isHTMLForm(e)?new FormData(e):e),Xe.getAdapter=Ha.getAdapter,Xe.HttpStatusCode=vi,Xe.default=Xe;const{Axios:y1,AxiosError:m1,CanceledError:b1,isCancel:w1,CancelToken:v1,VERSION:E1,all:x1,Cancel:A1,isAxiosError:T1,spread:S1,toFormData:_1,AxiosHeaders:O1,HttpStatusCode:N1,formToJSON:R1,getAdapter:I1,mergeConfig:P1}=Xe,An=e=>encodeURIComponent(e).split("%2F").join("/"),Hd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Wd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Gd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Hd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Kd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},Se=(...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=Wd(e);const n=Gd(e);return Kd(n,r)};class Xa extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class zd extends Xa{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Xd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Yd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class We{}ye(We,"Shared","S"),ye(We,"Shareable","R"),ye(We,"Mounted","M"),ye(We,"Deletable","D"),ye(We,"Renameable","N"),ye(We,"Moveable","V"),ye(We,"Updateable","NV"),ye(We,"FileUpdateable","W"),ye(We,"FolderCreateable","CK"),ye(We,"Deny","Z"),ye(We,"SecureView","X");var Mt=(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))(Mt||{});const Tn=e=>({value:e,type:null}),Jd=e=>Tn(e),Pe=e=>Tn(e),Ei=e=>Tn(e),Zd=e=>Tn(e),Qd={Permissions:Pe("permissions"),IsFavorite:Ei("favorite"),FileId:Pe("fileid"),FileParent:Pe("file-parent"),Name:Pe("name"),OwnerId:Pe("owner-id"),OwnerDisplayName:Pe("owner-display-name"),PrivateLink:Pe("privatelink"),ContentLength:Ei("getcontentlength"),ContentSize:Ei("size"),LastModifiedDate:Pe("getlastmodified"),Tags:Jd("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Pe("getetag"),MimeType:Pe("getcontenttype"),ResourceType:Zd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Pe("owner"),LockTime:Pe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Pe("downloadURL"),Highlights:Pe("highlights"),MetaPathForUser:Pe("meta-path-for-user"),RemoteItemId:Pe("remote-item-id"),ShareId:Pe("shareid"),ShareRoot:Pe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Pe("share-permissions"),TrashbinOriginalFilename:Pe("trashbin-original-filename"),TrashbinOriginalLocation:Pe("trashbin-original-location"),TrashbinDeletedDate:Pe("trashbin-delete-datetime"),PublicLinkItemType:Pe("public-link-item-type"),PublicLinkPermission:Pe("public-link-permission"),PublicLinkExpiration:Pe("public-link-expiration"),PublicLinkShareDate:Pe("public-link-share-datetime"),PublicLinkShareOwner:Pe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Qd).map(([e,t])=>[e,t.value])),cr=class cr{};ye(cr,"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(cr,"PublicLink",cr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(cr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(cr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let or=cr;var ep=typeof kt=="object"&&kt&&kt.Object===Object&&kt,tp=typeof self=="object"&&self&&self.Object===Object&&self,xi=ep||tp||Function("return this")(),wr=xi.Symbol,Ya=Object.prototype,rp=Ya.hasOwnProperty,np=Ya.toString,Mr=wr?wr.toStringTag:void 0;function ip(e){var t=rp.call(e,Mr),r=e[Mr];try{e[Mr]=void 0;var n=!0}catch{}var o=np.call(e);return n&&(t?e[Mr]=r:delete e[Mr]),o}var op=Object.prototype,sp=op.toString;function ap(e){return sp.call(e)}var up="[object Null]",lp="[object Undefined]",Ja=wr?wr.toStringTag:void 0;function Za(e){return e==null?e===void 0?lp:up:Ja&&Ja in Object(e)?ip(e):ap(e)}function cp(e){return e!=null&&typeof e=="object"}var fp="[object Symbol]";function Ai(e){return typeof e=="symbol"||cp(e)&&Za(e)==fp}function hp(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 Ti=Array.isArray,Qa=wr?wr.prototype:void 0,eu=Qa?Qa.toString:void 0;function tu(e){if(typeof e=="string")return e;if(Ti(e))return hp(e,tu)+"";if(Ai(e))return eu?eu.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ru(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dp="[object AsyncFunction]",pp="[object Function]",gp="[object GeneratorFunction]",yp="[object Proxy]";function mp(e){if(!ru(e))return!1;var t=Za(e);return t==pp||t==gp||t==dp||t==yp}var Si=xi["__core-js_shared__"],nu=function(){var e=/[^.]+$/.exec(Si&&Si.keys&&Si.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bp(e){return!!nu&&nu in e}var wp=Function.prototype,vp=wp.toString;function Ep(e){if(e!=null){try{return vp.call(e)}catch{}try{return e+""}catch{}}return""}var xp=/[\\^$.*+?()[\]{}|]/g,Ap=/^\[object .+?Constructor\]$/,Tp=Function.prototype,Sp=Object.prototype,_p=Tp.toString,Op=Sp.hasOwnProperty,Np=RegExp("^"+_p.call(Op).replace(xp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rp(e){if(!ru(e)||bp(e))return!1;var t=mp(e)?Np:Ap;return t.test(Ep(e))}function Ip(e,t){return e==null?void 0:e[t]}function iu(e,t){var r=Ip(e,t);return Rp(r)?r:void 0}function Pp(e,t){return e===t||e!==e&&t!==t}var Fp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cp=/^\w*$/;function Bp(e,t){if(Ti(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ai(e)?!0:Cp.test(e)||!Fp.test(e)||t!=null&&e in Object(t)}var Dr=iu(Object,"create");function Lp(){this.__data__=Dr?Dr(null):{},this.size=0}function Up(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jp="__lodash_hash_undefined__",kp=Object.prototype,Mp=kp.hasOwnProperty;function Dp(e){var t=this.__data__;if(Dr){var r=t[e];return r===jp?void 0:r}return Mp.call(t,e)?t[e]:void 0}var $p=Object.prototype,qp=$p.hasOwnProperty;function Vp(e){var t=this.__data__;return Dr?t[e]!==void 0:qp.call(t,e)}var Hp="__lodash_hash_undefined__";function Wp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dr&&t===void 0?Hp:t,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=Lp,sr.prototype.delete=Up,sr.prototype.get=Dp,sr.prototype.has=Vp,sr.prototype.set=Wp;function Gp(){this.__data__=[],this.size=0}function Sn(e,t){for(var r=e.length;r--;)if(Pp(e[r][0],t))return r;return-1}var Kp=Array.prototype,zp=Kp.splice;function Xp(e){var t=this.__data__,r=Sn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zp.call(t,r,1),--this.size,!0}function Yp(e){var t=this.__data__,r=Sn(t,e);return r<0?void 0:t[r][1]}function Jp(e){return Sn(this.__data__,e)>-1}function Zp(e,t){var r=this.__data__,n=Sn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vr(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])}}vr.prototype.clear=Gp,vr.prototype.delete=Xp,vr.prototype.get=Yp,vr.prototype.has=Jp,vr.prototype.set=Zp;var Qp=iu(xi,"Map");function eg(){this.size=0,this.__data__={hash:new sr,map:new(Qp||vr),string:new sr}}function tg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _n(e,t){var r=e.__data__;return tg(t)?r[typeof t=="string"?"string":"hash"]:r.map}function rg(e){var t=_n(this,e).delete(e);return this.size-=t?1:0,t}function ng(e){return _n(this,e).get(e)}function ig(e){return _n(this,e).has(e)}function og(e,t){var r=_n(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ar(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])}}ar.prototype.clear=eg,ar.prototype.delete=rg,ar.prototype.get=ng,ar.prototype.has=ig,ar.prototype.set=og;var sg="Expected a function";function _i(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sg);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(_i.Cache||ar),r}_i.Cache=ar;var ag=500;function ug(e){var t=_i(e,function(n){return r.size===ag&&r.clear(),n}),r=t.cache;return t}var lg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cg=/\\(\\)?/g,fg=ug(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lg,function(r,n,o,i){t.push(o?i.replace(cg,"$1"):n||r)}),t});function $r(e){return e==null?"":tu(e)}function hg(e,t){return Ti(e)?e:Bp(e,t)?[e]:fg($r(e))}function dg(e){if(typeof e=="string"||Ai(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pg(e,t){t=hg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[dg(t[r++])];return r&&r==n?e:void 0}function gg(e,t,r){var n=e==null?void 0:pg(e,t);return n===void 0?r:n}function yg(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 mg(e,t,r){var n=e.length;return r=r===void 0?n:r,yg(e,t,r)}var bg="\\ud800-\\udfff",wg="\\u0300-\\u036f",vg="\\ufe20-\\ufe2f",Eg="\\u20d0-\\u20ff",xg=wg+vg+Eg,Ag="\\ufe0e\\ufe0f",Tg="\\u200d",Sg=RegExp("["+Tg+bg+xg+Ag+"]");function ou(e){return Sg.test(e)}function _g(e){return e.split("")}var su="\\ud800-\\udfff",Og="\\u0300-\\u036f",Ng="\\ufe20-\\ufe2f",Rg="\\u20d0-\\u20ff",Ig=Og+Ng+Rg,Pg="\\ufe0e\\ufe0f",Fg="["+su+"]",Oi="["+Ig+"]",Ni="\\ud83c[\\udffb-\\udfff]",Cg="(?:"+Oi+"|"+Ni+")",au="[^"+su+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Bg="\\u200d",cu=Cg+"?",fu="["+Pg+"]?",Lg="(?:"+Bg+"(?:"+[au,uu,lu].join("|")+")"+fu+cu+")*",Ug=fu+cu+Lg,jg="(?:"+[au+Oi+"?",Oi,uu,lu,Fg].join("|")+")",kg=RegExp(Ni+"(?="+Ni+")|"+jg+Ug,"g");function Mg(e){return e.match(kg)||[]}function Dg(e){return ou(e)?Mg(e):_g(e)}function $g(e){return function(t){t=$r(t);var r=ou(t)?Dg(t):void 0,n=r?r[0]:t.charAt(0),o=r?mg(r,1).join(""):t.slice(1);return n[e]()+o}}var qg=$g("toUpperCase");function Vg(e){return qg($r(e).toLowerCase())}function Hg(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 Wg(e){return function(t){return e==null?void 0:e[t]}}var Gg={À:"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"},Kg=Wg(Gg),zg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xg="\\u0300-\\u036f",Yg="\\ufe20-\\ufe2f",Jg="\\u20d0-\\u20ff",Zg=Xg+Yg+Jg,Qg="["+Zg+"]",e0=RegExp(Qg,"g");function t0(e){return e=$r(e),e&&e.replace(zg,Kg).replace(e0,"")}var r0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n0(e){return e.match(r0)||[]}var i0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function o0(e){return i0.test(e)}var hu="\\ud800-\\udfff",s0="\\u0300-\\u036f",a0="\\ufe20-\\ufe2f",u0="\\u20d0-\\u20ff",l0=s0+a0+u0,du="\\u2700-\\u27bf",pu="a-z\\xdf-\\xf6\\xf8-\\xff",c0="\\xac\\xb1\\xd7\\xf7",f0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",h0="\\u2000-\\u206f",d0=" \\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",gu="A-Z\\xc0-\\xd6\\xd8-\\xde",p0="\\ufe0e\\ufe0f",yu=c0+f0+h0+d0,mu="['’]",bu="["+yu+"]",g0="["+l0+"]",wu="\\d+",y0="["+du+"]",vu="["+pu+"]",Eu="[^"+hu+yu+wu+du+pu+gu+"]",m0="\\ud83c[\\udffb-\\udfff]",b0="(?:"+g0+"|"+m0+")",w0="[^"+hu+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",Au="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="["+gu+"]",v0="\\u200d",Tu="(?:"+vu+"|"+Eu+")",E0="(?:"+Er+"|"+Eu+")",Su="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",_u="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",Ou=b0+"?",Nu="["+p0+"]?",x0="(?:"+v0+"(?:"+[w0,xu,Au].join("|")+")"+Nu+Ou+")*",A0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",T0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",S0=Nu+Ou+x0,_0="(?:"+[y0,xu,Au].join("|")+")"+S0,O0=RegExp([Er+"?"+vu+"+"+Su+"(?="+[bu,Er,"$"].join("|")+")",E0+"+"+_u+"(?="+[bu,Er+Tu,"$"].join("|")+")",Er+"?"+Tu+"+"+Su,Er+"+"+_u,T0,A0,wu,_0].join("|"),"g");function N0(e){return e.match(O0)||[]}function R0(e,t,r){return e=$r(e),t=t,t===void 0?o0(e)?N0(e):n0(e):e.match(t)||[]}var I0="['’]",P0=RegExp(I0,"g");function F0(e){return function(t){return Hg(R0(t0(t).replace(P0,"")),e,"")}}var C0=F0(function(e,t,r){return t=t.toLowerCase(),e+(r?Vg(t):t)});const B0={complex:["tar.bz2","tar.gz","tar.xz"]},Ri=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Ru=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",L0=e=>Ru(e,0),Iu=e=>Ru(e,1),Pu=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(B0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},On=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[C0(r)]=e[r]}),t};function xr(e,t=[]){var m,E,A;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||ln.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=Pu({...e,name:r}),u=e.props[ae.LockDiscovery];let c,l,s;u&&(c=u[ae.ActiveLock],l=c[ae.LockOwner],s=c[ae.LockTime]);let f=[];e.props[ae.ShareTypes]&&(f=e.props[ae.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));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:L0(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:!!c,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:f,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:On(e.props[ae.Audio]),location:On(e.props[ae.Location]),image:On(e.props[ae.Image]),photo:On(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(We.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(We.Deletable)>=0},canRename:function(){return this.permissions.indexOf(We.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(We.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(We.Updateable)>=0||this.permissions.indexOf(We.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(We.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(We.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(We.Deny)>=0},getDomSelector:()=>Ri(n)};return Object.defineProperty(x,"nodeId",{get(){return Iu(this.id)}}),x}function U0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Pu({name:r,type:e.type}),o=la.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:la.basename(r),extension:n,path:Se(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:()=>Ri(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 Fu=e=>(e==null?void 0:e.driveType)==="personal",Nn=e=>(e==null?void 0:e.driveType)==="public";function j0(e,t){return Se("spaces",e,t,{leadingSlash:!0})}function Ii(e,t=""){return Se("spaces","trash-bin",e,t,{leadingSlash:!0})}function k0(e){var f,d,x,m,E,A;const t=e.publicLinkPassword,r=(f=e.props)==null?void 0:f[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],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Yd(e.id)):(l=`public/${e.id}`,s=Xd(e.id)),Object.assign(M0({...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:c})}function M0(e,t){var f,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=(f=e.root)==null?void 0:f.deleted)==null?void 0:d.state)==="trashed",i=Se(e.webDavPath||j0(e.id),{leadingSlash:!0}),a=Se(e.serverUrl,"remote.php/dav",i),u=Se(e.webDavTrashPath||Ii(e.id),{leadingSlash:!0}),c=Se(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:D0(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 Fu(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 Fu(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:()=>Ri(e.id),getDriveAliasAndItem({path:p}){return Se(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return Se(a,p)},getWebDavTrashUrl({path:p}){return Se(c,p)},isMember(p){var h;return Nn(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 Iu(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 D0(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 $0=(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 gg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Pi={},Rn={exports:{}},Cu;function Fi(){if(Cu)return Rn.exports;Cu=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)}Rn.exports=i,Rn.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 c(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return c(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=c(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 f(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,f(this,w,T)),this},i.prototype.prependOnceListener=function(w,T){return u(T),this.prependListener(w,f(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 Rn.exports}var In={exports:{}},Bu;function ur(){return Bu||(Bu=1,typeof Object.create=="function"?In.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:In.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),In.exports}var Ci,Lu;function Uu(){return Lu||(Lu=1,Ci=Fi().EventEmitter),Ci}var Bi={},ju;function Pn(){return ju||(ju=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,c=a.length;u<c;++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 f(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(f(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,ce=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]|=ce*128};/*!
12
12
  * The buffer module from node.js, for the browser.
13
13
  *
14
14
  * @author Feross Aboukhadijeh <https://feross.org>
15
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 ce(C,v);if(I.isView(C))return fe(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 Ee(C,v,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=C.valueOf&&C.valueOf();if(M!=null&&M!==C)return L.from(M,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 ce(C,v){if((typeof v!="string"||v==="")&&(v="utf8"),!L.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const _=ee(C,v)|0;let M=G(_);const W=M.write(C,v);return W!==_&&(M=M.slice(0,W)),M}function ge(C){const v=C.length<0?0:K(C.length)|0,_=G(v);for(let M=0;M<v;M+=1)_[M]=C[M]&255;return _}function fe(C){if(Lt(C,P)){const v=new P(C);return Ee(v.buffer,v.byteOffset,v.byteLength)}return ge(C)}function Ee(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 M;return v===void 0&&_===void 0?M=new P(C):_===void 0?M=new P(C,v):M=new P(C,v,_),Object.setPrototypeOf(M,L.prototype),M}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"||Xs(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 M=v.length,W=_.length;for(let X=0,ie=Math.min(M,W);X<ie;++X)if(v[X]!==_[X]){M=v[X],W=_[X];break}return M<W?-1:W<M?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 M;if(_===void 0)for(_=0,M=0;M<v.length;++M)_+=v[M].length;const W=L.allocUnsafe(_);let X=0;for(M=0;M<v.length;++M){let ie=v[M];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,M=arguments.length>2&&arguments[2]===!0;if(!M&&_===0)return 0;let W=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Ue(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Re(C).length;default:if(W)return M?-1:Ue(C).length;v=(""+v).toLowerCase(),W=!0}}L.byteLength=ee;function ue(C,v,_){let M=!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 rt(this,v,_);case"utf8":case"utf-8":return pe(this,v,_);case"ascii":return Be(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 Je(this,v,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function H(C,v,_){const M=C[v];C[v]=C[_],C[_]=M}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)H(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)H(this,_,_+3),H(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)H(this,_,_+7),H(this,_+1,_+6),H(this,_+2,_+5),H(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,_,M,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),M===void 0&&(M=v?v.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||M>v.length||W<0||X>this.length)throw new RangeError("out of range index");if(W>=X&&_>=M)return 0;if(W>=X)return-1;if(_>=M)return 1;if(_>>>=0,M>>>=0,W>>>=0,X>>>=0,this===v)return 0;let ie=X-W,Ae=M-_;const Ge=Math.min(ie,Ae),De=this.slice(W,X),Ke=v.slice(_,M);for(let Ce=0;Ce<Ge;++Ce)if(De[Ce]!==Ke[Ce]){ie=De[Ce],Ae=Ke[Ce];break}return ie<Ae?-1:Ae<ie?1:0};function R(C,v,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Xs(_)&&(_=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,M)),L.isBuffer(v))return v.length===0?-1:N(C,v,_,M,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],_,M,W);throw new TypeError("val must be string, number or Buffer")}function N(C,v,_,M,W){let X=1,ie=C.length,Ae=v.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||v.length<2)return-1;X=2,ie/=2,Ae/=2,_/=2}function Ge(Ke,Ce){return X===1?Ke[Ce]:Ke.readUInt16BE(Ce*X)}let De;if(W){let Ke=-1;for(De=_;De<ie;De++)if(Ge(C,De)===Ge(v,Ke===-1?0:De-Ke)){if(Ke===-1&&(Ke=De),De-Ke+1===Ae)return Ke*X}else Ke!==-1&&(De-=De-Ke),Ke=-1}else for(_+Ae>ie&&(_=ie-Ae),De=_;De>=0;De--){let Ke=!0;for(let Ce=0;Ce<Ae;Ce++)if(Ge(C,De+Ce)!==Ge(v,Ce)){Ke=!1;break}if(Ke)return De}return-1}L.prototype.includes=function(v,_,M){return this.indexOf(v,_,M)!==-1},L.prototype.indexOf=function(v,_,M){return R(this,v,_,M,!0)},L.prototype.lastIndexOf=function(v,_,M){return R(this,v,_,M,!1)};function q(C,v,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const X=v.length;M>X/2&&(M=X/2);let ie;for(ie=0;ie<M;++ie){const Ae=parseInt(v.substr(ie*2,2),16);if(Xs(Ae))return ie;C[_+ie]=Ae}return ie}function $(C,v,_,M){return Zn(Ue(v,C.length-_),C,_,M)}function B(C,v,_,M){return Zn(je(v),C,_,M)}function U(C,v,_,M){return Zn(Re(v),C,_,M)}function Y(C,v,_,M){return Zn(Me(v,C.length-_),C,_,M)}L.prototype.write=function(v,_,M,W){if(_===void 0)W="utf8",M=this.length,_=0;else if(M===void 0&&typeof _=="string")W=_,M=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(M)?(M=M>>>0,W===void 0&&(W="utf8")):(W=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-_;if((M===void 0||M>X)&&(M=X),v.length>0&&(M<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,_,M);case"utf8":case"utf-8":return $(this,v,_,M);case"ascii":case"latin1":case"binary":return B(this,v,_,M);case"base64":return U(this,v,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,v,_,M);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 M=[];let W=v;for(;W<_;){const X=C[W];let ie=null,Ae=X>239?4:X>223?3:X>191?2:1;if(W+Ae<=_){let Ge,De,Ke,Ce;switch(Ae){case 1:X<128&&(ie=X);break;case 2:Ge=C[W+1],(Ge&192)===128&&(Ce=(X&31)<<6|Ge&63,Ce>127&&(ie=Ce));break;case 3:Ge=C[W+1],De=C[W+2],(Ge&192)===128&&(De&192)===128&&(Ce=(X&15)<<12|(Ge&63)<<6|De&63,Ce>2047&&(Ce<55296||Ce>57343)&&(ie=Ce));break;case 4:Ge=C[W+1],De=C[W+2],Ke=C[W+3],(Ge&192)===128&&(De&192)===128&&(Ke&192)===128&&(Ce=(X&15)<<18|(Ge&63)<<12|(De&63)<<6|Ke&63,Ce>65535&&Ce<1114112&&(ie=Ce))}}ie===null?(ie=65533,Ae=1):ie>65535&&(ie-=65536,M.push(ie>>>10&1023|55296),ie=56320|ie&1023),M.push(ie),W+=Ae}return de(M)}const le=4096;function de(C){const v=C.length;if(v<=le)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<v;)_+=String.fromCharCode.apply(String,C.slice(M,M+=le));return _}function Be(C,v,_){let M="";_=Math.min(C.length,_);for(let W=v;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,v,_){let M="";_=Math.min(C.length,_);for(let W=v;W<_;++W)M+=String.fromCharCode(C[W]);return M}function rt(C,v,_){const M=C.length;(!v||v<0)&&(v=0),(!_||_<0||_>M)&&(_=M);let W="";for(let X=v;X<_;++X)W+=c1[C[X]];return W}function Je(C,v,_){const M=C.slice(v,_);let W="";for(let X=0;X<M.length-1;X+=2)W+=String.fromCharCode(M[X]+M[X+1]*256);return W}L.prototype.slice=function(v,_){const M=this.length;v=~~v,_=_===void 0?M:~~_,v<0?(v+=M,v<0&&(v=0)):v>M&&(v=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<v&&(_=v);const W=this.subarray(v,_);return Object.setPrototypeOf(W,L.prototype),W};function Oe(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,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_||Oe(v,1,this.length),this[v]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(v,_){return v=v>>>0,_||Oe(v,2,this.length),this[v]|this[v+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(v,_){return v=v>>>0,_||Oe(v,2,this.length),this[v]<<8|this[v+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(v,_){return v=v>>>0,_||Oe(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,_||Oe(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},L.prototype.readBigUInt64LE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===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+M*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===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+M;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(v,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_||Oe(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},L.prototype.readInt16LE=function(v,_){v=v>>>0,_||Oe(v,2,this.length);const M=this[v]|this[v+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(v,_){v=v>>>0,_||Oe(v,2,this.length);const M=this[v+1]|this[v]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(v,_){return v=v>>>0,_||Oe(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,_||Oe(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},L.prototype.readBigInt64LE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===void 0)&&z(v,this.length-8);const W=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),L.prototype.readBigInt64BE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===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+M)}),L.prototype.readFloatLE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),y.read(this,v,!0,23,4)},L.prototype.readFloatBE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),y.read(this,v,!1,23,4)},L.prototype.readDoubleLE=function(v,_){return v=v>>>0,_||Oe(v,8,this.length),y.read(this,v,!0,52,8)},L.prototype.readDoubleBE=function(v,_){return v=v>>>0,_||Oe(v,8,this.length),y.read(this,v,!1,52,8)};function Le(C,v,_,M,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(_+M>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(v,_,M,W){if(v=+v,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,v,_,M,Ae,0)}let X=1,ie=0;for(this[_]=v&255;++ie<M&&(X*=256);)this[_+ie]=v/X&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(v,_,M,W){if(v=+v,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,v,_,M,Ae,0)}let X=M-1,ie=1;for(this[_+X]=v&255;--X>=0&&(ie*=256);)this[_+X]=v/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,1,255,0),this[_]=v&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,65535,0),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,65535,0),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(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,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,4,4294967295,0),this[_]=v>>>24,this[_+1]=v>>>16,this[_+2]=v>>>8,this[_+3]=v&255,_+4};function ct(C,v,_,M,W){k(v,M,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 st(C,v,_,M,W){k(v,M,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=Qt(function(v,_=0){return ct(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Qt(function(v,_=0){return st(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(v,_,M,W){if(v=+v,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,v,_,M,Ge-1,-Ge)}let X=0,ie=1,Ae=0;for(this[_]=v&255;++X<M&&(ie*=256);)v<0&&Ae===0&&this[_+X-1]!==0&&(Ae=1),this[_+X]=(v/ie>>0)-Ae&255;return _+M},L.prototype.writeIntBE=function(v,_,M,W){if(v=+v,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,v,_,M,Ge-1,-Ge)}let X=M-1,ie=1,Ae=0;for(this[_+X]=v&255;--X>=0&&(ie*=256);)v<0&&Ae===0&&this[_+X+1]!==0&&(Ae=1),this[_+X]=(v/ie>>0)-Ae&255;return _+M},L.prototype.writeInt8=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,1,127,-128),v<0&&(v=255+v+1),this[_]=v&255,_+1},L.prototype.writeInt16LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,32767,-32768),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeInt16BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,32767,-32768),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeInt32LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(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,_,M){return v=+v,_=_>>>0,M||Le(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=Qt(function(v,_=0){return ct(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Qt(function(v,_=0){return st(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ot(C,v,_,M,W,X){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Rt(C,v,_,M,W){return v=+v,_=_>>>0,W||Ot(C,v,_,4),y.write(C,v,_,M,23,4),_+4}L.prototype.writeFloatLE=function(v,_,M){return Rt(this,v,_,!0,M)},L.prototype.writeFloatBE=function(v,_,M){return Rt(this,v,_,!1,M)};function it(C,v,_,M,W){return v=+v,_=_>>>0,W||Ot(C,v,_,8),y.write(C,v,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(v,_,M){return it(this,v,_,!0,M)},L.prototype.writeDoubleBE=function(v,_,M){return it(this,v,_,!1,M)},L.prototype.copy=function(v,_,M,W){if(!L.isBuffer(v))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=v.length&&(_=v.length),_||(_=0),W>0&&W<M&&(W=M),W===M||v.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=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-M&&(W=v.length-_+M);const X=W-M;return this===v&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,M,W):P.prototype.set.call(v,this.subarray(M,W),_),X},L.prototype.fill=function(v,_,M,W){if(typeof v=="string"){if(typeof _=="string"?(W=_,_=0,M=this.length):typeof M=="string"&&(W=M,M=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<M)throw new RangeError("Out of range index");if(M<=_)return this;_=_>>>0,M=M===void 0?this.length:M>>>0,v||(v=0);let X;if(typeof v=="number")for(X=_;X<M;++X)this[X]=v;else{const ie=L.isBuffer(v)?v:L.from(v,W),Ae=ie.length;if(Ae===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(X=0;X<M-_;++X)this[X+_]=ie[X%Ae]}return this};const Zt={};function F(C,v,_){Zt[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 M=`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"),M+=` It must be ${v}. Received ${W}`,M},RangeError);function b(C){let v="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)v=`_${C.slice(_-3,_)}${v}`;return`${C.slice(0,_)}${v}`}function S(C,v,_){V(v,"offset"),(C[v]===void 0||C[v+_]===void 0)&&z(v,C.length-(_+1))}function k(C,v,_,M,W,X){if(C>_||C<v){const ie=typeof v=="bigint"?"n":"";let Ae;throw v===0||v===BigInt(0)?Ae=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:Ae=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new Zt.ERR_OUT_OF_RANGE("value",Ae,C)}S(M,W,X)}function V(C,v){if(typeof C!="number")throw new Zt.ERR_INVALID_ARG_TYPE(v,"number",C)}function z(C,v,_){throw Math.floor(C)!==C?(V(C,_),new Zt.ERR_OUT_OF_RANGE("offset","an integer",C)):v<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function xe(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 Ue(C,v){v=v||1/0;let _;const M=C.length;let W=null;const X=[];for(let ie=0;ie<M;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(v-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===M){(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 je(C){const v=[];for(let _=0;_<C.length;++_)v.push(C.charCodeAt(_)&255);return v}function Me(C,v){let _,M,W;const X=[];for(let ie=0;ie<C.length&&!((v-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,X.push(W),X.push(M);return X}function Re(C){return g.toByteArray(xe(C))}function Zn(C,v,_,M){let W;for(W=0;W<M&&!(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 Xs(C){return C!==C}const c1=function(){const C="0123456789abcdef",v=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)v[M+W]=C[_]+C[W]}return v}();function Qt(C){return typeof BigInt>"u"?f1:C}function f1(){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}(Bi)),Bi}var Li={},Ui={},ji,ju;function ku(){return ju||(ju=1,ji=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}),ji}var ki,Mu;function Fn(){if(Mu)return ki;Mu=1;var e=ku();return ki=function(){return e()&&!!Symbol.toStringTag},ki}var Mi,Du;function $u(){return Du||(Du=1,Mi=Object),Mi}var Di,qu;function q0(){return qu||(qu=1,Di=Error),Di}var $i,Vu;function V0(){return Vu||(Vu=1,$i=EvalError),$i}var qi,Hu;function H0(){return Hu||(Hu=1,qi=RangeError),qi}var Vi,Wu;function W0(){return Wu||(Wu=1,Vi=ReferenceError),Vi}var Hi,Gu;function Ku(){return Gu||(Gu=1,Hi=SyntaxError),Hi}var Wi,zu;function qr(){return zu||(zu=1,Wi=TypeError),Wi}var Gi,Xu;function G0(){return Xu||(Xu=1,Gi=URIError),Gi}var Ki,Yu;function K0(){return Yu||(Yu=1,Ki=Math.abs),Ki}var zi,Ju;function z0(){return Ju||(Ju=1,zi=Math.floor),zi}var Xi,Zu;function X0(){return Zu||(Zu=1,Xi=Math.max),Xi}var Yi,Qu;function Y0(){return Qu||(Qu=1,Yi=Math.min),Yi}var Ji,el;function J0(){return el||(el=1,Ji=Math.pow),Ji}var Zi,tl;function Z0(){return tl||(tl=1,Zi=Math.round),Zi}var Qi,rl;function Q0(){return rl||(rl=1,Qi=Number.isNaN||function(t){return t!==t}),Qi}var eo,nl;function ey(){if(nl)return eo;nl=1;var e=Q0();return eo=function(r){return e(r)||r===0?r:r<0?-1:1},eo}var to,il;function ty(){return il||(il=1,to=Object.getOwnPropertyDescriptor),to}var ro,ol;function Ar(){if(ol)return ro;ol=1;var e=ty();if(e)try{e([],"length")}catch{e=null}return ro=e,ro}var no,sl;function Cn(){if(sl)return no;sl=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return no=e,no}var io,al;function ry(){if(al)return io;al=1;var e=typeof Symbol<"u"&&Symbol,t=ku();return io=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},io}var oo,ul;function ll(){return ul||(ul=1,oo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),oo}var so,cl;function fl(){if(cl)return so;cl=1;var e=$u();return so=e.getPrototypeOf||null,so}var ao,hl;function ny(){if(hl)return ao;hl=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,l){for(var s=[],f=0;f<c.length;f+=1)s[f]=c[f];for(var d=0;d<l.length;d+=1)s[d+c.length]=l[d];return s},i=function(c,l){for(var s=[],f=l,d=0;f<c.length;f+=1,d+=1)s[d]=c[f];return s},a=function(u,c){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=c);return l};return ao=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),f,d=function(){if(this instanceof f){var p=l.apply(this,o(s,arguments));return Object(p)===p?p:this}return l.apply(c,o(s,arguments))},x=r(0,l.length-s.length),m=[],E=0;E<x;E++)m[E]="$"+E;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var A=function(){};A.prototype=l.prototype,f.prototype=new A,A.prototype=null}return f},ao}var uo,dl;function Vr(){if(dl)return uo;dl=1;var e=ny();return uo=Function.prototype.bind||e,uo}var lo,pl;function co(){return pl||(pl=1,lo=Function.prototype.call),lo}var fo,gl;function ho(){return gl||(gl=1,fo=Function.prototype.apply),fo}var po,yl;function iy(){return yl||(yl=1,po=typeof Reflect<"u"&&Reflect&&Reflect.apply),po}var go,ml;function bl(){if(ml)return go;ml=1;var e=Vr(),t=ho(),r=co(),n=iy();return go=n||e.call(r,t),go}var yo,wl;function mo(){if(wl)return yo;wl=1;var e=Vr(),t=qr(),r=co(),n=bl();return yo=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yo}var bo,vl;function oy(){if(vl)return bo;vl=1;var e=mo(),t=Ar(),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 bo=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,bo}var wo,El;function xl(){if(El)return wo;El=1;var e=ll(),t=fl(),r=oy();return wo=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,wo}var vo,Al;function Tl(){if(Al)return vo;Al=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Vr();return vo=r.call(e,t),vo}var Eo,Sl;function _l(){if(Sl)return Eo;Sl=1;var e,t=$u(),r=q0(),n=V0(),o=H0(),i=W0(),a=Ku(),u=qr(),c=G0(),l=K0(),s=z0(),f=X0(),d=Y0(),x=J0(),m=Z0(),E=ey(),A=Function,p=function(q){try{return A('"use strict"; return ('+q+").constructor;")()}catch{}},h=Ar(),g=Cn(),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=ry()(),P=xl(),I=fl(),O=ll(),j=ho(),G=co(),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%":c,"%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%":f,"%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},ce={__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=Vr(),fe=Tl(),Ee=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,H=/\\(\\)?/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,H,"$1"):pe||se}),Y},N=function($,B){var U=$,Y;if(fe(ce,U)&&(Y=ce[U],U="%"+Y[0]+"%"),fe(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 Eo=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,Be=se.alias;Be&&(Y=Be[0],be(U,Ee([0,1],Be)));for(var te=1,rt=!0;te<U.length;te+=1){var Je=U[te],Oe=Q(Je,0,1),Le=Q(Je,-1);if((Oe==='"'||Oe==="'"||Oe==="`"||Le==='"'||Le==="'"||Le==="`")&&Oe!==Le)throw new a("property names with quotes must have matching quotes");if((Je==="constructor"||!rt)&&(de=!0),Y+="."+Je,pe="%"+Y+"%",fe(oe,pe))le=oe[pe];else if(le!=null){if(!(Je 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 ct=h(le,Je);rt=!!ct,rt&&"get"in ct&&!("originalValue"in ct.get)?le=ct.get:le=le[Je]}else rt=fe(le,Je),le=le[Je];rt&&!de&&(oe[pe]=le)}}return le},Eo}var xo,Ol;function Hr(){if(Ol)return xo;Ol=1;var e=_l(),t=mo(),r=t([e("%String.prototype.indexOf%")]);return xo=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},xo}var Ao,Nl;function sy(){if(Nl)return Ao;Nl=1;var e=Fn()(),t=Hr(),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,Ao=i?n:o,Ao}var To,Rl;function ay(){if(Rl)return To;Rl=1;var e=Hr(),t=Fn()(),r=Tl(),n=Ar(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},c={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(c[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,c)}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 To=o,To}var So,Il;function uy(){if(Il)return So;Il=1;var e=Hr(),t=ay(),r=e("RegExp.prototype.exec"),n=qr();return So=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},So}var _o,Pl;function ly(){if(Pl)return _o;Pl=1;var e=Hr(),t=uy(),r=t(/^\s*(?:function)?\*/),n=Fn()(),o=xl(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return _o=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var f=i(s);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof c>"u"){var d=u();c=d?o(d):!1}return o(s)===c},_o}var Oo,Fl;function cy(){if(Fl)return Oo;Fl=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,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[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===f||y===d||y===x||y===c)&&g("")==null}catch{}return!1})}return Oo=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)},Oo}var No,Cl;function fy(){if(Cl)return No;Cl=1;var e=cy(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,d=c.length;f<d;f++)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))},o=function(c,l,s){for(var f=0,d=c.length;f<d;f++)s==null?l(c.charAt(f),f,c):l.call(s,c.charAt(f),f,c)},i=function(c,l,s){for(var f in c)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))};function a(u){return t.call(u)==="[object Array]"}return No=function(c,l,s){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=s),a(c)?n(c,l,f):typeof c=="string"?o(c,l,f):i(c,l,f)},No}var Ro,Bl;function hy(){return Bl||(Bl=1,Ro=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ro}var Io,Ll;function dy(){if(Ll)return Io;Ll=1;var e=hy(),t=typeof globalThis>"u"?Te:globalThis;return Io=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Io}var Po={exports:{}},Fo,Ul;function py(){if(Ul)return Fo;Ul=1;var e=Cn(),t=Ku(),r=qr(),n=Ar();return Fo=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 c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&d?d.configurable:!s,enumerable:c===null&&d?d.enumerable:!c,value:u,writable:l===null&&d?d.writable:!l});else if(f||!c&&!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.")},Fo}var Co,jl;function gy(){if(jl)return Co;jl=1;var e=Cn(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Co=t,Co}var Bo,kl;function yy(){if(kl)return Bo;kl=1;var e=_l(),t=py(),r=gy()(),n=Ar(),o=qr(),i=e("%Math.floor%");return Bo=function(u,c){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,f=!0;if("length"in u&&n){var d=n(u,"length");d&&!d.configurable&&(s=!1),d&&!d.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Bo}var Lo,Ml;function my(){if(Ml)return Lo;Ml=1;var e=Vr(),t=ho(),r=bl();return Lo=function(){return r(e,t,arguments)},Lo}var Dl;function by(){return Dl||(Dl=1,function(e){var t=yy(),r=Cn(),n=mo(),o=my();e.exports=function(a){var u=n(arguments),c=a.length-(arguments.length-1);return t(u,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Po)),Po.exports}var Uo,$l;function ql(){if($l)return Uo;$l=1;var e=fy(),t=dy(),r=by(),n=Hr(),o=Ar(),i=n("Object.prototype.toString"),a=Fn()(),u=typeof globalThis>"u"?Te:globalThis,c=t(),l=n("String.prototype.slice"),s=Object.getPrototypeOf,f=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(c,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(c,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 Uo=function(A){if(!A||typeof A!="object")return!1;if(!a){var p=l(i(A),8,-1);return f(c,p)>-1?p:p!=="Object"?!1:m(A)}return o?x(A):null},Uo}var jo,Vl;function wy(){if(Vl)return jo;Vl=1;var e=ql();return jo=function(r){return!!e(r)},jo}var Hl;function vy(){return Hl||(Hl=1,function(e){var t=sy(),r=ly(),n=ql(),o=wy();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",c=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(u)var x=i(Symbol.prototype.valueOf);function m(te,rt){if(typeof te!="object")return!1;try{return rt(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 c(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 c(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 c(te)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function ce(te){return typeof WeakMap>"u"?!1:he.working?he(te):te instanceof WeakMap}e.isWeakMap=ce;function ge(te){return c(te)==="[object WeakSet]"}ge.working=typeof WeakSet<"u"&&ge(new WeakSet);function fe(te){return ge(te)}e.isWeakSet=fe;function Ee(te){return c(te)==="[object ArrayBuffer]"}Ee.working=typeof ArrayBuffer<"u"&&Ee(new ArrayBuffer);function be(te){return typeof ArrayBuffer>"u"?!1:Ee.working?Ee(te):te instanceof ArrayBuffer}e.isArrayBuffer=be;function K(te){return c(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 c(te)==="[object SharedArrayBuffer]"}function H(te){return typeof ee>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new ee)),ue.working?ue(te):te instanceof ee)}e.isSharedArrayBuffer=H;function R(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return c(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return c(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,f)}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 Be(te){return typeof Uint8Array<"u"&&(be(te)||H(te))}e.isAnyArrayBuffer=Be,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})}(Ui)),Ui}var ko,Wl;function Ey(){return Wl||(Wl=1,ko=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),ko}var Gl;function Kl(){return Gl||(Gl=1,function(e){var t=Object.getOwnPropertyDescriptors||function(Q){for(var ee=Object.keys(Q),ue={},H=0;H<ee.length;H++)ue[ee[H]]=Object.getOwnPropertyDescriptor(Q,ee[H]);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,H=ue.length,R=String(K).replace(r,function(q){if(q==="%%")return"%";if(ee>=H)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<H;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:c};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 c(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 H=f(K,Q);if(H)return H;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 f(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,H){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 H.forEach(function($){$.match(/^\d+$/)||R.push(m(K,Q,ee,ue,$,!0))}),R}function m(K,Q,ee,ue,H,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Q,H)||{value:Q[H]},$.get?$.set?q=K.stylize("[Getter/Setter]","special"):q=K.stylize("[Getter]","special"):$.set&&(q=K.stylize("[Setter]","special")),ge(ue,H)||(N="["+H+"]"),q||(K.seen.indexOf($.value)<0?(h(ee)?q=s(K,$.value,null):q=s(K,$.value,ee-1),q.indexOf(`
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 ce(C,v);if(I.isView(C))return fe(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 Ee(C,v,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=C.valueOf&&C.valueOf();if(M!=null&&M!==C)return L.from(M,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 ce(C,v){if((typeof v!="string"||v==="")&&(v="utf8"),!L.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const _=ee(C,v)|0;let M=G(_);const W=M.write(C,v);return W!==_&&(M=M.slice(0,W)),M}function ge(C){const v=C.length<0?0:K(C.length)|0,_=G(v);for(let M=0;M<v;M+=1)_[M]=C[M]&255;return _}function fe(C){if(Lt(C,P)){const v=new P(C);return Ee(v.buffer,v.byteOffset,v.byteLength)}return ge(C)}function Ee(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 M;return v===void 0&&_===void 0?M=new P(C):_===void 0?M=new P(C,v):M=new P(C,v,_),Object.setPrototypeOf(M,L.prototype),M}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"||Ys(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 M=v.length,W=_.length;for(let X=0,ie=Math.min(M,W);X<ie;++X)if(v[X]!==_[X]){M=v[X],W=_[X];break}return M<W?-1:W<M?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 M;if(_===void 0)for(_=0,M=0;M<v.length;++M)_+=v[M].length;const W=L.allocUnsafe(_);let X=0;for(M=0;M<v.length;++M){let ie=v[M];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,M=arguments.length>2&&arguments[2]===!0;if(!M&&_===0)return 0;let W=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Ue(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Re(C).length;default:if(W)return M?-1:Ue(C).length;v=(""+v).toLowerCase(),W=!0}}L.byteLength=ee;function ue(C,v,_){let M=!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 rt(this,v,_);case"utf8":case"utf-8":return pe(this,v,_);case"ascii":return Be(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 Je(this,v,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function H(C,v,_){const M=C[v];C[v]=C[_],C[_]=M}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)H(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)H(this,_,_+3),H(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)H(this,_,_+7),H(this,_+1,_+6),H(this,_+2,_+5),H(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,_,M,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),M===void 0&&(M=v?v.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||M>v.length||W<0||X>this.length)throw new RangeError("out of range index");if(W>=X&&_>=M)return 0;if(W>=X)return-1;if(_>=M)return 1;if(_>>>=0,M>>>=0,W>>>=0,X>>>=0,this===v)return 0;let ie=X-W,Ae=M-_;const Ge=Math.min(ie,Ae),De=this.slice(W,X),Ke=v.slice(_,M);for(let Ce=0;Ce<Ge;++Ce)if(De[Ce]!==Ke[Ce]){ie=De[Ce],Ae=Ke[Ce];break}return ie<Ae?-1:Ae<ie?1:0};function R(C,v,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Ys(_)&&(_=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,M)),L.isBuffer(v))return v.length===0?-1:N(C,v,_,M,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],_,M,W);throw new TypeError("val must be string, number or Buffer")}function N(C,v,_,M,W){let X=1,ie=C.length,Ae=v.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||v.length<2)return-1;X=2,ie/=2,Ae/=2,_/=2}function Ge(Ke,Ce){return X===1?Ke[Ce]:Ke.readUInt16BE(Ce*X)}let De;if(W){let Ke=-1;for(De=_;De<ie;De++)if(Ge(C,De)===Ge(v,Ke===-1?0:De-Ke)){if(Ke===-1&&(Ke=De),De-Ke+1===Ae)return Ke*X}else Ke!==-1&&(De-=De-Ke),Ke=-1}else for(_+Ae>ie&&(_=ie-Ae),De=_;De>=0;De--){let Ke=!0;for(let Ce=0;Ce<Ae;Ce++)if(Ge(C,De+Ce)!==Ge(v,Ce)){Ke=!1;break}if(Ke)return De}return-1}L.prototype.includes=function(v,_,M){return this.indexOf(v,_,M)!==-1},L.prototype.indexOf=function(v,_,M){return R(this,v,_,M,!0)},L.prototype.lastIndexOf=function(v,_,M){return R(this,v,_,M,!1)};function q(C,v,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const X=v.length;M>X/2&&(M=X/2);let ie;for(ie=0;ie<M;++ie){const Ae=parseInt(v.substr(ie*2,2),16);if(Ys(Ae))return ie;C[_+ie]=Ae}return ie}function $(C,v,_,M){return Zn(Ue(v,C.length-_),C,_,M)}function B(C,v,_,M){return Zn(je(v),C,_,M)}function U(C,v,_,M){return Zn(Re(v),C,_,M)}function Y(C,v,_,M){return Zn(Me(v,C.length-_),C,_,M)}L.prototype.write=function(v,_,M,W){if(_===void 0)W="utf8",M=this.length,_=0;else if(M===void 0&&typeof _=="string")W=_,M=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(M)?(M=M>>>0,W===void 0&&(W="utf8")):(W=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-_;if((M===void 0||M>X)&&(M=X),v.length>0&&(M<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,_,M);case"utf8":case"utf-8":return $(this,v,_,M);case"ascii":case"latin1":case"binary":return B(this,v,_,M);case"base64":return U(this,v,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,v,_,M);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 M=[];let W=v;for(;W<_;){const X=C[W];let ie=null,Ae=X>239?4:X>223?3:X>191?2:1;if(W+Ae<=_){let Ge,De,Ke,Ce;switch(Ae){case 1:X<128&&(ie=X);break;case 2:Ge=C[W+1],(Ge&192)===128&&(Ce=(X&31)<<6|Ge&63,Ce>127&&(ie=Ce));break;case 3:Ge=C[W+1],De=C[W+2],(Ge&192)===128&&(De&192)===128&&(Ce=(X&15)<<12|(Ge&63)<<6|De&63,Ce>2047&&(Ce<55296||Ce>57343)&&(ie=Ce));break;case 4:Ge=C[W+1],De=C[W+2],Ke=C[W+3],(Ge&192)===128&&(De&192)===128&&(Ke&192)===128&&(Ce=(X&15)<<18|(Ge&63)<<12|(De&63)<<6|Ke&63,Ce>65535&&Ce<1114112&&(ie=Ce))}}ie===null?(ie=65533,Ae=1):ie>65535&&(ie-=65536,M.push(ie>>>10&1023|55296),ie=56320|ie&1023),M.push(ie),W+=Ae}return de(M)}const le=4096;function de(C){const v=C.length;if(v<=le)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<v;)_+=String.fromCharCode.apply(String,C.slice(M,M+=le));return _}function Be(C,v,_){let M="";_=Math.min(C.length,_);for(let W=v;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,v,_){let M="";_=Math.min(C.length,_);for(let W=v;W<_;++W)M+=String.fromCharCode(C[W]);return M}function rt(C,v,_){const M=C.length;(!v||v<0)&&(v=0),(!_||_<0||_>M)&&(_=M);let W="";for(let X=v;X<_;++X)W+=c1[C[X]];return W}function Je(C,v,_){const M=C.slice(v,_);let W="";for(let X=0;X<M.length-1;X+=2)W+=String.fromCharCode(M[X]+M[X+1]*256);return W}L.prototype.slice=function(v,_){const M=this.length;v=~~v,_=_===void 0?M:~~_,v<0?(v+=M,v<0&&(v=0)):v>M&&(v=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<v&&(_=v);const W=this.subarray(v,_);return Object.setPrototypeOf(W,L.prototype),W};function Oe(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,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_||Oe(v,1,this.length),this[v]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(v,_){return v=v>>>0,_||Oe(v,2,this.length),this[v]|this[v+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(v,_){return v=v>>>0,_||Oe(v,2,this.length),this[v]<<8|this[v+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(v,_){return v=v>>>0,_||Oe(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,_||Oe(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},L.prototype.readBigUInt64LE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===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+M*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===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+M;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(v,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_,M){v=v>>>0,_=_>>>0,M||Oe(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,_||Oe(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},L.prototype.readInt16LE=function(v,_){v=v>>>0,_||Oe(v,2,this.length);const M=this[v]|this[v+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(v,_){v=v>>>0,_||Oe(v,2,this.length);const M=this[v+1]|this[v]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(v,_){return v=v>>>0,_||Oe(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,_||Oe(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},L.prototype.readBigInt64LE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===void 0)&&z(v,this.length-8);const W=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),L.prototype.readBigInt64BE=Qt(function(v){v=v>>>0,V(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===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+M)}),L.prototype.readFloatLE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),y.read(this,v,!0,23,4)},L.prototype.readFloatBE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),y.read(this,v,!1,23,4)},L.prototype.readDoubleLE=function(v,_){return v=v>>>0,_||Oe(v,8,this.length),y.read(this,v,!0,52,8)},L.prototype.readDoubleBE=function(v,_){return v=v>>>0,_||Oe(v,8,this.length),y.read(this,v,!1,52,8)};function Le(C,v,_,M,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(_+M>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(v,_,M,W){if(v=+v,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,v,_,M,Ae,0)}let X=1,ie=0;for(this[_]=v&255;++ie<M&&(X*=256);)this[_+ie]=v/X&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(v,_,M,W){if(v=+v,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,v,_,M,Ae,0)}let X=M-1,ie=1;for(this[_+X]=v&255;--X>=0&&(ie*=256);)this[_+X]=v/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,1,255,0),this[_]=v&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,65535,0),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,65535,0),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(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,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,4,4294967295,0),this[_]=v>>>24,this[_+1]=v>>>16,this[_+2]=v>>>8,this[_+3]=v&255,_+4};function ct(C,v,_,M,W){k(v,M,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 st(C,v,_,M,W){k(v,M,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=Qt(function(v,_=0){return ct(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Qt(function(v,_=0){return st(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(v,_,M,W){if(v=+v,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,v,_,M,Ge-1,-Ge)}let X=0,ie=1,Ae=0;for(this[_]=v&255;++X<M&&(ie*=256);)v<0&&Ae===0&&this[_+X-1]!==0&&(Ae=1),this[_+X]=(v/ie>>0)-Ae&255;return _+M},L.prototype.writeIntBE=function(v,_,M,W){if(v=+v,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,v,_,M,Ge-1,-Ge)}let X=M-1,ie=1,Ae=0;for(this[_+X]=v&255;--X>=0&&(ie*=256);)v<0&&Ae===0&&this[_+X+1]!==0&&(Ae=1),this[_+X]=(v/ie>>0)-Ae&255;return _+M},L.prototype.writeInt8=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,1,127,-128),v<0&&(v=255+v+1),this[_]=v&255,_+1},L.prototype.writeInt16LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,32767,-32768),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeInt16BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,32767,-32768),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeInt32LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(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,_,M){return v=+v,_=_>>>0,M||Le(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=Qt(function(v,_=0){return ct(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Qt(function(v,_=0){return st(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ot(C,v,_,M,W,X){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Rt(C,v,_,M,W){return v=+v,_=_>>>0,W||Ot(C,v,_,4),y.write(C,v,_,M,23,4),_+4}L.prototype.writeFloatLE=function(v,_,M){return Rt(this,v,_,!0,M)},L.prototype.writeFloatBE=function(v,_,M){return Rt(this,v,_,!1,M)};function it(C,v,_,M,W){return v=+v,_=_>>>0,W||Ot(C,v,_,8),y.write(C,v,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(v,_,M){return it(this,v,_,!0,M)},L.prototype.writeDoubleBE=function(v,_,M){return it(this,v,_,!1,M)},L.prototype.copy=function(v,_,M,W){if(!L.isBuffer(v))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=v.length&&(_=v.length),_||(_=0),W>0&&W<M&&(W=M),W===M||v.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=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-M&&(W=v.length-_+M);const X=W-M;return this===v&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,M,W):P.prototype.set.call(v,this.subarray(M,W),_),X},L.prototype.fill=function(v,_,M,W){if(typeof v=="string"){if(typeof _=="string"?(W=_,_=0,M=this.length):typeof M=="string"&&(W=M,M=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<M)throw new RangeError("Out of range index");if(M<=_)return this;_=_>>>0,M=M===void 0?this.length:M>>>0,v||(v=0);let X;if(typeof v=="number")for(X=_;X<M;++X)this[X]=v;else{const ie=L.isBuffer(v)?v:L.from(v,W),Ae=ie.length;if(Ae===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(X=0;X<M-_;++X)this[X+_]=ie[X%Ae]}return this};const Zt={};function F(C,v,_){Zt[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 M=`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"),M+=` It must be ${v}. Received ${W}`,M},RangeError);function b(C){let v="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)v=`_${C.slice(_-3,_)}${v}`;return`${C.slice(0,_)}${v}`}function S(C,v,_){V(v,"offset"),(C[v]===void 0||C[v+_]===void 0)&&z(v,C.length-(_+1))}function k(C,v,_,M,W,X){if(C>_||C<v){const ie=typeof v=="bigint"?"n":"";let Ae;throw v===0||v===BigInt(0)?Ae=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:Ae=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new Zt.ERR_OUT_OF_RANGE("value",Ae,C)}S(M,W,X)}function V(C,v){if(typeof C!="number")throw new Zt.ERR_INVALID_ARG_TYPE(v,"number",C)}function z(C,v,_){throw Math.floor(C)!==C?(V(C,_),new Zt.ERR_OUT_OF_RANGE("offset","an integer",C)):v<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function xe(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 Ue(C,v){v=v||1/0;let _;const M=C.length;let W=null;const X=[];for(let ie=0;ie<M;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(v-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===M){(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 je(C){const v=[];for(let _=0;_<C.length;++_)v.push(C.charCodeAt(_)&255);return v}function Me(C,v){let _,M,W;const X=[];for(let ie=0;ie<C.length&&!((v-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,X.push(W),X.push(M);return X}function Re(C){return g.toByteArray(xe(C))}function Zn(C,v,_,M){let W;for(W=0;W<M&&!(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 Ys(C){return C!==C}const c1=function(){const C="0123456789abcdef",v=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)v[M+W]=C[_]+C[W]}return v}();function Qt(C){return typeof BigInt>"u"?f1:C}function f1(){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}(Bi)),Bi}var Li={},Ui={},ji,ku;function Mu(){return ku||(ku=1,ji=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}),ji}var ki,Du;function Fn(){if(Du)return ki;Du=1;var e=Mu();return ki=function(){return e()&&!!Symbol.toStringTag},ki}var Mi,$u;function qu(){return $u||($u=1,Mi=Object),Mi}var Di,Vu;function q0(){return Vu||(Vu=1,Di=Error),Di}var $i,Hu;function V0(){return Hu||(Hu=1,$i=EvalError),$i}var qi,Wu;function H0(){return Wu||(Wu=1,qi=RangeError),qi}var Vi,Gu;function W0(){return Gu||(Gu=1,Vi=ReferenceError),Vi}var Hi,Ku;function zu(){return Ku||(Ku=1,Hi=SyntaxError),Hi}var Wi,Xu;function qr(){return Xu||(Xu=1,Wi=TypeError),Wi}var Gi,Yu;function G0(){return Yu||(Yu=1,Gi=URIError),Gi}var Ki,Ju;function K0(){return Ju||(Ju=1,Ki=Math.abs),Ki}var zi,Zu;function z0(){return Zu||(Zu=1,zi=Math.floor),zi}var Xi,Qu;function X0(){return Qu||(Qu=1,Xi=Math.max),Xi}var Yi,el;function Y0(){return el||(el=1,Yi=Math.min),Yi}var Ji,tl;function J0(){return tl||(tl=1,Ji=Math.pow),Ji}var Zi,rl;function Z0(){return rl||(rl=1,Zi=Math.round),Zi}var Qi,nl;function Q0(){return nl||(nl=1,Qi=Number.isNaN||function(t){return t!==t}),Qi}var eo,il;function ey(){if(il)return eo;il=1;var e=Q0();return eo=function(r){return e(r)||r===0?r:r<0?-1:1},eo}var to,ol;function ty(){return ol||(ol=1,to=Object.getOwnPropertyDescriptor),to}var ro,sl;function Ar(){if(sl)return ro;sl=1;var e=ty();if(e)try{e([],"length")}catch{e=null}return ro=e,ro}var no,al;function Cn(){if(al)return no;al=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return no=e,no}var io,ul;function ry(){if(ul)return io;ul=1;var e=typeof Symbol<"u"&&Symbol,t=Mu();return io=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},io}var oo,ll;function cl(){return ll||(ll=1,oo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),oo}var so,fl;function hl(){if(fl)return so;fl=1;var e=qu();return so=e.getPrototypeOf||null,so}var ao,dl;function ny(){if(dl)return ao;dl=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,l){for(var s=[],f=0;f<c.length;f+=1)s[f]=c[f];for(var d=0;d<l.length;d+=1)s[d+c.length]=l[d];return s},i=function(c,l){for(var s=[],f=l,d=0;f<c.length;f+=1,d+=1)s[d]=c[f];return s},a=function(u,c){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=c);return l};return ao=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),f,d=function(){if(this instanceof f){var p=l.apply(this,o(s,arguments));return Object(p)===p?p:this}return l.apply(c,o(s,arguments))},x=r(0,l.length-s.length),m=[],E=0;E<x;E++)m[E]="$"+E;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var A=function(){};A.prototype=l.prototype,f.prototype=new A,A.prototype=null}return f},ao}var uo,pl;function Vr(){if(pl)return uo;pl=1;var e=ny();return uo=Function.prototype.bind||e,uo}var lo,gl;function co(){return gl||(gl=1,lo=Function.prototype.call),lo}var fo,yl;function ho(){return yl||(yl=1,fo=Function.prototype.apply),fo}var po,ml;function iy(){return ml||(ml=1,po=typeof Reflect<"u"&&Reflect&&Reflect.apply),po}var go,bl;function wl(){if(bl)return go;bl=1;var e=Vr(),t=ho(),r=co(),n=iy();return go=n||e.call(r,t),go}var yo,vl;function mo(){if(vl)return yo;vl=1;var e=Vr(),t=qr(),r=co(),n=wl();return yo=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yo}var bo,El;function oy(){if(El)return bo;El=1;var e=mo(),t=Ar(),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 bo=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,bo}var wo,xl;function vo(){if(xl)return wo;xl=1;var e=cl(),t=hl(),r=oy();return wo=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,wo}var Eo,Al;function Tl(){if(Al)return Eo;Al=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Vr();return Eo=r.call(e,t),Eo}var xo,Sl;function _l(){if(Sl)return xo;Sl=1;var e,t=qu(),r=q0(),n=V0(),o=H0(),i=W0(),a=zu(),u=qr(),c=G0(),l=K0(),s=z0(),f=X0(),d=Y0(),x=J0(),m=Z0(),E=ey(),A=Function,p=function(q){try{return A('"use strict"; return ('+q+").constructor;")()}catch{}},h=Ar(),g=Cn(),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=ry()(),P=vo(),I=hl(),O=cl(),j=ho(),G=co(),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%":c,"%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%":f,"%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},ce={__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=Vr(),fe=Tl(),Ee=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,H=/\\(\\)?/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,H,"$1"):pe||se}),Y},N=function($,B){var U=$,Y;if(fe(ce,U)&&(Y=ce[U],U="%"+Y[0]+"%"),fe(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 xo=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,Be=se.alias;Be&&(Y=Be[0],be(U,Ee([0,1],Be)));for(var te=1,rt=!0;te<U.length;te+=1){var Je=U[te],Oe=Q(Je,0,1),Le=Q(Je,-1);if((Oe==='"'||Oe==="'"||Oe==="`"||Le==='"'||Le==="'"||Le==="`")&&Oe!==Le)throw new a("property names with quotes must have matching quotes");if((Je==="constructor"||!rt)&&(de=!0),Y+="."+Je,pe="%"+Y+"%",fe(oe,pe))le=oe[pe];else if(le!=null){if(!(Je 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 ct=h(le,Je);rt=!!ct,rt&&"get"in ct&&!("originalValue"in ct.get)?le=ct.get:le=le[Je]}else rt=fe(le,Je),le=le[Je];rt&&!de&&(oe[pe]=le)}}return le},xo}var Ao,Ol;function Hr(){if(Ol)return Ao;Ol=1;var e=_l(),t=mo(),r=t([e("%String.prototype.indexOf%")]);return Ao=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Ao}var To,Nl;function sy(){if(Nl)return To;Nl=1;var e=Fn()(),t=Hr(),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,To=i?n:o,To}var So,Rl;function ay(){if(Rl)return So;Rl=1;var e=Hr(),t=Fn()(),r=Tl(),n=Ar(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},c={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(c[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,c)}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 So=o,So}var _o,Il;function uy(){if(Il)return _o;Il=1;var e=Hr(),t=ay(),r=e("RegExp.prototype.exec"),n=qr();return _o=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},_o}var Oo,Pl;function ly(){if(Pl)return Oo;Pl=1;var e=Hr(),t=uy(),r=t(/^\s*(?:function)?\*/),n=Fn()(),o=vo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return Oo=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var f=i(s);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof c>"u"){var d=u();c=d?o(d):!1}return o(s)===c},Oo}var No,Fl;function cy(){if(Fl)return No;Fl=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,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[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===f||y===d||y===x||y===c)&&g("")==null}catch{}return!1})}return No=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)},No}var Ro,Cl;function fy(){if(Cl)return Ro;Cl=1;var e=cy(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,d=c.length;f<d;f++)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))},o=function(c,l,s){for(var f=0,d=c.length;f<d;f++)s==null?l(c.charAt(f),f,c):l.call(s,c.charAt(f),f,c)},i=function(c,l,s){for(var f in c)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))};function a(u){return t.call(u)==="[object Array]"}return Ro=function(c,l,s){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=s),a(c)?n(c,l,f):typeof c=="string"?o(c,l,f):i(c,l,f)},Ro}var Io,Bl;function hy(){return Bl||(Bl=1,Io=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Io}var Po,Ll;function dy(){if(Ll)return Po;Ll=1;var e=hy(),t=typeof globalThis>"u"?Te:globalThis;return Po=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Po}var Fo={exports:{}},Co,Ul;function py(){if(Ul)return Co;Ul=1;var e=Cn(),t=zu(),r=qr(),n=Ar();return Co=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 c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&d?d.configurable:!s,enumerable:c===null&&d?d.enumerable:!c,value:u,writable:l===null&&d?d.writable:!l});else if(f||!c&&!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.")},Co}var Bo,jl;function gy(){if(jl)return Bo;jl=1;var e=Cn(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Bo=t,Bo}var Lo,kl;function yy(){if(kl)return Lo;kl=1;var e=_l(),t=py(),r=gy()(),n=Ar(),o=qr(),i=e("%Math.floor%");return Lo=function(u,c){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,f=!0;if("length"in u&&n){var d=n(u,"length");d&&!d.configurable&&(s=!1),d&&!d.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Lo}var Uo,Ml;function my(){if(Ml)return Uo;Ml=1;var e=Vr(),t=ho(),r=wl();return Uo=function(){return r(e,t,arguments)},Uo}var Dl;function by(){return Dl||(Dl=1,function(e){var t=yy(),r=Cn(),n=mo(),o=my();e.exports=function(a){var u=n(arguments),c=a.length-(arguments.length-1);return t(u,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Fo)),Fo.exports}var jo,$l;function ql(){if($l)return jo;$l=1;var e=fy(),t=dy(),r=by(),n=Hr(),o=Ar(),i=vo(),a=n("Object.prototype.toString"),u=Fn()(),c=typeof globalThis>"u"?Te:globalThis,l=t(),s=n("String.prototype.slice"),f=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};u&&o&&i?e(l,function(E){var A=new c[E];if(Symbol.toStringTag in A&&i){var p=i(A),h=o(p,Symbol.toStringTag);if(!h&&p){var g=i(p);h=o(g,Symbol.toStringTag)}d["$"+E]=r(h.get)}}):e(l,function(E){var A=new c[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=s(g,1))}catch{}}),p},m=function(A){var p=!1;return e(d,function(h,g){if(!p)try{h(A),p=s(g,1)}catch{}}),p};return jo=function(A){if(!A||typeof A!="object")return!1;if(!u){var p=s(a(A),8,-1);return f(l,p)>-1?p:p!=="Object"?!1:m(A)}return o?x(A):null},jo}var ko,Vl;function wy(){if(Vl)return ko;Vl=1;var e=ql();return ko=function(r){return!!e(r)},ko}var Hl;function vy(){return Hl||(Hl=1,function(e){var t=sy(),r=ly(),n=ql(),o=wy();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",c=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(u)var x=i(Symbol.prototype.valueOf);function m(te,rt){if(typeof te!="object")return!1;try{return rt(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 c(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 c(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 c(te)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function ce(te){return typeof WeakMap>"u"?!1:he.working?he(te):te instanceof WeakMap}e.isWeakMap=ce;function ge(te){return c(te)==="[object WeakSet]"}ge.working=typeof WeakSet<"u"&&ge(new WeakSet);function fe(te){return ge(te)}e.isWeakSet=fe;function Ee(te){return c(te)==="[object ArrayBuffer]"}Ee.working=typeof ArrayBuffer<"u"&&Ee(new ArrayBuffer);function be(te){return typeof ArrayBuffer>"u"?!1:Ee.working?Ee(te):te instanceof ArrayBuffer}e.isArrayBuffer=be;function K(te){return c(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 c(te)==="[object SharedArrayBuffer]"}function H(te){return typeof ee>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new ee)),ue.working?ue(te):te instanceof ee)}e.isSharedArrayBuffer=H;function R(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return c(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return c(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,f)}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 Be(te){return typeof Uint8Array<"u"&&(be(te)||H(te))}e.isAnyArrayBuffer=Be,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})}(Ui)),Ui}var Mo,Wl;function Ey(){return Wl||(Wl=1,Mo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Mo}var Gl;function Kl(){return Gl||(Gl=1,function(e){var t=Object.getOwnPropertyDescriptors||function(Q){for(var ee=Object.keys(Q),ue={},H=0;H<ee.length;H++)ue[ee[H]]=Object.getOwnPropertyDescriptor(Q,ee[H]);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,H=ue.length,R=String(K).replace(r,function(q){if(q==="%%")return"%";if(ee>=H)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<H;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:c};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 c(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 H=f(K,Q);if(H)return H;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 f(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,H){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 H.forEach(function($){$.match(/^\d+$/)||R.push(m(K,Q,ee,ue,$,!0))}),R}function m(K,Q,ee,ue,H,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Q,H)||{value:Q[H]},$.get?$.set?q=K.stylize("[Getter/Setter]","special"):q=K.stylize("[Getter]","special"):$.set&&(q=K.stylize("[Setter]","special")),ge(ue,H)||(N="["+H+"]"),q||(K.seen.indexOf($.value)<0?(h(ee)?q=s(K,$.value,null):q=s(K,$.value,ee-1),q.indexOf(`
17
17
  `)>-1&&(R?q=q.split(`
18
18
  `).map(function(B){return" "+B}).join(`
19
19
  `).slice(2):q=`
@@ -22,7 +22,7 @@ var h1=Object.defineProperty;var Df=Te=>{throw TypeError(Te)};var d1=(Te,Ie,qe)=
22
22
  `))):q=K.stylize("[Circular]","special")),P(N)){if(R&&H.match(/^\d+$/))return q;N=JSON.stringify(""+H),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(H,R){return R.indexOf(`
23
23
  `)>=0,H+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?ee[0]+(Q===""?"":Q+`
24
24
  `)+" "+K.join(`,
25
- `)+" "+ee[1]:ee[0]+Q+" "+K.join(", ")+" "+ee[1]}e.types=vy();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=Ey();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 ce(){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",ce(),e.format.apply(e,arguments))},e.inherits=ur(),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 fe=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(fe&&Q[fe]){var ee=Q[fe];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ue,H,R=new Promise(function($,B){ue=$,H=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?H($):ue(B)});try{Q.apply(this,N)}catch($){H($)}return R}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),fe&&Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,t(Q))},e.promisify.custom=fe;function Ee(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 H=ee.pop();if(typeof H!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return H.apply(R,arguments)};K.apply(this,ee).then(function(q){me.nextTick(N.bind(null,null,q))},function(q){me.nextTick(Ee.bind(null,q,N))})}return Object.setPrototypeOf(Q,Object.getPrototypeOf(K)),Object.defineProperties(Q,t(K)),Q}e.callbackify=be}(Li)),Li}var Mo,zl;function xy(){if(zl)return Mo;zl=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 c=Pn(),l=c.Buffer,s=Kl(),f=s.inspect,d=f&&f.custom||"inspect";function x(m,E,A){l.prototype.copy.call(m,E,A)}return Mo=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 f(this,t(t({},p),{},{depth:0,customInspect:!1}))}}]),m}(),Mo}var Do,Xl;function Yl(){if(Xl)return Do;Xl=1;function e(a,u){var c=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(f){!u&&f?c._writableState?c._writableState.errorEmitted?me.nextTick(r,c):(c._writableState.errorEmitted=!0,me.nextTick(t,c,f)):me.nextTick(t,c,f):u?(me.nextTick(r,c),u(f)):me.nextTick(r,c)}),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 c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return Do={destroy:e,undestroy:n,errorOrDestroy:i},Do}var $o={},Jl;function Tr(){if(Jl)return $o;Jl=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c}var t={};function r(u,c,l){l||(l=Error);function s(d,x,m){return typeof c=="string"?c:c(d,x,m)}var f=function(d){e(x,d);function x(m,E,A){return d.call(this,s(m,E,A))||this}return x}(l);f.prototype.name=l.name,f.prototype.code=u,t[u]=f}function n(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}else return"of ".concat(c," ").concat(String(u))}function o(u,c,l){return u.substr(0,c.length)===c}function i(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c}function a(u,c,l){return typeof l!="number"&&(l=0),l+c.length>u.length?!1:u.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,c,l){var s;typeof c=="string"&&o(c,"not ")?(s="must not be",c=c.replace(/^not /,"")):s="must be";var f;if(i(u," argument"))f="The ".concat(u," ").concat(s," ").concat(n(c,"type"));else{var d=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(d," ").concat(s," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof l),f},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"),$o.codes=t,$o}var qo,Zl;function Ql(){if(Zl)return qo;Zl=1;var e=Tr().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 c=a?i:"highWaterMark";throw new e(c,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return qo={getHighWaterMark:r},qo}var Vo,ec;function Ay(){if(ec)return Vo;ec=1,Vo=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(!Te.localStorage)return!1}catch{return!1}var n=Te.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Vo}var Ho,tc;function rc(){if(tc)return Ho;tc=1,Ho=I;function e(H){var R=this;this.next=null,this.entry=null,this.finish=function(){ue(R,H)}}var t;I.WritableState=T;var r={deprecate:Ay()},n=Lu(),o=Pn().Buffer,i=(typeof Te<"u"?Te:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(H){return o.from(H)}function u(H){return o.isBuffer(H)||H instanceof i}var c=Yl(),l=Ql(),s=l.getHighWaterMark,f=Tr().codes,d=f.ERR_INVALID_ARG_TYPE,x=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,A=f.ERR_STREAM_DESTROYED,p=f.ERR_STREAM_NULL_VALUES,h=f.ERR_STREAM_WRITE_AFTER_END,g=f.ERR_UNKNOWN_ENCODING,y=c.errorOrDestroy;ur()(I,n);function w(){}function T(H,R,N){t=t||Sr(),H=H||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!H.objectMode,N&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=s(this,H,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=H.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=H.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=H.emitClose!==!1,this.autoDestroy=!!H.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(H){t=t||Sr();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(H);this._writableState=new T(H,this,R),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),n.call(this)}I.prototype.pipe=function(){y(this,new E)};function O(H,R){var N=new h;y(H,N),me.nextTick(R,N)}function j(H,R,N,q){var $;return N===null?$=new p:typeof N!="string"&&!R.objectMode&&($=new d("chunk",["string","Buffer"],N)),$?(y(H,$),me.nextTick(q,$),!1):!0}I.prototype.write=function(H,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(H);return B&&!o.isBuffer(H)&&(H=a(H)),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,H,N))&&(q.pendingcb++,$=L(this,q,B,H,R,N)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&fe(this,H))},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(H,R,N){return!H.objectMode&&H.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(H,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(H,R,!1,Y,q,$,B);return se}function D(H,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?H._writev($,R.onwrite):H._write($,B,R.onwrite),R.sync=!1}function oe(H,R,N,q,$){--R.pendingcb,N?(me.nextTick($,q),me.nextTick(Q,H,R),H._writableState.errorEmitted=!0,y(H,q)):($(q),H._writableState.errorEmitted=!0,y(H,q),Q(H,R))}function re(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function he(H,R){var N=H._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(re(N),R)oe(H,N,q,R,$);else{var B=Ee(N)||H.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&fe(H,N),q?me.nextTick(ce,H,N,B,$):ce(H,N,B,$)}}function ce(H,R,N,q){N||ge(H,R),R.pendingcb--,q(),Q(H,R)}function ge(H,R){R.length===0&&R.needDrain&&(R.needDrain=!1,H.emit("drain"))}function fe(H,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(H._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(H,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(H,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(H,R,N){N(new x("_write()"))},I.prototype._writev=null,I.prototype.end=function(H,R,N){var q=this._writableState;return typeof H=="function"?(N=H,H=null,R=null):typeof R=="function"&&(N=R,R=null),H!=null&&this.write(H,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 Ee(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function be(H,R){H._final(function(N){R.pendingcb--,N&&y(H,N),R.prefinished=!0,H.emit("prefinish"),Q(H,R)})}function K(H,R){!R.prefinished&&!R.finalCalled&&(typeof H._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,me.nextTick(be,H,R)):(R.prefinished=!0,H.emit("prefinish")))}function Q(H,R){var N=Ee(R);if(N&&(K(H,R),R.pendingcb===0&&(R.finished=!0,H.emit("finish"),R.autoDestroy))){var q=H._readableState;(!q||q.autoDestroy&&q.endEmitted)&&H.destroy()}return N}function ee(H,R,N){R.ending=!0,Q(H,R),N&&(R.finished?me.nextTick(N):H.once("finish",N)),R.ended=!0,H.writable=!1}function ue(H,R,N){var q=H.entry;for(H.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=H}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=c.destroy,I.prototype._undestroy=c.undestroy,I.prototype._destroy=function(H,R){R(H)},Ho}var Wo,nc;function Sr(){if(nc)return Wo;nc=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};Wo=a;var t=cc(),r=rc();ur()(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(c,this)}function c(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)}}),Wo}var Go={},Bn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ic;function Ty(){return ic||(ic=1,function(e,t){var r=Pn(),n=r.Buffer;function o(a,u){for(var c in a)u[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,c){return n(a,u,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,c)},i.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof c=="string"?l.fill(u,c):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)}}(Bn,Bn.exports)),Bn.exports}var oc;function Ko(){if(oc)return Go;oc=1;var e=Ty().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}Go.StringDecoder=o;function o(p){this.encoding=n(p);var h;switch(this.encoding){case"utf16le":this.text=f,this.end=d,h=4;break;case"utf8":this.fillLast=c,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 c(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 f(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 Go}var zo,sc;function Xo(){if(sc)return zo;sc=1;var e=Tr().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];i.apply(this,c)}}}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 c=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||d()},f=i._writableState&&i._writableState.finished,d=function(){l=!1,f=!0,c||u.call(i)},x=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,x=!0,l||u.call(i)},E=function(g){u.call(i,g)},A=function(){var g;if(c&&!x)return(!i._readableState||!i._readableState.ended)&&(g=new e),u.call(i,g);if(l&&!f)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 zo=o,zo}var Yo,ac;function Sy(){if(ac)return Yo;ac=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=Xo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function d(g,y){return{value:g,done:y}}function x(g){var y=g[i];if(y!==null){var w=g[f].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[c]){w(d(void 0,!0));return}y[s](w,T)},T)}}var A=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var y=this,w=this[u];if(w!==null)return Promise.reject(w);if(this[c])return Promise.resolve(d(void 0,!0));if(this[f].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[f].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[f].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,f,{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,c,{value:y._readableState.endEmitted,writable:!0}),t(w,s,{value:function(I,O){var j=T[f].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[c]=!0}),y.on("readable",m.bind(null,T)),T};return Yo=h,Yo}var Jo,uc;function _y(){return uc||(uc=1,Jo=function(){throw new Error("Readable.from is not available in the browser")}),Jo}var Zo,lc;function cc(){if(lc)return Zo;lc=1,Zo=O;var e;O.ReadableState=I,Fi().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Lu(),n=Pn().Buffer,o=(typeof Te<"u"?Te: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=Kl(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=xy(),s=Yl(),f=Ql(),d=f.getHighWaterMark,x=Tr().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;ur()(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||Sr(),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=Ko().StringDecoder),this.decoder=new h(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Sr(),!(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){c("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):fe(B,le)):G(B,le,U,!1)}else se||(le.reading=!1,fe(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&&ce(B)),fe(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=Ko().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){c("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 c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):ce(this),null;if(B=re(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var se=U.needReadable;c("need readable",se),(U.length===0||U.length-B<U.highWaterMark)&&(se=!0,c("length less than watermark",se)),U.ended||U.reading?(se=!1,c("reading or ended",se)):se&&(c("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(c("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?ce(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ge(B)))}}function ce(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,me.nextTick(ge,B))}function ge(B){var U=B._readableState;c("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,H(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,me.nextTick(Ee,B,U))}function Ee(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var Y=U.length;if(c("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,c("pipe count=%d opts=%j",se.pipesCount,U);var pe=(!U||U.end!==!1)&&B!==me.stdout&&B!==me.stderr,le=pe?Be:Ot;se.endEmitted?me.nextTick(le):Y.once("end",le),B.on("unpipe",de);function de(Rt,it){c("onunpipe"),Rt===Y&&it&&it.hasUnpiped===!1&&(it.hasUnpiped=!0,Je())}function Be(){c("onend"),B.end()}var te=be(Y);B.on("drain",te);var rt=!1;function Je(){c("cleanup"),B.removeListener("close",ct),B.removeListener("finish",st),B.removeListener("drain",te),B.removeListener("error",Le),B.removeListener("unpipe",de),Y.removeListener("end",Be),Y.removeListener("end",Ot),Y.removeListener("data",Oe),rt=!0,se.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",Oe);function Oe(Rt){c("ondata");var it=B.write(Rt);c("dest.write",it),it===!1&&((se.pipesCount===1&&se.pipes===B||se.pipesCount>1&&$(se.pipes,B)!==-1)&&!rt&&(c("false write response, pause",se.awaitDrain),se.awaitDrain++),Y.pause())}function Le(Rt){c("onerror",Rt),Ot(),B.removeListener("error",Le),t(B,"error")===0&&w(B,Rt)}P(B,"error",Le);function ct(){B.removeListener("finish",st),Ot()}B.once("close",ct);function st(){c("onfinish"),B.removeListener("close",ct),Ot()}B.once("finish",st);function Ot(){c("unpipe"),Y.unpipe(B)}return B.emit("pipe",Y),se.flowing||(c("pipe resume"),Y.resume()),B};function be(B){return function(){var Y=B._readableState;c("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&t(B,"data")&&(Y.flowing=!0,H(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,c("on readable",se.length,se.reading),se.length?ce(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){c("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("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){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),H(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(B){var U=B._readableState;for(c("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(c("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(c("wrapped data"),Y.decoder&&(de=Y.decoder.write(de)),!(Y.objectMode&&de==null)&&!(!Y.objectMode&&(!de||!de.length))){var Be=U.push(de);Be||(se=!0,B.pause())}});for(var pe in B)this[pe]===void 0&&typeof B[pe]=="function"&&(this[pe]=function(Be){return function(){return B[Be].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){c("wrapped _read",de),se&&(se=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=Sy()),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;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,me.nextTick(q,U,B))}function q(B,U){if(c("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=_y()),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 Zo}var Qo,fc;function hc(){if(fc)return Qo;fc=1,Qo=u;var e=Tr().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=Sr();ur()(u,i);function a(s,f){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,f!=null&&this.push(f),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",c)}function c(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,d){l(s,f,d)}):l(this,null,null)}u.prototype.push=function(s,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,f)},u.prototype._transform=function(s,f,d){d(new t("_transform()"))},u.prototype._write=function(s,f,d){var x=this._transformState;if(x.writecb=d,x.writechunk=s,x.writeencoding=f,!x.transforming){var m=this._readableState;(x.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},u.prototype._destroy=function(s,f){i.prototype._destroy.call(this,s,function(d){f(d)})};function l(s,f,d){if(f)return s.emit("error",f);if(d!=null&&s.push(d),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return Qo}var es,dc;function Oy(){if(dc)return es;dc=1,es=t;var e=hc();ur()(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)},es}var ts,pc;function Ny(){if(pc)return ts;pc=1;var e;function t(d){var x=!1;return function(){x||(x=!0,d.apply(void 0,arguments))}}var r=Tr().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=Xo()),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 c(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 f(){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(c),!y&&(p.forEach(c),E(A))})});return x.reduce(l)}return ts=f,ts}var rs,gc;function Ry(){if(gc)return rs;gc=1,rs=r;var e=Fi().EventEmitter,t=ur();t(r,e),r.Readable=cc(),r.Writable=rc(),r.Duplex=Sr(),r.Transform=hc(),r.PassThrough=Oy(),r.finished=Xo(),r.pipeline=Ny(),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 c=!1;function l(){c||(c=!0,n.end())}function s(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function f(x){if(d(),e.listenerCount(this,"error")===0)throw x}i.on("error",f),n.on("error",f);function d(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",f),n.removeListener("error",f),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},rs}var yc;function Iy(){return yc||(yc=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:H,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=Ry().Stream}catch{u=function(){}}u||(u=function(){});var c=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,c.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 mr=="function"&&typeof mr.isBuffer=="function"&&mr.isBuffer(R)){if(!this._decoder){var N=Ko().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]&&c.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 f="[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===`
25
+ `)+" "+ee[1]:ee[0]+Q+" "+K.join(", ")+" "+ee[1]}e.types=vy();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=Ey();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 ce(){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",ce(),e.format.apply(e,arguments))},e.inherits=ur(),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 fe=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(fe&&Q[fe]){var ee=Q[fe];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ue,H,R=new Promise(function($,B){ue=$,H=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?H($):ue(B)});try{Q.apply(this,N)}catch($){H($)}return R}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),fe&&Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,t(Q))},e.promisify.custom=fe;function Ee(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 H=ee.pop();if(typeof H!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return H.apply(R,arguments)};K.apply(this,ee).then(function(q){me.nextTick(N.bind(null,null,q))},function(q){me.nextTick(Ee.bind(null,q,N))})}return Object.setPrototypeOf(Q,Object.getPrototypeOf(K)),Object.defineProperties(Q,t(K)),Q}e.callbackify=be}(Li)),Li}var Do,zl;function xy(){if(zl)return Do;zl=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 c=Pn(),l=c.Buffer,s=Kl(),f=s.inspect,d=f&&f.custom||"inspect";function x(m,E,A){l.prototype.copy.call(m,E,A)}return Do=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 f(this,t(t({},p),{},{depth:0,customInspect:!1}))}}]),m}(),Do}var $o,Xl;function Yl(){if(Xl)return $o;Xl=1;function e(a,u){var c=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(f){!u&&f?c._writableState?c._writableState.errorEmitted?me.nextTick(r,c):(c._writableState.errorEmitted=!0,me.nextTick(t,c,f)):me.nextTick(t,c,f):u?(me.nextTick(r,c),u(f)):me.nextTick(r,c)}),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 c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return $o={destroy:e,undestroy:n,errorOrDestroy:i},$o}var qo={},Jl;function Tr(){if(Jl)return qo;Jl=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c}var t={};function r(u,c,l){l||(l=Error);function s(d,x,m){return typeof c=="string"?c:c(d,x,m)}var f=function(d){e(x,d);function x(m,E,A){return d.call(this,s(m,E,A))||this}return x}(l);f.prototype.name=l.name,f.prototype.code=u,t[u]=f}function n(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}else return"of ".concat(c," ").concat(String(u))}function o(u,c,l){return u.substr(0,c.length)===c}function i(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c}function a(u,c,l){return typeof l!="number"&&(l=0),l+c.length>u.length?!1:u.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,c,l){var s;typeof c=="string"&&o(c,"not ")?(s="must not be",c=c.replace(/^not /,"")):s="must be";var f;if(i(u," argument"))f="The ".concat(u," ").concat(s," ").concat(n(c,"type"));else{var d=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(d," ").concat(s," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof l),f},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"),qo.codes=t,qo}var Vo,Zl;function Ql(){if(Zl)return Vo;Zl=1;var e=Tr().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 c=a?i:"highWaterMark";throw new e(c,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Vo={getHighWaterMark:r},Vo}var Ho,ec;function Ay(){if(ec)return Ho;ec=1,Ho=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(!Te.localStorage)return!1}catch{return!1}var n=Te.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Ho}var Wo,tc;function rc(){if(tc)return Wo;tc=1,Wo=I;function e(H){var R=this;this.next=null,this.entry=null,this.finish=function(){ue(R,H)}}var t;I.WritableState=T;var r={deprecate:Ay()},n=Uu(),o=Pn().Buffer,i=(typeof Te<"u"?Te:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(H){return o.from(H)}function u(H){return o.isBuffer(H)||H instanceof i}var c=Yl(),l=Ql(),s=l.getHighWaterMark,f=Tr().codes,d=f.ERR_INVALID_ARG_TYPE,x=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,A=f.ERR_STREAM_DESTROYED,p=f.ERR_STREAM_NULL_VALUES,h=f.ERR_STREAM_WRITE_AFTER_END,g=f.ERR_UNKNOWN_ENCODING,y=c.errorOrDestroy;ur()(I,n);function w(){}function T(H,R,N){t=t||Sr(),H=H||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!H.objectMode,N&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=s(this,H,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=H.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=H.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=H.emitClose!==!1,this.autoDestroy=!!H.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(H){t=t||Sr();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(H);this._writableState=new T(H,this,R),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),n.call(this)}I.prototype.pipe=function(){y(this,new E)};function O(H,R){var N=new h;y(H,N),me.nextTick(R,N)}function j(H,R,N,q){var $;return N===null?$=new p:typeof N!="string"&&!R.objectMode&&($=new d("chunk",["string","Buffer"],N)),$?(y(H,$),me.nextTick(q,$),!1):!0}I.prototype.write=function(H,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(H);return B&&!o.isBuffer(H)&&(H=a(H)),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,H,N))&&(q.pendingcb++,$=L(this,q,B,H,R,N)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&fe(this,H))},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(H,R,N){return!H.objectMode&&H.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(H,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(H,R,!1,Y,q,$,B);return se}function D(H,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?H._writev($,R.onwrite):H._write($,B,R.onwrite),R.sync=!1}function oe(H,R,N,q,$){--R.pendingcb,N?(me.nextTick($,q),me.nextTick(Q,H,R),H._writableState.errorEmitted=!0,y(H,q)):($(q),H._writableState.errorEmitted=!0,y(H,q),Q(H,R))}function re(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function he(H,R){var N=H._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(re(N),R)oe(H,N,q,R,$);else{var B=Ee(N)||H.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&fe(H,N),q?me.nextTick(ce,H,N,B,$):ce(H,N,B,$)}}function ce(H,R,N,q){N||ge(H,R),R.pendingcb--,q(),Q(H,R)}function ge(H,R){R.length===0&&R.needDrain&&(R.needDrain=!1,H.emit("drain"))}function fe(H,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(H._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(H,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(H,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(H,R,N){N(new x("_write()"))},I.prototype._writev=null,I.prototype.end=function(H,R,N){var q=this._writableState;return typeof H=="function"?(N=H,H=null,R=null):typeof R=="function"&&(N=R,R=null),H!=null&&this.write(H,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 Ee(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function be(H,R){H._final(function(N){R.pendingcb--,N&&y(H,N),R.prefinished=!0,H.emit("prefinish"),Q(H,R)})}function K(H,R){!R.prefinished&&!R.finalCalled&&(typeof H._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,me.nextTick(be,H,R)):(R.prefinished=!0,H.emit("prefinish")))}function Q(H,R){var N=Ee(R);if(N&&(K(H,R),R.pendingcb===0&&(R.finished=!0,H.emit("finish"),R.autoDestroy))){var q=H._readableState;(!q||q.autoDestroy&&q.endEmitted)&&H.destroy()}return N}function ee(H,R,N){R.ending=!0,Q(H,R),N&&(R.finished?me.nextTick(N):H.once("finish",N)),R.ended=!0,H.writable=!1}function ue(H,R,N){var q=H.entry;for(H.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=H}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=c.destroy,I.prototype._undestroy=c.undestroy,I.prototype._destroy=function(H,R){R(H)},Wo}var Go,nc;function Sr(){if(nc)return Go;nc=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};Go=a;var t=cc(),r=rc();ur()(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(c,this)}function c(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)}}),Go}var Ko={},Bn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ic;function Ty(){return ic||(ic=1,function(e,t){var r=Pn(),n=r.Buffer;function o(a,u){for(var c in a)u[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,c){return n(a,u,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,c)},i.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof c=="string"?l.fill(u,c):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)}}(Bn,Bn.exports)),Bn.exports}var oc;function zo(){if(oc)return Ko;oc=1;var e=Ty().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=f,this.end=d,h=4;break;case"utf8":this.fillLast=c,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 c(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 f(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 Xo,sc;function Yo(){if(sc)return Xo;sc=1;var e=Tr().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];i.apply(this,c)}}}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 c=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||d()},f=i._writableState&&i._writableState.finished,d=function(){l=!1,f=!0,c||u.call(i)},x=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,x=!0,l||u.call(i)},E=function(g){u.call(i,g)},A=function(){var g;if(c&&!x)return(!i._readableState||!i._readableState.ended)&&(g=new e),u.call(i,g);if(l&&!f)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 Xo=o,Xo}var Jo,ac;function Sy(){if(ac)return Jo;ac=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=Yo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function d(g,y){return{value:g,done:y}}function x(g){var y=g[i];if(y!==null){var w=g[f].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[c]){w(d(void 0,!0));return}y[s](w,T)},T)}}var A=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var y=this,w=this[u];if(w!==null)return Promise.reject(w);if(this[c])return Promise.resolve(d(void 0,!0));if(this[f].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[f].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[f].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,f,{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,c,{value:y._readableState.endEmitted,writable:!0}),t(w,s,{value:function(I,O){var j=T[f].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[c]=!0}),y.on("readable",m.bind(null,T)),T};return Jo=h,Jo}var Zo,uc;function _y(){return uc||(uc=1,Zo=function(){throw new Error("Readable.from is not available in the browser")}),Zo}var Qo,lc;function cc(){if(lc)return Qo;lc=1,Qo=O;var e;O.ReadableState=I,Fi().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Uu(),n=Pn().Buffer,o=(typeof Te<"u"?Te: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=Kl(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=xy(),s=Yl(),f=Ql(),d=f.getHighWaterMark,x=Tr().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;ur()(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||Sr(),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=zo().StringDecoder),this.decoder=new h(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Sr(),!(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){c("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):fe(B,le)):G(B,le,U,!1)}else se||(le.reading=!1,fe(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&&ce(B)),fe(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=zo().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){c("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 c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):ce(this),null;if(B=re(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var se=U.needReadable;c("need readable",se),(U.length===0||U.length-B<U.highWaterMark)&&(se=!0,c("length less than watermark",se)),U.ended||U.reading?(se=!1,c("reading or ended",se)):se&&(c("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(c("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?ce(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ge(B)))}}function ce(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,me.nextTick(ge,B))}function ge(B){var U=B._readableState;c("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,H(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,me.nextTick(Ee,B,U))}function Ee(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var Y=U.length;if(c("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,c("pipe count=%d opts=%j",se.pipesCount,U);var pe=(!U||U.end!==!1)&&B!==me.stdout&&B!==me.stderr,le=pe?Be:Ot;se.endEmitted?me.nextTick(le):Y.once("end",le),B.on("unpipe",de);function de(Rt,it){c("onunpipe"),Rt===Y&&it&&it.hasUnpiped===!1&&(it.hasUnpiped=!0,Je())}function Be(){c("onend"),B.end()}var te=be(Y);B.on("drain",te);var rt=!1;function Je(){c("cleanup"),B.removeListener("close",ct),B.removeListener("finish",st),B.removeListener("drain",te),B.removeListener("error",Le),B.removeListener("unpipe",de),Y.removeListener("end",Be),Y.removeListener("end",Ot),Y.removeListener("data",Oe),rt=!0,se.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",Oe);function Oe(Rt){c("ondata");var it=B.write(Rt);c("dest.write",it),it===!1&&((se.pipesCount===1&&se.pipes===B||se.pipesCount>1&&$(se.pipes,B)!==-1)&&!rt&&(c("false write response, pause",se.awaitDrain),se.awaitDrain++),Y.pause())}function Le(Rt){c("onerror",Rt),Ot(),B.removeListener("error",Le),t(B,"error")===0&&w(B,Rt)}P(B,"error",Le);function ct(){B.removeListener("finish",st),Ot()}B.once("close",ct);function st(){c("onfinish"),B.removeListener("close",ct),Ot()}B.once("finish",st);function Ot(){c("unpipe"),Y.unpipe(B)}return B.emit("pipe",Y),se.flowing||(c("pipe resume"),Y.resume()),B};function be(B){return function(){var Y=B._readableState;c("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&t(B,"data")&&(Y.flowing=!0,H(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,c("on readable",se.length,se.reading),se.length?ce(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){c("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("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){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),H(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(B){var U=B._readableState;for(c("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(c("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(c("wrapped data"),Y.decoder&&(de=Y.decoder.write(de)),!(Y.objectMode&&de==null)&&!(!Y.objectMode&&(!de||!de.length))){var Be=U.push(de);Be||(se=!0,B.pause())}});for(var pe in B)this[pe]===void 0&&typeof B[pe]=="function"&&(this[pe]=function(Be){return function(){return B[Be].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){c("wrapped _read",de),se&&(se=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=Sy()),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;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,me.nextTick(q,U,B))}function q(B,U){if(c("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=_y()),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 Qo}var es,fc;function hc(){if(fc)return es;fc=1,es=u;var e=Tr().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=Sr();ur()(u,i);function a(s,f){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,f!=null&&this.push(f),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",c)}function c(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,d){l(s,f,d)}):l(this,null,null)}u.prototype.push=function(s,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,f)},u.prototype._transform=function(s,f,d){d(new t("_transform()"))},u.prototype._write=function(s,f,d){var x=this._transformState;if(x.writecb=d,x.writechunk=s,x.writeencoding=f,!x.transforming){var m=this._readableState;(x.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},u.prototype._destroy=function(s,f){i.prototype._destroy.call(this,s,function(d){f(d)})};function l(s,f,d){if(f)return s.emit("error",f);if(d!=null&&s.push(d),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return es}var ts,dc;function Oy(){if(dc)return ts;dc=1,ts=t;var e=hc();ur()(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)},ts}var rs,pc;function Ny(){if(pc)return rs;pc=1;var e;function t(d){var x=!1;return function(){x||(x=!0,d.apply(void 0,arguments))}}var r=Tr().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=Yo()),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 c(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 f(){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(c),!y&&(p.forEach(c),E(A))})});return x.reduce(l)}return rs=f,rs}var ns,gc;function Ry(){if(gc)return ns;gc=1,ns=r;var e=Fi().EventEmitter,t=ur();t(r,e),r.Readable=cc(),r.Writable=rc(),r.Duplex=Sr(),r.Transform=hc(),r.PassThrough=Oy(),r.finished=Yo(),r.pipeline=Ny(),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 c=!1;function l(){c||(c=!0,n.end())}function s(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function f(x){if(d(),e.listenerCount(this,"error")===0)throw x}i.on("error",f),n.on("error",f);function d(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",f),n.removeListener("error",f),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},ns}var yc;function Iy(){return yc||(yc=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:H,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=Ry().Stream}catch{u=function(){}}u||(u=function(){});var c=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,c.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 mr=="function"&&typeof mr.isBuffer=="function"&&mr.isBuffer(R)){if(!this._decoder){var N=zo().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]&&c.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 f="[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
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
27
  Line: `+R.line+`
28
28
  Column: `+R.column+`
@@ -30,21 +30,21 @@ Char: `+R.c),N=new Error(N),R.error=N,G(R,"onerror",N),R}function he(R){return R
30
30
  Actual: `+R.attribValue);else if($==="xmlns"&&R.attribValue!==m)ce(R,"xmlns: prefix must be bound to "+m+`
31
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,$=fe(R.tagName);q.prefix=$.prefix,q.local=$.local,q.uri=q.ns[$.prefix]||"",q.prefix&&!q.uri&&(ce(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(Oe){L(R,"onopennamespace",{prefix:Oe,uri:q.ns[Oe]})});for(var U=0,Y=R.attribList.length;U<Y;U++){var se=R.attribList[U],pe=se[0],le=se[1],de=fe(pe,!0),Be=de.prefix,te=de.local,rt=Be===""?"":q.ns[Be]||"",Je={name:pe,value:le,prefix:Be,local:te,uri:rt};Be&&Be!=="xmlns"&&!rt&&(ce(R,"Unbound namespace prefix: "+JSON.stringify(Be)),Je.uri=Be),R.tag.attributes[pe]=Je,L(R,"onattribute",Je)}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){ce(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!==$)ce(R,"Unexpected close tag");else break}if(N<0){ce(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 Be=Y.ns[de];L(R,"onclosenamespace",{prefix:de,uri:Be})})}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?(ce(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function ee(R,N){N==="<"?(R.state=O.OPEN_WAKA,R.startTagPosition=R.position):y(N)||(ce(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 H(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
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)&&ce(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(ce(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()===f?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===d?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&ce(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:$!==">"?(ce(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($)||ce(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(be(N,!0),K(N)):(ce(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):ce(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(ce(N,"Attribute without value"),N.attribValue=N.attribName,Ee(N),be(N)):y($)?N.state=O.ATTRIB_NAME_SAW_WHITE:P(p,$)?N.attribName+=$:ce(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(y($))continue;ce(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):(ce(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}Ee(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,$)?(ce(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):ce(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!T($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}Ee(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($)||ce(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):ce(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(y($))continue;$===">"?K(N):ce(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+=$:(ce(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)}(Pi)),Pi}var ns,mc;function is(){return mc||(mc=1,ns={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),ns}var os,bc;function ss(){if(bc)return os;bc=1;var e=is().isArray;return os={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}},os}var as,wc;function vc(){if(wc)return as;wc=1;var e=Iy(),t=ss(),r=is().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 c(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=c(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=c(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 f(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 as=function(p,h){var g=e.parser(!0,{}),y={};if(o=y,n=i(h),g.opt={strictEntities:!0},g.onopentag=s,g.ontext=f,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},as}var us,Ec;function Py(){if(Ec)return us;Ec=1;var e=ss(),t=vc();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return us=function(n,o){var i,a,u,c;return i=r(o),a=t(n,i),c="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===c?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},us}var ls,xc;function Ac(){if(xc)return ls;xc=1;var e=ss(),t=is().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?`
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)&&ce(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(ce(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()===f?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===d?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&ce(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:$!==">"?(ce(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($)||ce(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(be(N,!0),K(N)):(ce(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):ce(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(ce(N,"Attribute without value"),N.attribValue=N.attribName,Ee(N),be(N)):y($)?N.state=O.ATTRIB_NAME_SAW_WHITE:P(p,$)?N.attribName+=$:ce(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(y($))continue;ce(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):(ce(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}Ee(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,$)?(ce(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):ce(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!T($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}Ee(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($)||ce(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):ce(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(y($))continue;$===">"?K(N):ce(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+=$:(ce(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)}(Pi)),Pi}var is,mc;function os(){return mc||(mc=1,is={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),is}var ss,bc;function as(){if(bc)return ss;bc=1;var e=os().isArray;return ss={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}},ss}var us,wc;function vc(){if(wc)return us;wc=1;var e=Iy(),t=as(),r=os().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 c(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=c(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=c(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 f(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 us=function(p,h){var g=e.parser(!0,{}),y={};if(o=y,n=i(h),g.opt={strictEntities:!0},g.onopentag=s,g.ontext=f,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},us}var ls,Ec;function Py(){if(Ec)return ls;Ec=1;var e=as(),t=vc();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return ls=function(n,o){var i,a,u,c;return i=r(o),a=t(n,i),c="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===c?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},ls}var cs,xc;function Ac(){if(xc)return cs;xc=1;var e=as(),t=os().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
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 c(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 f(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+f(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:"")+c(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):"")+c(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)+f(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 ls=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("")},ls}var cs,Tc;function Fy(){if(Tc)return cs;Tc=1;var e=Ac();return cs=function(t,r){t instanceof mr&&(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)},cs}var fs,Sc;function Cy(){if(Sc)return fs;Sc=1;var e=vc(),t=Py(),r=Ac(),n=Fy();return fs={xml2js:e,xml2json:t,js2xml:r,json2xml:n},fs}var By=Cy(),Ly=Ie(By);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Uy(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Wr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Gr(e,...t){if(!Uy(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 _c(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Wr(e.outputLen),Wr(e.blockLen)}function Ln(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 jy(e,t){Gr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Kr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Un(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Oc(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function hs(e){return typeof e=="string"&&(e=Oc(e)),Gr(e),e}function Nc(e){return typeof e=="string"&&(e=Oc(e)),Gr(e),e}function ky(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)}class Rc{}function My(e){const t=n=>e().update(hs(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class Ic extends Rc{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,_c(t);const n=hs(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),Kr(i)}update(t){return Ln(this),this.iHash.update(t),this}digestInto(t){Ln(this),Gr(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}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Pc=(e,t,r)=>new Ic(e,t).update(r).digest();Pc.create=(e,t)=>new Ic(e,t);function Dy(e,t,r,n){_c(e);const o=ky({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(Wr(i),Wr(a),Wr(u),i<1)throw new Error("iterations (c) should be >= 1");const c=Nc(t),l=Nc(r),s=new Uint8Array(a),f=Pc.create(e,c),d=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:d}}function $y(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),Kr(o),r}function qy(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=Dy(e,t,r,n);let l;const s=new Uint8Array(4),f=Un(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);f.setInt32(0,x,!1),(l=c._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 $y(u,c,a,l,d)}function Vy(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),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,u,n)}class Hy extends Rc{constructor(t,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Un(this.buffer)}update(t){Ln(this),t=hs(t),Gr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const c=Un(t);for(;o<=i-a;a+=o)this.process(c,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){Ln(this),jy(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,Kr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;Vy(n,o-8,BigInt(this.length*8),i),this.process(n,0);const u=Un(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)u.setUint32(4*f,s[f],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.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ut=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),jn=BigInt(2**32-1),Fc=BigInt(32);function Wy(e,t=!1){return t?{h:Number(e&jn),l:Number(e>>Fc&jn)}:{h:Number(e>>Fc&jn)|0,l:Number(e&jn)|0}}function Gy(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=Wy(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Cc=(e,t,r)=>e>>>r,Bc=(e,t,r)=>e<<32-r|t>>>r,_r=(e,t,r)=>e>>>r|t<<32-r,Or=(e,t,r)=>e<<32-r|t>>>r,kn=(e,t,r)=>e<<64-r|t>>>r-32,Mn=(e,t,r)=>e>>>r-32|t<<64-r;function Dt(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Ky=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),zy=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Xy=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Yy=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,Jy=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Zy=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Lc=Gy(["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))),Qy=Lc[0],em=Lc[1],Gt=new Uint32Array(80),Kt=new Uint32Array(80);class tm extends Hy{constructor(t=64){super(128,t,16,!1),this.Ah=ut[0]|0,this.Al=ut[1]|0,this.Bh=ut[2]|0,this.Bl=ut[3]|0,this.Ch=ut[4]|0,this.Cl=ut[5]|0,this.Dh=ut[6]|0,this.Dl=ut[7]|0,this.Eh=ut[8]|0,this.El=ut[9]|0,this.Fh=ut[10]|0,this.Fl=ut[11]|0,this.Gh=ut[12]|0,this.Gl=ut[13]|0,this.Hh=ut[14]|0,this.Hl=ut[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:c,Eh:l,El:s,Fh:f,Fl:d,Gh:x,Gl:m,Hh:E,Hl:A}=this;return[t,r,n,o,i,a,u,c,l,s,f,d,x,m,E,A]}set(t,r,n,o,i,a,u,c,l,s,f,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=c|0,this.Eh=l|0,this.El=s|0,this.Fh=f|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)Gt[g]=t.getUint32(r),Kt[g]=t.getUint32(r+=4);for(let g=16;g<80;g++){const y=Gt[g-15]|0,w=Kt[g-15]|0,T=_r(y,w,1)^_r(y,w,8)^Cc(y,w,7),P=Or(y,w,1)^Or(y,w,8)^Bc(y,w,7),I=Gt[g-2]|0,O=Kt[g-2]|0,j=_r(I,O,19)^kn(I,O,61)^Cc(I,O,6),G=Or(I,O,19)^Mn(I,O,61)^Bc(I,O,6),L=Xy(P,G,Kt[g-7],Kt[g-16]),D=Yy(L,T,j,Gt[g-7],Gt[g-16]);Gt[g]=D|0,Kt[g]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:d,Fh:x,Fl:m,Gh:E,Gl:A,Hh:p,Hl:h}=this;for(let g=0;g<80;g++){const y=_r(f,d,14)^_r(f,d,18)^kn(f,d,41),w=Or(f,d,14)^Or(f,d,18)^Mn(f,d,41),T=f&x^~f&E,P=d&m^~d&A,I=Jy(h,w,P,em[g],Kt[g]),O=Zy(I,p,y,T,Qy[g],Gt[g]),j=I|0,G=_r(n,o,28)^kn(n,o,34)^kn(n,o,39),L=Or(n,o,28)^Mn(n,o,34)^Mn(n,o,39),D=n&i^n&u^i&u,oe=o&a^o&c^a&c;p=E|0,h=A|0,E=x|0,A=m|0,x=f|0,m=d|0,{h:f,l:d}=Dt(l|0,s|0,O|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const re=Ky(j,L,oe);n=zy(re,O,G,D),o=re|0}({h:n,l:o}=Dt(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Dt(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Dt(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Dt(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:d}=Dt(this.Eh|0,this.El|0,f|0,d|0),{h:x,l:m}=Dt(this.Fh|0,this.Fl|0,x|0,m|0),{h:E,l:A}=Dt(this.Gh|0,this.Gl|0,E|0,A|0),{h:p,l:h}=Dt(this.Hh|0,this.Hl|0,p|0,h|0),this.set(n,o,i,a,u,c,l,s,f,d,x,m,E,A,p,h)}roundClean(){Kr(Gt,Kt)}destroy(){Kr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const rm=My(()=>new tm),nm=(e,t,r,n)=>mr.from(qy(rm,e,t,{c:r,dkLen:n}));class im{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(Se(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=Ly.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 nm(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const om=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=$0(n,t),i=new im({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},$t=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Se(e.webDavPath,r);if(t!==void 0){if(Nn(e))throw new Error("public spaces need a path provided");return Se("spaces",t,n||"")}return e.webDavPath},sm=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=$t(r,{fileId:o,path:n}),d=$t(i,{fileId:u,path:a,name:c});return e.copy(f,d,{overwrite:l||!1,...s})}}),am=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=$t(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),um=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=$t(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...c});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:f}=l;throw new za(s,f,f.status)}}}),lm=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),cm=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:c=86400,version:l=null,doHeadRequest:s=!1,username:f="",...d}){const x=a==="inline";let{downloadURL:m}=i,E=!0;if(!m&&!x&&(m=l?e.getFileUrl(Se("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),f&&s&&await r.head(m),u&&f?m=await om(n,r).signUrl(m,f):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)}}),fm=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Se("public-files",n))}}),hm=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(Nn(n)){s=await e.propfind(Se(n.webDavPath,o),{depth:a,properties:u||or.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Se(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:k0({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:d}),children:E.map(A=>xr(A,e.extraProps))}}const x=s.map(m=>xr(m,e.extraProps));return{resource:x[0],children:x.slice(1)}}const f=async()=>{const d=await t.getPathForFileId(i);return this.listFiles(n,{path:d},{depth:a,davProperties:u})};try{let d="";if(c?d=Ii(n.id):d=$t(n,{fileId:i,path:o}),s=await e.propfind(d,{depth:a,properties:u||or.Default,...l}),c)return{resource:xr(s[0],e.extraProps),children:s.slice(1).map(U0)};const x=s.map(E=>xr(E,e.extraProps)),m=i===n.id;return i&&!m&&i!==x[0].fileId?f():{resource:x[0],children:x.slice(1)}}catch(d){if(d.statusCode===404&&i)return f();throw d}}}),dm=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=$t(r,{fileId:o,path:n}),d=$t(i,{fileId:u,path:a,name:c});return e.move(f,d,{overwrite:l||!1,...s})}}),pm=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const d=$t(n,{fileId:a,name:o,path:i}),{result:x}=await e.put(d,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:x.headers.get("Oc-Fileid"),path:i})}}),gm=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Se(r.webDavPath,n),o)}}),ym=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(Nn(r))return;const u=Se(r.webDavPath,o);return e.move(Se(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),mm=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=$t(r,{path:i,fileId:n,name:o}),l=Se("meta",n,"v",a,{leadingSlash:!0}),s=Se("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),bm=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Ii(r.id);return n&&(i=Se(i,n)),e.delete(i,o)}}),wm=(e,t)=>({async search(r,{davProperties:n=or.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:c}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:c.map(l=>({...xr(l,e.extraProps),highlights:l.props[ae.Highlights]||""})),totalResults:u?parseInt(u==null?void 0:u.split("/")[1]):null}}}),vm=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Se("meta",r,{leadingSlash:!0}),{properties:[ae.MetaPathForUser],...n}))[0].props[ae.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var Em={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,c,l,s,f,d=a.indexOf(o),x=a.indexOf(i,d+1),m=d;if(d>=0&&x>0){for(u=[],l=a.length;m>=0&&!f;)m==d?(u.push(m),d=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),x]:((c=u.pop())<l&&(l=c,s=x),x=a.indexOf(i,m+1)),m=d<x&&d>=0?d:x;u.length&&(f=[l,s])}return f}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 kt=="object"&&kt);i.global!==i&&i.window;var a=function(f){this.message=f};(a.prototype=new Error).name="InvalidCharacterError";var u=function(f){throw new a(f)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var d,x,m,E,A=f.length%3,p="",h=-1,g=f.length-A;++h<g;)d=f.charCodeAt(h)<<16,x=f.charCodeAt(++h)<<8,m=f.charCodeAt(++h),p+=c.charAt((E=d+x+m)>>18&63)+c.charAt(E>>12&63)+c.charAt(E>>6&63)+c.charAt(63&E);return A==2?(d=f.charCodeAt(h)<<8,x=f.charCodeAt(++h),p+=c.charAt((E=d+x)>>10)+c.charAt(E>>4&63)+c.charAt(E<<2&63)+"="):A==1&&(E=f.charCodeAt(h),p+=c.charAt(E>>2)+c.charAt(E<<4&63)+"=="),p},decode:function(f){var d=(f=String(f).replace(l,"")).length;d%4==0&&(d=(f=f.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var x,m,E=0,A="",p=-1;++p<d;)m=c.indexOf(f.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 c=Object.keys(a),l=c.length;for(let s=0;s<l;s++)i[c[s]]=u==="strict"?[a[c[s]]]:a[c[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 c=a.exec(i);for(;c;){const l=[];l.startIndex=a.lastIndex-c[0].length;const s=c.length;for(let f=0;f<s;f++)l.push(c[f]);u.push(l),c=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===`
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+f(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:"")+c(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):"")+c(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)+f(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 cs=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("")},cs}var fs,Tc;function Fy(){if(Tc)return fs;Tc=1;var e=Ac();return fs=function(t,r){t instanceof mr&&(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)},fs}var hs,Sc;function Cy(){if(Sc)return hs;Sc=1;var e=vc(),t=Py(),r=Ac(),n=Fy();return hs={xml2js:e,xml2json:t,js2xml:r,json2xml:n},hs}var By=Cy(),Ly=Ie(By);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Uy(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Wr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Gr(e,...t){if(!Uy(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 _c(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Wr(e.outputLen),Wr(e.blockLen)}function Ln(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 jy(e,t){Gr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Kr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Un(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Oc(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ds(e){return typeof e=="string"&&(e=Oc(e)),Gr(e),e}function Nc(e){return typeof e=="string"&&(e=Oc(e)),Gr(e),e}function ky(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)}class Rc{}function My(e){const t=n=>e().update(ds(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class Ic extends Rc{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,_c(t);const n=ds(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),Kr(i)}update(t){return Ln(this),this.iHash.update(t),this}digestInto(t){Ln(this),Gr(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}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Pc=(e,t,r)=>new Ic(e,t).update(r).digest();Pc.create=(e,t)=>new Ic(e,t);function Dy(e,t,r,n){_c(e);const o=ky({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(Wr(i),Wr(a),Wr(u),i<1)throw new Error("iterations (c) should be >= 1");const c=Nc(t),l=Nc(r),s=new Uint8Array(a),f=Pc.create(e,c),d=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:d}}function $y(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),Kr(o),r}function qy(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=Dy(e,t,r,n);let l;const s=new Uint8Array(4),f=Un(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);f.setInt32(0,x,!1),(l=c._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 $y(u,c,a,l,d)}function Vy(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),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,u,n)}class Hy extends Rc{constructor(t,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Un(this.buffer)}update(t){Ln(this),t=ds(t),Gr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const c=Un(t);for(;o<=i-a;a+=o)this.process(c,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){Ln(this),jy(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,Kr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;Vy(n,o-8,BigInt(this.length*8),i),this.process(n,0);const u=Un(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)u.setUint32(4*f,s[f],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.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ut=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),jn=BigInt(2**32-1),Fc=BigInt(32);function Wy(e,t=!1){return t?{h:Number(e&jn),l:Number(e>>Fc&jn)}:{h:Number(e>>Fc&jn)|0,l:Number(e&jn)|0}}function Gy(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=Wy(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Cc=(e,t,r)=>e>>>r,Bc=(e,t,r)=>e<<32-r|t>>>r,_r=(e,t,r)=>e>>>r|t<<32-r,Or=(e,t,r)=>e<<32-r|t>>>r,kn=(e,t,r)=>e<<64-r|t>>>r-32,Mn=(e,t,r)=>e>>>r-32|t<<64-r;function Dt(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Ky=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),zy=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Xy=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Yy=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,Jy=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Zy=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Lc=Gy(["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))),Qy=Lc[0],em=Lc[1],Gt=new Uint32Array(80),Kt=new Uint32Array(80);class tm extends Hy{constructor(t=64){super(128,t,16,!1),this.Ah=ut[0]|0,this.Al=ut[1]|0,this.Bh=ut[2]|0,this.Bl=ut[3]|0,this.Ch=ut[4]|0,this.Cl=ut[5]|0,this.Dh=ut[6]|0,this.Dl=ut[7]|0,this.Eh=ut[8]|0,this.El=ut[9]|0,this.Fh=ut[10]|0,this.Fl=ut[11]|0,this.Gh=ut[12]|0,this.Gl=ut[13]|0,this.Hh=ut[14]|0,this.Hl=ut[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:c,Eh:l,El:s,Fh:f,Fl:d,Gh:x,Gl:m,Hh:E,Hl:A}=this;return[t,r,n,o,i,a,u,c,l,s,f,d,x,m,E,A]}set(t,r,n,o,i,a,u,c,l,s,f,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=c|0,this.Eh=l|0,this.El=s|0,this.Fh=f|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)Gt[g]=t.getUint32(r),Kt[g]=t.getUint32(r+=4);for(let g=16;g<80;g++){const y=Gt[g-15]|0,w=Kt[g-15]|0,T=_r(y,w,1)^_r(y,w,8)^Cc(y,w,7),P=Or(y,w,1)^Or(y,w,8)^Bc(y,w,7),I=Gt[g-2]|0,O=Kt[g-2]|0,j=_r(I,O,19)^kn(I,O,61)^Cc(I,O,6),G=Or(I,O,19)^Mn(I,O,61)^Bc(I,O,6),L=Xy(P,G,Kt[g-7],Kt[g-16]),D=Yy(L,T,j,Gt[g-7],Gt[g-16]);Gt[g]=D|0,Kt[g]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:d,Fh:x,Fl:m,Gh:E,Gl:A,Hh:p,Hl:h}=this;for(let g=0;g<80;g++){const y=_r(f,d,14)^_r(f,d,18)^kn(f,d,41),w=Or(f,d,14)^Or(f,d,18)^Mn(f,d,41),T=f&x^~f&E,P=d&m^~d&A,I=Jy(h,w,P,em[g],Kt[g]),O=Zy(I,p,y,T,Qy[g],Gt[g]),j=I|0,G=_r(n,o,28)^kn(n,o,34)^kn(n,o,39),L=Or(n,o,28)^Mn(n,o,34)^Mn(n,o,39),D=n&i^n&u^i&u,oe=o&a^o&c^a&c;p=E|0,h=A|0,E=x|0,A=m|0,x=f|0,m=d|0,{h:f,l:d}=Dt(l|0,s|0,O|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const re=Ky(j,L,oe);n=zy(re,O,G,D),o=re|0}({h:n,l:o}=Dt(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Dt(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Dt(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Dt(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:d}=Dt(this.Eh|0,this.El|0,f|0,d|0),{h:x,l:m}=Dt(this.Fh|0,this.Fl|0,x|0,m|0),{h:E,l:A}=Dt(this.Gh|0,this.Gl|0,E|0,A|0),{h:p,l:h}=Dt(this.Hh|0,this.Hl|0,p|0,h|0),this.set(n,o,i,a,u,c,l,s,f,d,x,m,E,A,p,h)}roundClean(){Kr(Gt,Kt)}destroy(){Kr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const rm=My(()=>new tm),nm=(e,t,r,n)=>mr.from(qy(rm,e,t,{c:r,dkLen:n}));class im{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(Se(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=Ly.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 nm(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const om=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=$0(n,t),i=new im({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},$t=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Se(e.webDavPath,r);if(t!==void 0){if(Nn(e))throw new Error("public spaces need a path provided");return Se("spaces",t,n||"")}return e.webDavPath},sm=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=$t(r,{fileId:o,path:n}),d=$t(i,{fileId:u,path:a,name:c});return e.copy(f,d,{overwrite:l||!1,...s})}}),am=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=$t(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),um=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=$t(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...c});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:f}=l;throw new Xa(s,f,f.status)}}}),lm=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),cm=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:c=86400,version:l=null,doHeadRequest:s=!1,username:f="",...d}){const x=a==="inline";let{downloadURL:m}=i,E=!0;if(!m&&!x&&(m=l?e.getFileUrl(Se("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),f&&s&&await r.head(m),u&&f?m=await om(n,r).signUrl(m,f):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)}}),fm=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Se("public-files",n))}}),hm=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(Nn(n)){s=await e.propfind(Se(n.webDavPath,o),{depth:a,properties:u||or.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Se(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:k0({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:d}),children:E.map(A=>xr(A,e.extraProps))}}const x=s.map(m=>xr(m,e.extraProps));return{resource:x[0],children:x.slice(1)}}const f=async()=>{const d=await t.getPathForFileId(i);return this.listFiles(n,{path:d},{depth:a,davProperties:u})};try{let d="";if(c?d=Ii(n.id):d=$t(n,{fileId:i,path:o}),s=await e.propfind(d,{depth:a,properties:u||or.Default,...l}),c)return{resource:xr(s[0],e.extraProps),children:s.slice(1).map(U0)};const x=s.map(E=>xr(E,e.extraProps)),m=i===n.id;return i&&!m&&i!==x[0].fileId?f():{resource:x[0],children:x.slice(1)}}catch(d){if(d.statusCode===404&&i)return f();throw d}}}),dm=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=$t(r,{fileId:o,path:n}),d=$t(i,{fileId:u,path:a,name:c});return e.move(f,d,{overwrite:l||!1,...s})}}),pm=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const d=$t(n,{fileId:a,name:o,path:i}),{result:x}=await e.put(d,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:x.headers.get("Oc-Fileid"),path:i})}}),gm=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Se(r.webDavPath,n),o)}}),ym=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(Nn(r))return;const u=Se(r.webDavPath,o);return e.move(Se(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),mm=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=$t(r,{path:i,fileId:n,name:o}),l=Se("meta",n,"v",a,{leadingSlash:!0}),s=Se("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),bm=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Ii(r.id);return n&&(i=Se(i,n)),e.delete(i,o)}}),wm=(e,t)=>({async search(r,{davProperties:n=or.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:c}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:c.map(l=>({...xr(l,e.extraProps),highlights:l.props[ae.Highlights]||""})),totalResults:u?parseInt(u==null?void 0:u.split("/")[1]):null}}}),vm=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Se("meta",r,{leadingSlash:!0}),{properties:[ae.MetaPathForUser],...n}))[0].props[ae.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var Em={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,c,l,s,f,d=a.indexOf(o),x=a.indexOf(i,d+1),m=d;if(d>=0&&x>0){for(u=[],l=a.length;m>=0&&!f;)m==d?(u.push(m),d=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),x]:((c=u.pop())<l&&(l=c,s=x),x=a.indexOf(i,m+1)),m=d<x&&d>=0?d:x;u.length&&(f=[l,s])}return f}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 kt=="object"&&kt);i.global!==i&&i.window;var a=function(f){this.message=f};(a.prototype=new Error).name="InvalidCharacterError";var u=function(f){throw new a(f)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var d,x,m,E,A=f.length%3,p="",h=-1,g=f.length-A;++h<g;)d=f.charCodeAt(h)<<16,x=f.charCodeAt(++h)<<8,m=f.charCodeAt(++h),p+=c.charAt((E=d+x+m)>>18&63)+c.charAt(E>>12&63)+c.charAt(E>>6&63)+c.charAt(63&E);return A==2?(d=f.charCodeAt(h)<<8,x=f.charCodeAt(++h),p+=c.charAt((E=d+x)>>10)+c.charAt(E>>4&63)+c.charAt(E<<2&63)+"="):A==1&&(E=f.charCodeAt(h),p+=c.charAt(E>>2)+c.charAt(E<<4&63)+"=="),p},decode:function(f){var d=(f=String(f).replace(l,"")).length;d%4==0&&(d=(f=f.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var x,m,E=0,A="",p=-1;++p<d;)m=c.indexOf(f.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 c=Object.keys(a),l=c.length;for(let s=0;s<l;s++)i[c[s]]=u==="strict"?[a[c[s]]]:a[c[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 c=a.exec(i);for(;c;){const l=[];l.startIndex=a.lastIndex-c[0].length;const s=c.length;for(let f=0;f<s;f++)l.push(c[f]);u.push(l),c=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
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
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 c='"',l="'";function s(h,g){let y="",w="",T=!1;for(;g<h.length;g++){if(h[g]===c||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 f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d(h,g){const y=n.getAllMatches(h,f),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,f){return f},attributeValueProcessor:function(s,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 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=c,this.tagEndChar=`>
38
38
  `,this.newLine=`
39
39
  `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,d,x){const m=this.j2x(s,d+1,x.concat(f));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],f,m.attrStr,d):this.buildObjectNode(m.val,f,m.attrStr,d)}function c(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,f,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(f)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+A+"/"+this.tagEndChar;else if(s[A]instanceof Date)m+=this.buildTextValNode(s[A],A,"",f);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,"",f)}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(f)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+A+"/"+this.tagEndChar;else if(typeof w=="object")if(this.options.oneListGroup){const T=this.j2x(w,f+1,d.concat(A));h+=T.val,this.options.attributesGroupName&&w.hasOwnProperty(this.options.attributesGroupName)&&(g+=T.attrStr)}else h+=this.processTextOrObjNode(w,A,f,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,"",f)}this.options.oneListGroup&&(h=this.buildObjectNode(h,A,g,f)),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,f,d);return{attrStr:x,val:m}},a.prototype.buildAttrPairStr=function(s,f){return f=this.options.attributeValueProcessor(s,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+s:" "+s+'="'+f+'"'},a.prototype.buildObjectNode=function(s,f,d,x){if(s==="")return f[0]==="?"?this.indentate(x)+"<"+f+d+"?"+this.tagEndChar:this.indentate(x)+"<"+f+d+this.closeTag(f)+this.tagEndChar;{let m="</"+f+this.tagEndChar,E="";return f[0]==="?"&&(E="?",m=""),!d&&d!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&E.length===0?this.indentate(x)+`<!--${s}-->`+this.newLine:this.indentate(x)+"<"+f+d+E+this.tagEndChar+s+this.indentate(x)+m:this.indentate(x)+"<"+f+d+E+">"+s+m}},a.prototype.closeTag=function(s){let f="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(f="/"):f=this.options.suppressEmptyNode?"/":`></${s}`,f},a.prototype.buildTextValNode=function(s,f,d,x){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(x)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(x)+`<!--${s}-->`+this.newLine;if(f[0]==="?")return this.indentate(x)+"<"+f+d+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(f,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(x)+"<"+f+d+this.closeTag(f)+this.tagEndChar:this.indentate(x)+"<"+f+d+">"+m+"</"+f+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const d=this.options.entities[f];s=s.replace(d.regex,d.val)}return s},e.exports=a},87:e=>{function t(a,u,c,l){let s="",f=!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=c.length===0?m:`${c}.${m}`,m===u.textNodeName){let g=x[m];o(E,u)||(g=u.tagValueProcessor(m,g),g=i(g,u)),f&&(s+=l),s+=g,f=!1;continue}if(m===u.cdataPropName){f&&(s+=l),s+=`<![CDATA[${x[m][0][u.textNodeName]}]]>`,f=!1;continue}if(m===u.commentPropName){s+=l+`<!--${x[m][0][u.textNodeName]}-->`,f=!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}?>`,f=!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+"/>",f=!0}return s}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(a.hasOwnProperty(l)&&l!==":@")return l}}function n(a,u){let c="";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?c+=` ${l.substr(u.attributeNamePrefix.length)}`:c+=` ${l.substr(u.attributeNamePrefix.length)}="${s}"`}return c}function o(a,u){let c=(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]==="*."+c)return!0;return!1}function i(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const l=u.entities[c];a=a.replace(l.regex,l.val)}return a}e.exports=function(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=`
40
40
  `),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,d){let x="";for(;d<f.length&&f[d]!=="'"&&f[d]!=='"';d++)x+=f[d];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=f[d++];let E="";for(;d<f.length&&f[d]!==m;d++)E+=f[d];return[x,E,d]}function i(f,d){return f[d+1]==="!"&&f[d+2]==="-"&&f[d+3]==="-"}function a(f,d){return f[d+1]==="!"&&f[d+2]==="E"&&f[d+3]==="N"&&f[d+4]==="T"&&f[d+5]==="I"&&f[d+6]==="T"&&f[d+7]==="Y"}function u(f,d){return f[d+1]==="!"&&f[d+2]==="E"&&f[d+3]==="L"&&f[d+4]==="E"&&f[d+5]==="M"&&f[d+6]==="E"&&f[d+7]==="N"&&f[d+8]==="T"}function c(f,d){return f[d+1]==="!"&&f[d+2]==="A"&&f[d+3]==="T"&&f[d+4]==="T"&&f[d+5]==="L"&&f[d+6]==="I"&&f[d+7]==="S"&&f[d+8]==="T"}function l(f,d){return f[d+1]==="!"&&f[d+2]==="N"&&f[d+3]==="O"&&f[d+4]==="T"&&f[d+5]==="A"&&f[d+6]==="T"&&f[d+7]==="I"&&f[d+8]==="O"&&f[d+9]==="N"}function s(f){if(n.isName(f))return f;throw new Error(`Invalid entity name ${f}`)}e.exports=function(f,d){const x={};if(f[d+3]!=="O"||f[d+4]!=="C"||f[d+5]!=="T"||f[d+6]!=="Y"||f[d+7]!=="P"||f[d+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{d+=9;let m=1,E=!1,A=!1,p="";for(;d<f.length;d++)if(f[d]!=="<"||A)if(f[d]===">"){if(A?f[d-1]==="-"&&f[d-2]==="-"&&(A=!1,m--):m--,m===0)break}else f[d]==="["?E=!0:p+=f[d];else{if(E&&a(f,d)){let h,g;d+=7,[h,g,d]=o(f,d+1),g.indexOf("&")===-1&&(x[s(h)]={regx:RegExp(`&${h};`,"g"),val:g})}else if(E&&u(f,d))d+=8;else if(E&&c(f,d))d+=8;else if(E&&l(f,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 c(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 f=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,f),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,ce=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 fe="";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,ce+1);if(!be)throw new Error(`Unexpected end of ${oe}`);G=be.i,fe=be.tagContent}const Ee=new o(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,j,D)),fe&&(fe=this.parseTextData(fe,D,j,!0,he,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),Ee.add(this.options.textNodeName,fe),this.addChild(I,Ee,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 fe=new o(D);D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(D);this.tagsNodeStack.push(I),D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,fe,j),I=fe}O="",G=ce}}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,ce){let ge,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",Ee="";for(let be=ce;be<he.length;be++){let K=he[be];if(ge)K===ge&&(ge="");else if(K==='"'||K==="'")ge=K;else if(K===fe[0]){if(!fe[1])return{data:Ee,index:be};if(he[be+1]===fe[1])return{data:Ee,index:be}}else K===" "&&(K=" ");Ee+=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=c,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,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const f=a.validate(u,c);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.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,c){if(c.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(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(e,t)=>{function r(a,u,c){let l;const s={};for(let f=0;f<a.length;f++){const d=a[f],x=n(d);let m="";if(m=c===void 0?x:c+"."+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 c=0;c<u.length;c++){const l=u[c];if(l!==":@")return l}}function o(a,u,c,l){if(u){const s=Object.keys(u),f=s.length;for(let d=0;d<f;d++){const x=s[d];l.isArray(x,c+"."+x,!0,!0)?a[x]=[u[x]]:a[x]=u[x]}}}function i(a,u){const{textNodeName:c}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[c]&&typeof a[c]!="boolean"&&a[c]!==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(c,l){c.constructor==String?c=l&&l.encoding==="binary"?a.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var s=n.bytesToWords(c),f=8*c.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[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;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(c,l,s,f,d,x,m){var E=c+(l&s|~l&f)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._gg=function(c,l,s,f,d,x,m){var E=c+(l&f|s&~f)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._hh=function(c,l,s,f,d,x,m){var E=c+(l^s^f)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._ii=function(c,l,s,f,d,x,m){var E=c+(s^(l|~f))+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._blocksize=16,u._digestsize=16,e.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var s=n.wordsToBytes(u(c,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(c)}(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",c="\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(c).join(".")}function f(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=f(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=f(y.body)).length===1&&(O=A(O[0],!1).map(d)).length===1)return T.map(function(H){return y.pre+O[0]+H});if(D){var re=l(O[0]),he=l(O[1]),ce=Math.max(O[0].length,O[1].length),ge=O.length==3?Math.abs(l(O[2])):1,fe=m;he<re&&(ge*=-1,fe=E);var Ee=O.some(x);j=[];for(var be=re;fe(be,he);be+=ge){var K;if(L)(K=String.fromCharCode(be))==="\\"&&(K="");else if(K=String(be),Ee){var Q=ce-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(f){if(f===null||(d=f,Function.toString.call(d).indexOf("[native code]")===-1))return f;var d;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(f))return s.get(f);s.set(f,x)}function x(){return n(f,arguments,i(this).constructor)}return x.prototype=Object.create(f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,f)},r(l)}function n(l,s,f){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(f,d){return f.__proto__=d,f},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(f){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,f))).name="ObjectPrototypeMutationError",d}return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),d&&o(f,d)}(s,l),s}(r(Error));function u(l,s){for(var f=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("."),f):f(l,w,d,p)})};var g=d.slice(0,p).join(".");throw new Error("Object at wildcard (".concat(g,") is not an array"))}l=f(l,h,d,p)},E=0;E<x;E++){var A=m(E);if(t(A)==="object")return A.v}return l}function c(l,s){return l.length===s+1}e.exports={set:function(l,s,f){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=f,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 c(m,E)&&(d[x]=f),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(f,d){return f[d]})}catch{return l}},has:function(l,s){var f=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(!c(E,A))return x&&x[m];d=f.own?x.hasOwnProperty(m):m in x}),d}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){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===f||!!E&&E[A]===f,m=c(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 f=[],d=0;d<l.length;d++){var x=l[d];x&&x!=="."&&(x===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(x))}return f}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function c(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,f=arguments.length-1;f>=-1&&!s;f--){var d=f>=0?arguments[f]: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),f=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&f&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var f=arguments[s];if(!o(f))throw new TypeError("Arguments to path.join must be strings");f&&(l+=l?"/"+f:f)}return u.normalize(l)},u.relative=function(l,s){function f(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=f(l.split("/")),x=f(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=c(l),f=s[0],d=s[1];return f||d?(d&&(d=d.substr(0,d.length-1)),f+d):"."},u.basename=function(l,s){var f=c(l)[2];return s&&f.substr(-1*s.length)===s&&(f=f.substr(0,f.length-s.length)),f},u.extname=function(l){return c(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=c(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,c,l=[];for(c in typeof a!="string"&&(a="?"),i)if(r.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,c={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in c||(c[l]=s)}return c}},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 c=r.exec(a);if(c){const l=c[1],s=c[2];let f=((u=c[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=c[4]||c[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"&&f===""||m===f||l&&m==="-"+f?x:o:s?f===m||l+f===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+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function f(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 kt<"u"?kt: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=f(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=f(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 ce=(he||"/").split("/").slice(0,-1).concat(re.split("/")),ge=ce.length,fe=ce[ge-1],Ee=!1,be=0;ge--;)ce[ge]==="."?ce.splice(ge,1):ce[ge]===".."?(ce.splice(ge,1),be++):be&&(ge===0&&(Ee=!0),ce.splice(ge,1),be--);return Ee&&ce.unshift(""),fe!=="."&&fe!==".."||ce.push(""),ce.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,c.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]===":"||c.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=f,p.qs=o,e.exports=p},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Uc={};function Fe(e){var t=Uc[e];if(t!==void 0)return t.exports;var r=Uc[e]={id:e,loaded:!1,exports:{}};return Em[e].call(r.exports,r,r.exports,Fe),r.loaded=!0,r.exports}Fe.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Fe.d(t,{a:t}),t},Fe.d=(e,t)=>{for(var r in t)Fe.o(t,r)&&!Fe.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Fe.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fe.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var Et={};Fe.d(Et,{hT:()=>ht,O4:()=>qt,Kd:()=>Im,YK:()=>Pm,UU:()=>jb,Gu:()=>Kc,ky:()=>cf,h4:()=>Zr,ch:()=>zn,hq:()=>lr,i5:()=>ff});var xm=Fe(737),Am=Fe.n(xm);function ds(e){if(!ps(e))throw new Error("Parameter was not an error")}function ps(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class ft extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=function(u){let c,l="";if(u.length===0)c={};else if(ps(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,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 ds(t),t._cause&&ps(t._cause)?t._cause:null}static fullStack(t){ds(t);const r=ft.cause(t);return r?`${t.stack}
42
- caused by: ${ft.fullStack(r)}`:t.stack??""}static info(t){ds(t);const r={},n=ft.cause(t);return n&&Object.assign(r,ft.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 Tm=Fe(47),Dn=Fe.n(Tm);const jc="__PATH_SEPARATOR_POSIX__",kc="__PATH_SEPARATOR_WINDOWS__";function Ve(e){try{const t=e.replace(/\//g,jc).replace(/\\\\/g,kc);return encodeURIComponent(t).split(kc).join("\\\\").split(jc).join("/")}catch(t){throw new ft(t,"Failed encoding path")}}function Mc(e){return e.startsWith("/")?e:"/"+e}function zr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function Sm(e){let t=new(Am())(e).pathname;return t.length<=0&&(t="/"),zr(t)}function He(){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 c=o.join("/"),l=(c=c.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 _m=Fe(542),Xr=Fe.n(_m);const Om="abcdef0123456789";function Dc(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||Xr()(`${x}:${m}:${E}`);return d&&d.toLowerCase()==="md5-sess"?Xr()(`${g}:${A}:${p}`):g}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=Xr()(`${o}:${n}`),l=i?Xr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):Xr()(`${u}:${t.nonce}:${c}`),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},f=[];for(const d in s)s[d]&&(d==="qop"||d==="nc"||d==="algorithm"?f.push(`${d}=${s[d]}`):f.push(`${d}="${s[d]}"`));return`Digest ${f.join(", ")}`}function $c(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Nm=Fe(101),qc=Fe.n(Nm);function Vc(e){return qc().decode(e)}function Hc(e,t){var r;return`Basic ${r=`${e}:${t}`,qc().encode(r)}`}const $n=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Rm=$n.fetch.bind($n),Im=$n.Request,Pm=$n.Response;let ht=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),qt=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 Wc(e,t,r,n,o){switch(e.authType){case ht.Auto:t&&r&&(e.headers.Authorization=Hc(t,r));break;case ht.Digest:e.digest=function(a,u,c){return{username:a,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,r,o);break;case ht.None:break;case ht.Password:e.headers.Authorization=Hc(t,r);break;case ht.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new ft({info:{code:qt.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Fe(345),Fe(800);const Gc="@@HOTPATCHER",Fm=()=>{};function gs(e){return{original:e,methods:[e],final:!1}}class Cm{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Gc}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__!==Gc)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)||Fm;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),c=0;c<a;c++)u[c]=arguments[c];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]=gs(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(gs(r),{original:i})}else this.configuration.registry[t]=gs(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 ys=null;function Kc(){return ys||(ys=new Cm),ys}function qn(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 zc(){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?Xc(n,i):qn(i)}return n}function Xc(e,t){const r=qn(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]?Xc(r[n],t[n]):qn(t[n]):r[n]=t[n]:r[n]=t[n]}),r}function Bm(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function ms(){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),{})}Fe(805);const Lm=typeof ArrayBuffer=="function",{toString:Um}=Object.prototype;function Yc(e){return Lm&&(e instanceof ArrayBuffer||Um.call(e)==="[object ArrayBuffer]")}function Jc(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function bs(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 ws(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Zc=bs(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=zc(e,{headers:{Authorization:Dc(e,t)}})),ws(Vn(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(!$c(a))return!1;const c=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=c.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}${Om[Math.floor(16*Math.random())]}`;return l}(),!0}(r,t),function(){if(t.hasDigestAuth)return ws(Vn(e=zc(e,{headers:{Authorization:Dc(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})}),jm=bs(function(e,t){return ws(Vn(e),function(r){return r.ok?(t.authType=ht.Password,r):r.status==401&&$c(r)?(t.authType=ht.Digest,Wc(t,t.username,t.password,void 0,void 0),e._digest=t.digest,Zc(e)):r})}),Ze=bs(function(e,t){return t.authType===ht.Auto?jm(e,t):e._digest?Zc(e):Vn(e)});function Qe(e,t,r){const n=qn(e);return n.headers=ms(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 Vn(e){const t=Kc();return t.patchInline("request",r=>t.patchInline("fetch",Rm,r.url,function(n){let o={};const i={method:n.method};if(n.headers&&(o=ms(o,n.headers)),n.data!==void 0){const[a,u]=function(c){if(typeof c=="string")return[c,{}];if(Jc(c))return[c,{}];if(Yc(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)}(n.data);i.body=a,o=ms(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i}(r)),e)}var km=Fe(285);const Hn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Mm={"[: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]},Yr=e=>e.replace(/[[\]\\-]/g,"\\$&"),Qc=e=>e.join(""),Dm=(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,c=!1,l=!1,s=r,f="";e:for(;i<e.length;){const E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!c){s=i+1;break}if(a=!0,E!=="\\"||c){if(E==="["&&!c){for(const[A,[p,h,g]]of Object.entries(Mm))if(e.startsWith(A,i)){if(f)return["$.",!1,e.length-r,!0];i+=A.length,g?o.push(p):n.push(p),u=u||h;continue e}}c=!1,f?(E>f?n.push(Yr(f)+"-"+Yr(E)):E===f&&n.push(Yr(E)),f="",i++):e.startsWith("-]",i+1)?(n.push(Yr(E+"-")),i+=2):e.startsWith("-",i+1)?(f=E,i+=2):(n.push(Yr(E)),i++)}else c=!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?"^":"")+Qc(n)+"]",m="["+(l?"":"^")+Qc(o)+"]";return[n.length&&o.length?"("+x+"|"+m+")":n.length?x:m,u,s-r,!0]},Jr=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")},$m=new Set(["!","?","+","*","@"]),ef=e=>$m.has(e),vs="(?!\\.)",qm=new Set(["[","."]),Vm=new Set(["..","."]),Hm=new Set("().*{}+?[]^$\\!"),Es="[^/]",tf=Es+"*?",rf=Es+"+?",gt=class gt{constructor(t,r){Ne(this,dr);ye(this,"type");Ne(this,tt);Ne(this,nt);Ne(this,Wt,!1);Ne(this,ke,[]);Ne(this,Ye);Ne(this,Xt);Ne(this,fr);Ne(this,Yt,!1);Ne(this,Bt);Ne(this,hr);Ne(this,sn,!1);let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&ve(this,nt,!0),ve(this,Ye,r),ve(this,tt,J(this,Ye)?J(J(this,Ye),tt):this),ve(this,Bt,J(this,tt)===this?n:J(J(this,tt),Bt)),ve(this,fr,J(this,tt)===this?[]:J(J(this,tt),fr)),t!=="!"||J(J(this,tt),Yt)||J(this,fr).push(this),ve(this,Xt,J(this,Ye)?J(J(this,Ye),ke).length:0)}get hasMagic(){if(J(this,nt)!==void 0)return J(this,nt);for(const t of J(this,ke))if(typeof t!="string"&&(t.type||t.hasMagic))return ve(this,nt,!0);return J(this,nt)}toString(){return J(this,hr)!==void 0?J(this,hr):this.type?ve(this,hr,this.type+"("+J(this,ke).map(t=>String(t)).join("|")+")"):ve(this,hr,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,Ye)===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,tt)||J(J(this,tt),Yt)&&((r=J(this,Ye))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(J(this,tt)===this)return!0;if(!((r=J(this,Ye))!=null&&r.isStart()))return!1;if(J(this,Xt)===0)return!0;const t=J(this,Ye);for(let n=0;n<J(this,Xt);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,tt)===this||((r=J(this,Ye))==null?void 0:r.type)==="!")return!0;if(!((n=J(this,Ye))!=null&&n.isEnd()))return!1;if(!this.type)return(o=J(this,Ye))==null?void 0:o.isEnd();const t=J(this,Ye)?J(J(this,Ye),ke).length:0;return J(this,Xt)===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 $e(o=gt,Jt,ri).call(o,t,n,0,r),n}toMMPattern(){if(this!==J(this,tt))return J(this,tt).toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||J(this,nt)||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 c;const r=t??!!J(this,Bt).dot;if(J(this,tt)===this&&$e(this,dr,zf).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"?$e(h=gt,Jt,Xf).call(h,x,J(this,nt),l):x.toRegExpSource(t);return ve(this,nt,J(this,nt)||A),ve(this,Wt,J(this,Wt)||p),m}).join("");let f="";if(this.isStart()&&typeof J(this,ke)[0]=="string"&&(J(this,ke).length!==1||!Vm.has(J(this,ke)[0]))){const x=qm,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));f=m?"(?!(?:^|/)\\.\\.?(?:$|/))":E?vs:""}let d="";return this.isEnd()&&J(J(this,tt),Yt)&&((c=J(this,Ye))==null?void 0:c.type)==="!"&&(d="(?:$|\\/)"),[f+s+d,Jr(s),ve(this,nt,!!J(this,nt)),J(this,Wt)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=$e(this,dr,Qs).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,nt,void 0),[l,Jr(this.toString()),!1,!1]}let a=!n||t||r?"":$e(this,dr,Qs).call(this,!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&J(this,sn)?(this.isStart()&&!r?vs:"")+rf:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":vs)+tf+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,Jr(i),ve(this,nt,!!J(this,nt)),J(this,Wt)]}};tt=new WeakMap,nt=new WeakMap,Wt=new WeakMap,ke=new WeakMap,Ye=new WeakMap,Xt=new WeakMap,fr=new WeakMap,Yt=new WeakMap,Bt=new WeakMap,hr=new WeakMap,sn=new WeakMap,dr=new WeakSet,zf=function(){if(this!==J(this,tt))throw new Error("should only call on root");if(J(this,Yt))return this;let t;for(this.toString(),ve(this,Yt,!0);t=J(this,fr).pop();){if(t.type!=="!")continue;let r=t,n=J(r,Ye);for(;n;){for(let o=J(r,Xt)+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,Ye)}}return this},Jt=new WeakSet,ri=function(t,r,n,o){var x,m;let i=!1,a=!1,u=-1,c=!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!=="!"||(c=!0):p!=="]"||E===u+2&&c||(a=!1),A+=p;else if(p!=="[")if(o.noext||!ef(p)||t.charAt(E)!=="(")A+=p;else{r.push(A),A="";const h=new gt(p,r);E=$e(x=gt,Jt,ri).call(x,t,h,E,o),r.push(h)}else a=!0,u=E,c=!1,A+=p}return r.push(A),E}let l=n+1,s=new gt(null,r);const f=[];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!=="!"||(c=!0):E!=="]"||l===u+2&&c||(a=!1),d+=E;else if(E!=="[")if(ef(E)&&t.charAt(l)==="("){s.push(d),d="";const A=new gt(E,s);s.push(A),l=$e(m=gt,Jt,ri).call(m,t,A,l,o)}else if(E!=="|"){if(E===")")return d===""&&J(r,ke).length===0&&ve(r,sn,!0),s.push(d),d="",r.push(...f,s),l;d+=E}else s.push(d),d="",f.push(s),s=new gt(null,r);else a=!0,u=l,c=!1,d+=E}return r.type=null,ve(r,nt,void 0),ve(r,ke,[t.substring(n-1)]),l},Qs=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,Wt,J(this,Wt)||a),n}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},Xf=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 c=t.charAt(u);if(o)o=!1,i+=(Hm.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,d]=Dm(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||d;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Es,r=!0):(i+=n&&t==="*"?rf:tf,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,Jr(t),!!r,a]},Ne(gt,Jt);let Wn=gt;const lt=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Hn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new Gn(t,r).match(e)},Wm=/^\*+([^+@!?\*\[\(]*)$/,Gm=e=>t=>!t.startsWith(".")&&t.endsWith(e),Km=e=>t=>t.endsWith(e),zm=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Xm=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ym=/^\*+\.\*+$/,Jm=e=>!e.startsWith(".")&&e.includes("."),Zm=e=>e!=="."&&e!==".."&&e.includes("."),Qm=/^\.\*+$/,eb=e=>e!=="."&&e!==".."&&e.startsWith("."),tb=/^\*+$/,rb=e=>e.length!==0&&!e.startsWith("."),nb=e=>e.length!==0&&e!=="."&&e!=="..",ib=/^\?+([^+@!?\*\[\(]*)?$/,ob=e=>{let[t,r=""]=e;const n=nf([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},sb=e=>{let[t,r=""]=e;const n=of([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},ab=e=>{let[t,r=""]=e;const n=of([t]);return r?o=>n(o)&&o.endsWith(r):n},ub=e=>{let[t,r=""]=e;const n=nf([t]);return r?o=>n(o)&&o.endsWith(r):n},nf=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},of=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},sf=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";lt.sep=sf==="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 af=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Hn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:km(e)};lt.braceExpand=af,lt.makeRe=function(e){return new Gn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},lt.match=function(e,t){const r=new Gn(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 uf=/[?*]|[+@!]\(.*?\)|\[|\]/;class Gn{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]:{};Hn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||sf,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 c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&uf.test(i[2])||uf.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)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(c=>this.parse(c))});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 c=n[o+2],l=n[o+3];if(u!==".."||!c||c==="."||c===".."||!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,c=t.length,l=r.length;a<c&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],f=t[a];if(this.debug(r,s,f),s===!1)return!1;if(s===xt){this.debug("GLOBSTAR",[r,s,f]);var d=a,x=u+1;if(x===l){for(this.debug("** at the end");a<c;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;d<c;){var m=t[d];if(this.debug(`
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,ce=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 fe="";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,ce+1);if(!be)throw new Error(`Unexpected end of ${oe}`);G=be.i,fe=be.tagContent}const Ee=new o(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,j,D)),fe&&(fe=this.parseTextData(fe,D,j,!0,he,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),Ee.add(this.options.textNodeName,fe),this.addChild(I,Ee,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 fe=new o(D);D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(D);this.tagsNodeStack.push(I),D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,fe,j),I=fe}O="",G=ce}}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,ce){let ge,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",Ee="";for(let be=ce;be<he.length;be++){let K=he[be];if(ge)K===ge&&(ge="");else if(K==='"'||K==="'")ge=K;else if(K===fe[0]){if(!fe[1])return{data:Ee,index:be};if(he[be+1]===fe[1])return{data:Ee,index:be}}else K===" "&&(K=" ");Ee+=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=c,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,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const f=a.validate(u,c);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.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,c){if(c.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(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(e,t)=>{function r(a,u,c){let l;const s={};for(let f=0;f<a.length;f++){const d=a[f],x=n(d);let m="";if(m=c===void 0?x:c+"."+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 c=0;c<u.length;c++){const l=u[c];if(l!==":@")return l}}function o(a,u,c,l){if(u){const s=Object.keys(u),f=s.length;for(let d=0;d<f;d++){const x=s[d];l.isArray(x,c+"."+x,!0,!0)?a[x]=[u[x]]:a[x]=u[x]}}}function i(a,u){const{textNodeName:c}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[c]&&typeof a[c]!="boolean"&&a[c]!==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(c,l){c.constructor==String?c=l&&l.encoding==="binary"?a.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var s=n.bytesToWords(c),f=8*c.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[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;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(c,l,s,f,d,x,m){var E=c+(l&s|~l&f)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._gg=function(c,l,s,f,d,x,m){var E=c+(l&f|s&~f)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._hh=function(c,l,s,f,d,x,m){var E=c+(l^s^f)+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._ii=function(c,l,s,f,d,x,m){var E=c+(s^(l|~f))+(d>>>0)+m;return(E<<x|E>>>32-x)+l},u._blocksize=16,u._digestsize=16,e.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var s=n.wordsToBytes(u(c,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(c)}(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",c="\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(c).join(".")}function f(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=f(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=f(y.body)).length===1&&(O=A(O[0],!1).map(d)).length===1)return T.map(function(H){return y.pre+O[0]+H});if(D){var re=l(O[0]),he=l(O[1]),ce=Math.max(O[0].length,O[1].length),ge=O.length==3?Math.abs(l(O[2])):1,fe=m;he<re&&(ge*=-1,fe=E);var Ee=O.some(x);j=[];for(var be=re;fe(be,he);be+=ge){var K;if(L)(K=String.fromCharCode(be))==="\\"&&(K="");else if(K=String(be),Ee){var Q=ce-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(f){if(f===null||(d=f,Function.toString.call(d).indexOf("[native code]")===-1))return f;var d;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(f))return s.get(f);s.set(f,x)}function x(){return n(f,arguments,i(this).constructor)}return x.prototype=Object.create(f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,f)},r(l)}function n(l,s,f){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(f,d){return f.__proto__=d,f},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(f){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,f))).name="ObjectPrototypeMutationError",d}return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),d&&o(f,d)}(s,l),s}(r(Error));function u(l,s){for(var f=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("."),f):f(l,w,d,p)})};var g=d.slice(0,p).join(".");throw new Error("Object at wildcard (".concat(g,") is not an array"))}l=f(l,h,d,p)},E=0;E<x;E++){var A=m(E);if(t(A)==="object")return A.v}return l}function c(l,s){return l.length===s+1}e.exports={set:function(l,s,f){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=f,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 c(m,E)&&(d[x]=f),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(f,d){return f[d]})}catch{return l}},has:function(l,s){var f=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(!c(E,A))return x&&x[m];d=f.own?x.hasOwnProperty(m):m in x}),d}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){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===f||!!E&&E[A]===f,m=c(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 f=[],d=0;d<l.length;d++){var x=l[d];x&&x!=="."&&(x===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(x))}return f}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function c(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,f=arguments.length-1;f>=-1&&!s;f--){var d=f>=0?arguments[f]: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),f=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&f&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var f=arguments[s];if(!o(f))throw new TypeError("Arguments to path.join must be strings");f&&(l+=l?"/"+f:f)}return u.normalize(l)},u.relative=function(l,s){function f(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=f(l.split("/")),x=f(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=c(l),f=s[0],d=s[1];return f||d?(d&&(d=d.substr(0,d.length-1)),f+d):"."},u.basename=function(l,s){var f=c(l)[2];return s&&f.substr(-1*s.length)===s&&(f=f.substr(0,f.length-s.length)),f},u.extname=function(l){return c(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=c(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,c,l=[];for(c in typeof a!="string"&&(a="?"),i)if(r.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,c={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in c||(c[l]=s)}return c}},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 c=r.exec(a);if(c){const l=c[1],s=c[2];let f=((u=c[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=c[4]||c[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"&&f===""||m===f||l&&m==="-"+f?x:o:s?f===m||l+f===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+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function f(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 kt<"u"?kt: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=f(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=f(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 ce=(he||"/").split("/").slice(0,-1).concat(re.split("/")),ge=ce.length,fe=ce[ge-1],Ee=!1,be=0;ge--;)ce[ge]==="."?ce.splice(ge,1):ce[ge]===".."?(ce.splice(ge,1),be++):be&&(ge===0&&(Ee=!0),ce.splice(ge,1),be--);return Ee&&ce.unshift(""),fe!=="."&&fe!==".."||ce.push(""),ce.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,c.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]===":"||c.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=f,p.qs=o,e.exports=p},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Uc={};function Fe(e){var t=Uc[e];if(t!==void 0)return t.exports;var r=Uc[e]={id:e,loaded:!1,exports:{}};return Em[e].call(r.exports,r,r.exports,Fe),r.loaded=!0,r.exports}Fe.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Fe.d(t,{a:t}),t},Fe.d=(e,t)=>{for(var r in t)Fe.o(t,r)&&!Fe.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Fe.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fe.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var Et={};Fe.d(Et,{hT:()=>ht,O4:()=>qt,Kd:()=>Im,YK:()=>Pm,UU:()=>jb,Gu:()=>Kc,ky:()=>cf,h4:()=>Zr,ch:()=>zn,hq:()=>lr,i5:()=>ff});var xm=Fe(737),Am=Fe.n(xm);function ps(e){if(!gs(e))throw new Error("Parameter was not an error")}function gs(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class ft extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=function(u){let c,l="";if(u.length===0)c={};else if(gs(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,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 ps(t),t._cause&&gs(t._cause)?t._cause:null}static fullStack(t){ps(t);const r=ft.cause(t);return r?`${t.stack}
42
+ caused by: ${ft.fullStack(r)}`:t.stack??""}static info(t){ps(t);const r={},n=ft.cause(t);return n&&Object.assign(r,ft.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 Tm=Fe(47),Dn=Fe.n(Tm);const jc="__PATH_SEPARATOR_POSIX__",kc="__PATH_SEPARATOR_WINDOWS__";function Ve(e){try{const t=e.replace(/\//g,jc).replace(/\\\\/g,kc);return encodeURIComponent(t).split(kc).join("\\\\").split(jc).join("/")}catch(t){throw new ft(t,"Failed encoding path")}}function Mc(e){return e.startsWith("/")?e:"/"+e}function zr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function Sm(e){let t=new(Am())(e).pathname;return t.length<=0&&(t="/"),zr(t)}function He(){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 c=o.join("/"),l=(c=c.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 _m=Fe(542),Xr=Fe.n(_m);const Om="abcdef0123456789";function Dc(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||Xr()(`${x}:${m}:${E}`);return d&&d.toLowerCase()==="md5-sess"?Xr()(`${g}:${A}:${p}`):g}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=Xr()(`${o}:${n}`),l=i?Xr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):Xr()(`${u}:${t.nonce}:${c}`),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},f=[];for(const d in s)s[d]&&(d==="qop"||d==="nc"||d==="algorithm"?f.push(`${d}=${s[d]}`):f.push(`${d}="${s[d]}"`));return`Digest ${f.join(", ")}`}function $c(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Nm=Fe(101),qc=Fe.n(Nm);function Vc(e){return qc().decode(e)}function Hc(e,t){var r;return`Basic ${r=`${e}:${t}`,qc().encode(r)}`}const $n=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Rm=$n.fetch.bind($n),Im=$n.Request,Pm=$n.Response;let ht=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),qt=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 Wc(e,t,r,n,o){switch(e.authType){case ht.Auto:t&&r&&(e.headers.Authorization=Hc(t,r));break;case ht.Digest:e.digest=function(a,u,c){return{username:a,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,r,o);break;case ht.None:break;case ht.Password:e.headers.Authorization=Hc(t,r);break;case ht.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new ft({info:{code:qt.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Fe(345),Fe(800);const Gc="@@HOTPATCHER",Fm=()=>{};function ys(e){return{original:e,methods:[e],final:!1}}class Cm{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Gc}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__!==Gc)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)||Fm;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),c=0;c<a;c++)u[c]=arguments[c];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]=ys(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(ys(r),{original:i})}else this.configuration.registry[t]=ys(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 ms=null;function Kc(){return ms||(ms=new Cm),ms}function qn(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 zc(){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?Xc(n,i):qn(i)}return n}function Xc(e,t){const r=qn(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]?Xc(r[n],t[n]):qn(t[n]):r[n]=t[n]:r[n]=t[n]}),r}function Bm(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function bs(){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),{})}Fe(805);const Lm=typeof ArrayBuffer=="function",{toString:Um}=Object.prototype;function Yc(e){return Lm&&(e instanceof ArrayBuffer||Um.call(e)==="[object ArrayBuffer]")}function Jc(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ws(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 vs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Zc=ws(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=zc(e,{headers:{Authorization:Dc(e,t)}})),vs(Vn(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(!$c(a))return!1;const c=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=c.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}${Om[Math.floor(16*Math.random())]}`;return l}(),!0}(r,t),function(){if(t.hasDigestAuth)return vs(Vn(e=zc(e,{headers:{Authorization:Dc(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})}),jm=ws(function(e,t){return vs(Vn(e),function(r){return r.ok?(t.authType=ht.Password,r):r.status==401&&$c(r)?(t.authType=ht.Digest,Wc(t,t.username,t.password,void 0,void 0),e._digest=t.digest,Zc(e)):r})}),Ze=ws(function(e,t){return t.authType===ht.Auto?jm(e,t):e._digest?Zc(e):Vn(e)});function Qe(e,t,r){const n=qn(e);return n.headers=bs(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 Vn(e){const t=Kc();return t.patchInline("request",r=>t.patchInline("fetch",Rm,r.url,function(n){let o={};const i={method:n.method};if(n.headers&&(o=bs(o,n.headers)),n.data!==void 0){const[a,u]=function(c){if(typeof c=="string")return[c,{}];if(Jc(c))return[c,{}];if(Yc(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)}(n.data);i.body=a,o=bs(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i}(r)),e)}var km=Fe(285);const Hn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Mm={"[: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]},Yr=e=>e.replace(/[[\]\\-]/g,"\\$&"),Qc=e=>e.join(""),Dm=(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,c=!1,l=!1,s=r,f="";e:for(;i<e.length;){const E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!c){s=i+1;break}if(a=!0,E!=="\\"||c){if(E==="["&&!c){for(const[A,[p,h,g]]of Object.entries(Mm))if(e.startsWith(A,i)){if(f)return["$.",!1,e.length-r,!0];i+=A.length,g?o.push(p):n.push(p),u=u||h;continue e}}c=!1,f?(E>f?n.push(Yr(f)+"-"+Yr(E)):E===f&&n.push(Yr(E)),f="",i++):e.startsWith("-]",i+1)?(n.push(Yr(E+"-")),i+=2):e.startsWith("-",i+1)?(f=E,i+=2):(n.push(Yr(E)),i++)}else c=!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?"^":"")+Qc(n)+"]",m="["+(l?"":"^")+Qc(o)+"]";return[n.length&&o.length?"("+x+"|"+m+")":n.length?x:m,u,s-r,!0]},Jr=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")},$m=new Set(["!","?","+","*","@"]),ef=e=>$m.has(e),Es="(?!\\.)",qm=new Set(["[","."]),Vm=new Set(["..","."]),Hm=new Set("().*{}+?[]^$\\!"),xs="[^/]",tf=xs+"*?",rf=xs+"+?",gt=class gt{constructor(t,r){Ne(this,dr);ye(this,"type");Ne(this,tt);Ne(this,nt);Ne(this,Wt,!1);Ne(this,ke,[]);Ne(this,Ye);Ne(this,Xt);Ne(this,fr);Ne(this,Yt,!1);Ne(this,Bt);Ne(this,hr);Ne(this,sn,!1);let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&ve(this,nt,!0),ve(this,Ye,r),ve(this,tt,J(this,Ye)?J(J(this,Ye),tt):this),ve(this,Bt,J(this,tt)===this?n:J(J(this,tt),Bt)),ve(this,fr,J(this,tt)===this?[]:J(J(this,tt),fr)),t!=="!"||J(J(this,tt),Yt)||J(this,fr).push(this),ve(this,Xt,J(this,Ye)?J(J(this,Ye),ke).length:0)}get hasMagic(){if(J(this,nt)!==void 0)return J(this,nt);for(const t of J(this,ke))if(typeof t!="string"&&(t.type||t.hasMagic))return ve(this,nt,!0);return J(this,nt)}toString(){return J(this,hr)!==void 0?J(this,hr):this.type?ve(this,hr,this.type+"("+J(this,ke).map(t=>String(t)).join("|")+")"):ve(this,hr,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,Ye)===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,tt)||J(J(this,tt),Yt)&&((r=J(this,Ye))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(J(this,tt)===this)return!0;if(!((r=J(this,Ye))!=null&&r.isStart()))return!1;if(J(this,Xt)===0)return!0;const t=J(this,Ye);for(let n=0;n<J(this,Xt);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,tt)===this||((r=J(this,Ye))==null?void 0:r.type)==="!")return!0;if(!((n=J(this,Ye))!=null&&n.isEnd()))return!1;if(!this.type)return(o=J(this,Ye))==null?void 0:o.isEnd();const t=J(this,Ye)?J(J(this,Ye),ke).length:0;return J(this,Xt)===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 $e(o=gt,Jt,ri).call(o,t,n,0,r),n}toMMPattern(){if(this!==J(this,tt))return J(this,tt).toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||J(this,nt)||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 c;const r=t??!!J(this,Bt).dot;if(J(this,tt)===this&&$e(this,dr,zf).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"?$e(h=gt,Jt,Xf).call(h,x,J(this,nt),l):x.toRegExpSource(t);return ve(this,nt,J(this,nt)||A),ve(this,Wt,J(this,Wt)||p),m}).join("");let f="";if(this.isStart()&&typeof J(this,ke)[0]=="string"&&(J(this,ke).length!==1||!Vm.has(J(this,ke)[0]))){const x=qm,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));f=m?"(?!(?:^|/)\\.\\.?(?:$|/))":E?Es:""}let d="";return this.isEnd()&&J(J(this,tt),Yt)&&((c=J(this,Ye))==null?void 0:c.type)==="!"&&(d="(?:$|\\/)"),[f+s+d,Jr(s),ve(this,nt,!!J(this,nt)),J(this,Wt)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=$e(this,dr,ea).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,nt,void 0),[l,Jr(this.toString()),!1,!1]}let a=!n||t||r?"":$e(this,dr,ea).call(this,!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&J(this,sn)?(this.isStart()&&!r?Es:"")+rf:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":Es)+tf+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,Jr(i),ve(this,nt,!!J(this,nt)),J(this,Wt)]}};tt=new WeakMap,nt=new WeakMap,Wt=new WeakMap,ke=new WeakMap,Ye=new WeakMap,Xt=new WeakMap,fr=new WeakMap,Yt=new WeakMap,Bt=new WeakMap,hr=new WeakMap,sn=new WeakMap,dr=new WeakSet,zf=function(){if(this!==J(this,tt))throw new Error("should only call on root");if(J(this,Yt))return this;let t;for(this.toString(),ve(this,Yt,!0);t=J(this,fr).pop();){if(t.type!=="!")continue;let r=t,n=J(r,Ye);for(;n;){for(let o=J(r,Xt)+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,Ye)}}return this},Jt=new WeakSet,ri=function(t,r,n,o){var x,m;let i=!1,a=!1,u=-1,c=!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!=="!"||(c=!0):p!=="]"||E===u+2&&c||(a=!1),A+=p;else if(p!=="[")if(o.noext||!ef(p)||t.charAt(E)!=="(")A+=p;else{r.push(A),A="";const h=new gt(p,r);E=$e(x=gt,Jt,ri).call(x,t,h,E,o),r.push(h)}else a=!0,u=E,c=!1,A+=p}return r.push(A),E}let l=n+1,s=new gt(null,r);const f=[];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!=="!"||(c=!0):E!=="]"||l===u+2&&c||(a=!1),d+=E;else if(E!=="[")if(ef(E)&&t.charAt(l)==="("){s.push(d),d="";const A=new gt(E,s);s.push(A),l=$e(m=gt,Jt,ri).call(m,t,A,l,o)}else if(E!=="|"){if(E===")")return d===""&&J(r,ke).length===0&&ve(r,sn,!0),s.push(d),d="",r.push(...f,s),l;d+=E}else s.push(d),d="",f.push(s),s=new gt(null,r);else a=!0,u=l,c=!1,d+=E}return r.type=null,ve(r,nt,void 0),ve(r,ke,[t.substring(n-1)]),l},ea=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,Wt,J(this,Wt)||a),n}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},Xf=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 c=t.charAt(u);if(o)o=!1,i+=(Hm.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,d]=Dm(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||d;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=xs,r=!0):(i+=n&&t==="*"?rf:tf,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,Jr(t),!!r,a]},Ne(gt,Jt);let Wn=gt;const lt=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Hn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new Gn(t,r).match(e)},Wm=/^\*+([^+@!?\*\[\(]*)$/,Gm=e=>t=>!t.startsWith(".")&&t.endsWith(e),Km=e=>t=>t.endsWith(e),zm=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Xm=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ym=/^\*+\.\*+$/,Jm=e=>!e.startsWith(".")&&e.includes("."),Zm=e=>e!=="."&&e!==".."&&e.includes("."),Qm=/^\.\*+$/,eb=e=>e!=="."&&e!==".."&&e.startsWith("."),tb=/^\*+$/,rb=e=>e.length!==0&&!e.startsWith("."),nb=e=>e.length!==0&&e!=="."&&e!=="..",ib=/^\?+([^+@!?\*\[\(]*)?$/,ob=e=>{let[t,r=""]=e;const n=nf([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},sb=e=>{let[t,r=""]=e;const n=of([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},ab=e=>{let[t,r=""]=e;const n=of([t]);return r?o=>n(o)&&o.endsWith(r):n},ub=e=>{let[t,r=""]=e;const n=nf([t]);return r?o=>n(o)&&o.endsWith(r):n},nf=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},of=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},sf=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";lt.sep=sf==="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 af=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Hn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:km(e)};lt.braceExpand=af,lt.makeRe=function(e){return new Gn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},lt.match=function(e,t){const r=new Gn(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 uf=/[?*]|[+@!]\(.*?\)|\[|\]/;class Gn{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]:{};Hn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||sf,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 c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&uf.test(i[2])||uf.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)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(c=>this.parse(c))});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 c=n[o+2],l=n[o+3];if(u!==".."||!c||c==="."||c===".."||!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,c=t.length,l=r.length;a<c&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],f=t[a];if(this.debug(r,s,f),s===!1)return!1;if(s===xt){this.debug("GLOBSTAR",[r,s,f]);var d=a,x=u+1;if(x===l){for(this.debug("** at the end");a<c;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;d<c;){var m=t[d];if(this.debug(`
43
43
  globstar while`,t,d,r,x,m),this.matchOne(t.slice(d),r.slice(x),n))return this.debug("globstar found match!",d,c,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!==c))}let E;if(typeof s=="string"?(E=f===s,this.debug("string match",s,f,E)):(E=s.test(f),this.debug("pattern match",s,f,E)),!E)return!1}if(a===c&&u===l)return!0;if(a===c)return n;if(u===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return af(this.pattern,this.options)}parse(t){Hn(t);const r=this.options;if(t==="**")return xt;if(t==="")return"";let n,o=null;(n=t.match(tb))?o=r.dot?nb:rb:(n=t.match(Wm))?o=(r.nocase?r.dot?Xm:zm:r.dot?Km:Gm)(n[1]):(n=t.match(ib))?o=(r.nocase?r.dot?sb:ob:r.dot?ab:ub)(n):(n=t.match(Ym))?o=r.dot?Zm:Jm:(n=t.match(Qm))&&(o=eb);const i=Wn.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(c=>{const l=c.map(s=>{if(s instanceof RegExp)for(const f of s.flags.split(""))o.add(f);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===xt?xt:s._src});return l.forEach((s,f)=>{const d=l[f+1],x=l[f-1];s===xt&&x!==xt&&(x===void 0?d!==void 0&&d!==xt?l[f+1]="(?:\\/|"+n+"\\/)?"+d:l[f]=n:d===void 0?l[f-1]=x+"(?:\\/|"+n+")?":d!==xt&&(l[f-1]=x+"(?:\\/|\\/"+n+"\\/)"+d,l[f+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 c=i[u];let l=o;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return lt.defaults(t).Minimatch}}function xs(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 et(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw xs(t);return t}function lr(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Bm(e.headers):{},status:e.status,statusText:e.statusText}:t}lt.AST=Wn,lt.Minimatch=Gn,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=Jr;const lb=(lf=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:He(e.remoteURL,Ve(t)),method:"COPY",headers:{Destination:He(e.remoteURL,Ve(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){et(e,u)},(i=Ze(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(lf.apply(this,e))}catch(r){return Promise.reject(r)}});var lf,As=Fe(635),cb=Fe(829),Vt=Fe.n(cb),Nr=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Nr||{});function Kn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nr.Original;const n=Vt().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 Vt().set(o,"multistatus.response",Kn(o,"multistatus.response",Nr.Array)),Vt().set(o,"multistatus.response",Vt().get(o,"multistatus.response").map(i=>function(a){const u=Object.assign({},a);return u.status?Vt().set(u,"status",Kn(u,"status",Nr.Object)):(Vt().set(u,"propstat",Kn(u,"propstat",Nr.Object)),Vt().set(u,"propstat.prop",Kn(u,"propstat.prop",Nr.Object))),u}(i))),o}(new As.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 zn(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,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Dn().basename(t),lastmod:n,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="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 cf(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,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${c}`);throw s.status=l,s}return zn(o,zr(t),r)}function ff(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Ts(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Ss=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=Qe({url:He(e.remoteURL,Ve(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Ts(Ze(o,e),function(i){return et(e,i),Ts(i.text(),function(a){return Ts(Zr(a),function(u){const c=cf(u,t,n);return lr(i,c,n)})})})});function hf(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const fb=df(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=Dn().dirname(a);while(a&&a!=="/");return u}(zr(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[gf]=="function"){let E=function(A){try{for(;!(c=f.next()).done;)if((A=a(c.value))&&A.then){if(!yf(A))return void A.then(E,s||(s=dt.bind(null,l=new Rr,2)));A=A.v}l?dt(l,1,A):l=A}catch(p){dt(l||(l=new Rr),2,p)}};var c,l,s,f=i[gf]();if(E(),f.return){var d=function(A){try{c.done||f.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(!yf(T))return void T.then(w,g||(g=dt.bind(null,h=new Rr,2)));T=T.v}h?dt(h,1,T):h=T}catch(P){dt(h||(h=new Rr),2,P)}}(),h}(x,function(E){return a(x[E])},u)}(n,function(i){return a=function(){return function(c,l){try{var s=hf(Ss(e,i),function(f){if(f.type!=="directory")throw new Error(`Path includes a file: ${t}`)})}catch(f){return l(f)}return s&&s.then?s.then(void 0,l):s}(0,function(c){const l=c;return function(){if(l.status===404)return o=!0,pf(_s(e,i,{...r,recursive:!1}));throw c}()})},(u=function(){if(o)return pf(_s(e,i,{...r,recursive:!1}))}())&&u.then?u.then(a):a();var a,u},function(){return!1})});function df(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 hb(){}function pf(e,t){return e&&e.then?e.then(hb):Promise.resolve()}const gf=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function dt(e,t,r){if(!e.s){if(r instanceof Rr){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 Rr=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 yf(e){return e instanceof Rr&&1&e.s}const _s=df(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return fb(e,t,r);const n=Qe({url:He(e.remoteURL,(o=Ve(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return hf(Ze(n,e),function(i){et(e,i)})});var db=Fe(388),mf=Fe.n(db);const 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]:{};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=Qe({url:He(e.remoteURL,Ve(t)),method:"GET",headers:n},e,r);return a=function(u){if(et(e,u),n.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return r.callback&&setTimeout(()=>{r.callback(u)},0),u.body},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),gb=()=>{},yb=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=He(e.remoteURL,Ve(t)));const n=Qe(r,e,{});return i=function(a){return et(e,a),a},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),mb=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=Qe({url:He(e.remoteURL,Ve(t)),method:"DELETE"},e,r);return i=function(a){et(e,a)},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),bb=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=Ss(e,t,r),u=function(){return!0},c?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,c;return i&&i.then?i.then(void 0,o):i}(0,function(n){if(n.status===404)return!1;throw n})});function Os(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const wb=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=Qe({url:He(e.remoteURL,Ve(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Os(Ze(n,e),function(o){return et(e,o),Os(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Os(Zr(i),function(a){const u=Mc(t);let c=function(l,s,f){let d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],x=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Dn().join(s,"/"),{multistatus:{response:E}}=l,A=E.map(p=>{const h=function(y){try{return y.replace(/^https?:\/\/[^\/]+/,"")}catch(w){throw new ft(w,"Failed normalising HREF")}}(p.href),{propstat:{prop:g}}=p;return zn(g,m==="/"?decodeURIComponent(zr(h)):zr(Dn().relative(decodeURIComponent(m),decodeURIComponent(h))),d)});return x?A:A.filter(p=>p.basename&&(p.type==="file"||p.filename!==f.replace(/\/$/,"")))}(a,Mc(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=function(l,s){return l.filter(f=>lt(f.filename,s,{matchBase:!0}))}(c,r.glob)),lr(o,c,r.details)})})})});function Ns(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 vb=Ns(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:He(e.remoteURL,Ve(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[Ab]},e,r);return Xn(Ze(n,e),function(o){return et(e,o),Xn(o.text(),function(i){return lr(o,i,r.details)})})});function Xn(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Eb=Ns(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:He(e.remoteURL,Ve(t)),method:"GET"},e,r);return Xn(Ze(n,e),function(o){let i;return et(e,o),function(a,u){var c=a();return c&&c.then?c.then(u):u()}(function(){return Xn(o.arrayBuffer(),function(a){i=a})},function(){return lr(o,i,r.details)})})}),xb=Ns(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 ft({info:{code:qt.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?vb(e,t,r):Eb(e,t,r)}),Ab=e=>e;function Tb(e){return new As.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(bf({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function bf(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}`]=bf(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function Rs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function wf(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 Sb=wf(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:He(e.remoteURL,Ve(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return Rs(Ze(o,e),function(i){if(et(e,i),i.status!==204&&i.status!==200)throw xs(i)})}),_b=wf(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=Ob}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=Qe({url:He(e.remoteURL,Ve(t)),method:"LOCK",headers:i,data:Tb(e.contactHref)},e,r);return Rs(Ze(a,e),function(u){return et(e,u),Rs(u.text(),function(c){const l=(d=c,new As.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(d)),s=Vt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Vt().get(l,"prop.lockdiscovery.activelock.timeout");var d;if(!s)throw xs(u,"No lock token received: ");return{token:s,serverTimeout:f}})})}),Ob="Infinite, Second-4100000000";function Is(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=Qe({url:He(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Is(Ze(n,e),function(o){return et(e,o),Is(o.text(),function(i){return Is(Zr(i),function(a){const u=function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":f}}}=l;return s!==void 0&&f!==void 0?{used:parseInt(String(s),10),available:ff(f)}:null}catch{}return null}(a);return lr(o,u,t.details)})})})});function Ps(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Rb=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=Qe({url:He(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 Ps(Ze(o,e),function(i){return et(e,i),Ps(i.text(),function(a){return Ps(Zr(a),function(u){const c=function(l,s,f){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(zn(x.propstat.prop,m,f))}),d}(u,t,n);return lr(i,c,n)})})})}),Ib=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=Qe({url:He(e.remoteURL,Ve(t)),method:"MOVE",headers:{Destination:He(e.remoteURL,Ve(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){et(e,u)},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});var Pb=Fe(172);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,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(Yc(s))return s.byteLength;if(Jc(s))return s.length;if(typeof s=="string")return(0,Pb.d)(s);throw new ft({info:{code:qt.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),i||(a["If-None-Match"]="*");const u=Qe({url:He(e.remoteURL,Ve(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{et(e,s)}catch(f){const d=f;if(d.status!==412||i)throw d;return!1}return!0},(c=Ze(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l}),vf=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=Qe({url:He(e.remoteURL,Ve(t)),method:"OPTIONS"},e,r);return i=function(a){try{et(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map(u=>u.trim()),server:a.headers.get("Server")??""}},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Qr(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Cb=Fs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ft({info:{code:qt.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=Qe({url:He(e.remoteURL,Ve(t)),method:"PUT",headers:a,data:o},e,i);return Qr(Ze(u,e),function(c){et(e,c)})});function Ef(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Bb=Fs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ft({info:{code:qt.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=Qe({url:He(e.remoteURL,Ve(t)),method:"PATCH",headers:a,data:o},e,i);return Qr(Ze(u,e),function(c){et(e,c)})});function Fs(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 Lb=Fs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Qr(vf(e,t,i),function(a){let u=!1;return Ef(function(){if(a.compliance.includes("sabredav-partialupdate"))return Qr(Bb(e,t,r,n,o,i),function(c){return u=!0,c})},function(c){let l=!1;return u?c:Ef(function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Qr(Cb(e,t,r,n,o,i),function(s){return l=!0,s})},function(s){if(l)return s;throw new ft({info:{code:qt.NotSupported}},"Not supported")})})})}),Ub="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function jb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Ub,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:d}=t;let x=r;x||(x=f||l?ht.Password:ht.None);const m={authType:x,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:Sm(e),remoteURL:e,token:s,username:f,withCredentials:d};return Wc(m,f,l,s,i),{copyFile:(E,A,p)=>lb(m,E,A,p),createDirectory:(E,A)=>_s(m,E,A),createReadStream:(E,A)=>function(p,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const y=new(mf()).PassThrough;return pb(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]:gb;const T=new(mf()).PassThrough,P={};y.overwrite===!1&&(P["If-None-Match"]="*");const I=Qe({url:He(h.remoteURL,Ve(g)),method:"PUT",headers:P,data:T,maxRedirects:0},h,y);return Ze(I,h).then(O=>et(h,O)).then(O=>{setTimeout(()=>{w(O)},0)}).catch(O=>{T.emit("error",O)}),T}(m,E,A,p),customRequest:(E,A)=>yb(m,E,A),deleteFile:(E,A)=>mb(m,E,A),exists:(E,A)=>bb(m,E,A),getDirectoryContents:(E,A)=>wb(m,E,A),getFileContents:(E,A)=>xb(m,E,A),getFileDownloadLink:E=>function(A,p){let h=He(A.remoteURL,Ve(p));const g=/^https:/i.test(h)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=Vc(A.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ft({info:{code:qt.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return h}(m,E),getFileUploadLink:E=>function(A,p){let h=`${He(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=Vc(A.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ft({info:{code:qt.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return h}(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>Nb(m,E),lock:(E,A)=>_b(m,E,A),moveFile:(E,A,p)=>Ib(m,E,A,p),putFileContents:(E,A,p)=>Fb(m,E,A,p),partialUpdateFileContents:(E,A,p,h,g)=>Lb(m,E,A,p,h,g),getDAVCompliance:E=>vf(m,E),search:(E,A)=>Rb(m,E,A),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,A)=>Ss(m,E,A),unlock:(E,A,p)=>Sb(m,E,A,p)}}Et.hT,Et.O4,Et.Kd,Et.YK;var kb=Et.UU;Et.Gu,Et.ky;var Mb=Et.h4,Db=Et.ch;Et.hq,Et.i5;const ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).slice(1));function $b(e,t=0){return(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase()}let Cs;const qb=new Uint8Array(16);function Vb(){if(!Cs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cs=crypto.getRandomValues.bind(crypto)}return Cs(qb)}var xf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Hb(e,t,r){var o;if(xf.randomUUID&&!e)return xf.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??Vb();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,$b(n)}var Bs={},Ls={},Af;function Us(){return Af||(Af=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,c){const l=[];let s=c.exec(u);for(;s;){const f=[];f.startIndex=c.lastIndex-s[0].length;const d=s.length;for(let x=0;x<d;x++)f.push(s[x]);l.push(f),s=c.exec(u)}return l},a=function(u){const c=o.exec(u);return!(c===null||typeof c>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,l){if(c){const s=Object.keys(c),f=s.length;for(let d=0;d<f;d++)l==="strict"?u[s[d]]=[c[s[d]]]:u[s[d]]=c[s[d]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n}(Ls)),Ls}var Tf;function Sf(){if(Tf)return Bs;Tf=1;const e=Us(),t={allowBooleanAttributes:!1,unpairedTags:[]};Bs.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]!==`
44
+ >>> no match, partial?`,t,d,r,x),d!==c))}let E;if(typeof s=="string"?(E=f===s,this.debug("string match",s,f,E)):(E=s.test(f),this.debug("pattern match",s,f,E)),!E)return!1}if(a===c&&u===l)return!0;if(a===c)return n;if(u===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return af(this.pattern,this.options)}parse(t){Hn(t);const r=this.options;if(t==="**")return xt;if(t==="")return"";let n,o=null;(n=t.match(tb))?o=r.dot?nb:rb:(n=t.match(Wm))?o=(r.nocase?r.dot?Xm:zm:r.dot?Km:Gm)(n[1]):(n=t.match(ib))?o=(r.nocase?r.dot?sb:ob:r.dot?ab:ub)(n):(n=t.match(Ym))?o=r.dot?Zm:Jm:(n=t.match(Qm))&&(o=eb);const i=Wn.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(c=>{const l=c.map(s=>{if(s instanceof RegExp)for(const f of s.flags.split(""))o.add(f);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===xt?xt:s._src});return l.forEach((s,f)=>{const d=l[f+1],x=l[f-1];s===xt&&x!==xt&&(x===void 0?d!==void 0&&d!==xt?l[f+1]="(?:\\/|"+n+"\\/)?"+d:l[f]=n:d===void 0?l[f-1]=x+"(?:\\/|"+n+")?":d!==xt&&(l[f-1]=x+"(?:\\/|\\/"+n+"\\/)"+d,l[f+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 c=i[u];let l=o;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return lt.defaults(t).Minimatch}}function As(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 et(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw As(t);return t}function lr(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Bm(e.headers):{},status:e.status,statusText:e.statusText}:t}lt.AST=Wn,lt.Minimatch=Gn,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=Jr;const lb=(lf=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:He(e.remoteURL,Ve(t)),method:"COPY",headers:{Destination:He(e.remoteURL,Ve(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){et(e,u)},(i=Ze(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(lf.apply(this,e))}catch(r){return Promise.reject(r)}});var lf,Ts=Fe(635),cb=Fe(829),Vt=Fe.n(cb),Nr=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Nr||{});function Kn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nr.Original;const n=Vt().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 Vt().set(o,"multistatus.response",Kn(o,"multistatus.response",Nr.Array)),Vt().set(o,"multistatus.response",Vt().get(o,"multistatus.response").map(i=>function(a){const u=Object.assign({},a);return u.status?Vt().set(u,"status",Kn(u,"status",Nr.Object)):(Vt().set(u,"propstat",Kn(u,"propstat",Nr.Object)),Vt().set(u,"propstat.prop",Kn(u,"propstat.prop",Nr.Object))),u}(i))),o}(new Ts.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 zn(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,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Dn().basename(t),lastmod:n,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="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 cf(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,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${c}`);throw s.status=l,s}return zn(o,zr(t),r)}function ff(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Ss(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _s=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=Qe({url:He(e.remoteURL,Ve(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Ss(Ze(o,e),function(i){return et(e,i),Ss(i.text(),function(a){return Ss(Zr(a),function(u){const c=cf(u,t,n);return lr(i,c,n)})})})});function hf(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const fb=df(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=Dn().dirname(a);while(a&&a!=="/");return u}(zr(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[gf]=="function"){let E=function(A){try{for(;!(c=f.next()).done;)if((A=a(c.value))&&A.then){if(!yf(A))return void A.then(E,s||(s=dt.bind(null,l=new Rr,2)));A=A.v}l?dt(l,1,A):l=A}catch(p){dt(l||(l=new Rr),2,p)}};var c,l,s,f=i[gf]();if(E(),f.return){var d=function(A){try{c.done||f.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(!yf(T))return void T.then(w,g||(g=dt.bind(null,h=new Rr,2)));T=T.v}h?dt(h,1,T):h=T}catch(P){dt(h||(h=new Rr),2,P)}}(),h}(x,function(E){return a(x[E])},u)}(n,function(i){return a=function(){return function(c,l){try{var s=hf(_s(e,i),function(f){if(f.type!=="directory")throw new Error(`Path includes a file: ${t}`)})}catch(f){return l(f)}return s&&s.then?s.then(void 0,l):s}(0,function(c){const l=c;return function(){if(l.status===404)return o=!0,pf(Os(e,i,{...r,recursive:!1}));throw c}()})},(u=function(){if(o)return pf(Os(e,i,{...r,recursive:!1}))}())&&u.then?u.then(a):a();var a,u},function(){return!1})});function df(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 hb(){}function pf(e,t){return e&&e.then?e.then(hb):Promise.resolve()}const gf=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function dt(e,t,r){if(!e.s){if(r instanceof Rr){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 Rr=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 yf(e){return e instanceof Rr&&1&e.s}const Os=df(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return fb(e,t,r);const n=Qe({url:He(e.remoteURL,(o=Ve(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return hf(Ze(n,e),function(i){et(e,i)})});var db=Fe(388),mf=Fe.n(db);const 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]:{};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=Qe({url:He(e.remoteURL,Ve(t)),method:"GET",headers:n},e,r);return a=function(u){if(et(e,u),n.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return r.callback&&setTimeout(()=>{r.callback(u)},0),u.body},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),gb=()=>{},yb=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=He(e.remoteURL,Ve(t)));const n=Qe(r,e,{});return i=function(a){return et(e,a),a},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),mb=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=Qe({url:He(e.remoteURL,Ve(t)),method:"DELETE"},e,r);return i=function(a){et(e,a)},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),bb=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=_s(e,t,r),u=function(){return!0},c?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,c;return i&&i.then?i.then(void 0,o):i}(0,function(n){if(n.status===404)return!1;throw n})});function Ns(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const wb=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=Qe({url:He(e.remoteURL,Ve(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Ns(Ze(n,e),function(o){return et(e,o),Ns(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Ns(Zr(i),function(a){const u=Mc(t);let c=function(l,s,f){let d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],x=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Dn().join(s,"/"),{multistatus:{response:E}}=l,A=E.map(p=>{const h=function(y){try{return y.replace(/^https?:\/\/[^\/]+/,"")}catch(w){throw new ft(w,"Failed normalising HREF")}}(p.href),{propstat:{prop:g}}=p;return zn(g,m==="/"?decodeURIComponent(zr(h)):zr(Dn().relative(decodeURIComponent(m),decodeURIComponent(h))),d)});return x?A:A.filter(p=>p.basename&&(p.type==="file"||p.filename!==f.replace(/\/$/,"")))}(a,Mc(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=function(l,s){return l.filter(f=>lt(f.filename,s,{matchBase:!0}))}(c,r.glob)),lr(o,c,r.details)})})})});function Rs(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 vb=Rs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:He(e.remoteURL,Ve(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[Ab]},e,r);return Xn(Ze(n,e),function(o){return et(e,o),Xn(o.text(),function(i){return lr(o,i,r.details)})})});function Xn(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Eb=Rs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:He(e.remoteURL,Ve(t)),method:"GET"},e,r);return Xn(Ze(n,e),function(o){let i;return et(e,o),function(a,u){var c=a();return c&&c.then?c.then(u):u()}(function(){return Xn(o.arrayBuffer(),function(a){i=a})},function(){return lr(o,i,r.details)})})}),xb=Rs(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 ft({info:{code:qt.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?vb(e,t,r):Eb(e,t,r)}),Ab=e=>e;function Tb(e){return new Ts.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(bf({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function bf(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}`]=bf(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function Is(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function wf(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 Sb=wf(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:He(e.remoteURL,Ve(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return Is(Ze(o,e),function(i){if(et(e,i),i.status!==204&&i.status!==200)throw As(i)})}),_b=wf(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=Ob}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=Qe({url:He(e.remoteURL,Ve(t)),method:"LOCK",headers:i,data:Tb(e.contactHref)},e,r);return Is(Ze(a,e),function(u){return et(e,u),Is(u.text(),function(c){const l=(d=c,new Ts.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(d)),s=Vt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Vt().get(l,"prop.lockdiscovery.activelock.timeout");var d;if(!s)throw As(u,"No lock token received: ");return{token:s,serverTimeout:f}})})}),Ob="Infinite, Second-4100000000";function Ps(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=Qe({url:He(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Ps(Ze(n,e),function(o){return et(e,o),Ps(o.text(),function(i){return Ps(Zr(i),function(a){const u=function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":f}}}=l;return s!==void 0&&f!==void 0?{used:parseInt(String(s),10),available:ff(f)}:null}catch{}return null}(a);return lr(o,u,t.details)})})})});function Fs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Rb=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=Qe({url:He(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 Fs(Ze(o,e),function(i){return et(e,i),Fs(i.text(),function(a){return Fs(Zr(a),function(u){const c=function(l,s,f){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(zn(x.propstat.prop,m,f))}),d}(u,t,n);return lr(i,c,n)})})})}),Ib=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=Qe({url:He(e.remoteURL,Ve(t)),method:"MOVE",headers:{Destination:He(e.remoteURL,Ve(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){et(e,u)},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});var Pb=Fe(172);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,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(Yc(s))return s.byteLength;if(Jc(s))return s.length;if(typeof s=="string")return(0,Pb.d)(s);throw new ft({info:{code:qt.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),i||(a["If-None-Match"]="*");const u=Qe({url:He(e.remoteURL,Ve(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{et(e,s)}catch(f){const d=f;if(d.status!==412||i)throw d;return!1}return!0},(c=Ze(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l}),vf=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=Qe({url:He(e.remoteURL,Ve(t)),method:"OPTIONS"},e,r);return i=function(a){try{et(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map(u=>u.trim()),server:a.headers.get("Server")??""}},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Qr(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Cb=Cs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ft({info:{code:qt.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=Qe({url:He(e.remoteURL,Ve(t)),method:"PUT",headers:a,data:o},e,i);return Qr(Ze(u,e),function(c){et(e,c)})});function Ef(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Bb=Cs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ft({info:{code:qt.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=Qe({url:He(e.remoteURL,Ve(t)),method:"PATCH",headers:a,data:o},e,i);return Qr(Ze(u,e),function(c){et(e,c)})});function Cs(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 Lb=Cs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Qr(vf(e,t,i),function(a){let u=!1;return Ef(function(){if(a.compliance.includes("sabredav-partialupdate"))return Qr(Bb(e,t,r,n,o,i),function(c){return u=!0,c})},function(c){let l=!1;return u?c:Ef(function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Qr(Cb(e,t,r,n,o,i),function(s){return l=!0,s})},function(s){if(l)return s;throw new ft({info:{code:qt.NotSupported}},"Not supported")})})})}),Ub="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function jb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Ub,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:d}=t;let x=r;x||(x=f||l?ht.Password:ht.None);const m={authType:x,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:Sm(e),remoteURL:e,token:s,username:f,withCredentials:d};return Wc(m,f,l,s,i),{copyFile:(E,A,p)=>lb(m,E,A,p),createDirectory:(E,A)=>Os(m,E,A),createReadStream:(E,A)=>function(p,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const y=new(mf()).PassThrough;return pb(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]:gb;const T=new(mf()).PassThrough,P={};y.overwrite===!1&&(P["If-None-Match"]="*");const I=Qe({url:He(h.remoteURL,Ve(g)),method:"PUT",headers:P,data:T,maxRedirects:0},h,y);return Ze(I,h).then(O=>et(h,O)).then(O=>{setTimeout(()=>{w(O)},0)}).catch(O=>{T.emit("error",O)}),T}(m,E,A,p),customRequest:(E,A)=>yb(m,E,A),deleteFile:(E,A)=>mb(m,E,A),exists:(E,A)=>bb(m,E,A),getDirectoryContents:(E,A)=>wb(m,E,A),getFileContents:(E,A)=>xb(m,E,A),getFileDownloadLink:E=>function(A,p){let h=He(A.remoteURL,Ve(p));const g=/^https:/i.test(h)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=Vc(A.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ft({info:{code:qt.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return h}(m,E),getFileUploadLink:E=>function(A,p){let h=`${He(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=Vc(A.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ft({info:{code:qt.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return h}(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>Nb(m,E),lock:(E,A)=>_b(m,E,A),moveFile:(E,A,p)=>Ib(m,E,A,p),putFileContents:(E,A,p)=>Fb(m,E,A,p),partialUpdateFileContents:(E,A,p,h,g)=>Lb(m,E,A,p,h,g),getDAVCompliance:E=>vf(m,E),search:(E,A)=>Rb(m,E,A),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,A)=>_s(m,E,A),unlock:(E,A,p)=>Sb(m,E,A,p)}}Et.hT,Et.O4,Et.Kd,Et.YK;var kb=Et.UU;Et.Gu,Et.ky;var Mb=Et.h4,Db=Et.ch;Et.hq,Et.i5;const ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).slice(1));function $b(e,t=0){return(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase()}let Bs;const qb=new Uint8Array(16);function Vb(){if(!Bs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bs=crypto.getRandomValues.bind(crypto)}return Bs(qb)}var xf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Hb(e,t,r){var o;if(xf.randomUUID&&!e)return xf.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??Vb();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,$b(n)}var Ls={},Us={},Af;function js(){return Af||(Af=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,c){const l=[];let s=c.exec(u);for(;s;){const f=[];f.startIndex=c.lastIndex-s[0].length;const d=s.length;for(let x=0;x<d;x++)f.push(s[x]);l.push(f),s=c.exec(u)}return l},a=function(u){const c=o.exec(u);return!(c===null||typeof c>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,l){if(c){const s=Object.keys(c),f=s.length;for(let d=0;d<f;d++)l==="strict"?u[s[d]]=[c[s[d]]]:u[s[d]]=c[s[d]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n}(Us)),Us}var Tf;function Sf(){if(Tf)return Ls;Tf=1;const e=js(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ls.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
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=f(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 c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(p,h){const g=e.getAllMatches(p,c),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 f(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 Bs}var Yn={},_f;function Wb(){if(_f)return Yn;_f=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 Yn.buildOptions=t,Yn.defaultOptions=e,Yn}var js,Of;function Gb(){if(Of)return js;Of=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 js=e,js}var ks,Nf;function Kb(){if(Nf)return ks;Nf=1;const e=Us();function t(l,s){const f={};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&&(f[c(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:f,i:s}}function r(l,s){let f="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)f+=l[s];if(f=f.trim(),f.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[f,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 c(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return ks=t,ks}var Ms,Rf;function zb(){if(Rf)return Ms;Rf=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 c=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(c))return a;if(u.hex&&e.test(c))return i(c,16);if(c.search(/[eE]/)!==-1){const l=c.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)c=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(c):a}else return a}else{const l=t.exec(c);if(l){const s=l[1],f=l[2];let d=o(l[3]);if(!u.leadingZeros&&f.length>0&&s&&c[2]!==".")return a;if(!u.leadingZeros&&f.length>0&&!s&&c[1]!==".")return a;if(u.leadingZeros&&f===a)return 0;{const x=Number(c),m=""+x;return m.search(/[eE]/)!==-1?u.eNotation?x:a:c.indexOf(".")!==-1?m==="0"&&d===""||m===d||s&&m==="-"+d?x:a:f?d===m||s+d===m?x:a:c===m||c===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 Ms=n,Ms}var Ds,If;function Pf(){if(If)return Ds;If=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 Ds=e,Ds}var $s,Ff;function Xb(){if(Ff)return $s;Ff=1;const e=Us(),t=Gb(),r=Kb(),n=zb(),o=Pf();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=f,this.parseTextData=u,this.resolveNameSpace=c,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 c(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 f=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,ce=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 fe="";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,ce+1);if(!be)throw new Error(`Unexpected end of ${oe}`);j=be.i,fe=be.tagContent}const Ee=new t(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,O,D)),fe&&(fe=this.parseTextData(fe,D,O,!0,he,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),Ee.add(this.options.textNodeName,fe),this.addChild(P,Ee,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 fe=new t(D);D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,fe,O),O=O.substr(0,O.lastIndexOf("."))}else{const fe=new t(D);this.tagsNodeStack.push(P),D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,fe,O),P=fe}I="",j=ce}}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 $s=i,$s}var qs={},Cf;function Yb(){if(Cf)return qs;Cf=1;function e(i,a){return t(i,a)}function t(i,a,u){let c;const l={};for(let s=0;s<i.length;s++){const f=i[s],d=r(f);let x="";if(u===void 0?x=d:x=u+"."+d,d===a.textNodeName)c===void 0?c=f[d]:c+=""+f[d];else{if(d===void 0)continue;if(f[d]){let m=t(f[d],a,x);const E=o(m,a);f[":@"]?n(m,f[":@"],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 c=="string"?c.length>0&&(l[a.textNodeName]=c):c!==void 0&&(l[a.textNodeName]=c),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const c=a[u];if(c!==":@")return c}}function n(i,a,u,c){if(a){const l=Object.keys(a),s=l.length;for(let f=0;f<s;f++){const d=l[f];c.isArray(d,u+"."+d,!0,!0)?i[d]=[a[d]]:i[d]=a[d]}}}function o(i,a){const{textNodeName:u}=a,c=Object.keys(i).length;return!!(c===0||c===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return qs.prettify=e,qs}var Vs,Bf;function Jb(){if(Bf)return Vs;Bf=1;const{buildOptions:e}=Wb(),t=Xb(),{prettify:r}=Yb(),n=Sf();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 c=new t(this.options);c.addExternalEntities(this.externalEntities);const l=c.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 Vs=o,Vs}var Hs,Lf;function Zb(){if(Lf)return Hs;Lf=1;const e=`
48
- `;function t(u,c){let l="";return c.format&&c.indentBy.length>0&&(l=e),r(u,c,"",l)}function r(u,c,l,s){let f="",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===c.textNodeName){let w=m[E];i(A,c)||(w=c.tagValueProcessor(E,w),w=a(w,c)),d&&(f+=s),f+=w,d=!1;continue}else if(E===c.cdataPropName){d&&(f+=s),f+=`<![CDATA[${m[E][0][c.textNodeName]}]]>`,d=!1;continue}else if(E===c.commentPropName){f+=s+`<!--${m[E][0][c.textNodeName]}-->`,d=!0;continue}else if(E[0]==="?"){const w=o(m[":@"],c),T=E==="?xml"?"":s;let P=m[E][0][c.textNodeName];P=P.length!==0?" "+P:"",f+=T+`<${E}${P}${w}?>`,d=!0;continue}let p=s;p!==""&&(p+=c.indentBy);const h=o(m[":@"],c),g=s+`<${E}${h}`,y=r(m[E],c,A,p);c.unpairedTags.indexOf(E)!==-1?c.suppressUnpairedNode?f+=g+">":f+=g+"/>":(!y||y.length===0)&&c.suppressEmptyNode?f+=g+"/>":y&&y.endsWith(">")?f+=g+`>${y}${s}</${E}>`:(f+=g+">",y&&s!==""&&(y.includes("/>")||y.includes("</"))?f+=s+c.indentBy+y+s:f+=y,f+=`</${E}>`),d=!0}return f}function n(u){const c=Object.keys(u);for(let l=0;l<c.length;l++){const s=c[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,c){let l="";if(u&&!c.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let f=c.attributeValueProcessor(s,u[s]);f=a(f,c),f===!0&&c.suppressBooleanAttributes?l+=` ${s.substr(c.attributeNamePrefix.length)}`:l+=` ${s.substr(c.attributeNamePrefix.length)}="${f}"`}return l}function i(u,c){u=u.substr(0,u.length-c.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in c.stopNodes)if(c.stopNodes[s]===u||c.stopNodes[s]==="*."+l)return!0;return!1}function a(u,c){if(u&&u.length>0&&c.processEntities)for(let l=0;l<c.entities.length;l++){const s=c.entities[l];u=u.replace(s.regex,s.val)}return u}return Hs=t,Hs}var Ws,Uf;function Qb(){if(Uf)return Ws;Uf=1;const e=Zb(),t=Pf(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,c){return c},attributeValueProcessor:function(u,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 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=`>
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 c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(p,h){const g=e.getAllMatches(p,c),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 f(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 Ls}var Yn={},_f;function Wb(){if(_f)return Yn;_f=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 Yn.buildOptions=t,Yn.defaultOptions=e,Yn}var ks,Of;function Gb(){if(Of)return ks;Of=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 ks=e,ks}var Ms,Nf;function Kb(){if(Nf)return Ms;Nf=1;const e=js();function t(l,s){const f={};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&&(f[c(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:f,i:s}}function r(l,s){let f="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)f+=l[s];if(f=f.trim(),f.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[f,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 c(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return Ms=t,Ms}var Ds,Rf;function zb(){if(Rf)return Ds;Rf=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;let c=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(c))return a;if(a==="0")return 0;if(u.hex&&e.test(c))return i(c,16);if(c.search(/[eE]/)!==-1){const l=c.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)c=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(c):a}else return a}else{const l=t.exec(c);if(l){const s=l[1],f=l[2];let d=o(l[3]);if(!u.leadingZeros&&f.length>0&&s&&c[2]!==".")return a;if(!u.leadingZeros&&f.length>0&&!s&&c[1]!==".")return a;if(u.leadingZeros&&f===a)return 0;{const x=Number(c),m=""+x;return m.search(/[eE]/)!==-1?u.eNotation?x:a:c.indexOf(".")!==-1?m==="0"&&d===""||m===d||s&&m==="-"+d?x:a:f?d===m||s+d===m?x:a:c===m||c===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 Ds=n,Ds}var $s,If;function Pf(){if(If)return $s;If=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 $s=e,$s}var qs,Ff;function Xb(){if(Ff)return qs;Ff=1;const e=js(),t=Gb(),r=Kb(),n=zb(),o=Pf();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=f,this.parseTextData=u,this.resolveNameSpace=c,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 c(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 f=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,ce=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 fe="";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,ce+1);if(!be)throw new Error(`Unexpected end of ${oe}`);j=be.i,fe=be.tagContent}const Ee=new t(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,O,D)),fe&&(fe=this.parseTextData(fe,D,O,!0,he,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),Ee.add(this.options.textNodeName,fe),this.addChild(P,Ee,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 fe=new t(D);D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,fe,O),O=O.substr(0,O.lastIndexOf("."))}else{const fe=new t(D);this.tagsNodeStack.push(P),D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,fe,O),P=fe}I="",j=ce}}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 qs=i,qs}var Vs={},Cf;function Yb(){if(Cf)return Vs;Cf=1;function e(i,a){return t(i,a)}function t(i,a,u){let c;const l={};for(let s=0;s<i.length;s++){const f=i[s],d=r(f);let x="";if(u===void 0?x=d:x=u+"."+d,d===a.textNodeName)c===void 0?c=f[d]:c+=""+f[d];else{if(d===void 0)continue;if(f[d]){let m=t(f[d],a,x);const E=o(m,a);f[":@"]?n(m,f[":@"],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 c=="string"?c.length>0&&(l[a.textNodeName]=c):c!==void 0&&(l[a.textNodeName]=c),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const c=a[u];if(c!==":@")return c}}function n(i,a,u,c){if(a){const l=Object.keys(a),s=l.length;for(let f=0;f<s;f++){const d=l[f];c.isArray(d,u+"."+d,!0,!0)?i[d]=[a[d]]:i[d]=a[d]}}}function o(i,a){const{textNodeName:u}=a,c=Object.keys(i).length;return!!(c===0||c===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return Vs.prettify=e,Vs}var Hs,Bf;function Jb(){if(Bf)return Hs;Bf=1;const{buildOptions:e}=Wb(),t=Xb(),{prettify:r}=Yb(),n=Sf();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 c=new t(this.options);c.addExternalEntities(this.externalEntities);const l=c.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 Hs=o,Hs}var Ws,Lf;function Zb(){if(Lf)return Ws;Lf=1;const e=`
48
+ `;function t(u,c){let l="";return c.format&&c.indentBy.length>0&&(l=e),r(u,c,"",l)}function r(u,c,l,s){let f="",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===c.textNodeName){let w=m[E];i(A,c)||(w=c.tagValueProcessor(E,w),w=a(w,c)),d&&(f+=s),f+=w,d=!1;continue}else if(E===c.cdataPropName){d&&(f+=s),f+=`<![CDATA[${m[E][0][c.textNodeName]}]]>`,d=!1;continue}else if(E===c.commentPropName){f+=s+`<!--${m[E][0][c.textNodeName]}-->`,d=!0;continue}else if(E[0]==="?"){const w=o(m[":@"],c),T=E==="?xml"?"":s;let P=m[E][0][c.textNodeName];P=P.length!==0?" "+P:"",f+=T+`<${E}${P}${w}?>`,d=!0;continue}let p=s;p!==""&&(p+=c.indentBy);const h=o(m[":@"],c),g=s+`<${E}${h}`,y=r(m[E],c,A,p);c.unpairedTags.indexOf(E)!==-1?c.suppressUnpairedNode?f+=g+">":f+=g+"/>":(!y||y.length===0)&&c.suppressEmptyNode?f+=g+"/>":y&&y.endsWith(">")?f+=g+`>${y}${s}</${E}>`:(f+=g+">",y&&s!==""&&(y.includes("/>")||y.includes("</"))?f+=s+c.indentBy+y+s:f+=y,f+=`</${E}>`),d=!0}return f}function n(u){const c=Object.keys(u);for(let l=0;l<c.length;l++){const s=c[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,c){let l="";if(u&&!c.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let f=c.attributeValueProcessor(s,u[s]);f=a(f,c),f===!0&&c.suppressBooleanAttributes?l+=` ${s.substr(c.attributeNamePrefix.length)}`:l+=` ${s.substr(c.attributeNamePrefix.length)}="${f}"`}return l}function i(u,c){u=u.substr(0,u.length-c.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in c.stopNodes)if(c.stopNodes[s]===u||c.stopNodes[s]==="*."+l)return!0;return!1}function a(u,c){if(u&&u.length>0&&c.processEntities)for(let l=0;l<c.entities.length;l++){const s=c.entities[l];u=u.replace(s.regex,s.val)}return u}return Ws=t,Ws}var Gs,Uf;function Qb(){if(Uf)return Gs;Uf=1;const e=Zb(),t=Pf(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,c){return c},attributeValueProcessor:function(u,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 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
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,c,l){let s="",f="";const d=l.join(".");for(let x in u)if(Object.prototype.hasOwnProperty.call(u,x))if(typeof u[x]>"u")this.isAttribute(x)&&(f+="");else if(u[x]===null)this.isAttribute(x)||x===this.options.cdataPropName?f+="":x[0]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(u[x]instanceof Date)f+=this.buildTextValNode(u[x],x,"",c);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]);f+=this.replaceEntitiesValue(E)}else f+=this.buildTextValNode(u[x],x,"",c)}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]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){const g=this.j2x(h,c+1,l.concat(x));E+=g.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(A+=g.attrStr)}else E+=this.processTextOrObjNode(h,x,c,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,"",c)}this.options.oneListGroup&&(E=this.buildObjectNode(E,x,A,c)),f+=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 f+=this.processTextOrObjNode(u[x],x,c,l);return{attrStr:s,val:f}},n.prototype.buildAttrPairStr=function(u,c){return c=this.options.attributeValueProcessor(u,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+u:" "+u+'="'+c+'"'};function o(u,c,l,s){const f=this.j2x(u,l+1,s.concat(c));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],c,f.attrStr,l):this.buildObjectNode(f.val,c,f.attrStr,l)}n.prototype.buildObjectNode=function(u,c,l,s){if(u==="")return c[0]==="?"?this.indentate(s)+"<"+c+l+"?"+this.tagEndChar:this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar;{let f="</"+c+this.tagEndChar,d="";return c[0]==="?"&&(d="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+d+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&d.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+d+this.tagEndChar+u+this.indentate(s)+f}},n.prototype.closeTag=function(u){let c="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(c="/"):this.options.suppressEmptyNode?c="/":c=`></${u}`,c},n.prototype.buildTextValNode=function(u,c,l,s){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(c[0]==="?")return this.indentate(s)+"<"+c+l+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(c,u);return f=this.replaceEntitiesValue(f),f===""?this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar:this.indentate(s)+"<"+c+l+">"+f+"</"+c+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const l=this.options.entities[c];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 Ws=n,Ws}var Gs,jf;function e1(){if(jf)return Gs;jf=1;const e=Sf(),t=Jb(),r=Qb();return Gs={XMLParser:t,XMLValidator:e,XMLBuilder:r},Gs}var Ks=e1();const zs=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[or.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),kf=(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,f)=>Object.assign(s,{[f]:null}),{}),u=zs(a,o),c={[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":zs(r,[])}}};return new Ks.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},t1=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":zs(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new Ks.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},r1=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},n1=async e=>{const t=n=>{const o=decodeURIComponent(n);return n!=null&&n.startsWith("/remote.php/dav/")?Se(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Mb(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Db(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})},i1=e=>{const t=new Ks.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 o1{constructor({baseUrl:t,headers:r}){ye(this,"client");ye(this,"davPath");ye(this,"headers");ye(this,"extraProps");this.davPath=Se(t,"remote.php/dav"),this.client=kb(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:Mt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:c}=await this.request(t,{method:Mt.propfind,data:kf(n,{extraProps:this.extraProps}),headers:a,...i});return u!=null&&u.length&&(u[0].tusSupport=r1(c.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:c}=await this.request(t,{method:Mt.report,data:kf(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:c.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,An(r));return this.request(t,{method:Mt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,An(r));return this.request(t,{method:Mt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const c={...n};return i?c["If-Match"]=i:a||(c["If-None-Match"]="*"),this.request(t,{method:Mt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:Mt.delete,...r})}propPatch(t,r,n={}){const o=t1(r);return this.request(t,{method:Mt.proppatch,data:o,...n})}getFileUrl(t){return Se(this.davPath,An(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":Hb(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Se(this.davPath,An(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 n1(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=i1(u);throw new zd(c.message,c.errorCode,a,a.status)}}}const s1=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Se("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>xr(a,e.extraProps))}}),a1=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[ae.IsFavorite]:o?"true":"false"};return e.propPatch(Se(r.webDavPath,n),a,i)}}),u1=(e,t)=>({listFavoriteFiles({davProperties:r=or.Default,username:n="",...o}={}){return e.report(Se("files",n),{properties:r,filterRules:{favorite:1},...o})}}),l1=(e,t)=>{const r=Xe.create();t&&r.interceptors.request.use(D=>(Object.assign(D.headers,t()),D));const n={axiosClient:r,baseUrl:e},o=new o1({baseUrl:e,headers:t}),i=D=>{o.extraProps.push(D)},a=vm(o),{getPathForFileId:u}=a,c=hm(o,a),{listFiles:l}=c,s=lm(c),{getFileInfo:f}=s,{createFolder:d}=am(o,s),x=um(o,n),{getFileContents:m}=x,{putFileContents:E}=pm(o,s),{getFileUrl:A,revokeUrl:p}=cm(o,x,n),{getPublicFileUrl:h}=fm(o),{copyFiles:g}=sm(o),{moveFiles:y}=dm(o),{deleteFile:w}=gm(o),{restoreFile:T}=ym(o),{listFileVersions:P}=s1(o),{restoreFileVersion:I}=mm(o),{clearTrashBin:O}=bm(o),{search:j}=wm(o),{listFavoriteFiles:G}=u1(o),{setFavorite:L}=a1(o);return{copyFiles:g,createFolder:d,deleteFile:w,restoreFile:T,restoreFileVersion:I,getFileContents:m,getFileInfo:f,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 Mf=(e=>(e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e))(Mf||{});let en;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&en){const x=en.Authorization;x!=null&&x.toString().startsWith("Bearer")&&(en.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,transferData:i}=r;en=o;const a=l1(n,()=>en),u=[],c=[],l=new rh({concurrency:4}),s=x=>a.copyFiles(x.sourceSpace,x.resource,x.targetSpace,{path:x.path},{overwrite:x.overwrite}),f=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===Mf.COPY?(await s(x),m.id=void 0,m.fileId=void 0):await f(x),m.path=ln.join(x.targetFolder.path,m.name),m.webDavPath=ln.join(x.targetFolder.webDavPath,m.name),u.push(m)}catch(A){console.error(A),c.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:c}))}})();
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,c,l){let s="",f="";const d=l.join(".");for(let x in u)if(Object.prototype.hasOwnProperty.call(u,x))if(typeof u[x]>"u")this.isAttribute(x)&&(f+="");else if(u[x]===null)this.isAttribute(x)||x===this.options.cdataPropName?f+="":x[0]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(u[x]instanceof Date)f+=this.buildTextValNode(u[x],x,"",c);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]);f+=this.replaceEntitiesValue(E)}else f+=this.buildTextValNode(u[x],x,"",c)}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]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){const g=this.j2x(h,c+1,l.concat(x));E+=g.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(A+=g.attrStr)}else E+=this.processTextOrObjNode(h,x,c,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,"",c)}this.options.oneListGroup&&(E=this.buildObjectNode(E,x,A,c)),f+=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 f+=this.processTextOrObjNode(u[x],x,c,l);return{attrStr:s,val:f}},n.prototype.buildAttrPairStr=function(u,c){return c=this.options.attributeValueProcessor(u,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+u:" "+u+'="'+c+'"'};function o(u,c,l,s){const f=this.j2x(u,l+1,s.concat(c));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],c,f.attrStr,l):this.buildObjectNode(f.val,c,f.attrStr,l)}n.prototype.buildObjectNode=function(u,c,l,s){if(u==="")return c[0]==="?"?this.indentate(s)+"<"+c+l+"?"+this.tagEndChar:this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar;{let f="</"+c+this.tagEndChar,d="";return c[0]==="?"&&(d="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+d+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&d.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+d+this.tagEndChar+u+this.indentate(s)+f}},n.prototype.closeTag=function(u){let c="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(c="/"):this.options.suppressEmptyNode?c="/":c=`></${u}`,c},n.prototype.buildTextValNode=function(u,c,l,s){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(c[0]==="?")return this.indentate(s)+"<"+c+l+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(c,u);return f=this.replaceEntitiesValue(f),f===""?this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar:this.indentate(s)+"<"+c+l+">"+f+"</"+c+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const l=this.options.entities[c];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 Gs=n,Gs}var Ks,jf;function e1(){if(jf)return Ks;jf=1;const e=Sf(),t=Jb(),r=Qb();return Ks={XMLParser:t,XMLValidator:e,XMLBuilder:r},Ks}var zs=e1();const Xs=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[or.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),kf=(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,f)=>Object.assign(s,{[f]:null}),{}),u=Xs(a,o),c={[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":Xs(r,[])}}};return new zs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},t1=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":Xs(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new zs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},r1=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},n1=async e=>{const t=n=>{const o=decodeURIComponent(n);return n!=null&&n.startsWith("/remote.php/dav/")?Se(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Mb(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Db(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})},i1=e=>{const t=new zs.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 o1{constructor({baseUrl:t,headers:r}){ye(this,"client");ye(this,"davPath");ye(this,"headers");ye(this,"extraProps");this.davPath=Se(t,"remote.php/dav"),this.client=kb(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:Mt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:c}=await this.request(t,{method:Mt.propfind,data:kf(n,{extraProps:this.extraProps}),headers:a,...i});return u!=null&&u.length&&(u[0].tusSupport=r1(c.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:c}=await this.request(t,{method:Mt.report,data:kf(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:c.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,An(r));return this.request(t,{method:Mt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,An(r));return this.request(t,{method:Mt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const c={...n};return i?c["If-Match"]=i:a||(c["If-None-Match"]="*"),this.request(t,{method:Mt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:Mt.delete,...r})}propPatch(t,r,n={}){const o=t1(r);return this.request(t,{method:Mt.proppatch,data:o,...n})}getFileUrl(t){return Se(this.davPath,An(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":Hb(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Se(this.davPath,An(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 n1(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=i1(u);throw new zd(c.message,c.errorCode,a,a.status)}}}const s1=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Se("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>xr(a,e.extraProps))}}),a1=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[ae.IsFavorite]:o?"true":"false"};return e.propPatch(Se(r.webDavPath,n),a,i)}}),u1=(e,t)=>({listFavoriteFiles({davProperties:r=or.Default,username:n="",...o}={}){return e.report(Se("files",n),{properties:r,filterRules:{favorite:1},...o})}}),l1=(e,t)=>{const r=Xe.create();t&&r.interceptors.request.use(D=>(Object.assign(D.headers,t()),D));const n={axiosClient:r,baseUrl:e},o=new o1({baseUrl:e,headers:t}),i=D=>{o.extraProps.push(D)},a=vm(o),{getPathForFileId:u}=a,c=hm(o,a),{listFiles:l}=c,s=lm(c),{getFileInfo:f}=s,{createFolder:d}=am(o,s),x=um(o,n),{getFileContents:m}=x,{putFileContents:E}=pm(o,s),{getFileUrl:A,revokeUrl:p}=cm(o,x,n),{getPublicFileUrl:h}=fm(o),{copyFiles:g}=sm(o),{moveFiles:y}=dm(o),{deleteFile:w}=gm(o),{restoreFile:T}=ym(o),{listFileVersions:P}=s1(o),{restoreFileVersion:I}=mm(o),{clearTrashBin:O}=bm(o),{search:j}=wm(o),{listFavoriteFiles:G}=u1(o),{setFavorite:L}=a1(o);return{copyFiles:g,createFolder:d,deleteFile:w,restoreFile:T,restoreFileVersion:I,getFileContents:m,getFileInfo:f,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 Mf=(e=>(e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e))(Mf||{});let en;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&en){const x=en.Authorization;x!=null&&x.toString().startsWith("Bearer")&&(en.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,transferData:i}=r;en=o;const a=l1(n,()=>en),u=[],c=[],l=new rh({concurrency:4}),s=x=>a.copyFiles(x.sourceSpace,x.resource,x.targetSpace,{path:x.path},{overwrite:x.overwrite}),f=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===Mf.COPY?(await s(x),m.id=void 0,m.fileId=void 0):await f(x),m.path=ln.join(x.targetFolder.path,m.name),m.webDavPath=ln.join(x.targetFolder.webDavPath,m.name),u.push(m)}catch(A){console.error(A),c.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:c}))}})();