@opencloud-eu/web-pkg 4.3.0 → 5.0.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.
Files changed (47) hide show
  1. package/dist/{TextEditor-Cn7QTWpj.js → TextEditor-CJgYG8Kl.js} +5 -5
  2. package/dist/assets/worker-Bc2UmjVr.js +40 -0
  3. package/dist/assets/worker-BeDmEhWu.js +40 -0
  4. package/dist/assets/worker-DWoO7i6z.js +40 -0
  5. package/dist/{index-BAXp6cDe.js → index-D-EuklHo.js} +17376 -17380
  6. package/dist/src/apps/types.d.ts +1 -0
  7. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +2 -2
  8. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -28
  9. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +5 -44
  10. package/dist/src/components/FilesList/ResourceName.vue.d.ts +11 -139
  11. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +16 -357
  12. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +16 -66
  13. package/dist/src/components/ItemFilter.vue.d.ts +8 -9
  14. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +1 -4
  15. package/dist/src/composables/actions/files/index.d.ts +12 -11
  16. package/dist/src/composables/actions/files/useFileActions.d.ts +2 -7
  17. package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +4 -0
  18. package/dist/src/composables/actions/types.d.ts +1 -1
  19. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +6 -7
  20. package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
  21. package/dist/src/composables/index.d.ts +0 -1
  22. package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
  23. package/dist/src/composables/piniaStores/apps.d.ts +6 -0
  24. package/dist/src/composables/piniaStores/capabilities.d.ts +1 -13
  25. package/dist/src/composables/piniaStores/messages.d.ts +6 -6
  26. package/dist/src/composables/resources/index.d.ts +2 -0
  27. package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +11 -0
  28. package/dist/src/composables/resources/useResourceViewDrag.d.ts +8 -29
  29. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +25 -34
  30. package/dist/src/composables/resources/useResourceViewSelection.d.ts +13 -0
  31. package/dist/src/composables/sort/useSort.d.ts +2 -4
  32. package/dist/src/constants.d.ts +3 -0
  33. package/dist/src/helpers/contextMenuDropdown.d.ts +1 -1
  34. package/dist/src/helpers/index.d.ts +0 -1
  35. package/dist/src/services/cache.d.ts +0 -5
  36. package/dist/src/services/client/client.d.ts +0 -4
  37. package/dist/src/ui/types.d.ts +0 -2
  38. package/dist/web-pkg.js +322 -323
  39. package/dist/web-pkg.umd.cjs +48 -47
  40. package/package.json +3 -3
  41. package/dist/assets/worker-B8_1fnv6.js +0 -40
  42. package/dist/assets/worker-CexULVXL.js +0 -40
  43. package/dist/assets/worker-DW5HxaGD.js +0 -40
  44. package/dist/src/composables/clipboard/index.d.ts +0 -1
  45. package/dist/src/composables/clipboard/useClipboard.d.ts +0 -6
  46. package/dist/src/helpers/folderLink/index.d.ts +0 -1
  47. package/dist/src/helpers/folderLink/types.d.ts +0 -6
@@ -0,0 +1,40 @@
1
+ (function(){"use strict";var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}},os;function qc(){return os||(os=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,h){if(typeof s!="function")throw new TypeError("The listener must be a function");var T=new o(s,f||c,h),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],T]:c._events[m].push(T):(c._events[m]=T,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 h=0,T=f.length,m=new Array(T);h<T;h++)m[h]=f[h].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,h,T,m){var E=r?r+l:l;if(!this._events[E])return!1;var x=this._events[E],y=arguments.length,p,d;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),y){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,s),!0;case 3:return x.fn.call(x.context,s,f),!0;case 4:return x.fn.call(x.context,s,f,h),!0;case 5:return x.fn.call(x.context,s,f,h,T),!0;case 6:return x.fn.call(x.context,s,f,h,T,m),!0}for(d=1,p=new Array(y-1);d<y;d++)p[d-1]=arguments[d];x.fn.apply(x.context,p)}else{var g=x.length,v;for(d=0;d<g;d++)switch(x[d].once&&this.removeListener(l,x[d].fn,void 0,!0),y){case 1:x[d].fn.call(x[d].context);break;case 2:x[d].fn.call(x[d].context,s);break;case 3:x[d].fn.call(x[d].context,s,f);break;case 4:x[d].fn.call(x[d].context,s,f,h);break;default:if(!p)for(v=1,p=new Array(y-1);v<y;v++)p[v-1]=arguments[v];x[d].fn.apply(x[d].context,p)}}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,h){var T=r?r+l:l;if(!this._events[T])return this;if(!s)return a(this,T),this;var m=this._events[T];if(m.fn)m.fn===s&&(!h||m.once)&&(!f||m.context===f)&&a(this,T);else{for(var E=0,x=[],y=m.length;E<y;E++)(m[E].fn!==s||h&&!m[E].once||f&&m[E].context!==f)&&x.push(m[E]);x.length?this._events[T]=x.length===1?x[0]:x:a(this,T)}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})(fn)),fn.exports}var $c=qc(),Hc=cn($c);class hn extends Error{name="TimeoutError";constructor(t,r){super(t,r),Error.captureStackTrace?.(this,hn)}}const ss=e=>e.reason??new DOMException("This operation was aborted.","AbortError");function Vc(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout},signal:a}=t;let u,c;const s=new Promise((f,h)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(a?.aborted){h(ss(a));return}if(a&&(c=()=>{h(ss(a))},a.addEventListener("abort",c,{once:!0})),e.then(f,h),r===Number.POSITIVE_INFINITY)return;const T=new hn;u=i.setTimeout(()=>{if(n){try{f(n())}catch(m){h(m)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?f():o instanceof Error?h(o):(T.message=o??`Promise timed out after ${r} milliseconds`,h(T))},r)}).finally(()=>{s.clear(),c&&a&&a.removeEventListener("abort",c)});return s.clear=()=>{i.clearTimeout(u),u=void 0},s}function Wc(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 Gc{#e=[];enqueue(t,r){const{priority:n=0,id:o}=r??{},i={priority:n,id:o,run:t};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}const a=Wc(this.#e,i,(u,c)=>c.priority-u.priority);this.#e.splice(a,0,i)}setPriority(t,r){const n=this.#e.findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=this.#e.splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){return this.#e.shift()?.run}filter(t){return this.#e.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this.#e.length}}class Kc extends Hc{#e;#r;#o=0;#t;#n=!1;#d=!1;#l;#g=0;#f=0;#c;#p;#h;#s=[];#a=0;#i;#R;#u=0;#w;#y;#F=1n;#v=new Map;timeout;constructor(t){if(super(),t={carryoverIntervalCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Gc,strict:!1,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${t.intervalCap?.toString()??""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${t.interval?.toString()??""}\` (${typeof t.interval})`);if(t.strict&&t.interval===0)throw new TypeError("The `strict` option requires a non-zero `interval`");if(t.strict&&t.intervalCap===Number.POSITIVE_INFINITY)throw new TypeError("The `strict` option requires a finite `intervalCap`");if(this.#e=t.carryoverIntervalCount??t.carryoverConcurrencyCount??!1,this.#r=t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,this.#t=t.intervalCap,this.#l=t.interval,this.#h=t.strict,this.#i=new t.queueClass,this.#R=t.queueClass,this.concurrency=t.concurrency,t.timeout!==void 0&&!(Number.isFinite(t.timeout)&&t.timeout>0))throw new TypeError(`Expected \`timeout\` to be a positive finite number, got \`${t.timeout}\` (${typeof t.timeout})`);this.timeout=t.timeout,this.#y=t.autoStart===!1,this.#M()}#E(t){for(;this.#a<this.#s.length;){const n=this.#s[this.#a];if(n!==void 0&&t-n>=this.#l)this.#a++;else break}(this.#a>100&&this.#a>this.#s.length/2||this.#a===this.#s.length)&&(this.#s=this.#s.slice(this.#a),this.#a=0)}#C(t){this.#h?this.#s.push(t):this.#o++}#B(){this.#h?this.#s.length>this.#a&&this.#s.pop():this.#o>0&&this.#o--}#x(){return this.#s.length-this.#a}get#L(){return this.#r?!0:this.#h?this.#x()<this.#t:this.#o<this.#t}get#U(){return this.#u<this.#w}#j(){this.#u--,this.#u===0&&this.emit("pendingZero"),this.#S(),this.emit("next")}#k(){this.#p=void 0,this.#I(),this.#N()}#D(t){if(this.#h){if(this.#E(t),this.#x()>=this.#t){const n=this.#s[this.#a],o=this.#l-(t-n);return this.#A(o),!0}return!1}if(this.#c===void 0){const r=this.#g-t;if(r<0){if(this.#f>0){const n=t-this.#f;if(n<this.#l)return this.#A(this.#l-n),!0}this.#o=this.#e?this.#u:0}else return this.#A(r),!0}return!1}#A(t){this.#p===void 0&&(this.#p=setTimeout(()=>{this.#k()},t))}#T(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}#O(){this.#p&&(clearTimeout(this.#p),this.#p=void 0)}#S(){if(this.#i.size===0){if(this.#T(),this.emit("empty"),this.#u===0){if(this.#O(),this.#h&&this.#a>0){const r=Date.now();this.#E(r)}this.emit("idle")}return!1}let t=!1;if(!this.#y){const r=Date.now(),n=!this.#D(r);if(this.#L&&this.#U){const o=this.#i.dequeue();this.#r||(this.#C(r),this.#b()),this.emit("active"),o(),n&&this.#N(),t=!0}}return t}#N(){this.#r||this.#c!==void 0||this.#h||(this.#c=setInterval(()=>{this.#I()},this.#l),this.#g=Date.now()+this.#l)}#I(){this.#h||(this.#o===0&&this.#u===0&&this.#c&&this.#T(),this.#o=this.#e?this.#u:0),this.#_(),this.#b()}#_(){for(;this.#S(););}get concurrency(){return this.#w}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this.#w=t,this.#_()}setPriority(t,r){if(typeof r!="number"||!Number.isFinite(r))throw new TypeError(`Expected \`priority\` to be a finite number, got \`${r}\` (${typeof r})`);this.#i.setPriority(t,r)}async add(t,r={}){return r={timeout:this.timeout,...r,id:r.id??(this.#F++).toString()},new Promise((n,o)=>{const i=Symbol(`task-${r.id}`);this.#i.enqueue(async()=>{this.#u++,this.#v.set(i,{id:r.id,priority:r.priority??0,startTime:Date.now(),timeout:r.timeout});let a;try{try{r.signal?.throwIfAborted()}catch(l){throw this.#q(),this.#v.delete(i),l}this.#f=Date.now();let u=t({signal:r.signal});if(r.timeout&&(u=Vc(Promise.resolve(u),{milliseconds:r.timeout,message:`Task timed out after ${r.timeout}ms (queue has ${this.#u} running, ${this.#i.size} waiting)`})),r.signal){const{signal:l}=r;u=Promise.race([u,new Promise((s,f)=>{a=()=>{f(l.reason)},l.addEventListener("abort",a,{once:!0})})])}const c=await u;n(c),this.emit("completed",c)}catch(u){o(u),this.emit("error",u)}finally{a&&r.signal?.removeEventListener("abort",a),this.#v.delete(i),queueMicrotask(()=>{this.#j()})}},r),this.emit("add"),this.#S()})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this.#y?(this.#y=!1,this.#_(),this):this}pause(){this.#y=!0}clear(){this.#i=new this.#R,this.#T(),this.#P(),this.emit("empty"),this.#u===0&&(this.#O(),this.emit("idle")),this.emit("next")}async onEmpty(){this.#i.size!==0&&await this.#m("empty")}async onSizeLessThan(t){this.#i.size<t||await this.#m("next",()=>this.#i.size<t)}async onIdle(){this.#u===0&&this.#i.size===0||await this.#m("idle")}async onPendingZero(){this.#u!==0&&await this.#m("pendingZero")}async onRateLimit(){this.isRateLimited||await this.#m("rateLimit")}async onRateLimitCleared(){this.isRateLimited&&await this.#m("rateLimitCleared")}onError(){return new Promise((t,r)=>{const n=o=>{this.off("error",n),r(o)};this.on("error",n)})}async#m(t,r){return new Promise(n=>{const o=()=>{r&&!r()||(this.off(t,o),n())};this.on(t,o)})}get size(){return this.#i.size}sizeBy(t){return this.#i.filter(t).length}get pending(){return this.#u}get isPaused(){return this.#y}#M(){this.#r||(this.on("add",()=>{this.#i.size>0&&this.#b()}),this.on("next",()=>{this.#b()}))}#b(){this.#r||this.#d||(this.#d=!0,queueMicrotask(()=>{this.#d=!1,this.#P()}))}#q(){this.#r||(this.#B(),this.#b())}#P(){const t=this.#n;if(this.#r||this.#i.size===0){t&&(this.#n=!1,this.emit("rateLimitCleared"));return}let r;if(this.#h){const o=Date.now();this.#E(o),r=this.#x()}else r=this.#o;const n=r>=this.#t;n!==t&&(this.#n=n,this.emit(n?"rateLimit":"rateLimitCleared"))}get isRateLimited(){return this.#n}get isSaturated(){return this.#u===this.#w&&this.#i.size>0||this.isRateLimited&&this.#i.size>0}get runningTasks(){return[...this.#v.values()].map(t=>({...t}))}}const mt=globalThis||void 0||self;function zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var as={exports:{}},je=as.exports={},ht,dt;function dn(){throw new Error("setTimeout has not been defined")}function pn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ht=setTimeout:ht=dn}catch{ht=dn}try{typeof clearTimeout=="function"?dt=clearTimeout:dt=pn}catch{dt=pn}})();function us(e){if(ht===setTimeout)return setTimeout(e,0);if((ht===dn||!ht)&&setTimeout)return ht=setTimeout,setTimeout(e,0);try{return ht(e,0)}catch{try{return ht.call(null,e,0)}catch{return ht.call(this,e,0)}}}function Xc(e){if(dt===clearTimeout)return clearTimeout(e);if((dt===pn||!dt)&&clearTimeout)return dt=clearTimeout,clearTimeout(e);try{return dt(e)}catch{try{return dt.call(null,e)}catch{return dt.call(this,e)}}}var bt=[],Dt=!1,It,Ar=-1;function Yc(){!Dt||!It||(Dt=!1,It.length?bt=It.concat(bt):Ar=-1,bt.length&&ls())}function ls(){if(!Dt){var e=us(Yc);Dt=!0;for(var t=bt.length;t;){for(It=bt,bt=[];++Ar<t;)It&&It[Ar].run();Ar=-1,t=bt.length}It=null,Dt=!1,Xc(e)}}je.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];bt.push(new cs(e,t)),bt.length===1&&!Dt&&us(ls)};function cs(e,t){this.fun=e,this.array=t}cs.prototype.run=function(){this.fun.apply(null,this.array)},je.title="browser",je.browser=!0,je.env={},je.argv=[],je.version="",je.versions={};function wt(){}je.on=wt,je.addListener=wt,je.once=wt,je.off=wt,je.removeListener=wt,je.removeAllListeners=wt,je.emit=wt,je.prependListener=wt,je.prependOnceListener=wt,je.listeners=function(e){return[]},je.binding=function(e){throw new Error("process.binding is not supported")},je.cwd=function(){return"/"},je.chdir=function(e){throw new Error("process.chdir is not supported")},je.umask=function(){return 0};var Jc=as.exports;const me=zc(Jc);function fs(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zc}=Object.prototype,{getPrototypeOf:gn}=Object,{iterator:Tr,toStringTag:hs}=Symbol,Sr=(e=>t=>{const r=Zc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Sr(t)===e),_r=e=>t=>typeof t===e,{isArray:Mt}=Array,qt=_r("undefined");function tr(e){return e!==null&&!qt(e)&&e.constructor!==null&&!qt(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ds=lt("ArrayBuffer");function Qc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ds(e.buffer),t}const ef=_r("string"),tt=_r("function"),ps=_r("number"),rr=e=>e!==null&&typeof e=="object",tf=e=>e===!0||e===!1,Rr=e=>{if(Sr(e)!=="object")return!1;const t=gn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(hs in e)&&!(Tr in e)},rf=e=>{if(!rr(e)||tr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nf=lt("Date"),of=lt("File"),sf=lt("Blob"),af=lt("FileList"),uf=e=>rr(e)&&tt(e.pipe),lf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=Sr(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},cf=lt("URLSearchParams"),[ff,hf,df,pf]=["ReadableStream","Request","Response","Headers"].map(lt),gf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Mt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(tr(e))return;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 gs(e,t){if(tr(e))return null;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 Pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:mt,ys=e=>!qt(e)&&e!==Pt;function yn(){const{caseless:e,skipUndefined:t}=ys(this)&&this||{},r={},n=(o,i)=>{const a=e&&gs(r,i)||i;Rr(r[a])&&Rr(o)?r[a]=yn(r[a],o):Rr(o)?r[a]=yn({},o):Mt(o)?r[a]=o.slice():(!t||!qt(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&nr(arguments[o],n);return r}const yf=(e,t,r,{allOwnKeys:n}={})=>(nr(t,(o,i)=>{r&&tt(o)?Object.defineProperty(e,i,{value:fs(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),mf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bf=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},wf=(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&&gn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vf=(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},Ef=e=>{if(!e)return null;if(Mt(e))return e;let t=e.length;if(!ps(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},xf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gn(Uint8Array)),Af=(e,t)=>{const n=(e&&e[Tr]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Tf=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Sf=lt("HTMLFormElement"),_f=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ms=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Rf=lt("RegExp"),bs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};nr(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Of=e=>{bs(e,(t,r)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(tt(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+"'")})}})},Nf=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Mt(e)?n(e):n(String(e).split(t)),r},If=()=>{},Pf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ff(e){return!!(e&&tt(e.append)&&e[hs]==="FormData"&&e[Tr])}const Cf=e=>{const t=new Array(10),r=(n,o)=>{if(rr(n)){if(t.indexOf(n)>=0)return;if(tr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=Mt(n)?[]:{};return nr(n,(a,u)=>{const c=r(a,o+1);!qt(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Bf=lt("AsyncFunction"),Lf=e=>e&&(rr(e)||tt(e))&&tt(e.then)&&tt(e.catch),ws=((e,t)=>e?setImmediate:t?((r,n)=>(Pt.addEventListener("message",({source:o,data:i})=>{o===Pt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Pt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",tt(Pt.postMessage)),Uf=typeof queueMicrotask<"u"?queueMicrotask.bind(Pt):typeof me<"u"&&me.nextTick||ws;var J={isArray:Mt,isArrayBuffer:ds,isBuffer:tr,isFormData:lf,isArrayBufferView:Qc,isString:ef,isNumber:ps,isBoolean:tf,isObject:rr,isPlainObject:Rr,isEmptyObject:rf,isReadableStream:ff,isRequest:hf,isResponse:df,isHeaders:pf,isUndefined:qt,isDate:nf,isFile:of,isBlob:sf,isRegExp:Rf,isFunction:tt,isStream:uf,isURLSearchParams:cf,isTypedArray:xf,isFileList:af,forEach:nr,merge:yn,extend:yf,trim:gf,stripBOM:mf,inherits:bf,toFlatObject:wf,kindOf:Sr,kindOfTest:lt,endsWith:vf,toArray:Ef,forEachEntry:Af,matchAll:Tf,isHTMLForm:Sf,hasOwnProperty:ms,hasOwnProp:ms,reduceDescriptors:bs,freezeMethods:Of,toObjectSet:Nf,toCamelCase:_f,noop:If,toFiniteNumber:Pf,findKey:gs,global:Pt,isContextDefined:ys,isSpecCompliantForm:Ff,toJSONObject:Cf,isAsyncFn:Bf,isThenable:Lf,setImmediate:ws,asap:Uf,isIterable:e=>e!=null&&tt(e[Tr])},vs={},Or={};Or.byteLength=Df,Or.toByteArray=qf,Or.fromByteArray=Vf;for(var pt=[],it=[],jf=typeof Uint8Array<"u"?Uint8Array:Array,mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0,kf=mn.length;$t<kf;++$t)pt[$t]=mn[$t],it[mn.charCodeAt($t)]=$t;it[45]=62,it[95]=63;function Es(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 Df(e){var t=Es(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Mf(e,t,r){return(t+r)*3/4-r}function qf(e){var t,r=Es(e),n=r[0],o=r[1],i=new jf(Mf(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=it[e.charCodeAt(c)]<<18|it[e.charCodeAt(c+1)]<<12|it[e.charCodeAt(c+2)]<<6|it[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=it[e.charCodeAt(c)]<<2|it[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=it[e.charCodeAt(c)]<<10|it[e.charCodeAt(c+1)]<<4|it[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function $f(e){return pt[e>>18&63]+pt[e>>12&63]+pt[e>>6&63]+pt[e&63]}function Hf(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($f(n));return o.join("")}function Vf(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Hf(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(pt[t>>2]+pt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(pt[t>>10]+pt[t>>4&63]+pt[t<<2&63]+"=")),o.join("")}var bn={};bn.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,h=r?-1:1,T=e[t+f];for(f+=h,i=T&(1<<-s)-1,T>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=h,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=h,s-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(T?-1:1)*a*Math.pow(2,i-n)},bn.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=s>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=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+=h/c:t+=h*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+T]=u&255,T+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+T]=a&255,T+=m,a/=256,l-=8);e[r+T-m]|=E*128};(function(e){const t=Or,r=bn,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,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 y(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(Ge(F,a)||F&&Ge(F.buffer,a)||typeof u<"u"&&(Ge(F,u)||F&&Ge(F.buffer,u)))return p(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=F.valueOf&&F.valueOf();if(D!=null&&D!==F)return s.from(D,b,S);const H=d(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return f(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function h(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 T(F,b,S){return h(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 T(F,b,S)};function m(F){return h(F),l(F<0?0:g(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=A(F,b)|0;let D=l(S);const H=D.write(F,b);return H!==S&&(D=D.slice(0,H)),D}function x(F){const b=F.length<0?0:g(F.length)|0,S=l(b);for(let D=0;D<b;D+=1)S[D]=F[D]&255;return S}function y(F){if(Ge(F,i)){const b=new i(F);return p(b.buffer,b.byteOffset,b.byteLength)}return x(F)}function p(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 D;return b===void 0&&S===void 0?D=new i(F):S===void 0?D=new i(F,b):D=new i(F,b,S),Object.setPrototypeOf(D,s.prototype),D}function d(F){if(s.isBuffer(F)){const b=g(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"||ut(F.length)?l(0):x(F);if(F.type==="Buffer"&&Array.isArray(F.data))return x(F.data)}function g(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function v(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(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),Ge(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 D=b.length,H=S.length;for(let z=0,ne=Math.min(D,H);z<ne;++z)if(b[z]!==S[z]){D=b[z],H=S[z];break}return D<H?-1:H<D?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 D;if(S===void 0)for(S=0,D=0;D<b.length;++D)S+=b[D].length;const H=s.allocUnsafe(S);let z=0;for(D=0;D<b.length;++D){let ne=b[D];if(Ge(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function A(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||Ge(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,D=arguments.length>2&&arguments[2]===!0;if(!D&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return He(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Oe(F).length;default:if(H)return D?-1:He(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=A;function I(F,b,S){let D=!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 G(this,b,S);case"utf8":case"utf-8":return le(this,b,S);case"ascii":return be(this,b,S);case"latin1":case"binary":return pe(this,b,S);case"base64":return ue(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,S);default:if(D)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),D=!0}}s.prototype._isBuffer=!0;function P(F,b,S){const D=F[b];F[b]=F[S],F[S]=D}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)P(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)P(this,S,S+3),P(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)P(this,S,S+7),P(this,S+1,S+6),P(this,S+2,S+5),P(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?le(this,0,b):I.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,D,H,z){if(Ge(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),D===void 0&&(D=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||D>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=D)return 0;if(H>=z)return-1;if(S>=D)return 1;if(S>>>=0,D>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,we=D-S;const Ne=Math.min(ne,we),Ie=this.slice(H,z),Pe=b.slice(S,D);for(let Ae=0;Ae<Ne;++Ae)if(Ie[Ae]!==Pe[Ae]){ne=Ie[Ae],we=Pe[Ae];break}return ne<we?-1:we<ne?1:0};function R(F,b,S,D,H){if(F.length===0)return-1;if(typeof S=="string"?(D=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,ut(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,D)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,D,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,D,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,D,H){let z=1,ne=F.length,we=b.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,we/=2,S/=2}function Ne(Pe,Ae){return z===1?Pe[Ae]:Pe.readUInt16BE(Ae*z)}let Ie;if(H){let Pe=-1;for(Ie=S;Ie<ne;Ie++)if(Ne(F,Ie)===Ne(b,Pe===-1?0:Ie-Pe)){if(Pe===-1&&(Pe=Ie),Ie-Pe+1===we)return Pe*z}else Pe!==-1&&(Ie-=Ie-Pe),Pe=-1}else for(S+we>ne&&(S=ne-we),Ie=S;Ie>=0;Ie--){let Pe=!0;for(let Ae=0;Ae<we;Ae++)if(Ne(F,Ie+Ae)!==Ne(b,Ae)){Pe=!1;break}if(Pe)return Ie}return-1}s.prototype.includes=function(b,S,D){return this.indexOf(b,S,D)!==-1},s.prototype.indexOf=function(b,S,D){return R(this,b,S,D,!0)},s.prototype.lastIndexOf=function(b,S,D){return R(this,b,S,D,!1)};function K(F,b,S,D){S=Number(S)||0;const H=F.length-S;D?(D=Number(D),D>H&&(D=H)):D=H;const z=b.length;D>z/2&&(D=z/2);let ne;for(ne=0;ne<D;++ne){const we=parseInt(b.substr(ne*2,2),16);if(ut(we))return ne;F[S+ne]=we}return ne}function L(F,b,S,D){return Ye(He(b,F.length-S),F,S,D)}function k(F,b,S,D){return Ye(De(b),F,S,D)}function re(F,b,S,D){return Ye(Oe(b),F,S,D)}function ee(F,b,S,D){return Ye(xe(b,F.length-S),F,S,D)}s.prototype.write=function(b,S,D,H){if(S===void 0)H="utf8",D=this.length,S=0;else if(D===void 0&&typeof S=="string")H=S,D=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(D)?(D=D>>>0,H===void 0&&(H="utf8")):(H=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((D===void 0||D>z)&&(D=z),b.length>0&&(D<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return K(this,b,S,D);case"utf8":case"utf-8":return L(this,b,S,D);case"ascii":case"latin1":case"binary":return k(this,b,S,D);case"base64":return re(this,b,S,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,b,S,D);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function le(F,b,S){S=Math.min(F.length,S);const D=[];let H=b;for(;H<S;){const z=F[H];let ne=null,we=z>239?4:z>223?3:z>191?2:1;if(H+we<=S){let Ne,Ie,Pe,Ae;switch(we){case 1:z<128&&(ne=z);break;case 2:Ne=F[H+1],(Ne&192)===128&&(Ae=(z&31)<<6|Ne&63,Ae>127&&(ne=Ae));break;case 3:Ne=F[H+1],Ie=F[H+2],(Ne&192)===128&&(Ie&192)===128&&(Ae=(z&15)<<12|(Ne&63)<<6|Ie&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ne=Ae));break;case 4:Ne=F[H+1],Ie=F[H+2],Pe=F[H+3],(Ne&192)===128&&(Ie&192)===128&&(Pe&192)===128&&(Ae=(z&15)<<18|(Ne&63)<<12|(Ie&63)<<6|Pe&63,Ae>65535&&Ae<1114112&&(ne=Ae))}}ne===null?(ne=65533,we=1):ne>65535&&(ne-=65536,D.push(ne>>>10&1023|55296),ne=56320|ne&1023),D.push(ne),H+=we}return fe(D)}const de=4096;function fe(F){const b=F.length;if(b<=de)return String.fromCharCode.apply(String,F);let S="",D=0;for(;D<b;)S+=String.fromCharCode.apply(String,F.slice(D,D+=de));return S}function be(F,b,S){let D="";S=Math.min(F.length,S);for(let H=b;H<S;++H)D+=String.fromCharCode(F[H]&127);return D}function pe(F,b,S){let D="";S=Math.min(F.length,S);for(let H=b;H<S;++H)D+=String.fromCharCode(F[H]);return D}function G(F,b,S){const D=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>D)&&(S=D);let H="";for(let z=b;z<S;++z)H+=ft[F[z]];return H}function Z(F,b,S){const D=F.slice(b,S);let H="";for(let z=0;z<D.length-1;z+=2)H+=String.fromCharCode(D[z]+D[z+1]*256);return H}s.prototype.slice=function(b,S){const D=this.length;b=~~b,S=S===void 0?D:~~S,b<0?(b+=D,b<0&&(b=0)):b>D&&(b=D),S<0?(S+=D,S<0&&(S=0)):S>D&&(S=D),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function Q(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,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||Q(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||Q(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+D*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+D;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,D){b=b>>>0,S=S>>>0,D||Q(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const D=this[b]|this[b+1]<<8;return D&32768?D|4294901760:D},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const D=this[b+1]|this[b]<<8;return D&32768?D|4294901760:D},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||Q(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||Q(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(D<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],D=this[b+7];(S===void 0||D===void 0)&&he(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+D)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!1,52,8)};function ae(F,b,S,D,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+D>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,D,H){if(b=+b,S=S>>>0,D=D>>>0,!H){const we=Math.pow(2,8*D)-1;ae(this,b,S,D,we,0)}let z=1,ne=0;for(this[S]=b&255;++ne<D&&(z*=256);)this[S+ne]=b/z&255;return S+D},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,D,H){if(b=+b,S=S>>>0,D=D>>>0,!H){const we=Math.pow(2,8*D)-1;ae(this,b,S,D,we,0)}let z=D-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+D},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(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,D){return b=+b,S=S>>>0,D||ae(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,D){return b=+b,S=S>>>0,D||ae(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,D){return b=+b,S=S>>>0,D||ae(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,D,H){ge(b,D,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function N(F,b,S,D,H){ge(b,D,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=Ve(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ve(function(b,S=0){return N(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,D,H){if(b=+b,S=S>>>0,!H){const Ne=Math.pow(2,8*D-1);ae(this,b,S,D,Ne-1,-Ne)}let z=0,ne=1,we=0;for(this[S]=b&255;++z<D&&(ne*=256);)b<0&&we===0&&this[S+z-1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+D},s.prototype.writeIntBE=function(b,S,D,H){if(b=+b,S=S>>>0,!H){const Ne=Math.pow(2,8*D-1);ae(this,b,S,D,Ne-1,-Ne)}let z=D-1,ne=1,we=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&we===0&&this[S+z+1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+D},s.prototype.writeInt8=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,D){return b=+b,S=S>>>0,D||ae(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,D){return b=+b,S=S>>>0,D||ae(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,D){return b=+b,S=S>>>0,D||ae(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=Ve(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ve(function(b,S=0){return N(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function O(F,b,S,D,H,z){if(S+D>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function $(F,b,S,D,H){return b=+b,S=S>>>0,H||O(F,b,S,4),r.write(F,b,S,D,23,4),S+4}s.prototype.writeFloatLE=function(b,S,D){return $(this,b,S,!0,D)},s.prototype.writeFloatBE=function(b,S,D){return $(this,b,S,!1,D)};function q(F,b,S,D,H){return b=+b,S=S>>>0,H||O(F,b,S,8),r.write(F,b,S,D,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,D){return q(this,b,S,!0,D)},s.prototype.writeDoubleBE=function(b,S,D){return q(this,b,S,!1,D)},s.prototype.copy=function(b,S,D,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(D||(D=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<D&&(H=D),H===D||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-D&&(H=b.length-S+D);const z=H-D;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,D,H):i.prototype.set.call(b,this.subarray(D,H),S),z},s.prototype.fill=function(b,S,D,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,D=this.length):typeof D=="string"&&(H=D,D=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<D)throw new RangeError("Out of range index");if(D<=S)return this;S=S>>>0,D=D===void 0?this.length:D>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<D;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),we=ne.length;if(we===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<D-S;++z)this[z+S]=ne[z%we]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let D=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=Y(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=Y(H)),H+="n"),D+=` It must be ${b}. Received ${H}`,D},RangeError);function Y(F){let b="",S=F.length;const D=F[0]==="-"?1:0;for(;S>=D+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function oe(F,b,S){ce(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&he(b,F.length-(S+1))}function ge(F,b,S,D,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let we;throw b===0||b===BigInt(0)?we=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:we=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",we,F)}oe(D,H,z)}function ce(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function he(F,b,S){throw Math.floor(F)!==F?(ce(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 Re=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Re,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function He(F,b){b=b||1/0;let S;const D=F.length;let H=null;const z=[];for(let ne=0;ne<D;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===D){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function De(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function xe(F,b){let S,D,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),D=S>>8,H=S%256,z.push(H),z.push(D);return z}function Oe(F){return t.toByteArray(te(F))}function Ye(F,b,S,D){let H;for(H=0;H<D&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function Ge(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function ut(F){return F!==F}const ft=(function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const D=S*16;for(let H=0;H<16;++H)b[D+H]=F[S]+F[H]}return b})();function Ve(F){return typeof BigInt>"u"?Ot:F}function Ot(){throw new Error("BigInt not supported")}})(vs);const Ht=vs.Buffer;let ye=class Dc extends Error{static from(t,r,n,o,i,a){const u=new Dc(t.message,r||t.code,n,o,i);return u.cause=t,u.name=t.name,a&&Object.assign(u,a),u}constructor(t,r,n,o,i){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){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:J.toJSONObject(this.config),code:this.code,status:this.status}}};ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ye.ERR_BAD_OPTION="ERR_BAD_OPTION",ye.ECONNABORTED="ECONNABORTED",ye.ETIMEDOUT="ETIMEDOUT",ye.ERR_NETWORK="ERR_NETWORK",ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ye.ERR_DEPRECATED="ERR_DEPRECATED",ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ye.ERR_CANCELED="ERR_CANCELED",ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ye.ERR_INVALID_URL="ERR_INVALID_URL";var Wf=null;function wn(e){return J.isPlainObject(e)||J.isArray(e)}function xs(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function As(e,t,r){return e?e.concat(t).map(function(o,i){return o=xs(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Gf(e){return J.isArray(e)&&!e.some(wn)}const Kf=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Nr(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,x){return!J.isUndefined(x[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(J.isDate(m))return m.toISOString();if(J.isBoolean(m))return m.toString();if(!c&&J.isBlob(m))throw new ye("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(m)||J.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Ht.from(m):m}function s(m,E,x){let y=m;if(m&&!x&&typeof m=="object"){if(J.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(J.isArray(m)&&Gf(m)||(J.isFileList(m)||J.endsWith(E,"[]"))&&(y=J.toArray(m)))return E=xs(E),y.forEach(function(d,g){!(J.isUndefined(d)||d===null)&&t.append(a===!0?As([E],g,i):a===null?E:E+"[]",l(d))}),!1}return wn(m)?!0:(t.append(As(x,E,i),l(m)),!1)}const f=[],h=Object.assign(Kf,{defaultVisitor:s,convertValue:l,isVisitable:wn});function T(m,E){if(!J.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(m),J.forEach(m,function(y,p){(!(J.isUndefined(y)||y===null)&&o.call(t,y,J.isString(p)?p.trim():p,E,h))===!0&&T(y,E?E.concat(p):[p])}),f.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return T(e),t}function Ts(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function vn(e,t){this._pairs=[],e&&Nr(e,this,t)}const Ss=vn.prototype;Ss.append=function(t,r){this._pairs.push([t,r])},Ss.toString=function(t){const r=t?function(n){return t.call(this,n,Ts)}:Ts;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function zf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _s(e,t,r){if(!t)return e;const n=r&&r.encode||zf,o=J.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(i?a=i(t,o):a=J.isURLSearchParams(t)?t.toString():new vn(t,o).toString(n),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Rs{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){J.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Os={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xf=typeof URLSearchParams<"u"?URLSearchParams:vn,Yf=typeof FormData<"u"?FormData:null,Jf=typeof Blob<"u"?Blob:null,Zf={isBrowser:!0,classes:{URLSearchParams:Xf,FormData:Yf,Blob:Jf},protocols:["http","https","file","blob","url","data"]};const En=typeof window<"u"&&typeof document<"u",xn=typeof navigator=="object"&&navigator||void 0,Qf=En&&(!xn||["ReactNative","NativeScript","NS"].indexOf(xn.product)<0),eh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",th=En&&window.location.href||"http://localhost";var rh=Object.freeze({__proto__:null,hasBrowserEnv:En,hasStandardBrowserEnv:Qf,hasStandardBrowserWebWorkerEnv:eh,navigator:xn,origin:th}),Ke={...rh,...Zf};function nh(e,t){return Nr(e,new Ke.classes.URLSearchParams,{visitor:function(r,n,o,i){return Ke.isNode&&J.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function ih(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oh(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 Ns(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&&J.isArray(o)?o.length:a,c?(J.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!J.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&J.isArray(o[a])&&(o[a]=oh(o[a])),!u)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(n,o)=>{t(ih(n),o,r,0)}),r}return null}function sh(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ir={transitional:Os,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=J.isObject(t);if(i&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return o?JSON.stringify(Ns(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.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 nh(t,this.formSerializer).toString();if((u=J.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Nr(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),sh(t)):t}],transformResponse:[function(t){const r=this.transitional||ir.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?ye.from(u,ye.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:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{ir.headers[e]={}});const ah=J.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 uh=e=>{const t={};let r,n,o;return e&&e.split(`
2
+ `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&ah[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Is=Symbol("internals");function or(e){return e&&String(e).trim().toLowerCase()}function Ir(e){return e===!1||e==null?e:J.isArray(e)?e.map(Ir):String(e)}function lh(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 ch=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function An(e,t,r,n,o){if(J.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!J.isString(t)){if(J.isString(n))return t.indexOf(n)!==-1;if(J.isRegExp(n))return n.test(t)}}function fh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function hh(e,t){const r=J.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 rt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=or(c);if(!s)throw new Error("header name must be a non-empty string");const f=J.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=Ir(u))}const a=(u,c)=>J.forEach(u,(l,s)=>i(l,s,c));if(J.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(J.isString(t)&&(t=t.trim())&&!ch(t))a(uh(t),r);else if(J.isObject(t)&&J.isIterable(t)){let u={},c,l;for(const s of t){if(!J.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?J.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=or(t),t){const n=J.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return lh(o);if(J.isFunction(r))return r.call(this,o,n);if(J.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=or(t),t){const n=J.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||An(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=or(a),a){const u=J.findKey(n,a);u&&(!r||An(n,n[u],u,r))&&(delete n[u],o=!0)}}return J.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||An(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return J.forEach(this,(o,i)=>{const a=J.findKey(n,i);if(a){r[a]=Ir(o),delete r[i];return}const u=t?fh(i):String(i).trim();u!==i&&delete r[i],r[u]=Ir(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return J.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&J.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(`
3
+ `)}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[Is]=this[Is]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=or(a);n[u]||(hh(o,a),n[u]=!0)}return J.isArray(t)?t.forEach(i):i(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),J.freezeMethods(rt);function Tn(e,t){const r=this||ir,n=t||r,o=rt.from(n.headers);let i=n.data;return J.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ps(e){return!!(e&&e.__CANCEL__)}let sr=class extends ye{constructor(t,r,n){super(t??"canceled",ye.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Fs(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ph(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,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=s&&l-s;return T?Math.round(h*1e3/T):void 0}}function gh(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(...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 Pr=(e,t,r=3)=>{let n=0;const o=ph(50,250);return gh(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)},Cs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Bs=e=>(...t)=>J.asap(()=>e(...t));var yh=Ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,mh=Ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),J.isString(n)&&u.push(`path=${n}`),J.isString(o)&&u.push(`domain=${o}`),i===!0&&u.push("secure"),J.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ls(e,t,r){let n=!bh(t);return e&&(n||r==!1)?wh(e,t):t}const Us=e=>e instanceof rt?{...e}:e;function Ft(e,t){t=t||{};const r={};function n(l,s,f,h){return J.isPlainObject(l)&&J.isPlainObject(s)?J.merge.call({caseless:h},l,s):J.isPlainObject(s)?J.merge({},s):J.isArray(s)?s.slice():s}function o(l,s,f,h){if(J.isUndefined(s)){if(!J.isUndefined(l))return n(void 0,l,f,h)}else return n(l,s,f,h)}function i(l,s){if(!J.isUndefined(s))return n(void 0,s)}function a(l,s){if(J.isUndefined(s)){if(!J.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(Us(l),Us(s),f,!0)};return J.forEach(Object.keys({...e,...t}),function(s){const f=c[s]||o,h=f(e[s],t[s],s);J.isUndefined(h)&&f!==u||(r[s]=h)}),r}var js=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=rt.from(a),t.url=_s(Ls(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),J.isFormData(r)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(J.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([s,f])=>{l.includes(s.toLowerCase())&&a.set(s,f)})}}if(Ke.hasStandardBrowserEnv&&(n&&J.isFunction(n)&&(n=n(t)),n||n!==!1&&yh(t.url))){const c=o&&i&&mh.read(i);c&&a.set(o,c)}return t},vh=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=js(e);let i=o.data;const a=rt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,h,T,m;function E(){T&&T(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function y(){if(!x)return;const d=rt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:d,config:e,request:x};Fs(function(I){r(I),E()},function(I){n(I),E()},v),x=null}"onloadend"in x?x.onloadend=y:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(y)},x.onabort=function(){x&&(n(new ye("Request aborted",ye.ECONNABORTED,e,x)),x=null)},x.onerror=function(g){const v=g&&g.message?g.message:"Network Error",A=new ye(v,ye.ERR_NETWORK,e,x);A.event=g||null,n(A),x=null},x.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Os;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new ye(g,v.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,x)),x=null},i===void 0&&a.setContentType(null),"setRequestHeader"in x&&J.forEach(a.toJSON(),function(g,v){x.setRequestHeader(v,g)}),J.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),l&&([h,m]=Pr(l,!0),x.addEventListener("progress",h)),c&&x.upload&&([f,T]=Pr(c),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(s=d=>{x&&(n(!d||d.type?new sr(null,e,x):d),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const p=dh(o.url);if(p&&Ke.protocols.indexOf(p)===-1){n(new ye("Unsupported protocol "+p+":",ye.ERR_BAD_REQUEST,e));return}x.send(i||null)})};const Eh=(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 ye?s:new sr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new ye(`timeout of ${t}ms exceeded`,ye.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=()=>J.asap(u),c}},xh=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},Ah=async function*(e,t){for await(const r of Th(e))yield*xh(r,t)},Th=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()}},ks=(e,t,r,n)=>{const o=Ah(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 h=i+=f;r(h)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},Ds=64*1024,{isFunction:Fr}=J,Sh=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:Ms,TextEncoder:qs}=J.global,$s=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_h=e=>{e=J.merge.call({skipUndefined:!0},Sh,e);const{fetch:t,Request:r,Response:n}=e,o=t?Fr(t):typeof fetch=="function",i=Fr(r),a=Fr(n);if(!o)return!1;const u=o&&Fr(Ms),c=o&&(typeof qs=="function"?(m=>E=>m.encode(E))(new qs):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&u&&$s(()=>{let m=!1;const E=new r(Ke.origin,{body:new Ms,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!E}),s=a&&u&&$s(()=>J.isReadableStream(new n("").body)),f={stream:s&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(E,x)=>{let y=E&&E[m];if(y)return y.call(E);throw new ye(`Response type '${m}' is not supported`,ye.ERR_NOT_SUPPORT,x)})});const h=async m=>{if(m==null)return 0;if(J.isBlob(m))return m.size;if(J.isSpecCompliantForm(m))return(await new r(Ke.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(J.isArrayBufferView(m)||J.isArrayBuffer(m))return m.byteLength;if(J.isURLSearchParams(m)&&(m=m+""),J.isString(m))return(await c(m)).byteLength},T=async(m,E)=>{const x=J.toFiniteNumber(m.getContentLength());return x??h(E)};return async m=>{let{url:E,method:x,data:y,signal:p,cancelToken:d,timeout:g,onDownloadProgress:v,onUploadProgress:A,responseType:I,headers:P,withCredentials:R="same-origin",fetchOptions:j}=js(m),K=t||fetch;I=I?(I+"").toLowerCase():"text";let L=Eh([p,d&&d.toAbortSignal()],g),k=null;const re=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let ee;try{if(A&&l&&x!=="get"&&x!=="head"&&(ee=await T(P,y))!==0){let pe=new r(E,{method:"POST",body:y,duplex:"half"}),G;if(J.isFormData(y)&&(G=pe.headers.get("content-type"))&&P.setContentType(G),pe.body){const[Z,Q]=Cs(ee,Pr(Bs(A)));y=ks(pe.body,Ds,Z,Q)}}J.isString(R)||(R=R?"include":"omit");const ue=i&&"credentials"in r.prototype,le={...j,signal:L,method:x.toUpperCase(),headers:P.normalize().toJSON(),body:y,duplex:"half",credentials:ue?R:void 0};k=i&&new r(E,le);let de=await(i?K(k,j):K(E,le));const fe=s&&(I==="stream"||I==="response");if(s&&(v||fe&&re)){const pe={};["status","statusText","headers"].forEach(ae=>{pe[ae]=de[ae]});const G=J.toFiniteNumber(de.headers.get("content-length")),[Z,Q]=v&&Cs(G,Pr(Bs(v),!0))||[];de=new n(ks(de.body,Ds,Z,()=>{Q&&Q(),re&&re()}),pe)}I=I||"text";let be=await f[J.findKey(f,I)||"text"](de,m);return!fe&&re&&re(),await new Promise((pe,G)=>{Fs(pe,G,{data:be,headers:rt.from(de.headers),status:de.status,statusText:de.statusText,config:m,request:k})})}catch(ue){throw re&&re(),ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,m,k),{cause:ue.cause||ue}):ye.from(ue,ue&&ue.code,m,k)}}},Rh=new Map,Hs=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,u=a,c,l,s=Rh;for(;u--;)c=i[u],l=s.get(c),l===void 0&&s.set(c,l=u?new Map:_h(t)),s=l;return l};Hs();const Sn={http:Wf,xhr:vh,fetch:{get:Hs}};J.forEach(Sn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vs=e=>`- ${e}`,Oh=e=>J.isFunction(e)||e===null||e===!1;function Nh(e,t){e=J.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let u;if(o=n,!Oh(n)&&(o=Sn[(u=String(n)).toLowerCase()],o===void 0))throw new ye(`Unknown adapter '${u}'`);if(o&&(J.isFunction(o)||(o=o.get(t))))break;i[u||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let u=r?a.length>1?`since :
4
+ `+a.map(Vs).join(`
5
+ `):" "+Vs(a[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}var Ws={getAdapter:Nh,adapters:Sn};function _n(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sr(null,e)}function Gs(e){return _n(e),e.headers=rt.from(e.headers),e.data=Tn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ws.getAdapter(e.adapter||ir.adapter,e)(e).then(function(n){return _n(e),n.data=Tn.call(e,e.transformResponse,n),n.headers=rt.from(n.headers),n},function(n){return Ps(n)||(_n(e),n&&n.response&&(n.response.data=Tn.call(e,e.transformResponse,n.response),n.response.headers=rt.from(n.response.headers))),Promise.reject(n)})}const Ks="1.13.3",Cr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const zs={};Cr.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ks+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new ye(o(a," has been removed"+(r?" in "+r:"")),ye.ERR_DEPRECATED);return r&&!zs[a]&&(zs[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}},Cr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ih(e,t,r){if(typeof e!="object")throw new ye("options must be an object",ye.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 ye("option "+i+" must be "+c,ye.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}}var Br={assertOptions:Ih,validators:Cr};const gt=Br.validators;let Ct=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Rs,response:new Rs}}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+=`
6
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ft(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Br.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),o!=null&&(J.isFunction(o)?r.paramsSerializer={serialize:o}:Br.assertOptions(o,{encode:gt.function,serialize:gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Br.assertOptions(r,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&J.merge(i.common,i[r.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=rt.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,h;if(!c){const m=[Gs.bind(this),void 0];m.unshift(...u),m.push(...l),h=m.length,s=Promise.resolve(r);let E=r;for(;f<h;)s=s.then(m[f++]).then(x=>{E=x!==void 0?x:E}).catch(m[f++]).then(()=>E);return s}h=u.length;let T=r;for(;f<h;){const m=u[f++],E=u[f++];try{T=m(T)}catch(x){E.call(this,x);break}}try{s=Gs.call(this,T)}catch(m){return Promise.reject(m)}for(f=0,h=l.length;f<h;)s=s.then(l[f++]).catch(l[f++]);return s}getUri(t){t=Ft(this.defaults,t);const r=Ls(t.baseURL,t.url,t.allowAbsoluteUrls);return _s(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Ct.prototype[t]=function(r,n){return this.request(Ft(n||{},{method:t,url:r,data:(n||{}).data}))}}),J.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(Ft(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ct.prototype[t]=r(),Ct.prototype[t+"Form"]=r(!0)});let Ph=class Mc{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 sr(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 Mc(function(o){t=o}),cancel:t}}};function Fh(e){return function(r){return e.apply(null,r)}}function Ch(e){return J.isObject(e)&&e.isAxiosError===!0}const Rn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rn).forEach(([e,t])=>{Rn[t]=e});function Xs(e){const t=new Ct(e),r=fs(Ct.prototype.request,t);return J.extend(r,Ct.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Xs(Ft(e,o))},r}const ke=Xs(ir);ke.Axios=Ct,ke.CanceledError=sr,ke.CancelToken=Ph,ke.isCancel=Ps,ke.VERSION=Ks,ke.toFormData=Nr,ke.AxiosError=ye,ke.Cancel=ke.CanceledError,ke.all=function(t){return Promise.all(t)},ke.spread=Fh,ke.isAxiosError=Ch,ke.mergeConfig=Ft,ke.AxiosHeaders=rt,ke.formToJSON=e=>Ns(J.isHTMLForm(e)?new FormData(e):e),ke.getAdapter=Ws.getAdapter,ke.HttpStatusCode=Rn,ke.default=ke;const{Axios:ab,AxiosError:ub,CanceledError:lb,isCancel:cb,CancelToken:fb,VERSION:hb,all:db,Cancel:pb,isAxiosError:gb,spread:yb,toFormData:mb,AxiosHeaders:bb,HttpStatusCode:wb,formToJSON:vb,getAdapter:Eb,mergeConfig:xb}=ke,Lr=e=>encodeURIComponent(e).split("%2F").join("/"),Bh=/^(\w+:\/\/[^/?]+)?(.*?)$/,Lh=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Uh=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Bh)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},jh=(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},Ee=(...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=Lh(e);const n=Uh(e);return jh(n,r)};class Ys extends Error{response;statusCode;constructor(t,r,n=null){super(t),this.response=r,this.statusCode=n}}class kh extends Ys{errorCode;constructor(t,r,n,o=null){super(t,n,o),this.errorCode=r}}function Dh(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Mh(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}var On,Js;function qh(){if(Js)return On;Js=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 h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",u=0):(a=a.slice(0,h),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,h=f-s,T=l<h?l:h,m=-1,E=0;E<=T;++E){if(E===T){if(h>T){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>T&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var x=i.charCodeAt(u+E),y=a.charCodeAt(s+E);if(x!==y)break;x===47&&(m=E)}var p="";for(E=u+m+1;E<=c;++E)(E===c||i.charCodeAt(E)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+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,h=-1;for(s=i.length-1;s>=0;--s){var T=i.charCodeAt(s);if(T===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),f>=0&&(T===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=h))}return u===c?c=h: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 h=i.charCodeAt(f);if(h===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),h===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,h=-1,T=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!T){f=m+1;break}continue}h===-1&&(T=!1,h=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||h===-1||E===0||E===1&&s===h-1&&s===f+1?h!==-1&&(f===0&&c?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,h)):(a.name=i.slice(f,s),a.base=i.slice(f,h)),a.ext=i.slice(s,h)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,On=n,On}var Zs=qh(),Qs=cn(Zs);class ct{static Shared="S";static Shareable="R";static Mounted="M";static Deletable="D";static Renameable="N";static Moveable="V";static Updateable="NV";static FileUpdateable="W";static FolderCreateable="CK";static Deny="Z";static SecureView="X"}var vt=(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))(vt||{});const Ur=e=>({value:e,type:null}),$h=e=>Ur(e),Te=e=>Ur(e),jr=e=>Ur(e),Hh=e=>Ur(e),Vh={Permissions:Te("permissions"),IsFavorite:jr("favorite"),FileId:Te("fileid"),FileParent:Te("file-parent"),Name:Te("name"),OwnerId:Te("owner-id"),OwnerDisplayName:Te("owner-display-name"),PrivateLink:Te("privatelink"),ContentLength:jr("getcontentlength"),ContentSize:jr("size"),LastModifiedDate:Te("getlastmodified"),Tags:$h("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Te("getetag"),MimeType:Te("getcontenttype"),ResourceType:Hh("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Te("owner"),LockTime:Te("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Te("downloadURL"),Highlights:Te("highlights"),MetaPathForUser:Te("meta-path-for-user"),RemoteItemId:Te("remote-item-id"),HasPreview:jr("has-preview"),ShareId:Te("shareid"),ShareRoot:Te("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Te("share-permissions"),TrashbinOriginalFilename:Te("trashbin-original-filename"),TrashbinOriginalLocation:Te("trashbin-original-location"),TrashbinDeletedDate:Te("trashbin-delete-datetime"),PublicLinkItemType:Te("public-link-item-type"),PublicLinkPermission:Te("public-link-permission"),PublicLinkExpiration:Te("public-link-expiration"),PublicLinkShareDate:Te("public-link-share-datetime"),PublicLinkShareOwner:Te("public-link-share-owner")},se=Object.fromEntries(Object.entries(Vh).map(([e,t])=>[e,t.value]));class Bt{static Default=[se.Permissions,se.IsFavorite,se.FileId,se.FileParent,se.Name,se.LockDiscovery,se.ActiveLock,se.OwnerId,se.OwnerDisplayName,se.RemoteItemId,se.ShareRoot,se.ShareTypes,se.PrivateLink,se.ContentLength,se.ContentSize,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.Tags,se.Audio,se.Location,se.Image,se.Photo,se.HasPreview];static PublicLink=Bt.Default.concat([se.PublicLinkItemType,se.PublicLinkPermission,se.PublicLinkExpiration,se.PublicLinkShareDate,se.PublicLinkShareOwner]);static Trashbin=[se.ContentLength,se.ResourceType,se.TrashbinOriginalLocation,se.TrashbinOriginalFilename,se.TrashbinDeletedDate,se.Permissions,se.FileParent];static DavNamespace=[se.ContentLength,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.LockDiscovery,se.ActiveLock]}var Wh=typeof mt=="object"&&mt&&mt.Object===Object&&mt,Gh=typeof self=="object"&&self&&self.Object===Object&&self,Nn=Wh||Gh||Function("return this")(),Vt=Nn.Symbol,ea=Object.prototype,Kh=ea.hasOwnProperty,zh=ea.toString,ar=Vt?Vt.toStringTag:void 0;function Xh(e){var t=Kh.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var o=zh.call(e);return n&&(t?e[ar]=r:delete e[ar]),o}var Yh=Object.prototype,Jh=Yh.toString;function Zh(e){return Jh.call(e)}var Qh="[object Null]",ed="[object Undefined]",ta=Vt?Vt.toStringTag:void 0;function ra(e){return e==null?e===void 0?ed:Qh:ta&&ta in Object(e)?Xh(e):Zh(e)}function td(e){return e!=null&&typeof e=="object"}var rd="[object Symbol]";function In(e){return typeof e=="symbol"||td(e)&&ra(e)==rd}function nd(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 Pn=Array.isArray,na=Vt?Vt.prototype:void 0,ia=na?na.toString:void 0;function oa(e){if(typeof e=="string")return e;if(Pn(e))return nd(e,oa)+"";if(In(e))return ia?ia.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function sa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var id="[object AsyncFunction]",od="[object Function]",sd="[object GeneratorFunction]",ad="[object Proxy]";function ud(e){if(!sa(e))return!1;var t=ra(e);return t==od||t==sd||t==id||t==ad}var Fn=Nn["__core-js_shared__"],aa=(function(){var e=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function ld(e){return!!aa&&aa in e}var cd=Function.prototype,fd=cd.toString;function hd(e){if(e!=null){try{return fd.call(e)}catch{}try{return e+""}catch{}}return""}var dd=/[\\^$.*+?()[\]{}|]/g,pd=/^\[object .+?Constructor\]$/,gd=Function.prototype,yd=Object.prototype,md=gd.toString,bd=yd.hasOwnProperty,wd=RegExp("^"+md.call(bd).replace(dd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vd(e){if(!sa(e)||ld(e))return!1;var t=ud(e)?wd:pd;return t.test(hd(e))}function Ed(e,t){return e?.[t]}function ua(e,t){var r=Ed(e,t);return vd(r)?r:void 0}function xd(e,t){return e===t||e!==e&&t!==t}var Ad=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Td=/^\w*$/;function Sd(e,t){if(Pn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||In(e)?!0:Td.test(e)||!Ad.test(e)||t!=null&&e in Object(t)}var ur=ua(Object,"create");function _d(){this.__data__=ur?ur(null):{},this.size=0}function Rd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Od="__lodash_hash_undefined__",Nd=Object.prototype,Id=Nd.hasOwnProperty;function Pd(e){var t=this.__data__;if(ur){var r=t[e];return r===Od?void 0:r}return Id.call(t,e)?t[e]:void 0}var Fd=Object.prototype,Cd=Fd.hasOwnProperty;function Bd(e){var t=this.__data__;return ur?t[e]!==void 0:Cd.call(t,e)}var Ld="__lodash_hash_undefined__";function Ud(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ur&&t===void 0?Ld:t,this}function Lt(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])}}Lt.prototype.clear=_d,Lt.prototype.delete=Rd,Lt.prototype.get=Pd,Lt.prototype.has=Bd,Lt.prototype.set=Ud;function jd(){this.__data__=[],this.size=0}function kr(e,t){for(var r=e.length;r--;)if(xd(e[r][0],t))return r;return-1}var kd=Array.prototype,Dd=kd.splice;function Md(e){var t=this.__data__,r=kr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Dd.call(t,r,1),--this.size,!0}function qd(e){var t=this.__data__,r=kr(t,e);return r<0?void 0:t[r][1]}function $d(e){return kr(this.__data__,e)>-1}function Hd(e,t){var r=this.__data__,n=kr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Wt(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])}}Wt.prototype.clear=jd,Wt.prototype.delete=Md,Wt.prototype.get=qd,Wt.prototype.has=$d,Wt.prototype.set=Hd;var Vd=ua(Nn,"Map");function Wd(){this.size=0,this.__data__={hash:new Lt,map:new(Vd||Wt),string:new Lt}}function Gd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dr(e,t){var r=e.__data__;return Gd(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Kd(e){var t=Dr(this,e).delete(e);return this.size-=t?1:0,t}function zd(e){return Dr(this,e).get(e)}function Xd(e){return Dr(this,e).has(e)}function Yd(e,t){var r=Dr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ut(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])}}Ut.prototype.clear=Wd,Ut.prototype.delete=Kd,Ut.prototype.get=zd,Ut.prototype.has=Xd,Ut.prototype.set=Yd;var Jd="Expected a function";function Cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Jd);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(Cn.Cache||Ut),r}Cn.Cache=Ut;var Zd=500;function Qd(e){var t=Cn(e,function(n){return r.size===Zd&&r.clear(),n}),r=t.cache;return t}var ep=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tp=/\\(\\)?/g,rp=Qd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ep,function(r,n,o,i){t.push(o?i.replace(tp,"$1"):n||r)}),t});function lr(e){return e==null?"":oa(e)}function np(e,t){return Pn(e)?e:Sd(e,t)?[e]:rp(lr(e))}function ip(e){if(typeof e=="string"||In(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function op(e,t){t=np(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ip(t[r++])];return r&&r==n?e:void 0}function sp(e,t,r){var n=e==null?void 0:op(e,t);return n===void 0?r:n}function ap(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 up(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:ap(e,t,r)}var lp="\\ud800-\\udfff",cp="\\u0300-\\u036f",fp="\\ufe20-\\ufe2f",hp="\\u20d0-\\u20ff",dp=cp+fp+hp,pp="\\ufe0e\\ufe0f",gp="\\u200d",yp=RegExp("["+gp+lp+dp+pp+"]");function la(e){return yp.test(e)}function mp(e){return e.split("")}var ca="\\ud800-\\udfff",bp="\\u0300-\\u036f",wp="\\ufe20-\\ufe2f",vp="\\u20d0-\\u20ff",Ep=bp+wp+vp,xp="\\ufe0e\\ufe0f",Ap="["+ca+"]",Bn="["+Ep+"]",Ln="\\ud83c[\\udffb-\\udfff]",Tp="(?:"+Bn+"|"+Ln+")",fa="[^"+ca+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",da="[\\ud800-\\udbff][\\udc00-\\udfff]",Sp="\\u200d",pa=Tp+"?",ga="["+xp+"]?",_p="(?:"+Sp+"(?:"+[fa,ha,da].join("|")+")"+ga+pa+")*",Rp=ga+pa+_p,Op="(?:"+[fa+Bn+"?",Bn,ha,da,Ap].join("|")+")",Np=RegExp(Ln+"(?="+Ln+")|"+Op+Rp,"g");function Ip(e){return e.match(Np)||[]}function Pp(e){return la(e)?Ip(e):mp(e)}function Fp(e){return function(t){t=lr(t);var r=la(t)?Pp(t):void 0,n=r?r[0]:t.charAt(0),o=r?up(r,1).join(""):t.slice(1);return n[e]()+o}}var Cp=Fp("toUpperCase");function Bp(e){return Cp(lr(e).toLowerCase())}function Lp(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 Up(e){return function(t){return e?.[t]}}var jp={À:"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"},kp=Up(jp),Dp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mp="\\u0300-\\u036f",qp="\\ufe20-\\ufe2f",$p="\\u20d0-\\u20ff",Hp=Mp+qp+$p,Vp="["+Hp+"]",Wp=RegExp(Vp,"g");function Gp(e){return e=lr(e),e&&e.replace(Dp,kp).replace(Wp,"")}var Kp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function zp(e){return e.match(Kp)||[]}var Xp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Yp(e){return Xp.test(e)}var ya="\\ud800-\\udfff",Jp="\\u0300-\\u036f",Zp="\\ufe20-\\ufe2f",Qp="\\u20d0-\\u20ff",eg=Jp+Zp+Qp,ma="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",tg="\\xac\\xb1\\xd7\\xf7",rg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ng="\\u2000-\\u206f",ig=" \\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",wa="A-Z\\xc0-\\xd6\\xd8-\\xde",og="\\ufe0e\\ufe0f",va=tg+rg+ng+ig,Ea="['’]",xa="["+va+"]",sg="["+eg+"]",Aa="\\d+",ag="["+ma+"]",Ta="["+ba+"]",Sa="[^"+ya+va+Aa+ma+ba+wa+"]",ug="\\ud83c[\\udffb-\\udfff]",lg="(?:"+sg+"|"+ug+")",cg="[^"+ya+"]",_a="(?:\\ud83c[\\udde6-\\uddff]){2}",Ra="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+wa+"]",fg="\\u200d",Oa="(?:"+Ta+"|"+Sa+")",hg="(?:"+Gt+"|"+Sa+")",Na="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Ia="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",Pa=lg+"?",Fa="["+og+"]?",dg="(?:"+fg+"(?:"+[cg,_a,Ra].join("|")+")"+Fa+Pa+")*",pg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yg=Fa+Pa+dg,mg="(?:"+[ag,_a,Ra].join("|")+")"+yg,bg=RegExp([Gt+"?"+Ta+"+"+Na+"(?="+[xa,Gt,"$"].join("|")+")",hg+"+"+Ia+"(?="+[xa,Gt+Oa,"$"].join("|")+")",Gt+"?"+Oa+"+"+Na,Gt+"+"+Ia,gg,pg,Aa,mg].join("|"),"g");function wg(e){return e.match(bg)||[]}function vg(e,t,r){return e=lr(e),t=t,t===void 0?Yp(e)?wg(e):zp(e):e.match(t)||[]}var Eg="['’]",xg=RegExp(Eg,"g");function Ag(e){return function(t){return Lp(vg(Gp(t).replace(xg,"")),e,"")}}var Tg=Ag(function(e,t,r){return t=t.toLowerCase(),e+(r?Bp(t):t)});const Sg={complex:["tar.bz2","tar.gz","tar.xz"]},Un=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Ca=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",_g=e=>Ca(e,0),Ba=e=>Ca(e,1),La=e=>{const r=e.name.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(Sg.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},Mr=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[Tg(r)]=e[r]}),t};function Kt(e,t=[]){const r=e.props[se.Name]?.toString()||Zs.basename(e.filename),n=e.props[se.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=La({...e,name:r}),u=e.props[se.LockDiscovery];let c,l,s;u&&(c=u[se.ActiveLock],l=c[se.LockOwner],s=c[se.LockTime]);let f=[];e.props[se.ShareTypes]&&(f=e.props[se.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const h={};for(const m of t||[]){const E=m.split(":").pop();e.props[E]&&(h[m]=e.props[E])}const T={id:n,fileId:n,storageId:_g(n),parentFolderId:e.props[se.FileParent],mimeType:e.props[se.MimeType],name:r,extension: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[se.LastModifiedDate],size:o?e.props[se.ContentSize]?.toString()||"0":e.props[se.ContentLength]?.toString()||"0",permissions:e.props[se.Permissions]||"",starred:e.props[se.IsFavorite]!==0,etag:e.props[se.ETag],shareTypes:f,privateLink:e.props[se.PrivateLink],downloadURL:e.props[se.DownloadURL],remoteItemId:e.props[se.RemoteItemId],remoteItemPath:e.props[se.ShareRoot],owner:{id:e.props[se.OwnerId],displayName:e.props[se.OwnerDisplayName]},tags:(e.props[se.Tags]||"").toString().split(",").filter(Boolean),audio:Mr(e.props[se.Audio]),location:Mr(e.props[se.Location]),image:Mr(e.props[se.Image]),photo:Mr(e.props[se.Photo]),extraProps:h,hasPreview:()=>e.props[se.HasPreview]===1,canUpload:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(ct.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(ct.Deletable)>=0},canRename:function(){return this.permissions.indexOf(ct.Renameable)>=0},canShare:function({ability:m}){return m.can("create-all","Share")&&this.permissions.indexOf(ct.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(ct.Updateable)>=0||this.permissions.indexOf(ct.FileUpdateable)>=0||this.permissions.indexOf(ct.FolderCreateable)>=0},isMounted:function(){return this.permissions.indexOf(ct.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(ct.Shared)>=0},isShareRoot(){return e.props[se.ShareRoot]?e.filename.split("/").length===3:!1},getDomSelector:()=>Un(n)};return Object.defineProperty(T,"nodeId",{get(){return Ba(this.id)}}),T}function Rg(e){const t=e.type==="directory",r=e.props[se.TrashbinOriginalFilename]?.toString(),n=La({name:r,type:e.type}),o=Qs.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[se.TrashbinDeletedDate],name:Qs.basename(r),extension:n,path:Ee(e.props[se.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[se.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,hasPreview:()=>!1,isShareRoot:()=>!1,getDomSelector:()=>Un(o)}}var nt=(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))(nt||{});const jn=e=>e?.driveType==="personal",kn=e=>e?.driveType==="public";function Og(e,t){return Ee("spaces",e,t,{leadingSlash:!0})}function Dn(e,t=""){return Ee("spaces","trash-bin",e,t,{leadingSlash:!0})}function Ng(e){const t=e.publicLinkPassword,r=e.props?.[se.FileId],n=e.props?.[se.PublicLinkItemType],o=e.props?.[se.PublicLinkPermission],i=e.props?.[se.PublicLinkExpiration],a=e.props?.[se.PublicLinkShareDate],u=e.props?.[se.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Mh(e.id)):(l=`public/${e.id}`,s=Dh(e.id)),Object.assign(Ig({...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 Ig(e){let t,r;e.special&&(t=e.special.find(l=>l.specialFolder.name==="image"),r=e.special.find(l=>l.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=e.root?.deleted?.state==="trashed",o=Ee(e.webDavPath||Og(e.id),{leadingSlash:!0}),i=Ee(e.serverUrl,"remote.php/dav",o),a=Ee(e.webDavTrashPath||Dn(e.id),{leadingSlash:!0}),u=Ee(e.serverUrl,"remote.php/dav",a),c={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:o,webDavTrashPath:a,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:e.quota?.used||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:e.owner?.user,disabled:n,root:e.root,spaceQuota:e.quota,spaceImageData:t,spaceReadmeData:r,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:l}={}){return this.disabled?l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canRename:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canEditDescription:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canRestore:function({ability:l}={}){return this.disabled?l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canDisable:function({ability:l}={}){return this.disabled?!1:l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canShare:function(){return this.graphPermissions?.includes(nt.createPermissions)},canEditImage:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canEditReadme:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canRestoreFromTrashbin:function(){return this.graphPermissions?.includes(nt.updateDeleted)},canDeleteFromTrashBin:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.deletePermissions)},canListVersions:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.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)},getDomSelector:()=>Un(e.id),getDriveAliasAndItem({path:l}){return Ee(this.driveAlias,l,{leadingSlash:!1})},getWebDavUrl({path:l}){return Ee(i,l)},getWebDavTrashUrl({path:l}){return Ee(u,l)},isOwner(l){return l?.id===this.owner?.id}};return Object.defineProperty(c,"nodeId",{get(){return Ba(this.id)}}),c}const Pg=(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 sp(o,"data.ocs.data",{capabilities:null,version:null})}}};var Mn={},qr={exports:{}},Ua;function qn(){if(Ua)return qr.exports;Ua=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,A,I){return Function.prototype.apply.call(v,A,I)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:r=function(v){return Object.getOwnPropertyNames(v)};function n(g){console&&console.warn&&console.warn(g)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}qr.exports=i,qr.exports.once=y,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(g){if(typeof g!="number"||g<0||o(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");a=g}}),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(v){if(typeof v!="number"||v<0||o(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function c(g){return g._maxListeners===void 0?i.defaultMaxListeners:g._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(v){for(var A=[],I=1;I<arguments.length;I++)A.push(arguments[I]);var P=v==="error",R=this._events;if(R!==void 0)P=P&&R.error===void 0;else if(!P)return!1;if(P){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var L=R[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var k=L.length,re=m(L,k),I=0;I<k;++I)t(re[I],this,A);return!0};function l(g,v,A,I){var P,R,j;if(u(A),R=g._events,R===void 0?(R=g._events=Object.create(null),g._eventsCount=0):(R.newListener!==void 0&&(g.emit("newListener",v,A.listener?A.listener:A),R=g._events),j=R[v]),j===void 0)j=R[v]=A,++g._eventsCount;else if(typeof j=="function"?j=R[v]=I?[A,j]:[j,A]:I?j.unshift(A):j.push(A),P=c(g),P>0&&j.length>P&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=g,K.type=v,K.count=j.length,n(K)}return g}i.prototype.addListener=function(v,A){return l(this,v,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,A){return l(this,v,A,!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(g,v,A){var I={fired:!1,wrapFn:void 0,target:g,type:v,listener:A},P=s.bind(I);return P.listener=A,I.wrapFn=P,P}i.prototype.once=function(v,A){return u(A),this.on(v,f(this,v,A)),this},i.prototype.prependOnceListener=function(v,A){return u(A),this.prependListener(v,f(this,v,A)),this},i.prototype.removeListener=function(v,A){var I,P,R,j,K;if(u(A),P=this._events,P===void 0)return this;if(I=P[v],I===void 0)return this;if(I===A||I.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete P[v],P.removeListener&&this.emit("removeListener",v,I.listener||A));else if(typeof I!="function"){for(R=-1,j=I.length-1;j>=0;j--)if(I[j]===A||I[j].listener===A){K=I[j].listener,R=j;break}if(R<0)return this;R===0?I.shift():E(I,R),I.length===1&&(P[v]=I[0]),P.removeListener!==void 0&&this.emit("removeListener",v,K||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){var A,I,P;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[v]),this;if(arguments.length===0){var R=Object.keys(I),j;for(P=0;P<R.length;++P)j=R[P],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=I[v],typeof A=="function")this.removeListener(v,A);else if(A!==void 0)for(P=A.length-1;P>=0;P--)this.removeListener(v,A[P]);return this};function h(g,v,A){var I=g._events;if(I===void 0)return[];var P=I[v];return P===void 0?[]:typeof P=="function"?A?[P.listener||P]:[P]:A?x(P):m(P,P.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(g,v){return typeof g.listenerCount=="function"?g.listenerCount(v):T.call(g,v)},i.prototype.listenerCount=T;function T(g){var v=this._events;if(v!==void 0){var A=v[g];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(g,v){for(var A=new Array(v),I=0;I<v;++I)A[I]=g[I];return A}function E(g,v){for(;v+1<g.length;v++)g[v]=g[v+1];g.pop()}function x(g){for(var v=new Array(g.length),A=0;A<v.length;++A)v[A]=g[A].listener||g[A];return v}function y(g,v){return new Promise(function(A,I){function P(j){g.removeListener(v,R),I(j)}function R(){typeof g.removeListener=="function"&&g.removeListener("error",P),A([].slice.call(arguments))}d(g,v,R,{once:!0}),v!=="error"&&p(g,P,{once:!0})})}function p(g,v,A){typeof g.on=="function"&&d(g,"error",v,A)}function d(g,v,A,I){if(typeof g.on=="function")I.once?g.once(v,A):g.on(v,A);else if(typeof g.addEventListener=="function")g.addEventListener(v,function P(R){I.once&&g.removeEventListener(v,P),A(R)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g)}return qr.exports}var $r={exports:{}},ja;function jt(){return ja||(ja=1,typeof Object.create=="function"?$r.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$r.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),$r.exports}var $n,ka;function Da(){return ka||(ka=1,$n=qn().EventEmitter),$n}var Hn={},Ma;function Hr(){return Ma||(Ma=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,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(p){var d=p.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=d);var v=g===d?0:4-g%4;return[g,v]}function s(p){var d=l(p),g=d[0],v=d[1];return(g+v)*3/4-v}function f(p,d,g){return(d+g)*3/4-g}function h(p){var d,g=l(p),v=g[0],A=g[1],I=new i(f(p,v,A)),P=0,R=A>0?v-4:v,j;for(j=0;j<R;j+=4)d=o[p.charCodeAt(j)]<<18|o[p.charCodeAt(j+1)]<<12|o[p.charCodeAt(j+2)]<<6|o[p.charCodeAt(j+3)],I[P++]=d>>16&255,I[P++]=d>>8&255,I[P++]=d&255;return A===2&&(d=o[p.charCodeAt(j)]<<2|o[p.charCodeAt(j+1)]>>4,I[P++]=d&255),A===1&&(d=o[p.charCodeAt(j)]<<10|o[p.charCodeAt(j+1)]<<4|o[p.charCodeAt(j+2)]>>2,I[P++]=d>>8&255,I[P++]=d&255),I}function T(p){return n[p>>18&63]+n[p>>12&63]+n[p>>6&63]+n[p&63]}function m(p,d,g){for(var v,A=[],I=d;I<g;I+=3)v=(p[I]<<16&16711680)+(p[I+1]<<8&65280)+(p[I+2]&255),A.push(T(v));return A.join("")}function E(p){for(var d,g=p.length,v=g%3,A=[],I=16383,P=0,R=g-v;P<R;P+=I)A.push(m(p,P,P+I>R?R:P+I));return v===1?(d=p[g-1],A.push(n[d>>2]+n[d<<4&63]+"==")):v===2&&(d=(p[g-2]<<8)+p[g-1],A.push(n[d>>10]+n[d>>4&63]+n[d<<2&63]+"=")),A.join("")}var x={};x.read=function(p,d,g,v,A){var I,P,R=A*8-v-1,j=(1<<R)-1,K=j>>1,L=-7,k=g?A-1:0,re=g?-1:1,ee=p[d+k];for(k+=re,I=ee&(1<<-L)-1,ee>>=-L,L+=R;L>0;I=I*256+p[d+k],k+=re,L-=8);for(P=I&(1<<-L)-1,I>>=-L,L+=v;L>0;P=P*256+p[d+k],k+=re,L-=8);if(I===0)I=1-K;else{if(I===j)return P?NaN:(ee?-1:1)*(1/0);P=P+Math.pow(2,v),I=I-K}return(ee?-1:1)*P*Math.pow(2,I-v)},x.write=function(p,d,g,v,A,I){var P,R,j,K=I*8-A-1,L=(1<<K)-1,k=L>>1,re=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,ee=v?0:I-1,ue=v?1:-1,le=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(R=isNaN(d)?1:0,P=L):(P=Math.floor(Math.log(d)/Math.LN2),d*(j=Math.pow(2,-P))<1&&(P--,j*=2),P+k>=1?d+=re/j:d+=re*Math.pow(2,1-k),d*j>=2&&(P++,j/=2),P+k>=L?(R=0,P=L):P+k>=1?(R=(d*j-1)*Math.pow(2,A),P=P+k):(R=d*Math.pow(2,k-1)*Math.pow(2,A),P=0));A>=8;p[g+ee]=R&255,ee+=ue,R/=256,A-=8);for(P=P<<A|R,K+=A;K>0;p[g+ee]=P&255,ee+=ue,P/=256,K-=8);p[g+ee-ue]|=le*128};(function(p){const d=r,g=x,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=L,p.SlowBuffer=Z,p.INSPECT_MAX_BYTES=50;const A=2147483647;p.kMaxLength=A;const{Uint8Array:I,ArrayBuffer:P,SharedArrayBuffer:R}=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 I(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,I.prototype),Object.setPrototypeOf(C,w),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 K(C){if(C>A)throw new RangeError('The value "'+C+'" is invalid for option "size"');const w=new I(C);return Object.setPrototypeOf(w,L.prototype),w}function L(C,w,_){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(C)}return k(C,w,_)}L.poolSize=8192;function k(C,w,_){if(typeof C=="string")return le(C,w);if(P.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(yt(C,P)||C&&yt(C.buffer,P)||typeof R<"u"&&(yt(C,R)||C&&yt(C.buffer,R)))return be(C,w,_);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,w,_);const W=pe(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),w,_);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,w,_){return k(C,w,_)},Object.setPrototypeOf(L.prototype,I.prototype),Object.setPrototypeOf(L,I);function re(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 ee(C,w,_){return re(C),C<=0?K(C):w!==void 0?typeof _=="string"?K(C).fill(w,_):K(C).fill(w):K(C)}L.alloc=function(C,w,_){return ee(C,w,_)};function ue(C){return re(C),K(C<0?0:G(C)|0)}L.allocUnsafe=function(C){return ue(C)},L.allocUnsafeSlow=function(C){return ue(C)};function le(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!L.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const _=Q(C,w)|0;let M=K(_);const W=M.write(C,w);return W!==_&&(M=M.slice(0,W)),M}function de(C){const w=C.length<0?0:G(C.length)|0,_=K(w);for(let M=0;M<w;M+=1)_[M]=C[M]&255;return _}function fe(C){if(yt(C,I)){const w=new I(C);return be(w.buffer,w.byteOffset,w.byteLength)}return de(C)}function be(C,w,_){if(w<0||C.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<w+(_||0))throw new RangeError('"length" is outside of buffer bounds');let M;return w===void 0&&_===void 0?M=new I(C):_===void 0?M=new I(C,w):M=new I(C,w,_),Object.setPrototypeOf(M,L.prototype),M}function pe(C){if(L.isBuffer(C)){const w=G(C.length)|0,_=K(w);return _.length===0||C.copy(_,0,0,w),_}if(C.length!==void 0)return typeof C.length!="number"||is(C.length)?K(0):de(C);if(C.type==="Buffer"&&Array.isArray(C.data))return de(C.data)}function G(C){if(C>=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return C|0}function Z(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==L.prototype},L.compare=function(w,_){if(yt(w,I)&&(w=L.from(w,w.offset,w.byteLength)),yt(_,I)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(w)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===_)return 0;let M=w.length,W=_.length;for(let X=0,ie=Math.min(M,W);X<ie;++X)if(w[X]!==_[X]){M=w[X],W=_[X];break}return M<W?-1:W<M?1:0},L.isEncoding=function(w){switch(String(w).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(w,_){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return L.alloc(0);let M;if(_===void 0)for(_=0,M=0;M<w.length;++M)_+=w[M].length;const W=L.allocUnsafe(_);let X=0;for(M=0;M<w.length;++M){let ie=w[M];if(yt(ie,I))X+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,X)):I.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 Q(C,w){if(L.isBuffer(C))return C.length;if(P.isView(C)||yt(C,P))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(w){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Ne(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ae(C).length;default:if(W)return M?-1:Ne(C).length;w=(""+w).toLowerCase(),W=!0}}L.byteLength=Q;function ae(C,w,_){let M=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,w>>>=0,_<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return He(this,w,_);case"utf8":case"utf-8":return ge(this,w,_);case"ascii":return Re(this,w,_);case"latin1":case"binary":return te(this,w,_);case"base64":return oe(this,w,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,w,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function V(C,w,_){const M=C[w];C[w]=C[_],C[_]=M}L.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<w;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<w;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<w;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ge(this,0,w):ae.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(w){if(!L.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:L.compare(this,w)===0},L.prototype.inspect=function(){let w="";const _=p.INSPECT_MAX_BYTES;return w=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(w+=" ... "),"<Buffer "+w+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(w,_,M,W,X){if(yt(w,I)&&(w=L.from(w,w.offset,w.byteLength)),!L.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(_===void 0&&(_=0),M===void 0&&(M=w?w.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||M>w.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===w)return 0;let ie=X-W,ve=M-_;const Le=Math.min(ie,ve),Fe=this.slice(W,X),Ue=w.slice(_,M);for(let _e=0;_e<Le;++_e)if(Fe[_e]!==Ue[_e]){ie=Fe[_e],ve=Ue[_e];break}return ie<ve?-1:ve<ie?1:0};function N(C,w,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,is(_)&&(_=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 w=="string"&&(w=L.from(w,M)),L.isBuffer(w))return w.length===0?-1:O(C,w,_,M,W);if(typeof w=="number")return w=w&255,typeof I.prototype.indexOf=="function"?W?I.prototype.indexOf.call(C,w,_):I.prototype.lastIndexOf.call(C,w,_):O(C,[w],_,M,W);throw new TypeError("val must be string, number or Buffer")}function O(C,w,_,M,W){let X=1,ie=C.length,ve=w.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||w.length<2)return-1;X=2,ie/=2,ve/=2,_/=2}function Le(Ue,_e){return X===1?Ue[_e]:Ue.readUInt16BE(_e*X)}let Fe;if(W){let Ue=-1;for(Fe=_;Fe<ie;Fe++)if(Le(C,Fe)===Le(w,Ue===-1?0:Fe-Ue)){if(Ue===-1&&(Ue=Fe),Fe-Ue+1===ve)return Ue*X}else Ue!==-1&&(Fe-=Fe-Ue),Ue=-1}else for(_+ve>ie&&(_=ie-ve),Fe=_;Fe>=0;Fe--){let Ue=!0;for(let _e=0;_e<ve;_e++)if(Le(C,Fe+_e)!==Le(w,_e)){Ue=!1;break}if(Ue)return Fe}return-1}L.prototype.includes=function(w,_,M){return this.indexOf(w,_,M)!==-1},L.prototype.indexOf=function(w,_,M){return N(this,w,_,M,!0)},L.prototype.lastIndexOf=function(w,_,M){return N(this,w,_,M,!1)};function $(C,w,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const X=w.length;M>X/2&&(M=X/2);let ie;for(ie=0;ie<M;++ie){const ve=parseInt(w.substr(ie*2,2),16);if(is(ve))return ie;C[_+ie]=ve}return ie}function q(C,w,_,M){return ln(Ne(w,C.length-_),C,_,M)}function B(C,w,_,M){return ln(Ie(w),C,_,M)}function U(C,w,_,M){return ln(Ae(w),C,_,M)}function Y(C,w,_,M){return ln(Pe(w,C.length-_),C,_,M)}L.prototype.write=function(w,_,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),w.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 $(this,w,_,M);case"utf8":case"utf-8":return q(this,w,_,M);case"ascii":case"latin1":case"binary":return B(this,w,_,M);case"base64":return U(this,w,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,w,_,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 oe(C,w,_){return w===0&&_===C.length?d.fromByteArray(C):d.fromByteArray(C.slice(w,_))}function ge(C,w,_){_=Math.min(C.length,_);const M=[];let W=w;for(;W<_;){const X=C[W];let ie=null,ve=X>239?4:X>223?3:X>191?2:1;if(W+ve<=_){let Le,Fe,Ue,_e;switch(ve){case 1:X<128&&(ie=X);break;case 2:Le=C[W+1],(Le&192)===128&&(_e=(X&31)<<6|Le&63,_e>127&&(ie=_e));break;case 3:Le=C[W+1],Fe=C[W+2],(Le&192)===128&&(Fe&192)===128&&(_e=(X&15)<<12|(Le&63)<<6|Fe&63,_e>2047&&(_e<55296||_e>57343)&&(ie=_e));break;case 4:Le=C[W+1],Fe=C[W+2],Ue=C[W+3],(Le&192)===128&&(Fe&192)===128&&(Ue&192)===128&&(_e=(X&15)<<18|(Le&63)<<12|(Fe&63)<<6|Ue&63,_e>65535&&_e<1114112&&(ie=_e))}}ie===null?(ie=65533,ve=1):ie>65535&&(ie-=65536,M.push(ie>>>10&1023|55296),ie=56320|ie&1023),M.push(ie),W+=ve}return he(M)}const ce=4096;function he(C){const w=C.length;if(w<=ce)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<w;)_+=String.fromCharCode.apply(String,C.slice(M,M+=ce));return _}function Re(C,w,_){let M="";_=Math.min(C.length,_);for(let W=w;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,w,_){let M="";_=Math.min(C.length,_);for(let W=w;W<_;++W)M+=String.fromCharCode(C[W]);return M}function He(C,w,_){const M=C.length;(!w||w<0)&&(w=0),(!_||_<0||_>M)&&(_=M);let W="";for(let X=w;X<_;++X)W+=nb[C[X]];return W}function De(C,w,_){const M=C.slice(w,_);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(w,_){const M=this.length;w=~~w,_=_===void 0?M:~~_,w<0?(w+=M,w<0&&(w=0)):w>M&&(w=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<w&&(_=w);const W=this.subarray(w,_);return Object.setPrototypeOf(W,L.prototype),W};function xe(C,w,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+w>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=this[w],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[w+ie]*X;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=this[w+--_],X=1;for(;_>0&&(X*=256);)W+=this[w+--_]*X;return W},L.prototype.readUint8=L.prototype.readUInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]|this[w+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]<<8|this[w+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},L.prototype.readBigUInt64LE=Nt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,X=this[++w]+this[++w]*2**8+this[++w]*2**16+M*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Nt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=_*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],X=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+M;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=this[w],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[w+ie]*X;return X*=128,W>=X&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(w,_,M){w=w>>>0,_=_>>>0,M||xe(w,_,this.length);let W=_,X=1,ie=this[w+--W];for(;W>0&&(X*=256);)ie+=this[w+--W]*X;return X*=128,ie>=X&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},L.prototype.readInt16LE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const M=this[w]|this[w+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const M=this[w+1]|this[w]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},L.prototype.readInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},L.prototype.readBigInt64LE=Nt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),L.prototype.readBigInt64BE=Nt(function(w){w=w>>>0,H(w,"offset");const _=this[w],M=this[w+7];(_===void 0||M===void 0)&&z(w,this.length-8);const W=(_<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(W)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+M)}),L.prototype.readFloatLE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!0,23,4)},L.prototype.readFloatBE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!1,23,4)},L.prototype.readDoubleLE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!0,52,8)},L.prototype.readDoubleBE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!1,52,8)};function Oe(C,w,_,M,W,X){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>W||w<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(w,_,M,W){if(w=+w,_=_>>>0,M=M>>>0,!W){const ve=Math.pow(2,8*M)-1;Oe(this,w,_,M,ve,0)}let X=1,ie=0;for(this[_]=w&255;++ie<M&&(X*=256);)this[_+ie]=w/X&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(w,_,M,W){if(w=+w,_=_>>>0,M=M>>>0,!W){const ve=Math.pow(2,8*M)-1;Oe(this,w,_,M,ve,0)}let X=M-1,ie=1;for(this[_+X]=w&255;--X>=0&&(ie*=256);)this[_+X]=w/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,1,255,0),this[_]=w&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,2,65535,0),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,2,65535,0),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,4,4294967295,0),this[_+3]=w>>>24,this[_+2]=w>>>16,this[_+1]=w>>>8,this[_]=w&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,4,4294967295,0),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4};function Ye(C,w,_,M,W){D(w,M,W,C,_,7);let X=Number(w&BigInt(4294967295));C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function Ge(C,w,_,M,W){D(w,M,W,C,_,7);let X=Number(w&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(w>>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=Nt(function(w,_=0){return Ye(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Nt(function(w,_=0){return Ge(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(w,_,M,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*M-1);Oe(this,w,_,M,Le-1,-Le)}let X=0,ie=1,ve=0;for(this[_]=w&255;++X<M&&(ie*=256);)w<0&&ve===0&&this[_+X-1]!==0&&(ve=1),this[_+X]=(w/ie>>0)-ve&255;return _+M},L.prototype.writeIntBE=function(w,_,M,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*M-1);Oe(this,w,_,M,Le-1,-Le)}let X=M-1,ie=1,ve=0;for(this[_+X]=w&255;--X>=0&&(ie*=256);)w<0&&ve===0&&this[_+X+1]!==0&&(ve=1),this[_+X]=(w/ie>>0)-ve&255;return _+M},L.prototype.writeInt8=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,1,127,-128),w<0&&(w=255+w+1),this[_]=w&255,_+1},L.prototype.writeInt16LE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,2,32767,-32768),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeInt16BE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,2,32767,-32768),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeInt32LE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,4,2147483647,-2147483648),this[_]=w&255,this[_+1]=w>>>8,this[_+2]=w>>>16,this[_+3]=w>>>24,_+4},L.prototype.writeInt32BE=function(w,_,M){return w=+w,_=_>>>0,M||Oe(this,w,_,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4},L.prototype.writeBigInt64LE=Nt(function(w,_=0){return Ye(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Nt(function(w,_=0){return Ge(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ut(C,w,_,M,W,X){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ft(C,w,_,M,W){return w=+w,_=_>>>0,W||ut(C,w,_,4),g.write(C,w,_,M,23,4),_+4}L.prototype.writeFloatLE=function(w,_,M){return ft(this,w,_,!0,M)},L.prototype.writeFloatBE=function(w,_,M){return ft(this,w,_,!1,M)};function Ve(C,w,_,M,W){return w=+w,_=_>>>0,W||ut(C,w,_,8),g.write(C,w,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(w,_,M){return Ve(this,w,_,!0,M)},L.prototype.writeDoubleBE=function(w,_,M){return Ve(this,w,_,!1,M)},L.prototype.copy=function(w,_,M,W){if(!L.isBuffer(w))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=w.length&&(_=w.length),_||(_=0),W>0&&W<M&&(W=M),W===M||w.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),w.length-_<W-M&&(W=w.length-_+M);const X=W-M;return this===w&&typeof I.prototype.copyWithin=="function"?this.copyWithin(_,M,W):I.prototype.set.call(w,this.subarray(M,W),_),X},L.prototype.fill=function(w,_,M,W){if(typeof w=="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(w.length===1){const ie=w.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));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,w||(w=0);let X;if(typeof w=="number")for(X=_;X<M;++X)this[X]=w;else{const ie=L.isBuffer(w)?w:L.from(w,W),ve=ie.length;if(ve===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(X=0;X<M-_;++X)this[X+_]=ie[X%ve]}return this};const Ot={};function F(C,w,_){Ot[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:w.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,w){return`The "${C}" argument must be of type number. Received type ${typeof w}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,w,_){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 ${w}. Received ${W}`,M},RangeError);function b(C){let w="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)w=`_${C.slice(_-3,_)}${w}`;return`${C.slice(0,_)}${w}`}function S(C,w,_){H(w,"offset"),(C[w]===void 0||C[w+_]===void 0)&&z(w,C.length-(_+1))}function D(C,w,_,M,W,X){if(C>_||C<w){const ie=typeof w=="bigint"?"n":"";let ve;throw w===0||w===BigInt(0)?ve=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:ve=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new Ot.ERR_OUT_OF_RANGE("value",ve,C)}S(M,W,X)}function H(C,w){if(typeof C!="number")throw new Ot.ERR_INVALID_ARG_TYPE(w,"number",C)}function z(C,w,_){throw Math.floor(C)!==C?(H(C,_),new Ot.ERR_OUT_OF_RANGE("offset","an integer",C)):w<0?new Ot.ERR_BUFFER_OUT_OF_BOUNDS:new Ot.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function we(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 Ne(C,w){w=w||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){(w-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===M){(w-=3)>-1&&X.push(239,191,189);continue}W=_;continue}if(_<56320){(w-=3)>-1&&X.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(w-=3)>-1&&X.push(239,191,189);if(W=null,_<128){if((w-=1)<0)break;X.push(_)}else if(_<2048){if((w-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((w-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((w-=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 Ie(C){const w=[];for(let _=0;_<C.length;++_)w.push(C.charCodeAt(_)&255);return w}function Pe(C,w){let _,M,W;const X=[];for(let ie=0;ie<C.length&&!((w-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,X.push(W),X.push(M);return X}function Ae(C){return d.toByteArray(we(C))}function ln(C,w,_,M){let W;for(W=0;W<M&&!(W+_>=w.length||W>=C.length);++W)w[W+_]=C[W];return W}function yt(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function is(C){return C!==C}const nb=(function(){const C="0123456789abcdef",w=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)w[M+W]=C[_]+C[W]}return w})();function Nt(C){return typeof BigInt>"u"?ib:C}function ib(){throw new Error("BigInt not supported")}})(t);const y=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=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Hn)),Hn}var Vn={},Wn={},Gn,qa;function $a(){return qa||(qa=1,Gn=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}),Gn}var Kn,Ha;function Vr(){if(Ha)return Kn;Ha=1;var e=$a();return Kn=function(){return e()&&!!Symbol.toStringTag},Kn}var zn,Va;function Wa(){return Va||(Va=1,zn=Object),zn}var Xn,Ga;function Fg(){return Ga||(Ga=1,Xn=Error),Xn}var Yn,Ka;function Cg(){return Ka||(Ka=1,Yn=EvalError),Yn}var Jn,za;function Bg(){return za||(za=1,Jn=RangeError),Jn}var Zn,Xa;function Lg(){return Xa||(Xa=1,Zn=ReferenceError),Zn}var Qn,Ya;function Ja(){return Ya||(Ya=1,Qn=SyntaxError),Qn}var ei,Za;function cr(){return Za||(Za=1,ei=TypeError),ei}var ti,Qa;function Ug(){return Qa||(Qa=1,ti=URIError),ti}var ri,eu;function jg(){return eu||(eu=1,ri=Math.abs),ri}var ni,tu;function kg(){return tu||(tu=1,ni=Math.floor),ni}var ii,ru;function Dg(){return ru||(ru=1,ii=Math.max),ii}var oi,nu;function Mg(){return nu||(nu=1,oi=Math.min),oi}var si,iu;function qg(){return iu||(iu=1,si=Math.pow),si}var ai,ou;function $g(){return ou||(ou=1,ai=Math.round),ai}var ui,su;function Hg(){return su||(su=1,ui=Number.isNaN||function(t){return t!==t}),ui}var li,au;function Vg(){if(au)return li;au=1;var e=Hg();return li=function(r){return e(r)||r===0?r:r<0?-1:1},li}var ci,uu;function Wg(){return uu||(uu=1,ci=Object.getOwnPropertyDescriptor),ci}var fi,lu;function zt(){if(lu)return fi;lu=1;var e=Wg();if(e)try{e([],"length")}catch{e=null}return fi=e,fi}var hi,cu;function Wr(){if(cu)return hi;cu=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return hi=e,hi}var di,fu;function Gg(){if(fu)return di;fu=1;var e=typeof Symbol<"u"&&Symbol,t=$a();return di=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},di}var pi,hu;function du(){return hu||(hu=1,pi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),pi}var gi,pu;function gu(){if(pu)return gi;pu=1;var e=Wa();return gi=e.getPrototypeOf||null,gi}var yi,yu;function Kg(){if(yu)return yi;yu=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 h=0;h<l.length;h+=1)s[h+c.length]=l[h];return s},i=function(c,l){for(var s=[],f=l,h=0;f<c.length;f+=1,h+=1)s[h]=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 yi=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,h=function(){if(this instanceof f){var y=l.apply(this,o(s,arguments));return Object(y)===y?y:this}return l.apply(c,o(s,arguments))},T=r(0,l.length-s.length),m=[],E=0;E<T;E++)m[E]="$"+E;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var x=function(){};x.prototype=l.prototype,f.prototype=new x,x.prototype=null}return f},yi}var mi,mu;function fr(){if(mu)return mi;mu=1;var e=Kg();return mi=Function.prototype.bind||e,mi}var bi,bu;function wi(){return bu||(bu=1,bi=Function.prototype.call),bi}var vi,wu;function Ei(){return wu||(wu=1,vi=Function.prototype.apply),vi}var xi,vu;function zg(){return vu||(vu=1,xi=typeof Reflect<"u"&&Reflect&&Reflect.apply),xi}var Ai,Eu;function xu(){if(Eu)return Ai;Eu=1;var e=fr(),t=Ei(),r=wi(),n=zg();return Ai=n||e.call(r,t),Ai}var Ti,Au;function Si(){if(Au)return Ti;Au=1;var e=fr(),t=cr(),r=wi(),n=xu();return Ti=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},Ti}var _i,Tu;function Xg(){if(Tu)return _i;Tu=1;var e=Si(),t=zt(),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 _i=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,_i}var Ri,Su;function Oi(){if(Su)return Ri;Su=1;var e=du(),t=gu(),r=Xg();return Ri=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,Ri}var Ni,_u;function Ru(){if(_u)return Ni;_u=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=fr();return Ni=r.call(e,t),Ni}var Ii,Ou;function Nu(){if(Ou)return Ii;Ou=1;var e,t=Wa(),r=Fg(),n=Cg(),o=Bg(),i=Lg(),a=Ja(),u=cr(),c=Ug(),l=jg(),s=kg(),f=Dg(),h=Mg(),T=qg(),m=$g(),E=Vg(),x=Function,y=function($){try{return x('"use strict"; return ('+$+").constructor;")()}catch{}},p=zt(),d=Wr(),g=function(){throw new u},v=p?(function(){try{return arguments.callee,g}catch{try{return p(arguments,"callee").get}catch{return g}}})():g,A=Gg()(),I=Oi(),P=gu(),R=du(),j=Ei(),K=wi(),L={},k=typeof Uint8Array>"u"||!I?e:I(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&I?I([][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%":x,"%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%":A&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":p,"%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"||!A||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&I?I(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":k,"%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%":K,"%Function.prototype.apply%":j,"%Object.defineProperty%":d,"%Object.getPrototypeOf%":P,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":T,"%Math.round%":m,"%Math.sign%":E,"%Reflect.getPrototypeOf%":R};if(I)try{null.error}catch($){var ee=I(I($));re["%Error.prototype%"]=ee}var ue=function $(q){var B;if(q==="%AsyncFunction%")B=y("async function () {}");else if(q==="%GeneratorFunction%")B=y("function* () {}");else if(q==="%AsyncGeneratorFunction%")B=y("async function* () {}");else if(q==="%AsyncGenerator%"){var U=$("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if(q==="%AsyncIteratorPrototype%"){var Y=$("%AsyncGenerator%");Y&&I&&(B=I(Y.prototype))}return re[q]=B,B},le={__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"]},de=fr(),fe=Ru(),be=de.call(K,Array.prototype.concat),pe=de.call(j,Array.prototype.splice),G=de.call(K,String.prototype.replace),Z=de.call(K,String.prototype.slice),Q=de.call(K,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,N=function(q){var B=Z(q,0,1),U=Z(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 G(q,ae,function(oe,ge,ce,he){Y[Y.length]=ce?G(he,V,"$1"):ge||oe}),Y},O=function(q,B){var U=q,Y;if(fe(le,U)&&(Y=le[U],U="%"+Y[0]+"%"),fe(re,U)){var oe=re[U];if(oe===L&&(oe=ue(U)),typeof oe>"u"&&!B)throw new u("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:Y,name:U,value:oe}}throw new a("intrinsic "+q+" does not exist!")};return Ii=function(q,B){if(typeof q!="string"||q.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(Q(/^%?[^%]*%?$/,q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=N(q),Y=U.length>0?U[0]:"",oe=O("%"+Y+"%",B),ge=oe.name,ce=oe.value,he=!1,Re=oe.alias;Re&&(Y=Re[0],pe(U,be([0,1],Re)));for(var te=1,He=!0;te<U.length;te+=1){var De=U[te],xe=Z(De,0,1),Oe=Z(De,-1);if((xe==='"'||xe==="'"||xe==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&xe!==Oe)throw new a("property names with quotes must have matching quotes");if((De==="constructor"||!He)&&(he=!0),Y+="."+De,ge="%"+Y+"%",fe(re,ge))ce=re[ge];else if(ce!=null){if(!(De in ce)){if(!B)throw new u("base intrinsic for "+q+" exists, but the property is not available.");return}if(p&&te+1>=U.length){var Ye=p(ce,De);He=!!Ye,He&&"get"in Ye&&!("originalValue"in Ye.get)?ce=Ye.get:ce=ce[De]}else He=fe(ce,De),ce=ce[De];He&&!he&&(re[ge]=ce)}}return ce},Ii}var Pi,Iu;function hr(){if(Iu)return Pi;Iu=1;var e=Nu(),t=Si(),r=t([e("%String.prototype.indexOf%")]);return Pi=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Pi}var Fi,Pu;function Yg(){if(Pu)return Fi;Pu=1;var e=Vr()(),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,Fi=i?n:o,Fi}var Ci,Fu;function Jg(){if(Fu)return Ci;Fu=1;var e=hr(),t=Vr()(),r=Ru(),n=zt(),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(h){if(!h||typeof h!="object")return!1;var T=n(h,"lastIndex"),m=T&&r(T,"value");if(!m)return!1;try{i(h,c)}catch(E){return E===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:l(h)===s}}return Ci=o,Ci}var Bi,Cu;function Zg(){if(Cu)return Bi;Cu=1;var e=hr(),t=Jg(),r=e("RegExp.prototype.exec"),n=cr();return Bi=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},Bi}var Li,Bu;function Qg(){if(Bu)return Li;Bu=1;var e=hr(),t=Zg(),r=t(/^\s*(?:function)?\*/),n=Vr()(),o=Oi(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return Li=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 h=u();c=h?o(h):!1}return o(s)===c},Li}var Ui,Lu;function e0(){if(Lu)return Ui;Lu=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(p){p!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(d){try{var g=e.call(d);return o.test(g)}catch{return!1}},a=function(d){try{return i(d)?!1:(e.call(d),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",T="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var y=document.all;u.call(y)===u.call(document.all)&&(x=function(d){if((E||!d)&&(typeof d>"u"||typeof d=="object"))try{var g=u.call(d);return(g===f||g===h||g===T||g===c)&&d("")==null}catch{}return!1})}return Ui=t?function(d){if(x(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{t(d,null,r)}catch(g){if(g!==n)return!1}return!i(d)&&a(d)}:function(d){if(x(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(i(d))return!1;var g=u.call(d);return g!==l&&g!==s&&!/^\[object HTML/.test(g)?!1:a(d)},Ui}var ji,Uu;function t0(){if(Uu)return ji;Uu=1;var e=e0(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,h=c.length;f<h;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,h=c.length;f<h;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 ji=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)},ji}var ki,ju;function r0(){return ju||(ju=1,ki=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),ki}var Di,ku;function n0(){if(ku)return Di;ku=1;var e=r0(),t=typeof globalThis>"u"?St:globalThis;return Di=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Di}var Mi={exports:{}},qi,Du;function i0(){if(Du)return qi;Du=1;var e=Wr(),t=Ja(),r=cr(),n=zt();return qi=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,h=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&h?h.configurable:!s,enumerable:c===null&&h?h.enumerable:!c,value:u,writable:l===null&&h?h.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.")},qi}var $i,Mu;function o0(){if(Mu)return $i;Mu=1;var e=Wr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},$i=t,$i}var Hi,qu;function s0(){if(qu)return Hi;qu=1;var e=Nu(),t=i0(),r=o0()(),n=zt(),o=cr(),i=e("%Math.floor%");return Hi=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 h=n(u,"length");h&&!h.configurable&&(s=!1),h&&!h.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Hi}var Vi,$u;function a0(){if($u)return Vi;$u=1;var e=fr(),t=Ei(),r=xu();return Vi=function(){return r(e,t,arguments)},Vi}var Hu;function u0(){return Hu||(Hu=1,(function(e){var t=s0(),r=Wr(),n=Si(),o=a0();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})(Mi)),Mi.exports}var Wi,Vu;function Wu(){if(Vu)return Wi;Vu=1;var e=t0(),t=n0(),r=u0(),n=hr(),o=zt(),i=Oi(),a=n("Object.prototype.toString"),u=Vr()(),c=typeof globalThis>"u"?St:globalThis,l=t(),s=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(x,y){for(var p=0;p<x.length;p+=1)if(x[p]===y)return p;return-1},h={__proto__:null};u&&o&&i?e(l,function(E){var x=new c[E];if(Symbol.toStringTag in x&&i){var y=i(x),p=o(y,Symbol.toStringTag);if(!p&&y){var d=i(y);p=o(d,Symbol.toStringTag)}h["$"+E]=r(p.get)}}):e(l,function(E){var x=new c[E],y=x.slice||x.set;y&&(h["$"+E]=r(y))});var T=function(x){var y=!1;return e(h,function(p,d){if(!y)try{"$"+p(x)===d&&(y=s(d,1))}catch{}}),y},m=function(x){var y=!1;return e(h,function(p,d){if(!y)try{p(x),y=s(d,1)}catch{}}),y};return Wi=function(x){if(!x||typeof x!="object")return!1;if(!u){var y=s(a(x),8,-1);return f(l,y)>-1?y:y!=="Object"?!1:m(x)}return o?T(x):null},Wi}var Gi,Gu;function l0(){if(Gu)return Gi;Gu=1;var e=Wu();return Gi=function(r){return!!e(r)},Gi}var Ku;function c0(){return Ku||(Ku=1,(function(e){var t=Yg(),r=Qg(),n=Wu(),o=l0();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 h=i(BigInt.prototype.valueOf);if(u)var T=i(Symbol.prototype.valueOf);function m(te,He){if(typeof te!="object")return!1;try{return He(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 x(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Z(te)}e.isArrayBufferView=x;function y(te){return n(te)==="Uint8Array"}e.isUint8Array=y;function p(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function d(te){return n(te)==="Uint16Array"}e.isUint16Array=d;function g(te){return n(te)==="Uint32Array"}e.isUint32Array=g;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function A(te){return n(te)==="Int16Array"}e.isInt16Array=A;function I(te){return n(te)==="Int32Array"}e.isInt32Array=I;function P(te){return n(te)==="Float32Array"}e.isFloat32Array=P;function R(te){return n(te)==="Float64Array"}e.isFloat64Array=R;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function K(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=K;function L(te){return c(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function k(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=k;function re(te){return c(te)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ee(te){return typeof Set>"u"?!1:re.working?re(te):te instanceof Set}e.isSet=ee;function ue(te){return c(te)==="[object WeakMap]"}ue.working=typeof WeakMap<"u"&&ue(new WeakMap);function le(te){return typeof WeakMap>"u"?!1:ue.working?ue(te):te instanceof WeakMap}e.isWeakMap=le;function de(te){return c(te)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function fe(te){return de(te)}e.isWeakSet=fe;function be(te){return c(te)==="[object ArrayBuffer]"}be.working=typeof ArrayBuffer<"u"&&be(new ArrayBuffer);function pe(te){return typeof ArrayBuffer>"u"?!1:be.working?be(te):te instanceof ArrayBuffer}e.isArrayBuffer=pe;function G(te){return c(te)==="[object DataView]"}G.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&G(new DataView(new ArrayBuffer(1),0,1));function Z(te){return typeof DataView>"u"?!1:G.working?G(te):te instanceof DataView}e.isDataView=Z;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ae(te){return c(te)==="[object SharedArrayBuffer]"}function V(te){return typeof Q>"u"?!1:(typeof ae.working>"u"&&(ae.working=ae(new Q)),ae.working?ae(te):te instanceof Q)}e.isSharedArrayBuffer=V;function N(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=N;function O(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=O;function $(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=$;function q(te){return c(te)==="[object Generator]"}e.isGeneratorObject=q;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 oe(te){return m(te,f)}e.isBooleanObject=oe;function ge(te){return a&&m(te,h)}e.isBigIntObject=ge;function ce(te){return u&&m(te,T)}e.isSymbolObject=ce;function he(te){return U(te)||Y(te)||oe(te)||ge(te)||ce(te)}e.isBoxedPrimitive=he;function Re(te){return typeof Uint8Array<"u"&&(pe(te)||V(te))}e.isAnyArrayBuffer=Re,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})})(Wn)),Wn}var Ki,zu;function f0(){return zu||(zu=1,Ki=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ki}var Xu;function Yu(){return Xu||(Xu=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(Z){for(var Q=Object.keys(Z),ae={},V=0;V<Q.length;V++)ae[Q[V]]=Object.getOwnPropertyDescriptor(Z,Q[V]);return ae},r=/%[sdj%]/g;e.format=function(G){if(!v(G)){for(var Z=[],Q=0;Q<arguments.length;Q++)Z.push(a(arguments[Q]));return Z.join(" ")}for(var Q=1,ae=arguments,V=ae.length,N=String(G).replace(r,function($){if($==="%%")return"%";if(Q>=V)return $;switch($){case"%s":return String(ae[Q++]);case"%d":return Number(ae[Q++]);case"%j":try{return JSON.stringify(ae[Q++])}catch{return"[Circular]"}default:return $}}),O=ae[Q];Q<V;O=ae[++Q])p(O)||!R(O)?N+=" "+O:N+=" "+a(O);return N},e.deprecate=function(G,Z){if(typeof me<"u"&&me.noDeprecation===!0)return G;if(typeof me>"u")return function(){return e.deprecate(G,Z).apply(this,arguments)};var Q=!1;function ae(){if(!Q){if(me.throwDeprecation)throw new Error(Z);me.traceDeprecation?console.trace(Z):console.error(Z),Q=!0}return G.apply(this,arguments)}return ae};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(G){if(G=G.toUpperCase(),!n[G])if(o.test(G)){var Z=me.pid;n[G]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",G,Z,Q)}}else n[G]=function(){};return n[G]};function a(G,Z){var Q={seen:[],stylize:c};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),y(Z)?Q.showHidden=Z:Z&&e._extend(Q,Z),I(Q.showHidden)&&(Q.showHidden=!1),I(Q.depth)&&(Q.depth=2),I(Q.colors)&&(Q.colors=!1),I(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=u),s(Q,G,Q.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(G,Z){var Q=a.styles[Z];return Q?"\x1B["+a.colors[Q][0]+"m"+G+"\x1B["+a.colors[Q][1]+"m":G}function c(G,Z){return G}function l(G){var Z={};return G.forEach(function(Q,ae){Z[Q]=!0}),Z}function s(G,Z,Q){if(G.customInspect&&Z&&L(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ae=Z.inspect(Q,G);return v(ae)||(ae=s(G,ae,Q)),ae}var V=f(G,Z);if(V)return V;var N=Object.keys(Z),O=l(N);if(G.showHidden&&(N=Object.getOwnPropertyNames(Z)),K(Z)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return h(Z);if(N.length===0){if(L(Z)){var $=Z.name?": "+Z.name:"";return G.stylize("[Function"+$+"]","special")}if(P(Z))return G.stylize(RegExp.prototype.toString.call(Z),"regexp");if(j(Z))return G.stylize(Date.prototype.toString.call(Z),"date");if(K(Z))return h(Z)}var q="",B=!1,U=["{","}"];if(x(Z)&&(B=!0,U=["[","]"]),L(Z)){var Y=Z.name?": "+Z.name:"";q=" [Function"+Y+"]"}if(P(Z)&&(q=" "+RegExp.prototype.toString.call(Z)),j(Z)&&(q=" "+Date.prototype.toUTCString.call(Z)),K(Z)&&(q=" "+h(Z)),N.length===0&&(!B||Z.length==0))return U[0]+q+U[1];if(Q<0)return P(Z)?G.stylize(RegExp.prototype.toString.call(Z),"regexp"):G.stylize("[Object]","special");G.seen.push(Z);var oe;return B?oe=T(G,Z,Q,O,N):oe=N.map(function(ge){return m(G,Z,Q,O,ge,B)}),G.seen.pop(),E(oe,q,U)}function f(G,Z){if(I(Z))return G.stylize("undefined","undefined");if(v(Z)){var Q="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(Q,"string")}if(g(Z))return G.stylize(""+Z,"number");if(y(Z))return G.stylize(""+Z,"boolean");if(p(Z))return G.stylize("null","null")}function h(G){return"["+Error.prototype.toString.call(G)+"]"}function T(G,Z,Q,ae,V){for(var N=[],O=0,$=Z.length;O<$;++O)de(Z,String(O))?N.push(m(G,Z,Q,ae,String(O),!0)):N.push("");return V.forEach(function(q){q.match(/^\d+$/)||N.push(m(G,Z,Q,ae,q,!0))}),N}function m(G,Z,Q,ae,V,N){var O,$,q;if(q=Object.getOwnPropertyDescriptor(Z,V)||{value:Z[V]},q.get?q.set?$=G.stylize("[Getter/Setter]","special"):$=G.stylize("[Getter]","special"):q.set&&($=G.stylize("[Setter]","special")),de(ae,V)||(O="["+V+"]"),$||(G.seen.indexOf(q.value)<0?(p(Q)?$=s(G,q.value,null):$=s(G,q.value,Q-1),$.indexOf(`
7
+ `)>-1&&(N?$=$.split(`
8
+ `).map(function(B){return" "+B}).join(`
9
+ `).slice(2):$=`
10
+ `+$.split(`
11
+ `).map(function(B){return" "+B}).join(`
12
+ `))):$=G.stylize("[Circular]","special")),I(O)){if(N&&V.match(/^\d+$/))return $;O=JSON.stringify(""+V),O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.slice(1,-1),O=G.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=G.stylize(O,"string"))}return O+": "+$}function E(G,Z,Q){var ae=G.reduce(function(V,N){return N.indexOf(`
13
+ `)>=0,V+N.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ae>60?Q[0]+(Z===""?"":Z+`
14
+ `)+" "+G.join(`,
15
+ `)+" "+Q[1]:Q[0]+Z+" "+G.join(", ")+" "+Q[1]}e.types=c0();function x(G){return Array.isArray(G)}e.isArray=x;function y(G){return typeof G=="boolean"}e.isBoolean=y;function p(G){return G===null}e.isNull=p;function d(G){return G==null}e.isNullOrUndefined=d;function g(G){return typeof G=="number"}e.isNumber=g;function v(G){return typeof G=="string"}e.isString=v;function A(G){return typeof G=="symbol"}e.isSymbol=A;function I(G){return G===void 0}e.isUndefined=I;function P(G){return R(G)&&re(G)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function R(G){return typeof G=="object"&&G!==null}e.isObject=R;function j(G){return R(G)&&re(G)==="[object Date]"}e.isDate=j,e.types.isDate=j;function K(G){return R(G)&&(re(G)==="[object Error]"||G instanceof Error)}e.isError=K,e.types.isNativeError=K;function L(G){return typeof G=="function"}e.isFunction=L;function k(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}e.isPrimitive=k,e.isBuffer=f0();function re(G){return Object.prototype.toString.call(G)}function ee(G){return G<10?"0"+G.toString(10):G.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var G=new Date,Z=[ee(G.getHours()),ee(G.getMinutes()),ee(G.getSeconds())].join(":");return[G.getDate(),ue[G.getMonth()],Z].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=jt(),e._extend=function(G,Z){if(!Z||!R(Z))return G;for(var Q=Object.keys(Z),ae=Q.length;ae--;)G[Q[ae]]=Z[Q[ae]];return G};function de(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)}var fe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(fe&&Z[fe]){var Q=Z[fe];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var ae,V,N=new Promise(function(q,B){ae=q,V=B}),O=[],$=0;$<arguments.length;$++)O.push(arguments[$]);O.push(function(q,B){q?V(q):ae(B)});try{Z.apply(this,O)}catch(q){V(q)}return N}return Object.setPrototypeOf(Q,Object.getPrototypeOf(Z)),fe&&Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,t(Z))},e.promisify.custom=fe;function be(G,Z){if(!G){var Q=new Error("Promise was rejected with a falsy value");Q.reason=G,G=Q}return Z(G)}function pe(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Q=[],ae=0;ae<arguments.length;ae++)Q.push(arguments[ae]);var V=Q.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var N=this,O=function(){return V.apply(N,arguments)};G.apply(this,Q).then(function($){me.nextTick(O.bind(null,null,$))},function($){me.nextTick(be.bind(null,$,O))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(G)),Object.defineProperties(Z,t(G)),Z}e.callbackify=pe})(Vn)),Vn}var zi,Ju;function h0(){if(Ju)return zi;Ju=1;function e(m,E){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);E&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(m,p).enumerable})),x.push.apply(x,y)}return x}function t(m){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?e(Object(x),!0).forEach(function(y){r(m,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):e(Object(x)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(x,y))})}return m}function r(m,E,x){return E=a(E),E in m?Object.defineProperty(m,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[E]=x,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 x=0;x<E.length;x++){var y=E[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,a(y.key),y)}}function i(m,E,x){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 x=m[Symbol.toPrimitive];if(x!==void 0){var y=x.call(m,E);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=Hr(),l=c.Buffer,s=Yu(),f=s.inspect,h=f&&f.custom||"inspect";function T(m,E,x){l.prototype.copy.call(m,E,x)}return zi=(function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=x+y.data;return p}},{key:"concat",value:function(x){if(this.length===0)return l.alloc(0);for(var y=l.allocUnsafe(x>>>0),p=this.head,d=0;p;)T(p.data,y,d),d+=p.data.length,p=p.next;return y}},{key:"consume",value:function(x,y){var p;return x<this.head.data.length?(p=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?p=this.shift():p=y?this._getString(x):this._getBuffer(x),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var y=this.head,p=1,d=y.data;for(x-=d.length;y=y.next;){var g=y.data,v=x>g.length?g.length:x;if(v===g.length?d+=g:d+=g.slice(0,x),x-=v,x===0){v===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(v));break}++p}return this.length-=p,d}},{key:"_getBuffer",value:function(x){var y=l.allocUnsafe(x),p=this.head,d=1;for(p.data.copy(y),x-=p.data.length;p=p.next;){var g=p.data,v=x>g.length?g.length:x;if(g.copy(y,y.length-x,0,v),x-=v,x===0){v===g.length?(++d,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(v));break}++d}return this.length-=d,y}},{key:h,value:function(x,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),m})(),zi}var Xi,Zu;function Qu(){if(Zu)return Xi;Zu=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 Xi={destroy:e,undestroy:n,errorOrDestroy:i},Xi}var Yi={},el;function Xt(){if(el)return Yi;el=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(h,T,m){return typeof c=="string"?c:c(h,T,m)}var f=(function(h){e(T,h);function T(m,E,x){return h.call(this,s(m,E,x))||this}return T})(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 h=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(h," ").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"),Yi.codes=t,Yi}var Ji,tl;function rl(){if(tl)return Ji;tl=1;var e=Xt().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 Ji={getHighWaterMark:r},Ji}var Zi,nl;function d0(){if(nl)return Zi;nl=1,Zi=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(!St.localStorage)return!1}catch{return!1}var n=St.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Zi}var Qi,il;function ol(){if(il)return Qi;il=1,Qi=P;function e(V){var N=this;this.next=null,this.entry=null,this.finish=function(){ae(N,V)}}var t;P.WritableState=A;var r={deprecate:d0()},n=Da(),o=Hr().Buffer,i=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var c=Qu(),l=rl(),s=l.getHighWaterMark,f=Xt().codes,h=f.ERR_INVALID_ARG_TYPE,T=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,x=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,d=f.ERR_UNKNOWN_ENCODING,g=c.errorOrDestroy;jt()(P,n);function v(){}function A(V,N,O){t=t||Yt(),V=V||{},typeof O!="boolean"&&(O=N instanceof t),this.objectMode=!!V.objectMode,O&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",O),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=V.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){ue(N,q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var N=this.bufferedRequest,O=[];N;)O.push(N),N=N.next;return O},(function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(N){return I.call(this,N)?!0:this!==P?!1:N&&N._writableState instanceof A}})):I=function(N){return N instanceof this};function P(V){t=t||Yt();var N=this instanceof t;if(!N&&!I.call(P,this))return new P(V);this._writableState=new A(V,this,N),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}P.prototype.pipe=function(){g(this,new E)};function R(V,N){var O=new p;g(V,O),me.nextTick(N,O)}function j(V,N,O,$){var q;return O===null?q=new y:typeof O!="string"&&!N.objectMode&&(q=new h("chunk",["string","Buffer"],O)),q?(g(V,q),me.nextTick($,q),!1):!0}P.prototype.write=function(V,N,O){var $=this._writableState,q=!1,B=!$.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof N=="function"&&(O=N,N=null),B?N="buffer":N||(N=$.defaultEncoding),typeof O!="function"&&(O=v),$.ending?R(this,O):(B||j(this,$,V,O))&&($.pendingcb++,q=L(this,$,B,V,N,O)),q},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&fe(this,V))},P.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new d(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(V,N,O){return!V.objectMode&&V.decodeStrings!==!1&&typeof N=="string"&&(N=o.from(N,O)),N}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,N,O,$,q,B){if(!O){var U=K(N,$,q);$!==U&&(O=!0,q="buffer",$=U)}var Y=N.objectMode?1:$.length;N.length+=Y;var oe=N.length<N.highWaterMark;if(oe||(N.needDrain=!0),N.writing||N.corked){var ge=N.lastBufferedRequest;N.lastBufferedRequest={chunk:$,encoding:q,isBuf:O,callback:B,next:null},ge?ge.next=N.lastBufferedRequest:N.bufferedRequest=N.lastBufferedRequest,N.bufferedRequestCount+=1}else k(V,N,!1,Y,$,q,B);return oe}function k(V,N,O,$,q,B,U){N.writelen=$,N.writecb=U,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new x("write")):O?V._writev(q,N.onwrite):V._write(q,B,N.onwrite),N.sync=!1}function re(V,N,O,$,q){--N.pendingcb,O?(me.nextTick(q,$),me.nextTick(Z,V,N),V._writableState.errorEmitted=!0,g(V,$)):(q($),V._writableState.errorEmitted=!0,g(V,$),Z(V,N))}function ee(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function ue(V,N){var O=V._writableState,$=O.sync,q=O.writecb;if(typeof q!="function")throw new m;if(ee(O),N)re(V,O,$,N,q);else{var B=be(O)||V.destroyed;!B&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&fe(V,O),$?me.nextTick(le,V,O,B,q):le(V,O,B,q)}}function le(V,N,O,$){O||de(V,N),N.pendingcb--,$(),Z(V,N)}function de(V,N){N.length===0&&N.needDrain&&(N.needDrain=!1,V.emit("drain"))}function fe(V,N){N.bufferProcessing=!0;var O=N.bufferedRequest;if(V._writev&&O&&O.next){var $=N.bufferedRequestCount,q=new Array($),B=N.corkedRequestsFree;B.entry=O;for(var U=0,Y=!0;O;)q[U]=O,O.isBuf||(Y=!1),O=O.next,U+=1;q.allBuffers=Y,k(V,N,!0,N.length,q,"",B.finish),N.pendingcb++,N.lastBufferedRequest=null,B.next?(N.corkedRequestsFree=B.next,B.next=null):N.corkedRequestsFree=new e(N),N.bufferedRequestCount=0}else{for(;O;){var oe=O.chunk,ge=O.encoding,ce=O.callback,he=N.objectMode?1:oe.length;if(k(V,N,!1,he,oe,ge,ce),O=O.next,N.bufferedRequestCount--,N.writing)break}O===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=O,N.bufferProcessing=!1}P.prototype._write=function(V,N,O){O(new T("_write()"))},P.prototype._writev=null,P.prototype.end=function(V,N,O){var $=this._writableState;return typeof V=="function"?(O=V,V=null,N=null):typeof N=="function"&&(O=N,N=null),V!=null&&this.write(V,N),$.corked&&($.corked=1,this.uncork()),$.ending||Q(this,$,O),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function be(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function pe(V,N){V._final(function(O){N.pendingcb--,O&&g(V,O),N.prefinished=!0,V.emit("prefinish"),Z(V,N)})}function G(V,N){!N.prefinished&&!N.finalCalled&&(typeof V._final=="function"&&!N.destroyed?(N.pendingcb++,N.finalCalled=!0,me.nextTick(pe,V,N)):(N.prefinished=!0,V.emit("prefinish")))}function Z(V,N){var O=be(N);if(O&&(G(V,N),N.pendingcb===0&&(N.finished=!0,V.emit("finish"),N.autoDestroy))){var $=V._readableState;(!$||$.autoDestroy&&$.endEmitted)&&V.destroy()}return O}function Q(V,N,O){N.ending=!0,Z(V,N),O&&(N.finished?me.nextTick(O):V.once("finish",O)),N.ended=!0,V.writable=!1}function ae(V,N,O){var $=V.entry;for(V.entry=null;$;){var q=$.callback;N.pendingcb--,q(O),$=$.next}N.corkedRequestsFree.next=V}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),P.prototype.destroy=c.destroy,P.prototype._undestroy=c.undestroy,P.prototype._destroy=function(V,N){N(V)},Qi}var eo,sl;function Yt(){if(sl)return eo;sl=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};eo=a;var t=dl(),r=ol();jt()(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)}}),eo}var to={},Gr={exports:{}};var al;function p0(){return al||(al=1,(function(e,t){var r=Hr(),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)}})(Gr,Gr.exports)),Gr.exports}var ul;function ro(){if(ul)return to;ul=1;var e=p0().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.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(y){if(!y)return"utf8";for(var p;;)switch(y){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 y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function n(y){var p=r(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}to.StringDecoder=o;function o(y){this.encoding=n(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=h,p=4;break;case"utf8":this.fillLast=c,p=4;break;case"base64":this.text=T,this.end=m,p=3;break;default:this.write=E,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,d;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<y.length?p?p+this.text(y,d):this.text(y,d):p||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,d){var g=p.length-1;if(g<d)return 0;var v=i(p[g]);return v>=0?(v>0&&(y.lastNeed=v-1),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(y.lastNeed=v-2),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(v===2?v=0:y.lastNeed=v-3),v):0))}function u(y,p,d){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function c(y){var p=this.lastTotal-this.lastNeed,d=u(this,y);if(d!==void 0)return d;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function l(y,p){var d=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=d;var g=y.length-(d-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function s(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var d=y.toString("utf16le",p);if(d){var g=d.charCodeAt(d.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function h(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,d)}return p}function T(y,p){var d=(y.length-p)%3;return d===0?y.toString("base64",p):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-d))}function m(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function E(y){return y.toString(this.encoding)}function x(y){return y&&y.length?this.write(y):""}return to}var no,ll;function io(){if(ll)return no;ll=1;var e=Xt().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||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||u.call(i)},T=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,T=!0,l||u.call(i)},E=function(d){u.call(i,d)},x=function(){var d;if(c&&!T)return(!i._readableState||!i._readableState.ended)&&(d=new e),u.call(i,d);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(d=new e),u.call(i,d)},y=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",x),i.req?y():i.on("request",y)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",h),a.error!==!1&&i.on("error",E),i.on("close",x),function(){i.removeListener("complete",h),i.removeListener("abort",x),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",h),i.removeListener("end",m),i.removeListener("error",E),i.removeListener("close",x)}}return no=o,no}var oo,cl;function g0(){if(cl)return oo;cl=1;var e;function t(d,g,v){return g=r(g),g in d?Object.defineProperty(d,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[g]=v,d}function r(d){var g=n(d,"string");return typeof g=="symbol"?g:String(g)}function n(d,g){if(typeof d!="object"||d===null)return d;var v=d[Symbol.toPrimitive];if(v!==void 0){var A=v.call(d,g);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(d)}var o=io(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function h(d,g){return{value:d,done:g}}function T(d){var g=d[i];if(g!==null){var v=d[f].read();v!==null&&(d[l]=null,d[i]=null,d[a]=null,g(h(v,!1)))}}function m(d){me.nextTick(T,d)}function E(d,g){return function(v,A){d.then(function(){if(g[c]){v(h(void 0,!0));return}g[s](v,A)},A)}}var x=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,v=this[u];if(v!==null)return Promise.reject(v);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(R,j){me.nextTick(function(){g[u]?j(g[u]):R(h(void 0,!0))})});var A=this[l],I;if(A)I=new Promise(E(A,this));else{var P=this[f].read();if(P!==null)return Promise.resolve(h(P,!1));I=new Promise(this[s])}return this[l]=I,I}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(v,A){g[f].destroy(null,function(I){if(I){A(I);return}v(h(void 0,!0))})})}),e),x),p=function(g){var v,A=Object.create(y,(v={},t(v,f,{value:g,writable:!0}),t(v,i,{value:null,writable:!0}),t(v,a,{value:null,writable:!0}),t(v,u,{value:null,writable:!0}),t(v,c,{value:g._readableState.endEmitted,writable:!0}),t(v,s,{value:function(P,R){var j=A[f].read();j?(A[l]=null,A[i]=null,A[a]=null,P(h(j,!1))):(A[i]=P,A[a]=R)},writable:!0}),v));return A[l]=null,o(g,function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=A[a];P!==null&&(A[l]=null,A[i]=null,A[a]=null,P(I)),A[u]=I;return}var R=A[i];R!==null&&(A[l]=null,A[i]=null,A[a]=null,R(h(void 0,!0))),A[c]=!0}),g.on("readable",m.bind(null,A)),A};return oo=p,oo}var so,fl;function y0(){return fl||(fl=1,so=function(){throw new Error("Readable.from is not available in the browser")}),so}var ao,hl;function dl(){if(hl)return ao;hl=1,ao=R;var e;R.ReadableState=P,qn().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Da(),n=Hr().Buffer,o=(typeof St<"u"?St: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=Yu(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=h0(),s=Qu(),f=rl(),h=f.getHighWaterMark,T=Xt().codes,m=T.ERR_INVALID_ARG_TYPE,E=T.ERR_STREAM_PUSH_AFTER_EOF,x=T.ERR_METHOD_NOT_IMPLEMENTED,y=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,d,g;jt()(R,r);var v=s.errorOrDestroy,A=["error","close","destroy","pause","resume"];function I(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 P(B,U,Y){e=e||Yt(),B=B||{},typeof Y!="boolean"&&(Y=U instanceof e),this.objectMode=!!B.objectMode,Y&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(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&&(p||(p=ro().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function R(B){if(e=e||Yt(),!(this instanceof R))return new R(B);var U=this instanceof e;this._readableState=new P(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(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),R.prototype.destroy=s.destroy,R.prototype._undestroy=s.undestroy,R.prototype._destroy=function(B,U){U(B)},R.prototype.push=function(B,U){var Y=this._readableState,oe;return Y.objectMode?oe=!0:typeof B=="string"&&(U=U||Y.defaultEncoding,U!==Y.encoding&&(B=n.from(B,U),U=""),oe=!0),j(this,B,U,!1,oe)},R.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,Y,oe,ge){c("readableAddChunk",U);var ce=B._readableState;if(U===null)ce.reading=!1,ue(B,ce);else{var he;if(ge||(he=L(ce,U)),he)v(B,he);else if(ce.objectMode||U&&U.length>0)if(typeof U!="string"&&!ce.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),oe)ce.endEmitted?v(B,new y):K(B,ce,U,!0);else if(ce.ended)v(B,new E);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!Y?(U=ce.decoder.write(U),ce.objectMode||U.length!==0?K(B,ce,U,!1):fe(B,ce)):K(B,ce,U,!1)}else oe||(ce.reading=!1,fe(B,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function K(B,U,Y,oe){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",Y)):(U.length+=U.objectMode?1:Y.length,oe?U.buffer.unshift(Y):U.buffer.push(Y),U.needReadable&&le(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}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function(B){p||(p=ro().StringDecoder);var U=new p(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var Y=this._readableState.buffer.head,oe="";Y!==null;)oe+=U.write(Y.data),Y=Y.next;return this._readableState.buffer.clear(),oe!==""&&this._readableState.buffer.push(oe),this._readableState.length=oe.length,this};var k=1073741824;function re(B){return B>=k?B=k:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function ee(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=re(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}R.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?O(this):le(this),null;if(B=ee(B,U),B===0&&U.ended)return U.length===0&&O(this),null;var oe=U.needReadable;c("need readable",oe),(U.length===0||U.length-B<U.highWaterMark)&&(oe=!0,c("length less than watermark",oe)),U.ended||U.reading?(oe=!1,c("reading or ended",oe)):oe&&(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=ee(Y,U)));var ge;return B>0?ge=N(B,U):ge=null,ge===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&&O(this)),ge!==null&&this.emit("data",ge),ge};function ue(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?le(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,de(B)))}}function le(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(de,B))}function de(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,V(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,me.nextTick(be,B,U))}function be(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}R.prototype._read=function(B){v(this,new x("_read()"))},R.prototype.pipe=function(B,U){var Y=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=B;break;case 1:oe.pipes=[oe.pipes,B];break;default:oe.pipes.push(B);break}oe.pipesCount+=1,c("pipe count=%d opts=%j",oe.pipesCount,U);var ge=(!U||U.end!==!1)&&B!==me.stdout&&B!==me.stderr,ce=ge?Re:ut;oe.endEmitted?me.nextTick(ce):Y.once("end",ce),B.on("unpipe",he);function he(ft,Ve){c("onunpipe"),ft===Y&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,De())}function Re(){c("onend"),B.end()}var te=pe(Y);B.on("drain",te);var He=!1;function De(){c("cleanup"),B.removeListener("close",Ye),B.removeListener("finish",Ge),B.removeListener("drain",te),B.removeListener("error",Oe),B.removeListener("unpipe",he),Y.removeListener("end",Re),Y.removeListener("end",ut),Y.removeListener("data",xe),He=!0,oe.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",xe);function xe(ft){c("ondata");var Ve=B.write(ft);c("dest.write",Ve),Ve===!1&&((oe.pipesCount===1&&oe.pipes===B||oe.pipesCount>1&&q(oe.pipes,B)!==-1)&&!He&&(c("false write response, pause",oe.awaitDrain),oe.awaitDrain++),Y.pause())}function Oe(ft){c("onerror",ft),ut(),B.removeListener("error",Oe),t(B,"error")===0&&v(B,ft)}I(B,"error",Oe);function Ye(){B.removeListener("finish",Ge),ut()}B.once("close",Ye);function Ge(){c("onfinish"),B.removeListener("close",Ye),ut()}B.once("finish",Ge);function ut(){c("unpipe"),Y.unpipe(B)}return B.emit("pipe",Y),oe.flowing||(c("pipe resume"),Y.resume()),B};function pe(B){return function(){var Y=B._readableState;c("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&t(B,"data")&&(Y.flowing=!0,V(B))}}R.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 oe=U.pipes,ge=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var ce=0;ce<ge;ce++)oe[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var he=q(U.pipes,B);return he===-1?this:(U.pipes.splice(he,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,Y),this)},R.prototype.on=function(B,U){var Y=r.prototype.on.call(this,B,U),oe=this._readableState;return B==="data"?(oe.readableListening=this.listenerCount("readable")>0,oe.flowing!==!1&&this.resume()):B==="readable"&&!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.flowing=!1,oe.emittedReadable=!1,c("on readable",oe.length,oe.reading),oe.length?le(this):oe.reading||me.nextTick(Z,this)),Y},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(B,U){var Y=r.prototype.removeListener.call(this,B,U);return B==="readable"&&me.nextTick(G,this),Y},R.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&me.nextTick(G,this),U};function G(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 Z(B){c("readable nexttick read 0"),B.read(0)}R.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("resume"),B.flowing=!B.readableListening,Q(this,B)),B.paused=!1,this};function Q(B,U){U.resumeScheduled||(U.resumeScheduled=!0,me.nextTick(ae,B,U))}function ae(B,U){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}R.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 V(B){var U=B._readableState;for(c("flow",U.flowing);U.flowing&&B.read()!==null;);}R.prototype.wrap=function(B){var U=this,Y=this._readableState,oe=!1;B.on("end",function(){if(c("wrapped end"),Y.decoder&&!Y.ended){var he=Y.decoder.end();he&&he.length&&U.push(he)}U.push(null)}),B.on("data",function(he){if(c("wrapped data"),Y.decoder&&(he=Y.decoder.write(he)),!(Y.objectMode&&he==null)&&!(!Y.objectMode&&(!he||!he.length))){var Re=U.push(he);Re||(oe=!0,B.pause())}});for(var ge in B)this[ge]===void 0&&typeof B[ge]=="function"&&(this[ge]=(function(Re){return function(){return B[Re].apply(B,arguments)}})(ge));for(var ce=0;ce<A.length;ce++)B.on(A[ce],this.emit.bind(this,A[ce]));return this._read=function(he){c("wrapped _read",he),oe&&(oe=!1,B.resume())},this},typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=g0()),d(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),R._fromList=N,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function N(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 O(B){var U=B._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,me.nextTick($,U,B))}function $(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"&&(R.from=function(B,U){return g===void 0&&(g=y0()),g(R,B,U)});function q(B,U){for(var Y=0,oe=B.length;Y<oe;Y++)if(B[Y]===U)return Y;return-1}return ao}var uo,pl;function gl(){if(pl)return uo;pl=1,uo=u;var e=Xt().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=Yt();jt()(u,i);function a(s,f){var h=this._transformState;h.transforming=!1;var T=h.writecb;if(T===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),T(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,h){l(s,f,h)}):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,h){h(new t("_transform()"))},u.prototype._write=function(s,f,h){var T=this._transformState;if(T.writecb=h,T.writechunk=s,T.writeencoding=f,!T.transforming){var m=this._readableState;(T.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(h){f(h)})};function l(s,f,h){if(f)return s.emit("error",f);if(h!=null&&s.push(h),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return uo}var lo,yl;function m0(){if(yl)return lo;yl=1,lo=t;var e=gl();jt()(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)},lo}var co,ml;function b0(){if(ml)return co;ml=1;var e;function t(h){var T=!1;return function(){T||(T=!0,h.apply(void 0,arguments))}}var r=Xt().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function u(h,T,m,E){E=t(E);var x=!1;h.on("close",function(){x=!0}),e===void 0&&(e=io()),e(h,{readable:T,writable:m},function(p){if(p)return E(p);x=!0,E()});var y=!1;return function(p){if(!x&&!y){if(y=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();E(p||new o("pipe"))}}}function c(h){h()}function l(h,T){return h.pipe(T)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,T=new Array(h),m=0;m<h;m++)T[m]=arguments[m];var E=s(T);if(Array.isArray(T[0])&&(T=T[0]),T.length<2)throw new n("streams");var x,y=T.map(function(p,d){var g=d<T.length-1,v=d>0;return u(p,g,v,function(A){x||(x=A),A&&y.forEach(c),!g&&(y.forEach(c),E(x))})});return T.reduce(l)}return co=f,co}var fo,bl;function w0(){if(bl)return fo;bl=1,fo=r;var e=qn().EventEmitter,t=jt();t(r,e),r.Readable=dl(),r.Writable=ol(),r.Duplex=Yt(),r.Transform=gl(),r.PassThrough=m0(),r.finished=io(),r.pipeline=b0(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(T){n.writable&&n.write(T)===!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(T){if(h(),e.listenerCount(this,"error")===0)throw T}i.on("error",f),n.on("error",f);function h(){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",h),i.removeListener("close",h),n.removeListener("close",h)}return i.on("end",h),i.on("close",h),n.on("close",h),n.emit("pipe",i),n},fo}var wl;function v0(){return wl||(wl=1,(function(e){(function(t){t.parser=function(N,O){return new n(N,O)},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(N,O){if(!(this instanceof n))return new n(N,O);var $=this;i($),$.q=$.c="",$.bufferCheckPosition=t.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!N,$.noscript=!!(N||$.opt.noscript),$.state=R.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=$.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(E)),$.opt.unquotedAttributeValues===void 0&&($.opt.unquotedAttributeValues=!N),$.trackPosition=$.opt.position!==!1,$.trackPosition&&($.position=$.line=$.column=0),K($,"onready")}Object.create||(Object.create=function(N){function O(){}O.prototype=N;var $=new O;return $}),Object.keys||(Object.keys=function(N){var O=[];for(var $ in N)N.hasOwnProperty($)&&O.push($);return O});function o(N){for(var O=Math.max(t.MAX_BUFFER_LENGTH,10),$=0,q=0,B=r.length;q<B;q++){var U=N[r[q]].length;if(U>O)switch(r[q]){case"textNode":k(N);break;case"cdata":L(N,"oncdata",N.cdata),N.cdata="";break;case"script":L(N,"onscript",N.script),N.script="";break;default:ee(N,"Max buffer length exceeded: "+r[q])}$=Math.max($,U)}var Y=t.MAX_BUFFER_LENGTH-$;N.bufferCheckPosition=Y+N.position}function i(N){for(var O=0,$=r.length;O<$;O++)N[r[O]]=""}function a(N){k(N),N.cdata!==""&&(L(N,"oncdata",N.cdata),N.cdata=""),N.script!==""&&(L(N,"onscript",N.script),N.script="")}n.prototype={end:function(){ue(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=w0().Stream}catch{u=function(){}}u||(u=function(){});var c=t.EVENTS.filter(function(N){return N!=="error"&&N!=="end"});function l(N,O){return new s(N,O)}function s(N,O){if(!(this instanceof s))return new s(N,O);u.apply(this),this._parser=new n(N,O),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(q){$.emit("error",q),$._parser.error=null},this._decoder=null,c.forEach(function(q){Object.defineProperty($,"on"+q,{get:function(){return $._parser["on"+q]},set:function(B){if(!B)return $.removeAllListeners(q),$._parser["on"+q]=B,B;$.on(q,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(N){if(typeof Ht=="function"&&typeof Ht.isBuffer=="function"&&Ht.isBuffer(N)){if(!this._decoder){var O=ro().StringDecoder;this._decoder=new O("utf8")}N=this._decoder.write(N)}return this._parser.write(N.toString()),this.emit("data",N),!0},s.prototype.end=function(N){return N&&N.length&&this.write(N),this._parser.end(),!0},s.prototype.on=function(N,O){var $=this;return!$._parser["on"+N]&&c.indexOf(N)!==-1&&($._parser["on"+N]=function(){var q=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);q.splice(0,0,N),$.emit.apply($,q)}),u.prototype.on.call($,N,O)};var f="[CDATA[",h="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",E={xml:T,xmlns:m},x=/[:_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]/,y=/[:_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-]/,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]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(N){return N===" "||N===`
16
+ `||N==="\r"||N===" "}function v(N){return N==='"'||N==="'"}function A(N){return N===">"||g(N)}function I(N,O){return N.test(O)}function P(N,O){return!I(N,O)}var R=0;t.STATE={BEGIN:R++,BEGIN_WHITESPACE:R++,TEXT:R++,TEXT_ENTITY:R++,OPEN_WAKA:R++,SGML_DECL:R++,SGML_DECL_QUOTED:R++,DOCTYPE:R++,DOCTYPE_QUOTED:R++,DOCTYPE_DTD:R++,DOCTYPE_DTD_QUOTED:R++,COMMENT_STARTING:R++,COMMENT:R++,COMMENT_ENDING:R++,COMMENT_ENDED:R++,CDATA:R++,CDATA_ENDING:R++,CDATA_ENDING_2:R++,PROC_INST:R++,PROC_INST_BODY:R++,PROC_INST_ENDING:R++,OPEN_TAG:R++,OPEN_TAG_SLASH:R++,ATTRIB:R++,ATTRIB_NAME:R++,ATTRIB_NAME_SAW_WHITE:R++,ATTRIB_VALUE:R++,ATTRIB_VALUE_QUOTED:R++,ATTRIB_VALUE_CLOSED:R++,ATTRIB_VALUE_UNQUOTED:R++,ATTRIB_VALUE_ENTITY_Q:R++,ATTRIB_VALUE_ENTITY_U:R++,CLOSE_TAG:R++,CLOSE_TAG_SAW_WHITE:R++,SCRIPT:R++,SCRIPT_ENDING:R++},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(N){var O=t.ENTITIES[N],$=typeof O=="number"?String.fromCharCode(O):O;t.ENTITIES[N]=$});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;R=t.STATE;function K(N,O,$){N[O]&&N[O]($)}function L(N,O,$){N.textNode&&k(N),K(N,O,$)}function k(N){N.textNode=re(N.opt,N.textNode),N.textNode&&K(N,"ontext",N.textNode),N.textNode=""}function re(N,O){return N.trim&&(O=O.trim()),N.normalize&&(O=O.replace(/\s+/g," ")),O}function ee(N,O){return k(N),N.trackPosition&&(O+=`
17
+ Line: `+N.line+`
18
+ Column: `+N.column+`
19
+ Char: `+N.c),O=new Error(O),N.error=O,K(N,"onerror",O),N}function ue(N){return N.sawRoot&&!N.closedRoot&&le(N,"Unclosed root tag"),N.state!==R.BEGIN&&N.state!==R.BEGIN_WHITESPACE&&N.state!==R.TEXT&&ee(N,"Unexpected end"),k(N),N.c="",N.closed=!0,K(N,"onend"),n.call(N,N.strict,N.opt),N}function le(N,O){if(typeof N!="object"||!(N instanceof n))throw new Error("bad call to strictFail");N.strict&&ee(N,O)}function de(N){N.strict||(N.tagName=N.tagName[N.looseCase]());var O=N.tags[N.tags.length-1]||N,$=N.tag={name:N.tagName,attributes:{}};N.opt.xmlns&&($.ns=O.ns),N.attribList.length=0,L(N,"onopentagstart",$)}function fe(N,O){var $=N.indexOf(":"),q=$<0?["",N]:N.split(":"),B=q[0],U=q[1];return O&&N==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function be(N){if(N.strict||(N.attribName=N.attribName[N.looseCase]()),N.attribList.indexOf(N.attribName)!==-1||N.tag.attributes.hasOwnProperty(N.attribName)){N.attribName=N.attribValue="";return}if(N.opt.xmlns){var O=fe(N.attribName,!0),$=O.prefix,q=O.local;if($==="xmlns")if(q==="xml"&&N.attribValue!==T)le(N,"xml: prefix must be bound to "+T+`
20
+ Actual: `+N.attribValue);else if(q==="xmlns"&&N.attribValue!==m)le(N,"xmlns: prefix must be bound to "+m+`
21
+ Actual: `+N.attribValue);else{var B=N.tag,U=N.tags[N.tags.length-1]||N;B.ns===U.ns&&(B.ns=Object.create(U.ns)),B.ns[q]=N.attribValue}N.attribList.push([N.attribName,N.attribValue])}else N.tag.attributes[N.attribName]=N.attribValue,L(N,"onattribute",{name:N.attribName,value:N.attribValue});N.attribName=N.attribValue=""}function pe(N,O){if(N.opt.xmlns){var $=N.tag,q=fe(N.tagName);$.prefix=q.prefix,$.local=q.local,$.uri=$.ns[q.prefix]||"",$.prefix&&!$.uri&&(le(N,"Unbound namespace prefix: "+JSON.stringify(N.tagName)),$.uri=q.prefix);var B=N.tags[N.tags.length-1]||N;$.ns&&B.ns!==$.ns&&Object.keys($.ns).forEach(function(xe){L(N,"onopennamespace",{prefix:xe,uri:$.ns[xe]})});for(var U=0,Y=N.attribList.length;U<Y;U++){var oe=N.attribList[U],ge=oe[0],ce=oe[1],he=fe(ge,!0),Re=he.prefix,te=he.local,He=Re===""?"":$.ns[Re]||"",De={name:ge,value:ce,prefix:Re,local:te,uri:He};Re&&Re!=="xmlns"&&!He&&(le(N,"Unbound namespace prefix: "+JSON.stringify(Re)),De.uri=Re),N.tag.attributes[ge]=De,L(N,"onattribute",De)}N.attribList.length=0}N.tag.isSelfClosing=!!O,N.sawRoot=!0,N.tags.push(N.tag),L(N,"onopentag",N.tag),O||(!N.noscript&&N.tagName.toLowerCase()==="script"?N.state=R.SCRIPT:N.state=R.TEXT,N.tag=null,N.tagName=""),N.attribName=N.attribValue="",N.attribList.length=0}function G(N){if(!N.tagName){le(N,"Weird empty close tag."),N.textNode+="</>",N.state=R.TEXT;return}if(N.script){if(N.tagName!=="script"){N.script+="</"+N.tagName+">",N.tagName="",N.state=R.SCRIPT;return}L(N,"onscript",N.script),N.script=""}var O=N.tags.length,$=N.tagName;N.strict||($=$[N.looseCase]());for(var q=$;O--;){var B=N.tags[O];if(B.name!==q)le(N,"Unexpected close tag");else break}if(O<0){le(N,"Unmatched closing tag: "+N.tagName),N.textNode+="</"+N.tagName+">",N.state=R.TEXT;return}N.tagName=$;for(var U=N.tags.length;U-- >O;){var Y=N.tag=N.tags.pop();N.tagName=N.tag.name,L(N,"onclosetag",N.tagName);var oe={};for(var ge in Y.ns)oe[ge]=Y.ns[ge];var ce=N.tags[N.tags.length-1]||N;N.opt.xmlns&&Y.ns!==ce.ns&&Object.keys(Y.ns).forEach(function(he){var Re=Y.ns[he];L(N,"onclosenamespace",{prefix:he,uri:Re})})}O===0&&(N.closedRoot=!0),N.tagName=N.attribValue=N.attribName="",N.attribList.length=0,N.state=R.TEXT}function Z(N){var O=N.entity,$=O.toLowerCase(),q,B="";return N.ENTITIES[O]?N.ENTITIES[O]:N.ENTITIES[$]?N.ENTITIES[$]:(O=$,O.charAt(0)==="#"&&(O.charAt(1)==="x"?(O=O.slice(2),q=parseInt(O,16),B=q.toString(16)):(O=O.slice(1),q=parseInt(O,10),B=q.toString(10))),O=O.replace(/^0+/,""),isNaN(q)||B.toLowerCase()!==O?(le(N,"Invalid character entity"),"&"+N.entity+";"):String.fromCodePoint(q))}function Q(N,O){O==="<"?(N.state=R.OPEN_WAKA,N.startTagPosition=N.position):g(O)||(le(N,"Non-whitespace before first tag."),N.textNode=O,N.state=R.TEXT)}function ae(N,O){var $="";return O<N.length&&($=N.charAt(O)),$}function V(N){var O=this;if(this.error)throw this.error;if(O.closed)return ee(O,"Cannot write after close. Assign an onready handler.");if(N===null)return ue(O);typeof N=="object"&&(N=N.toString());for(var $=0,q="";q=ae(N,$++),O.c=q,!!q;)switch(O.trackPosition&&(O.position++,q===`
22
+ `?(O.line++,O.column=0):O.column++),O.state){case R.BEGIN:if(O.state=R.BEGIN_WHITESPACE,q==="\uFEFF")continue;Q(O,q);continue;case R.BEGIN_WHITESPACE:Q(O,q);continue;case R.TEXT:if(O.sawRoot&&!O.closedRoot){for(var B=$-1;q&&q!=="<"&&q!=="&";)q=ae(N,$++),q&&O.trackPosition&&(O.position++,q===`
23
+ `?(O.line++,O.column=0):O.column++);O.textNode+=N.substring(B,$-1)}q==="<"&&!(O.sawRoot&&O.closedRoot&&!O.strict)?(O.state=R.OPEN_WAKA,O.startTagPosition=O.position):(!g(q)&&(!O.sawRoot||O.closedRoot)&&le(O,"Text data outside of root node."),q==="&"?O.state=R.TEXT_ENTITY:O.textNode+=q);continue;case R.SCRIPT:q==="<"?O.state=R.SCRIPT_ENDING:O.script+=q;continue;case R.SCRIPT_ENDING:q==="/"?O.state=R.CLOSE_TAG:(O.script+="<"+q,O.state=R.SCRIPT);continue;case R.OPEN_WAKA:if(q==="!")O.state=R.SGML_DECL,O.sgmlDecl="";else if(!g(q))if(I(x,q))O.state=R.OPEN_TAG,O.tagName=q;else if(q==="/")O.state=R.CLOSE_TAG,O.tagName="";else if(q==="?")O.state=R.PROC_INST,O.procInstName=O.procInstBody="";else{if(le(O,"Unencoded <"),O.startTagPosition+1<O.position){var U=O.position-O.startTagPosition;q=new Array(U).join(" ")+q}O.textNode+="<"+q,O.state=R.TEXT}continue;case R.SGML_DECL:if(O.sgmlDecl+q==="--"){O.state=R.COMMENT,O.comment="",O.sgmlDecl="";continue}O.doctype&&O.doctype!==!0&&O.sgmlDecl?(O.state=R.DOCTYPE_DTD,O.doctype+="<!"+O.sgmlDecl+q,O.sgmlDecl=""):(O.sgmlDecl+q).toUpperCase()===f?(L(O,"onopencdata"),O.state=R.CDATA,O.sgmlDecl="",O.cdata=""):(O.sgmlDecl+q).toUpperCase()===h?(O.state=R.DOCTYPE,(O.doctype||O.sawRoot)&&le(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):q===">"?(L(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=R.TEXT):(v(q)&&(O.state=R.SGML_DECL_QUOTED),O.sgmlDecl+=q);continue;case R.SGML_DECL_QUOTED:q===O.q&&(O.state=R.SGML_DECL,O.q=""),O.sgmlDecl+=q;continue;case R.DOCTYPE:q===">"?(O.state=R.TEXT,L(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=q,q==="["?O.state=R.DOCTYPE_DTD:v(q)&&(O.state=R.DOCTYPE_QUOTED,O.q=q));continue;case R.DOCTYPE_QUOTED:O.doctype+=q,q===O.q&&(O.q="",O.state=R.DOCTYPE);continue;case R.DOCTYPE_DTD:q==="]"?(O.doctype+=q,O.state=R.DOCTYPE):q==="<"?(O.state=R.OPEN_WAKA,O.startTagPosition=O.position):v(q)?(O.doctype+=q,O.state=R.DOCTYPE_DTD_QUOTED,O.q=q):O.doctype+=q;continue;case R.DOCTYPE_DTD_QUOTED:O.doctype+=q,q===O.q&&(O.state=R.DOCTYPE_DTD,O.q="");continue;case R.COMMENT:q==="-"?O.state=R.COMMENT_ENDING:O.comment+=q;continue;case R.COMMENT_ENDING:q==="-"?(O.state=R.COMMENT_ENDED,O.comment=re(O.opt,O.comment),O.comment&&L(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+q,O.state=R.COMMENT);continue;case R.COMMENT_ENDED:q!==">"?(le(O,"Malformed comment"),O.comment+="--"+q,O.state=R.COMMENT):O.doctype&&O.doctype!==!0?O.state=R.DOCTYPE_DTD:O.state=R.TEXT;continue;case R.CDATA:q==="]"?O.state=R.CDATA_ENDING:O.cdata+=q;continue;case R.CDATA_ENDING:q==="]"?O.state=R.CDATA_ENDING_2:(O.cdata+="]"+q,O.state=R.CDATA);continue;case R.CDATA_ENDING_2:q===">"?(O.cdata&&L(O,"oncdata",O.cdata),L(O,"onclosecdata"),O.cdata="",O.state=R.TEXT):q==="]"?O.cdata+="]":(O.cdata+="]]"+q,O.state=R.CDATA);continue;case R.PROC_INST:q==="?"?O.state=R.PROC_INST_ENDING:g(q)?O.state=R.PROC_INST_BODY:O.procInstName+=q;continue;case R.PROC_INST_BODY:if(!O.procInstBody&&g(q))continue;q==="?"?O.state=R.PROC_INST_ENDING:O.procInstBody+=q;continue;case R.PROC_INST_ENDING:q===">"?(L(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=R.TEXT):(O.procInstBody+="?"+q,O.state=R.PROC_INST_BODY);continue;case R.OPEN_TAG:I(y,q)?O.tagName+=q:(de(O),q===">"?pe(O):q==="/"?O.state=R.OPEN_TAG_SLASH:(g(q)||le(O,"Invalid character in tag name"),O.state=R.ATTRIB));continue;case R.OPEN_TAG_SLASH:q===">"?(pe(O,!0),G(O)):(le(O,"Forward-slash in opening tag not followed by >"),O.state=R.ATTRIB);continue;case R.ATTRIB:if(g(q))continue;q===">"?pe(O):q==="/"?O.state=R.OPEN_TAG_SLASH:I(x,q)?(O.attribName=q,O.attribValue="",O.state=R.ATTRIB_NAME):le(O,"Invalid attribute name");continue;case R.ATTRIB_NAME:q==="="?O.state=R.ATTRIB_VALUE:q===">"?(le(O,"Attribute without value"),O.attribValue=O.attribName,be(O),pe(O)):g(q)?O.state=R.ATTRIB_NAME_SAW_WHITE:I(y,q)?O.attribName+=q:le(O,"Invalid attribute name");continue;case R.ATTRIB_NAME_SAW_WHITE:if(q==="=")O.state=R.ATTRIB_VALUE;else{if(g(q))continue;le(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",L(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",q===">"?pe(O):I(x,q)?(O.attribName=q,O.state=R.ATTRIB_NAME):(le(O,"Invalid attribute name"),O.state=R.ATTRIB)}continue;case R.ATTRIB_VALUE:if(g(q))continue;v(q)?(O.q=q,O.state=R.ATTRIB_VALUE_QUOTED):(O.opt.unquotedAttributeValues||ee(O,"Unquoted attribute value"),O.state=R.ATTRIB_VALUE_UNQUOTED,O.attribValue=q);continue;case R.ATTRIB_VALUE_QUOTED:if(q!==O.q){q==="&"?O.state=R.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=q;continue}be(O),O.q="",O.state=R.ATTRIB_VALUE_CLOSED;continue;case R.ATTRIB_VALUE_CLOSED:g(q)?O.state=R.ATTRIB:q===">"?pe(O):q==="/"?O.state=R.OPEN_TAG_SLASH:I(x,q)?(le(O,"No whitespace between attributes"),O.attribName=q,O.attribValue="",O.state=R.ATTRIB_NAME):le(O,"Invalid attribute name");continue;case R.ATTRIB_VALUE_UNQUOTED:if(!A(q)){q==="&"?O.state=R.ATTRIB_VALUE_ENTITY_U:O.attribValue+=q;continue}be(O),q===">"?pe(O):O.state=R.ATTRIB;continue;case R.CLOSE_TAG:if(O.tagName)q===">"?G(O):I(y,q)?O.tagName+=q:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=R.SCRIPT):(g(q)||le(O,"Invalid tagname in closing tag"),O.state=R.CLOSE_TAG_SAW_WHITE);else{if(g(q))continue;P(x,q)?O.script?(O.script+="</"+q,O.state=R.SCRIPT):le(O,"Invalid tagname in closing tag."):O.tagName=q}continue;case R.CLOSE_TAG_SAW_WHITE:if(g(q))continue;q===">"?G(O):le(O,"Invalid characters in closing tag");continue;case R.TEXT_ENTITY:case R.ATTRIB_VALUE_ENTITY_Q:case R.ATTRIB_VALUE_ENTITY_U:var Y,oe;switch(O.state){case R.TEXT_ENTITY:Y=R.TEXT,oe="textNode";break;case R.ATTRIB_VALUE_ENTITY_Q:Y=R.ATTRIB_VALUE_QUOTED,oe="attribValue";break;case R.ATTRIB_VALUE_ENTITY_U:Y=R.ATTRIB_VALUE_UNQUOTED,oe="attribValue";break}if(q===";"){var ge=Z(O);O.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(ge)?(O.entity="",O.state=Y,O.write(ge)):(O[oe]+=ge,O.entity="",O.state=Y)}else I(O.entity.length?d:p,q)?O.entity+=q:(le(O,"Invalid character in entity name"),O[oe]+="&"+O.entity+q,O.entity="",O.state=Y);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&o(O),O}String.fromCodePoint||(function(){var N=String.fromCharCode,O=Math.floor,$=function(){var q=16384,B=[],U,Y,oe=-1,ge=arguments.length;if(!ge)return"";for(var ce="";++oe<ge;){var he=Number(arguments[oe]);if(!isFinite(he)||he<0||he>1114111||O(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?B.push(he):(he-=65536,U=(he>>10)+55296,Y=he%1024+56320,B.push(U,Y)),(oe+1===ge||B.length>q)&&(ce+=N.apply(null,B),B.length=0)}return ce};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$})()})(e)})(Mn)),Mn}var ho,vl;function po(){return vl||(vl=1,ho={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),ho}var go,El;function yo(){if(El)return go;El=1;var e=po().isArray;return go={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}},go}var mo,xl;function Al(){if(xl)return mo;xl=1;var e=v0(),t=yo(),r=po().isArray,n,o;function i(y){return n=t.copyOptions(y),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(y){var p=Number(y);if(!isNaN(p))return p;var d=y.toLowerCase();return d==="true"?!0:d==="false"?!1:y}function u(y,p){var d;if(n.compact){if(!o[n[y+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[y+"Key"])!==-1:n.alwaysArray)&&(o[n[y+"Key"]]=[]),o[n[y+"Key"]]&&!r(o[n[y+"Key"]])&&(o[n[y+"Key"]]=[o[n[y+"Key"]]]),y+"Fn"in n&&typeof p=="string"&&(p=n[y+"Fn"](p,o)),y==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(d in p)if(p.hasOwnProperty(d))if("instructionFn"in n)p[d]=n.instructionFn(p[d],d,o);else{var g=p[d];delete p[d],p[n.instructionNameFn(d,g,o)]=g}}r(o[n[y+"Key"]])?o[n[y+"Key"]].push(p):o[n[y+"Key"]]=p}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=y,y==="instruction"){for(d in p)if(p.hasOwnProperty(d))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(d,p,o):d,n.instructionHasAttributes?(v[n.attributesKey]=p[d][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],d,o))):("instructionFn"in n&&(p[d]=n.instructionFn(p[d],d,o)),v[n.instructionKey]=p[d])}else y+"Fn"in n&&(p=n[y+"Fn"](p,o)),v[n[y+"Key"]]=p;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function c(y){if("attributesFn"in n&&y&&(y=n.attributesFn(y,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&y){var p;for(p in y)if(y.hasOwnProperty(p)&&(n.trim&&(y[p]=y[p].trim()),n.nativeTypeAttributes&&(y[p]=a(y[p])),"attributeValueFn"in n&&(y[p]=n.attributeValueFn(y[p],p,o)),"attributeNameFn"in n)){var d=y[p];delete y[p],y[n.attributeNameFn(p,y[p],o)]=d}}return y}function l(y){var p={};if(y.body&&(y.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var d=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,g;(g=d.exec(y.body))!==null;)p[g[1]]=g[2]||g[3]||g[4];p=c(p)}if(y.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(p).length&&(o[n.declarationKey][n.attributesKey]=p),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(y.body=y.body.trim());var v={};n.instructionHasAttributes&&Object.keys(p).length?(v[y.name]={},v[y.name][n.attributesKey]=p):v[y.name]=y.body,u("instruction",v)}}function s(y,p){var d;if(typeof y=="object"&&(p=y.attributes,y=y.name),p=c(p),"elementNameFn"in n&&(y=n.elementNameFn(y,o)),n.compact){if(d={},!n.ignoreAttributes&&p&&Object.keys(p).length){d[n.attributesKey]={};var g;for(g in p)p.hasOwnProperty(g)&&(d[n.attributesKey][g]=p[g])}!(y in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(y)!==-1:n.alwaysArray)&&(o[y]=[]),o[y]&&!r(o[y])&&(o[y]=[o[y]]),r(o[y])?o[y].push(d):o[y]=d}else o[n.elementsKey]||(o[n.elementsKey]=[]),d={},d[n.typeKey]="element",d[n.nameKey]=y,!n.ignoreAttributes&&p&&Object.keys(p).length&&(d[n.attributesKey]=p),n.alwaysChildren&&(d[n.elementsKey]=[]),o[n.elementsKey].push(d);d[n.parentKey]=o,o=d}function f(y){n.ignoreText||!y.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(y=y.trim()),n.nativeType&&(y=a(y)),n.sanitize&&(y=y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",y))}function h(y){n.ignoreComment||(n.trim&&(y=y.trim()),u("comment",y))}function T(y){var p=o[n.parentKey];n.addParent||delete o[n.parentKey],o=p}function m(y){n.ignoreCdata||(n.trim&&(y=y.trim()),u("cdata",y))}function E(y){n.ignoreDoctype||(y=y.replace(/^ /,""),n.trim&&(y=y.trim()),u("doctype",y))}function x(y){y.note=y}return mo=function(y,p){var d=e.parser(!0,{}),g={};if(o=g,n=i(p),d.opt={strictEntities:!0},d.onopentag=s,d.ontext=f,d.oncomment=h,d.onclosetag=T,d.onerror=x,d.oncdata=m,d.ondoctype=E,d.onprocessinginstruction=l,d.write(y).close(),g[n.elementsKey]){var v=g[n.elementsKey];delete g[n.elementsKey],g[n.elementsKey]=v,delete g.text}return g},mo}var bo,Tl;function E0(){if(Tl)return bo;Tl=1;var e=yo(),t=Al();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return bo=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")},bo}var wo,Sl;function _l(){if(Sl)return wo;Sl=1;var e=yo(),t=po().isArray,r,n;function o(d){var g=e.copyOptions(d);return e.ensureFlagExists("ignoreDeclaration",g),e.ensureFlagExists("ignoreInstruction",g),e.ensureFlagExists("ignoreAttributes",g),e.ensureFlagExists("ignoreText",g),e.ensureFlagExists("ignoreComment",g),e.ensureFlagExists("ignoreCdata",g),e.ensureFlagExists("ignoreDoctype",g),e.ensureFlagExists("compact",g),e.ensureFlagExists("indentText",g),e.ensureFlagExists("indentCdata",g),e.ensureFlagExists("indentAttributes",g),e.ensureFlagExists("indentInstruction",g),e.ensureFlagExists("fullTagEmptyElement",g),e.ensureFlagExists("noQuotesForNativeAttributes",g),e.ensureSpacesExists(g),typeof g.spaces=="number"&&(g.spaces=Array(g.spaces+1).join(" ")),e.ensureKeyExists("declaration",g),e.ensureKeyExists("instruction",g),e.ensureKeyExists("attributes",g),e.ensureKeyExists("text",g),e.ensureKeyExists("comment",g),e.ensureKeyExists("cdata",g),e.ensureKeyExists("doctype",g),e.ensureKeyExists("type",g),e.ensureKeyExists("name",g),e.ensureKeyExists("elements",g),e.checkFnExists("doctype",g),e.checkFnExists("instruction",g),e.checkFnExists("cdata",g),e.checkFnExists("comment",g),e.checkFnExists("text",g),e.checkFnExists("instructionName",g),e.checkFnExists("elementName",g),e.checkFnExists("attributeName",g),e.checkFnExists("attributeValue",g),e.checkFnExists("attributes",g),e.checkFnExists("fullTagEmptyElement",g),g}function i(d,g,v){return(!v&&d.spaces?`
24
+ `:"")+Array(g+1).join(d.spaces)}function a(d,g,v){if(g.ignoreAttributes)return"";"attributesFn"in g&&(d=g.attributesFn(d,n,r));var A,I,P,R,j=[];for(A in d)d.hasOwnProperty(A)&&d[A]!==null&&d[A]!==void 0&&(R=g.noQuotesForNativeAttributes&&typeof d[A]!="string"?"":'"',I=""+d[A],I=I.replace(/"/g,"&quot;"),P="attributeNameFn"in g?g.attributeNameFn(A,I,n,r):A,j.push(g.spaces&&g.indentAttributes?i(g,v+1,!1):" "),j.push(P+"="+R+("attributeValueFn"in g?g.attributeValueFn(I,A,n,r):I)+R));return d&&Object.keys(d).length&&g.spaces&&g.indentAttributes&&j.push(i(g,v,!1)),j.join("")}function u(d,g,v){return r=d,n="xml",g.ignoreDeclaration?"":"<?xml"+a(d[g.attributesKey],g,v)+"?>"}function c(d,g,v){if(g.ignoreInstruction)return"";var A;for(A in d)if(d.hasOwnProperty(A))break;var I="instructionNameFn"in g?g.instructionNameFn(A,d[A],n,r):A;if(typeof d[A]=="object")return r=d,n=I,"<?"+I+a(d[A][g.attributesKey],g,v)+"?>";var P=d[A]?d[A]:"";return"instructionFn"in g&&(P=g.instructionFn(P,A,n,r)),"<?"+I+(P?" "+P:"")+"?>"}function l(d,g){return g.ignoreComment?"":"<!--"+("commentFn"in g?g.commentFn(d,n,r):d)+"-->"}function s(d,g){return g.ignoreCdata?"":"<![CDATA["+("cdataFn"in g?g.cdataFn(d,n,r):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(d,g){return g.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in g?g.doctypeFn(d,n,r):d)+">"}function h(d,g){return g.ignoreText?"":(d=""+d,d=d.replace(/&amp;/g,"&"),d=d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in g?g.textFn(d,n,r):d)}function T(d,g){var v;if(d.elements&&d.elements.length)for(v=0;v<d.elements.length;++v)switch(d.elements[v][g.typeKey]){case"text":if(g.indentText)return!0;break;case"cdata":if(g.indentCdata)return!0;break;case"instruction":if(g.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(d,g,v){r=d,n=d.name;var A=[],I="elementNameFn"in g?g.elementNameFn(d.name,d):d.name;A.push("<"+I),d[g.attributesKey]&&A.push(a(d[g.attributesKey],g,v));var P=d[g.elementsKey]&&d[g.elementsKey].length||d[g.attributesKey]&&d[g.attributesKey]["xml:space"]==="preserve";return P||("fullTagEmptyElementFn"in g?P=g.fullTagEmptyElementFn(d.name,d):P=g.fullTagEmptyElement),P?(A.push(">"),d[g.elementsKey]&&d[g.elementsKey].length&&(A.push(E(d[g.elementsKey],g,v+1)),r=d,n=d.name),A.push(g.spaces&&T(d,g)?`
25
+ `+Array(v+1).join(g.spaces):""),A.push("</"+I+">")):A.push("/>"),A.join("")}function E(d,g,v,A){return d.reduce(function(I,P){var R=i(g,v,A&&!I);switch(P.type){case"element":return I+R+m(P,g,v);case"comment":return I+R+l(P[g.commentKey],g);case"doctype":return I+R+f(P[g.doctypeKey],g);case"cdata":return I+(g.indentCdata?R:"")+s(P[g.cdataKey],g);case"text":return I+(g.indentText?R:"")+h(P[g.textKey],g);case"instruction":var j={};return j[P[g.nameKey]]=P[g.attributesKey]?P:P[g.instructionKey],I+(g.indentInstruction?R:"")+c(j,g,v)}},"")}function x(d,g,v){var A;for(A in d)if(d.hasOwnProperty(A))switch(A){case g.parentKey:case g.attributesKey:break;case g.textKey:if(g.indentText||v)return!0;break;case g.cdataKey:if(g.indentCdata||v)return!0;break;case g.instructionKey:if(g.indentInstruction||v)return!0;break;case g.doctypeKey:case g.commentKey:return!0;default:return!0}return!1}function y(d,g,v,A,I){r=d,n=g;var P="elementNameFn"in v?v.elementNameFn(g,d):g;if(typeof d>"u"||d===null||d==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(g,d)||v.fullTagEmptyElement?"<"+P+"></"+P+">":"<"+P+"/>";var R=[];if(g){if(R.push("<"+P),typeof d!="object")return R.push(">"+h(d,v)+"</"+P+">"),R.join("");d[v.attributesKey]&&R.push(a(d[v.attributesKey],v,A));var j=x(d,v,!0)||d[v.attributesKey]&&d[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(g,d):j=v.fullTagEmptyElement),j)R.push(">");else return R.push("/>"),R.join("")}return R.push(p(d,v,A+1,!1)),r=d,n=g,g&&R.push((I?i(v,A,!1):"")+"</"+P+">"),R.join("")}function p(d,g,v,A){var I,P,R,j=[];for(P in d)if(d.hasOwnProperty(P))for(R=t(d[P])?d[P]:[d[P]],I=0;I<R.length;++I){switch(P){case g.declarationKey:j.push(u(R[I],g,v));break;case g.instructionKey:j.push((g.indentInstruction?i(g,v,A):"")+c(R[I],g,v));break;case g.attributesKey:case g.parentKey:break;case g.textKey:j.push((g.indentText?i(g,v,A):"")+h(R[I],g));break;case g.cdataKey:j.push((g.indentCdata?i(g,v,A):"")+s(R[I],g));break;case g.doctypeKey:j.push(i(g,v,A)+f(R[I],g));break;case g.commentKey:j.push(i(g,v,A)+l(R[I],g));break;default:j.push(i(g,v,A)+y(R[I],P,g,v,x(R[I],g)))}A=A&&!j.length}return j.join("")}return wo=function(d,g){g=o(g);var v=[];return r=d,n="_root_",g.compact?v.push(p(d,g,0,!0)):(d[g.declarationKey]&&v.push(u(d[g.declarationKey],g,0)),d[g.elementsKey]&&d[g.elementsKey].length&&v.push(E(d[g.elementsKey],g,0,!v.length))),v.join("")},wo}var vo,Rl;function x0(){if(Rl)return vo;Rl=1;var e=_l();return vo=function(t,r){t instanceof Ht&&(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)},vo}var Eo,Ol;function A0(){if(Ol)return Eo;Ol=1;var e=Al(),t=E0(),r=_l(),n=x0();return Eo={xml2js:e,xml2json:t,js2xml:r,json2xml:n},Eo}var T0=A0(),S0=cn(T0);function _0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function dr(e,t=""){if(!Number.isSafeInteger(e)||e<0){const r=t&&`"${t}" `;throw new Error(`${r}expected integer >= 0, got ${e}`)}}function pr(e,t,r=""){const n=_0(e),o=e?.length,i=t!==void 0;if(!n||i&&o!==t){const a=r&&`"${r}" `,u=i?` of length ${t}`:"",c=n?`length=${o}`:`type=${typeof e}`;throw new Error(a+"expected Uint8Array"+u+", got "+c)}return e}function Nl(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");dr(e.outputLen),dr(e.blockLen)}function Kr(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 R0(e,t){pr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new Error('"digestInto() output" expected to be of length >='+r)}function gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function zr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function O0(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Il(e,t=""){return typeof e=="string"?O0(e):pr(e,void 0,t)}function N0(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(e,t)}function I0(e,t={}){const r=(o,i)=>e(i).update(o).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.create=o=>e(o),Object.assign(r,t),Object.freeze(r)}const P0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});class Pl{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,r){if(Nl(t),pr(r,void 0,"key"),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 n=this.blockLen,o=new Uint8Array(n);o.set(r.length>n?t.create().update(r).digest():r);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),gr(o)}update(t){return Kr(this),this.iHash.update(t),this}digestInto(t){Kr(this),pr(t,this.outputLen,"output"),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||=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 Fl=(e,t,r)=>new Pl(e,t).update(r).digest();Fl.create=(e,t)=>new Pl(e,t);function F0(e,t,r,n){Nl(e);const o=N0({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(dr(i,"c"),dr(a,"dkLen"),dr(u,"asyncTick"),i<1)throw new Error("iterations (c) must be >= 1");const c=Il(t,"password"),l=Il(r,"salt"),s=new Uint8Array(a),f=Fl.create(e,c),h=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:h}}function C0(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),gr(o),r}function B0(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=F0(e,t,r,n);let l;const s=new Uint8Array(4),f=zr(s),h=new Uint8Array(u.outputLen);for(let T=1,m=0;m<i;T++,m+=u.outputLen){const E=a.subarray(m,m+u.outputLen);f.setInt32(0,T,!1),(l=c._cloneInto(l)).update(s).digestInto(h),E.set(h.subarray(0,E.length));for(let x=1;x<o;x++){u._cloneInto(l).update(h).digestInto(h);for(let y=0;y<E.length;y++)E[y]^=h[y]}}return C0(u,c,a,l,h)}class L0{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,o){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=zr(this.buffer)}update(t){Kr(this),pr(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=zr(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){Kr(this),R0(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,gr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;n.setBigUint64(o-8,BigInt(this.length*8),i),this.process(n,0);const u=zr(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must 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||=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 ze=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Xr=BigInt(2**32-1),Cl=BigInt(32);function U0(e,t=!1){return t?{h:Number(e&Xr),l:Number(e>>Cl&Xr)}:{h:Number(e>>Cl&Xr)|0,l:Number(e&Xr)|0}}function j0(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}=U0(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Bl=(e,t,r)=>e>>>r,Ll=(e,t,r)=>e<<32-r|t>>>r,Jt=(e,t,r)=>e>>>r|t<<32-r,Zt=(e,t,r)=>e<<32-r|t>>>r,Yr=(e,t,r)=>e<<64-r|t>>>r-32,Jr=(e,t,r)=>e>>>r-32|t<<64-r;function Et(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const k0=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),D0=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,M0=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),q0=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,$0=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),H0=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Ul=j0(["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))),V0=Ul[0],W0=Ul[1],_t=new Uint32Array(80),Rt=new Uint32Array(80);class G0 extends L0{constructor(t){super(128,t,16,!1)}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:h,Gh:T,Gl:m,Hh:E,Hl:x}=this;return[t,r,n,o,i,a,u,c,l,s,f,h,T,m,E,x]}set(t,r,n,o,i,a,u,c,l,s,f,h,T,m,E,x){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=h|0,this.Gh=T|0,this.Gl=m|0,this.Hh=E|0,this.Hl=x|0}process(t,r){for(let d=0;d<16;d++,r+=4)_t[d]=t.getUint32(r),Rt[d]=t.getUint32(r+=4);for(let d=16;d<80;d++){const g=_t[d-15]|0,v=Rt[d-15]|0,A=Jt(g,v,1)^Jt(g,v,8)^Bl(g,v,7),I=Zt(g,v,1)^Zt(g,v,8)^Ll(g,v,7),P=_t[d-2]|0,R=Rt[d-2]|0,j=Jt(P,R,19)^Yr(P,R,61)^Bl(P,R,6),K=Zt(P,R,19)^Jr(P,R,61)^Ll(P,R,6),L=M0(I,K,Rt[d-7],Rt[d-16]),k=q0(L,A,j,_t[d-7],_t[d-16]);_t[d]=k|0,Rt[d]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:h,Fh:T,Fl:m,Gh:E,Gl:x,Hh:y,Hl:p}=this;for(let d=0;d<80;d++){const g=Jt(f,h,14)^Jt(f,h,18)^Yr(f,h,41),v=Zt(f,h,14)^Zt(f,h,18)^Jr(f,h,41),A=f&T^~f&E,I=h&m^~h&x,P=$0(p,v,I,W0[d],Rt[d]),R=H0(P,y,g,A,V0[d],_t[d]),j=P|0,K=Jt(n,o,28)^Yr(n,o,34)^Yr(n,o,39),L=Zt(n,o,28)^Jr(n,o,34)^Jr(n,o,39),k=n&i^n&u^i&u,re=o&a^o&c^a&c;y=E|0,p=x|0,E=T|0,x=m|0,T=f|0,m=h|0,{h:f,l:h}=Et(l|0,s|0,R|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const ee=k0(j,L,re);n=D0(ee,R,K,k),o=ee|0}({h:n,l:o}=Et(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Et(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Et(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Et(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:h}=Et(this.Eh|0,this.El|0,f|0,h|0),{h:T,l:m}=Et(this.Fh|0,this.Fl|0,T|0,m|0),{h:E,l:x}=Et(this.Gh|0,this.Gl|0,E|0,x|0),{h:y,l:p}=Et(this.Hh|0,this.Hl|0,y|0,p|0),this.set(n,o,i,a,u,c,l,s,f,h,T,m,E,x,y,p)}roundClean(){gr(_t,Rt)}destroy(){gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class K0 extends G0{Ah=ze[0]|0;Al=ze[1]|0;Bh=ze[2]|0;Bl=ze[3]|0;Ch=ze[4]|0;Cl=ze[5]|0;Dh=ze[6]|0;Dl=ze[7]|0;Eh=ze[8]|0;El=ze[9]|0;Fh=ze[10]|0;Fl=ze[11]|0;Gh=ze[12]|0;Gl=ze[13]|0;Hh=ze[14]|0;Hl=ze[15]|0;constructor(){super(64)}}const z0=I0(()=>new K0,P0(3)),X0=(e,t,r,n)=>Ht.from(B0(z0,e,t,{c:r,dkLen:n}));class Y0{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:t,baseURI:r}){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(Ee(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=S0.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 X0(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const J0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=Pg(n,t),i=new Y0({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},xt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Ee(e.webDavPath,r);if(t!==void 0){if(kn(e))throw new Error("public spaces need a path provided");return Ee("spaces",t,n||"")}return e.webDavPath},Z0=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.copy(f,h,{overwrite:l||!1,...s})}}),Q0=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=xt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),ey=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=xt(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 Ys(s,f,f.status)}}}),ty=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),ry=(e,t,r,{axiosClient:n,baseUrl:o})=>({async getFileUrl(i,a,{disposition:u="attachment",version:c=null,username:l="",...s}){if(u==="inline"){const h=await t.getFileContents(i,a,{responseType:"blob",...s});return URL.createObjectURL(h.body)}if(c){if(!l)throw new Error("username is required for URL signing");const h=e.getFileUrl(Ee("meta",a.fileId,"v",c));return await J0(o,n).signUrl(h,l)}if(a.downloadURL)return a.downloadURL;const{downloadURL:f}=await r.getFileInfo(i,a,{davProperties:[se.DownloadURL]});return f},revokeUrl:i=>{i&&i.startsWith("blob:")&&URL.revokeObjectURL(i)}}),ny=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Ee("public-files",n))}}),iy=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(kn(n)){s=await e.propfind(Ee(n.webDavPath,o),{depth:a,properties:u||Bt.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Ee(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const h=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&h==="ocm"&&s[0].props[se.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...E]=s;return{resource:Ng({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:E.map(x=>Kt(x,e.extraProps))}}const T=s.map(m=>Kt(m,e.extraProps));return{resource:T[0],children:T.slice(1)}}const f=async()=>{const h=await t.getPathForFileId(i);return this.listFiles(n,{path:h},{depth:a,davProperties:u})};try{let h="";if(c?h=Dn(n.id):h=xt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||Bt.Default,...l}),c)return{resource:Kt(s[0],e.extraProps),children:s.slice(1).map(Rg)};const T=s.map(E=>Kt(E,e.extraProps)),m=i===n.id;return i&&!m&&T[0].fileId&&i!==T[0].fileId?f():{resource:T[0],children:T.slice(1)}}catch(h){if(h.statusCode===404&&i)return f();throw h}}}),oy=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.move(f,h,{overwrite:l||!1,...s})}}),sy=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const h=xt(n,{fileId:a,name:o,path:i}),{result:T}=await e.put(h,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:T.headers.get("Oc-Fileid"),path:i})}}),ay=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Ee(r.webDavPath,n),o)}}),uy=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(kn(r))return;const u=Ee(r.webDavPath,o);return e.move(Ee(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),ly=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=xt(r,{path:i,fileId:n,name:o}),l=Ee("meta",n,"v",a,{leadingSlash:!0}),s=Ee("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),cy=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Dn(r.id);return n&&(i=Ee(i,n)),e.delete(i,o)}}),fy=(e,t)=>({async search(r,{davProperties:n=Bt.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=>({...Kt(l,e.extraProps),highlights:l.props[se.Highlights]||""})),totalResults:u?parseInt(u?.split("/")[1]):null}}}),hy=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Ee("meta",r,{leadingSlash:!0}),{properties:[se.MetaPathForUser],...n}))[0].props[se.MetaPathForUser]}});var dy={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,h=a.indexOf(o),T=a.indexOf(i,h+1),m=h;if(h>=0&&T>0){for(u=[],l=a.length;m>=0&&!f;)m==h?(u.push(m),h=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),T]:((c=u.pop())<l&&(l=c,s=T),T=a.indexOf(i,m+1)),m=h<T&&h>=0?h:T;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 mt=="object"&&mt);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 h,T,m,E,x=f.length%3,y="",p=-1,d=f.length-x;++p<d;)h=f.charCodeAt(p)<<16,T=f.charCodeAt(++p)<<8,m=f.charCodeAt(++p),y+=c.charAt((E=h+T+m)>>18&63)+c.charAt(E>>12&63)+c.charAt(E>>6&63)+c.charAt(63&E);return x==2?(h=f.charCodeAt(p)<<8,T=f.charCodeAt(++p),y+=c.charAt((E=h+T)>>10)+c.charAt(E>>4&63)+c.charAt(E<<2&63)+"="):x==1&&(E=f.charCodeAt(p),y+=c.charAt(E>>2)+c.charAt(E<<4&63)+"=="),y},decode:function(f){var h=(f=String(f).replace(l,"")).length;h%4==0&&(h=(f=f.replace(/==?$/,"")).length),(h%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var T,m,E=0,x="",y=-1;++y<h;)m=c.indexOf(f.charAt(y)),T=E%4?64*T+m:m,E++%4&&(x+=String.fromCharCode(255&T>>(-2*E&6)));return x},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(p){return p===" "||p===" "||p===`
26
+ `||p==="\r"}function a(p,d){const g=d;for(;d<p.length;d++)if(!(p[d]!="?"&&p[d]!=" ")){const v=p.substr(g,d-g);if(d>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",x(p,d));if(p[d]=="?"&&p[d+1]==">"){d++;break}}return d}function u(p,d){if(p.length>d+5&&p[d+1]==="-"&&p[d+2]==="-"){for(d+=3;d<p.length;d++)if(p[d]==="-"&&p[d+1]==="-"&&p[d+2]===">"){d+=2;break}}else if(p.length>d+8&&p[d+1]==="D"&&p[d+2]==="O"&&p[d+3]==="C"&&p[d+4]==="T"&&p[d+5]==="Y"&&p[d+6]==="P"&&p[d+7]==="E"){let g=1;for(d+=8;d<p.length;d++)if(p[d]==="<")g++;else if(p[d]===">"&&(g--,g===0))break}else if(p.length>d+9&&p[d+1]==="["&&p[d+2]==="C"&&p[d+3]==="D"&&p[d+4]==="A"&&p[d+5]==="T"&&p[d+6]==="A"&&p[d+7]==="["){for(d+=8;d<p.length;d++)if(p[d]==="]"&&p[d+1]==="]"&&p[d+2]===">"){d+=2;break}}return d}t.validate=function(p,d){d=Object.assign({},o,d);const g=[];let v=!1,A=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let P=0;P<p.length;P++)if(p[P]==="<"&&p[P+1]==="?"){if(P+=2,P=a(p,P),P.err)return P}else{if(p[P]!=="<"){if(i(p[P]))continue;return m("InvalidChar","char '"+p[P]+"' is not expected.",x(p,P))}{let R=P;if(P++,p[P]==="!"){P=u(p,P);continue}{let j=!1;p[P]==="/"&&(j=!0,P++);let K="";for(;P<p.length&&p[P]!==">"&&p[P]!==" "&&p[P]!==" "&&p[P]!==`
27
+ `&&p[P]!=="\r";P++)K+=p[P];if(K=K.trim(),K[K.length-1]==="/"&&(K=K.substring(0,K.length-1),P--),I=K,!n.isName(I)){let re;return re=K.trim().length===0?"Invalid space after '<'.":"Tag '"+K+"' is an invalid name.",m("InvalidTag",re,x(p,P))}const L=s(p,P);if(L===!1)return m("InvalidAttr","Attributes for '"+K+"' have open quote.",x(p,P));let k=L.value;if(P=L.index,k[k.length-1]==="/"){const re=P-k.length;k=k.substring(0,k.length-1);const ee=h(k,d);if(ee!==!0)return m(ee.err.code,ee.err.msg,x(p,re+ee.err.line));v=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+K+"' doesn't have proper closing.",x(p,P));if(k.trim().length>0)return m("InvalidTag","Closing tag '"+K+"' can't have attributes or invalid starting.",x(p,R));if(g.length===0)return m("InvalidTag","Closing tag '"+K+"' has not been opened.",x(p,R));{const re=g.pop();if(K!==re.tagName){let ee=x(p,re.tagStartPos);return m("InvalidTag","Expected closing tag '"+re.tagName+"' (opened in line "+ee.line+", col "+ee.col+") instead of closing tag '"+K+"'.",x(p,R))}g.length==0&&(A=!0)}}else{const re=h(k,d);if(re!==!0)return m(re.err.code,re.err.msg,x(p,P-k.length+re.err.line));if(A===!0)return m("InvalidXml","Multiple possible root nodes found.",x(p,P));d.unpairedTags.indexOf(K)!==-1||g.push({tagName:K,tagStartPos:R}),v=!0}for(P++;P<p.length;P++)if(p[P]==="<"){if(p[P+1]==="!"){P++,P=u(p,P);continue}if(p[P+1]!=="?")break;if(P=a(p,++P),P.err)return P}else if(p[P]==="&"){const re=T(p,P);if(re==-1)return m("InvalidChar","char '&' is not expected.",x(p,P));P=re}else if(A===!0&&!i(p[P]))return m("InvalidXml","Extra text at the end",x(p,P));p[P]==="<"&&P--}}}var I;return v?g.length==1?m("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",x(p,g[0].tagStartPos)):!(g.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(g.map((P=>P.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const c='"',l="'";function s(p,d){let g="",v="",A=!1;for(;d<p.length;d++){if(p[d]===c||p[d]===l)v===""?v=p[d]:v!==p[d]||(v="");else if(p[d]===">"&&v===""){A=!0;break}g+=p[d]}return v===""&&{value:g,index:d,tagClosed:A}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(p,d){const g=n.getAllMatches(p,f),v={};for(let A=0;A<g.length;A++){if(g[A][1].length===0)return m("InvalidAttr","Attribute '"+g[A][2]+"' has no space in starting.",y(g[A]));if(g[A][3]!==void 0&&g[A][4]===void 0)return m("InvalidAttr","Attribute '"+g[A][2]+"' is without value.",y(g[A]));if(g[A][3]===void 0&&!d.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+g[A][2]+"' is not allowed.",y(g[A]));const I=g[A][2];if(!E(I))return m("InvalidAttr","Attribute '"+I+"' is an invalid name.",y(g[A]));if(v.hasOwnProperty(I))return m("InvalidAttr","Attribute '"+I+"' is repeated.",y(g[A]));v[I]=1}return!0}function T(p,d){if(p[++d]===";")return-1;if(p[d]==="#")return(function(v,A){let I=/\d/;for(v[A]==="x"&&(A++,I=/[\da-fA-F]/);A<v.length;A++){if(v[A]===";")return A;if(!v[A].match(I))break}return-1})(p,++d);let g=0;for(;d<p.length;d++,g++)if(!(p[d].match(/\w/)&&g<20)){if(p[d]===";")break;return-1}return d}function m(p,d,g){return{err:{code:p,msg:d,line:g.line||g,col:g.col}}}function E(p){return n.isName(p)}function x(p,d){const g=p.substring(0,d).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function y(p){return p.startIndex+p[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=`>
28
+ `,this.newLine=`
29
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,h,T){const m=this.j2x(s,h+1,T.concat(f));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],f,m.attrStr,h):this.buildObjectNode(m.val,f,m.attrStr,h)}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,h){let T="",m="";const E=h.join(".");for(let x in s)if(Object.prototype.hasOwnProperty.call(s,x))if(s[x]===void 0)this.isAttribute(x)&&(m+="");else if(s[x]===null)this.isAttribute(x)?m+="":x[0]==="?"?m+=this.indentate(f)+"<"+x+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+x+"/"+this.tagEndChar;else if(s[x]instanceof Date)m+=this.buildTextValNode(s[x],x,"",f);else if(typeof s[x]!="object"){const y=this.isAttribute(x);if(y&&!this.ignoreAttributesFn(y,E))T+=this.buildAttrPairStr(y,""+s[x]);else if(!y)if(x===this.options.textNodeName){let p=this.options.tagValueProcessor(x,""+s[x]);m+=this.replaceEntitiesValue(p)}else m+=this.buildTextValNode(s[x],x,"",f)}else if(Array.isArray(s[x])){const y=s[x].length;let p="",d="";for(let g=0;g<y;g++){const v=s[x][g];if(v!==void 0)if(v===null)x[0]==="?"?m+=this.indentate(f)+"<"+x+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+x+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const A=this.j2x(v,f+1,h.concat(x));p+=A.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(d+=A.attrStr)}else p+=this.processTextOrObjNode(v,x,f,h);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(x,v);A=this.replaceEntitiesValue(A),p+=A}else p+=this.buildTextValNode(v,x,"",f)}this.options.oneListGroup&&(p=this.buildObjectNode(p,x,d,f)),m+=p}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){const y=Object.keys(s[x]),p=y.length;for(let d=0;d<p;d++)T+=this.buildAttrPairStr(y[d],""+s[x][y[d]])}else m+=this.processTextOrObjNode(s[x],x,f,h);return{attrStr:T,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,h,T){if(s==="")return f[0]==="?"?this.indentate(T)+"<"+f+h+"?"+this.tagEndChar:this.indentate(T)+"<"+f+h+this.closeTag(f)+this.tagEndChar;{let m="</"+f+this.tagEndChar,E="";return f[0]==="?"&&(E="?",m=""),!h&&h!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&E.length===0?this.indentate(T)+`<!--${s}-->`+this.newLine:this.indentate(T)+"<"+f+h+E+this.tagEndChar+s+this.indentate(T)+m:this.indentate(T)+"<"+f+h+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,h,T){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(T)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(T)+`<!--${s}-->`+this.newLine;if(f[0]==="?")return this.indentate(T)+"<"+f+h+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(f,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(T)+"<"+f+h+this.closeTag(f)+this.tagEndChar:this.indentate(T)+"<"+f+h+">"+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 h=this.options.entities[f];s=s.replace(h.regex,h.val)}return s},e.exports=a},87:e=>{function t(a,u,c,l){let s="",f=!1;for(let h=0;h<a.length;h++){const T=a[h],m=r(T);if(m===void 0)continue;let E="";if(E=c.length===0?m:`${c}.${m}`,m===u.textNodeName){let d=T[m];o(E,u)||(d=u.tagValueProcessor(m,d),d=i(d,u)),f&&(s+=l),s+=d,f=!1;continue}if(m===u.cdataPropName){f&&(s+=l),s+=`<![CDATA[${T[m][0][u.textNodeName]}]]>`,f=!1;continue}if(m===u.commentPropName){s+=l+`<!--${T[m][0][u.textNodeName]}-->`,f=!0;continue}if(m[0]==="?"){const d=n(T[":@"],u),g=m==="?xml"?"":l;let v=T[m][0][u.textNodeName];v=v.length!==0?" "+v:"",s+=g+`<${m}${v}${d}?>`,f=!0;continue}let x=l;x!==""&&(x+=u.indentBy);const y=l+`<${m}${n(T[":@"],u)}`,p=t(T[m],u,E,x);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=y+">":s+=y+"/>":p&&p.length!==0||!u.suppressEmptyNode?p&&p.endsWith(">")?s+=y+`>${p}${l}</${m}>`:(s+=y+">",p&&l!==""&&(p.includes("/>")||p.includes("</"))?s+=l+u.indentBy+p+l:s+=p,s+=`</${m}>`):s+=y+"/>",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=`
30
+ `),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,h){let T="";for(;h<f.length&&f[h]!=="'"&&f[h]!=='"';h++)T+=f[h];if(T=T.trim(),T.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=f[h++];let E="";for(;h<f.length&&f[h]!==m;h++)E+=f[h];return[T,E,h]}function i(f,h){return f[h+1]==="!"&&f[h+2]==="-"&&f[h+3]==="-"}function a(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="N"&&f[h+4]==="T"&&f[h+5]==="I"&&f[h+6]==="T"&&f[h+7]==="Y"}function u(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="L"&&f[h+4]==="E"&&f[h+5]==="M"&&f[h+6]==="E"&&f[h+7]==="N"&&f[h+8]==="T"}function c(f,h){return f[h+1]==="!"&&f[h+2]==="A"&&f[h+3]==="T"&&f[h+4]==="T"&&f[h+5]==="L"&&f[h+6]==="I"&&f[h+7]==="S"&&f[h+8]==="T"}function l(f,h){return f[h+1]==="!"&&f[h+2]==="N"&&f[h+3]==="O"&&f[h+4]==="T"&&f[h+5]==="A"&&f[h+6]==="T"&&f[h+7]==="I"&&f[h+8]==="O"&&f[h+9]==="N"}function s(f){if(n.isName(f))return f;throw new Error(`Invalid entity name ${f}`)}e.exports=function(f,h){const T={};if(f[h+3]!=="O"||f[h+4]!=="C"||f[h+5]!=="T"||f[h+6]!=="Y"||f[h+7]!=="P"||f[h+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{h+=9;let m=1,E=!1,x=!1,y="";for(;h<f.length;h++)if(f[h]!=="<"||x)if(f[h]===">"){if(x?f[h-1]==="-"&&f[h-2]==="-"&&(x=!1,m--):m--,m===0)break}else f[h]==="["?E=!0:y+=f[h];else{if(E&&a(f,h)){let p,d;h+=7,[p,d,h]=o(f,h+1),d.indexOf("&")===-1&&(T[s(p)]={regx:RegExp(`&${p};`,"g"),val:d})}else if(E&&u(f,h))h+=8;else if(E&&c(f,h))h+=8;else if(E&&l(f,h))h+=9;else{if(!i)throw new Error("Invalid DOCTYPE");x=!0}m++,y=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:T,i:h}}},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(A){const I=Object.keys(A);for(let P=0;P<I.length;P++){const R=I[P];this.lastEntities[R]={regex:new RegExp("&"+R+";","g"),val:A[R]}}}function l(A,I,P,R,j,K,L){if(A!==void 0&&(this.options.trimValues&&!R&&(A=A.trim()),A.length>0)){L||(A=this.replaceEntitiesValue(A));const k=this.options.tagValueProcessor(I,A,P,j,K);return k==null?A:typeof k!=typeof A||k!==A?k:this.options.trimValues||A.trim()===A?v(A,this.options.parseTagValue,this.options.numberParseOptions):A}}function s(A){if(this.options.removeNSPrefix){const I=A.split(":"),P=A.charAt(0)==="/"?"/":"";if(I[0]==="xmlns")return"";I.length===2&&(A=P+I[1])}return A}const f=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function h(A,I,P){if(this.options.ignoreAttributes!==!0&&typeof A=="string"){const R=n.getAllMatches(A,f),j=R.length,K={};for(let L=0;L<j;L++){const k=this.resolveNameSpace(R[L][1]);if(this.ignoreAttributesFn(k,I))continue;let re=R[L][4],ee=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(ee=this.options.transformAttributeName(ee)),ee==="__proto__"&&(ee="#__proto__"),re!==void 0){this.options.trimValues&&(re=re.trim()),re=this.replaceEntitiesValue(re);const ue=this.options.attributeValueProcessor(k,re,I);K[ee]=ue==null?re:typeof ue!=typeof re||ue!==re?ue:v(re,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(K[ee]=!0)}if(!Object.keys(K).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=K,L}return K}}const T=function(A){A=A.replace(/\r\n?/g,`
31
+ `);const I=new o("!xml");let P=I,R="",j="";for(let K=0;K<A.length;K++)if(A[K]==="<")if(A[K+1]==="/"){const L=p(A,">",K,"Closing Tag is not closed.");let k=A.substring(K+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&(R=this.saveTextToParentTag(R,P,j));const re=j.substring(j.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=j.lastIndexOf("."),j=j.substring(0,ee),P=this.tagsNodeStack.pop(),R="",K=L}else if(A[K+1]==="?"){let L=d(A,K,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(R=this.saveTextToParentTag(R,P,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new o(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(P,k,j)}K=L.closeIndex+1}else if(A.substr(K+1,3)==="!--"){const L=p(A,"-->",K+4,"Comment is not closed.");if(this.options.commentPropName){const k=A.substring(K+4,L-2);R=this.saveTextToParentTag(R,P,j),P.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}K=L}else if(A.substr(K+1,2)==="!D"){const L=i(A,K);this.docTypeEntities=L.entities,K=L.i}else if(A.substr(K+1,2)==="!["){const L=p(A,"]]>",K,"CDATA is not closed.")-2,k=A.substring(K+9,L);R=this.saveTextToParentTag(R,P,j);let re=this.parseTextData(k,P.tagname,j,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):P.add(this.options.textNodeName,re),K=L+2}else{let L=d(A,K,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&R&&P.tagname!=="!xml"&&(R=this.saveTextToParentTag(R,P,j,!1));const de=P;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(P=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),k!==I.tagname&&(j+=j?"."+k:k),this.isItStopNode(this.options.stopNodes,j,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),K=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)K=L.closeIndex;else{const pe=this.readStopNodeData(A,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);K=pe.i,fe=pe.tagContent}const be=new o(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,j,k)),fe&&(fe=this.parseTextData(fe,k,j,!0,ue,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(P,be,j)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new o(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(P,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(k);this.tagsNodeStack.push(P),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(P,fe,j),P=fe}R="",K=le}}else R+=A[K];return I.child};function m(A,I,P){const R=this.options.updateTag(I.tagname,P,I[":@"]);R===!1||(typeof R=="string"&&(I.tagname=R),A.addChild(I))}const E=function(A){if(this.options.processEntities){for(let I in this.docTypeEntities){const P=this.docTypeEntities[I];A=A.replace(P.regx,P.val)}for(let I in this.lastEntities){const P=this.lastEntities[I];A=A.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let I in this.htmlEntities){const P=this.htmlEntities[I];A=A.replace(P.regex,P.val)}A=A.replace(this.ampEntity.regex,this.ampEntity.val)}return A};function x(A,I,P,R){return A&&(R===void 0&&(R=Object.keys(I.child).length===0),(A=this.parseTextData(A,I.tagname,P,!1,!!I[":@"]&&Object.keys(I[":@"]).length!==0,R))!==void 0&&A!==""&&I.add(this.options.textNodeName,A),A=""),A}function y(A,I,P){const R="*."+P;for(const j in A){const K=A[j];if(R===K||I===K)return!0}return!1}function p(A,I,P,R){const j=A.indexOf(I,P);if(j===-1)throw new Error(R);return j+I.length-1}function d(A,I,P){const R=(function(ue,le){let de,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",be="";for(let pe=le;pe<ue.length;pe++){let G=ue[pe];if(de)G===de&&(de="");else if(G==='"'||G==="'")de=G;else if(G===fe[0]){if(!fe[1])return{data:be,index:pe};if(ue[pe+1]===fe[1])return{data:be,index:pe}}else G===" "&&(G=" ");be+=G}})(A,I+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!R)return;let j=R.data;const K=R.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(P){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==R.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function g(A,I,P){const R=P;let j=1;for(;P<A.length;P++)if(A[P]==="<")if(A[P+1]==="/"){const K=p(A,">",P,`${I} is not closed`);if(A.substring(P+2,K).trim()===I&&(j--,j===0))return{tagContent:A.substring(R,P),i:K};P=K}else if(A[P+1]==="?")P=p(A,"?>",P+1,"StopNode is not closed.");else if(A.substr(P+1,3)==="!--")P=p(A,"-->",P+3,"StopNode is not closed.");else if(A.substr(P+1,2)==="![")P=p(A,"]]>",P,"StopNode is not closed.")-2;else{const K=d(A,P,">");K&&((K&&K.tagName)===I&&K.tagExp[K.tagExp.length-1]!=="/"&&j++,P=K.closeIndex)}}function v(A,I,P){if(I&&typeof A=="string"){const R=A.trim();return R==="true"||R!=="false"&&a(A,P)}return n.isExist(A)?A:""}e.exports=class{constructor(A){this.options=A,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:(I,P)=>String.fromCharCode(Number.parseInt(P,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,16))}},this.addExternalEntities=c,this.parseXml=T,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=y,this.replaceEntitiesValue=E,this.readStopNodeData=g,this.saveTextToParentTag=x,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 h=a[f],T=n(h);let m="";if(m=c===void 0?T:c+"."+T,T===u.textNodeName)l===void 0?l=h[T]:l+=""+h[T];else{if(T===void 0)continue;if(h[T]){let E=r(h[T],u,m);const x=i(E,u);h[":@"]?o(E,h[":@"],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[T]!==void 0&&s.hasOwnProperty(T)?(Array.isArray(s[T])||(s[T]=[s[T]]),s[T].push(E)):u.isArray(T,m,x)?s[T]=[E]:s[T]=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 h=0;h<f;h++){const T=s[h];l.isArray(T,c+"."+T,!0,!0)?a[T]=[u[T]]:a[T]=u[T]}}}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,h=1732584193,T=-271733879,m=-1732584194,E=271733878,x=0;x<s.length;x++)s[x]=16711935&(s[x]<<8|s[x]>>>24)|4278255360&(s[x]<<24|s[x]>>>8);s[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;var y=u._ff,p=u._gg,d=u._hh,g=u._ii;for(x=0;x<s.length;x+=16){var v=h,A=T,I=m,P=E;h=y(h,T,m,E,s[x+0],7,-680876936),E=y(E,h,T,m,s[x+1],12,-389564586),m=y(m,E,h,T,s[x+2],17,606105819),T=y(T,m,E,h,s[x+3],22,-1044525330),h=y(h,T,m,E,s[x+4],7,-176418897),E=y(E,h,T,m,s[x+5],12,1200080426),m=y(m,E,h,T,s[x+6],17,-1473231341),T=y(T,m,E,h,s[x+7],22,-45705983),h=y(h,T,m,E,s[x+8],7,1770035416),E=y(E,h,T,m,s[x+9],12,-1958414417),m=y(m,E,h,T,s[x+10],17,-42063),T=y(T,m,E,h,s[x+11],22,-1990404162),h=y(h,T,m,E,s[x+12],7,1804603682),E=y(E,h,T,m,s[x+13],12,-40341101),m=y(m,E,h,T,s[x+14],17,-1502002290),h=p(h,T=y(T,m,E,h,s[x+15],22,1236535329),m,E,s[x+1],5,-165796510),E=p(E,h,T,m,s[x+6],9,-1069501632),m=p(m,E,h,T,s[x+11],14,643717713),T=p(T,m,E,h,s[x+0],20,-373897302),h=p(h,T,m,E,s[x+5],5,-701558691),E=p(E,h,T,m,s[x+10],9,38016083),m=p(m,E,h,T,s[x+15],14,-660478335),T=p(T,m,E,h,s[x+4],20,-405537848),h=p(h,T,m,E,s[x+9],5,568446438),E=p(E,h,T,m,s[x+14],9,-1019803690),m=p(m,E,h,T,s[x+3],14,-187363961),T=p(T,m,E,h,s[x+8],20,1163531501),h=p(h,T,m,E,s[x+13],5,-1444681467),E=p(E,h,T,m,s[x+2],9,-51403784),m=p(m,E,h,T,s[x+7],14,1735328473),h=d(h,T=p(T,m,E,h,s[x+12],20,-1926607734),m,E,s[x+5],4,-378558),E=d(E,h,T,m,s[x+8],11,-2022574463),m=d(m,E,h,T,s[x+11],16,1839030562),T=d(T,m,E,h,s[x+14],23,-35309556),h=d(h,T,m,E,s[x+1],4,-1530992060),E=d(E,h,T,m,s[x+4],11,1272893353),m=d(m,E,h,T,s[x+7],16,-155497632),T=d(T,m,E,h,s[x+10],23,-1094730640),h=d(h,T,m,E,s[x+13],4,681279174),E=d(E,h,T,m,s[x+0],11,-358537222),m=d(m,E,h,T,s[x+3],16,-722521979),T=d(T,m,E,h,s[x+6],23,76029189),h=d(h,T,m,E,s[x+9],4,-640364487),E=d(E,h,T,m,s[x+12],11,-421815835),m=d(m,E,h,T,s[x+15],16,530742520),h=g(h,T=d(T,m,E,h,s[x+2],23,-995338651),m,E,s[x+0],6,-198630844),E=g(E,h,T,m,s[x+7],10,1126891415),m=g(m,E,h,T,s[x+14],15,-1416354905),T=g(T,m,E,h,s[x+5],21,-57434055),h=g(h,T,m,E,s[x+12],6,1700485571),E=g(E,h,T,m,s[x+3],10,-1894986606),m=g(m,E,h,T,s[x+10],15,-1051523),T=g(T,m,E,h,s[x+1],21,-2054922799),h=g(h,T,m,E,s[x+8],6,1873313359),E=g(E,h,T,m,s[x+15],10,-30611744),m=g(m,E,h,T,s[x+6],15,-1560198380),T=g(T,m,E,h,s[x+13],21,1309151649),h=g(h,T,m,E,s[x+4],6,-145523070),E=g(E,h,T,m,s[x+11],10,-1120210379),m=g(m,E,h,T,s[x+2],15,718787259),T=g(T,m,E,h,s[x+9],21,-343485551),h=h+v>>>0,T=T+A>>>0,m=m+I>>>0,E=E+P>>>0}return n.endian([h,T,m,E])};u._ff=function(c,l,s,f,h,T,m){var E=c+(l&s|~l&f)+(h>>>0)+m;return(E<<T|E>>>32-T)+l},u._gg=function(c,l,s,f,h,T,m){var E=c+(l&f|s&~f)+(h>>>0)+m;return(E<<T|E>>>32-T)+l},u._hh=function(c,l,s,f,h,T,m){var E=c+(l^s^f)+(h>>>0)+m;return(E<<T|E>>>32-T)+l},u._ii=function(c,l,s,f,h,T,m){var E=c+(s^(l|~f))+(h>>>0)+m;return(E<<T|E>>>32-T)+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(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),x((function(p){return p.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)})(y),!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(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function s(y){return y.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function f(y){if(!y)return[""];var p=[],d=n("{","}",y);if(!d)return y.split(",");var g=d.pre,v=d.body,A=d.post,I=g.split(",");I[I.length-1]+="{"+v+"}";var P=f(A);return A.length&&(I[I.length-1]+=P.shift(),I.push.apply(I,P)),p.push.apply(p,I),p}function h(y){return"{"+y+"}"}function T(y){return/^-?0\d/.test(y)}function m(y,p){return y<=p}function E(y,p){return y>=p}function x(y,p){var d=[],g=n("{","}",y);if(!g)return[y];var v=g.pre,A=g.post.length?x(g.post,!1):[""];if(/\$$/.test(g.pre))for(var I=0;I<A.length;I++){var P=v+"{"+g.body+"}"+A[I];d.push(P)}else{var R,j,K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(g.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(g.body),k=K||L,re=g.body.indexOf(",")>=0;if(!k&&!re)return g.post.match(/,.*\}/)?x(y=g.pre+"{"+g.body+a+g.post):[y];if(k)R=g.body.split(/\.\./);else if((R=f(g.body)).length===1&&(R=x(R[0],!1).map(h)).length===1)return A.map((function(V){return g.pre+R[0]+V}));if(k){var ee=l(R[0]),ue=l(R[1]),le=Math.max(R[0].length,R[1].length),de=R.length==3?Math.abs(l(R[2])):1,fe=m;ue<ee&&(de*=-1,fe=E);var be=R.some(T);j=[];for(var pe=ee;fe(pe,ue);pe+=de){var G;if(L)(G=String.fromCharCode(pe))==="\\"&&(G="");else if(G=String(pe),be){var Z=le-G.length;if(Z>0){var Q=new Array(Z+1).join("0");G=pe<0?"-"+Q+G.slice(1):Q+G}}j.push(G)}}else{j=[];for(var ae=0;ae<R.length;ae++)j.push.apply(j,x(R[ae],!1))}for(ae=0;ae<j.length;ae++)for(I=0;I<A.length;I++)P=v+j[ae]+A[I],(!p||k||P)&&d.push(P)}return d}},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||(h=f,Function.toString.call(h).indexOf("[native code]")===-1))return f;var h;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,T)}function T(){return n(f,arguments,i(this).constructor)}return T.prototype=Object.create(f.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),o(T,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(h,T,m){var E=[null];E.push.apply(E,T);var x=new(Function.bind.apply(h,E));return m&&o(x,m.prototype),x},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(f,h){return f.__proto__=h,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 h;return(function(T,m){if(!(T instanceof m))throw new TypeError("Cannot call a class as a function")})(this,s),(h=(function(T,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})(T):m})(this,i(s).call(this,f))).name="ObjectPrototypeMutationError",h}return(function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&o(f,h)})(s,l),s})(r(Error));function u(l,s){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=s.split("."),T=h.length,m=function(y){var p=h[y];if(!l)return{v:void 0};if(p==="+"){if(Array.isArray(l))return{v:l.map((function(g,v){var A=h.slice(y+1);return A.length>0?u(g,A.join("."),f):f(l,v,h,y)}))};var d=h.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(d,") is not an array"))}l=f(l,p,h,y)},E=0;E<T;E++){var x=m(E);if(t(x)==="object")return x.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(h,T,m,E){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[T]){var x=Number.isInteger(Number(m[E+1])),y=m[E+1]==="+";h[T]=x||y?[]:{}}return c(m,E)&&(h[T]=f),h[T]}))}catch(h){if(h instanceof a)throw h;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,h){return f[h]}))}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 h=!1;return u(l,s,(function(T,m,E,x){if(!c(E,x))return T&&T[m];h=f.own?T.hasOwnProperty(m):m in T})),h}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var T=!1,m=!1;return u(l,s,(function(E,x,y,p){return T=T||E===f||!!E&&E[x]===f,m=c(y,p)&&t(E)==="object"&&x in E,E&&E[x]})),h.validPath?T&&m:T}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=[],h=0;h<l.length;h++){var T=l[h];T&&T!=="."&&(T===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(T))}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 h=f>=0?arguments[f]:me.cwd();if(!o(h))throw new TypeError("Arguments to path.resolve must be strings");h&&(l=h+"/"+l,s=h.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(p){for(var d=0;d<p.length&&p[d]==="";d++);for(var g=p.length-1;g>=0&&p[g]==="";g--);return d>g?[]:p.slice(d,g+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=f(l.split("/")),T=f(s.split("/")),m=Math.min(h.length,T.length),E=m,x=0;x<m;x++)if(h[x]!==T[x]){E=x;break}var y=[];for(x=E;x<h.length;x++)y.push("..");return(y=y.concat(T.slice(E))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=c(l),f=s[0],h=s[1];return f||h?(h&&(h=h.substr(0,h.length-1)),f+h):"."},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 h=c[4]||c[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const T=Number(a),m=""+T;return m.search(/[eE]/)!==-1||h?i.eNotation?T:o:a.indexOf(".")!==-1?m==="0"&&f===""||m===f||l&&m==="-"+f?T:o:s?f===m||l+f===m?T:o:a===m||a===l+m?T: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(p){return(p||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(p,d){return E(d.protocol)?p.replace(/\\/g,"/"):p},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],T={hash:1,query:1};function m(p){var d,g=(typeof window<"u"?window:typeof mt<"u"?mt:typeof self<"u"?self:{}).location||{},v={},A=typeof(p=p||g);if(p.protocol==="blob:")v=new y(unescape(p.pathname),{});else if(A==="string")for(d in v=new y(p,{}),T)delete v[d];else if(A==="object"){for(d in p)d in T||(v[d]=p[d]);v.slashes===void 0&&(v.slashes=u.test(p.href))}return v}function E(p){return p==="file:"||p==="ftp:"||p==="http:"||p==="https:"||p==="ws:"||p==="wss:"}function x(p,d){p=(p=f(p)).replace(a,""),d=d||{};var g,v=l.exec(p),A=v[1]?v[1].toLowerCase():"",I=!!v[2],P=!!v[3],R=0;return I?P?(g=v[2]+v[3]+v[4],R=v[2].length+v[3].length):(g=v[2]+v[4],R=v[2].length):P?(g=v[3]+v[4],R=v[3].length):g=v[4],A==="file:"?R>=2&&(g=g.slice(2)):E(A)?g=v[4]:A?I&&(g=g.slice(2)):R>=2&&E(d.protocol)&&(g=v[4]),{protocol:A,slashes:I||E(A),slashesCount:R,rest:g}}function y(p,d,g){if(p=(p=f(p)).replace(a,""),!(this instanceof y))return new y(p,d,g);var v,A,I,P,R,j,K=h.slice(),L=typeof d,k=this,re=0;for(L!=="object"&&L!=="string"&&(g=d,d=null),g&&typeof g!="function"&&(g=o.parse),v=!(A=x(p||"",d=m(d))).protocol&&!A.slashes,k.slashes=A.slashes||v&&d.slashes,k.protocol=A.protocol||d.protocol||"",p=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||s.test(p))||!A.slashes&&(A.protocol||A.slashesCount<2||!E(k.protocol)))&&(K[3]=[/(.*)/,"pathname"]);re<K.length;re++)typeof(P=K[re])!="function"?(I=P[0],j=P[1],I!=I?k[j]=p:typeof I=="string"?~(R=I==="@"?p.lastIndexOf(I):p.indexOf(I))&&(typeof P[2]=="number"?(k[j]=p.slice(0,R),p=p.slice(R+P[2])):(k[j]=p.slice(R),p=p.slice(0,R))):(R=I.exec(p))&&(k[j]=R[1],p=p.slice(0,R.index)),k[j]=k[j]||v&&P[3]&&d[j]||"",P[4]&&(k[j]=k[j].toLowerCase())):p=P(p,k);g&&(k.query=g(k.query)),v&&d.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||d.pathname!=="")&&(k.pathname=(function(ee,ue){if(ee==="")return ue;for(var le=(ue||"/").split("/").slice(0,-1).concat(ee.split("/")),de=le.length,fe=le[de-1],be=!1,pe=0;de--;)le[de]==="."?le.splice(de,1):le[de]===".."?(le.splice(de,1),pe++):pe&&(de===0&&(be=!0),le.splice(de,1),pe--);return be&&le.unshift(""),fe!=="."&&fe!==".."||le.push(""),le.join("/")})(k.pathname,d.pathname)),k.pathname.charAt(0)!=="/"&&E(k.protocol)&&(k.pathname="/"+k.pathname),n(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(R=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,R),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(R+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin=k.protocol!=="file:"&&E(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}y.prototype={set:function(p,d,g){var v=this;switch(p){case"query":typeof d=="string"&&d.length&&(d=(g||o.parse)(d)),v[p]=d;break;case"port":v[p]=d,n(d,v.protocol)?d&&(v.host=v.hostname+":"+d):(v.host=v.hostname,v[p]="");break;case"hostname":v[p]=d,v.port&&(d+=":"+v.port),v.host=d;break;case"host":v[p]=d,c.test(d)?(d=d.split(":"),v.port=d.pop(),v.hostname=d.join(":")):(v.hostname=d,v.port="");break;case"protocol":v.protocol=d.toLowerCase(),v.slashes=!g;break;case"pathname":case"hash":if(d){var A=p==="pathname"?"/":"#";v[p]=d.charAt(0)!==A?A+d:d}else v[p]=d;break;case"username":case"password":v[p]=encodeURIComponent(d);break;case"auth":var I=d.indexOf(":");~I?(v.username=d.slice(0,I),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=d.slice(I+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(d))}for(var P=0;P<h.length;P++){var R=h[P];R[4]&&(v[R[1]]=v[R[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&E(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(p){p&&typeof p=="function"||(p=o.stringify);var d,g=this,v=g.host,A=g.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var I=A+(g.protocol&&g.slashes||E(g.protocol)?"//":"");return g.username?(I+=g.username,g.password&&(I+=":"+g.password),I+="@"):g.password?(I+=":"+g.password,I+="@"):g.protocol!=="file:"&&E(g.protocol)&&!v&&g.pathname!=="/"&&(I+="@"),(v[v.length-1]===":"||c.test(g.hostname)&&!g.port)&&(v+=":"),I+=v+g.pathname,(d=typeof g.query=="object"?p(g.query):g.query)&&(I+=d.charAt(0)!=="?"?"?"+d:d),g.hash&&(I+=g.hash),I}},y.extractProtocol=x,y.location=m,y.trimLeft=f,y.qs=o,e.exports=y},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},jl={};function Se(e){var t=jl[e];if(t!==void 0)return t.exports;var r=jl[e]={id:e,loaded:!1,exports:{}};return dy[e].call(r.exports,r,r.exports,Se),r.loaded=!0,r.exports}Se.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Se.d(t,{a:t}),t},Se.d=(e,t)=>{for(var r in t)Se.o(t,r)&&!Se.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Se.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Se.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var ot={};Se.d(ot,{hT:()=>Ze,O4:()=>At,Kd:()=>xy,YK:()=>Ay,UU:()=>Nm,Gu:()=>zl,ky:()=>cc,h4:()=>vr,ch:()=>sn,hq:()=>kt,i5:()=>fc});var py=Se(737),gy=Se.n(py);function xo(e){if(!Ao(e))throw new Error("Parameter was not an error")}function Ao(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Je extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=(function(u){let c,l="";if(u.length===0)c={};else if(Ao(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 xo(t),t._cause&&Ao(t._cause)?t._cause:null}static fullStack(t){xo(t);const r=Je.cause(t);return r?`${t.stack}
32
+ caused by: ${Je.fullStack(r)}`:t.stack??""}static info(t){xo(t);const r={},n=Je.cause(t);return n&&Object.assign(r,Je.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 yy=Se(47),Zr=Se.n(yy);const kl="__PATH_SEPARATOR_POSIX__",Dl="__PATH_SEPARATOR_WINDOWS__";function Ce(e){try{const t=e.replace(/\//g,kl).replace(/\\\\/g,Dl);return encodeURIComponent(t).split(Dl).join("\\\\").split(kl).join("/")}catch(t){throw new Je(t,"Failed encoding path")}}function Ml(e){return e.startsWith("/")?e:"/"+e}function yr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function my(e){let t=new(gy())(e).pathname;return t.length<=0&&(t="/"),yr(t)}function Be(){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 by=Se(542),mr=Se.n(by);const wy="abcdef0123456789";function ql(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(h,T,m,E,x,y,p){const d=p||mr()(`${T}:${m}:${E}`);return h&&h.toLowerCase()==="md5-sess"?mr()(`${d}:${x}:${y}`):d})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=mr()(`${o}:${n}`),l=i?mr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):mr()(`${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 h in s)s[h]&&(h==="qop"||h==="nc"||h==="algorithm"?f.push(`${h}=${s[h]}`):f.push(`${h}="${s[h]}"`));return`Digest ${f.join(", ")}`}function $l(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var vy=Se(101),Hl=Se.n(vy);function Vl(e){return Hl().decode(e)}function Wl(e,t){var r;return`Basic ${r=`${e}:${t}`,Hl().encode(r)}`}const Qr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Ey=Qr.fetch.bind(Qr),xy=Qr.Request,Ay=Qr.Response;let Ze=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),At=(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 Gl(e,t,r,n,o){switch(e.authType){case Ze.Auto:t&&r&&(e.headers.Authorization=Wl(t,r));break;case Ze.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 Ze.None:break;case Ze.Password:e.headers.Authorization=Wl(t,r);break;case Ze.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new Je({info:{code:At.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Se(345),Se(800);const Kl="@@HOTPATCHER",Ty=()=>{};function To(e){return{original:e,methods:[e],final:!1}}class Sy{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Kl}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__!==Kl)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)||Ty;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]=To(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(To(r),{original:i})}else this.configuration.registry[t]=To(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 So=null;function zl(){return So||(So=new Sy),So}function en(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 Xl(){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?Yl(n,i):en(i)}return n}function Yl(e,t){const r=en(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]?Yl(r[n],t[n]):en(t[n]):r[n]=t[n]:r[n]=t[n]})),r}function _y(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function _o(){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)),{})}Se(805);const Ry=typeof ArrayBuffer=="function",{toString:Oy}=Object.prototype;function Jl(e){return Ry&&(e instanceof ArrayBuffer||Oy.call(e)==="[object ArrayBuffer]")}function Zl(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ro(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 Oo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Ql=Ro((function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Xl(e,{headers:{Authorization:ql(e,t)}})),Oo(tn(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(!$l(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}${wy[Math.floor(16*Math.random())]}`;return l})(),!0})(r,t),(function(){if(t.hasDigestAuth)return Oo(tn(e=Xl(e,{headers:{Authorization:ql(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}))})),Ny=Ro((function(e,t){return Oo(tn(e),(function(r){return r.ok?(t.authType=Ze.Password,r):r.status==401&&$l(r)?(t.authType=Ze.Digest,Gl(t,t.username,t.password,void 0,void 0),e._digest=t.digest,Ql(e)):r}))})),Me=Ro((function(e,t){return t.authType===Ze.Auto?Ny(e,t):e._digest?Ql(e):tn(e)}));function qe(e,t,r){const n=en(e);return n.headers=_o(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 tn(e){const t=zl();return t.patchInline("request",(r=>t.patchInline("fetch",Ey,r.url,(function(n){let o={};const i={method:n.method};if(n.headers&&(o=_o(o,n.headers)),n.data!==void 0){const[a,u]=(function(c){if(typeof c=="string")return[c,{}];if(Zl(c))return[c,{}];if(Jl(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=_o(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i})(r))),e)}var Iy=Se(285);const rn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Py={"[: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]},br=e=>e.replace(/[[\]\\-]/g,"\\$&"),ec=e=>e.join(""),Fy=(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[x,[y,p,d]]of Object.entries(Py))if(e.startsWith(x,i)){if(f)return["$.",!1,e.length-r,!0];i+=x.length,d?o.push(y):n.push(y),u=u||p;continue e}}c=!1,f?(E>f?n.push(br(f)+"-"+br(E)):E===f&&n.push(br(E)),f="",i++):e.startsWith("-]",i+1)?(n.push(br(E+"-")),i+=2):e.startsWith("-",i+1)?(f=E,i+=2):(n.push(br(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[(h=n[0].length===2?n[0].slice(-1):n[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var h;const T="["+(l?"^":"")+ec(n)+"]",m="["+(l?"":"^")+ec(o)+"]";return[n.length&&o.length?"("+T+"|"+m+")":n.length?T:m,u,s-r,!0]},wr=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")},Cy=new Set(["!","?","+","*","@"]),tc=e=>Cy.has(e),No="(?!\\.)",By=new Set(["[","."]),Ly=new Set(["..","."]),Uy=new Set("().*{}+?[]^$\\!"),Io="[^/]",rc=Io+"*?",nc=Io+"+?";class Qe{type;#e;#r;#o=!1;#t=[];#n;#d;#l;#g=!1;#f;#c;#p=!1;constructor(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#r=!0),this.#n=r,this.#e=this.#n?this.#n.#e:this,this.#f=this.#e===this?n:this.#e.#f,this.#l=this.#e===this?[]:this.#e.#l,t!=="!"||this.#e.#g||this.#l.push(this),this.#d=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#t.map((t=>String(t))).join("|")+")":this.#c=this.#t.map((t=>String(t))).join("")}#h(){if(this!==this.#e)throw new Error("should only call on root");if(this.#g)return this;let t;for(this.toString(),this.#g=!0;t=this.#l.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let o=r.#d+1;!n.type&&o<n.#t.length;o++)for(const i of t.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(n.#t[o])}r=n,n=r.#n}}return this}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 Qe&&o.#n===this))throw new Error("invalid part: "+o);this.#t.push(o)}}toJSON(){const t=this.type===null?this.#t.slice().map((r=>typeof r=="string"?r:r.toJSON())):[this.type,...this.#t.map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#g&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#d===0)return!0;const t=this.#n;for(let r=0;r<this.#d;r++){const n=t.#t[r];if(!(n instanceof Qe&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();const t=this.#n?this.#n.#t.length:0;return this.#d===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Qe(this.type,t);for(const n of this.#t)r.copyIn(n);return r}static#s(t,r,n,o){let i=!1,a=!1,u=-1,c=!1;if(r.type===null){let T=n,m="";for(;T<t.length;){const E=t.charAt(T++);if(i||E==="\\")i=!i,m+=E;else if(a)T===u+1?E!=="^"&&E!=="!"||(c=!0):E!=="]"||T===u+2&&c||(a=!1),m+=E;else if(E!=="[")if(o.noext||!tc(E)||t.charAt(T)!=="(")m+=E;else{r.push(m),m="";const x=new Qe(E,r);T=Qe.#s(t,x,T,o),r.push(x)}else a=!0,u=T,c=!1,m+=E}return r.push(m),T}let l=n+1,s=new Qe(null,r);const f=[];let h="";for(;l<t.length;){const T=t.charAt(l++);if(i||T==="\\")i=!i,h+=T;else if(a)l===u+1?T!=="^"&&T!=="!"||(c=!0):T!=="]"||l===u+2&&c||(a=!1),h+=T;else if(T!=="[")if(tc(T)&&t.charAt(l)==="("){s.push(h),h="";const m=new Qe(T,s);s.push(m),l=Qe.#s(t,m,l,o)}else if(T!=="|"){if(T===")")return h===""&&r.#t.length===0&&(r.#p=!0),s.push(h),h="",r.push(...f,s),l;h+=T}else s.push(h),h="",f.push(s),s=new Qe(null,r);else a=!0,u=l,c=!1,h+=T}return r.type=null,r.#r=void 0,r.#t=[t.substring(n-1)],l}static fromGlob(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new Qe(null,void 0,r);return Qe.#s(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||this.#r||this.#f.nocase&&!this.#f.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(this.#f.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#f}toRegExpSource(t){const r=t??!!this.#f.dot;if(this.#e===this&&this.#h(),!this.type){const c=this.isStart()&&this.isEnd(),l=this.#t.map((h=>{const[T,m,E,x]=typeof h=="string"?Qe.#i(h,this.#r,c):h.toRegExpSource(t);return this.#r=this.#r||E,this.#o=this.#o||x,T})).join("");let s="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!Ly.has(this.#t[0]))){const h=By,T=r&&h.has(l.charAt(0))||l.startsWith("\\.")&&h.has(l.charAt(2))||l.startsWith("\\.\\.")&&h.has(l.charAt(4)),m=!r&&!t&&h.has(l.charAt(0));s=T?"(?!(?:^|/)\\.\\.?(?:$|/))":m?No:""}let f="";return this.isEnd()&&this.#e.#g&&this.#n?.type==="!"&&(f="(?:$|\\/)"),[s+l+f,wr(l),this.#r=!!this.#r,this.#o]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#a(r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const c=this.toString();return this.#t=[c],this.type=null,this.#r=void 0,[c,wr(this.toString()),!1,!1]}let a=!n||t||r?"":this.#a(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&this.#p?(this.isStart()&&!r?No:"")+nc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":No)+rc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,wr(i),this.#r=!!this.#r,this.#o]}#a(t){return this.#t.map((r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return this.#o=this.#o||a,n})).filter((r=>!(this.isStart()&&this.isEnd()&&!r))).join("|")}static#i(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+=(Uy.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,h]=Fy(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||h;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Io,r=!0):(i+=n&&t==="*"?nc:rc,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,wr(t),!!r,a]}}const Xe=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new nn(t,r).match(e)},jy=/^\*+([^+@!?\*\[\(]*)$/,ky=e=>t=>!t.startsWith(".")&&t.endsWith(e),Dy=e=>t=>t.endsWith(e),My=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),qy=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),$y=/^\*+\.\*+$/,Hy=e=>!e.startsWith(".")&&e.includes("."),Vy=e=>e!=="."&&e!==".."&&e.includes("."),Wy=/^\.\*+$/,Gy=e=>e!=="."&&e!==".."&&e.startsWith("."),Ky=/^\*+$/,zy=e=>e.length!==0&&!e.startsWith("."),Xy=e=>e.length!==0&&e!=="."&&e!=="..",Yy=/^\?+([^+@!?\*\[\(]*)?$/,Jy=e=>{let[t,r=""]=e;const n=ic([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},Zy=e=>{let[t,r=""]=e;const n=oc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},Qy=e=>{let[t,r=""]=e;const n=oc([t]);return r?o=>n(o)&&o.endsWith(r):n},em=e=>{let[t,r=""]=e;const n=ic([t]);return r?o=>n(o)&&o.endsWith(r):n},ic=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},oc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},sc=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";Xe.sep=sc==="win32"?"\\":"/";const st=Symbol("globstar **");Xe.GLOBSTAR=st,Xe.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>Xe(r,e,t)};const at=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};Xe.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Xe;const t=Xe;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:st})};const ac=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Iy(e)};Xe.braceExpand=ac,Xe.makeRe=function(e){return new nn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},Xe.match=function(e,t){const r=new nn(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 uc=/[?*]|[+@!]\(.*?\)|\[|\]/;class nn{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||sc,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]!=="?"&&uc.test(i[2])||uc.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]),x=!E&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),y=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),p=x?3:E?0:void 0,d=!y&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:y?0:void 0;if(typeof p=="number"&&typeof d=="number"){const[g,v]=[t[p],r[d]];g.toLowerCase()===v.toLowerCase()&&(r[d]=g,d>p?r=r.slice(d):p>d&&(t=t.slice(p)))}}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===st){this.debug("GLOBSTAR",[r,s,f]);var h=a,T=u+1;if(T===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(;h<c;){var m=t[h];if(this.debug(`
33
+ globstar while`,t,h,r,T,m),this.matchOne(t.slice(h),r.slice(T),n))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,h,r,T);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug(`
34
+ >>> no match, partial?`,t,h,r,T),h!==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 ac(this.pattern,this.options)}parse(t){rn(t);const r=this.options;if(t==="**")return st;if(t==="")return"";let n,o=null;(n=t.match(Ky))?o=r.dot?Xy:zy:(n=t.match(jy))?o=(r.nocase?r.dot?qy:My:r.dot?Dy:ky)(n[1]):(n=t.match(Yy))?o=(r.nocase?r.dot?Zy:Jy:r.dot?Qy:em)(n):(n=t.match($y))?o=r.dot?Vy:Hy:(n=t.match(Wy))&&(o=Gy);const i=Qe.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===st?st:s._src}));return l.forEach(((s,f)=>{const h=l[f+1],T=l[f-1];s===st&&T!==st&&(T===void 0?h!==void 0&&h!==st?l[f+1]="(?:\\/|"+n+"\\/)?"+h:l[f]=n:h===void 0?l[f-1]=T+"(?:\\/|"+n+")?":h!==st&&(l[f-1]=T+"(?:\\/|\\/"+n+"\\/)"+h,l[f+1]=st))})),l.filter((s=>s!==st)).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 Xe.defaults(t).Minimatch}}function Po(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 $e(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw Po(t);return t}function kt(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?_y(e.headers):{},status:e.status,statusText:e.statusText}:t}Xe.AST=Qe,Xe.Minimatch=nn,Xe.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},Xe.unescape=wr;const tm=(lc=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=qe({url:Be(e.remoteURL,Ce(t)),method:"COPY",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){$e(e,u)},(i=Me(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(lc.apply(this,e))}catch(r){return Promise.reject(r)}});var lc,Fo=Se(635),rm=Se(829),Tt=Se.n(rm),Qt=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(Qt||{});function on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qt.Original;const n=Tt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function vr(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 Tt().set(o,"multistatus.response",on(o,"multistatus.response",Qt.Array)),Tt().set(o,"multistatus.response",Tt().get(o,"multistatus.response").map((i=>(function(a){const u=Object.assign({},a);return u.status?Tt().set(u,"status",on(u,"status",Qt.Object)):(Tt().set(u,"propstat",on(u,"propstat",Qt.Object)),Tt().set(u,"propstat.prop",on(u,"propstat.prop",Qt.Object))),u})(i)))),o})(new Fo.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 sn(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:Zr().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 cc(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 sn(o,yr(t),r)}function fc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Co(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Bo=(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:Be(e.remoteURL,Ce(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Co(Me(o,e),(function(i){return $e(e,i),Co(i.text(),(function(a){return Co(vr(a),(function(u){const c=cc(u,t,n);return kt(i,c,n)}))}))}))}));function hc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const nm=dc((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=Zr().dirname(a);while(a&&a!=="/");return u})(yr(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[gc]=="function"){let E=function(x){try{for(;!(c=f.next()).done;)if((x=a(c.value))&&x.then){if(!yc(x))return void x.then(E,s||(s=et.bind(null,l=new er,2)));x=x.v}l?et(l,1,x):l=x}catch(y){et(l||(l=new er),2,y)}};var c,l,s,f=i[gc]();if(E(),f.return){var h=function(x){try{c.done||f.return()}catch{}return x};if(l&&l.then)return l.then(h,(function(x){throw h(x)}));h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var T=[],m=0;m<i.length;m++)T.push(i[m]);return(function(E,x,y){var p,d,g=-1;return(function v(A){try{for(;++g<E.length&&(!y||!y());)if((A=x(g))&&A.then){if(!yc(A))return void A.then(v,d||(d=et.bind(null,p=new er,2)));A=A.v}p?et(p,1,A):p=A}catch(I){et(p||(p=new er),2,I)}})(),p})(T,(function(E){return a(T[E])}),u)})(n,(function(i){return a=function(){return(function(c,l){try{var s=hc(Bo(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,pc(Lo(e,i,{...r,recursive:!1}));throw c})()}))},(u=(function(){if(o)return pc(Lo(e,i,{...r,recursive:!1}))})())&&u.then?u.then(a):a();var a,u}),(function(){return!1}))}));function dc(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 im(){}function pc(e,t){return e&&e.then?e.then(im):Promise.resolve()}const gc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function et(e,t,r){if(!e.s){if(r instanceof er){if(!r.s)return void(r.o=et.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(et.bind(null,e,t),et.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const er=(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{et(n,1,i(this.v))}catch(a){et(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?et(n,1,t?t(a):a):r?et(n,1,r(a)):et(n,2,a)}catch(a){et(n,2,a)}},n},e})();function yc(e){return e instanceof er&&1&e.s}const Lo=dc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return nm(e,t,r);const n=qe({url:Be(e.remoteURL,(o=Ce(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return hc(Me(n,e),(function(i){$e(e,i)}))}));var om=Se(388),mc=Se.n(om);const sm=(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:Be(e.remoteURL,Ce(t)),method:"GET",headers:n},e,r);return a=function(u){if($e(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=Me(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a})),am=()=>{},um=(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=Be(e.remoteURL,Ce(t)));const n=qe(r,e,{});return i=function(a){return $e(e,a),a},(o=Me(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),lm=(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:Be(e.remoteURL,Ce(t)),method:"DELETE"},e,r);return i=function(a){$e(e,a)},(o=Me(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),cm=(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=Bo(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 Uo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const fm=(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:Be(e.remoteURL,Ce(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Uo(Me(n,e),(function(o){return $e(e,o),Uo(o.text(),(function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Uo(vr(i),(function(a){const u=Ml(t);let c=(function(l,s,f){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],T=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Zr().join(s,"/"),{multistatus:{response:E}}=l,x=E.map((y=>{const p=(function(g){try{return g.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new Je(v,"Failed normalising HREF")}})(y.href),{propstat:{prop:d}}=y;return sn(d,m==="/"?decodeURIComponent(yr(p)):yr(Zr().relative(decodeURIComponent(m),decodeURIComponent(p))),h)}));return T?x:x.filter((y=>y.basename&&(y.type==="file"||y.filename!==f.replace(/\/$/,""))))})(a,Ml(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=(function(l,s){return l.filter((f=>Xe(f.filename,s,{matchBase:!0})))})(c,r.glob)),kt(o,c,r.details)}))}))}))}));function jo(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 hm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=qe({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[gm]},e,r);return an(Me(n,e),(function(o){return $e(e,o),an(o.text(),(function(i){return kt(o,i,r.details)}))}))}));function an(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const dm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=qe({url:Be(e.remoteURL,Ce(t)),method:"GET"},e,r);return an(Me(n,e),(function(o){let i;return $e(e,o),(function(a,u){var c=a();return c&&c.then?c.then(u):u()})((function(){return an(o.arrayBuffer(),(function(a){i=a}))}),(function(){return kt(o,i,r.details)}))}))})),pm=jo((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 Je({info:{code:At.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?hm(e,t,r):dm(e,t,r)})),gm=e=>e;function ym(e){return new Fo.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(bc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function bc(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}`]=bc(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function ko(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function wc(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 mm=wc((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=qe({url:Be(e.remoteURL,Ce(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return ko(Me(o,e),(function(i){if($e(e,i),i.status!==204&&i.status!==200)throw Po(i)}))})),bm=wc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=wm}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=qe({url:Be(e.remoteURL,Ce(t)),method:"LOCK",headers:i,data:ym(e.contactHref)},e,r);return ko(Me(a,e),(function(u){return $e(e,u),ko(u.text(),(function(c){const l=(h=c,new Fo.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=Tt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Tt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw Po(u,"No lock token received: ");return{token:s,serverTimeout:f}}))}))})),wm="Infinite, Second-4100000000";function Do(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const vm=(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:Be(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Do(Me(n,e),(function(o){return $e(e,o),Do(o.text(),(function(i){return Do(vr(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:fc(f)}:null}catch{}return null})(a);return kt(o,u,t.details)}))}))}))}));function Mo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Em=(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:Be(e.remoteURL,Ce(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Mo(Me(o,e),(function(i){return $e(e,i),Mo(i.text(),(function(a){return Mo(vr(a),(function(u){const c=(function(l,s,f){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some((T=>(T.status||T.propstat?.status).split(" ",3)?.[1]==="507"&&T.href.replace(/\/$/,"").endsWith(Ce(s).replace(/\/$/,"")))),l.multistatus.response.forEach((T=>{if(T.propstat===void 0)return;const m=T.href.split("/").map(decodeURIComponent).join("/");h.results.push(sn(T.propstat.prop,m,f))})),h})(u,t,n);return kt(i,c,n)}))}))}))})),xm=(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:Be(e.remoteURL,Ce(t)),method:"MOVE",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){$e(e,u)},(i=Me(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}));var Am=Se(172);const Tm=(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(Jl(s))return s.byteLength;if(Zl(s))return s.length;if(typeof s=="string")return(0,Am.d)(s);throw new Je({info:{code:At.DataTypeNoLength}},"Cannot calculate data length: Invalid type")})(r)}`),i||(a["If-None-Match"]="*");const u=qe({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{$e(e,s)}catch(f){const h=f;if(h.status!==412||i)throw h;return!1}return!0},(c=Me(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l})),vc=(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:Be(e.remoteURL,Ce(t)),method:"OPTIONS"},e,r);return i=function(a){try{$e(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map((u=>u.trim())),server:a.headers.get("Server")??""}},(o=Me(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}));function Er(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Sm=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.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:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:o},e,i);return Er(Me(u,e),(function(c){$e(e,c)}))}));function Ec(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const _m=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.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:Be(e.remoteURL,Ce(t)),method:"PATCH",headers:a,data:o},e,i);return Er(Me(u,e),(function(c){$e(e,c)}))}));function qo(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 Rm=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Er(vc(e,t,i),(function(a){let u=!1;return Ec((function(){if(a.compliance.includes("sabredav-partialupdate"))return Er(_m(e,t,r,n,o,i),(function(c){return u=!0,c}))}),(function(c){let l=!1;return u?c:Ec((function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Er(Sm(e,t,r,n,o,i),(function(s){return l=!0,s}))}),(function(s){if(l)return s;throw new Je({info:{code:At.NotSupported}},"Not supported")}))}))}))})),Om="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Nm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Om,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:h}=t;let T=r;T||(T=f||l?Ze.Password:Ze.None);const m={authType:T,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:my(e),remoteURL:e,token:s,username:f,withCredentials:h};return Gl(m,f,l,s,i),{copyFile:(E,x,y)=>tm(m,E,x,y),createDirectory:(E,x)=>Lo(m,E,x),createReadStream:(E,x)=>(function(y,p){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=new(mc()).PassThrough;return sm(y,p,d).then((v=>{v.pipe(g)})).catch((v=>{g.emit("error",v)})),g})(m,E,x),createWriteStream:(E,x,y)=>(function(p,d){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:am;const A=new(mc()).PassThrough,I={};g.overwrite===!1&&(I["If-None-Match"]="*");const P=qe({url:Be(p.remoteURL,Ce(d)),method:"PUT",headers:I,data:A,maxRedirects:0},p,g);return Me(P,p).then((R=>$e(p,R))).then((R=>{setTimeout((()=>{v(R)}),0)})).catch((R=>{A.emit("error",R)})),A})(m,E,x,y),customRequest:(E,x)=>um(m,E,x),deleteFile:(E,x)=>lm(m,E,x),exists:(E,x)=>cm(m,E,x),getDirectoryContents:(E,x)=>fm(m,E,x),getFileContents:(E,x)=>pm(m,E,x),getFileDownloadLink:E=>(function(x,y){let p=Be(x.remoteURL,Ce(y));const d=/^https:/i.test(p)?"https":"http";switch(x.authType){case Ze.None:break;case Ze.Password:{const g=Vl(x.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${x.authType}`)}return p})(m,E),getFileUploadLink:E=>(function(x,y){let p=`${Be(x.remoteURL,Ce(y))}?Content-Type=application/octet-stream`;const d=/^https:/i.test(p)?"https":"http";switch(x.authType){case Ze.None:break;case Ze.Password:{const g=Vl(x.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${x.authType}`)}return p})(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>vm(m,E),lock:(E,x)=>bm(m,E,x),moveFile:(E,x,y)=>xm(m,E,x,y),putFileContents:(E,x,y)=>Tm(m,E,x,y),partialUpdateFileContents:(E,x,y,p,d)=>Rm(m,E,x,y,p,d),getDAVCompliance:E=>vc(m,E),search:(E,x)=>Em(m,E,x),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,x)=>Bo(m,E,x),unlock:(E,x,y)=>mm(m,E,x,y)}}ot.hT,ot.O4,ot.Kd,ot.YK;var Im=ot.UU;ot.Gu,ot.ky;var Pm=ot.h4,Fm=ot.ch;ot.hq,ot.i5;const We=[];for(let e=0;e<256;++e)We.push((e+256).toString(16).slice(1));function Cm(e,t=0){return(We[e[t+0]]+We[e[t+1]]+We[e[t+2]]+We[e[t+3]]+"-"+We[e[t+4]]+We[e[t+5]]+"-"+We[e[t+6]]+We[e[t+7]]+"-"+We[e[t+8]]+We[e[t+9]]+"-"+We[e[t+10]]+We[e[t+11]]+We[e[t+12]]+We[e[t+13]]+We[e[t+14]]+We[e[t+15]]).toLowerCase()}let $o;const Bm=new Uint8Array(16);function Lm(){if(!$o){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$o=crypto.getRandomValues.bind(crypto)}return $o(Bm)}var xc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Um(e,t,r){e=e||{};const n=e.random??e.rng?.()??Lm();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,Cm(n)}function jm(e,t,r){return xc.randomUUID&&!e?xc.randomUUID():Um(e)}var Ho={},Vo={},Ac;function Wo(){return Ac||(Ac=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 h=s.length;for(let T=0;T<h;T++)f.push(s[T]);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 h=0;h<f;h++)l==="strict"?u[s[h]]=[c[s[h]]]:u[s[h]]=c[s[h]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n})(Vo)),Vo}var Tc;function Sc(){if(Tc)return Ho;Tc=1;const e=Wo(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ho.validate=function(y,p){p=Object.assign({},t,p);const d=[];let g=!1,v=!1;y[0]==="\uFEFF"&&(y=y.substr(1));for(let A=0;A<y.length;A++)if(y[A]==="<"&&y[A+1]==="?"){if(A+=2,A=n(y,A),A.err)return A}else if(y[A]==="<"){let I=A;if(A++,y[A]==="!"){A=o(y,A);continue}else{let P=!1;y[A]==="/"&&(P=!0,A++);let R="";for(;A<y.length&&y[A]!==">"&&y[A]!==" "&&y[A]!==" "&&y[A]!==`
35
+ `&&y[A]!=="\r";A++)R+=y[A];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),A--),!m(R)){let L;return R.trim().length===0?L="Invalid space after '<'.":L="Tag '"+R+"' is an invalid name.",h("InvalidTag",L,E(y,A))}const j=u(y,A);if(j===!1)return h("InvalidAttr","Attributes for '"+R+"' have open quote.",E(y,A));let K=j.value;if(A=j.index,K[K.length-1]==="/"){const L=A-K.length;K=K.substring(0,K.length-1);const k=l(K,p);if(k===!0)g=!0;else return h(k.err.code,k.err.msg,E(y,L+k.err.line))}else if(P)if(j.tagClosed){if(K.trim().length>0)return h("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",E(y,I));if(d.length===0)return h("InvalidTag","Closing tag '"+R+"' has not been opened.",E(y,I));{const L=d.pop();if(R!==L.tagName){let k=E(y,L.tagStartPos);return h("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+k.line+", col "+k.col+") instead of closing tag '"+R+"'.",E(y,I))}d.length==0&&(v=!0)}}else return h("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",E(y,A));else{const L=l(K,p);if(L!==!0)return h(L.err.code,L.err.msg,E(y,A-K.length+L.err.line));if(v===!0)return h("InvalidXml","Multiple possible root nodes found.",E(y,A));p.unpairedTags.indexOf(R)!==-1||d.push({tagName:R,tagStartPos:I}),g=!0}for(A++;A<y.length;A++)if(y[A]==="<")if(y[A+1]==="!"){A++,A=o(y,A);continue}else if(y[A+1]==="?"){if(A=n(y,++A),A.err)return A}else break;else if(y[A]==="&"){const L=f(y,A);if(L==-1)return h("InvalidChar","char '&' is not expected.",E(y,A));A=L}else if(v===!0&&!r(y[A]))return h("InvalidXml","Extra text at the end",E(y,A));y[A]==="<"&&A--}}else{if(r(y[A]))continue;return h("InvalidChar","char '"+y[A]+"' is not expected.",E(y,A))}if(g){if(d.length==1)return h("InvalidTag","Unclosed tag '"+d[0].tagName+"'.",E(y,d[0].tagStartPos));if(d.length>0)return h("InvalidXml","Invalid '"+JSON.stringify(d.map(A=>A.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return h("InvalidXml","Start tag expected.",1);return!0};function r(y){return y===" "||y===" "||y===`
36
+ `||y==="\r"}function n(y,p){const d=p;for(;p<y.length;p++)if(y[p]=="?"||y[p]==" "){const g=y.substr(d,p-d);if(p>5&&g==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",E(y,p));if(y[p]=="?"&&y[p+1]==">"){p++;break}else continue}return p}function o(y,p){if(y.length>p+5&&y[p+1]==="-"&&y[p+2]==="-"){for(p+=3;p<y.length;p++)if(y[p]==="-"&&y[p+1]==="-"&&y[p+2]===">"){p+=2;break}}else if(y.length>p+8&&y[p+1]==="D"&&y[p+2]==="O"&&y[p+3]==="C"&&y[p+4]==="T"&&y[p+5]==="Y"&&y[p+6]==="P"&&y[p+7]==="E"){let d=1;for(p+=8;p<y.length;p++)if(y[p]==="<")d++;else if(y[p]===">"&&(d--,d===0))break}else if(y.length>p+9&&y[p+1]==="["&&y[p+2]==="C"&&y[p+3]==="D"&&y[p+4]==="A"&&y[p+5]==="T"&&y[p+6]==="A"&&y[p+7]==="["){for(p+=8;p<y.length;p++)if(y[p]==="]"&&y[p+1]==="]"&&y[p+2]===">"){p+=2;break}}return p}const i='"',a="'";function u(y,p){let d="",g="",v=!1;for(;p<y.length;p++){if(y[p]===i||y[p]===a)g===""?g=y[p]:g!==y[p]||(g="");else if(y[p]===">"&&g===""){v=!0;break}d+=y[p]}return g!==""?!1:{value:d,index:p,tagClosed:v}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(y,p){const d=e.getAllMatches(y,c),g={};for(let v=0;v<d.length;v++){if(d[v][1].length===0)return h("InvalidAttr","Attribute '"+d[v][2]+"' has no space in starting.",x(d[v]));if(d[v][3]!==void 0&&d[v][4]===void 0)return h("InvalidAttr","Attribute '"+d[v][2]+"' is without value.",x(d[v]));if(d[v][3]===void 0&&!p.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+d[v][2]+"' is not allowed.",x(d[v]));const A=d[v][2];if(!T(A))return h("InvalidAttr","Attribute '"+A+"' is an invalid name.",x(d[v]));if(!g.hasOwnProperty(A))g[A]=1;else return h("InvalidAttr","Attribute '"+A+"' is repeated.",x(d[v]))}return!0}function s(y,p){let d=/\d/;for(y[p]==="x"&&(p++,d=/[\da-fA-F]/);p<y.length;p++){if(y[p]===";")return p;if(!y[p].match(d))break}return-1}function f(y,p){if(p++,y[p]===";")return-1;if(y[p]==="#")return p++,s(y,p);let d=0;for(;p<y.length;p++,d++)if(!(y[p].match(/\w/)&&d<20)){if(y[p]===";")break;return-1}return p}function h(y,p,d){return{err:{code:y,msg:p,line:d.line||d,col:d.col}}}function T(y){return e.isName(y)}function m(y){return e.isName(y)}function E(y,p){const d=y.substring(0,p).split(/\r?\n/);return{line:d.length,col:d[d.length-1].length+1}}function x(y){return y.startIndex+y[1].length}return Ho}var un={},_c;function km(){if(_c)return un;_c=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 un.buildOptions=t,un.defaultOptions=e,un}var Go,Rc;function Dm(){if(Rc)return Go;Rc=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 Go=e,Go}var Ko,Oc;function Mm(){if(Oc)return Ko;Oc=1;const e=Wo();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 h=1,T=!1,m=!1,E="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(T&&o(l,s)){s+=7;let x,y;[x,y,s]=r(l,s+1),y.indexOf("&")===-1&&(f[c(x)]={regx:RegExp(`&${x};`,"g"),val:y})}else if(T&&i(l,s))s+=8;else if(T&&a(l,s))s+=8;else if(T&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");h++,E=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,h--):h--,h===0)break}else l[s]==="["?T=!0:E+=l[s];if(h!==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 h=l[s++];let T="";for(;s<l.length&&l[s]!==h;s++)T+=l[s];return[f,T,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 Ko=t,Ko}var zo,Nc;function qm(){if(Nc)return zo;Nc=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 h=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 T=Number(c),m=""+T;return m.search(/[eE]/)!==-1?u.eNotation?T:a:c.indexOf(".")!==-1?m==="0"&&h===""||m===h||s&&m==="-"+h?T:a:f?h===m||s+h===m?T:a:c===m||c===s+m?T: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 zo=n,zo}var Xo,Ic;function Pc(){if(Ic)return Xo;Ic=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 Xo=e,Xo}var Yo,Fc;function $m(){if(Fc)return Yo;Fc=1;const e=Wo(),t=Dm(),r=Mm(),n=qm(),o=Pc();class i{constructor(A){this.options=A,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:(I,P)=>String.fromCharCode(Number.parseInt(P,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,16))}},this.addExternalEntities=a,this.parseXml=f,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=s,this.isItStopNode=E,this.replaceEntitiesValue=T,this.readStopNodeData=d,this.saveTextToParentTag=m,this.addChild=h,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(v){const A=Object.keys(v);for(let I=0;I<A.length;I++){const P=A[I];this.lastEntities[P]={regex:new RegExp("&"+P+";","g"),val:v[P]}}}function u(v,A,I,P,R,j,K){if(v!==void 0&&(this.options.trimValues&&!P&&(v=v.trim()),v.length>0)){K||(v=this.replaceEntitiesValue(v));const L=this.options.tagValueProcessor(A,v,I,R,j);return L==null?v:typeof L!=typeof v||L!==v?L:this.options.trimValues?g(v,this.options.parseTagValue,this.options.numberParseOptions):v.trim()===v?g(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function c(v){if(this.options.removeNSPrefix){const A=v.split(":"),I=v.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(v=I+A[1])}return v}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(v,A,I){if(this.options.ignoreAttributes!==!0&&typeof v=="string"){const P=e.getAllMatches(v,l),R=P.length,j={};for(let K=0;K<R;K++){const L=this.resolveNameSpace(P[K][1]);if(this.ignoreAttributesFn(L,A))continue;let k=P[K][4],re=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),k!==void 0){this.options.trimValues&&(k=k.trim()),k=this.replaceEntitiesValue(k);const ee=this.options.attributeValueProcessor(L,k,A);ee==null?j[re]=k:typeof ee!=typeof k||ee!==k?j[re]=ee:j[re]=g(k,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[re]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const K={};return K[this.options.attributesGroupName]=j,K}return j}}const f=function(v){v=v.replace(/\r\n?/g,`
37
+ `);const A=new t("!xml");let I=A,P="",R="";for(let j=0;j<v.length;j++)if(v[j]==="<")if(v[j+1]==="/"){const L=y(v,">",j,"Closing Tag is not closed.");let k=v.substring(j+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&(P=this.saveTextToParentTag(P,I,R));const re=R.substring(R.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=R.lastIndexOf(".",R.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=R.lastIndexOf("."),R=R.substring(0,ee),I=this.tagsNodeStack.pop(),P="",j=L}else if(v[j+1]==="?"){let L=p(v,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,I,R),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new t(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,R,L.tagName)),this.addChild(I,k,R)}j=L.closeIndex+1}else if(v.substr(j+1,3)==="!--"){const L=y(v,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const k=v.substring(j+4,L-2);P=this.saveTextToParentTag(P,I,R),I.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}j=L}else if(v.substr(j+1,2)==="!D"){const L=r(v,j);this.docTypeEntities=L.entities,j=L.i}else if(v.substr(j+1,2)==="!["){const L=y(v,"]]>",j,"CDATA is not closed.")-2,k=v.substring(j+9,L);P=this.saveTextToParentTag(P,I,R);let re=this.parseTextData(k,I.tagname,R,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):I.add(this.options.textNodeName,re),j=L+2}else{let L=p(v,j,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&P&&I.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,I,R,!1));const de=I;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(I=this.tagsNodeStack.pop(),R=R.substring(0,R.lastIndexOf("."))),k!==A.tagname&&(R+=R?"."+k:k),this.isItStopNode(this.options.stopNodes,R,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),R=R.substr(0,R.length-1),ee=k):ee=ee.substr(0,ee.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)j=L.closeIndex;else{const pe=this.readStopNodeData(v,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);j=pe.i,fe=pe.tagContent}const be=new t(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,R,k)),fe&&(fe=this.parseTextData(fe,k,R,!0,ue,!0,!0)),R=R.substr(0,R.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(I,be,R)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),R=R.substr(0,R.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new t(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,R,k)),this.addChild(I,fe,R),R=R.substr(0,R.lastIndexOf("."))}else{const fe=new t(k);this.tagsNodeStack.push(I),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,R,k)),this.addChild(I,fe,R),I=fe}P="",j=le}}else P+=v[j];return A.child};function h(v,A,I){const P=this.options.updateTag(A.tagname,I,A[":@"]);P===!1||(typeof P=="string"&&(A.tagname=P),v.addChild(A))}const T=function(v){if(this.options.processEntities){for(let A in this.docTypeEntities){const I=this.docTypeEntities[A];v=v.replace(I.regx,I.val)}for(let A in this.lastEntities){const I=this.lastEntities[A];v=v.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let A in this.htmlEntities){const I=this.htmlEntities[A];v=v.replace(I.regex,I.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function m(v,A,I,P){return v&&(P===void 0&&(P=A.child.length===0),v=this.parseTextData(v,A.tagname,I,!1,A[":@"]?Object.keys(A[":@"]).length!==0:!1,P),v!==void 0&&v!==""&&A.add(this.options.textNodeName,v),v=""),v}function E(v,A,I){const P="*."+I;for(const R in v){const j=v[R];if(P===j||A===j)return!0}return!1}function x(v,A,I=">"){let P,R="";for(let j=A;j<v.length;j++){let K=v[j];if(P)K===P&&(P="");else if(K==='"'||K==="'")P=K;else if(K===I[0])if(I[1]){if(v[j+1]===I[1])return{data:R,index:j}}else return{data:R,index:j};else K===" "&&(K=" ");R+=K}}function y(v,A,I,P){const R=v.indexOf(A,I);if(R===-1)throw new Error(P);return R+A.length-1}function p(v,A,I,P=">"){const R=x(v,A+1,P);if(!R)return;let j=R.data;const K=R.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(I){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==R.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function d(v,A,I){const P=I;let R=1;for(;I<v.length;I++)if(v[I]==="<")if(v[I+1]==="/"){const j=y(v,">",I,`${A} is not closed`);if(v.substring(I+2,j).trim()===A&&(R--,R===0))return{tagContent:v.substring(P,I),i:j};I=j}else if(v[I+1]==="?")I=y(v,"?>",I+1,"StopNode is not closed.");else if(v.substr(I+1,3)==="!--")I=y(v,"-->",I+3,"StopNode is not closed.");else if(v.substr(I+1,2)==="![")I=y(v,"]]>",I,"StopNode is not closed.")-2;else{const j=p(v,I,">");j&&((j&&j.tagName)===A&&j.tagExp[j.tagExp.length-1]!=="/"&&R++,I=j.closeIndex)}}function g(v,A,I){if(A&&typeof v=="string"){const P=v.trim();return P==="true"?!0:P==="false"?!1:n(v,I)}else return e.isExist(v)?v:""}return Yo=i,Yo}var Jo={},Cc;function Hm(){if(Cc)return Jo;Cc=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],h=r(f);let T="";if(u===void 0?T=h:T=u+"."+h,h===a.textNodeName)c===void 0?c=f[h]:c+=""+f[h];else{if(h===void 0)continue;if(f[h]){let m=t(f[h],a,T);const E=o(m,a);f[":@"]?n(m,f[":@"],T,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[h]!==void 0&&l.hasOwnProperty(h)?(Array.isArray(l[h])||(l[h]=[l[h]]),l[h].push(m)):a.isArray(h,T,E)?l[h]=[m]:l[h]=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 h=l[f];c.isArray(h,u+"."+h,!0,!0)?i[h]=[a[h]]:i[h]=a[h]}}}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 Jo.prettify=e,Jo}var Zo,Bc;function Vm(){if(Bc)return Zo;Bc=1;const{buildOptions:e}=km(),t=$m(),{prettify:r}=Hm(),n=Sc();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 Zo=o,Zo}var Qo,Lc;function Wm(){if(Lc)return Qo;Lc=1;const e=`
38
+ `;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="",h=!1;for(let T=0;T<u.length;T++){const m=u[T],E=n(m);if(E===void 0)continue;let x="";if(l.length===0?x=E:x=`${l}.${E}`,E===c.textNodeName){let v=m[E];i(x,c)||(v=c.tagValueProcessor(E,v),v=a(v,c)),h&&(f+=s),f+=v,h=!1;continue}else if(E===c.cdataPropName){h&&(f+=s),f+=`<![CDATA[${m[E][0][c.textNodeName]}]]>`,h=!1;continue}else if(E===c.commentPropName){f+=s+`<!--${m[E][0][c.textNodeName]}-->`,h=!0;continue}else if(E[0]==="?"){const v=o(m[":@"],c),A=E==="?xml"?"":s;let I=m[E][0][c.textNodeName];I=I.length!==0?" "+I:"",f+=A+`<${E}${I}${v}?>`,h=!0;continue}let y=s;y!==""&&(y+=c.indentBy);const p=o(m[":@"],c),d=s+`<${E}${p}`,g=r(m[E],c,x,y);c.unpairedTags.indexOf(E)!==-1?c.suppressUnpairedNode?f+=d+">":f+=d+"/>":(!g||g.length===0)&&c.suppressEmptyNode?f+=d+"/>":g&&g.endsWith(">")?f+=d+`>${g}${s}</${E}>`:(f+=d+">",g&&s!==""&&(g.includes("/>")||g.includes("</"))?f+=s+c.indentBy+g+s:f+=g,f+=`</${E}>`),h=!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 Qo=t,Qo}var es,Uc;function Gm(){if(Uc)return es;Uc=1;const e=Wm(),t=Pc(),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=`>
39
+ `,this.newLine=`
40
+ `):(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 h=l.join(".");for(let T in u)if(Object.prototype.hasOwnProperty.call(u,T))if(typeof u[T]>"u")this.isAttribute(T)&&(f+="");else if(u[T]===null)this.isAttribute(T)||T===this.options.cdataPropName?f+="":T[0]==="?"?f+=this.indentate(c)+"<"+T+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+T+"/"+this.tagEndChar;else if(u[T]instanceof Date)f+=this.buildTextValNode(u[T],T,"",c);else if(typeof u[T]!="object"){const m=this.isAttribute(T);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[T]);else if(!m)if(T===this.options.textNodeName){let E=this.options.tagValueProcessor(T,""+u[T]);f+=this.replaceEntitiesValue(E)}else f+=this.buildTextValNode(u[T],T,"",c)}else if(Array.isArray(u[T])){const m=u[T].length;let E="",x="";for(let y=0;y<m;y++){const p=u[T][y];if(!(typeof p>"u"))if(p===null)T[0]==="?"?f+=this.indentate(c)+"<"+T+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+T+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const d=this.j2x(p,c+1,l.concat(T));E+=d.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(x+=d.attrStr)}else E+=this.processTextOrObjNode(p,T,c,l);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(T,p);d=this.replaceEntitiesValue(d),E+=d}else E+=this.buildTextValNode(p,T,"",c)}this.options.oneListGroup&&(E=this.buildObjectNode(E,T,x,c)),f+=E}else if(this.options.attributesGroupName&&T===this.options.attributesGroupName){const m=Object.keys(u[T]),E=m.length;for(let x=0;x<E;x++)s+=this.buildAttrPairStr(m[x],""+u[T][m[x]])}else f+=this.processTextOrObjNode(u[T],T,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,h="";return c[0]==="?"&&(h="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+h+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&h.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+h+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 es=n,es}var ts,jc;function Km(){if(jc)return ts;jc=1;const e=Sc(),t=Vm(),r=Gm();return ts={XMLParser:t,XMLValidator:e,XMLBuilder:r},ts}var rs=Km();const ns=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[Bt.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),kc=(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=ns(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":ns(r,[])}}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},zm=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":ns(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Xm=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},Ym=async e=>{const t=n=>{const o=decodeURIComponent(n);return n?.startsWith("/remote.php/dav/")?Ee(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Pm(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Fm(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})},Jm=e=>{const t=new rs.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 Zm{client;davPath;headers;extraProps;constructor({baseUrl:t,headers:r}){this.davPath=Ee(t,"remote.php/dav"),this.client=Im(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:vt.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:vt.propfind,data:kc(n,{extraProps:this.extraProps}),headers:a,...i});return u?.length&&(u[0].tusSupport=Xm(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:vt.report,data:kc(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=Ee(this.davPath,Lr(r));return this.request(t,{method:vt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Lr(r));return this.request(t,{method:vt.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:vt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:vt.delete,...r})}propPatch(t,r,n={}){const o=zm(r);return this.request(t,{method:vt.proppatch,data:o,...n})}getFileUrl(t){return Ee(this.davPath,Lr(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":jm(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Ee(this.davPath,Lr(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 Ym(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=Jm(u);throw new kh(c.message,c.errorCode,a,a.status)}}}const Qm=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Ee("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>Kt(a,e.extraProps))}}),eb=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[se.IsFavorite]:o?"true":"false"};return e.propPatch(Ee(r.webDavPath,n),a,i)}}),tb=(e,t)=>({listFavoriteFiles({davProperties:r=Bt.Default,username:n="",...o}={}){return e.report(Ee("files",n),{properties:r,filterRules:{favorite:1},...o})}}),rb=(e,t)=>{const r=ke.create();t&&r.interceptors.request.use(k=>(Object.assign(k.headers,t()),k));const n={axiosClient:r,baseUrl:e},o=new Zm({baseUrl:e,headers:t}),i=k=>{o.extraProps.push(k)},a=hy(o),{getPathForFileId:u}=a,c=iy(o,a),{listFiles:l}=c,s=ty(c),{getFileInfo:f}=s,{createFolder:h}=Q0(o,s),T=ey(o,n),{getFileContents:m}=T,{putFileContents:E}=sy(o,s),{getFileUrl:x,revokeUrl:y}=ry(o,T,s,n),{getPublicFileUrl:p}=ny(o),{copyFiles:d}=Z0(o),{moveFiles:g}=oy(o),{deleteFile:v}=ay(o),{restoreFile:A}=uy(o),{listFileVersions:I}=Qm(o),{restoreFileVersion:P}=ly(o),{clearTrashBin:R}=cy(o),{search:j}=fy(o),{listFavoriteFiles:K}=tb(o),{setFavorite:L}=eb(o);return{copyFiles:d,createFolder:h,deleteFile:v,restoreFile:A,restoreFileVersion:P,getFileContents:m,getFileInfo:f,getFileUrl:x,getPublicFileUrl:p,getPathForFileId:u,listFiles:l,listFileVersions:I,moveFiles:g,putFileContents:E,revokeUrl:y,clearTrashBin:R,search:j,listFavoriteFiles:K,setFavorite:L,registerExtraProp:i}};let xr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&xr){xr.Authorization?.toString().startsWith("Bearer")&&(xr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,space:i,resources:a,concurrentRequests:u}=r;xr=o;const c=rb(n,()=>xr),l=[],s=[],f=new Kc({concurrency:u}),h=m=>t==="fileListDelete"?c.deleteFile(i,{path:m.path}):c.clearTrashBin(i,{id:m.id}),T=a.map(m=>f.add(async()=>{try{const{status:E}=await h(m);if(E===204){l.push(m);return}if(E===423){const{status:x}=await h(m);if(x===204){l.push(m);return}}}catch(E){console.error(E),s.push({resource:m,message:E.message,statusCode:E.statusCode,xReqId:E.response.headers?.get("x-request-id")})}}));await Promise.allSettled(T),postMessage(JSON.stringify({successful:l,failed:s}))}})();