@opencloud-eu/web-client 3.2.0 → 4.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 (39) hide show
  1. package/dist/functions-DP8s29Wg.cjs +1 -0
  2. package/dist/functions-DnZZKUk0.js +1183 -0
  3. package/dist/index-BIL0cW_q.js +1755 -0
  4. package/dist/index-CcmRJ1qB.cjs +1 -0
  5. package/dist/index-CiqYiARd.js +688 -0
  6. package/dist/index-DAa_DzDf.cjs +6 -0
  7. package/dist/{index-C6VnMvgz.cjs → index-D_NPkUGY.cjs} +1 -1
  8. package/dist/{index-Pl8khka8.js → index-JHVTaNRI.js} +2 -2
  9. package/dist/index-YVg9jNP5.cjs +16 -0
  10. package/dist/{index-DxUgq3ag.js → index-bmR3iLuG.js} +1934 -1953
  11. package/dist/src/graph/driveItems/types.d.ts +6 -2
  12. package/dist/src/graph/generated/api.d.ts +120 -98
  13. package/dist/src/helpers/resource/types.d.ts +1 -0
  14. package/dist/src/helpers/share/constants.d.ts +0 -1
  15. package/dist/src/ocs/capabilities.d.ts +1 -0
  16. package/dist/src/webdav/constants/dav.d.ts +1 -0
  17. package/dist/toString-CgHWCW2N.cjs +1 -0
  18. package/dist/{toString-Cn0xCZ28.js → toString-XlfBosfh.js} +4 -4
  19. package/dist/web-client/graph/generated.cjs +1 -1
  20. package/dist/web-client/graph/generated.js +1984 -2066
  21. package/dist/web-client/graph.cjs +1 -1
  22. package/dist/web-client/graph.js +1 -1
  23. package/dist/web-client/ocs.cjs +12 -12
  24. package/dist/web-client/ocs.js +1889 -1857
  25. package/dist/web-client/sse.cjs +2 -2
  26. package/dist/web-client/sse.js +95 -105
  27. package/dist/web-client/webdav.cjs +1 -1
  28. package/dist/web-client/webdav.js +3 -3
  29. package/dist/web-client.cjs +1 -1
  30. package/dist/web-client.js +82 -82
  31. package/package.json +2 -2
  32. package/dist/functions-CYOnwClV.js +0 -1178
  33. package/dist/functions-DEaUzlbB.cjs +0 -1
  34. package/dist/index-B3tdq56F.cjs +0 -16
  35. package/dist/index-BTGj2rHD.js +0 -1705
  36. package/dist/index-C-U4KVPG.cjs +0 -6
  37. package/dist/index-D3QfKFAH.cjs +0 -1
  38. package/dist/index-oCdLZPEA.js +0 -699
  39. package/dist/toString-hHr716Th.cjs +0 -1
@@ -1,25 +1,25 @@
1
- "use strict";var oa=Object.defineProperty;var ua=(r,a,l)=>a in r?oa(r,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[a]=l;var Ie=(r,a,l)=>ua(r,typeof a!="symbol"?a+"":a,l);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("../toString-hHr716Th.cjs"),te=require("../index-C6VnMvgz.cjs");var sa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fa=/^\w*$/;function la(r,a){if(me.isArray(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||me.isSymbol(r)?!0:fa.test(r)||!sa.test(r)||a!=null&&r in Object(a)}var ca="Expected a function";function Dr(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(ca);var l=function(){var u=arguments,w=a?a.apply(this,u):u[0],y=l.cache;if(y.has(w))return y.get(w);var A=r.apply(this,u);return l.cache=y.set(w,A)||y,A};return l.cache=new(Dr.Cache||me.MapCache),l}Dr.Cache=me.MapCache;var ha=500;function da(r){var a=Dr(r,function(u){return l.size===ha&&l.clear(),u}),l=a.cache;return a}var pa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ya=/\\(\\)?/g,ga=da(function(r){var a=[];return r.charCodeAt(0)===46&&a.push(""),r.replace(pa,function(l,u,w,y){a.push(w?y.replace(ya,"$1"):u||l)}),a});function ba(r,a){return me.isArray(r)?r:la(r,a)?[r]:ga(me.toString(r))}function ma(r){if(typeof r=="string"||me.isSymbol(r))return r;var a=r+"";return a=="0"&&1/r==-1/0?"-0":a}function Ea(r,a){a=ba(a,r);for(var l=0,u=a.length;r!=null&&l<u;)r=r[ma(a[l++])];return l&&l==u?r:void 0}function va(r,a,l){var u=r==null?void 0:Ea(r,a);return u===void 0?l:u}const Ii=(r,a)=>{const l=new URL(r);l.pathname=[...l.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),l.searchParams.append("format","json");const u=l.href;return{async getCapabilities(){const w=await a.get(u);return va(w,"data.ocs.data",{capabilities:null,version:null})}}};var st={},Ye={exports:{}},Yr;function Lr(){if(Yr)return Ye.exports;Yr=1;var r=typeof Reflect=="object"?Reflect:null,a=r&&typeof r.apply=="function"?r.apply:function(g,T,S){return Function.prototype.apply.call(g,T,S)},l;r&&typeof r.ownKeys=="function"?l=r.ownKeys:Object.getOwnPropertySymbols?l=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:l=function(g){return Object.getOwnPropertyNames(g)};function u(o){console&&console.warn&&console.warn(o)}var w=Number.isNaN||function(g){return g!==g};function y(){y.init.call(this)}Ye.exports=y,Ye.exports.once=c,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var A=10;function E(o){if(typeof o!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof o)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(o){if(typeof o!="number"||o<0||w(o))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+o+".");A=o}}),y.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},y.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||w(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function _(o){return o._maxListeners===void 0?y.defaultMaxListeners:o._maxListeners}y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(g){for(var T=[],S=1;S<arguments.length;S++)T.push(arguments[S]);var F=g==="error",d=this._events;if(d!==void 0)F=F&&d.error===void 0;else if(!F)return!1;if(F){var K;if(T.length>0&&(K=T[0]),K instanceof Error)throw K;var X=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw X.context=K,X}var x=d[g];if(x===void 0)return!1;if(typeof x=="function")a(x,this,T);else for(var ee=x.length,re=q(x,ee),S=0;S<ee;++S)a(re[S],this,T);return!0};function B(o,g,T,S){var F,d,K;if(E(T),d=o._events,d===void 0?(d=o._events=Object.create(null),o._eventsCount=0):(d.newListener!==void 0&&(o.emit("newListener",g,T.listener?T.listener:T),d=o._events),K=d[g]),K===void 0)K=d[g]=T,++o._eventsCount;else if(typeof K=="function"?K=d[g]=S?[T,K]:[K,T]:S?K.unshift(T):K.push(T),F=_(o),F>0&&K.length>F&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=o,X.type=g,X.count=K.length,u(X)}return o}y.prototype.addListener=function(g,T){return B(this,g,T,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(g,T){return B(this,g,T,!0)};function C(){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 N(o,g,T){var S={fired:!1,wrapFn:void 0,target:o,type:g,listener:T},F=C.bind(S);return F.listener=T,S.wrapFn=F,F}y.prototype.once=function(g,T){return E(T),this.on(g,N(this,g,T)),this},y.prototype.prependOnceListener=function(g,T){return E(T),this.prependListener(g,N(this,g,T)),this},y.prototype.removeListener=function(g,T){var S,F,d,K,X;if(E(T),F=this._events,F===void 0)return this;if(S=F[g],S===void 0)return this;if(S===T||S.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete F[g],F.removeListener&&this.emit("removeListener",g,S.listener||T));else if(typeof S!="function"){for(d=-1,K=S.length-1;K>=0;K--)if(S[K]===T||S[K].listener===T){X=S[K].listener,d=K;break}if(d<0)return this;d===0?S.shift():G(S,d),S.length===1&&(F[g]=S[0]),F.removeListener!==void 0&&this.emit("removeListener",g,X||T)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(g){var T,S,F;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[g]),this;if(arguments.length===0){var d=Object.keys(S),K;for(F=0;F<d.length;++F)K=d[F],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=S[g],typeof T=="function")this.removeListener(g,T);else if(T!==void 0)for(F=T.length-1;F>=0;F--)this.removeListener(g,T[F]);return this};function P(o,g,T){var S=o._events;if(S===void 0)return[];var F=S[g];return F===void 0?[]:typeof F=="function"?T?[F.listener||F]:[F]:T?L(F):q(F,F.length)}y.prototype.listeners=function(g){return P(this,g,!0)},y.prototype.rawListeners=function(g){return P(this,g,!1)},y.listenerCount=function(o,g){return typeof o.listenerCount=="function"?o.listenerCount(g):V.call(o,g)},y.prototype.listenerCount=V;function V(o){var g=this._events;if(g!==void 0){var T=g[o];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}y.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function q(o,g){for(var T=new Array(g),S=0;S<g;++S)T[S]=o[S];return T}function G(o,g){for(;g+1<o.length;g++)o[g]=o[g+1];o.pop()}function L(o){for(var g=new Array(o.length),T=0;T<g.length;++T)g[T]=o[T].listener||o[T];return g}function c(o,g){return new Promise(function(T,S){function F(K){o.removeListener(g,d),S(K)}function d(){typeof o.removeListener=="function"&&o.removeListener("error",F),T([].slice.call(arguments))}s(o,g,d,{once:!0}),g!=="error"&&m(o,F,{once:!0})})}function m(o,g,T){typeof o.on=="function"&&s(o,"error",g,T)}function s(o,g,T,S){if(typeof o.on=="function")S.once?o.once(g,T):o.on(g,T);else if(typeof o.addEventListener=="function")o.addEventListener(g,function F(d){S.once&&o.removeEventListener(g,F),T(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof o)}return Ye.exports}var Xe={exports:{}},Xr;function Be(){return Xr||(Xr=1,typeof Object.create=="function"?Xe.exports=function(a,l){l&&(a.super_=l,a.prototype=Object.create(l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:Xe.exports=function(a,l){if(l){a.super_=l;var u=function(){};u.prototype=l.prototype,a.prototype=new u,a.prototype.constructor=a}}),Xe.exports}var ft,zr;function Fi(){return zr||(zr=1,ft=Lr().EventEmitter),ft}var lt={},Jr;function rt(){return Jr||(Jr=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var a={},l={};l.byteLength=C,l.toByteArray=P,l.fromByteArray=G;for(var u=[],w=[],y=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,_=A.length;E<_;++E)u[E]=A[E],w[A.charCodeAt(E)]=E;w[45]=62,w[95]=63;function B(m){var s=m.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=m.indexOf("=");o===-1&&(o=s);var g=o===s?0:4-o%4;return[o,g]}function C(m){var s=B(m),o=s[0],g=s[1];return(o+g)*3/4-g}function N(m,s,o){return(s+o)*3/4-o}function P(m){var s,o=B(m),g=o[0],T=o[1],S=new y(N(m,g,T)),F=0,d=T>0?g-4:g,K;for(K=0;K<d;K+=4)s=w[m.charCodeAt(K)]<<18|w[m.charCodeAt(K+1)]<<12|w[m.charCodeAt(K+2)]<<6|w[m.charCodeAt(K+3)],S[F++]=s>>16&255,S[F++]=s>>8&255,S[F++]=s&255;return T===2&&(s=w[m.charCodeAt(K)]<<2|w[m.charCodeAt(K+1)]>>4,S[F++]=s&255),T===1&&(s=w[m.charCodeAt(K)]<<10|w[m.charCodeAt(K+1)]<<4|w[m.charCodeAt(K+2)]>>2,S[F++]=s>>8&255,S[F++]=s&255),S}function V(m){return u[m>>18&63]+u[m>>12&63]+u[m>>6&63]+u[m&63]}function q(m,s,o){for(var g,T=[],S=s;S<o;S+=3)g=(m[S]<<16&16711680)+(m[S+1]<<8&65280)+(m[S+2]&255),T.push(V(g));return T.join("")}function G(m){for(var s,o=m.length,g=o%3,T=[],S=16383,F=0,d=o-g;F<d;F+=S)T.push(q(m,F,F+S>d?d:F+S));return g===1?(s=m[o-1],T.push(u[s>>2]+u[s<<4&63]+"==")):g===2&&(s=(m[o-2]<<8)+m[o-1],T.push(u[s>>10]+u[s>>4&63]+u[s<<2&63]+"=")),T.join("")}var L={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */L.read=function(m,s,o,g,T){var S,F,d=T*8-g-1,K=(1<<d)-1,X=K>>1,x=-7,ee=o?T-1:0,re=o?-1:1,ie=m[s+ee];for(ee+=re,S=ie&(1<<-x)-1,ie>>=-x,x+=d;x>0;S=S*256+m[s+ee],ee+=re,x-=8);for(F=S&(1<<-x)-1,S>>=-x,x+=g;x>0;F=F*256+m[s+ee],ee+=re,x-=8);if(S===0)S=1-X;else{if(S===K)return F?NaN:(ie?-1:1)*(1/0);F=F+Math.pow(2,g),S=S-X}return(ie?-1:1)*F*Math.pow(2,S-g)},L.write=function(m,s,o,g,T,S){var F,d,K,X=S*8-T-1,x=(1<<X)-1,ee=x>>1,re=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=g?0:S-1,le=g?1:-1,Z=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,F=x):(F=Math.floor(Math.log(s)/Math.LN2),s*(K=Math.pow(2,-F))<1&&(F--,K*=2),F+ee>=1?s+=re/K:s+=re*Math.pow(2,1-ee),s*K>=2&&(F++,K/=2),F+ee>=x?(d=0,F=x):F+ee>=1?(d=(s*K-1)*Math.pow(2,T),F=F+ee):(d=s*Math.pow(2,ee-1)*Math.pow(2,T),F=0));T>=8;m[o+ie]=d&255,ie+=le,d/=256,T-=8);for(F=F<<T|d,X+=T;X>0;m[o+ie]=F&255,ie+=le,F/=256,X-=8);m[o+ie-le]|=Z*128};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("../toString-CgHWCW2N.cjs"),te=require("../index-D_NPkUGY.cjs");var ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,na=/^\w*$/;function ia(n,o){if(me.isArray(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||me.isSymbol(n)?!0:na.test(n)||!ra.test(n)||o!=null&&n in Object(o)}var aa="Expected a function";function Cr(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(aa);var l=function(){var u=arguments,m=o?o.apply(this,u):u[0],y=l.cache;if(y.has(m))return y.get(m);var A=n.apply(this,u);return l.cache=y.set(m,A)||y,A};return l.cache=new(Cr.Cache||me.MapCache),l}Cr.Cache=me.MapCache;var oa=500;function ua(n){var o=Cr(n,function(u){return l.size===oa&&l.clear(),u}),l=o.cache;return o}var sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fa=/\\(\\)?/g,la=ua(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(sa,function(l,u,m,y){o.push(m?y.replace(fa,"$1"):u||l)}),o});function ca(n,o){return me.isArray(n)?n:ia(n,o)?[n]:la(me.toString(n))}function ha(n){if(typeof n=="string"||me.isSymbol(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function da(n,o){o=ca(o,n);for(var l=0,u=o.length;n!=null&&l<u;)n=n[ha(o[l++])];return l&&l==u?n:void 0}function pa(n,o,l){var u=n==null?void 0:da(n,o);return u===void 0?l:u}const Ri=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),l.searchParams.append("format","json");const u=l.href;return{async getCapabilities(){const m=await o.get(u);return pa(m,"data.ocs.data",{capabilities:null,version:null})}}};var ut={},Ve={exports:{}},Wr;function Dr(){if(Wr)return Ve.exports;Wr=1;var n=typeof Reflect=="object"?Reflect:null,o=n&&typeof n.apply=="function"?n.apply:function(g,T,S){return Function.prototype.apply.call(g,T,S)},l;n&&typeof n.ownKeys=="function"?l=n.ownKeys:Object.getOwnPropertySymbols?l=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:l=function(g){return Object.getOwnPropertyNames(g)};function u(a){console&&console.warn&&console.warn(a)}var m=Number.isNaN||function(g){return g!==g};function y(){y.init.call(this)}Ve.exports=y,Ve.exports.once=c,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var A=10;function v(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(a){if(typeof a!="number"||a<0||m(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");A=a}}),y.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},y.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||m(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function _(a){return a._maxListeners===void 0?y.defaultMaxListeners:a._maxListeners}y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(g){for(var T=[],S=1;S<arguments.length;S++)T.push(arguments[S]);var F=g==="error",d=this._events;if(d!==void 0)F=F&&d.error===void 0;else if(!F)return!1;if(F){var K;if(T.length>0&&(K=T[0]),K instanceof Error)throw K;var X=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw X.context=K,X}var x=d[g];if(x===void 0)return!1;if(typeof x=="function")o(x,this,T);else for(var ee=x.length,re=q(x,ee),S=0;S<ee;++S)o(re[S],this,T);return!0};function B(a,g,T,S){var F,d,K;if(v(T),d=a._events,d===void 0?(d=a._events=Object.create(null),a._eventsCount=0):(d.newListener!==void 0&&(a.emit("newListener",g,T.listener?T.listener:T),d=a._events),K=d[g]),K===void 0)K=d[g]=T,++a._eventsCount;else if(typeof K=="function"?K=d[g]=S?[T,K]:[K,T]:S?K.unshift(T):K.push(T),F=_(a),F>0&&K.length>F&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=a,X.type=g,X.count=K.length,u(X)}return a}y.prototype.addListener=function(g,T){return B(this,g,T,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(g,T){return B(this,g,T,!0)};function C(){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 N(a,g,T){var S={fired:!1,wrapFn:void 0,target:a,type:g,listener:T},F=C.bind(S);return F.listener=T,S.wrapFn=F,F}y.prototype.once=function(g,T){return v(T),this.on(g,N(this,g,T)),this},y.prototype.prependOnceListener=function(g,T){return v(T),this.prependListener(g,N(this,g,T)),this},y.prototype.removeListener=function(g,T){var S,F,d,K,X;if(v(T),F=this._events,F===void 0)return this;if(S=F[g],S===void 0)return this;if(S===T||S.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete F[g],F.removeListener&&this.emit("removeListener",g,S.listener||T));else if(typeof S!="function"){for(d=-1,K=S.length-1;K>=0;K--)if(S[K]===T||S[K].listener===T){X=S[K].listener,d=K;break}if(d<0)return this;d===0?S.shift():H(S,d),S.length===1&&(F[g]=S[0]),F.removeListener!==void 0&&this.emit("removeListener",g,X||T)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(g){var T,S,F;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[g]),this;if(arguments.length===0){var d=Object.keys(S),K;for(F=0;F<d.length;++F)K=d[F],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=S[g],typeof T=="function")this.removeListener(g,T);else if(T!==void 0)for(F=T.length-1;F>=0;F--)this.removeListener(g,T[F]);return this};function P(a,g,T){var S=a._events;if(S===void 0)return[];var F=S[g];return F===void 0?[]:typeof F=="function"?T?[F.listener||F]:[F]:T?L(F):q(F,F.length)}y.prototype.listeners=function(g){return P(this,g,!0)},y.prototype.rawListeners=function(g){return P(this,g,!1)},y.listenerCount=function(a,g){return typeof a.listenerCount=="function"?a.listenerCount(g):V.call(a,g)},y.prototype.listenerCount=V;function V(a){var g=this._events;if(g!==void 0){var T=g[a];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}y.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function q(a,g){for(var T=new Array(g),S=0;S<g;++S)T[S]=a[S];return T}function H(a,g){for(;g+1<a.length;g++)a[g]=a[g+1];a.pop()}function L(a){for(var g=new Array(a.length),T=0;T<g.length;++T)g[T]=a[T].listener||a[T];return g}function c(a,g){return new Promise(function(T,S){function F(K){a.removeListener(g,d),S(K)}function d(){typeof a.removeListener=="function"&&a.removeListener("error",F),T([].slice.call(arguments))}s(a,g,d,{once:!0}),g!=="error"&&E(a,F,{once:!0})})}function E(a,g,T){typeof a.on=="function"&&s(a,"error",g,T)}function s(a,g,T,S){if(typeof a.on=="function")S.once?a.once(g,T):a.on(g,T);else if(typeof a.addEventListener=="function")a.addEventListener(g,function F(d){S.once&&a.removeEventListener(g,F),T(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}return Ve.exports}var Ye={exports:{}},Vr;function Oe(){return Vr||(Vr=1,typeof Object.create=="function"?Ye.exports=function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:Ye.exports=function(o,l){if(l){o.super_=l;var u=function(){};u.prototype=l.prototype,o.prototype=new u,o.prototype.constructor=o}}),Ye.exports}var st,Yr;function xi(){return Yr||(Yr=1,st=Dr().EventEmitter),st}var ft={},Xr;function tt(){return Xr||(Xr=1,(function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o={},l={};l.byteLength=C,l.toByteArray=P,l.fromByteArray=H;for(var u=[],m=[],y=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,_=A.length;v<_;++v)u[v]=A[v],m[A.charCodeAt(v)]=v;m[45]=62,m[95]=63;function B(E){var s=E.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=E.indexOf("=");a===-1&&(a=s);var g=a===s?0:4-a%4;return[a,g]}function C(E){var s=B(E),a=s[0],g=s[1];return(a+g)*3/4-g}function N(E,s,a){return(s+a)*3/4-a}function P(E){var s,a=B(E),g=a[0],T=a[1],S=new y(N(E,g,T)),F=0,d=T>0?g-4:g,K;for(K=0;K<d;K+=4)s=m[E.charCodeAt(K)]<<18|m[E.charCodeAt(K+1)]<<12|m[E.charCodeAt(K+2)]<<6|m[E.charCodeAt(K+3)],S[F++]=s>>16&255,S[F++]=s>>8&255,S[F++]=s&255;return T===2&&(s=m[E.charCodeAt(K)]<<2|m[E.charCodeAt(K+1)]>>4,S[F++]=s&255),T===1&&(s=m[E.charCodeAt(K)]<<10|m[E.charCodeAt(K+1)]<<4|m[E.charCodeAt(K+2)]>>2,S[F++]=s>>8&255,S[F++]=s&255),S}function V(E){return u[E>>18&63]+u[E>>12&63]+u[E>>6&63]+u[E&63]}function q(E,s,a){for(var g,T=[],S=s;S<a;S+=3)g=(E[S]<<16&16711680)+(E[S+1]<<8&65280)+(E[S+2]&255),T.push(V(g));return T.join("")}function H(E){for(var s,a=E.length,g=a%3,T=[],S=16383,F=0,d=a-g;F<d;F+=S)T.push(q(E,F,F+S>d?d:F+S));return g===1?(s=E[a-1],T.push(u[s>>2]+u[s<<4&63]+"==")):g===2&&(s=(E[a-2]<<8)+E[a-1],T.push(u[s>>10]+u[s>>4&63]+u[s<<2&63]+"=")),T.join("")}var L={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */L.read=function(E,s,a,g,T){var S,F,d=T*8-g-1,K=(1<<d)-1,X=K>>1,x=-7,ee=a?T-1:0,re=a?-1:1,ie=E[s+ee];for(ee+=re,S=ie&(1<<-x)-1,ie>>=-x,x+=d;x>0;S=S*256+E[s+ee],ee+=re,x-=8);for(F=S&(1<<-x)-1,S>>=-x,x+=g;x>0;F=F*256+E[s+ee],ee+=re,x-=8);if(S===0)S=1-X;else{if(S===K)return F?NaN:(ie?-1:1)*(1/0);F=F+Math.pow(2,g),S=S-X}return(ie?-1:1)*F*Math.pow(2,S-g)},L.write=function(E,s,a,g,T,S){var F,d,K,X=S*8-T-1,x=(1<<X)-1,ee=x>>1,re=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=g?0:S-1,le=g?1:-1,Z=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,F=x):(F=Math.floor(Math.log(s)/Math.LN2),s*(K=Math.pow(2,-F))<1&&(F--,K*=2),F+ee>=1?s+=re/K:s+=re*Math.pow(2,1-ee),s*K>=2&&(F++,K/=2),F+ee>=x?(d=0,F=x):F+ee>=1?(d=(s*K-1)*Math.pow(2,T),F=F+ee):(d=s*Math.pow(2,ee-1)*Math.pow(2,T),F=0));T>=8;E[a+ie]=d&255,ie+=le,d/=256,T-=8);for(F=F<<T|d,X+=T;X>0;E[a+ie]=F&255,ie+=le,F/=256,X-=8);E[a+ie-le]|=Z*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(m){const s=l,o=L,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;m.Buffer=x,m.SlowBuffer=j,m.INSPECT_MAX_BYTES=50;const T=2147483647;m.kMaxLength=T;const{Uint8Array:S,ArrayBuffer:F,SharedArrayBuffer:d}=globalThis;x.TYPED_ARRAY_SUPPORT=K(),!x.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 K(){try{const f=new S(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,S.prototype),Object.setPrototypeOf(f,e),f.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function X(f){if(f>T)throw new RangeError('The value "'+f+'" is invalid for option "size"');const e=new S(f);return Object.setPrototypeOf(e,x.prototype),e}function x(f,e,t){if(typeof f=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return le(f)}return ee(f,e,t)}x.poolSize=8192;function ee(f,e,t){if(typeof f=="string")return Z(f,e);if(F.isView(f))return oe(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(_e(f,F)||f&&_e(f.buffer,F)||typeof d<"u"&&(_e(f,d)||f&&_e(f.buffer,d)))return ye(f,e,t);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const b=f.valueOf&&f.valueOf();if(b!=null&&b!==f)return x.from(b,e,t);const I=ge(f);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return x.from(f[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}x.from=function(f,e,t){return ee(f,e,t)},Object.setPrototypeOf(x.prototype,S.prototype),Object.setPrototypeOf(x,S);function re(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 ie(f,e,t){return re(f),f<=0?X(f):e!==void 0?typeof t=="string"?X(f).fill(e,t):X(f).fill(e):X(f)}x.alloc=function(f,e,t){return ie(f,e,t)};function le(f){return re(f),X(f<0?0:D(f)|0)}x.allocUnsafe=function(f){return le(f)},x.allocUnsafeSlow=function(f){return le(f)};function Z(f,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=$(f,e)|0;let b=X(t);const I=b.write(f,e);return I!==t&&(b=b.slice(0,I)),b}function ce(f){const e=f.length<0?0:D(f.length)|0,t=X(e);for(let b=0;b<e;b+=1)t[b]=f[b]&255;return t}function oe(f){if(_e(f,S)){const e=new S(f);return ye(e.buffer,e.byteOffset,e.byteLength)}return ce(f)}function ye(f,e,t){if(e<0||f.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let b;return e===void 0&&t===void 0?b=new S(f):t===void 0?b=new S(f,e):b=new S(f,e,t),Object.setPrototypeOf(b,x.prototype),b}function ge(f){if(x.isBuffer(f)){const e=D(f.length)|0,t=X(e);return t.length===0||f.copy(t,0,0,e),t}if(f.length!==void 0)return typeof f.length!="number"||ut(f.length)?X(0):ce(f);if(f.type==="Buffer"&&Array.isArray(f.data))return ce(f.data)}function D(f){if(f>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return f|0}function j(f){return+f!=f&&(f=0),x.alloc(+f)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},x.compare=function(e,t){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),_e(t,S)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let b=e.length,I=t.length;for(let M=0,H=Math.min(b,I);M<H;++M)if(e[M]!==t[M]){b=e[M],I=t[M];break}return b<I?-1:I<b?1:0},x.isEncoding=function(e){switch(String(e).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}},x.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let b;if(t===void 0)for(t=0,b=0;b<e.length;++b)t+=e[b].length;const I=x.allocUnsafe(t);let M=0;for(b=0;b<e.length;++b){let H=e[b];if(_e(H,S))M+H.length>I.length?(x.isBuffer(H)||(H=x.from(H)),H.copy(I,M)):S.prototype.set.call(I,H,M);else if(x.isBuffer(H))H.copy(I,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=H.length}return I};function $(f,e){if(x.isBuffer(f))return f.length;if(F.isView(f)||_e(f,F))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 t=f.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&t===0)return 0;let I=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ot(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Vr(f).length;default:if(I)return b?-1:ot(f).length;e=(""+e).toLowerCase(),I=!0}}x.byteLength=$;function J(f,e,t){let b=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(f||(f="utf8");;)switch(f){case"hex":return ve(this,e,t);case"utf8":case"utf-8":return Q(this,e,t);case"ascii":return se(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return W(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,e,t);default:if(b)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),b=!0}}x.prototype._isBuffer=!0;function O(f,e,t){const b=f[e];f[e]=f[t],f[t]=b}x.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)O(this,t,t+1);return this},x.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this},x.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this},x.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Q(this,0,e):J.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},x.prototype.inspect=function(){let e="";const t=m.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},g&&(x.prototype[g]=x.prototype.inspect),x.prototype.compare=function(e,t,b,I,M){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),b===void 0&&(b=e?e.length:0),I===void 0&&(I=0),M===void 0&&(M=this.length),t<0||b>e.length||I<0||M>this.length)throw new RangeError("out of range index");if(I>=M&&t>=b)return 0;if(I>=M)return-1;if(t>=b)return 1;if(t>>>=0,b>>>=0,I>>>=0,M>>>=0,this===e)return 0;let H=M-I,ne=b-t;const de=Math.min(H,ne),fe=this.slice(I,M),pe=e.slice(t,b);for(let ue=0;ue<de;++ue)if(fe[ue]!==pe[ue]){H=fe[ue],ne=pe[ue];break}return H<ne?-1:ne<H?1:0};function i(f,e,t,b,I){if(f.length===0)return-1;if(typeof t=="string"?(b=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ut(t)&&(t=I?0:f.length-1),t<0&&(t=f.length+t),t>=f.length){if(I)return-1;t=f.length-1}else if(t<0)if(I)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,b)),x.isBuffer(e))return e.length===0?-1:n(f,e,t,b,I);if(typeof e=="number")return e=e&255,typeof S.prototype.indexOf=="function"?I?S.prototype.indexOf.call(f,e,t):S.prototype.lastIndexOf.call(f,e,t):n(f,[e],t,b,I);throw new TypeError("val must be string, number or Buffer")}function n(f,e,t,b,I){let M=1,H=f.length,ne=e.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(f.length<2||e.length<2)return-1;M=2,H/=2,ne/=2,t/=2}function de(pe,ue){return M===1?pe[ue]:pe.readUInt16BE(ue*M)}let fe;if(I){let pe=-1;for(fe=t;fe<H;fe++)if(de(f,fe)===de(e,pe===-1?0:fe-pe)){if(pe===-1&&(pe=fe),fe-pe+1===ne)return pe*M}else pe!==-1&&(fe-=fe-pe),pe=-1}else for(t+ne>H&&(t=H-ne),fe=t;fe>=0;fe--){let pe=!0;for(let ue=0;ue<ne;ue++)if(de(f,fe+ue)!==de(e,ue)){pe=!1;break}if(pe)return fe}return-1}x.prototype.includes=function(e,t,b){return this.indexOf(e,t,b)!==-1},x.prototype.indexOf=function(e,t,b){return i(this,e,t,b,!0)},x.prototype.lastIndexOf=function(e,t,b){return i(this,e,t,b,!1)};function R(f,e,t,b){t=Number(t)||0;const I=f.length-t;b?(b=Number(b),b>I&&(b=I)):b=I;const M=e.length;b>M/2&&(b=M/2);let H;for(H=0;H<b;++H){const ne=parseInt(e.substr(H*2,2),16);if(ut(ne))return H;f[t+H]=ne}return H}function v(f,e,t,b){return Ve(ot(e,f.length-t),f,t,b)}function h(f,e,t,b){return Ve(ra(e),f,t,b)}function p(f,e,t,b){return Ve(Vr(e),f,t,b)}function U(f,e,t,b){return Ve(na(e,f.length-t),f,t,b)}x.prototype.write=function(e,t,b,I){if(t===void 0)I="utf8",b=this.length,t=0;else if(b===void 0&&typeof t=="string")I=t,b=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(b)?(b=b>>>0,I===void 0&&(I="utf8")):(I=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-t;if((b===void 0||b>M)&&(b=M),e.length>0&&(b<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let H=!1;for(;;)switch(I){case"hex":return R(this,e,t,b);case"utf8":case"utf-8":return v(this,e,t,b);case"ascii":case"latin1":case"binary":return h(this,e,t,b);case"base64":return p(this,e,t,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,b);default:if(H)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),H=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(f,e,t){return e===0&&t===f.length?s.fromByteArray(f):s.fromByteArray(f.slice(e,t))}function Q(f,e,t){t=Math.min(f.length,t);const b=[];let I=e;for(;I<t;){const M=f[I];let H=null,ne=M>239?4:M>223?3:M>191?2:1;if(I+ne<=t){let de,fe,pe,ue;switch(ne){case 1:M<128&&(H=M);break;case 2:de=f[I+1],(de&192)===128&&(ue=(M&31)<<6|de&63,ue>127&&(H=ue));break;case 3:de=f[I+1],fe=f[I+2],(de&192)===128&&(fe&192)===128&&(ue=(M&15)<<12|(de&63)<<6|fe&63,ue>2047&&(ue<55296||ue>57343)&&(H=ue));break;case 4:de=f[I+1],fe=f[I+2],pe=f[I+3],(de&192)===128&&(fe&192)===128&&(pe&192)===128&&(ue=(M&15)<<18|(de&63)<<12|(fe&63)<<6|pe&63,ue>65535&&ue<1114112&&(H=ue))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,b.push(H>>>10&1023|55296),H=56320|H&1023),b.push(H),I+=ne}return z(b)}const Y=4096;function z(f){const e=f.length;if(e<=Y)return String.fromCharCode.apply(String,f);let t="",b=0;for(;b<e;)t+=String.fromCharCode.apply(String,f.slice(b,b+=Y));return t}function se(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]&127);return b}function k(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]);return b}function ve(f,e,t){const b=f.length;(!e||e<0)&&(e=0),(!t||t<0||t>b)&&(t=b);let I="";for(let M=e;M<t;++M)I+=ia[f[M]];return I}function be(f,e,t){const b=f.slice(e,t);let I="";for(let M=0;M<b.length-1;M+=2)I+=String.fromCharCode(b[M]+b[M+1]*256);return I}x.prototype.slice=function(e,t){const b=this.length;e=~~e,t=t===void 0?b:~~t,e<0?(e+=b,e<0&&(e=0)):e>b&&(e=b),t<0?(t+=b,t<0&&(t=0)):t>b&&(t=b),t<e&&(t=e);const I=this.subarray(e,t);return Object.setPrototypeOf(I,x.prototype),I};function ae(f,e,t){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+e>t)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,H=0;for(;++H<t&&(M*=256);)I+=this[e+H]*M;return I},x.prototype.readUintBE=x.prototype.readUIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e+--t],M=1;for(;t>0&&(M*=256);)I+=this[e+--t]*M;return I},x.prototype.readUint8=x.prototype.readUInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]|this[e+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]<<8|this[e+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},x.prototype.readBigUInt64LE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,M=this[++e]+this[++e]*2**8+this[++e]*2**16+b*2**24;return BigInt(I)+(BigInt(M)<<BigInt(32))}),x.prototype.readBigUInt64BE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],M=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b;return(BigInt(I)<<BigInt(32))+BigInt(M)}),x.prototype.readIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,H=0;for(;++H<t&&(M*=256);)I+=this[e+H]*M;return M*=128,I>=M&&(I-=Math.pow(2,8*t)),I},x.prototype.readIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=t,M=1,H=this[e+--I];for(;I>0&&(M*=256);)H+=this[e+--I]*M;return M*=128,H>=M&&(H-=Math.pow(2,8*t)),H},x.prototype.readInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},x.prototype.readInt16LE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e]|this[e+1]<<8;return b&32768?b|4294901760:b},x.prototype.readInt16BE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e+1]|this[e]<<8;return b&32768?b|4294901760:b},x.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},x.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},x.prototype.readBigInt64LE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(b<<24);return(BigInt(I)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),x.prototype.readBigInt64BE=xe(function(e){e=e>>>0,Ce(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&qe(e,this.length-8);const I=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(I)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b)}),x.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),o.read(this,e,!0,23,4)},x.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),o.read(this,e,!1,23,4)},x.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),o.read(this,e,!0,52,8)},x.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),o.read(this,e,!1,52,8)};function he(f,e,t,b,I,M){if(!x.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>I||e<M)throw new RangeError('"value" argument is out of bounds');if(t+b>f.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=1,H=0;for(this[t]=e&255;++H<b&&(M*=256);)this[t+H]=e/M&255;return t+b},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=b-1,H=1;for(this[t+M]=e&255;--M>=0&&(H*=256);)this[t+M]=e/H&255;return t+b},x.prototype.writeUint8=x.prototype.writeUInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,255,0),this[t]=e&255,t+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function we(f,e,t,b,I){Wr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M;let H=Number(e>>BigInt(32)&BigInt(4294967295));return f[t++]=H,H=H>>8,f[t++]=H,H=H>>8,f[t++]=H,H=H>>8,f[t++]=H,t}function Ne(f,e,t,b,I){Wr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t+7]=M,M=M>>8,f[t+6]=M,M=M>>8,f[t+5]=M,M=M>>8,f[t+4]=M;let H=Number(e>>BigInt(32)&BigInt(4294967295));return f[t+3]=H,H=H>>8,f[t+2]=H,H=H>>8,f[t+1]=H,H=H>>8,f[t]=H,t+8}x.prototype.writeBigUInt64LE=xe(function(e,t=0){return we(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=xe(function(e,t=0){return Ne(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=0,H=1,ne=0;for(this[t]=e&255;++M<b&&(H*=256);)e<0&&ne===0&&this[t+M-1]!==0&&(ne=1),this[t+M]=(e/H>>0)-ne&255;return t+b},x.prototype.writeIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=b-1,H=1,ne=0;for(this[t+M]=e&255;--M>=0&&(H*=256);)e<0&&ne===0&&this[t+M+1]!==0&&(ne=1),this[t+M]=(e/H>>0)-ne&255;return t+b},x.prototype.writeInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},x.prototype.writeInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},x.prototype.writeInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},x.prototype.writeBigInt64LE=xe(function(e,t=0){return we(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=xe(function(e,t=0){return Ne(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(f,e,t,b,I,M){if(t+b>f.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ae(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,4),o.write(f,e,t,b,23,4),t+4}x.prototype.writeFloatLE=function(e,t,b){return Ae(this,e,t,!0,b)},x.prototype.writeFloatBE=function(e,t,b){return Ae(this,e,t,!1,b)};function Te(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,8),o.write(f,e,t,b,52,8),t+8}x.prototype.writeDoubleLE=function(e,t,b){return Te(this,e,t,!0,b)},x.prototype.writeDoubleBE=function(e,t,b){return Te(this,e,t,!1,b)},x.prototype.copy=function(e,t,b,I){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(b||(b=0),!I&&I!==0&&(I=this.length),t>=e.length&&(t=e.length),t||(t=0),I>0&&I<b&&(I=b),I===b||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),e.length-t<I-b&&(I=e.length-t+b);const M=I-b;return this===e&&typeof S.prototype.copyWithin=="function"?this.copyWithin(t,b,I):S.prototype.set.call(e,this.subarray(b,I),t),M},x.prototype.fill=function(e,t,b,I){if(typeof e=="string"){if(typeof t=="string"?(I=t,t=0,b=this.length):typeof b=="string"&&(I=b,b=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!x.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(e.length===1){const H=e.charCodeAt(0);(I==="utf8"&&H<128||I==="latin1")&&(e=H)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<b)throw new RangeError("Out of range index");if(b<=t)return this;t=t>>>0,b=b===void 0?this.length:b>>>0,e||(e=0);let M;if(typeof e=="number")for(M=t;M<b;++M)this[M]=e;else{const H=x.isBuffer(e)?e:x.from(e,I),ne=H.length;if(ne===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(M=0;M<b-t;++M)this[M+t]=H[M%ne]}return this};const Pe={};function at(f,e,t){Pe[f]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}at("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),at("ERR_INVALID_ARG_TYPE",function(f,e){return`The "${f}" argument must be of type number. Received type ${typeof e}`},TypeError),at("ERR_OUT_OF_RANGE",function(f,e,t){let b=`The value of "${f}" is out of range.`,I=t;return Number.isInteger(t)&&Math.abs(t)>2**32?I=$r(String(t)):typeof t=="bigint"&&(I=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(I=$r(I)),I+="n"),b+=` It must be ${e}. Received ${I}`,b},RangeError);function $r(f){let e="",t=f.length;const b=f[0]==="-"?1:0;for(;t>=b+4;t-=3)e=`_${f.slice(t-3,t)}${e}`;return`${f.slice(0,t)}${e}`}function Zi(f,e,t){Ce(e,"offset"),(f[e]===void 0||f[e+t]===void 0)&&qe(e,f.length-(t+1))}function Wr(f,e,t,b,I,M){if(f>t||f<e){const H=typeof e=="bigint"?"n":"";let ne;throw e===0||e===BigInt(0)?ne=`>= 0${H} and < 2${H} ** ${(M+1)*8}${H}`:ne=`>= -(2${H} ** ${(M+1)*8-1}${H}) and < 2 ** ${(M+1)*8-1}${H}`,new Pe.ERR_OUT_OF_RANGE("value",ne,f)}Zi(b,I,M)}function Ce(f,e){if(typeof f!="number")throw new Pe.ERR_INVALID_ARG_TYPE(e,"number",f)}function qe(f,e,t){throw Math.floor(f)!==f?(Ce(f,t),new Pe.ERR_OUT_OF_RANGE("offset","an integer",f)):e<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,f)}const ea=/[^+/0-9A-Za-z-_]/g;function ta(f){if(f=f.split("=")[0],f=f.trim().replace(ea,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function ot(f,e){e=e||1/0;let t;const b=f.length;let I=null;const M=[];for(let H=0;H<b;++H){if(t=f.charCodeAt(H),t>55295&&t<57344){if(!I){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(H+1===b){(e-=3)>-1&&M.push(239,191,189);continue}I=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),I=t;continue}t=(I-55296<<10|t-56320)+65536}else I&&(e-=3)>-1&&M.push(239,191,189);if(I=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function ra(f){const e=[];for(let t=0;t<f.length;++t)e.push(f.charCodeAt(t)&255);return e}function na(f,e){let t,b,I;const M=[];for(let H=0;H<f.length&&!((e-=2)<0);++H)t=f.charCodeAt(H),b=t>>8,I=t%256,M.push(I),M.push(b);return M}function Vr(f){return s.toByteArray(ta(f))}function Ve(f,e,t,b){let I;for(I=0;I<b&&!(I+t>=e.length||I>=f.length);++I)e[I+t]=f[I];return I}function _e(f,e){return f instanceof e||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===e.name}function ut(f){return f!==f}const ia=function(){const f="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const b=t*16;for(let I=0;I<16;++I)e[b+I]=f[t]+f[I]}return e}();function xe(f){return typeof BigInt>"u"?aa:f}function aa(){throw new Error("BigInt not supported")}})(a);const c=a.Buffer;r.Blob=a.Blob,r.BlobOptions=a.BlobOptions,r.Buffer=a.Buffer,r.File=a.File,r.FileOptions=a.FileOptions,r.INSPECT_MAX_BYTES=a.INSPECT_MAX_BYTES,r.SlowBuffer=a.SlowBuffer,r.TranscodeEncoding=a.TranscodeEncoding,r.atob=a.atob,r.btoa=a.btoa,r.constants=a.constants,r.default=c,r.isAscii=a.isAscii,r.isUtf8=a.isUtf8,r.kMaxLength=a.kMaxLength,r.kStringMaxLength=a.kStringMaxLength,r.resolveObjectURL=a.resolveObjectURL,r.transcode=a.transcode}(lt)),lt}var ct={},ht={},dt,Qr;function Oi(){return Qr||(Qr=1,dt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},l=Symbol("test"),u=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var w=42;a[l]=w;for(var y in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var A=Object.getOwnPropertySymbols(a);if(A.length!==1||A[0]!==l||!Object.prototype.propertyIsEnumerable.call(a,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(a,l);if(E.value!==w||E.enumerable!==!0)return!1}return!0}),dt}var pt,Zr;function nt(){if(Zr)return pt;Zr=1;var r=Oi();return pt=function(){return r()&&!!Symbol.toStringTag},pt}var yt,en;function Bi(){return en||(en=1,yt=Object),yt}var gt,tn;function wa(){return tn||(tn=1,gt=Error),gt}var bt,rn;function _a(){return rn||(rn=1,bt=EvalError),bt}var mt,nn;function Aa(){return nn||(nn=1,mt=RangeError),mt}var Et,an;function Ta(){return an||(an=1,Et=ReferenceError),Et}var vt,on;function Ni(){return on||(on=1,vt=SyntaxError),vt}var wt,un;function He(){return un||(un=1,wt=TypeError),wt}var _t,sn;function Sa(){return sn||(sn=1,_t=URIError),_t}var At,fn;function Ra(){return fn||(fn=1,At=Math.abs),At}var Tt,ln;function xa(){return ln||(ln=1,Tt=Math.floor),Tt}var St,cn;function Ia(){return cn||(cn=1,St=Math.max),St}var Rt,hn;function Fa(){return hn||(hn=1,Rt=Math.min),Rt}var xt,dn;function Oa(){return dn||(dn=1,xt=Math.pow),xt}var It,pn;function Ba(){return pn||(pn=1,It=Math.round),It}var Ft,yn;function Na(){return yn||(yn=1,Ft=Number.isNaN||function(a){return a!==a}),Ft}var Ot,gn;function Pa(){if(gn)return Ot;gn=1;var r=Na();return Ot=function(l){return r(l)||l===0?l:l<0?-1:1},Ot}var Bt,bn;function Ca(){return bn||(bn=1,Bt=Object.getOwnPropertyDescriptor),Bt}var Nt,mn;function Ue(){if(mn)return Nt;mn=1;var r=Ca();if(r)try{r([],"length")}catch{r=null}return Nt=r,Nt}var Pt,En;function it(){if(En)return Pt;En=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Pt=r,Pt}var Ct,vn;function Da(){if(vn)return Ct;vn=1;var r=typeof Symbol<"u"&&Symbol,a=Oi();return Ct=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()},Ct}var Dt,wn;function Pi(){return wn||(wn=1,Dt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Dt}var Lt,_n;function Ci(){if(_n)return Lt;_n=1;var r=Bi();return Lt=r.getPrototypeOf||null,Lt}var Mt,An;function La(){if(An)return Mt;An=1;var r="Function.prototype.bind called on incompatible ",a=Object.prototype.toString,l=Math.max,u="[object Function]",w=function(_,B){for(var C=[],N=0;N<_.length;N+=1)C[N]=_[N];for(var P=0;P<B.length;P+=1)C[P+_.length]=B[P];return C},y=function(_,B){for(var C=[],N=B,P=0;N<_.length;N+=1,P+=1)C[P]=_[N];return C},A=function(E,_){for(var B="",C=0;C<E.length;C+=1)B+=E[C],C+1<E.length&&(B+=_);return B};return Mt=function(_){var B=this;if(typeof B!="function"||a.apply(B)!==u)throw new TypeError(r+B);for(var C=y(arguments,1),N,P=function(){if(this instanceof N){var c=B.apply(this,w(C,arguments));return Object(c)===c?c:this}return B.apply(_,w(C,arguments))},V=l(0,B.length-C.length),q=[],G=0;G<V;G++)q[G]="$"+G;if(N=Function("binder","return function ("+A(q,",")+"){ return binder.apply(this,arguments); }")(P),B.prototype){var L=function(){};L.prototype=B.prototype,N.prototype=new L,L.prototype=null}return N},Mt}var Ut,Tn;function Ke(){if(Tn)return Ut;Tn=1;var r=La();return Ut=Function.prototype.bind||r,Ut}var jt,Sn;function Mr(){return Sn||(Sn=1,jt=Function.prototype.call),jt}var qt,Rn;function Ur(){return Rn||(Rn=1,qt=Function.prototype.apply),qt}var kt,xn;function Ma(){return xn||(xn=1,kt=typeof Reflect<"u"&&Reflect&&Reflect.apply),kt}var Gt,In;function Di(){if(In)return Gt;In=1;var r=Ke(),a=Ur(),l=Mr(),u=Ma();return Gt=u||r.call(l,a),Gt}var Ht,Fn;function jr(){if(Fn)return Ht;Fn=1;var r=Ke(),a=He(),l=Mr(),u=Di();return Ht=function(y){if(y.length<1||typeof y[0]!="function")throw new a("a function is required");return u(r,l,y)},Ht}var Kt,On;function Ua(){if(On)return Kt;On=1;var r=jr(),a=Ue(),l;try{l=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var u=!!l&&a&&a(Object.prototype,"__proto__"),w=Object,y=w.getPrototypeOf;return Kt=u&&typeof u.get=="function"?r([u.get]):typeof y=="function"?function(E){return y(E==null?E:w(E))}:!1,Kt}var $t,Bn;function qr(){if(Bn)return $t;Bn=1;var r=Pi(),a=Ci(),l=Ua();return $t=r?function(w){return r(w)}:a?function(w){if(!w||typeof w!="object"&&typeof w!="function")throw new TypeError("getProto: not an object");return a(w)}:l?function(w){return l(w)}:null,$t}var Wt,Nn;function Li(){if(Nn)return Wt;Nn=1;var r=Function.prototype.call,a=Object.prototype.hasOwnProperty,l=Ke();return Wt=l.call(r,a),Wt}var Vt,Pn;function Mi(){if(Pn)return Vt;Pn=1;var r,a=Bi(),l=wa(),u=_a(),w=Aa(),y=Ta(),A=Ni(),E=He(),_=Sa(),B=Ra(),C=xa(),N=Ia(),P=Fa(),V=Oa(),q=Ba(),G=Pa(),L=Function,c=function(R){try{return L('"use strict"; return ('+R+").constructor;")()}catch{}},m=Ue(),s=it(),o=function(){throw new E},g=m?function(){try{return arguments.callee,o}catch{try{return m(arguments,"callee").get}catch{return o}}}():o,T=Da()(),S=qr(),F=Ci(),d=Pi(),K=Ur(),X=Mr(),x={},ee=typeof Uint8Array>"u"||!S?r:S(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":u,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?r:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":w,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?r:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":A,"%ThrowTypeError%":g,"%TypedArray%":ee,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":K,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":F,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":N,"%Math.min%":P,"%Math.pow%":V,"%Math.round%":q,"%Math.sign%":G,"%Reflect.getPrototypeOf%":d};if(S)try{null.error}catch(R){var ie=S(S(R));re["%Error.prototype%"]=ie}var le=function R(v){var h;if(v==="%AsyncFunction%")h=c("async function () {}");else if(v==="%GeneratorFunction%")h=c("function* () {}");else if(v==="%AsyncGeneratorFunction%")h=c("async function* () {}");else if(v==="%AsyncGenerator%"){var p=R("%AsyncGeneratorFunction%");p&&(h=p.prototype)}else if(v==="%AsyncIteratorPrototype%"){var U=R("%AsyncGenerator%");U&&S&&(h=S(U.prototype))}return re[v]=h,h},Z={__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"]},ce=Ke(),oe=Li(),ye=ce.call(X,Array.prototype.concat),ge=ce.call(K,Array.prototype.splice),D=ce.call(X,String.prototype.replace),j=ce.call(X,String.prototype.slice),$=ce.call(X,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,i=function(v){var h=j(v,0,1),p=j(v,-1);if(h==="%"&&p!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(p==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var U=[];return D(v,J,function(W,Q,Y,z){U[U.length]=Y?D(z,O,"$1"):Q||W}),U},n=function(v,h){var p=v,U;if(oe(Z,p)&&(U=Z[p],p="%"+U[0]+"%"),oe(re,p)){var W=re[p];if(W===x&&(W=le(p)),typeof W>"u"&&!h)throw new E("intrinsic "+v+" exists, but is not available. Please file an issue!");return{alias:U,name:p,value:W}}throw new A("intrinsic "+v+" does not exist!")};return Vt=function(v,h){if(typeof v!="string"||v.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!="boolean")throw new E('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,v)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var p=i(v),U=p.length>0?p[0]:"",W=n("%"+U+"%",h),Q=W.name,Y=W.value,z=!1,se=W.alias;se&&(U=se[0],ge(p,ye([0,1],se)));for(var k=1,ve=!0;k<p.length;k+=1){var be=p[k],ae=j(be,0,1),he=j(be,-1);if((ae==='"'||ae==="'"||ae==="`"||he==='"'||he==="'"||he==="`")&&ae!==he)throw new A("property names with quotes must have matching quotes");if((be==="constructor"||!ve)&&(z=!0),U+="."+be,Q="%"+U+"%",oe(re,Q))Y=re[Q];else if(Y!=null){if(!(be in Y)){if(!h)throw new E("base intrinsic for "+v+" exists, but the property is not available.");return}if(m&&k+1>=p.length){var we=m(Y,be);ve=!!we,ve&&"get"in we&&!("originalValue"in we.get)?Y=we.get:Y=Y[be]}else ve=oe(Y,be),Y=Y[be];ve&&!z&&(re[Q]=Y)}}return Y},Vt}var Yt,Cn;function $e(){if(Cn)return Yt;Cn=1;var r=Mi(),a=jr(),l=a([r("%String.prototype.indexOf%")]);return Yt=function(w,y){var A=r(w,!!y);return typeof A=="function"&&l(w,".prototype.")>-1?a([A]):A},Yt}var Xt,Dn;function ja(){if(Dn)return Xt;Dn=1;var r=nt()(),a=$e(),l=a("Object.prototype.toString"),u=function(E){return r&&E&&typeof E=="object"&&Symbol.toStringTag in E?!1:l(E)==="[object Arguments]"},w=function(E){return u(E)?!0:E!==null&&typeof E=="object"&&"length"in E&&typeof E.length=="number"&&E.length>=0&&l(E)!=="[object Array]"&&"callee"in E&&l(E.callee)==="[object Function]"},y=function(){return u(arguments)}();return u.isLegacyArguments=w,Xt=y?u:w,Xt}var zt,Ln;function qa(){if(Ln)return zt;Ln=1;var r=$e(),a=nt()(),l=Li(),u=Ue(),w;if(a){var y=r("RegExp.prototype.exec"),A={},E=function(){throw A},_={toString:E,valueOf:E};typeof Symbol.toPrimitive=="symbol"&&(_[Symbol.toPrimitive]=E),w=function(P){if(!P||typeof P!="object")return!1;var V=u(P,"lastIndex"),q=V&&l(V,"value");if(!q)return!1;try{y(P,_)}catch(G){return G===A}}}else{var B=r("Object.prototype.toString"),C="[object RegExp]";w=function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:B(P)===C}}return zt=w,zt}var Jt,Mn;function ka(){if(Mn)return Jt;Mn=1;var r=$e(),a=qa(),l=r("RegExp.prototype.exec"),u=He();return Jt=function(y){if(!a(y))throw new u("`regex` must be a RegExp");return function(E){return l(y,E)!==null}},Jt}var Qt,Un;function Ga(){if(Un)return Qt;Un=1;var r=$e(),a=ka(),l=a(/^\s*(?:function)?\*/),u=nt()(),w=qr(),y=r("Object.prototype.toString"),A=r("Function.prototype.toString"),E=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch{}},_;return Qt=function(C){if(typeof C!="function")return!1;if(l(A(C)))return!0;if(!u){var N=y(C);return N==="[object GeneratorFunction]"}if(!w)return!1;if(typeof _>"u"){var P=E();_=P?w(P):!1}return w(C)===_},Qt}var Zt,jn;function Ha(){if(jn)return Zt;jn=1;var r=Function.prototype.toString,a=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,u;if(typeof a=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw u}}),u={},a(function(){throw 42},null,l)}catch(m){m!==u&&(a=null)}else a=null;var w=/^\s*class\b/,y=function(s){try{var o=r.call(s);return w.test(o)}catch{return!1}},A=function(s){try{return y(s)?!1:(r.call(s),!0)}catch{return!1}},E=Object.prototype.toString,_="[object Object]",B="[object Function]",C="[object GeneratorFunction]",N="[object HTMLAllCollection]",P="[object HTML document.all class]",V="[object HTMLCollection]",q=typeof Symbol=="function"&&!!Symbol.toStringTag,G=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var c=document.all;E.call(c)===E.call(document.all)&&(L=function(s){if((G||!s)&&(typeof s>"u"||typeof s=="object"))try{var o=E.call(s);return(o===N||o===P||o===V||o===_)&&s("")==null}catch{}return!1})}return Zt=a?function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{a(s,null,l)}catch(o){if(o!==u)return!1}return!y(s)&&A(s)}:function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(q)return A(s);if(y(s))return!1;var o=E.call(s);return o!==B&&o!==C&&!/^\[object HTML/.test(o)?!1:A(s)},Zt}var er,qn;function Ka(){if(qn)return er;qn=1;var r=Ha(),a=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u=function(_,B,C){for(var N=0,P=_.length;N<P;N++)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))},w=function(_,B,C){for(var N=0,P=_.length;N<P;N++)C==null?B(_.charAt(N),N,_):B.call(C,_.charAt(N),N,_)},y=function(_,B,C){for(var N in _)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))};function A(E){return a.call(E)==="[object Array]"}return er=function(_,B,C){if(!r(B))throw new TypeError("iterator must be a function");var N;arguments.length>=3&&(N=C),A(_)?u(_,B,N):typeof _=="string"?w(_,B,N):y(_,B,N)},er}var tr,kn;function $a(){return kn||(kn=1,tr=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),tr}var rr,Gn;function Wa(){if(Gn)return rr;Gn=1;var r=$a(),a=typeof globalThis>"u"?me.commonjsGlobal:globalThis;return rr=function(){for(var u=[],w=0;w<r.length;w++)typeof a[r[w]]=="function"&&(u[u.length]=r[w]);return u},rr}var nr={exports:{}},ir,Hn;function Va(){if(Hn)return ir;Hn=1;var r=it(),a=Ni(),l=He(),u=Ue();return ir=function(y,A,E){if(!y||typeof y!="object"&&typeof y!="function")throw new l("`obj` must be an object or a function`");if(typeof A!="string"&&typeof A!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,B=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,N=arguments.length>6?arguments[6]:!1,P=!!u&&u(y,A);if(r)r(y,A,{configurable:C===null&&P?P.configurable:!C,enumerable:_===null&&P?P.enumerable:!_,value:E,writable:B===null&&P?P.writable:!B});else if(N||!_&&!B&&!C)y[A]=E;else throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ir}var ar,Kn;function Ya(){if(Kn)return ar;Kn=1;var r=it(),a=function(){return!!r};return a.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},ar=a,ar}var or,$n;function Xa(){if($n)return or;$n=1;var r=Mi(),a=Va(),l=Ya()(),u=Ue(),w=He(),y=r("%Math.floor%");return or=function(E,_){if(typeof E!="function")throw new w("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||y(_)!==_)throw new w("`length` must be a positive 32-bit integer");var B=arguments.length>2&&!!arguments[2],C=!0,N=!0;if("length"in E&&u){var P=u(E,"length");P&&!P.configurable&&(C=!1),P&&!P.writable&&(N=!1)}return(C||N||!B)&&(l?a(E,"length",_,!0,!0):a(E,"length",_)),E},or}var ur,Wn;function za(){if(Wn)return ur;Wn=1;var r=Ke(),a=Ur(),l=Di();return ur=function(){return l(r,a,arguments)},ur}var Vn;function Ja(){return Vn||(Vn=1,function(r){var a=Xa(),l=it(),u=jr(),w=za();r.exports=function(A){var E=u(arguments),_=A.length-(arguments.length-1);return a(E,1+(_>0?_:0),!0)},l?l(r.exports,"apply",{value:w}):r.exports.apply=w}(nr)),nr.exports}var sr,Yn;function Ui(){if(Yn)return sr;Yn=1;var r=Ka(),a=Wa(),l=Ja(),u=$e(),w=Ue(),y=qr(),A=u("Object.prototype.toString"),E=nt()(),_=typeof globalThis>"u"?me.commonjsGlobal:globalThis,B=a(),C=u("String.prototype.slice"),N=u("Array.prototype.indexOf",!0)||function(L,c){for(var m=0;m<L.length;m+=1)if(L[m]===c)return m;return-1},P={__proto__:null};E&&w&&y?r(B,function(G){var L=new _[G];if(Symbol.toStringTag in L&&y){var c=y(L),m=w(c,Symbol.toStringTag);if(!m&&c){var s=y(c);m=w(s,Symbol.toStringTag)}P["$"+G]=l(m.get)}}):r(B,function(G){var L=new _[G],c=L.slice||L.set;c&&(P["$"+G]=l(c))});var V=function(L){var c=!1;return r(P,function(m,s){if(!c)try{"$"+m(L)===s&&(c=C(s,1))}catch{}}),c},q=function(L){var c=!1;return r(P,function(m,s){if(!c)try{m(L),c=C(s,1)}catch{}}),c};return sr=function(L){if(!L||typeof L!="object")return!1;if(!E){var c=C(A(L),8,-1);return N(B,c)>-1?c:c!=="Object"?!1:q(L)}return w?V(L):null},sr}var fr,Xn;function Qa(){if(Xn)return fr;Xn=1;var r=Ui();return fr=function(l){return!!r(l)},fr}var zn;function Za(){return zn||(zn=1,function(r){var a=ja(),l=Ga(),u=Ui(),w=Qa();function y(k){return k.call.bind(k)}var A=typeof BigInt<"u",E=typeof Symbol<"u",_=y(Object.prototype.toString),B=y(Number.prototype.valueOf),C=y(String.prototype.valueOf),N=y(Boolean.prototype.valueOf);if(A)var P=y(BigInt.prototype.valueOf);if(E)var V=y(Symbol.prototype.valueOf);function q(k,ve){if(typeof k!="object")return!1;try{return ve(k),!0}catch{return!1}}r.isArgumentsObject=a,r.isGeneratorFunction=l,r.isTypedArray=w;function G(k){return typeof Promise<"u"&&k instanceof Promise||k!==null&&typeof k=="object"&&typeof k.then=="function"&&typeof k.catch=="function"}r.isPromise=G;function L(k){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(k):w(k)||j(k)}r.isArrayBufferView=L;function c(k){return u(k)==="Uint8Array"}r.isUint8Array=c;function m(k){return u(k)==="Uint8ClampedArray"}r.isUint8ClampedArray=m;function s(k){return u(k)==="Uint16Array"}r.isUint16Array=s;function o(k){return u(k)==="Uint32Array"}r.isUint32Array=o;function g(k){return u(k)==="Int8Array"}r.isInt8Array=g;function T(k){return u(k)==="Int16Array"}r.isInt16Array=T;function S(k){return u(k)==="Int32Array"}r.isInt32Array=S;function F(k){return u(k)==="Float32Array"}r.isFloat32Array=F;function d(k){return u(k)==="Float64Array"}r.isFloat64Array=d;function K(k){return u(k)==="BigInt64Array"}r.isBigInt64Array=K;function X(k){return u(k)==="BigUint64Array"}r.isBigUint64Array=X;function x(k){return _(k)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function ee(k){return typeof Map>"u"?!1:x.working?x(k):k instanceof Map}r.isMap=ee;function re(k){return _(k)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ie(k){return typeof Set>"u"?!1:re.working?re(k):k instanceof Set}r.isSet=ie;function le(k){return _(k)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Z(k){return typeof WeakMap>"u"?!1:le.working?le(k):k instanceof WeakMap}r.isWeakMap=Z;function ce(k){return _(k)==="[object WeakSet]"}ce.working=typeof WeakSet<"u"&&ce(new WeakSet);function oe(k){return ce(k)}r.isWeakSet=oe;function ye(k){return _(k)==="[object ArrayBuffer]"}ye.working=typeof ArrayBuffer<"u"&&ye(new ArrayBuffer);function ge(k){return typeof ArrayBuffer>"u"?!1:ye.working?ye(k):k instanceof ArrayBuffer}r.isArrayBuffer=ge;function D(k){return _(k)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function j(k){return typeof DataView>"u"?!1:D.working?D(k):k instanceof DataView}r.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(k){return _(k)==="[object SharedArrayBuffer]"}function O(k){return typeof $>"u"?!1:(typeof J.working>"u"&&(J.working=J(new $)),J.working?J(k):k instanceof $)}r.isSharedArrayBuffer=O;function i(k){return _(k)==="[object AsyncFunction]"}r.isAsyncFunction=i;function n(k){return _(k)==="[object Map Iterator]"}r.isMapIterator=n;function R(k){return _(k)==="[object Set Iterator]"}r.isSetIterator=R;function v(k){return _(k)==="[object Generator]"}r.isGeneratorObject=v;function h(k){return _(k)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=h;function p(k){return q(k,B)}r.isNumberObject=p;function U(k){return q(k,C)}r.isStringObject=U;function W(k){return q(k,N)}r.isBooleanObject=W;function Q(k){return A&&q(k,P)}r.isBigIntObject=Q;function Y(k){return E&&q(k,V)}r.isSymbolObject=Y;function z(k){return p(k)||U(k)||W(k)||Q(k)||Y(k)}r.isBoxedPrimitive=z;function se(k){return typeof Uint8Array<"u"&&(ge(k)||O(k))}r.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(k){Object.defineProperty(r,k,{enumerable:!1,value:function(){throw new Error(k+" is not supported in userland")}})})}(ht)),ht}var lr,Jn;function eo(){return Jn||(Jn=1,lr=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}),lr}var Qn;function ji(){return Qn||(Qn=1,function(r){var a=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),J={},O=0;O<$.length;O++)J[$[O]]=Object.getOwnPropertyDescriptor(j,$[O]);return J},l=/%[sdj%]/g;r.format=function(D){if(!g(D)){for(var j=[],$=0;$<arguments.length;$++)j.push(A(arguments[$]));return j.join(" ")}for(var $=1,J=arguments,O=J.length,i=String(D).replace(l,function(R){if(R==="%%")return"%";if($>=O)return R;switch(R){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch{return"[Circular]"}default:return R}}),n=J[$];$<O;n=J[++$])m(n)||!d(n)?i+=" "+n:i+=" "+A(n);return i},r.deprecate=function(D,j){if(typeof te.process$1<"u"&&te.process$1.noDeprecation===!0)return D;if(typeof te.process$1>"u")return function(){return r.deprecate(D,j).apply(this,arguments)};var $=!1;function J(){if(!$){if(te.process$1.throwDeprecation)throw new Error(j);te.process$1.traceDeprecation?console.trace(j):console.error(j),$=!0}return D.apply(this,arguments)}return J};var u={},w=/^$/;if(te.process$1.env.NODE_DEBUG){var y=te.process$1.env.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),w=new RegExp("^"+y+"$","i")}r.debuglog=function(D){if(D=D.toUpperCase(),!u[D])if(w.test(D)){var j=te.process$1.pid;u[D]=function(){var $=r.format.apply(r,arguments);console.error("%s %d: %s",D,j,$)}}else u[D]=function(){};return u[D]};function A(D,j){var $={seen:[],stylize:_};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),c(j)?$.showHidden=j:j&&r._extend($,j),S($.showHidden)&&($.showHidden=!1),S($.depth)&&($.depth=2),S($.colors)&&($.colors=!1),S($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=E),C($,D,$.depth)}r.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 E(D,j){var $=A.styles[j];return $?"\x1B["+A.colors[$][0]+"m"+D+"\x1B["+A.colors[$][1]+"m":D}function _(D,j){return D}function B(D){var j={};return D.forEach(function($,J){j[$]=!0}),j}function C(D,j,$){if(D.customInspect&&j&&x(j.inspect)&&j.inspect!==r.inspect&&!(j.constructor&&j.constructor.prototype===j)){var J=j.inspect($,D);return g(J)||(J=C(D,J,$)),J}var O=N(D,j);if(O)return O;var i=Object.keys(j),n=B(i);if(D.showHidden&&(i=Object.getOwnPropertyNames(j)),X(j)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P(j);if(i.length===0){if(x(j)){var R=j.name?": "+j.name:"";return D.stylize("[Function"+R+"]","special")}if(F(j))return D.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return D.stylize(Date.prototype.toString.call(j),"date");if(X(j))return P(j)}var v="",h=!1,p=["{","}"];if(L(j)&&(h=!0,p=["[","]"]),x(j)){var U=j.name?": "+j.name:"";v=" [Function"+U+"]"}if(F(j)&&(v=" "+RegExp.prototype.toString.call(j)),K(j)&&(v=" "+Date.prototype.toUTCString.call(j)),X(j)&&(v=" "+P(j)),i.length===0&&(!h||j.length==0))return p[0]+v+p[1];if($<0)return F(j)?D.stylize(RegExp.prototype.toString.call(j),"regexp"):D.stylize("[Object]","special");D.seen.push(j);var W;return h?W=V(D,j,$,n,i):W=i.map(function(Q){return q(D,j,$,n,Q,h)}),D.seen.pop(),G(W,v,p)}function N(D,j){if(S(j))return D.stylize("undefined","undefined");if(g(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize($,"string")}if(o(j))return D.stylize(""+j,"number");if(c(j))return D.stylize(""+j,"boolean");if(m(j))return D.stylize("null","null")}function P(D){return"["+Error.prototype.toString.call(D)+"]"}function V(D,j,$,J,O){for(var i=[],n=0,R=j.length;n<R;++n)ce(j,String(n))?i.push(q(D,j,$,J,String(n),!0)):i.push("");return O.forEach(function(v){v.match(/^\d+$/)||i.push(q(D,j,$,J,v,!0))}),i}function q(D,j,$,J,O,i){var n,R,v;if(v=Object.getOwnPropertyDescriptor(j,O)||{value:j[O]},v.get?v.set?R=D.stylize("[Getter/Setter]","special"):R=D.stylize("[Getter]","special"):v.set&&(R=D.stylize("[Setter]","special")),ce(J,O)||(n="["+O+"]"),R||(D.seen.indexOf(v.value)<0?(m($)?R=C(D,v.value,null):R=C(D,v.value,$-1),R.indexOf(`
6
+ */(function(E){const s=l,a=L,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;E.Buffer=x,E.SlowBuffer=j,E.INSPECT_MAX_BYTES=50;const T=2147483647;E.kMaxLength=T;const{Uint8Array:S,ArrayBuffer:F,SharedArrayBuffer:d}=globalThis;x.TYPED_ARRAY_SUPPORT=K(),!x.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 K(){try{const f=new S(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,S.prototype),Object.setPrototypeOf(f,e),f.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function X(f){if(f>T)throw new RangeError('The value "'+f+'" is invalid for option "size"');const e=new S(f);return Object.setPrototypeOf(e,x.prototype),e}function x(f,e,t){if(typeof f=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return le(f)}return ee(f,e,t)}x.poolSize=8192;function ee(f,e,t){if(typeof f=="string")return Z(f,e);if(F.isView(f))return oe(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(_e(f,F)||f&&_e(f.buffer,F)||typeof d<"u"&&(_e(f,d)||f&&_e(f.buffer,d)))return ye(f,e,t);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const b=f.valueOf&&f.valueOf();if(b!=null&&b!==f)return x.from(b,e,t);const I=ge(f);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return x.from(f[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}x.from=function(f,e,t){return ee(f,e,t)},Object.setPrototypeOf(x.prototype,S.prototype),Object.setPrototypeOf(x,S);function re(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 ie(f,e,t){return re(f),f<=0?X(f):e!==void 0?typeof t=="string"?X(f).fill(e,t):X(f).fill(e):X(f)}x.alloc=function(f,e,t){return ie(f,e,t)};function le(f){return re(f),X(f<0?0:D(f)|0)}x.allocUnsafe=function(f){return le(f)},x.allocUnsafeSlow=function(f){return le(f)};function Z(f,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=$(f,e)|0;let b=X(t);const I=b.write(f,e);return I!==t&&(b=b.slice(0,I)),b}function ce(f){const e=f.length<0?0:D(f.length)|0,t=X(e);for(let b=0;b<e;b+=1)t[b]=f[b]&255;return t}function oe(f){if(_e(f,S)){const e=new S(f);return ye(e.buffer,e.byteOffset,e.byteLength)}return ce(f)}function ye(f,e,t){if(e<0||f.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let b;return e===void 0&&t===void 0?b=new S(f):t===void 0?b=new S(f,e):b=new S(f,e,t),Object.setPrototypeOf(b,x.prototype),b}function ge(f){if(x.isBuffer(f)){const e=D(f.length)|0,t=X(e);return t.length===0||f.copy(t,0,0,e),t}if(f.length!==void 0)return typeof f.length!="number"||ot(f.length)?X(0):ce(f);if(f.type==="Buffer"&&Array.isArray(f.data))return ce(f.data)}function D(f){if(f>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return f|0}function j(f){return+f!=f&&(f=0),x.alloc(+f)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},x.compare=function(e,t){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),_e(t,S)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let b=e.length,I=t.length;for(let M=0,G=Math.min(b,I);M<G;++M)if(e[M]!==t[M]){b=e[M],I=t[M];break}return b<I?-1:I<b?1:0},x.isEncoding=function(e){switch(String(e).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}},x.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let b;if(t===void 0)for(t=0,b=0;b<e.length;++b)t+=e[b].length;const I=x.allocUnsafe(t);let M=0;for(b=0;b<e.length;++b){let G=e[b];if(_e(G,S))M+G.length>I.length?(x.isBuffer(G)||(G=x.from(G)),G.copy(I,M)):S.prototype.set.call(I,G,M);else if(x.isBuffer(G))G.copy(I,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=G.length}return I};function $(f,e){if(x.isBuffer(f))return f.length;if(F.isView(f)||_e(f,F))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 t=f.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&t===0)return 0;let I=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return at(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return $r(f).length;default:if(I)return b?-1:at(f).length;e=(""+e).toLowerCase(),I=!0}}x.byteLength=$;function J(f,e,t){let b=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(f||(f="utf8");;)switch(f){case"hex":return ve(this,e,t);case"utf8":case"utf-8":return Q(this,e,t);case"ascii":return se(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return W(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,e,t);default:if(b)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),b=!0}}x.prototype._isBuffer=!0;function O(f,e,t){const b=f[e];f[e]=f[t],f[t]=b}x.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)O(this,t,t+1);return this},x.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this},x.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this},x.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Q(this,0,e):J.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},x.prototype.inspect=function(){let e="";const t=E.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},g&&(x.prototype[g]=x.prototype.inspect),x.prototype.compare=function(e,t,b,I,M){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),b===void 0&&(b=e?e.length:0),I===void 0&&(I=0),M===void 0&&(M=this.length),t<0||b>e.length||I<0||M>this.length)throw new RangeError("out of range index");if(I>=M&&t>=b)return 0;if(I>=M)return-1;if(t>=b)return 1;if(t>>>=0,b>>>=0,I>>>=0,M>>>=0,this===e)return 0;let G=M-I,ne=b-t;const de=Math.min(G,ne),fe=this.slice(I,M),pe=e.slice(t,b);for(let ue=0;ue<de;++ue)if(fe[ue]!==pe[ue]){G=fe[ue],ne=pe[ue];break}return G<ne?-1:ne<G?1:0};function i(f,e,t,b,I){if(f.length===0)return-1;if(typeof t=="string"?(b=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ot(t)&&(t=I?0:f.length-1),t<0&&(t=f.length+t),t>=f.length){if(I)return-1;t=f.length-1}else if(t<0)if(I)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,b)),x.isBuffer(e))return e.length===0?-1:r(f,e,t,b,I);if(typeof e=="number")return e=e&255,typeof S.prototype.indexOf=="function"?I?S.prototype.indexOf.call(f,e,t):S.prototype.lastIndexOf.call(f,e,t):r(f,[e],t,b,I);throw new TypeError("val must be string, number or Buffer")}function r(f,e,t,b,I){let M=1,G=f.length,ne=e.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(f.length<2||e.length<2)return-1;M=2,G/=2,ne/=2,t/=2}function de(pe,ue){return M===1?pe[ue]:pe.readUInt16BE(ue*M)}let fe;if(I){let pe=-1;for(fe=t;fe<G;fe++)if(de(f,fe)===de(e,pe===-1?0:fe-pe)){if(pe===-1&&(pe=fe),fe-pe+1===ne)return pe*M}else pe!==-1&&(fe-=fe-pe),pe=-1}else for(t+ne>G&&(t=G-ne),fe=t;fe>=0;fe--){let pe=!0;for(let ue=0;ue<ne;ue++)if(de(f,fe+ue)!==de(e,ue)){pe=!1;break}if(pe)return fe}return-1}x.prototype.includes=function(e,t,b){return this.indexOf(e,t,b)!==-1},x.prototype.indexOf=function(e,t,b){return i(this,e,t,b,!0)},x.prototype.lastIndexOf=function(e,t,b){return i(this,e,t,b,!1)};function R(f,e,t,b){t=Number(t)||0;const I=f.length-t;b?(b=Number(b),b>I&&(b=I)):b=I;const M=e.length;b>M/2&&(b=M/2);let G;for(G=0;G<b;++G){const ne=parseInt(e.substr(G*2,2),16);if(ot(ne))return G;f[t+G]=ne}return G}function w(f,e,t,b){return We(at(e,f.length-t),f,t,b)}function h(f,e,t,b){return We(Qi(e),f,t,b)}function p(f,e,t,b){return We($r(e),f,t,b)}function U(f,e,t,b){return We(Zi(e,f.length-t),f,t,b)}x.prototype.write=function(e,t,b,I){if(t===void 0)I="utf8",b=this.length,t=0;else if(b===void 0&&typeof t=="string")I=t,b=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(b)?(b=b>>>0,I===void 0&&(I="utf8")):(I=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-t;if((b===void 0||b>M)&&(b=M),e.length>0&&(b<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let G=!1;for(;;)switch(I){case"hex":return R(this,e,t,b);case"utf8":case"utf-8":return w(this,e,t,b);case"ascii":case"latin1":case"binary":return h(this,e,t,b);case"base64":return p(this,e,t,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,b);default:if(G)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),G=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(f,e,t){return e===0&&t===f.length?s.fromByteArray(f):s.fromByteArray(f.slice(e,t))}function Q(f,e,t){t=Math.min(f.length,t);const b=[];let I=e;for(;I<t;){const M=f[I];let G=null,ne=M>239?4:M>223?3:M>191?2:1;if(I+ne<=t){let de,fe,pe,ue;switch(ne){case 1:M<128&&(G=M);break;case 2:de=f[I+1],(de&192)===128&&(ue=(M&31)<<6|de&63,ue>127&&(G=ue));break;case 3:de=f[I+1],fe=f[I+2],(de&192)===128&&(fe&192)===128&&(ue=(M&15)<<12|(de&63)<<6|fe&63,ue>2047&&(ue<55296||ue>57343)&&(G=ue));break;case 4:de=f[I+1],fe=f[I+2],pe=f[I+3],(de&192)===128&&(fe&192)===128&&(pe&192)===128&&(ue=(M&15)<<18|(de&63)<<12|(fe&63)<<6|pe&63,ue>65535&&ue<1114112&&(G=ue))}}G===null?(G=65533,ne=1):G>65535&&(G-=65536,b.push(G>>>10&1023|55296),G=56320|G&1023),b.push(G),I+=ne}return z(b)}const Y=4096;function z(f){const e=f.length;if(e<=Y)return String.fromCharCode.apply(String,f);let t="",b=0;for(;b<e;)t+=String.fromCharCode.apply(String,f.slice(b,b+=Y));return t}function se(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]&127);return b}function k(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]);return b}function ve(f,e,t){const b=f.length;(!e||e<0)&&(e=0),(!t||t<0||t>b)&&(t=b);let I="";for(let M=e;M<t;++M)I+=ea[f[M]];return I}function be(f,e,t){const b=f.slice(e,t);let I="";for(let M=0;M<b.length-1;M+=2)I+=String.fromCharCode(b[M]+b[M+1]*256);return I}x.prototype.slice=function(e,t){const b=this.length;e=~~e,t=t===void 0?b:~~t,e<0?(e+=b,e<0&&(e=0)):e>b&&(e=b),t<0?(t+=b,t<0&&(t=0)):t>b&&(t=b),t<e&&(t=e);const I=this.subarray(e,t);return Object.setPrototypeOf(I,x.prototype),I};function ae(f,e,t){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+e>t)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return I},x.prototype.readUintBE=x.prototype.readUIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e+--t],M=1;for(;t>0&&(M*=256);)I+=this[e+--t]*M;return I},x.prototype.readUint8=x.prototype.readUInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]|this[e+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]<<8|this[e+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},x.prototype.readBigUInt64LE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,M=this[++e]+this[++e]*2**8+this[++e]*2**16+b*2**24;return BigInt(I)+(BigInt(M)<<BigInt(32))}),x.prototype.readBigUInt64BE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],M=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b;return(BigInt(I)<<BigInt(32))+BigInt(M)}),x.prototype.readIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return M*=128,I>=M&&(I-=Math.pow(2,8*t)),I},x.prototype.readIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=t,M=1,G=this[e+--I];for(;I>0&&(M*=256);)G+=this[e+--I]*M;return M*=128,G>=M&&(G-=Math.pow(2,8*t)),G},x.prototype.readInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},x.prototype.readInt16LE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e]|this[e+1]<<8;return b&32768?b|4294901760:b},x.prototype.readInt16BE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e+1]|this[e]<<8;return b&32768?b|4294901760:b},x.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},x.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},x.prototype.readBigInt64LE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(b<<24);return(BigInt(I)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),x.prototype.readBigInt64BE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(I)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b)}),x.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),a.read(this,e,!0,23,4)},x.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),a.read(this,e,!1,23,4)},x.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),a.read(this,e,!0,52,8)},x.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),a.read(this,e,!1,52,8)};function he(f,e,t,b,I,M){if(!x.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>I||e<M)throw new RangeError('"value" argument is out of bounds');if(t+b>f.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=1,G=0;for(this[t]=e&255;++G<b&&(M*=256);)this[t+G]=e/M&255;return t+b},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=b-1,G=1;for(this[t+M]=e&255;--M>=0&&(G*=256);)this[t+M]=e/G&255;return t+b},x.prototype.writeUint8=x.prototype.writeUInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,255,0),this[t]=e&255,t+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function we(f,e,t,b,I){Kr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return f[t++]=G,G=G>>8,f[t++]=G,G=G>>8,f[t++]=G,G=G>>8,f[t++]=G,t}function Be(f,e,t,b,I){Kr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t+7]=M,M=M>>8,f[t+6]=M,M=M>>8,f[t+5]=M,M=M>>8,f[t+4]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return f[t+3]=G,G=G>>8,f[t+2]=G,G=G>>8,f[t+1]=G,G=G>>8,f[t]=G,t+8}x.prototype.writeBigUInt64LE=xe(function(e,t=0){return we(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=xe(function(e,t=0){return Be(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=0,G=1,ne=0;for(this[t]=e&255;++M<b&&(G*=256);)e<0&&ne===0&&this[t+M-1]!==0&&(ne=1),this[t+M]=(e/G>>0)-ne&255;return t+b},x.prototype.writeIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=b-1,G=1,ne=0;for(this[t+M]=e&255;--M>=0&&(G*=256);)e<0&&ne===0&&this[t+M+1]!==0&&(ne=1),this[t+M]=(e/G>>0)-ne&255;return t+b},x.prototype.writeInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},x.prototype.writeInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},x.prototype.writeInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},x.prototype.writeBigInt64LE=xe(function(e,t=0){return we(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=xe(function(e,t=0){return Be(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(f,e,t,b,I,M){if(t+b>f.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ae(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,4),a.write(f,e,t,b,23,4),t+4}x.prototype.writeFloatLE=function(e,t,b){return Ae(this,e,t,!0,b)},x.prototype.writeFloatBE=function(e,t,b){return Ae(this,e,t,!1,b)};function Te(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,8),a.write(f,e,t,b,52,8),t+8}x.prototype.writeDoubleLE=function(e,t,b){return Te(this,e,t,!0,b)},x.prototype.writeDoubleBE=function(e,t,b){return Te(this,e,t,!1,b)},x.prototype.copy=function(e,t,b,I){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(b||(b=0),!I&&I!==0&&(I=this.length),t>=e.length&&(t=e.length),t||(t=0),I>0&&I<b&&(I=b),I===b||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),e.length-t<I-b&&(I=e.length-t+b);const M=I-b;return this===e&&typeof S.prototype.copyWithin=="function"?this.copyWithin(t,b,I):S.prototype.set.call(e,this.subarray(b,I),t),M},x.prototype.fill=function(e,t,b,I){if(typeof e=="string"){if(typeof t=="string"?(I=t,t=0,b=this.length):typeof b=="string"&&(I=b,b=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!x.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(e.length===1){const G=e.charCodeAt(0);(I==="utf8"&&G<128||I==="latin1")&&(e=G)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<b)throw new RangeError("Out of range index");if(b<=t)return this;t=t>>>0,b=b===void 0?this.length:b>>>0,e||(e=0);let M;if(typeof e=="number")for(M=t;M<b;++M)this[M]=e;else{const G=x.isBuffer(e)?e:x.from(e,I),ne=G.length;if(ne===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(M=0;M<b-t;++M)this[M+t]=G[M%ne]}return this};const Ne={};function it(f,e,t){Ne[f]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}it("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),it("ERR_INVALID_ARG_TYPE",function(f,e){return`The "${f}" argument must be of type number. Received type ${typeof e}`},TypeError),it("ERR_OUT_OF_RANGE",function(f,e,t){let b=`The value of "${f}" is out of range.`,I=t;return Number.isInteger(t)&&Math.abs(t)>2**32?I=Gr(String(t)):typeof t=="bigint"&&(I=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(I=Gr(I)),I+="n"),b+=` It must be ${e}. Received ${I}`,b},RangeError);function Gr(f){let e="",t=f.length;const b=f[0]==="-"?1:0;for(;t>=b+4;t-=3)e=`_${f.slice(t-3,t)}${e}`;return`${f.slice(0,t)}${e}`}function Xi(f,e,t){Pe(e,"offset"),(f[e]===void 0||f[e+t]===void 0)&&je(e,f.length-(t+1))}function Kr(f,e,t,b,I,M){if(f>t||f<e){const G=typeof e=="bigint"?"n":"";let ne;throw e===0||e===BigInt(0)?ne=`>= 0${G} and < 2${G} ** ${(M+1)*8}${G}`:ne=`>= -(2${G} ** ${(M+1)*8-1}${G}) and < 2 ** ${(M+1)*8-1}${G}`,new Ne.ERR_OUT_OF_RANGE("value",ne,f)}Xi(b,I,M)}function Pe(f,e){if(typeof f!="number")throw new Ne.ERR_INVALID_ARG_TYPE(e,"number",f)}function je(f,e,t){throw Math.floor(f)!==f?(Pe(f,t),new Ne.ERR_OUT_OF_RANGE("offset","an integer",f)):e<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,f)}const zi=/[^+/0-9A-Za-z-_]/g;function Ji(f){if(f=f.split("=")[0],f=f.trim().replace(zi,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function at(f,e){e=e||1/0;let t;const b=f.length;let I=null;const M=[];for(let G=0;G<b;++G){if(t=f.charCodeAt(G),t>55295&&t<57344){if(!I){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(G+1===b){(e-=3)>-1&&M.push(239,191,189);continue}I=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),I=t;continue}t=(I-55296<<10|t-56320)+65536}else I&&(e-=3)>-1&&M.push(239,191,189);if(I=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function Qi(f){const e=[];for(let t=0;t<f.length;++t)e.push(f.charCodeAt(t)&255);return e}function Zi(f,e){let t,b,I;const M=[];for(let G=0;G<f.length&&!((e-=2)<0);++G)t=f.charCodeAt(G),b=t>>8,I=t%256,M.push(I),M.push(b);return M}function $r(f){return s.toByteArray(Ji(f))}function We(f,e,t,b){let I;for(I=0;I<b&&!(I+t>=e.length||I>=f.length);++I)e[I+t]=f[I];return I}function _e(f,e){return f instanceof e||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===e.name}function ot(f){return f!==f}const ea=(function(){const f="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const b=t*16;for(let I=0;I<16;++I)e[b+I]=f[t]+f[I]}return e})();function xe(f){return typeof BigInt>"u"?ta:f}function ta(){throw new Error("BigInt not supported")}})(o);const c=o.Buffer;n.Blob=o.Blob,n.BlobOptions=o.BlobOptions,n.Buffer=o.Buffer,n.File=o.File,n.FileOptions=o.FileOptions,n.INSPECT_MAX_BYTES=o.INSPECT_MAX_BYTES,n.SlowBuffer=o.SlowBuffer,n.TranscodeEncoding=o.TranscodeEncoding,n.atob=o.atob,n.btoa=o.btoa,n.constants=o.constants,n.default=c,n.isAscii=o.isAscii,n.isUtf8=o.isUtf8,n.kMaxLength=o.kMaxLength,n.kStringMaxLength=o.kStringMaxLength,n.resolveObjectURL=o.resolveObjectURL,n.transcode=o.transcode})(ft)),ft}var lt={},ct={},ht,zr;function Ii(){return zr||(zr=1,ht=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},l=Symbol("test"),u=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var m=42;o[l]=m;for(var y in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var A=Object.getOwnPropertySymbols(o);if(A.length!==1||A[0]!==l||!Object.prototype.propertyIsEnumerable.call(o,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(o,l);if(v.value!==m||v.enumerable!==!0)return!1}return!0}),ht}var dt,Jr;function rt(){if(Jr)return dt;Jr=1;var n=Ii();return dt=function(){return n()&&!!Symbol.toStringTag},dt}var pt,Qr;function Fi(){return Qr||(Qr=1,pt=Object),pt}var yt,Zr;function ya(){return Zr||(Zr=1,yt=Error),yt}var gt,en;function ga(){return en||(en=1,gt=EvalError),gt}var bt,tn;function ba(){return tn||(tn=1,bt=RangeError),bt}var mt,rn;function ma(){return rn||(rn=1,mt=ReferenceError),mt}var Et,nn;function Oi(){return nn||(nn=1,Et=SyntaxError),Et}var vt,an;function Ge(){return an||(an=1,vt=TypeError),vt}var wt,on;function Ea(){return on||(on=1,wt=URIError),wt}var _t,un;function va(){return un||(un=1,_t=Math.abs),_t}var At,sn;function wa(){return sn||(sn=1,At=Math.floor),At}var Tt,fn;function _a(){return fn||(fn=1,Tt=Math.max),Tt}var St,ln;function Aa(){return ln||(ln=1,St=Math.min),St}var Rt,cn;function Ta(){return cn||(cn=1,Rt=Math.pow),Rt}var xt,hn;function Sa(){return hn||(hn=1,xt=Math.round),xt}var It,dn;function Ra(){return dn||(dn=1,It=Number.isNaN||function(o){return o!==o}),It}var Ft,pn;function xa(){if(pn)return Ft;pn=1;var n=Ra();return Ft=function(l){return n(l)||l===0?l:l<0?-1:1},Ft}var Ot,yn;function Ia(){return yn||(yn=1,Ot=Object.getOwnPropertyDescriptor),Ot}var Bt,gn;function Me(){if(gn)return Bt;gn=1;var n=Ia();if(n)try{n([],"length")}catch{n=null}return Bt=n,Bt}var Nt,bn;function nt(){if(bn)return Nt;bn=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Nt=n,Nt}var Pt,mn;function Fa(){if(mn)return Pt;mn=1;var n=typeof Symbol<"u"&&Symbol,o=Ii();return Pt=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o()},Pt}var Ct,En;function Bi(){return En||(En=1,Ct=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ct}var Dt,vn;function Ni(){if(vn)return Dt;vn=1;var n=Fi();return Dt=n.getPrototypeOf||null,Dt}var Lt,wn;function Oa(){if(wn)return Lt;wn=1;var n="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,l=Math.max,u="[object Function]",m=function(_,B){for(var C=[],N=0;N<_.length;N+=1)C[N]=_[N];for(var P=0;P<B.length;P+=1)C[P+_.length]=B[P];return C},y=function(_,B){for(var C=[],N=B,P=0;N<_.length;N+=1,P+=1)C[P]=_[N];return C},A=function(v,_){for(var B="",C=0;C<v.length;C+=1)B+=v[C],C+1<v.length&&(B+=_);return B};return Lt=function(_){var B=this;if(typeof B!="function"||o.apply(B)!==u)throw new TypeError(n+B);for(var C=y(arguments,1),N,P=function(){if(this instanceof N){var c=B.apply(this,m(C,arguments));return Object(c)===c?c:this}return B.apply(_,m(C,arguments))},V=l(0,B.length-C.length),q=[],H=0;H<V;H++)q[H]="$"+H;if(N=Function("binder","return function ("+A(q,",")+"){ return binder.apply(this,arguments); }")(P),B.prototype){var L=function(){};L.prototype=B.prototype,N.prototype=new L,L.prototype=null}return N},Lt}var Mt,_n;function Ke(){if(_n)return Mt;_n=1;var n=Oa();return Mt=Function.prototype.bind||n,Mt}var Ut,An;function Lr(){return An||(An=1,Ut=Function.prototype.call),Ut}var jt,Tn;function Mr(){return Tn||(Tn=1,jt=Function.prototype.apply),jt}var qt,Sn;function Ba(){return Sn||(Sn=1,qt=typeof Reflect<"u"&&Reflect&&Reflect.apply),qt}var kt,Rn;function Pi(){if(Rn)return kt;Rn=1;var n=Ke(),o=Mr(),l=Lr(),u=Ba();return kt=u||n.call(l,o),kt}var Ht,xn;function Ur(){if(xn)return Ht;xn=1;var n=Ke(),o=Ge(),l=Lr(),u=Pi();return Ht=function(y){if(y.length<1||typeof y[0]!="function")throw new o("a function is required");return u(n,l,y)},Ht}var Gt,In;function Na(){if(In)return Gt;In=1;var n=Ur(),o=Me(),l;try{l=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var u=!!l&&o&&o(Object.prototype,"__proto__"),m=Object,y=m.getPrototypeOf;return Gt=u&&typeof u.get=="function"?n([u.get]):typeof y=="function"?function(v){return y(v==null?v:m(v))}:!1,Gt}var Kt,Fn;function jr(){if(Fn)return Kt;Fn=1;var n=Bi(),o=Ni(),l=Na();return Kt=n?function(m){return n(m)}:o?function(m){if(!m||typeof m!="object"&&typeof m!="function")throw new TypeError("getProto: not an object");return o(m)}:l?function(m){return l(m)}:null,Kt}var $t,On;function Ci(){if(On)return $t;On=1;var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,l=Ke();return $t=l.call(n,o),$t}var Wt,Bn;function Di(){if(Bn)return Wt;Bn=1;var n,o=Fi(),l=ya(),u=ga(),m=ba(),y=ma(),A=Oi(),v=Ge(),_=Ea(),B=va(),C=wa(),N=_a(),P=Aa(),V=Ta(),q=Sa(),H=xa(),L=Function,c=function(R){try{return L('"use strict"; return ('+R+").constructor;")()}catch{}},E=Me(),s=nt(),a=function(){throw new v},g=E?(function(){try{return arguments.callee,a}catch{try{return E(arguments,"callee").get}catch{return a}}})():a,T=Fa()(),S=jr(),F=Ni(),d=Bi(),K=Mr(),X=Lr(),x={},ee=typeof Uint8Array>"u"||!S?n:S(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":u,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?n:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":m,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?n:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):n,"%Symbol%":T?Symbol:n,"%SyntaxError%":A,"%ThrowTypeError%":g,"%TypedArray%":ee,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":K,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":F,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":N,"%Math.min%":P,"%Math.pow%":V,"%Math.round%":q,"%Math.sign%":H,"%Reflect.getPrototypeOf%":d};if(S)try{null.error}catch(R){var ie=S(S(R));re["%Error.prototype%"]=ie}var le=function R(w){var h;if(w==="%AsyncFunction%")h=c("async function () {}");else if(w==="%GeneratorFunction%")h=c("function* () {}");else if(w==="%AsyncGeneratorFunction%")h=c("async function* () {}");else if(w==="%AsyncGenerator%"){var p=R("%AsyncGeneratorFunction%");p&&(h=p.prototype)}else if(w==="%AsyncIteratorPrototype%"){var U=R("%AsyncGenerator%");U&&S&&(h=S(U.prototype))}return re[w]=h,h},Z={__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"]},ce=Ke(),oe=Ci(),ye=ce.call(X,Array.prototype.concat),ge=ce.call(K,Array.prototype.splice),D=ce.call(X,String.prototype.replace),j=ce.call(X,String.prototype.slice),$=ce.call(X,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,i=function(w){var h=j(w,0,1),p=j(w,-1);if(h==="%"&&p!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(p==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var U=[];return D(w,J,function(W,Q,Y,z){U[U.length]=Y?D(z,O,"$1"):Q||W}),U},r=function(w,h){var p=w,U;if(oe(Z,p)&&(U=Z[p],p="%"+U[0]+"%"),oe(re,p)){var W=re[p];if(W===x&&(W=le(p)),typeof W>"u"&&!h)throw new v("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:U,name:p,value:W}}throw new A("intrinsic "+w+" does not exist!")};return Wt=function(w,h){if(typeof w!="string"||w.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!="boolean")throw new v('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,w)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var p=i(w),U=p.length>0?p[0]:"",W=r("%"+U+"%",h),Q=W.name,Y=W.value,z=!1,se=W.alias;se&&(U=se[0],ge(p,ye([0,1],se)));for(var k=1,ve=!0;k<p.length;k+=1){var be=p[k],ae=j(be,0,1),he=j(be,-1);if((ae==='"'||ae==="'"||ae==="`"||he==='"'||he==="'"||he==="`")&&ae!==he)throw new A("property names with quotes must have matching quotes");if((be==="constructor"||!ve)&&(z=!0),U+="."+be,Q="%"+U+"%",oe(re,Q))Y=re[Q];else if(Y!=null){if(!(be in Y)){if(!h)throw new v("base intrinsic for "+w+" exists, but the property is not available.");return}if(E&&k+1>=p.length){var we=E(Y,be);ve=!!we,ve&&"get"in we&&!("originalValue"in we.get)?Y=we.get:Y=Y[be]}else ve=oe(Y,be),Y=Y[be];ve&&!z&&(re[Q]=Y)}}return Y},Wt}var Vt,Nn;function $e(){if(Nn)return Vt;Nn=1;var n=Di(),o=Ur(),l=o([n("%String.prototype.indexOf%")]);return Vt=function(m,y){var A=n(m,!!y);return typeof A=="function"&&l(m,".prototype.")>-1?o([A]):A},Vt}var Yt,Pn;function Pa(){if(Pn)return Yt;Pn=1;var n=rt()(),o=$e(),l=o("Object.prototype.toString"),u=function(v){return n&&v&&typeof v=="object"&&Symbol.toStringTag in v?!1:l(v)==="[object Arguments]"},m=function(v){return u(v)?!0:v!==null&&typeof v=="object"&&"length"in v&&typeof v.length=="number"&&v.length>=0&&l(v)!=="[object Array]"&&"callee"in v&&l(v.callee)==="[object Function]"},y=(function(){return u(arguments)})();return u.isLegacyArguments=m,Yt=y?u:m,Yt}var Xt,Cn;function Ca(){if(Cn)return Xt;Cn=1;var n=$e(),o=rt()(),l=Ci(),u=Me(),m;if(o){var y=n("RegExp.prototype.exec"),A={},v=function(){throw A},_={toString:v,valueOf:v};typeof Symbol.toPrimitive=="symbol"&&(_[Symbol.toPrimitive]=v),m=function(P){if(!P||typeof P!="object")return!1;var V=u(P,"lastIndex"),q=V&&l(V,"value");if(!q)return!1;try{y(P,_)}catch(H){return H===A}}}else{var B=n("Object.prototype.toString"),C="[object RegExp]";m=function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:B(P)===C}}return Xt=m,Xt}var zt,Dn;function Da(){if(Dn)return zt;Dn=1;var n=$e(),o=Ca(),l=n("RegExp.prototype.exec"),u=Ge();return zt=function(y){if(!o(y))throw new u("`regex` must be a RegExp");return function(v){return l(y,v)!==null}},zt}var Jt,Ln;function La(){if(Ln)return Jt;Ln=1;var n=$e(),o=Da(),l=o(/^\s*(?:function)?\*/),u=rt()(),m=jr(),y=n("Object.prototype.toString"),A=n("Function.prototype.toString"),v=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch{}},_;return Jt=function(C){if(typeof C!="function")return!1;if(l(A(C)))return!0;if(!u){var N=y(C);return N==="[object GeneratorFunction]"}if(!m)return!1;if(typeof _>"u"){var P=v();_=P?m(P):!1}return m(C)===_},Jt}var Qt,Mn;function Ma(){if(Mn)return Qt;Mn=1;var n=Function.prototype.toString,o=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,u;if(typeof o=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw u}}),u={},o(function(){throw 42},null,l)}catch(E){E!==u&&(o=null)}else o=null;var m=/^\s*class\b/,y=function(s){try{var a=n.call(s);return m.test(a)}catch{return!1}},A=function(s){try{return y(s)?!1:(n.call(s),!0)}catch{return!1}},v=Object.prototype.toString,_="[object Object]",B="[object Function]",C="[object GeneratorFunction]",N="[object HTMLAllCollection]",P="[object HTML document.all class]",V="[object HTMLCollection]",q=typeof Symbol=="function"&&!!Symbol.toStringTag,H=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var c=document.all;v.call(c)===v.call(document.all)&&(L=function(s){if((H||!s)&&(typeof s>"u"||typeof s=="object"))try{var a=v.call(s);return(a===N||a===P||a===V||a===_)&&s("")==null}catch{}return!1})}return Qt=o?function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{o(s,null,l)}catch(a){if(a!==u)return!1}return!y(s)&&A(s)}:function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(q)return A(s);if(y(s))return!1;var a=v.call(s);return a!==B&&a!==C&&!/^\[object HTML/.test(a)?!1:A(s)},Qt}var Zt,Un;function Ua(){if(Un)return Zt;Un=1;var n=Ma(),o=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u=function(_,B,C){for(var N=0,P=_.length;N<P;N++)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))},m=function(_,B,C){for(var N=0,P=_.length;N<P;N++)C==null?B(_.charAt(N),N,_):B.call(C,_.charAt(N),N,_)},y=function(_,B,C){for(var N in _)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))};function A(v){return o.call(v)==="[object Array]"}return Zt=function(_,B,C){if(!n(B))throw new TypeError("iterator must be a function");var N;arguments.length>=3&&(N=C),A(_)?u(_,B,N):typeof _=="string"?m(_,B,N):y(_,B,N)},Zt}var er,jn;function ja(){return jn||(jn=1,er=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),er}var tr,qn;function qa(){if(qn)return tr;qn=1;var n=ja(),o=typeof globalThis>"u"?me.commonjsGlobal:globalThis;return tr=function(){for(var u=[],m=0;m<n.length;m++)typeof o[n[m]]=="function"&&(u[u.length]=n[m]);return u},tr}var rr={exports:{}},nr,kn;function ka(){if(kn)return nr;kn=1;var n=nt(),o=Oi(),l=Ge(),u=Me();return nr=function(y,A,v){if(!y||typeof y!="object"&&typeof y!="function")throw new l("`obj` must be an object or a function`");if(typeof A!="string"&&typeof A!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,B=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,N=arguments.length>6?arguments[6]:!1,P=!!u&&u(y,A);if(n)n(y,A,{configurable:C===null&&P?P.configurable:!C,enumerable:_===null&&P?P.enumerable:!_,value:v,writable:B===null&&P?P.writable:!B});else if(N||!_&&!B&&!C)y[A]=v;else throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nr}var ir,Hn;function Ha(){if(Hn)return ir;Hn=1;var n=nt(),o=function(){return!!n};return o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},ir=o,ir}var ar,Gn;function Ga(){if(Gn)return ar;Gn=1;var n=Di(),o=ka(),l=Ha()(),u=Me(),m=Ge(),y=n("%Math.floor%");return ar=function(v,_){if(typeof v!="function")throw new m("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||y(_)!==_)throw new m("`length` must be a positive 32-bit integer");var B=arguments.length>2&&!!arguments[2],C=!0,N=!0;if("length"in v&&u){var P=u(v,"length");P&&!P.configurable&&(C=!1),P&&!P.writable&&(N=!1)}return(C||N||!B)&&(l?o(v,"length",_,!0,!0):o(v,"length",_)),v},ar}var or,Kn;function Ka(){if(Kn)return or;Kn=1;var n=Ke(),o=Mr(),l=Pi();return or=function(){return l(n,o,arguments)},or}var $n;function $a(){return $n||($n=1,(function(n){var o=Ga(),l=nt(),u=Ur(),m=Ka();n.exports=function(A){var v=u(arguments),_=A.length-(arguments.length-1);return o(v,1+(_>0?_:0),!0)},l?l(n.exports,"apply",{value:m}):n.exports.apply=m})(rr)),rr.exports}var ur,Wn;function Li(){if(Wn)return ur;Wn=1;var n=Ua(),o=qa(),l=$a(),u=$e(),m=Me(),y=jr(),A=u("Object.prototype.toString"),v=rt()(),_=typeof globalThis>"u"?me.commonjsGlobal:globalThis,B=o(),C=u("String.prototype.slice"),N=u("Array.prototype.indexOf",!0)||function(L,c){for(var E=0;E<L.length;E+=1)if(L[E]===c)return E;return-1},P={__proto__:null};v&&m&&y?n(B,function(H){var L=new _[H];if(Symbol.toStringTag in L&&y){var c=y(L),E=m(c,Symbol.toStringTag);if(!E&&c){var s=y(c);E=m(s,Symbol.toStringTag)}P["$"+H]=l(E.get)}}):n(B,function(H){var L=new _[H],c=L.slice||L.set;c&&(P["$"+H]=l(c))});var V=function(L){var c=!1;return n(P,function(E,s){if(!c)try{"$"+E(L)===s&&(c=C(s,1))}catch{}}),c},q=function(L){var c=!1;return n(P,function(E,s){if(!c)try{E(L),c=C(s,1)}catch{}}),c};return ur=function(L){if(!L||typeof L!="object")return!1;if(!v){var c=C(A(L),8,-1);return N(B,c)>-1?c:c!=="Object"?!1:q(L)}return m?V(L):null},ur}var sr,Vn;function Wa(){if(Vn)return sr;Vn=1;var n=Li();return sr=function(l){return!!n(l)},sr}var Yn;function Va(){return Yn||(Yn=1,(function(n){var o=Pa(),l=La(),u=Li(),m=Wa();function y(k){return k.call.bind(k)}var A=typeof BigInt<"u",v=typeof Symbol<"u",_=y(Object.prototype.toString),B=y(Number.prototype.valueOf),C=y(String.prototype.valueOf),N=y(Boolean.prototype.valueOf);if(A)var P=y(BigInt.prototype.valueOf);if(v)var V=y(Symbol.prototype.valueOf);function q(k,ve){if(typeof k!="object")return!1;try{return ve(k),!0}catch{return!1}}n.isArgumentsObject=o,n.isGeneratorFunction=l,n.isTypedArray=m;function H(k){return typeof Promise<"u"&&k instanceof Promise||k!==null&&typeof k=="object"&&typeof k.then=="function"&&typeof k.catch=="function"}n.isPromise=H;function L(k){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(k):m(k)||j(k)}n.isArrayBufferView=L;function c(k){return u(k)==="Uint8Array"}n.isUint8Array=c;function E(k){return u(k)==="Uint8ClampedArray"}n.isUint8ClampedArray=E;function s(k){return u(k)==="Uint16Array"}n.isUint16Array=s;function a(k){return u(k)==="Uint32Array"}n.isUint32Array=a;function g(k){return u(k)==="Int8Array"}n.isInt8Array=g;function T(k){return u(k)==="Int16Array"}n.isInt16Array=T;function S(k){return u(k)==="Int32Array"}n.isInt32Array=S;function F(k){return u(k)==="Float32Array"}n.isFloat32Array=F;function d(k){return u(k)==="Float64Array"}n.isFloat64Array=d;function K(k){return u(k)==="BigInt64Array"}n.isBigInt64Array=K;function X(k){return u(k)==="BigUint64Array"}n.isBigUint64Array=X;function x(k){return _(k)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function ee(k){return typeof Map>"u"?!1:x.working?x(k):k instanceof Map}n.isMap=ee;function re(k){return _(k)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ie(k){return typeof Set>"u"?!1:re.working?re(k):k instanceof Set}n.isSet=ie;function le(k){return _(k)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Z(k){return typeof WeakMap>"u"?!1:le.working?le(k):k instanceof WeakMap}n.isWeakMap=Z;function ce(k){return _(k)==="[object WeakSet]"}ce.working=typeof WeakSet<"u"&&ce(new WeakSet);function oe(k){return ce(k)}n.isWeakSet=oe;function ye(k){return _(k)==="[object ArrayBuffer]"}ye.working=typeof ArrayBuffer<"u"&&ye(new ArrayBuffer);function ge(k){return typeof ArrayBuffer>"u"?!1:ye.working?ye(k):k instanceof ArrayBuffer}n.isArrayBuffer=ge;function D(k){return _(k)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function j(k){return typeof DataView>"u"?!1:D.working?D(k):k instanceof DataView}n.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(k){return _(k)==="[object SharedArrayBuffer]"}function O(k){return typeof $>"u"?!1:(typeof J.working>"u"&&(J.working=J(new $)),J.working?J(k):k instanceof $)}n.isSharedArrayBuffer=O;function i(k){return _(k)==="[object AsyncFunction]"}n.isAsyncFunction=i;function r(k){return _(k)==="[object Map Iterator]"}n.isMapIterator=r;function R(k){return _(k)==="[object Set Iterator]"}n.isSetIterator=R;function w(k){return _(k)==="[object Generator]"}n.isGeneratorObject=w;function h(k){return _(k)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=h;function p(k){return q(k,B)}n.isNumberObject=p;function U(k){return q(k,C)}n.isStringObject=U;function W(k){return q(k,N)}n.isBooleanObject=W;function Q(k){return A&&q(k,P)}n.isBigIntObject=Q;function Y(k){return v&&q(k,V)}n.isSymbolObject=Y;function z(k){return p(k)||U(k)||W(k)||Q(k)||Y(k)}n.isBoxedPrimitive=z;function se(k){return typeof Uint8Array<"u"&&(ge(k)||O(k))}n.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(k){Object.defineProperty(n,k,{enumerable:!1,value:function(){throw new Error(k+" is not supported in userland")}})})})(ct)),ct}var fr,Xn;function Ya(){return Xn||(Xn=1,fr=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}),fr}var zn;function Mi(){return zn||(zn=1,(function(n){var o=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),J={},O=0;O<$.length;O++)J[$[O]]=Object.getOwnPropertyDescriptor(j,$[O]);return J},l=/%[sdj%]/g;n.format=function(D){if(!g(D)){for(var j=[],$=0;$<arguments.length;$++)j.push(A(arguments[$]));return j.join(" ")}for(var $=1,J=arguments,O=J.length,i=String(D).replace(l,function(R){if(R==="%%")return"%";if($>=O)return R;switch(R){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch{return"[Circular]"}default:return R}}),r=J[$];$<O;r=J[++$])E(r)||!d(r)?i+=" "+r:i+=" "+A(r);return i},n.deprecate=function(D,j){if(typeof te.process$1<"u"&&te.process$1.noDeprecation===!0)return D;if(typeof te.process$1>"u")return function(){return n.deprecate(D,j).apply(this,arguments)};var $=!1;function J(){if(!$){if(te.process$1.throwDeprecation)throw new Error(j);te.process$1.traceDeprecation?console.trace(j):console.error(j),$=!0}return D.apply(this,arguments)}return J};var u={},m=/^$/;if(te.process$1.env.NODE_DEBUG){var y=te.process$1.env.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),m=new RegExp("^"+y+"$","i")}n.debuglog=function(D){if(D=D.toUpperCase(),!u[D])if(m.test(D)){var j=te.process$1.pid;u[D]=function(){var $=n.format.apply(n,arguments);console.error("%s %d: %s",D,j,$)}}else u[D]=function(){};return u[D]};function A(D,j){var $={seen:[],stylize:_};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),c(j)?$.showHidden=j:j&&n._extend($,j),S($.showHidden)&&($.showHidden=!1),S($.depth)&&($.depth=2),S($.colors)&&($.colors=!1),S($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=v),C($,D,$.depth)}n.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 v(D,j){var $=A.styles[j];return $?"\x1B["+A.colors[$][0]+"m"+D+"\x1B["+A.colors[$][1]+"m":D}function _(D,j){return D}function B(D){var j={};return D.forEach(function($,J){j[$]=!0}),j}function C(D,j,$){if(D.customInspect&&j&&x(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var J=j.inspect($,D);return g(J)||(J=C(D,J,$)),J}var O=N(D,j);if(O)return O;var i=Object.keys(j),r=B(i);if(D.showHidden&&(i=Object.getOwnPropertyNames(j)),X(j)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P(j);if(i.length===0){if(x(j)){var R=j.name?": "+j.name:"";return D.stylize("[Function"+R+"]","special")}if(F(j))return D.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return D.stylize(Date.prototype.toString.call(j),"date");if(X(j))return P(j)}var w="",h=!1,p=["{","}"];if(L(j)&&(h=!0,p=["[","]"]),x(j)){var U=j.name?": "+j.name:"";w=" [Function"+U+"]"}if(F(j)&&(w=" "+RegExp.prototype.toString.call(j)),K(j)&&(w=" "+Date.prototype.toUTCString.call(j)),X(j)&&(w=" "+P(j)),i.length===0&&(!h||j.length==0))return p[0]+w+p[1];if($<0)return F(j)?D.stylize(RegExp.prototype.toString.call(j),"regexp"):D.stylize("[Object]","special");D.seen.push(j);var W;return h?W=V(D,j,$,r,i):W=i.map(function(Q){return q(D,j,$,r,Q,h)}),D.seen.pop(),H(W,w,p)}function N(D,j){if(S(j))return D.stylize("undefined","undefined");if(g(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize($,"string")}if(a(j))return D.stylize(""+j,"number");if(c(j))return D.stylize(""+j,"boolean");if(E(j))return D.stylize("null","null")}function P(D){return"["+Error.prototype.toString.call(D)+"]"}function V(D,j,$,J,O){for(var i=[],r=0,R=j.length;r<R;++r)ce(j,String(r))?i.push(q(D,j,$,J,String(r),!0)):i.push("");return O.forEach(function(w){w.match(/^\d+$/)||i.push(q(D,j,$,J,w,!0))}),i}function q(D,j,$,J,O,i){var r,R,w;if(w=Object.getOwnPropertyDescriptor(j,O)||{value:j[O]},w.get?w.set?R=D.stylize("[Getter/Setter]","special"):R=D.stylize("[Getter]","special"):w.set&&(R=D.stylize("[Setter]","special")),ce(J,O)||(r="["+O+"]"),R||(D.seen.indexOf(w.value)<0?(E($)?R=C(D,w.value,null):R=C(D,w.value,$-1),R.indexOf(`
7
7
  `)>-1&&(i?R=R.split(`
8
8
  `).map(function(h){return" "+h}).join(`
9
9
  `).slice(2):R=`
10
10
  `+R.split(`
11
11
  `).map(function(h){return" "+h}).join(`
12
- `))):R=D.stylize("[Circular]","special")),S(n)){if(i&&O.match(/^\d+$/))return R;n=JSON.stringify(""+O),n.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.slice(1,-1),n=D.stylize(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n=D.stylize(n,"string"))}return n+": "+R}function G(D,j,$){var J=D.reduce(function(O,i){return i.indexOf(`
12
+ `))):R=D.stylize("[Circular]","special")),S(r)){if(i&&O.match(/^\d+$/))return R;r=JSON.stringify(""+O),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.slice(1,-1),r=D.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=D.stylize(r,"string"))}return r+": "+R}function H(D,j,$){var J=D.reduce(function(O,i){return i.indexOf(`
13
13
  `)>=0,O+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?$[0]+(j===""?"":j+`
14
14
  `)+" "+D.join(`,
15
- `)+" "+$[1]:$[0]+j+" "+D.join(", ")+" "+$[1]}r.types=Za();function L(D){return Array.isArray(D)}r.isArray=L;function c(D){return typeof D=="boolean"}r.isBoolean=c;function m(D){return D===null}r.isNull=m;function s(D){return D==null}r.isNullOrUndefined=s;function o(D){return typeof D=="number"}r.isNumber=o;function g(D){return typeof D=="string"}r.isString=g;function T(D){return typeof D=="symbol"}r.isSymbol=T;function S(D){return D===void 0}r.isUndefined=S;function F(D){return d(D)&&re(D)==="[object RegExp]"}r.isRegExp=F,r.types.isRegExp=F;function d(D){return typeof D=="object"&&D!==null}r.isObject=d;function K(D){return d(D)&&re(D)==="[object Date]"}r.isDate=K,r.types.isDate=K;function X(D){return d(D)&&(re(D)==="[object Error]"||D instanceof Error)}r.isError=X,r.types.isNativeError=X;function x(D){return typeof D=="function"}r.isFunction=x;function ee(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}r.isPrimitive=ee,r.isBuffer=eo();function re(D){return Object.prototype.toString.call(D)}function ie(D){return D<10?"0"+D.toString(10):D.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z(){var D=new Date,j=[ie(D.getHours()),ie(D.getMinutes()),ie(D.getSeconds())].join(":");return[D.getDate(),le[D.getMonth()],j].join(" ")}r.log=function(){console.log("%s - %s",Z(),r.format.apply(r,arguments))},r.inherits=Be(),r._extend=function(D,j){if(!j||!d(j))return D;for(var $=Object.keys(j),J=$.length;J--;)D[$[J]]=j[$[J]];return D};function ce(D,j){return Object.prototype.hasOwnProperty.call(D,j)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;r.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&j[oe]){var $=j[oe];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var J,O,i=new Promise(function(v,h){J=v,O=h}),n=[],R=0;R<arguments.length;R++)n.push(arguments[R]);n.push(function(v,h){v?O(v):J(h)});try{j.apply(this,n)}catch(v){O(v)}return i}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),oe&&Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,a(j))},r.promisify.custom=oe;function ye(D,j){if(!D){var $=new Error("Promise was rejected with a falsy value");$.reason=D,D=$}return j(D)}function ge(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],J=0;J<arguments.length;J++)$.push(arguments[J]);var O=$.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var i=this,n=function(){return O.apply(i,arguments)};D.apply(this,$).then(function(R){te.process$1.nextTick(n.bind(null,null,R))},function(R){te.process$1.nextTick(ye.bind(null,R,n))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Object.defineProperties(j,a(D)),j}r.callbackify=ge}(ct)),ct}var cr,Zn;function to(){if(Zn)return cr;Zn=1;function r(q,G){var L=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);G&&(c=c.filter(function(m){return Object.getOwnPropertyDescriptor(q,m).enumerable})),L.push.apply(L,c)}return L}function a(q){for(var G=1;G<arguments.length;G++){var L=arguments[G]!=null?arguments[G]:{};G%2?r(Object(L),!0).forEach(function(c){l(q,c,L[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(L)):r(Object(L)).forEach(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(L,c))})}return q}function l(q,G,L){return G=A(G),G in q?Object.defineProperty(q,G,{value:L,enumerable:!0,configurable:!0,writable:!0}):q[G]=L,q}function u(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")}function w(q,G){for(var L=0;L<G.length;L++){var c=G[L];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(q,A(c.key),c)}}function y(q,G,L){return G&&w(q.prototype,G),Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var G=E(q,"string");return typeof G=="symbol"?G:String(G)}function E(q,G){if(typeof q!="object"||q===null)return q;var L=q[Symbol.toPrimitive];if(L!==void 0){var c=L.call(q,G);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var _=rt(),B=_.Buffer,C=ji(),N=C.inspect,P=N&&N.custom||"inspect";function V(q,G,L){B.prototype.copy.call(q,G,L)}return cr=function(){function q(){u(this,q),this.head=null,this.tail=null,this.length=0}return y(q,[{key:"push",value:function(L){var c={data:L,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(L){var c={data:L,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var c=this.head,m=""+c.data;c=c.next;)m+=L+c.data;return m}},{key:"concat",value:function(L){if(this.length===0)return B.alloc(0);for(var c=B.allocUnsafe(L>>>0),m=this.head,s=0;m;)V(m.data,c,s),s+=m.data.length,m=m.next;return c}},{key:"consume",value:function(L,c){var m;return L<this.head.data.length?(m=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?m=this.shift():m=c?this._getString(L):this._getBuffer(L),m}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var c=this.head,m=1,s=c.data;for(L-=s.length;c=c.next;){var o=c.data,g=L>o.length?o.length:L;if(g===o.length?s+=o:s+=o.slice(0,L),L-=g,L===0){g===o.length?(++m,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=o.slice(g));break}++m}return this.length-=m,s}},{key:"_getBuffer",value:function(L){var c=B.allocUnsafe(L),m=this.head,s=1;for(m.data.copy(c),L-=m.data.length;m=m.next;){var o=m.data,g=L>o.length?o.length:L;if(o.copy(c,c.length-L,0,g),L-=g,L===0){g===o.length?(++s,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=o.slice(g));break}++s}return this.length-=s,c}},{key:P,value:function(L,c){return N(this,a(a({},c),{},{depth:0,customInspect:!1}))}}]),q}(),cr}var hr,ei;function qi(){if(ei)return hr;ei=1;function r(A,E){var _=this,B=this._readableState&&this._readableState.destroyed,C=this._writableState&&this._writableState.destroyed;return B||C?(E?E(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.process$1.nextTick(w,this,A)):te.process$1.nextTick(w,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(N){!E&&N?_._writableState?_._writableState.errorEmitted?te.process$1.nextTick(l,_):(_._writableState.errorEmitted=!0,te.process$1.nextTick(a,_,N)):te.process$1.nextTick(a,_,N):E?(te.process$1.nextTick(l,_),E(N)):te.process$1.nextTick(l,_)}),this)}function a(A,E){w(A,E),l(A)}function l(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function u(){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 w(A,E){A.emit("error",E)}function y(A,E){var _=A._readableState,B=A._writableState;_&&_.autoDestroy||B&&B.autoDestroy?A.destroy(E):A.emit("error",E)}return hr={destroy:r,undestroy:u,errorOrDestroy:y},hr}var dr={},ti;function je(){if(ti)return dr;ti=1;function r(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,E.__proto__=_}var a={};function l(E,_,B){B||(B=Error);function C(P,V,q){return typeof _=="string"?_:_(P,V,q)}var N=function(P){r(V,P);function V(q,G,L){return P.call(this,C(q,G,L))||this}return V}(B);N.prototype.name=B.name,N.prototype.code=E,a[E]=N}function u(E,_){if(Array.isArray(E)){var B=E.length;return E=E.map(function(C){return String(C)}),B>2?"one of ".concat(_," ").concat(E.slice(0,B-1).join(", "),", or ")+E[B-1]:B===2?"one of ".concat(_," ").concat(E[0]," or ").concat(E[1]):"of ".concat(_," ").concat(E[0])}else return"of ".concat(_," ").concat(String(E))}function w(E,_,B){return E.substr(0,_.length)===_}function y(E,_,B){return(B===void 0||B>E.length)&&(B=E.length),E.substring(B-_.length,B)===_}function A(E,_,B){return typeof B!="number"&&(B=0),B+_.length>E.length?!1:E.indexOf(_,B)!==-1}return l("ERR_INVALID_OPT_VALUE",function(E,_){return'The value "'+_+'" is invalid for option "'+E+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(E,_,B){var C;typeof _=="string"&&w(_,"not ")?(C="must not be",_=_.replace(/^not /,"")):C="must be";var N;if(y(E," argument"))N="The ".concat(E," ").concat(C," ").concat(u(_,"type"));else{var P=A(E,".")?"property":"argument";N='The "'.concat(E,'" ').concat(P," ").concat(C," ").concat(u(_,"type"))}return N+=". Received type ".concat(typeof B),N},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(E){return"The "+E+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(E){return"Cannot call "+E+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(E){return"Unknown encoding: "+E},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),dr.codes=a,dr}var pr,ri;function ki(){if(ri)return pr;ri=1;var r=je().codes.ERR_INVALID_OPT_VALUE;function a(u,w,y){return u.highWaterMark!=null?u.highWaterMark:w?u[y]:null}function l(u,w,y,A){var E=a(w,A,y);if(E!=null){if(!(isFinite(E)&&Math.floor(E)===E)||E<0){var _=A?y:"highWaterMark";throw new r(_,E)}return Math.floor(E)}return u.objectMode?16:16*1024}return pr={getHighWaterMark:l},pr}var yr,ni;function ro(){if(ni)return yr;ni=1,yr=r;function r(l,u){if(a("noDeprecation"))return l;var w=!1;function y(){if(!w){if(a("throwDeprecation"))throw new Error(u);a("traceDeprecation")?console.trace(u):console.warn(u),w=!0}return l.apply(this,arguments)}return y}function a(l){try{if(!me.commonjsGlobal.localStorage)return!1}catch{return!1}var u=me.commonjsGlobal.localStorage[l];return u==null?!1:String(u).toLowerCase()==="true"}return yr}var gr,ii;function Gi(){if(ii)return gr;ii=1,gr=F;function r(O){var i=this;this.next=null,this.entry=null,this.finish=function(){J(i,O)}}var a;F.WritableState=T;var l={deprecate:ro()},u=Fi(),w=rt().Buffer,y=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(O){return w.from(O)}function E(O){return w.isBuffer(O)||O instanceof y}var _=qi(),B=ki(),C=B.getHighWaterMark,N=je().codes,P=N.ERR_INVALID_ARG_TYPE,V=N.ERR_METHOD_NOT_IMPLEMENTED,q=N.ERR_MULTIPLE_CALLBACK,G=N.ERR_STREAM_CANNOT_PIPE,L=N.ERR_STREAM_DESTROYED,c=N.ERR_STREAM_NULL_VALUES,m=N.ERR_STREAM_WRITE_AFTER_END,s=N.ERR_UNKNOWN_ENCODING,o=_.errorOrDestroy;Be()(F,u);function g(){}function T(O,i,n){a=a||Me(),O=O||{},typeof n!="boolean"&&(n=i instanceof a),this.objectMode=!!O.objectMode,n&&(this.objectMode=this.objectMode||!!O.writableObjectMode),this.highWaterMark=C(this,O,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=O.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(v){le(i,v)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}T.prototype.getBuffer=function(){for(var i=this.bufferedRequest,n=[];i;)n.push(i),i=i.next;return n},function(){try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(i){return S.call(this,i)?!0:this!==F?!1:i&&i._writableState instanceof T}})):S=function(i){return i instanceof this};function F(O){a=a||Me();var i=this instanceof a;if(!i&&!S.call(F,this))return new F(O);this._writableState=new T(O,this,i),this.writable=!0,O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final)),u.call(this)}F.prototype.pipe=function(){o(this,new G)};function d(O,i){var n=new m;o(O,n),te.process$1.nextTick(i,n)}function K(O,i,n,R){var v;return n===null?v=new c:typeof n!="string"&&!i.objectMode&&(v=new P("chunk",["string","Buffer"],n)),v?(o(O,v),te.process$1.nextTick(R,v),!1):!0}F.prototype.write=function(O,i,n){var R=this._writableState,v=!1,h=!R.objectMode&&E(O);return h&&!w.isBuffer(O)&&(O=A(O)),typeof i=="function"&&(n=i,i=null),h?i="buffer":i||(i=R.defaultEncoding),typeof n!="function"&&(n=g),R.ending?d(this,n):(h||K(this,R,O,n))&&(R.pendingcb++,v=x(this,R,h,O,i,n)),v},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var O=this._writableState;O.corked&&(O.corked--,!O.writing&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&oe(this,O))},F.prototype.setDefaultEncoding=function(i){if(typeof i=="string"&&(i=i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((i+"").toLowerCase())>-1))throw new s(i);return this._writableState.defaultEncoding=i,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(O,i,n){return!O.objectMode&&O.decodeStrings!==!1&&typeof i=="string"&&(i=w.from(i,n)),i}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(O,i,n,R,v,h){if(!n){var p=X(i,R,v);R!==p&&(n=!0,v="buffer",R=p)}var U=i.objectMode?1:R.length;i.length+=U;var W=i.length<i.highWaterMark;if(W||(i.needDrain=!0),i.writing||i.corked){var Q=i.lastBufferedRequest;i.lastBufferedRequest={chunk:R,encoding:v,isBuf:n,callback:h,next:null},Q?Q.next=i.lastBufferedRequest:i.bufferedRequest=i.lastBufferedRequest,i.bufferedRequestCount+=1}else ee(O,i,!1,U,R,v,h);return W}function ee(O,i,n,R,v,h,p){i.writelen=R,i.writecb=p,i.writing=!0,i.sync=!0,i.destroyed?i.onwrite(new L("write")):n?O._writev(v,i.onwrite):O._write(v,h,i.onwrite),i.sync=!1}function re(O,i,n,R,v){--i.pendingcb,n?(te.process$1.nextTick(v,R),te.process$1.nextTick(j,O,i),O._writableState.errorEmitted=!0,o(O,R)):(v(R),O._writableState.errorEmitted=!0,o(O,R),j(O,i))}function ie(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}function le(O,i){var n=O._writableState,R=n.sync,v=n.writecb;if(typeof v!="function")throw new q;if(ie(n),i)re(O,n,R,i,v);else{var h=ye(n)||O.destroyed;!h&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&oe(O,n),R?te.process$1.nextTick(Z,O,n,h,v):Z(O,n,h,v)}}function Z(O,i,n,R){n||ce(O,i),i.pendingcb--,R(),j(O,i)}function ce(O,i){i.length===0&&i.needDrain&&(i.needDrain=!1,O.emit("drain"))}function oe(O,i){i.bufferProcessing=!0;var n=i.bufferedRequest;if(O._writev&&n&&n.next){var R=i.bufferedRequestCount,v=new Array(R),h=i.corkedRequestsFree;h.entry=n;for(var p=0,U=!0;n;)v[p]=n,n.isBuf||(U=!1),n=n.next,p+=1;v.allBuffers=U,ee(O,i,!0,i.length,v,"",h.finish),i.pendingcb++,i.lastBufferedRequest=null,h.next?(i.corkedRequestsFree=h.next,h.next=null):i.corkedRequestsFree=new r(i),i.bufferedRequestCount=0}else{for(;n;){var W=n.chunk,Q=n.encoding,Y=n.callback,z=i.objectMode?1:W.length;if(ee(O,i,!1,z,W,Q,Y),n=n.next,i.bufferedRequestCount--,i.writing)break}n===null&&(i.lastBufferedRequest=null)}i.bufferedRequest=n,i.bufferProcessing=!1}F.prototype._write=function(O,i,n){n(new V("_write()"))},F.prototype._writev=null,F.prototype.end=function(O,i,n){var R=this._writableState;return typeof O=="function"?(n=O,O=null,i=null):typeof i=="function"&&(n=i,i=null),O!=null&&this.write(O,i),R.corked&&(R.corked=1,this.uncork()),R.ending||$(this,R,n),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ye(O){return O.ending&&O.length===0&&O.bufferedRequest===null&&!O.finished&&!O.writing}function ge(O,i){O._final(function(n){i.pendingcb--,n&&o(O,n),i.prefinished=!0,O.emit("prefinish"),j(O,i)})}function D(O,i){!i.prefinished&&!i.finalCalled&&(typeof O._final=="function"&&!i.destroyed?(i.pendingcb++,i.finalCalled=!0,te.process$1.nextTick(ge,O,i)):(i.prefinished=!0,O.emit("prefinish")))}function j(O,i){var n=ye(i);if(n&&(D(O,i),i.pendingcb===0&&(i.finished=!0,O.emit("finish"),i.autoDestroy))){var R=O._readableState;(!R||R.autoDestroy&&R.endEmitted)&&O.destroy()}return n}function $(O,i,n){i.ending=!0,j(O,i),n&&(i.finished?te.process$1.nextTick(n):O.once("finish",n)),i.ended=!0,O.writable=!1}function J(O,i,n){var R=O.entry;for(O.entry=null;R;){var v=R.callback;i.pendingcb--,v(n),R=R.next}i.corkedRequestsFree.next=O}return Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(i){this._writableState&&(this._writableState.destroyed=i)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(O,i){i(O)},gr}var br,ai;function Me(){if(ai)return br;ai=1;var r=Object.keys||function(B){var C=[];for(var N in B)C.push(N);return C};br=A;var a=Hi(),l=Gi();Be()(A,a);for(var u=r(l.prototype),w=0;w<u.length;w++){var y=u[w];A.prototype[y]||(A.prototype[y]=l.prototype[y])}function A(B){if(!(this instanceof A))return new A(B);a.call(this,B),l.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",E)))}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 E(){this._writableState.ended||te.process$1.nextTick(_,this)}function _(B){B.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(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),br}var mr={},ze={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var oi;function no(){return oi||(oi=1,function(r,a){var l=rt(),u=l.Buffer;function w(A,E){for(var _ in A)E[_]=A[_]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?r.exports=l:(w(l,a),a.Buffer=y);function y(A,E,_){return u(A,E,_)}y.prototype=Object.create(u.prototype),w(u,y),y.from=function(A,E,_){if(typeof A=="number")throw new TypeError("Argument must not be a number");return u(A,E,_)},y.alloc=function(A,E,_){if(typeof A!="number")throw new TypeError("Argument must be a number");var B=u(A);return E!==void 0?typeof _=="string"?B.fill(E,_):B.fill(E):B.fill(0),B},y.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return u(A)},y.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(A)}}(ze,ze.exports)),ze.exports}var ui;function Cr(){if(ui)return mr;ui=1;var r=no().Buffer,a=r.isEncoding||function(c){switch(c=""+c,c&&c.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 l(c){if(!c)return"utf8";for(var m;;)switch(c){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 c;default:if(m)return;c=(""+c).toLowerCase(),m=!0}}function u(c){var m=l(c);if(typeof m!="string"&&(r.isEncoding===a||!a(c)))throw new Error("Unknown encoding: "+c);return m||c}mr.StringDecoder=w;function w(c){this.encoding=u(c);var m;switch(this.encoding){case"utf16le":this.text=N,this.end=P,m=4;break;case"utf8":this.fillLast=_,m=4;break;case"base64":this.text=V,this.end=q,m=3;break;default:this.write=G,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(m)}w.prototype.write=function(c){if(c.length===0)return"";var m,s;if(this.lastNeed){if(m=this.fillLast(c),m===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<c.length?m?m+this.text(c,s):this.text(c,s):m||""},w.prototype.end=C,w.prototype.text=B,w.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length};function y(c){return c<=127?0:c>>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function A(c,m,s){var o=m.length-1;if(o<s)return 0;var g=y(m[o]);return g>=0?(g>0&&(c.lastNeed=g-1),g):--o<s||g===-2?0:(g=y(m[o]),g>=0?(g>0&&(c.lastNeed=g-2),g):--o<s||g===-2?0:(g=y(m[o]),g>=0?(g>0&&(g===2?g=0:c.lastNeed=g-3),g):0))}function E(c,m,s){if((m[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return c.lastNeed=2,"�"}}function _(c){var m=this.lastTotal-this.lastNeed,s=E(this,c);if(s!==void 0)return s;if(this.lastNeed<=c.length)return c.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,m,0,c.length),this.lastNeed-=c.length}function B(c,m){var s=A(this,c,m);if(!this.lastNeed)return c.toString("utf8",m);this.lastTotal=s;var o=c.length-(s-this.lastNeed);return c.copy(this.lastChar,0,o),c.toString("utf8",m,o)}function C(c){var m=c&&c.length?this.write(c):"";return this.lastNeed?m+"�":m}function N(c,m){if((c.length-m)%2===0){var s=c.toString("utf16le",m);if(s){var o=s.charCodeAt(s.length-1);if(o>=55296&&o<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",m,c.length-1)}function P(c){var m=c&&c.length?this.write(c):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,s)}return m}function V(c,m){var s=(c.length-m)%3;return s===0?c.toString("base64",m):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",m,c.length-s))}function q(c){var m=c&&c.length?this.write(c):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function G(c){return c.toString(this.encoding)}function L(c){return c&&c.length?this.write(c):""}return mr}var Er,si;function kr(){if(si)return Er;si=1;var r=je().codes.ERR_STREAM_PREMATURE_CLOSE;function a(y){var A=!1;return function(){if(!A){A=!0;for(var E=arguments.length,_=new Array(E),B=0;B<E;B++)_[B]=arguments[B];y.apply(this,_)}}}function l(){}function u(y){return y.setHeader&&typeof y.abort=="function"}function w(y,A,E){if(typeof A=="function")return w(y,null,A);A||(A={}),E=a(E||l);var _=A.readable||A.readable!==!1&&y.readable,B=A.writable||A.writable!==!1&&y.writable,C=function(){y.writable||P()},N=y._writableState&&y._writableState.finished,P=function(){B=!1,N=!0,_||E.call(y)},V=y._readableState&&y._readableState.endEmitted,q=function(){_=!1,V=!0,B||E.call(y)},G=function(s){E.call(y,s)},L=function(){var s;if(_&&!V)return(!y._readableState||!y._readableState.ended)&&(s=new r),E.call(y,s);if(B&&!N)return(!y._writableState||!y._writableState.ended)&&(s=new r),E.call(y,s)},c=function(){y.req.on("finish",P)};return u(y)?(y.on("complete",P),y.on("abort",L),y.req?c():y.on("request",c)):B&&!y._writableState&&(y.on("end",C),y.on("close",C)),y.on("end",q),y.on("finish",P),A.error!==!1&&y.on("error",G),y.on("close",L),function(){y.removeListener("complete",P),y.removeListener("abort",L),y.removeListener("request",c),y.req&&y.req.removeListener("finish",P),y.removeListener("end",C),y.removeListener("close",C),y.removeListener("finish",P),y.removeListener("end",q),y.removeListener("error",G),y.removeListener("close",L)}}return Er=w,Er}var vr,fi;function io(){if(fi)return vr;fi=1;var r;function a(s,o,g){return o=l(o),o in s?Object.defineProperty(s,o,{value:g,enumerable:!0,configurable:!0,writable:!0}):s[o]=g,s}function l(s){var o=u(s,"string");return typeof o=="symbol"?o:String(o)}function u(s,o){if(typeof s!="object"||s===null)return s;var g=s[Symbol.toPrimitive];if(g!==void 0){var T=g.call(s,o);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}var w=kr(),y=Symbol("lastResolve"),A=Symbol("lastReject"),E=Symbol("error"),_=Symbol("ended"),B=Symbol("lastPromise"),C=Symbol("handlePromise"),N=Symbol("stream");function P(s,o){return{value:s,done:o}}function V(s){var o=s[y];if(o!==null){var g=s[N].read();g!==null&&(s[B]=null,s[y]=null,s[A]=null,o(P(g,!1)))}}function q(s){te.process$1.nextTick(V,s)}function G(s,o){return function(g,T){s.then(function(){if(o[_]){g(P(void 0,!0));return}o[C](g,T)},T)}}var L=Object.getPrototypeOf(function(){}),c=Object.setPrototypeOf((r={get stream(){return this[N]},next:function(){var o=this,g=this[E];if(g!==null)return Promise.reject(g);if(this[_])return Promise.resolve(P(void 0,!0));if(this[N].destroyed)return new Promise(function(d,K){te.process$1.nextTick(function(){o[E]?K(o[E]):d(P(void 0,!0))})});var T=this[B],S;if(T)S=new Promise(G(T,this));else{var F=this[N].read();if(F!==null)return Promise.resolve(P(F,!1));S=new Promise(this[C])}return this[B]=S,S}},a(r,Symbol.asyncIterator,function(){return this}),a(r,"return",function(){var o=this;return new Promise(function(g,T){o[N].destroy(null,function(S){if(S){T(S);return}g(P(void 0,!0))})})}),r),L),m=function(o){var g,T=Object.create(c,(g={},a(g,N,{value:o,writable:!0}),a(g,y,{value:null,writable:!0}),a(g,A,{value:null,writable:!0}),a(g,E,{value:null,writable:!0}),a(g,_,{value:o._readableState.endEmitted,writable:!0}),a(g,C,{value:function(F,d){var K=T[N].read();K?(T[B]=null,T[y]=null,T[A]=null,F(P(K,!1))):(T[y]=F,T[A]=d)},writable:!0}),g));return T[B]=null,w(o,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=T[A];F!==null&&(T[B]=null,T[y]=null,T[A]=null,F(S)),T[E]=S;return}var d=T[y];d!==null&&(T[B]=null,T[y]=null,T[A]=null,d(P(void 0,!0))),T[_]=!0}),o.on("readable",q.bind(null,T)),T};return vr=m,vr}var wr,li;function ao(){return li||(li=1,wr=function(){throw new Error("Readable.from is not available in the browser")}),wr}var _r,ci;function Hi(){if(ci)return _r;ci=1,_r=d;var r;d.ReadableState=F,Lr().EventEmitter;var a=function(p,U){return p.listeners(U).length},l=Fi(),u=rt().Buffer,w=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(h){return u.from(h)}function A(h){return u.isBuffer(h)||h instanceof w}var E=ji(),_;E&&E.debuglog?_=E.debuglog("stream"):_=function(){};var B=to(),C=qi(),N=ki(),P=N.getHighWaterMark,V=je().codes,q=V.ERR_INVALID_ARG_TYPE,G=V.ERR_STREAM_PUSH_AFTER_EOF,L=V.ERR_METHOD_NOT_IMPLEMENTED,c=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,m,s,o;Be()(d,l);var g=C.errorOrDestroy,T=["error","close","destroy","pause","resume"];function S(h,p,U){if(typeof h.prependListener=="function")return h.prependListener(p,U);!h._events||!h._events[p]?h.on(p,U):Array.isArray(h._events[p])?h._events[p].unshift(U):h._events[p]=[U,h._events[p]]}function F(h,p,U){r=r||Me(),h=h||{},typeof U!="boolean"&&(U=p instanceof r),this.objectMode=!!h.objectMode,U&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=P(this,h,"readableHighWaterMark",U),this.buffer=new B,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(m||(m=Cr().StringDecoder),this.decoder=new m(h.encoding),this.encoding=h.encoding)}function d(h){if(r=r||Me(),!(this instanceof d))return new d(h);var p=this instanceof r;this._readableState=new F(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),l.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),d.prototype.destroy=C.destroy,d.prototype._undestroy=C.undestroy,d.prototype._destroy=function(h,p){p(h)},d.prototype.push=function(h,p){var U=this._readableState,W;return U.objectMode?W=!0:typeof h=="string"&&(p=p||U.defaultEncoding,p!==U.encoding&&(h=u.from(h,p),p=""),W=!0),K(this,h,p,!1,W)},d.prototype.unshift=function(h){return K(this,h,null,!0,!1)};function K(h,p,U,W,Q){_("readableAddChunk",p);var Y=h._readableState;if(p===null)Y.reading=!1,le(h,Y);else{var z;if(Q||(z=x(Y,p)),z)g(h,z);else if(Y.objectMode||p&&p.length>0)if(typeof p!="string"&&!Y.objectMode&&Object.getPrototypeOf(p)!==u.prototype&&(p=y(p)),W)Y.endEmitted?g(h,new c):X(h,Y,p,!0);else if(Y.ended)g(h,new G);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!U?(p=Y.decoder.write(p),Y.objectMode||p.length!==0?X(h,Y,p,!1):oe(h,Y)):X(h,Y,p,!1)}else W||(Y.reading=!1,oe(h,Y))}return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function X(h,p,U,W){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",U)):(p.length+=p.objectMode?1:U.length,W?p.buffer.unshift(U):p.buffer.push(U),p.needReadable&&Z(h)),oe(h,p)}function x(h,p){var U;return!A(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&(U=new q("chunk",["string","Buffer","Uint8Array"],p)),U}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(h){m||(m=Cr().StringDecoder);var p=new m(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,W="";U!==null;)W+=p.write(U.data),U=U.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var ee=1073741824;function re(h){return h>=ee?h=ee:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ie(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=re(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}d.prototype.read=function(h){_("read",h),h=parseInt(h,10);var p=this._readableState,U=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return _("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?n(this):Z(this),null;if(h=ie(h,p),h===0&&p.ended)return p.length===0&&n(this),null;var W=p.needReadable;_("need readable",W),(p.length===0||p.length-h<p.highWaterMark)&&(W=!0,_("length less than watermark",W)),p.ended||p.reading?(W=!1,_("reading or ended",W)):W&&(_("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ie(U,p)));var Q;return h>0?Q=i(h,p):Q=null,Q===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),U!==h&&p.ended&&n(this)),Q!==null&&this.emit("data",Q),Q};function le(h,p){if(_("onEofChunk"),!p.ended){if(p.decoder){var U=p.decoder.end();U&&U.length&&(p.buffer.push(U),p.length+=p.objectMode?1:U.length)}p.ended=!0,p.sync?Z(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ce(h)))}}function Z(h){var p=h._readableState;_("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(_("emitReadable",p.flowing),p.emittedReadable=!0,te.process$1.nextTick(ce,h))}function ce(h){var p=h._readableState;_("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,O(h)}function oe(h,p){p.readingMore||(p.readingMore=!0,te.process$1.nextTick(ye,h,p))}function ye(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var U=p.length;if(_("maybeReadMore read 0"),h.read(0),U===p.length)break}p.readingMore=!1}d.prototype._read=function(h){g(this,new L("_read()"))},d.prototype.pipe=function(h,p){var U=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=h;break;case 1:W.pipes=[W.pipes,h];break;default:W.pipes.push(h);break}W.pipesCount+=1,_("pipe count=%d opts=%j",W.pipesCount,p);var Q=(!p||p.end!==!1)&&h!==te.process$1.stdout&&h!==te.process$1.stderr,Y=Q?se:Re;W.endEmitted?te.process$1.nextTick(Y):U.once("end",Y),h.on("unpipe",z);function z(Ae,Te){_("onunpipe"),Ae===U&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,be())}function se(){_("onend"),h.end()}var k=ge(U);h.on("drain",k);var ve=!1;function be(){_("cleanup"),h.removeListener("close",we),h.removeListener("finish",Ne),h.removeListener("drain",k),h.removeListener("error",he),h.removeListener("unpipe",z),U.removeListener("end",se),U.removeListener("end",Re),U.removeListener("data",ae),ve=!0,W.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&k()}U.on("data",ae);function ae(Ae){_("ondata");var Te=h.write(Ae);_("dest.write",Te),Te===!1&&((W.pipesCount===1&&W.pipes===h||W.pipesCount>1&&v(W.pipes,h)!==-1)&&!ve&&(_("false write response, pause",W.awaitDrain),W.awaitDrain++),U.pause())}function he(Ae){_("onerror",Ae),Re(),h.removeListener("error",he),a(h,"error")===0&&g(h,Ae)}S(h,"error",he);function we(){h.removeListener("finish",Ne),Re()}h.once("close",we);function Ne(){_("onfinish"),h.removeListener("close",we),Re()}h.once("finish",Ne);function Re(){_("unpipe"),U.unpipe(h)}return h.emit("pipe",U),W.flowing||(_("pipe resume"),U.resume()),h};function ge(h){return function(){var U=h._readableState;_("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&a(h,"data")&&(U.flowing=!0,O(h))}}d.prototype.unpipe=function(h){var p=this._readableState,U={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,U),this);if(!h){var W=p.pipes,Q=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var Y=0;Y<Q;Y++)W[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var z=v(p.pipes,h);return z===-1?this:(p.pipes.splice(z,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,U),this)},d.prototype.on=function(h,p){var U=l.prototype.on.call(this,h,p),W=this._readableState;return h==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):h==="readable"&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,_("on readable",W.length,W.reading),W.length?Z(this):W.reading||te.process$1.nextTick(j,this)),U},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(h,p){var U=l.prototype.removeListener.call(this,h,p);return h==="readable"&&te.process$1.nextTick(D,this),U},d.prototype.removeAllListeners=function(h){var p=l.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&te.process$1.nextTick(D,this),p};function D(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function j(h){_("readable nexttick read 0"),h.read(0)}d.prototype.resume=function(){var h=this._readableState;return h.flowing||(_("resume"),h.flowing=!h.readableListening,$(this,h)),h.paused=!1,this};function $(h,p){p.resumeScheduled||(p.resumeScheduled=!0,te.process$1.nextTick(J,h,p))}function J(h,p){_("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),O(h),p.flowing&&!p.reading&&h.read(0)}d.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function O(h){var p=h._readableState;for(_("flow",p.flowing);p.flowing&&h.read()!==null;);}d.prototype.wrap=function(h){var p=this,U=this._readableState,W=!1;h.on("end",function(){if(_("wrapped end"),U.decoder&&!U.ended){var z=U.decoder.end();z&&z.length&&p.push(z)}p.push(null)}),h.on("data",function(z){if(_("wrapped data"),U.decoder&&(z=U.decoder.write(z)),!(U.objectMode&&z==null)&&!(!U.objectMode&&(!z||!z.length))){var se=p.push(z);se||(W=!0,h.pause())}});for(var Q in h)this[Q]===void 0&&typeof h[Q]=="function"&&(this[Q]=function(se){return function(){return h[se].apply(h,arguments)}}(Q));for(var Y=0;Y<T.length;Y++)h.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(z){_("wrapped _read",z),W&&(W=!1,h.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=io()),s(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),d._fromList=i,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function i(h,p){if(p.length===0)return null;var U;return p.objectMode?U=p.buffer.shift():!h||h>=p.length?(p.decoder?U=p.buffer.join(""):p.buffer.length===1?U=p.buffer.first():U=p.buffer.concat(p.length),p.buffer.clear()):U=p.buffer.consume(h,p.decoder),U}function n(h){var p=h._readableState;_("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,te.process$1.nextTick(R,p,h))}function R(h,p){if(_("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var U=p._writableState;(!U||U.autoDestroy&&U.finished)&&p.destroy()}}typeof Symbol=="function"&&(d.from=function(h,p){return o===void 0&&(o=ao()),o(d,h,p)});function v(h,p){for(var U=0,W=h.length;U<W;U++)if(h[U]===p)return U;return-1}return _r}var Ar,hi;function Ki(){if(hi)return Ar;hi=1,Ar=E;var r=je().codes,a=r.ERR_METHOD_NOT_IMPLEMENTED,l=r.ERR_MULTIPLE_CALLBACK,u=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,w=r.ERR_TRANSFORM_WITH_LENGTH_0,y=Me();Be()(E,y);function A(C,N){var P=this._transformState;P.transforming=!1;var V=P.writecb;if(V===null)return this.emit("error",new l);P.writechunk=null,P.writecb=null,N!=null&&this.push(N),V(C);var q=this._readableState;q.reading=!1,(q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}function E(C){if(!(this instanceof E))return new E(C);y.call(this,C),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",_)}function _(){var C=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,P){B(C,N,P)}):B(this,null,null)}E.prototype.push=function(C,N){return this._transformState.needTransform=!1,y.prototype.push.call(this,C,N)},E.prototype._transform=function(C,N,P){P(new a("_transform()"))},E.prototype._write=function(C,N,P){var V=this._transformState;if(V.writecb=P,V.writechunk=C,V.writeencoding=N,!V.transforming){var q=this._readableState;(V.needTransform||q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}},E.prototype._read=function(C){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},E.prototype._destroy=function(C,N){y.prototype._destroy.call(this,C,function(P){N(P)})};function B(C,N,P){if(N)return C.emit("error",N);if(P!=null&&C.push(P),C._writableState.length)throw new w;if(C._transformState.transforming)throw new u;return C.push(null)}return Ar}var Tr,di;function oo(){if(di)return Tr;di=1,Tr=a;var r=Ki();Be()(a,r);function a(l){if(!(this instanceof a))return new a(l);r.call(this,l)}return a.prototype._transform=function(l,u,w){w(null,l)},Tr}var Sr,pi;function uo(){if(pi)return Sr;pi=1;var r;function a(P){var V=!1;return function(){V||(V=!0,P.apply(void 0,arguments))}}var l=je().codes,u=l.ERR_MISSING_ARGS,w=l.ERR_STREAM_DESTROYED;function y(P){if(P)throw P}function A(P){return P.setHeader&&typeof P.abort=="function"}function E(P,V,q,G){G=a(G);var L=!1;P.on("close",function(){L=!0}),r===void 0&&(r=kr()),r(P,{readable:V,writable:q},function(m){if(m)return G(m);L=!0,G()});var c=!1;return function(m){if(!L&&!c){if(c=!0,A(P))return P.abort();if(typeof P.destroy=="function")return P.destroy();G(m||new w("pipe"))}}}function _(P){P()}function B(P,V){return P.pipe(V)}function C(P){return!P.length||typeof P[P.length-1]!="function"?y:P.pop()}function N(){for(var P=arguments.length,V=new Array(P),q=0;q<P;q++)V[q]=arguments[q];var G=C(V);if(Array.isArray(V[0])&&(V=V[0]),V.length<2)throw new u("streams");var L,c=V.map(function(m,s){var o=s<V.length-1,g=s>0;return E(m,o,g,function(T){L||(L=T),T&&c.forEach(_),!o&&(c.forEach(_),G(L))})});return V.reduce(B)}return Sr=N,Sr}var Rr,yi;function so(){if(yi)return Rr;yi=1,Rr=l;var r=Lr().EventEmitter,a=Be();a(l,r),l.Readable=Hi(),l.Writable=Gi(),l.Duplex=Me(),l.Transform=Ki(),l.PassThrough=oo(),l.finished=kr(),l.pipeline=uo(),l.Stream=l;function l(){r.call(this)}return l.prototype.pipe=function(u,w){var y=this;function A(V){u.writable&&u.write(V)===!1&&y.pause&&y.pause()}y.on("data",A);function E(){y.readable&&y.resume&&y.resume()}u.on("drain",E),!u._isStdio&&(!w||w.end!==!1)&&(y.on("end",B),y.on("close",C));var _=!1;function B(){_||(_=!0,u.end())}function C(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function N(V){if(P(),r.listenerCount(this,"error")===0)throw V}y.on("error",N),u.on("error",N);function P(){y.removeListener("data",A),u.removeListener("drain",E),y.removeListener("end",B),y.removeListener("close",C),y.removeListener("error",N),u.removeListener("error",N),y.removeListener("end",P),y.removeListener("close",P),u.removeListener("close",P)}return y.on("end",P),y.on("close",P),u.on("close",P),u.emit("pipe",y),u},Rr}var gi;function fo(){return gi||(gi=1,function(r){(function(a){a.parser=function(i,n){return new u(i,n)},a.SAXParser=u,a.SAXStream=C,a.createStream=B,a.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(i,n){if(!(this instanceof u))return new u(i,n);var R=this;y(R),R.q=R.c="",R.bufferCheckPosition=a.MAX_BUFFER_LENGTH,R.opt=n||{},R.opt.lowercase=R.opt.lowercase||R.opt.lowercasetags,R.looseCase=R.opt.lowercase?"toLowerCase":"toUpperCase",R.tags=[],R.closed=R.closedRoot=R.sawRoot=!1,R.tag=R.error=null,R.strict=!!i,R.noscript=!!(i||R.opt.noscript),R.state=d.BEGIN,R.strictEntities=R.opt.strictEntities,R.ENTITIES=R.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),R.attribList=[],R.opt.xmlns&&(R.ns=Object.create(G)),R.opt.unquotedAttributeValues===void 0&&(R.opt.unquotedAttributeValues=!i),R.trackPosition=R.opt.position!==!1,R.trackPosition&&(R.position=R.line=R.column=0),X(R,"onready")}Object.create||(Object.create=function(i){function n(){}n.prototype=i;var R=new n;return R}),Object.keys||(Object.keys=function(i){var n=[];for(var R in i)i.hasOwnProperty(R)&&n.push(R);return n});function w(i){for(var n=Math.max(a.MAX_BUFFER_LENGTH,10),R=0,v=0,h=l.length;v<h;v++){var p=i[l[v]].length;if(p>n)switch(l[v]){case"textNode":ee(i);break;case"cdata":x(i,"oncdata",i.cdata),i.cdata="";break;case"script":x(i,"onscript",i.script),i.script="";break;default:ie(i,"Max buffer length exceeded: "+l[v])}R=Math.max(R,p)}var U=a.MAX_BUFFER_LENGTH-R;i.bufferCheckPosition=U+i.position}function y(i){for(var n=0,R=l.length;n<R;n++)i[l[n]]=""}function A(i){ee(i),i.cdata!==""&&(x(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(x(i,"onscript",i.script),i.script="")}u.prototype={end:function(){le(this)},write:O,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var E;try{E=so().Stream}catch{E=function(){}}E||(E=function(){});var _=a.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function B(i,n){return new C(i,n)}function C(i,n){if(!(this instanceof C))return new C(i,n);E.apply(this),this._parser=new u(i,n),this.writable=!0,this.readable=!0;var R=this;this._parser.onend=function(){R.emit("end")},this._parser.onerror=function(v){R.emit("error",v),R._parser.error=null},this._decoder=null,_.forEach(function(v){Object.defineProperty(R,"on"+v,{get:function(){return R._parser["on"+v]},set:function(h){if(!h)return R.removeAllListeners(v),R._parser["on"+v]=h,h;R.on(v,h)},enumerable:!0,configurable:!1})})}C.prototype=Object.create(E.prototype,{constructor:{value:C}}),C.prototype.write=function(i){if(typeof te.Buffer=="function"&&typeof te.Buffer.isBuffer=="function"&&te.Buffer.isBuffer(i)){if(!this._decoder){var n=Cr().StringDecoder;this._decoder=new n("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},C.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},C.prototype.on=function(i,n){var R=this;return!R._parser["on"+i]&&_.indexOf(i)!==-1&&(R._parser["on"+i]=function(){var v=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);v.splice(0,0,i),R.emit.apply(R,v)}),E.prototype.on.call(R,i,n)};var N="[CDATA[",P="DOCTYPE",V="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",G={xml:V,xmlns:q},L=/[:_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]/,c=/[:_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-]/,m=/[#:_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]/,s=/[#:_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 o(i){return i===" "||i===`
16
- `||i==="\r"||i===" "}function g(i){return i==='"'||i==="'"}function T(i){return i===">"||o(i)}function S(i,n){return i.test(n)}function F(i,n){return!S(i,n)}var d=0;a.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.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(a.ENTITIES).forEach(function(i){var n=a.ENTITIES[i],R=typeof n=="number"?String.fromCharCode(n):n;a.ENTITIES[i]=R});for(var K in a.STATE)a.STATE[a.STATE[K]]=K;d=a.STATE;function X(i,n,R){i[n]&&i[n](R)}function x(i,n,R){i.textNode&&ee(i),X(i,n,R)}function ee(i){i.textNode=re(i.opt,i.textNode),i.textNode&&X(i,"ontext",i.textNode),i.textNode=""}function re(i,n){return i.trim&&(n=n.trim()),i.normalize&&(n=n.replace(/\s+/g," ")),n}function ie(i,n){return ee(i),i.trackPosition&&(n+=`
15
+ `)+" "+$[1]:$[0]+j+" "+D.join(", ")+" "+$[1]}n.types=Va();function L(D){return Array.isArray(D)}n.isArray=L;function c(D){return typeof D=="boolean"}n.isBoolean=c;function E(D){return D===null}n.isNull=E;function s(D){return D==null}n.isNullOrUndefined=s;function a(D){return typeof D=="number"}n.isNumber=a;function g(D){return typeof D=="string"}n.isString=g;function T(D){return typeof D=="symbol"}n.isSymbol=T;function S(D){return D===void 0}n.isUndefined=S;function F(D){return d(D)&&re(D)==="[object RegExp]"}n.isRegExp=F,n.types.isRegExp=F;function d(D){return typeof D=="object"&&D!==null}n.isObject=d;function K(D){return d(D)&&re(D)==="[object Date]"}n.isDate=K,n.types.isDate=K;function X(D){return d(D)&&(re(D)==="[object Error]"||D instanceof Error)}n.isError=X,n.types.isNativeError=X;function x(D){return typeof D=="function"}n.isFunction=x;function ee(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}n.isPrimitive=ee,n.isBuffer=Ya();function re(D){return Object.prototype.toString.call(D)}function ie(D){return D<10?"0"+D.toString(10):D.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z(){var D=new Date,j=[ie(D.getHours()),ie(D.getMinutes()),ie(D.getSeconds())].join(":");return[D.getDate(),le[D.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",Z(),n.format.apply(n,arguments))},n.inherits=Oe(),n._extend=function(D,j){if(!j||!d(j))return D;for(var $=Object.keys(j),J=$.length;J--;)D[$[J]]=j[$[J]];return D};function ce(D,j){return Object.prototype.hasOwnProperty.call(D,j)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&j[oe]){var $=j[oe];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var J,O,i=new Promise(function(w,h){J=w,O=h}),r=[],R=0;R<arguments.length;R++)r.push(arguments[R]);r.push(function(w,h){w?O(w):J(h)});try{j.apply(this,r)}catch(w){O(w)}return i}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),oe&&Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,o(j))},n.promisify.custom=oe;function ye(D,j){if(!D){var $=new Error("Promise was rejected with a falsy value");$.reason=D,D=$}return j(D)}function ge(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],J=0;J<arguments.length;J++)$.push(arguments[J]);var O=$.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var i=this,r=function(){return O.apply(i,arguments)};D.apply(this,$).then(function(R){te.process$1.nextTick(r.bind(null,null,R))},function(R){te.process$1.nextTick(ye.bind(null,R,r))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Object.defineProperties(j,o(D)),j}n.callbackify=ge})(lt)),lt}var lr,Jn;function Xa(){if(Jn)return lr;Jn=1;function n(q,H){var L=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);H&&(c=c.filter(function(E){return Object.getOwnPropertyDescriptor(q,E).enumerable})),L.push.apply(L,c)}return L}function o(q){for(var H=1;H<arguments.length;H++){var L=arguments[H]!=null?arguments[H]:{};H%2?n(Object(L),!0).forEach(function(c){l(q,c,L[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(L)):n(Object(L)).forEach(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(L,c))})}return q}function l(q,H,L){return H=A(H),H in q?Object.defineProperty(q,H,{value:L,enumerable:!0,configurable:!0,writable:!0}):q[H]=L,q}function u(q,H){if(!(q instanceof H))throw new TypeError("Cannot call a class as a function")}function m(q,H){for(var L=0;L<H.length;L++){var c=H[L];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(q,A(c.key),c)}}function y(q,H,L){return H&&m(q.prototype,H),Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var H=v(q,"string");return typeof H=="symbol"?H:String(H)}function v(q,H){if(typeof q!="object"||q===null)return q;var L=q[Symbol.toPrimitive];if(L!==void 0){var c=L.call(q,H);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var _=tt(),B=_.Buffer,C=Mi(),N=C.inspect,P=N&&N.custom||"inspect";function V(q,H,L){B.prototype.copy.call(q,H,L)}return lr=(function(){function q(){u(this,q),this.head=null,this.tail=null,this.length=0}return y(q,[{key:"push",value:function(L){var c={data:L,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(L){var c={data:L,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var c=this.head,E=""+c.data;c=c.next;)E+=L+c.data;return E}},{key:"concat",value:function(L){if(this.length===0)return B.alloc(0);for(var c=B.allocUnsafe(L>>>0),E=this.head,s=0;E;)V(E.data,c,s),s+=E.data.length,E=E.next;return c}},{key:"consume",value:function(L,c){var E;return L<this.head.data.length?(E=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?E=this.shift():E=c?this._getString(L):this._getBuffer(L),E}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var c=this.head,E=1,s=c.data;for(L-=s.length;c=c.next;){var a=c.data,g=L>a.length?a.length:L;if(g===a.length?s+=a:s+=a.slice(0,L),L-=g,L===0){g===a.length?(++E,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=a.slice(g));break}++E}return this.length-=E,s}},{key:"_getBuffer",value:function(L){var c=B.allocUnsafe(L),E=this.head,s=1;for(E.data.copy(c),L-=E.data.length;E=E.next;){var a=E.data,g=L>a.length?a.length:L;if(a.copy(c,c.length-L,0,g),L-=g,L===0){g===a.length?(++s,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=a.slice(g));break}++s}return this.length-=s,c}},{key:P,value:function(L,c){return N(this,o(o({},c),{},{depth:0,customInspect:!1}))}}]),q})(),lr}var cr,Qn;function Ui(){if(Qn)return cr;Qn=1;function n(A,v){var _=this,B=this._readableState&&this._readableState.destroyed,C=this._writableState&&this._writableState.destroyed;return B||C?(v?v(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.process$1.nextTick(m,this,A)):te.process$1.nextTick(m,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(N){!v&&N?_._writableState?_._writableState.errorEmitted?te.process$1.nextTick(l,_):(_._writableState.errorEmitted=!0,te.process$1.nextTick(o,_,N)):te.process$1.nextTick(o,_,N):v?(te.process$1.nextTick(l,_),v(N)):te.process$1.nextTick(l,_)}),this)}function o(A,v){m(A,v),l(A)}function l(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function u(){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 m(A,v){A.emit("error",v)}function y(A,v){var _=A._readableState,B=A._writableState;_&&_.autoDestroy||B&&B.autoDestroy?A.destroy(v):A.emit("error",v)}return cr={destroy:n,undestroy:u,errorOrDestroy:y},cr}var hr={},Zn;function Ue(){if(Zn)return hr;Zn=1;function n(v,_){v.prototype=Object.create(_.prototype),v.prototype.constructor=v,v.__proto__=_}var o={};function l(v,_,B){B||(B=Error);function C(P,V,q){return typeof _=="string"?_:_(P,V,q)}var N=(function(P){n(V,P);function V(q,H,L){return P.call(this,C(q,H,L))||this}return V})(B);N.prototype.name=B.name,N.prototype.code=v,o[v]=N}function u(v,_){if(Array.isArray(v)){var B=v.length;return v=v.map(function(C){return String(C)}),B>2?"one of ".concat(_," ").concat(v.slice(0,B-1).join(", "),", or ")+v[B-1]:B===2?"one of ".concat(_," ").concat(v[0]," or ").concat(v[1]):"of ".concat(_," ").concat(v[0])}else return"of ".concat(_," ").concat(String(v))}function m(v,_,B){return v.substr(0,_.length)===_}function y(v,_,B){return(B===void 0||B>v.length)&&(B=v.length),v.substring(B-_.length,B)===_}function A(v,_,B){return typeof B!="number"&&(B=0),B+_.length>v.length?!1:v.indexOf(_,B)!==-1}return l("ERR_INVALID_OPT_VALUE",function(v,_){return'The value "'+_+'" is invalid for option "'+v+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(v,_,B){var C;typeof _=="string"&&m(_,"not ")?(C="must not be",_=_.replace(/^not /,"")):C="must be";var N;if(y(v," argument"))N="The ".concat(v," ").concat(C," ").concat(u(_,"type"));else{var P=A(v,".")?"property":"argument";N='The "'.concat(v,'" ').concat(P," ").concat(C," ").concat(u(_,"type"))}return N+=". Received type ".concat(typeof B),N},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),hr.codes=o,hr}var dr,ei;function ji(){if(ei)return dr;ei=1;var n=Ue().codes.ERR_INVALID_OPT_VALUE;function o(u,m,y){return u.highWaterMark!=null?u.highWaterMark:m?u[y]:null}function l(u,m,y,A){var v=o(m,A,y);if(v!=null){if(!(isFinite(v)&&Math.floor(v)===v)||v<0){var _=A?y:"highWaterMark";throw new n(_,v)}return Math.floor(v)}return u.objectMode?16:16*1024}return dr={getHighWaterMark:l},dr}var pr,ti;function za(){if(ti)return pr;ti=1,pr=n;function n(l,u){if(o("noDeprecation"))return l;var m=!1;function y(){if(!m){if(o("throwDeprecation"))throw new Error(u);o("traceDeprecation")?console.trace(u):console.warn(u),m=!0}return l.apply(this,arguments)}return y}function o(l){try{if(!me.commonjsGlobal.localStorage)return!1}catch{return!1}var u=me.commonjsGlobal.localStorage[l];return u==null?!1:String(u).toLowerCase()==="true"}return pr}var yr,ri;function qi(){if(ri)return yr;ri=1,yr=F;function n(O){var i=this;this.next=null,this.entry=null,this.finish=function(){J(i,O)}}var o;F.WritableState=T;var l={deprecate:za()},u=xi(),m=tt().Buffer,y=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(O){return m.from(O)}function v(O){return m.isBuffer(O)||O instanceof y}var _=Ui(),B=ji(),C=B.getHighWaterMark,N=Ue().codes,P=N.ERR_INVALID_ARG_TYPE,V=N.ERR_METHOD_NOT_IMPLEMENTED,q=N.ERR_MULTIPLE_CALLBACK,H=N.ERR_STREAM_CANNOT_PIPE,L=N.ERR_STREAM_DESTROYED,c=N.ERR_STREAM_NULL_VALUES,E=N.ERR_STREAM_WRITE_AFTER_END,s=N.ERR_UNKNOWN_ENCODING,a=_.errorOrDestroy;Oe()(F,u);function g(){}function T(O,i,r){o=o||Le(),O=O||{},typeof r!="boolean"&&(r=i instanceof o),this.objectMode=!!O.objectMode,r&&(this.objectMode=this.objectMode||!!O.writableObjectMode),this.highWaterMark=C(this,O,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=O.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){le(i,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}T.prototype.getBuffer=function(){for(var i=this.bufferedRequest,r=[];i;)r.push(i),i=i.next;return r},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(i){return S.call(this,i)?!0:this!==F?!1:i&&i._writableState instanceof T}})):S=function(i){return i instanceof this};function F(O){o=o||Le();var i=this instanceof o;if(!i&&!S.call(F,this))return new F(O);this._writableState=new T(O,this,i),this.writable=!0,O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final)),u.call(this)}F.prototype.pipe=function(){a(this,new H)};function d(O,i){var r=new E;a(O,r),te.process$1.nextTick(i,r)}function K(O,i,r,R){var w;return r===null?w=new c:typeof r!="string"&&!i.objectMode&&(w=new P("chunk",["string","Buffer"],r)),w?(a(O,w),te.process$1.nextTick(R,w),!1):!0}F.prototype.write=function(O,i,r){var R=this._writableState,w=!1,h=!R.objectMode&&v(O);return h&&!m.isBuffer(O)&&(O=A(O)),typeof i=="function"&&(r=i,i=null),h?i="buffer":i||(i=R.defaultEncoding),typeof r!="function"&&(r=g),R.ending?d(this,r):(h||K(this,R,O,r))&&(R.pendingcb++,w=x(this,R,h,O,i,r)),w},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var O=this._writableState;O.corked&&(O.corked--,!O.writing&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&oe(this,O))},F.prototype.setDefaultEncoding=function(i){if(typeof i=="string"&&(i=i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((i+"").toLowerCase())>-1))throw new s(i);return this._writableState.defaultEncoding=i,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(O,i,r){return!O.objectMode&&O.decodeStrings!==!1&&typeof i=="string"&&(i=m.from(i,r)),i}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(O,i,r,R,w,h){if(!r){var p=X(i,R,w);R!==p&&(r=!0,w="buffer",R=p)}var U=i.objectMode?1:R.length;i.length+=U;var W=i.length<i.highWaterMark;if(W||(i.needDrain=!0),i.writing||i.corked){var Q=i.lastBufferedRequest;i.lastBufferedRequest={chunk:R,encoding:w,isBuf:r,callback:h,next:null},Q?Q.next=i.lastBufferedRequest:i.bufferedRequest=i.lastBufferedRequest,i.bufferedRequestCount+=1}else ee(O,i,!1,U,R,w,h);return W}function ee(O,i,r,R,w,h,p){i.writelen=R,i.writecb=p,i.writing=!0,i.sync=!0,i.destroyed?i.onwrite(new L("write")):r?O._writev(w,i.onwrite):O._write(w,h,i.onwrite),i.sync=!1}function re(O,i,r,R,w){--i.pendingcb,r?(te.process$1.nextTick(w,R),te.process$1.nextTick(j,O,i),O._writableState.errorEmitted=!0,a(O,R)):(w(R),O._writableState.errorEmitted=!0,a(O,R),j(O,i))}function ie(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}function le(O,i){var r=O._writableState,R=r.sync,w=r.writecb;if(typeof w!="function")throw new q;if(ie(r),i)re(O,r,R,i,w);else{var h=ye(r)||O.destroyed;!h&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&oe(O,r),R?te.process$1.nextTick(Z,O,r,h,w):Z(O,r,h,w)}}function Z(O,i,r,R){r||ce(O,i),i.pendingcb--,R(),j(O,i)}function ce(O,i){i.length===0&&i.needDrain&&(i.needDrain=!1,O.emit("drain"))}function oe(O,i){i.bufferProcessing=!0;var r=i.bufferedRequest;if(O._writev&&r&&r.next){var R=i.bufferedRequestCount,w=new Array(R),h=i.corkedRequestsFree;h.entry=r;for(var p=0,U=!0;r;)w[p]=r,r.isBuf||(U=!1),r=r.next,p+=1;w.allBuffers=U,ee(O,i,!0,i.length,w,"",h.finish),i.pendingcb++,i.lastBufferedRequest=null,h.next?(i.corkedRequestsFree=h.next,h.next=null):i.corkedRequestsFree=new n(i),i.bufferedRequestCount=0}else{for(;r;){var W=r.chunk,Q=r.encoding,Y=r.callback,z=i.objectMode?1:W.length;if(ee(O,i,!1,z,W,Q,Y),r=r.next,i.bufferedRequestCount--,i.writing)break}r===null&&(i.lastBufferedRequest=null)}i.bufferedRequest=r,i.bufferProcessing=!1}F.prototype._write=function(O,i,r){r(new V("_write()"))},F.prototype._writev=null,F.prototype.end=function(O,i,r){var R=this._writableState;return typeof O=="function"?(r=O,O=null,i=null):typeof i=="function"&&(r=i,i=null),O!=null&&this.write(O,i),R.corked&&(R.corked=1,this.uncork()),R.ending||$(this,R,r),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ye(O){return O.ending&&O.length===0&&O.bufferedRequest===null&&!O.finished&&!O.writing}function ge(O,i){O._final(function(r){i.pendingcb--,r&&a(O,r),i.prefinished=!0,O.emit("prefinish"),j(O,i)})}function D(O,i){!i.prefinished&&!i.finalCalled&&(typeof O._final=="function"&&!i.destroyed?(i.pendingcb++,i.finalCalled=!0,te.process$1.nextTick(ge,O,i)):(i.prefinished=!0,O.emit("prefinish")))}function j(O,i){var r=ye(i);if(r&&(D(O,i),i.pendingcb===0&&(i.finished=!0,O.emit("finish"),i.autoDestroy))){var R=O._readableState;(!R||R.autoDestroy&&R.endEmitted)&&O.destroy()}return r}function $(O,i,r){i.ending=!0,j(O,i),r&&(i.finished?te.process$1.nextTick(r):O.once("finish",r)),i.ended=!0,O.writable=!1}function J(O,i,r){var R=O.entry;for(O.entry=null;R;){var w=R.callback;i.pendingcb--,w(r),R=R.next}i.corkedRequestsFree.next=O}return Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(i){this._writableState&&(this._writableState.destroyed=i)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(O,i){i(O)},yr}var gr,ni;function Le(){if(ni)return gr;ni=1;var n=Object.keys||function(B){var C=[];for(var N in B)C.push(N);return C};gr=A;var o=ki(),l=qi();Oe()(A,o);for(var u=n(l.prototype),m=0;m<u.length;m++){var y=u[m];A.prototype[y]||(A.prototype[y]=l.prototype[y])}function A(B){if(!(this instanceof A))return new A(B);o.call(this,B),l.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",v)))}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 v(){this._writableState.ended||te.process$1.nextTick(_,this)}function _(B){B.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(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),gr}var br={},Xe={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ii;function Ja(){return ii||(ii=1,(function(n,o){var l=tt(),u=l.Buffer;function m(A,v){for(var _ in A)v[_]=A[_]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?n.exports=l:(m(l,o),o.Buffer=y);function y(A,v,_){return u(A,v,_)}y.prototype=Object.create(u.prototype),m(u,y),y.from=function(A,v,_){if(typeof A=="number")throw new TypeError("Argument must not be a number");return u(A,v,_)},y.alloc=function(A,v,_){if(typeof A!="number")throw new TypeError("Argument must be a number");var B=u(A);return v!==void 0?typeof _=="string"?B.fill(v,_):B.fill(v):B.fill(0),B},y.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return u(A)},y.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(A)}})(Xe,Xe.exports)),Xe.exports}var ai;function Pr(){if(ai)return br;ai=1;var n=Ja().Buffer,o=n.isEncoding||function(c){switch(c=""+c,c&&c.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 l(c){if(!c)return"utf8";for(var E;;)switch(c){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 c;default:if(E)return;c=(""+c).toLowerCase(),E=!0}}function u(c){var E=l(c);if(typeof E!="string"&&(n.isEncoding===o||!o(c)))throw new Error("Unknown encoding: "+c);return E||c}br.StringDecoder=m;function m(c){this.encoding=u(c);var E;switch(this.encoding){case"utf16le":this.text=N,this.end=P,E=4;break;case"utf8":this.fillLast=_,E=4;break;case"base64":this.text=V,this.end=q,E=3;break;default:this.write=H,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(E)}m.prototype.write=function(c){if(c.length===0)return"";var E,s;if(this.lastNeed){if(E=this.fillLast(c),E===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<c.length?E?E+this.text(c,s):this.text(c,s):E||""},m.prototype.end=C,m.prototype.text=B,m.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length};function y(c){return c<=127?0:c>>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function A(c,E,s){var a=E.length-1;if(a<s)return 0;var g=y(E[a]);return g>=0?(g>0&&(c.lastNeed=g-1),g):--a<s||g===-2?0:(g=y(E[a]),g>=0?(g>0&&(c.lastNeed=g-2),g):--a<s||g===-2?0:(g=y(E[a]),g>=0?(g>0&&(g===2?g=0:c.lastNeed=g-3),g):0))}function v(c,E,s){if((E[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return c.lastNeed=2,"�"}}function _(c){var E=this.lastTotal-this.lastNeed,s=v(this,c);if(s!==void 0)return s;if(this.lastNeed<=c.length)return c.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,E,0,c.length),this.lastNeed-=c.length}function B(c,E){var s=A(this,c,E);if(!this.lastNeed)return c.toString("utf8",E);this.lastTotal=s;var a=c.length-(s-this.lastNeed);return c.copy(this.lastChar,0,a),c.toString("utf8",E,a)}function C(c){var E=c&&c.length?this.write(c):"";return this.lastNeed?E+"�":E}function N(c,E){if((c.length-E)%2===0){var s=c.toString("utf16le",E);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",E,c.length-1)}function P(c){var E=c&&c.length?this.write(c):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,s)}return E}function V(c,E){var s=(c.length-E)%3;return s===0?c.toString("base64",E):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",E,c.length-s))}function q(c){var E=c&&c.length?this.write(c):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function H(c){return c.toString(this.encoding)}function L(c){return c&&c.length?this.write(c):""}return br}var mr,oi;function qr(){if(oi)return mr;oi=1;var n=Ue().codes.ERR_STREAM_PREMATURE_CLOSE;function o(y){var A=!1;return function(){if(!A){A=!0;for(var v=arguments.length,_=new Array(v),B=0;B<v;B++)_[B]=arguments[B];y.apply(this,_)}}}function l(){}function u(y){return y.setHeader&&typeof y.abort=="function"}function m(y,A,v){if(typeof A=="function")return m(y,null,A);A||(A={}),v=o(v||l);var _=A.readable||A.readable!==!1&&y.readable,B=A.writable||A.writable!==!1&&y.writable,C=function(){y.writable||P()},N=y._writableState&&y._writableState.finished,P=function(){B=!1,N=!0,_||v.call(y)},V=y._readableState&&y._readableState.endEmitted,q=function(){_=!1,V=!0,B||v.call(y)},H=function(s){v.call(y,s)},L=function(){var s;if(_&&!V)return(!y._readableState||!y._readableState.ended)&&(s=new n),v.call(y,s);if(B&&!N)return(!y._writableState||!y._writableState.ended)&&(s=new n),v.call(y,s)},c=function(){y.req.on("finish",P)};return u(y)?(y.on("complete",P),y.on("abort",L),y.req?c():y.on("request",c)):B&&!y._writableState&&(y.on("end",C),y.on("close",C)),y.on("end",q),y.on("finish",P),A.error!==!1&&y.on("error",H),y.on("close",L),function(){y.removeListener("complete",P),y.removeListener("abort",L),y.removeListener("request",c),y.req&&y.req.removeListener("finish",P),y.removeListener("end",C),y.removeListener("close",C),y.removeListener("finish",P),y.removeListener("end",q),y.removeListener("error",H),y.removeListener("close",L)}}return mr=m,mr}var Er,ui;function Qa(){if(ui)return Er;ui=1;var n;function o(s,a,g){return a=l(a),a in s?Object.defineProperty(s,a,{value:g,enumerable:!0,configurable:!0,writable:!0}):s[a]=g,s}function l(s){var a=u(s,"string");return typeof a=="symbol"?a:String(a)}function u(s,a){if(typeof s!="object"||s===null)return s;var g=s[Symbol.toPrimitive];if(g!==void 0){var T=g.call(s,a);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)}var m=qr(),y=Symbol("lastResolve"),A=Symbol("lastReject"),v=Symbol("error"),_=Symbol("ended"),B=Symbol("lastPromise"),C=Symbol("handlePromise"),N=Symbol("stream");function P(s,a){return{value:s,done:a}}function V(s){var a=s[y];if(a!==null){var g=s[N].read();g!==null&&(s[B]=null,s[y]=null,s[A]=null,a(P(g,!1)))}}function q(s){te.process$1.nextTick(V,s)}function H(s,a){return function(g,T){s.then(function(){if(a[_]){g(P(void 0,!0));return}a[C](g,T)},T)}}var L=Object.getPrototypeOf(function(){}),c=Object.setPrototypeOf((n={get stream(){return this[N]},next:function(){var a=this,g=this[v];if(g!==null)return Promise.reject(g);if(this[_])return Promise.resolve(P(void 0,!0));if(this[N].destroyed)return new Promise(function(d,K){te.process$1.nextTick(function(){a[v]?K(a[v]):d(P(void 0,!0))})});var T=this[B],S;if(T)S=new Promise(H(T,this));else{var F=this[N].read();if(F!==null)return Promise.resolve(P(F,!1));S=new Promise(this[C])}return this[B]=S,S}},o(n,Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var a=this;return new Promise(function(g,T){a[N].destroy(null,function(S){if(S){T(S);return}g(P(void 0,!0))})})}),n),L),E=function(a){var g,T=Object.create(c,(g={},o(g,N,{value:a,writable:!0}),o(g,y,{value:null,writable:!0}),o(g,A,{value:null,writable:!0}),o(g,v,{value:null,writable:!0}),o(g,_,{value:a._readableState.endEmitted,writable:!0}),o(g,C,{value:function(F,d){var K=T[N].read();K?(T[B]=null,T[y]=null,T[A]=null,F(P(K,!1))):(T[y]=F,T[A]=d)},writable:!0}),g));return T[B]=null,m(a,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=T[A];F!==null&&(T[B]=null,T[y]=null,T[A]=null,F(S)),T[v]=S;return}var d=T[y];d!==null&&(T[B]=null,T[y]=null,T[A]=null,d(P(void 0,!0))),T[_]=!0}),a.on("readable",q.bind(null,T)),T};return Er=E,Er}var vr,si;function Za(){return si||(si=1,vr=function(){throw new Error("Readable.from is not available in the browser")}),vr}var wr,fi;function ki(){if(fi)return wr;fi=1,wr=d;var n;d.ReadableState=F,Dr().EventEmitter;var o=function(p,U){return p.listeners(U).length},l=xi(),u=tt().Buffer,m=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(h){return u.from(h)}function A(h){return u.isBuffer(h)||h instanceof m}var v=Mi(),_;v&&v.debuglog?_=v.debuglog("stream"):_=function(){};var B=Xa(),C=Ui(),N=ji(),P=N.getHighWaterMark,V=Ue().codes,q=V.ERR_INVALID_ARG_TYPE,H=V.ERR_STREAM_PUSH_AFTER_EOF,L=V.ERR_METHOD_NOT_IMPLEMENTED,c=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,s,a;Oe()(d,l);var g=C.errorOrDestroy,T=["error","close","destroy","pause","resume"];function S(h,p,U){if(typeof h.prependListener=="function")return h.prependListener(p,U);!h._events||!h._events[p]?h.on(p,U):Array.isArray(h._events[p])?h._events[p].unshift(U):h._events[p]=[U,h._events[p]]}function F(h,p,U){n=n||Le(),h=h||{},typeof U!="boolean"&&(U=p instanceof n),this.objectMode=!!h.objectMode,U&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=P(this,h,"readableHighWaterMark",U),this.buffer=new B,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(E||(E=Pr().StringDecoder),this.decoder=new E(h.encoding),this.encoding=h.encoding)}function d(h){if(n=n||Le(),!(this instanceof d))return new d(h);var p=this instanceof n;this._readableState=new F(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),l.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),d.prototype.destroy=C.destroy,d.prototype._undestroy=C.undestroy,d.prototype._destroy=function(h,p){p(h)},d.prototype.push=function(h,p){var U=this._readableState,W;return U.objectMode?W=!0:typeof h=="string"&&(p=p||U.defaultEncoding,p!==U.encoding&&(h=u.from(h,p),p=""),W=!0),K(this,h,p,!1,W)},d.prototype.unshift=function(h){return K(this,h,null,!0,!1)};function K(h,p,U,W,Q){_("readableAddChunk",p);var Y=h._readableState;if(p===null)Y.reading=!1,le(h,Y);else{var z;if(Q||(z=x(Y,p)),z)g(h,z);else if(Y.objectMode||p&&p.length>0)if(typeof p!="string"&&!Y.objectMode&&Object.getPrototypeOf(p)!==u.prototype&&(p=y(p)),W)Y.endEmitted?g(h,new c):X(h,Y,p,!0);else if(Y.ended)g(h,new H);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!U?(p=Y.decoder.write(p),Y.objectMode||p.length!==0?X(h,Y,p,!1):oe(h,Y)):X(h,Y,p,!1)}else W||(Y.reading=!1,oe(h,Y))}return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function X(h,p,U,W){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",U)):(p.length+=p.objectMode?1:U.length,W?p.buffer.unshift(U):p.buffer.push(U),p.needReadable&&Z(h)),oe(h,p)}function x(h,p){var U;return!A(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&(U=new q("chunk",["string","Buffer","Uint8Array"],p)),U}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(h){E||(E=Pr().StringDecoder);var p=new E(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,W="";U!==null;)W+=p.write(U.data),U=U.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var ee=1073741824;function re(h){return h>=ee?h=ee:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ie(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=re(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}d.prototype.read=function(h){_("read",h),h=parseInt(h,10);var p=this._readableState,U=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return _("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?r(this):Z(this),null;if(h=ie(h,p),h===0&&p.ended)return p.length===0&&r(this),null;var W=p.needReadable;_("need readable",W),(p.length===0||p.length-h<p.highWaterMark)&&(W=!0,_("length less than watermark",W)),p.ended||p.reading?(W=!1,_("reading or ended",W)):W&&(_("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ie(U,p)));var Q;return h>0?Q=i(h,p):Q=null,Q===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),U!==h&&p.ended&&r(this)),Q!==null&&this.emit("data",Q),Q};function le(h,p){if(_("onEofChunk"),!p.ended){if(p.decoder){var U=p.decoder.end();U&&U.length&&(p.buffer.push(U),p.length+=p.objectMode?1:U.length)}p.ended=!0,p.sync?Z(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ce(h)))}}function Z(h){var p=h._readableState;_("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(_("emitReadable",p.flowing),p.emittedReadable=!0,te.process$1.nextTick(ce,h))}function ce(h){var p=h._readableState;_("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,O(h)}function oe(h,p){p.readingMore||(p.readingMore=!0,te.process$1.nextTick(ye,h,p))}function ye(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var U=p.length;if(_("maybeReadMore read 0"),h.read(0),U===p.length)break}p.readingMore=!1}d.prototype._read=function(h){g(this,new L("_read()"))},d.prototype.pipe=function(h,p){var U=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=h;break;case 1:W.pipes=[W.pipes,h];break;default:W.pipes.push(h);break}W.pipesCount+=1,_("pipe count=%d opts=%j",W.pipesCount,p);var Q=(!p||p.end!==!1)&&h!==te.process$1.stdout&&h!==te.process$1.stderr,Y=Q?se:Re;W.endEmitted?te.process$1.nextTick(Y):U.once("end",Y),h.on("unpipe",z);function z(Ae,Te){_("onunpipe"),Ae===U&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,be())}function se(){_("onend"),h.end()}var k=ge(U);h.on("drain",k);var ve=!1;function be(){_("cleanup"),h.removeListener("close",we),h.removeListener("finish",Be),h.removeListener("drain",k),h.removeListener("error",he),h.removeListener("unpipe",z),U.removeListener("end",se),U.removeListener("end",Re),U.removeListener("data",ae),ve=!0,W.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&k()}U.on("data",ae);function ae(Ae){_("ondata");var Te=h.write(Ae);_("dest.write",Te),Te===!1&&((W.pipesCount===1&&W.pipes===h||W.pipesCount>1&&w(W.pipes,h)!==-1)&&!ve&&(_("false write response, pause",W.awaitDrain),W.awaitDrain++),U.pause())}function he(Ae){_("onerror",Ae),Re(),h.removeListener("error",he),o(h,"error")===0&&g(h,Ae)}S(h,"error",he);function we(){h.removeListener("finish",Be),Re()}h.once("close",we);function Be(){_("onfinish"),h.removeListener("close",we),Re()}h.once("finish",Be);function Re(){_("unpipe"),U.unpipe(h)}return h.emit("pipe",U),W.flowing||(_("pipe resume"),U.resume()),h};function ge(h){return function(){var U=h._readableState;_("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&o(h,"data")&&(U.flowing=!0,O(h))}}d.prototype.unpipe=function(h){var p=this._readableState,U={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,U),this);if(!h){var W=p.pipes,Q=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var Y=0;Y<Q;Y++)W[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var z=w(p.pipes,h);return z===-1?this:(p.pipes.splice(z,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,U),this)},d.prototype.on=function(h,p){var U=l.prototype.on.call(this,h,p),W=this._readableState;return h==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):h==="readable"&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,_("on readable",W.length,W.reading),W.length?Z(this):W.reading||te.process$1.nextTick(j,this)),U},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(h,p){var U=l.prototype.removeListener.call(this,h,p);return h==="readable"&&te.process$1.nextTick(D,this),U},d.prototype.removeAllListeners=function(h){var p=l.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&te.process$1.nextTick(D,this),p};function D(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function j(h){_("readable nexttick read 0"),h.read(0)}d.prototype.resume=function(){var h=this._readableState;return h.flowing||(_("resume"),h.flowing=!h.readableListening,$(this,h)),h.paused=!1,this};function $(h,p){p.resumeScheduled||(p.resumeScheduled=!0,te.process$1.nextTick(J,h,p))}function J(h,p){_("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),O(h),p.flowing&&!p.reading&&h.read(0)}d.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function O(h){var p=h._readableState;for(_("flow",p.flowing);p.flowing&&h.read()!==null;);}d.prototype.wrap=function(h){var p=this,U=this._readableState,W=!1;h.on("end",function(){if(_("wrapped end"),U.decoder&&!U.ended){var z=U.decoder.end();z&&z.length&&p.push(z)}p.push(null)}),h.on("data",function(z){if(_("wrapped data"),U.decoder&&(z=U.decoder.write(z)),!(U.objectMode&&z==null)&&!(!U.objectMode&&(!z||!z.length))){var se=p.push(z);se||(W=!0,h.pause())}});for(var Q in h)this[Q]===void 0&&typeof h[Q]=="function"&&(this[Q]=(function(se){return function(){return h[se].apply(h,arguments)}})(Q));for(var Y=0;Y<T.length;Y++)h.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(z){_("wrapped _read",z),W&&(W=!1,h.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=Qa()),s(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),d._fromList=i,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function i(h,p){if(p.length===0)return null;var U;return p.objectMode?U=p.buffer.shift():!h||h>=p.length?(p.decoder?U=p.buffer.join(""):p.buffer.length===1?U=p.buffer.first():U=p.buffer.concat(p.length),p.buffer.clear()):U=p.buffer.consume(h,p.decoder),U}function r(h){var p=h._readableState;_("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,te.process$1.nextTick(R,p,h))}function R(h,p){if(_("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var U=p._writableState;(!U||U.autoDestroy&&U.finished)&&p.destroy()}}typeof Symbol=="function"&&(d.from=function(h,p){return a===void 0&&(a=Za()),a(d,h,p)});function w(h,p){for(var U=0,W=h.length;U<W;U++)if(h[U]===p)return U;return-1}return wr}var _r,li;function Hi(){if(li)return _r;li=1,_r=v;var n=Ue().codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,l=n.ERR_MULTIPLE_CALLBACK,u=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,m=n.ERR_TRANSFORM_WITH_LENGTH_0,y=Le();Oe()(v,y);function A(C,N){var P=this._transformState;P.transforming=!1;var V=P.writecb;if(V===null)return this.emit("error",new l);P.writechunk=null,P.writecb=null,N!=null&&this.push(N),V(C);var q=this._readableState;q.reading=!1,(q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}function v(C){if(!(this instanceof v))return new v(C);y.call(this,C),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",_)}function _(){var C=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,P){B(C,N,P)}):B(this,null,null)}v.prototype.push=function(C,N){return this._transformState.needTransform=!1,y.prototype.push.call(this,C,N)},v.prototype._transform=function(C,N,P){P(new o("_transform()"))},v.prototype._write=function(C,N,P){var V=this._transformState;if(V.writecb=P,V.writechunk=C,V.writeencoding=N,!V.transforming){var q=this._readableState;(V.needTransform||q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}},v.prototype._read=function(C){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},v.prototype._destroy=function(C,N){y.prototype._destroy.call(this,C,function(P){N(P)})};function B(C,N,P){if(N)return C.emit("error",N);if(P!=null&&C.push(P),C._writableState.length)throw new m;if(C._transformState.transforming)throw new u;return C.push(null)}return _r}var Ar,ci;function eo(){if(ci)return Ar;ci=1,Ar=o;var n=Hi();Oe()(o,n);function o(l){if(!(this instanceof o))return new o(l);n.call(this,l)}return o.prototype._transform=function(l,u,m){m(null,l)},Ar}var Tr,hi;function to(){if(hi)return Tr;hi=1;var n;function o(P){var V=!1;return function(){V||(V=!0,P.apply(void 0,arguments))}}var l=Ue().codes,u=l.ERR_MISSING_ARGS,m=l.ERR_STREAM_DESTROYED;function y(P){if(P)throw P}function A(P){return P.setHeader&&typeof P.abort=="function"}function v(P,V,q,H){H=o(H);var L=!1;P.on("close",function(){L=!0}),n===void 0&&(n=qr()),n(P,{readable:V,writable:q},function(E){if(E)return H(E);L=!0,H()});var c=!1;return function(E){if(!L&&!c){if(c=!0,A(P))return P.abort();if(typeof P.destroy=="function")return P.destroy();H(E||new m("pipe"))}}}function _(P){P()}function B(P,V){return P.pipe(V)}function C(P){return!P.length||typeof P[P.length-1]!="function"?y:P.pop()}function N(){for(var P=arguments.length,V=new Array(P),q=0;q<P;q++)V[q]=arguments[q];var H=C(V);if(Array.isArray(V[0])&&(V=V[0]),V.length<2)throw new u("streams");var L,c=V.map(function(E,s){var a=s<V.length-1,g=s>0;return v(E,a,g,function(T){L||(L=T),T&&c.forEach(_),!a&&(c.forEach(_),H(L))})});return V.reduce(B)}return Tr=N,Tr}var Sr,di;function ro(){if(di)return Sr;di=1,Sr=l;var n=Dr().EventEmitter,o=Oe();o(l,n),l.Readable=ki(),l.Writable=qi(),l.Duplex=Le(),l.Transform=Hi(),l.PassThrough=eo(),l.finished=qr(),l.pipeline=to(),l.Stream=l;function l(){n.call(this)}return l.prototype.pipe=function(u,m){var y=this;function A(V){u.writable&&u.write(V)===!1&&y.pause&&y.pause()}y.on("data",A);function v(){y.readable&&y.resume&&y.resume()}u.on("drain",v),!u._isStdio&&(!m||m.end!==!1)&&(y.on("end",B),y.on("close",C));var _=!1;function B(){_||(_=!0,u.end())}function C(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function N(V){if(P(),n.listenerCount(this,"error")===0)throw V}y.on("error",N),u.on("error",N);function P(){y.removeListener("data",A),u.removeListener("drain",v),y.removeListener("end",B),y.removeListener("close",C),y.removeListener("error",N),u.removeListener("error",N),y.removeListener("end",P),y.removeListener("close",P),u.removeListener("close",P)}return y.on("end",P),y.on("close",P),u.on("close",P),u.emit("pipe",y),u},Sr}var pi;function no(){return pi||(pi=1,(function(n){(function(o){o.parser=function(i,r){return new u(i,r)},o.SAXParser=u,o.SAXStream=C,o.createStream=B,o.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];o.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(i,r){if(!(this instanceof u))return new u(i,r);var R=this;y(R),R.q=R.c="",R.bufferCheckPosition=o.MAX_BUFFER_LENGTH,R.opt=r||{},R.opt.lowercase=R.opt.lowercase||R.opt.lowercasetags,R.looseCase=R.opt.lowercase?"toLowerCase":"toUpperCase",R.tags=[],R.closed=R.closedRoot=R.sawRoot=!1,R.tag=R.error=null,R.strict=!!i,R.noscript=!!(i||R.opt.noscript),R.state=d.BEGIN,R.strictEntities=R.opt.strictEntities,R.ENTITIES=R.strictEntities?Object.create(o.XML_ENTITIES):Object.create(o.ENTITIES),R.attribList=[],R.opt.xmlns&&(R.ns=Object.create(H)),R.opt.unquotedAttributeValues===void 0&&(R.opt.unquotedAttributeValues=!i),R.trackPosition=R.opt.position!==!1,R.trackPosition&&(R.position=R.line=R.column=0),X(R,"onready")}Object.create||(Object.create=function(i){function r(){}r.prototype=i;var R=new r;return R}),Object.keys||(Object.keys=function(i){var r=[];for(var R in i)i.hasOwnProperty(R)&&r.push(R);return r});function m(i){for(var r=Math.max(o.MAX_BUFFER_LENGTH,10),R=0,w=0,h=l.length;w<h;w++){var p=i[l[w]].length;if(p>r)switch(l[w]){case"textNode":ee(i);break;case"cdata":x(i,"oncdata",i.cdata),i.cdata="";break;case"script":x(i,"onscript",i.script),i.script="";break;default:ie(i,"Max buffer length exceeded: "+l[w])}R=Math.max(R,p)}var U=o.MAX_BUFFER_LENGTH-R;i.bufferCheckPosition=U+i.position}function y(i){for(var r=0,R=l.length;r<R;r++)i[l[r]]=""}function A(i){ee(i),i.cdata!==""&&(x(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(x(i,"onscript",i.script),i.script="")}u.prototype={end:function(){le(this)},write:O,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var v;try{v=ro().Stream}catch{v=function(){}}v||(v=function(){});var _=o.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function B(i,r){return new C(i,r)}function C(i,r){if(!(this instanceof C))return new C(i,r);v.apply(this),this._parser=new u(i,r),this.writable=!0,this.readable=!0;var R=this;this._parser.onend=function(){R.emit("end")},this._parser.onerror=function(w){R.emit("error",w),R._parser.error=null},this._decoder=null,_.forEach(function(w){Object.defineProperty(R,"on"+w,{get:function(){return R._parser["on"+w]},set:function(h){if(!h)return R.removeAllListeners(w),R._parser["on"+w]=h,h;R.on(w,h)},enumerable:!0,configurable:!1})})}C.prototype=Object.create(v.prototype,{constructor:{value:C}}),C.prototype.write=function(i){if(typeof te.Buffer=="function"&&typeof te.Buffer.isBuffer=="function"&&te.Buffer.isBuffer(i)){if(!this._decoder){var r=Pr().StringDecoder;this._decoder=new r("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},C.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},C.prototype.on=function(i,r){var R=this;return!R._parser["on"+i]&&_.indexOf(i)!==-1&&(R._parser["on"+i]=function(){var w=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);w.splice(0,0,i),R.emit.apply(R,w)}),v.prototype.on.call(R,i,r)};var N="[CDATA[",P="DOCTYPE",V="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",H={xml:V,xmlns:q},L=/[:_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]/,c=/[:_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-]/,E=/[#:_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]/,s=/[#:_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 a(i){return i===" "||i===`
16
+ `||i==="\r"||i===" "}function g(i){return i==='"'||i==="'"}function T(i){return i===">"||a(i)}function S(i,r){return i.test(r)}function F(i,r){return!S(i,r)}var d=0;o.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++},o.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},o.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(o.ENTITIES).forEach(function(i){var r=o.ENTITIES[i],R=typeof r=="number"?String.fromCharCode(r):r;o.ENTITIES[i]=R});for(var K in o.STATE)o.STATE[o.STATE[K]]=K;d=o.STATE;function X(i,r,R){i[r]&&i[r](R)}function x(i,r,R){i.textNode&&ee(i),X(i,r,R)}function ee(i){i.textNode=re(i.opt,i.textNode),i.textNode&&X(i,"ontext",i.textNode),i.textNode=""}function re(i,r){return i.trim&&(r=r.trim()),i.normalize&&(r=r.replace(/\s+/g," ")),r}function ie(i,r){return ee(i),i.trackPosition&&(r+=`
17
17
  Line: `+i.line+`
18
18
  Column: `+i.column+`
19
- Char: `+i.c),n=new Error(n),i.error=n,X(i,"onerror",n),i}function le(i){return i.sawRoot&&!i.closedRoot&&Z(i,"Unclosed root tag"),i.state!==d.BEGIN&&i.state!==d.BEGIN_WHITESPACE&&i.state!==d.TEXT&&ie(i,"Unexpected end"),ee(i),i.c="",i.closed=!0,X(i,"onend"),u.call(i,i.strict,i.opt),i}function Z(i,n){if(typeof i!="object"||!(i instanceof u))throw new Error("bad call to strictFail");i.strict&&ie(i,n)}function ce(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var n=i.tags[i.tags.length-1]||i,R=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(R.ns=n.ns),i.attribList.length=0,x(i,"onopentagstart",R)}function oe(i,n){var R=i.indexOf(":"),v=R<0?["",i]:i.split(":"),h=v[0],p=v[1];return n&&i==="xmlns"&&(h="xmlns",p=""),{prefix:h,local:p}}function ye(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var n=oe(i.attribName,!0),R=n.prefix,v=n.local;if(R==="xmlns")if(v==="xml"&&i.attribValue!==V)Z(i,"xml: prefix must be bound to "+V+`
20
- Actual: `+i.attribValue);else if(v==="xmlns"&&i.attribValue!==q)Z(i,"xmlns: prefix must be bound to "+q+`
21
- Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.ns&&(h.ns=Object.create(p.ns)),h.ns[v]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,x(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function ge(i,n){if(i.opt.xmlns){var R=i.tag,v=oe(i.tagName);R.prefix=v.prefix,R.local=v.local,R.uri=R.ns[v.prefix]||"",R.prefix&&!R.uri&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),R.uri=v.prefix);var h=i.tags[i.tags.length-1]||i;R.ns&&h.ns!==R.ns&&Object.keys(R.ns).forEach(function(ae){x(i,"onopennamespace",{prefix:ae,uri:R.ns[ae]})});for(var p=0,U=i.attribList.length;p<U;p++){var W=i.attribList[p],Q=W[0],Y=W[1],z=oe(Q,!0),se=z.prefix,k=z.local,ve=se===""?"":R.ns[se]||"",be={name:Q,value:Y,prefix:se,local:k,uri:ve};se&&se!=="xmlns"&&!ve&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(se)),be.uri=se),i.tag.attributes[Q]=be,x(i,"onattribute",be)}i.attribList.length=0}i.tag.isSelfClosing=!!n,i.sawRoot=!0,i.tags.push(i.tag),x(i,"onopentag",i.tag),n||(!i.noscript&&i.tagName.toLowerCase()==="script"?i.state=d.SCRIPT:i.state=d.TEXT,i.tag=null,i.tagName=""),i.attribName=i.attribValue="",i.attribList.length=0}function D(i){if(!i.tagName){Z(i,"Weird empty close tag."),i.textNode+="</>",i.state=d.TEXT;return}if(i.script){if(i.tagName!=="script"){i.script+="</"+i.tagName+">",i.tagName="",i.state=d.SCRIPT;return}x(i,"onscript",i.script),i.script=""}var n=i.tags.length,R=i.tagName;i.strict||(R=R[i.looseCase]());for(var v=R;n--;){var h=i.tags[n];if(h.name!==v)Z(i,"Unexpected close tag");else break}if(n<0){Z(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",i.state=d.TEXT;return}i.tagName=R;for(var p=i.tags.length;p-- >n;){var U=i.tag=i.tags.pop();i.tagName=i.tag.name,x(i,"onclosetag",i.tagName);var W={};for(var Q in U.ns)W[Q]=U.ns[Q];var Y=i.tags[i.tags.length-1]||i;i.opt.xmlns&&U.ns!==Y.ns&&Object.keys(U.ns).forEach(function(z){var se=U.ns[z];x(i,"onclosenamespace",{prefix:z,uri:se})})}n===0&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=d.TEXT}function j(i){var n=i.entity,R=n.toLowerCase(),v,h="";return i.ENTITIES[n]?i.ENTITIES[n]:i.ENTITIES[R]?i.ENTITIES[R]:(n=R,n.charAt(0)==="#"&&(n.charAt(1)==="x"?(n=n.slice(2),v=parseInt(n,16),h=v.toString(16)):(n=n.slice(1),v=parseInt(n,10),h=v.toString(10))),n=n.replace(/^0+/,""),isNaN(v)||h.toLowerCase()!==n?(Z(i,"Invalid character entity"),"&"+i.entity+";"):String.fromCodePoint(v))}function $(i,n){n==="<"?(i.state=d.OPEN_WAKA,i.startTagPosition=i.position):o(n)||(Z(i,"Non-whitespace before first tag."),i.textNode=n,i.state=d.TEXT)}function J(i,n){var R="";return n<i.length&&(R=i.charAt(n)),R}function O(i){var n=this;if(this.error)throw this.error;if(n.closed)return ie(n,"Cannot write after close. Assign an onready handler.");if(i===null)return le(n);typeof i=="object"&&(i=i.toString());for(var R=0,v="";v=J(i,R++),n.c=v,!!v;)switch(n.trackPosition&&(n.position++,v===`
22
- `?(n.line++,n.column=0):n.column++),n.state){case d.BEGIN:if(n.state=d.BEGIN_WHITESPACE,v==="\uFEFF")continue;$(n,v);continue;case d.BEGIN_WHITESPACE:$(n,v);continue;case d.TEXT:if(n.sawRoot&&!n.closedRoot){for(var h=R-1;v&&v!=="<"&&v!=="&";)v=J(i,R++),v&&n.trackPosition&&(n.position++,v===`
23
- `?(n.line++,n.column=0):n.column++);n.textNode+=i.substring(h,R-1)}v==="<"&&!(n.sawRoot&&n.closedRoot&&!n.strict)?(n.state=d.OPEN_WAKA,n.startTagPosition=n.position):(!o(v)&&(!n.sawRoot||n.closedRoot)&&Z(n,"Text data outside of root node."),v==="&"?n.state=d.TEXT_ENTITY:n.textNode+=v);continue;case d.SCRIPT:v==="<"?n.state=d.SCRIPT_ENDING:n.script+=v;continue;case d.SCRIPT_ENDING:v==="/"?n.state=d.CLOSE_TAG:(n.script+="<"+v,n.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(v==="!")n.state=d.SGML_DECL,n.sgmlDecl="";else if(!o(v))if(S(L,v))n.state=d.OPEN_TAG,n.tagName=v;else if(v==="/")n.state=d.CLOSE_TAG,n.tagName="";else if(v==="?")n.state=d.PROC_INST,n.procInstName=n.procInstBody="";else{if(Z(n,"Unencoded <"),n.startTagPosition+1<n.position){var p=n.position-n.startTagPosition;v=new Array(p).join(" ")+v}n.textNode+="<"+v,n.state=d.TEXT}continue;case d.SGML_DECL:if(n.sgmlDecl+v==="--"){n.state=d.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=d.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+v,n.sgmlDecl=""):(n.sgmlDecl+v).toUpperCase()===N?(x(n,"onopencdata"),n.state=d.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+v).toUpperCase()===P?(n.state=d.DOCTYPE,(n.doctype||n.sawRoot)&&Z(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):v===">"?(x(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=d.TEXT):(g(v)&&(n.state=d.SGML_DECL_QUOTED),n.sgmlDecl+=v);continue;case d.SGML_DECL_QUOTED:v===n.q&&(n.state=d.SGML_DECL,n.q=""),n.sgmlDecl+=v;continue;case d.DOCTYPE:v===">"?(n.state=d.TEXT,x(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=v,v==="["?n.state=d.DOCTYPE_DTD:g(v)&&(n.state=d.DOCTYPE_QUOTED,n.q=v));continue;case d.DOCTYPE_QUOTED:n.doctype+=v,v===n.q&&(n.q="",n.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:v==="]"?(n.doctype+=v,n.state=d.DOCTYPE):v==="<"?(n.state=d.OPEN_WAKA,n.startTagPosition=n.position):g(v)?(n.doctype+=v,n.state=d.DOCTYPE_DTD_QUOTED,n.q=v):n.doctype+=v;continue;case d.DOCTYPE_DTD_QUOTED:n.doctype+=v,v===n.q&&(n.state=d.DOCTYPE_DTD,n.q="");continue;case d.COMMENT:v==="-"?n.state=d.COMMENT_ENDING:n.comment+=v;continue;case d.COMMENT_ENDING:v==="-"?(n.state=d.COMMENT_ENDED,n.comment=re(n.opt,n.comment),n.comment&&x(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+v,n.state=d.COMMENT);continue;case d.COMMENT_ENDED:v!==">"?(Z(n,"Malformed comment"),n.comment+="--"+v,n.state=d.COMMENT):n.doctype&&n.doctype!==!0?n.state=d.DOCTYPE_DTD:n.state=d.TEXT;continue;case d.CDATA:v==="]"?n.state=d.CDATA_ENDING:n.cdata+=v;continue;case d.CDATA_ENDING:v==="]"?n.state=d.CDATA_ENDING_2:(n.cdata+="]"+v,n.state=d.CDATA);continue;case d.CDATA_ENDING_2:v===">"?(n.cdata&&x(n,"oncdata",n.cdata),x(n,"onclosecdata"),n.cdata="",n.state=d.TEXT):v==="]"?n.cdata+="]":(n.cdata+="]]"+v,n.state=d.CDATA);continue;case d.PROC_INST:v==="?"?n.state=d.PROC_INST_ENDING:o(v)?n.state=d.PROC_INST_BODY:n.procInstName+=v;continue;case d.PROC_INST_BODY:if(!n.procInstBody&&o(v))continue;v==="?"?n.state=d.PROC_INST_ENDING:n.procInstBody+=v;continue;case d.PROC_INST_ENDING:v===">"?(x(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=d.TEXT):(n.procInstBody+="?"+v,n.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,v)?n.tagName+=v:(ce(n),v===">"?ge(n):v==="/"?n.state=d.OPEN_TAG_SLASH:(o(v)||Z(n,"Invalid character in tag name"),n.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:v===">"?(ge(n,!0),D(n)):(Z(n,"Forward-slash in opening tag not followed by >"),n.state=d.ATTRIB);continue;case d.ATTRIB:if(o(v))continue;v===">"?ge(n):v==="/"?n.state=d.OPEN_TAG_SLASH:S(L,v)?(n.attribName=v,n.attribValue="",n.state=d.ATTRIB_NAME):Z(n,"Invalid attribute name");continue;case d.ATTRIB_NAME:v==="="?n.state=d.ATTRIB_VALUE:v===">"?(Z(n,"Attribute without value"),n.attribValue=n.attribName,ye(n),ge(n)):o(v)?n.state=d.ATTRIB_NAME_SAW_WHITE:S(c,v)?n.attribName+=v:Z(n,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(v==="=")n.state=d.ATTRIB_VALUE;else{if(o(v))continue;Z(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",x(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",v===">"?ge(n):S(L,v)?(n.attribName=v,n.state=d.ATTRIB_NAME):(Z(n,"Invalid attribute name"),n.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(o(v))continue;g(v)?(n.q=v,n.state=d.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||ie(n,"Unquoted attribute value"),n.state=d.ATTRIB_VALUE_UNQUOTED,n.attribValue=v);continue;case d.ATTRIB_VALUE_QUOTED:if(v!==n.q){v==="&"?n.state=d.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=v;continue}ye(n),n.q="",n.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:o(v)?n.state=d.ATTRIB:v===">"?ge(n):v==="/"?n.state=d.OPEN_TAG_SLASH:S(L,v)?(Z(n,"No whitespace between attributes"),n.attribName=v,n.attribValue="",n.state=d.ATTRIB_NAME):Z(n,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(v)){v==="&"?n.state=d.ATTRIB_VALUE_ENTITY_U:n.attribValue+=v;continue}ye(n),v===">"?ge(n):n.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(n.tagName)v===">"?D(n):S(c,v)?n.tagName+=v:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=d.SCRIPT):(o(v)||Z(n,"Invalid tagname in closing tag"),n.state=d.CLOSE_TAG_SAW_WHITE);else{if(o(v))continue;F(L,v)?n.script?(n.script+="</"+v,n.state=d.SCRIPT):Z(n,"Invalid tagname in closing tag."):n.tagName=v}continue;case d.CLOSE_TAG_SAW_WHITE:if(o(v))continue;v===">"?D(n):Z(n,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,W;switch(n.state){case d.TEXT_ENTITY:U=d.TEXT,W="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,W="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,W="attribValue";break}if(v===";"){var Q=j(n);n.opt.unparsedEntities&&!Object.values(a.XML_ENTITIES).includes(Q)?(n.entity="",n.state=U,n.write(Q)):(n[W]+=Q,n.entity="",n.state=U)}else S(n.entity.length?s:m,v)?n.entity+=v:(Z(n,"Invalid character in entity name"),n[W]+="&"+n.entity+v,n.entity="",n.state=U);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&w(n),n}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var i=String.fromCharCode,n=Math.floor,R=function(){var v=16384,h=[],p,U,W=-1,Q=arguments.length;if(!Q)return"";for(var Y="";++W<Q;){var z=Number(arguments[W]);if(!isFinite(z)||z<0||z>1114111||n(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(W+1===Q||h.length>v)&&(Y+=i.apply(null,h),h.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R}()})(r)}(st)),st}var xr,bi;function Gr(){return bi||(bi=1,xr={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}),xr}var Ir,mi;function Hr(){if(mi)return Ir;mi=1;var r=Gr().isArray;return Ir={copyOptions:function(a){var l,u={};for(l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);return u},ensureFlagExists:function(a,l){(!(a in l)||typeof l[a]!="boolean")&&(l[a]=!1)},ensureSpacesExists:function(a){(!("spaces"in a)||typeof a.spaces!="number"&&typeof a.spaces!="string")&&(a.spaces=0)},ensureAlwaysArrayExists:function(a){(!("alwaysArray"in a)||typeof a.alwaysArray!="boolean"&&!r(a.alwaysArray))&&(a.alwaysArray=!1)},ensureKeyExists:function(a,l){(!(a+"Key"in l)||typeof l[a+"Key"]!="string")&&(l[a+"Key"]=l.compact?"_"+a:a)},checkFnExists:function(a,l){return a+"Fn"in l}},Ir}var Fr,Ei;function $i(){if(Ei)return Fr;Ei=1;var r=fo(),a=Hr(),l=Gr().isArray,u,w;function y(c){return u=a.copyOptions(c),a.ensureFlagExists("ignoreDeclaration",u),a.ensureFlagExists("ignoreInstruction",u),a.ensureFlagExists("ignoreAttributes",u),a.ensureFlagExists("ignoreText",u),a.ensureFlagExists("ignoreComment",u),a.ensureFlagExists("ignoreCdata",u),a.ensureFlagExists("ignoreDoctype",u),a.ensureFlagExists("compact",u),a.ensureFlagExists("alwaysChildren",u),a.ensureFlagExists("addParent",u),a.ensureFlagExists("trim",u),a.ensureFlagExists("nativeType",u),a.ensureFlagExists("nativeTypeAttributes",u),a.ensureFlagExists("sanitize",u),a.ensureFlagExists("instructionHasAttributes",u),a.ensureFlagExists("captureSpacesBetweenElements",u),a.ensureAlwaysArrayExists(u),a.ensureKeyExists("declaration",u),a.ensureKeyExists("instruction",u),a.ensureKeyExists("attributes",u),a.ensureKeyExists("text",u),a.ensureKeyExists("comment",u),a.ensureKeyExists("cdata",u),a.ensureKeyExists("doctype",u),a.ensureKeyExists("type",u),a.ensureKeyExists("name",u),a.ensureKeyExists("elements",u),a.ensureKeyExists("parent",u),a.checkFnExists("doctype",u),a.checkFnExists("instruction",u),a.checkFnExists("cdata",u),a.checkFnExists("comment",u),a.checkFnExists("text",u),a.checkFnExists("instructionName",u),a.checkFnExists("elementName",u),a.checkFnExists("attributeName",u),a.checkFnExists("attributeValue",u),a.checkFnExists("attributes",u),u}function A(c){var m=Number(c);if(!isNaN(m))return m;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function E(c,m){var s;if(u.compact){if(!w[u[c+"Key"]]&&(l(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(w[u[c+"Key"]]=[]),w[u[c+"Key"]]&&!l(w[u[c+"Key"]])&&(w[u[c+"Key"]]=[w[u[c+"Key"]]]),c+"Fn"in u&&typeof m=="string"&&(m=u[c+"Fn"](m,w)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in m)if(m.hasOwnProperty(s))if("instructionFn"in u)m[s]=u.instructionFn(m[s],s,w);else{var o=m[s];delete m[s],m[u.instructionNameFn(s,o,w)]=o}}l(w[u[c+"Key"]])?w[u[c+"Key"]].push(m):w[u[c+"Key"]]=m}else{w[u.elementsKey]||(w[u.elementsKey]=[]);var g={};if(g[u.typeKey]=c,c==="instruction"){for(s in m)if(m.hasOwnProperty(s))break;g[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,m,w):s,u.instructionHasAttributes?(g[u.attributesKey]=m[s][u.attributesKey],"instructionFn"in u&&(g[u.attributesKey]=u.instructionFn(g[u.attributesKey],s,w))):("instructionFn"in u&&(m[s]=u.instructionFn(m[s],s,w)),g[u.instructionKey]=m[s])}else c+"Fn"in u&&(m=u[c+"Fn"](m,w)),g[u[c+"Key"]]=m;u.addParent&&(g[u.parentKey]=w),w[u.elementsKey].push(g)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,w)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var m;for(m in c)if(c.hasOwnProperty(m)&&(u.trim&&(c[m]=c[m].trim()),u.nativeTypeAttributes&&(c[m]=A(c[m])),"attributeValueFn"in u&&(c[m]=u.attributeValueFn(c[m],m,w)),"attributeNameFn"in u)){var s=c[m];delete c[m],c[u.attributeNameFn(m,c[m],w)]=s}}return c}function B(c){var m={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,o;(o=s.exec(c.body))!==null;)m[o[1]]=o[2]||o[3]||o[4];m=_(m)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;w[u.declarationKey]={},Object.keys(m).length&&(w[u.declarationKey][u.attributesKey]=m),u.addParent&&(w[u.declarationKey][u.parentKey]=w)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var g={};u.instructionHasAttributes&&Object.keys(m).length?(g[c.name]={},g[c.name][u.attributesKey]=m):g[c.name]=c.body,E("instruction",g)}}function C(c,m){var s;if(typeof c=="object"&&(m=c.attributes,c=c.name),m=_(m),"elementNameFn"in u&&(c=u.elementNameFn(c,w)),u.compact){if(s={},!u.ignoreAttributes&&m&&Object.keys(m).length){s[u.attributesKey]={};var o;for(o in m)m.hasOwnProperty(o)&&(s[u.attributesKey][o]=m[o])}!(c in w)&&(l(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(w[c]=[]),w[c]&&!l(w[c])&&(w[c]=[w[c]]),l(w[c])?w[c].push(s):w[c]=s}else w[u.elementsKey]||(w[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&m&&Object.keys(m).length&&(s[u.attributesKey]=m),u.alwaysChildren&&(s[u.elementsKey]=[]),w[u.elementsKey].push(s);s[u.parentKey]=w,w=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),E("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),E("comment",c))}function V(c){var m=w[u.parentKey];u.addParent||delete w[u.parentKey],w=m}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),E("cdata",c))}function G(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),E("doctype",c))}function L(c){c.note=c}return Fr=function(c,m){var s=r.parser(!0,{}),o={};if(w=o,u=y(m),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=V,s.onerror=L,s.oncdata=q,s.ondoctype=G,s.onprocessinginstruction=B,s.write(c).close(),o[u.elementsKey]){var g=o[u.elementsKey];delete o[u.elementsKey],o[u.elementsKey]=g,delete o.text}return o},Fr}var Or,vi;function lo(){if(vi)return Or;vi=1;var r=Hr(),a=$i();function l(u){var w=r.copyOptions(u);return r.ensureSpacesExists(w),w}return Or=function(u,w){var y,A,E,_;return y=l(w),A=a(u,y),_="compact"in y&&y.compact?"_parent":"parent","addParent"in y&&y.addParent?E=JSON.stringify(A,function(B,C){return B===_?"_":C},y.spaces):E=JSON.stringify(A,null,y.spaces),E.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Or}var Br,wi;function Wi(){if(wi)return Br;wi=1;var r=Hr(),a=Gr().isArray,l,u;function w(s){var o=r.copyOptions(s);return r.ensureFlagExists("ignoreDeclaration",o),r.ensureFlagExists("ignoreInstruction",o),r.ensureFlagExists("ignoreAttributes",o),r.ensureFlagExists("ignoreText",o),r.ensureFlagExists("ignoreComment",o),r.ensureFlagExists("ignoreCdata",o),r.ensureFlagExists("ignoreDoctype",o),r.ensureFlagExists("compact",o),r.ensureFlagExists("indentText",o),r.ensureFlagExists("indentCdata",o),r.ensureFlagExists("indentAttributes",o),r.ensureFlagExists("indentInstruction",o),r.ensureFlagExists("fullTagEmptyElement",o),r.ensureFlagExists("noQuotesForNativeAttributes",o),r.ensureSpacesExists(o),typeof o.spaces=="number"&&(o.spaces=Array(o.spaces+1).join(" ")),r.ensureKeyExists("declaration",o),r.ensureKeyExists("instruction",o),r.ensureKeyExists("attributes",o),r.ensureKeyExists("text",o),r.ensureKeyExists("comment",o),r.ensureKeyExists("cdata",o),r.ensureKeyExists("doctype",o),r.ensureKeyExists("type",o),r.ensureKeyExists("name",o),r.ensureKeyExists("elements",o),r.checkFnExists("doctype",o),r.checkFnExists("instruction",o),r.checkFnExists("cdata",o),r.checkFnExists("comment",o),r.checkFnExists("text",o),r.checkFnExists("instructionName",o),r.checkFnExists("elementName",o),r.checkFnExists("attributeName",o),r.checkFnExists("attributeValue",o),r.checkFnExists("attributes",o),r.checkFnExists("fullTagEmptyElement",o),o}function y(s,o,g){return(!g&&s.spaces?`
24
- `:"")+Array(o+1).join(s.spaces)}function A(s,o,g){if(o.ignoreAttributes)return"";"attributesFn"in o&&(s=o.attributesFn(s,u,l));var T,S,F,d,K=[];for(T in s)s.hasOwnProperty(T)&&s[T]!==null&&s[T]!==void 0&&(d=o.noQuotesForNativeAttributes&&typeof s[T]!="string"?"":'"',S=""+s[T],S=S.replace(/"/g,"&quot;"),F="attributeNameFn"in o?o.attributeNameFn(T,S,u,l):T,K.push(o.spaces&&o.indentAttributes?y(o,g+1,!1):" "),K.push(F+"="+d+("attributeValueFn"in o?o.attributeValueFn(S,T,u,l):S)+d));return s&&Object.keys(s).length&&o.spaces&&o.indentAttributes&&K.push(y(o,g,!1)),K.join("")}function E(s,o,g){return l=s,u="xml",o.ignoreDeclaration?"":"<?xml"+A(s[o.attributesKey],o,g)+"?>"}function _(s,o,g){if(o.ignoreInstruction)return"";var T;for(T in s)if(s.hasOwnProperty(T))break;var S="instructionNameFn"in o?o.instructionNameFn(T,s[T],u,l):T;if(typeof s[T]=="object")return l=s,u=S,"<?"+S+A(s[T][o.attributesKey],o,g)+"?>";var F=s[T]?s[T]:"";return"instructionFn"in o&&(F=o.instructionFn(F,T,u,l)),"<?"+S+(F?" "+F:"")+"?>"}function B(s,o){return o.ignoreComment?"":"<!--"+("commentFn"in o?o.commentFn(s,u,l):s)+"-->"}function C(s,o){return o.ignoreCdata?"":"<![CDATA["+("cdataFn"in o?o.cdataFn(s,u,l):s.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function N(s,o){return o.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in o?o.doctypeFn(s,u,l):s)+">"}function P(s,o){return o.ignoreText?"":(s=""+s,s=s.replace(/&amp;/g,"&"),s=s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in o?o.textFn(s,u,l):s)}function V(s,o){var g;if(s.elements&&s.elements.length)for(g=0;g<s.elements.length;++g)switch(s.elements[g][o.typeKey]){case"text":if(o.indentText)return!0;break;case"cdata":if(o.indentCdata)return!0;break;case"instruction":if(o.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function q(s,o,g){l=s,u=s.name;var T=[],S="elementNameFn"in o?o.elementNameFn(s.name,s):s.name;T.push("<"+S),s[o.attributesKey]&&T.push(A(s[o.attributesKey],o,g));var F=s[o.elementsKey]&&s[o.elementsKey].length||s[o.attributesKey]&&s[o.attributesKey]["xml:space"]==="preserve";return F||("fullTagEmptyElementFn"in o?F=o.fullTagEmptyElementFn(s.name,s):F=o.fullTagEmptyElement),F?(T.push(">"),s[o.elementsKey]&&s[o.elementsKey].length&&(T.push(G(s[o.elementsKey],o,g+1)),l=s,u=s.name),T.push(o.spaces&&V(s,o)?`
25
- `+Array(g+1).join(o.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function G(s,o,g,T){return s.reduce(function(S,F){var d=y(o,g,T&&!S);switch(F.type){case"element":return S+d+q(F,o,g);case"comment":return S+d+B(F[o.commentKey],o);case"doctype":return S+d+N(F[o.doctypeKey],o);case"cdata":return S+(o.indentCdata?d:"")+C(F[o.cdataKey],o);case"text":return S+(o.indentText?d:"")+P(F[o.textKey],o);case"instruction":var K={};return K[F[o.nameKey]]=F[o.attributesKey]?F:F[o.instructionKey],S+(o.indentInstruction?d:"")+_(K,o,g)}},"")}function L(s,o,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case o.parentKey:case o.attributesKey:break;case o.textKey:if(o.indentText||g)return!0;break;case o.cdataKey:if(o.indentCdata||g)return!0;break;case o.instructionKey:if(o.indentInstruction||g)return!0;break;case o.doctypeKey:case o.commentKey:return!0;default:return!0}return!1}function c(s,o,g,T,S){l=s,u=o;var F="elementNameFn"in g?g.elementNameFn(o,s):o;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(o,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(o){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(o,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(m(s,g,T+1,!1)),l=s,u=o,o&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function m(s,o,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=a(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case o.declarationKey:K.push(E(d[S],o,g));break;case o.instructionKey:K.push((o.indentInstruction?y(o,g,T):"")+_(d[S],o,g));break;case o.attributesKey:case o.parentKey:break;case o.textKey:K.push((o.indentText?y(o,g,T):"")+P(d[S],o));break;case o.cdataKey:K.push((o.indentCdata?y(o,g,T):"")+C(d[S],o));break;case o.doctypeKey:K.push(y(o,g,T)+N(d[S],o));break;case o.commentKey:K.push(y(o,g,T)+B(d[S],o));break;default:K.push(y(o,g,T)+c(d[S],F,o,g,L(d[S],o)))}T=T&&!K.length}return K.join("")}return Br=function(s,o){o=w(o);var g=[];return l=s,u="_root_",o.compact?g.push(m(s,o,0,!0)):(s[o.declarationKey]&&g.push(E(s[o.declarationKey],o,0)),s[o.elementsKey]&&s[o.elementsKey].length&&g.push(G(s[o.elementsKey],o,0,!g.length))),g.join("")},Br}var Nr,_i;function co(){if(_i)return Nr;_i=1;var r=Wi();return Nr=function(a,l){a instanceof te.Buffer&&(a=a.toString());var u=null;if(typeof a=="string")try{u=JSON.parse(a)}catch{throw new Error("The JSON structure is invalid")}else u=a;return r(u,l)},Nr}var Pr,Ai;function ho(){if(Ai)return Pr;Ai=1;var r=$i(),a=lo(),l=Wi(),u=co();return Pr={xml2js:r,xml2json:a,js2xml:l,json2xml:u},Pr}var po=ho();const yo=me.getDefaultExportFromCjs(po);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function go(r){return r instanceof Uint8Array||ArrayBuffer.isView(r)&&r.constructor.name==="Uint8Array"}function ke(r){if(!Number.isSafeInteger(r)||r<0)throw new Error("positive integer expected, got "+r)}function We(r,...a){if(!go(r))throw new Error("Uint8Array expected");if(a.length>0&&!a.includes(r.length))throw new Error("Uint8Array expected of length "+a+", got length="+r.length)}function Vi(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ke(r.outputLen),ke(r.blockLen)}function tt(r,a=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(a&&r.finished)throw new Error("Hash#digest() has already been called")}function bo(r,a){We(r);const l=a.outputLen;if(r.length<l)throw new Error("digestInto() expects output buffer of length at least "+l)}function Ge(...r){for(let a=0;a<r.length;a++)r[a].fill(0)}function et(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function Yi(r){if(typeof r!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(r))}function Kr(r){return typeof r=="string"&&(r=Yi(r)),We(r),r}function Ti(r){return typeof r=="string"&&(r=Yi(r)),We(r),r}function mo(r,a){if(a!==void 0&&{}.toString.call(a)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(r,a)}class Xi{}function Eo(r){const a=u=>r().update(Kr(u)).digest(),l=r();return a.outputLen=l.outputLen,a.blockLen=l.blockLen,a.create=()=>r(),a}class zi extends Xi{constructor(a,l){super(),this.finished=!1,this.destroyed=!1,Vi(a);const u=Kr(l);if(this.iHash=a.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 w=this.blockLen,y=new Uint8Array(w);y.set(u.length>w?a.create().update(u).digest():u);for(let A=0;A<y.length;A++)y[A]^=54;this.iHash.update(y),this.oHash=a.create();for(let A=0;A<y.length;A++)y[A]^=106;this.oHash.update(y),Ge(y)}update(a){return tt(this),this.iHash.update(a),this}digestInto(a){tt(this),We(a,this.outputLen),this.finished=!0,this.iHash.digestInto(a),this.oHash.update(a),this.oHash.digestInto(a),this.destroy()}digest(){const a=new Uint8Array(this.oHash.outputLen);return this.digestInto(a),a}_cloneInto(a){a||(a=Object.create(Object.getPrototypeOf(this),{}));const{oHash:l,iHash:u,finished:w,destroyed:y,blockLen:A,outputLen:E}=this;return a=a,a.finished=w,a.destroyed=y,a.blockLen=A,a.outputLen=E,a.oHash=l._cloneInto(a.oHash),a.iHash=u._cloneInto(a.iHash),a}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ji=(r,a,l)=>new zi(r,a).update(l).digest();Ji.create=(r,a)=>new zi(r,a);function vo(r,a,l,u){Vi(r);const w=mo({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:E}=w;if(ke(y),ke(A),ke(E),y<1)throw new Error("iterations (c) should be >= 1");const _=Ti(a),B=Ti(l),C=new Uint8Array(A),N=Ji.create(r,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:E,DK:C,PRF:N,PRFSalt:P}}function wo(r,a,l,u,w){return r.destroy(),a.destroy(),u&&u.destroy(),Ge(w),l}function _o(r,a,l,u){const{c:w,dkLen:y,DK:A,PRF:E,PRFSalt:_}=vo(r,a,l,u);let B;const C=new Uint8Array(4),N=et(C),P=new Uint8Array(E.outputLen);for(let V=1,q=0;q<y;V++,q+=E.outputLen){const G=A.subarray(q,q+E.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),G.set(P.subarray(0,G.length));for(let L=1;L<w;L++){E._cloneInto(B).update(P).digestInto(P);for(let c=0;c<G.length;c++)G[c]^=P[c]}}return wo(E,_,A,B,P)}function Ao(r,a,l,u){if(typeof r.setBigUint64=="function")return r.setBigUint64(a,l,u);const w=BigInt(32),y=BigInt(4294967295),A=Number(l>>w&y),E=Number(l&y),_=u?4:0,B=u?0:4;r.setUint32(a+_,A,u),r.setUint32(a+B,E,u)}class To extends Xi{constructor(a,l,u,w){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=a,this.outputLen=l,this.padOffset=u,this.isLE=w,this.buffer=new Uint8Array(a),this.view=et(this.buffer)}update(a){tt(this),a=Kr(a),We(a);const{view:l,buffer:u,blockLen:w}=this,y=a.length;for(let A=0;A<y;){const E=Math.min(w-this.pos,y-A);if(E===w){const _=et(a);for(;w<=y-A;A+=w)this.process(_,A);continue}u.set(a.subarray(A,A+E),this.pos),this.pos+=E,A+=E,this.pos===w&&(this.process(l,0),this.pos=0)}return this.length+=a.length,this.roundClean(),this}digestInto(a){tt(this),bo(a,this),this.finished=!0;const{buffer:l,view:u,blockLen:w,isLE:y}=this;let{pos:A}=this;l[A++]=128,Ge(this.buffer.subarray(A)),this.padOffset>w-A&&(this.process(u,0),A=0);for(let N=A;N<w;N++)l[N]=0;Ao(u,w-8,BigInt(this.length*8),y),this.process(u,0);const E=et(a),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)E.setUint32(4*N,C[N],y)}digest(){const{buffer:a,outputLen:l}=this;this.digestInto(a);const u=a.slice(0,l);return this.destroy(),u}_cloneInto(a){a||(a=new this.constructor),a.set(...this.get());const{blockLen:l,buffer:u,length:w,finished:y,destroyed:A,pos:E}=this;return a.destroyed=A,a.finished=y,a.length=w,a.pos=E,w%l&&a.buffer.set(u),a}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Je=BigInt(2**32-1),Si=BigInt(32);function So(r,a=!1){return a?{h:Number(r&Je),l:Number(r>>Si&Je)}:{h:Number(r>>Si&Je)|0,l:Number(r&Je)|0}}function Ro(r,a=!1){const l=r.length;let u=new Uint32Array(l),w=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:E}=So(r[y],a);[u[y],w[y]]=[A,E]}return[u,w]}const Ri=(r,a,l)=>r>>>l,xi=(r,a,l)=>r<<32-l|a>>>l,De=(r,a,l)=>r>>>l|a<<32-l,Le=(r,a,l)=>r<<32-l|a>>>l,Qe=(r,a,l)=>r<<64-l|a>>>l-32,Ze=(r,a,l)=>r>>>l-32|a<<64-l;function Se(r,a,l,u){const w=(a>>>0)+(u>>>0);return{h:r+l+(w/2**32|0)|0,l:w|0}}const xo=(r,a,l)=>(r>>>0)+(a>>>0)+(l>>>0),Io=(r,a,l,u)=>a+l+u+(r/2**32|0)|0,Fo=(r,a,l,u)=>(r>>>0)+(a>>>0)+(l>>>0)+(u>>>0),Oo=(r,a,l,u,w)=>a+l+u+w+(r/2**32|0)|0,Bo=(r,a,l,u,w)=>(r>>>0)+(a>>>0)+(l>>>0)+(u>>>0)+(w>>>0),No=(r,a,l,u,w,y)=>a+l+u+w+y+(r/2**32|0)|0,Qi=Ro(["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(r=>BigInt(r))),Po=Qi[0],Co=Qi[1],Fe=new Uint32Array(80),Oe=new Uint32Array(80);class Do extends To{constructor(a=64){super(128,a,16,!1),this.Ah=Ee[0]|0,this.Al=Ee[1]|0,this.Bh=Ee[2]|0,this.Bl=Ee[3]|0,this.Ch=Ee[4]|0,this.Cl=Ee[5]|0,this.Dh=Ee[6]|0,this.Dl=Ee[7]|0,this.Eh=Ee[8]|0,this.El=Ee[9]|0,this.Fh=Ee[10]|0,this.Fl=Ee[11]|0,this.Gh=Ee[12]|0,this.Gl=Ee[13]|0,this.Hh=Ee[14]|0,this.Hl=Ee[15]|0}get(){const{Ah:a,Al:l,Bh:u,Bl:w,Ch:y,Cl:A,Dh:E,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:G,Hl:L}=this;return[a,l,u,w,y,A,E,_,B,C,N,P,V,q,G,L]}set(a,l,u,w,y,A,E,_,B,C,N,P,V,q,G,L){this.Ah=a|0,this.Al=l|0,this.Bh=u|0,this.Bl=w|0,this.Ch=y|0,this.Cl=A|0,this.Dh=E|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=G|0,this.Hl=L|0}process(a,l){for(let s=0;s<16;s++,l+=4)Fe[s]=a.getUint32(l),Oe[s]=a.getUint32(l+=4);for(let s=16;s<80;s++){const o=Fe[s-15]|0,g=Oe[s-15]|0,T=De(o,g,1)^De(o,g,8)^Ri(o,g,7),S=Le(o,g,1)^Le(o,g,8)^xi(o,g,7),F=Fe[s-2]|0,d=Oe[s-2]|0,K=De(F,d,19)^Qe(F,d,61)^Ri(F,d,6),X=Le(F,d,19)^Ze(F,d,61)^xi(F,d,6),x=Fo(S,X,Oe[s-7],Oe[s-16]),ee=Oo(x,T,K,Fe[s-7],Fe[s-16]);Fe[s]=ee|0,Oe[s]=x|0}let{Ah:u,Al:w,Bh:y,Bl:A,Ch:E,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:G,Gl:L,Hh:c,Hl:m}=this;for(let s=0;s<80;s++){const o=De(N,P,14)^De(N,P,18)^Qe(N,P,41),g=Le(N,P,14)^Le(N,P,18)^Ze(N,P,41),T=N&V^~N&G,S=P&q^~P&L,F=Bo(m,g,S,Co[s],Oe[s]),d=No(F,c,o,T,Po[s],Fe[s]),K=F|0,X=De(u,w,28)^Qe(u,w,34)^Qe(u,w,39),x=Le(u,w,28)^Ze(u,w,34)^Ze(u,w,39),ee=u&y^u&E^y&E,re=w&A^w&_^A&_;c=G|0,m=L|0,G=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=E|0,C=_|0,E=y|0,_=A|0,y=u|0,A=w|0;const ie=xo(K,x,re);u=Io(ie,d,X,ee),w=ie|0}({h:u,l:w}=Se(this.Ah|0,this.Al|0,u|0,w|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:E,l:_}=Se(this.Ch|0,this.Cl|0,E|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=Se(this.Fh|0,this.Fl|0,V|0,q|0),{h:G,l:L}=Se(this.Gh|0,this.Gl|0,G|0,L|0),{h:c,l:m}=Se(this.Hh|0,this.Hl|0,c|0,m|0),this.set(u,w,y,A,E,_,B,C,N,P,V,q,G,L,c,m)}roundClean(){Ge(Fe,Oe)}destroy(){Ge(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Lo=Eo(()=>new Do),Mo=Lo,Uo=(r,a,l,u)=>te.Buffer.from(_o(Mo,r,a,{c:l,dkLen:u}));class jo{constructor({axiosClient:a,baseURI:l}){Ie(this,"axiosClient");Ie(this,"baseURI");Ie(this,"signingKey");Ie(this,"ALGORITHM","sha512");Ie(this,"TTL",1200);Ie(this,"HASH_LENGTH",32);Ie(this,"ITERATION_COUNT",1e4);this.axiosClient=a,this.baseURI=l}async signUrl(a,l){const u=new URL(a);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const w=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",w),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const a=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=yo.xml2js(a.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(a){const l=await this.getSignKey();return Uo(a,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const qo=(r,a)=>{const l=new URL(r);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,w=Ii(u,a),y=new jo({baseURI:r,axiosClient:a});return{getCapabilities:()=>w.getCapabilities(),signUrl:(A,E)=>y.signUrl(A,E)}};exports.GetCapabilitiesFactory=Ii;exports.ocs=qo;
19
+ Char: `+i.c),r=new Error(r),i.error=r,X(i,"onerror",r),i}function le(i){return i.sawRoot&&!i.closedRoot&&Z(i,"Unclosed root tag"),i.state!==d.BEGIN&&i.state!==d.BEGIN_WHITESPACE&&i.state!==d.TEXT&&ie(i,"Unexpected end"),ee(i),i.c="",i.closed=!0,X(i,"onend"),u.call(i,i.strict,i.opt),i}function Z(i,r){if(typeof i!="object"||!(i instanceof u))throw new Error("bad call to strictFail");i.strict&&ie(i,r)}function ce(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var r=i.tags[i.tags.length-1]||i,R=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(R.ns=r.ns),i.attribList.length=0,x(i,"onopentagstart",R)}function oe(i,r){var R=i.indexOf(":"),w=R<0?["",i]:i.split(":"),h=w[0],p=w[1];return r&&i==="xmlns"&&(h="xmlns",p=""),{prefix:h,local:p}}function ye(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var r=oe(i.attribName,!0),R=r.prefix,w=r.local;if(R==="xmlns")if(w==="xml"&&i.attribValue!==V)Z(i,"xml: prefix must be bound to "+V+`
20
+ Actual: `+i.attribValue);else if(w==="xmlns"&&i.attribValue!==q)Z(i,"xmlns: prefix must be bound to "+q+`
21
+ Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.ns&&(h.ns=Object.create(p.ns)),h.ns[w]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,x(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function ge(i,r){if(i.opt.xmlns){var R=i.tag,w=oe(i.tagName);R.prefix=w.prefix,R.local=w.local,R.uri=R.ns[w.prefix]||"",R.prefix&&!R.uri&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),R.uri=w.prefix);var h=i.tags[i.tags.length-1]||i;R.ns&&h.ns!==R.ns&&Object.keys(R.ns).forEach(function(ae){x(i,"onopennamespace",{prefix:ae,uri:R.ns[ae]})});for(var p=0,U=i.attribList.length;p<U;p++){var W=i.attribList[p],Q=W[0],Y=W[1],z=oe(Q,!0),se=z.prefix,k=z.local,ve=se===""?"":R.ns[se]||"",be={name:Q,value:Y,prefix:se,local:k,uri:ve};se&&se!=="xmlns"&&!ve&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(se)),be.uri=se),i.tag.attributes[Q]=be,x(i,"onattribute",be)}i.attribList.length=0}i.tag.isSelfClosing=!!r,i.sawRoot=!0,i.tags.push(i.tag),x(i,"onopentag",i.tag),r||(!i.noscript&&i.tagName.toLowerCase()==="script"?i.state=d.SCRIPT:i.state=d.TEXT,i.tag=null,i.tagName=""),i.attribName=i.attribValue="",i.attribList.length=0}function D(i){if(!i.tagName){Z(i,"Weird empty close tag."),i.textNode+="</>",i.state=d.TEXT;return}if(i.script){if(i.tagName!=="script"){i.script+="</"+i.tagName+">",i.tagName="",i.state=d.SCRIPT;return}x(i,"onscript",i.script),i.script=""}var r=i.tags.length,R=i.tagName;i.strict||(R=R[i.looseCase]());for(var w=R;r--;){var h=i.tags[r];if(h.name!==w)Z(i,"Unexpected close tag");else break}if(r<0){Z(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",i.state=d.TEXT;return}i.tagName=R;for(var p=i.tags.length;p-- >r;){var U=i.tag=i.tags.pop();i.tagName=i.tag.name,x(i,"onclosetag",i.tagName);var W={};for(var Q in U.ns)W[Q]=U.ns[Q];var Y=i.tags[i.tags.length-1]||i;i.opt.xmlns&&U.ns!==Y.ns&&Object.keys(U.ns).forEach(function(z){var se=U.ns[z];x(i,"onclosenamespace",{prefix:z,uri:se})})}r===0&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=d.TEXT}function j(i){var r=i.entity,R=r.toLowerCase(),w,h="";return i.ENTITIES[r]?i.ENTITIES[r]:i.ENTITIES[R]?i.ENTITIES[R]:(r=R,r.charAt(0)==="#"&&(r.charAt(1)==="x"?(r=r.slice(2),w=parseInt(r,16),h=w.toString(16)):(r=r.slice(1),w=parseInt(r,10),h=w.toString(10))),r=r.replace(/^0+/,""),isNaN(w)||h.toLowerCase()!==r?(Z(i,"Invalid character entity"),"&"+i.entity+";"):String.fromCodePoint(w))}function $(i,r){r==="<"?(i.state=d.OPEN_WAKA,i.startTagPosition=i.position):a(r)||(Z(i,"Non-whitespace before first tag."),i.textNode=r,i.state=d.TEXT)}function J(i,r){var R="";return r<i.length&&(R=i.charAt(r)),R}function O(i){var r=this;if(this.error)throw this.error;if(r.closed)return ie(r,"Cannot write after close. Assign an onready handler.");if(i===null)return le(r);typeof i=="object"&&(i=i.toString());for(var R=0,w="";w=J(i,R++),r.c=w,!!w;)switch(r.trackPosition&&(r.position++,w===`
22
+ `?(r.line++,r.column=0):r.column++),r.state){case d.BEGIN:if(r.state=d.BEGIN_WHITESPACE,w==="\uFEFF")continue;$(r,w);continue;case d.BEGIN_WHITESPACE:$(r,w);continue;case d.TEXT:if(r.sawRoot&&!r.closedRoot){for(var h=R-1;w&&w!=="<"&&w!=="&";)w=J(i,R++),w&&r.trackPosition&&(r.position++,w===`
23
+ `?(r.line++,r.column=0):r.column++);r.textNode+=i.substring(h,R-1)}w==="<"&&!(r.sawRoot&&r.closedRoot&&!r.strict)?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):(!a(w)&&(!r.sawRoot||r.closedRoot)&&Z(r,"Text data outside of root node."),w==="&"?r.state=d.TEXT_ENTITY:r.textNode+=w);continue;case d.SCRIPT:w==="<"?r.state=d.SCRIPT_ENDING:r.script+=w;continue;case d.SCRIPT_ENDING:w==="/"?r.state=d.CLOSE_TAG:(r.script+="<"+w,r.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(w==="!")r.state=d.SGML_DECL,r.sgmlDecl="";else if(!a(w))if(S(L,w))r.state=d.OPEN_TAG,r.tagName=w;else if(w==="/")r.state=d.CLOSE_TAG,r.tagName="";else if(w==="?")r.state=d.PROC_INST,r.procInstName=r.procInstBody="";else{if(Z(r,"Unencoded <"),r.startTagPosition+1<r.position){var p=r.position-r.startTagPosition;w=new Array(p).join(" ")+w}r.textNode+="<"+w,r.state=d.TEXT}continue;case d.SGML_DECL:if(r.sgmlDecl+w==="--"){r.state=d.COMMENT,r.comment="",r.sgmlDecl="";continue}r.doctype&&r.doctype!==!0&&r.sgmlDecl?(r.state=d.DOCTYPE_DTD,r.doctype+="<!"+r.sgmlDecl+w,r.sgmlDecl=""):(r.sgmlDecl+w).toUpperCase()===N?(x(r,"onopencdata"),r.state=d.CDATA,r.sgmlDecl="",r.cdata=""):(r.sgmlDecl+w).toUpperCase()===P?(r.state=d.DOCTYPE,(r.doctype||r.sawRoot)&&Z(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):w===">"?(x(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=d.TEXT):(g(w)&&(r.state=d.SGML_DECL_QUOTED),r.sgmlDecl+=w);continue;case d.SGML_DECL_QUOTED:w===r.q&&(r.state=d.SGML_DECL,r.q=""),r.sgmlDecl+=w;continue;case d.DOCTYPE:w===">"?(r.state=d.TEXT,x(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=w,w==="["?r.state=d.DOCTYPE_DTD:g(w)&&(r.state=d.DOCTYPE_QUOTED,r.q=w));continue;case d.DOCTYPE_QUOTED:r.doctype+=w,w===r.q&&(r.q="",r.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:w==="]"?(r.doctype+=w,r.state=d.DOCTYPE):w==="<"?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):g(w)?(r.doctype+=w,r.state=d.DOCTYPE_DTD_QUOTED,r.q=w):r.doctype+=w;continue;case d.DOCTYPE_DTD_QUOTED:r.doctype+=w,w===r.q&&(r.state=d.DOCTYPE_DTD,r.q="");continue;case d.COMMENT:w==="-"?r.state=d.COMMENT_ENDING:r.comment+=w;continue;case d.COMMENT_ENDING:w==="-"?(r.state=d.COMMENT_ENDED,r.comment=re(r.opt,r.comment),r.comment&&x(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+w,r.state=d.COMMENT);continue;case d.COMMENT_ENDED:w!==">"?(Z(r,"Malformed comment"),r.comment+="--"+w,r.state=d.COMMENT):r.doctype&&r.doctype!==!0?r.state=d.DOCTYPE_DTD:r.state=d.TEXT;continue;case d.CDATA:w==="]"?r.state=d.CDATA_ENDING:r.cdata+=w;continue;case d.CDATA_ENDING:w==="]"?r.state=d.CDATA_ENDING_2:(r.cdata+="]"+w,r.state=d.CDATA);continue;case d.CDATA_ENDING_2:w===">"?(r.cdata&&x(r,"oncdata",r.cdata),x(r,"onclosecdata"),r.cdata="",r.state=d.TEXT):w==="]"?r.cdata+="]":(r.cdata+="]]"+w,r.state=d.CDATA);continue;case d.PROC_INST:w==="?"?r.state=d.PROC_INST_ENDING:a(w)?r.state=d.PROC_INST_BODY:r.procInstName+=w;continue;case d.PROC_INST_BODY:if(!r.procInstBody&&a(w))continue;w==="?"?r.state=d.PROC_INST_ENDING:r.procInstBody+=w;continue;case d.PROC_INST_ENDING:w===">"?(x(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=d.TEXT):(r.procInstBody+="?"+w,r.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,w)?r.tagName+=w:(ce(r),w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:(a(w)||Z(r,"Invalid character in tag name"),r.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:w===">"?(ge(r,!0),D(r)):(Z(r,"Forward-slash in opening tag not followed by >"),r.state=d.ATTRIB);continue;case d.ATTRIB:if(a(w))continue;w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME:w==="="?r.state=d.ATTRIB_VALUE:w===">"?(Z(r,"Attribute without value"),r.attribValue=r.attribName,ye(r),ge(r)):a(w)?r.state=d.ATTRIB_NAME_SAW_WHITE:S(c,w)?r.attribName+=w:Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(w==="=")r.state=d.ATTRIB_VALUE;else{if(a(w))continue;Z(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",x(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",w===">"?ge(r):S(L,w)?(r.attribName=w,r.state=d.ATTRIB_NAME):(Z(r,"Invalid attribute name"),r.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(a(w))continue;g(w)?(r.q=w,r.state=d.ATTRIB_VALUE_QUOTED):(r.opt.unquotedAttributeValues||ie(r,"Unquoted attribute value"),r.state=d.ATTRIB_VALUE_UNQUOTED,r.attribValue=w);continue;case d.ATTRIB_VALUE_QUOTED:if(w!==r.q){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=w;continue}ye(r),r.q="",r.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:a(w)?r.state=d.ATTRIB:w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(Z(r,"No whitespace between attributes"),r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(w)){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_U:r.attribValue+=w;continue}ye(r),w===">"?ge(r):r.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(r.tagName)w===">"?D(r):S(c,w)?r.tagName+=w:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=d.SCRIPT):(a(w)||Z(r,"Invalid tagname in closing tag"),r.state=d.CLOSE_TAG_SAW_WHITE);else{if(a(w))continue;F(L,w)?r.script?(r.script+="</"+w,r.state=d.SCRIPT):Z(r,"Invalid tagname in closing tag."):r.tagName=w}continue;case d.CLOSE_TAG_SAW_WHITE:if(a(w))continue;w===">"?D(r):Z(r,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,W;switch(r.state){case d.TEXT_ENTITY:U=d.TEXT,W="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,W="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,W="attribValue";break}if(w===";"){var Q=j(r);r.opt.unparsedEntities&&!Object.values(o.XML_ENTITIES).includes(Q)?(r.entity="",r.state=U,r.write(Q)):(r[W]+=Q,r.entity="",r.state=U)}else S(r.entity.length?s:E,w)?r.entity+=w:(Z(r,"Invalid character in entity name"),r[W]+="&"+r.entity+w,r.entity="",r.state=U);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&m(r),r}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var i=String.fromCharCode,r=Math.floor,R=function(){var w=16384,h=[],p,U,W=-1,Q=arguments.length;if(!Q)return"";for(var Y="";++W<Q;){var z=Number(arguments[W]);if(!isFinite(z)||z<0||z>1114111||r(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(W+1===Q||h.length>w)&&(Y+=i.apply(null,h),h.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R})()})(n)})(ut)),ut}var Rr,yi;function kr(){return yi||(yi=1,Rr={isArray:function(n){return Array.isArray?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"}}),Rr}var xr,gi;function Hr(){if(gi)return xr;gi=1;var n=kr().isArray;return xr={copyOptions:function(o){var l,u={};for(l in o)o.hasOwnProperty(l)&&(u[l]=o[l]);return u},ensureFlagExists:function(o,l){(!(o in l)||typeof l[o]!="boolean")&&(l[o]=!1)},ensureSpacesExists:function(o){(!("spaces"in o)||typeof o.spaces!="number"&&typeof o.spaces!="string")&&(o.spaces=0)},ensureAlwaysArrayExists:function(o){(!("alwaysArray"in o)||typeof o.alwaysArray!="boolean"&&!n(o.alwaysArray))&&(o.alwaysArray=!1)},ensureKeyExists:function(o,l){(!(o+"Key"in l)||typeof l[o+"Key"]!="string")&&(l[o+"Key"]=l.compact?"_"+o:o)},checkFnExists:function(o,l){return o+"Fn"in l}},xr}var Ir,bi;function Gi(){if(bi)return Ir;bi=1;var n=no(),o=Hr(),l=kr().isArray,u,m;function y(c){return u=o.copyOptions(c),o.ensureFlagExists("ignoreDeclaration",u),o.ensureFlagExists("ignoreInstruction",u),o.ensureFlagExists("ignoreAttributes",u),o.ensureFlagExists("ignoreText",u),o.ensureFlagExists("ignoreComment",u),o.ensureFlagExists("ignoreCdata",u),o.ensureFlagExists("ignoreDoctype",u),o.ensureFlagExists("compact",u),o.ensureFlagExists("alwaysChildren",u),o.ensureFlagExists("addParent",u),o.ensureFlagExists("trim",u),o.ensureFlagExists("nativeType",u),o.ensureFlagExists("nativeTypeAttributes",u),o.ensureFlagExists("sanitize",u),o.ensureFlagExists("instructionHasAttributes",u),o.ensureFlagExists("captureSpacesBetweenElements",u),o.ensureAlwaysArrayExists(u),o.ensureKeyExists("declaration",u),o.ensureKeyExists("instruction",u),o.ensureKeyExists("attributes",u),o.ensureKeyExists("text",u),o.ensureKeyExists("comment",u),o.ensureKeyExists("cdata",u),o.ensureKeyExists("doctype",u),o.ensureKeyExists("type",u),o.ensureKeyExists("name",u),o.ensureKeyExists("elements",u),o.ensureKeyExists("parent",u),o.checkFnExists("doctype",u),o.checkFnExists("instruction",u),o.checkFnExists("cdata",u),o.checkFnExists("comment",u),o.checkFnExists("text",u),o.checkFnExists("instructionName",u),o.checkFnExists("elementName",u),o.checkFnExists("attributeName",u),o.checkFnExists("attributeValue",u),o.checkFnExists("attributes",u),u}function A(c){var E=Number(c);if(!isNaN(E))return E;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function v(c,E){var s;if(u.compact){if(!m[u[c+"Key"]]&&(l(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(m[u[c+"Key"]]=[]),m[u[c+"Key"]]&&!l(m[u[c+"Key"]])&&(m[u[c+"Key"]]=[m[u[c+"Key"]]]),c+"Fn"in u&&typeof E=="string"&&(E=u[c+"Fn"](E,m)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in E)if(E.hasOwnProperty(s))if("instructionFn"in u)E[s]=u.instructionFn(E[s],s,m);else{var a=E[s];delete E[s],E[u.instructionNameFn(s,a,m)]=a}}l(m[u[c+"Key"]])?m[u[c+"Key"]].push(E):m[u[c+"Key"]]=E}else{m[u.elementsKey]||(m[u.elementsKey]=[]);var g={};if(g[u.typeKey]=c,c==="instruction"){for(s in E)if(E.hasOwnProperty(s))break;g[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,E,m):s,u.instructionHasAttributes?(g[u.attributesKey]=E[s][u.attributesKey],"instructionFn"in u&&(g[u.attributesKey]=u.instructionFn(g[u.attributesKey],s,m))):("instructionFn"in u&&(E[s]=u.instructionFn(E[s],s,m)),g[u.instructionKey]=E[s])}else c+"Fn"in u&&(E=u[c+"Fn"](E,m)),g[u[c+"Key"]]=E;u.addParent&&(g[u.parentKey]=m),m[u.elementsKey].push(g)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,m)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var E;for(E in c)if(c.hasOwnProperty(E)&&(u.trim&&(c[E]=c[E].trim()),u.nativeTypeAttributes&&(c[E]=A(c[E])),"attributeValueFn"in u&&(c[E]=u.attributeValueFn(c[E],E,m)),"attributeNameFn"in u)){var s=c[E];delete c[E],c[u.attributeNameFn(E,c[E],m)]=s}}return c}function B(c){var E={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=s.exec(c.body))!==null;)E[a[1]]=a[2]||a[3]||a[4];E=_(E)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;m[u.declarationKey]={},Object.keys(E).length&&(m[u.declarationKey][u.attributesKey]=E),u.addParent&&(m[u.declarationKey][u.parentKey]=m)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var g={};u.instructionHasAttributes&&Object.keys(E).length?(g[c.name]={},g[c.name][u.attributesKey]=E):g[c.name]=c.body,v("instruction",g)}}function C(c,E){var s;if(typeof c=="object"&&(E=c.attributes,c=c.name),E=_(E),"elementNameFn"in u&&(c=u.elementNameFn(c,m)),u.compact){if(s={},!u.ignoreAttributes&&E&&Object.keys(E).length){s[u.attributesKey]={};var a;for(a in E)E.hasOwnProperty(a)&&(s[u.attributesKey][a]=E[a])}!(c in m)&&(l(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(m[c]=[]),m[c]&&!l(m[c])&&(m[c]=[m[c]]),l(m[c])?m[c].push(s):m[c]=s}else m[u.elementsKey]||(m[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&E&&Object.keys(E).length&&(s[u.attributesKey]=E),u.alwaysChildren&&(s[u.elementsKey]=[]),m[u.elementsKey].push(s);s[u.parentKey]=m,m=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),v("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),v("comment",c))}function V(c){var E=m[u.parentKey];u.addParent||delete m[u.parentKey],m=E}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),v("cdata",c))}function H(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),v("doctype",c))}function L(c){c.note=c}return Ir=function(c,E){var s=n.parser(!0,{}),a={};if(m=a,u=y(E),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=V,s.onerror=L,s.oncdata=q,s.ondoctype=H,s.onprocessinginstruction=B,s.write(c).close(),a[u.elementsKey]){var g=a[u.elementsKey];delete a[u.elementsKey],a[u.elementsKey]=g,delete a.text}return a},Ir}var Fr,mi;function io(){if(mi)return Fr;mi=1;var n=Hr(),o=Gi();function l(u){var m=n.copyOptions(u);return n.ensureSpacesExists(m),m}return Fr=function(u,m){var y,A,v,_;return y=l(m),A=o(u,y),_="compact"in y&&y.compact?"_parent":"parent","addParent"in y&&y.addParent?v=JSON.stringify(A,function(B,C){return B===_?"_":C},y.spaces):v=JSON.stringify(A,null,y.spaces),v.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Fr}var Or,Ei;function Ki(){if(Ei)return Or;Ei=1;var n=Hr(),o=kr().isArray,l,u;function m(s){var a=n.copyOptions(s);return n.ensureFlagExists("ignoreDeclaration",a),n.ensureFlagExists("ignoreInstruction",a),n.ensureFlagExists("ignoreAttributes",a),n.ensureFlagExists("ignoreText",a),n.ensureFlagExists("ignoreComment",a),n.ensureFlagExists("ignoreCdata",a),n.ensureFlagExists("ignoreDoctype",a),n.ensureFlagExists("compact",a),n.ensureFlagExists("indentText",a),n.ensureFlagExists("indentCdata",a),n.ensureFlagExists("indentAttributes",a),n.ensureFlagExists("indentInstruction",a),n.ensureFlagExists("fullTagEmptyElement",a),n.ensureFlagExists("noQuotesForNativeAttributes",a),n.ensureSpacesExists(a),typeof a.spaces=="number"&&(a.spaces=Array(a.spaces+1).join(" ")),n.ensureKeyExists("declaration",a),n.ensureKeyExists("instruction",a),n.ensureKeyExists("attributes",a),n.ensureKeyExists("text",a),n.ensureKeyExists("comment",a),n.ensureKeyExists("cdata",a),n.ensureKeyExists("doctype",a),n.ensureKeyExists("type",a),n.ensureKeyExists("name",a),n.ensureKeyExists("elements",a),n.checkFnExists("doctype",a),n.checkFnExists("instruction",a),n.checkFnExists("cdata",a),n.checkFnExists("comment",a),n.checkFnExists("text",a),n.checkFnExists("instructionName",a),n.checkFnExists("elementName",a),n.checkFnExists("attributeName",a),n.checkFnExists("attributeValue",a),n.checkFnExists("attributes",a),n.checkFnExists("fullTagEmptyElement",a),a}function y(s,a,g){return(!g&&s.spaces?`
24
+ `:"")+Array(a+1).join(s.spaces)}function A(s,a,g){if(a.ignoreAttributes)return"";"attributesFn"in a&&(s=a.attributesFn(s,u,l));var T,S,F,d,K=[];for(T in s)s.hasOwnProperty(T)&&s[T]!==null&&s[T]!==void 0&&(d=a.noQuotesForNativeAttributes&&typeof s[T]!="string"?"":'"',S=""+s[T],S=S.replace(/"/g,"&quot;"),F="attributeNameFn"in a?a.attributeNameFn(T,S,u,l):T,K.push(a.spaces&&a.indentAttributes?y(a,g+1,!1):" "),K.push(F+"="+d+("attributeValueFn"in a?a.attributeValueFn(S,T,u,l):S)+d));return s&&Object.keys(s).length&&a.spaces&&a.indentAttributes&&K.push(y(a,g,!1)),K.join("")}function v(s,a,g){return l=s,u="xml",a.ignoreDeclaration?"":"<?xml"+A(s[a.attributesKey],a,g)+"?>"}function _(s,a,g){if(a.ignoreInstruction)return"";var T;for(T in s)if(s.hasOwnProperty(T))break;var S="instructionNameFn"in a?a.instructionNameFn(T,s[T],u,l):T;if(typeof s[T]=="object")return l=s,u=S,"<?"+S+A(s[T][a.attributesKey],a,g)+"?>";var F=s[T]?s[T]:"";return"instructionFn"in a&&(F=a.instructionFn(F,T,u,l)),"<?"+S+(F?" "+F:"")+"?>"}function B(s,a){return a.ignoreComment?"":"<!--"+("commentFn"in a?a.commentFn(s,u,l):s)+"-->"}function C(s,a){return a.ignoreCdata?"":"<![CDATA["+("cdataFn"in a?a.cdataFn(s,u,l):s.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function N(s,a){return a.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in a?a.doctypeFn(s,u,l):s)+">"}function P(s,a){return a.ignoreText?"":(s=""+s,s=s.replace(/&amp;/g,"&"),s=s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in a?a.textFn(s,u,l):s)}function V(s,a){var g;if(s.elements&&s.elements.length)for(g=0;g<s.elements.length;++g)switch(s.elements[g][a.typeKey]){case"text":if(a.indentText)return!0;break;case"cdata":if(a.indentCdata)return!0;break;case"instruction":if(a.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function q(s,a,g){l=s,u=s.name;var T=[],S="elementNameFn"in a?a.elementNameFn(s.name,s):s.name;T.push("<"+S),s[a.attributesKey]&&T.push(A(s[a.attributesKey],a,g));var F=s[a.elementsKey]&&s[a.elementsKey].length||s[a.attributesKey]&&s[a.attributesKey]["xml:space"]==="preserve";return F||("fullTagEmptyElementFn"in a?F=a.fullTagEmptyElementFn(s.name,s):F=a.fullTagEmptyElement),F?(T.push(">"),s[a.elementsKey]&&s[a.elementsKey].length&&(T.push(H(s[a.elementsKey],a,g+1)),l=s,u=s.name),T.push(a.spaces&&V(s,a)?`
25
+ `+Array(g+1).join(a.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function H(s,a,g,T){return s.reduce(function(S,F){var d=y(a,g,T&&!S);switch(F.type){case"element":return S+d+q(F,a,g);case"comment":return S+d+B(F[a.commentKey],a);case"doctype":return S+d+N(F[a.doctypeKey],a);case"cdata":return S+(a.indentCdata?d:"")+C(F[a.cdataKey],a);case"text":return S+(a.indentText?d:"")+P(F[a.textKey],a);case"instruction":var K={};return K[F[a.nameKey]]=F[a.attributesKey]?F:F[a.instructionKey],S+(a.indentInstruction?d:"")+_(K,a,g)}},"")}function L(s,a,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case a.parentKey:case a.attributesKey:break;case a.textKey:if(a.indentText||g)return!0;break;case a.cdataKey:if(a.indentCdata||g)return!0;break;case a.instructionKey:if(a.indentInstruction||g)return!0;break;case a.doctypeKey:case a.commentKey:return!0;default:return!0}return!1}function c(s,a,g,T,S){l=s,u=a;var F="elementNameFn"in g?g.elementNameFn(a,s):a;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(a,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(a){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(a,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(E(s,g,T+1,!1)),l=s,u=a,a&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function E(s,a,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=o(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case a.declarationKey:K.push(v(d[S],a,g));break;case a.instructionKey:K.push((a.indentInstruction?y(a,g,T):"")+_(d[S],a,g));break;case a.attributesKey:case a.parentKey:break;case a.textKey:K.push((a.indentText?y(a,g,T):"")+P(d[S],a));break;case a.cdataKey:K.push((a.indentCdata?y(a,g,T):"")+C(d[S],a));break;case a.doctypeKey:K.push(y(a,g,T)+N(d[S],a));break;case a.commentKey:K.push(y(a,g,T)+B(d[S],a));break;default:K.push(y(a,g,T)+c(d[S],F,a,g,L(d[S],a)))}T=T&&!K.length}return K.join("")}return Or=function(s,a){a=m(a);var g=[];return l=s,u="_root_",a.compact?g.push(E(s,a,0,!0)):(s[a.declarationKey]&&g.push(v(s[a.declarationKey],a,0)),s[a.elementsKey]&&s[a.elementsKey].length&&g.push(H(s[a.elementsKey],a,0,!g.length))),g.join("")},Or}var Br,vi;function ao(){if(vi)return Br;vi=1;var n=Ki();return Br=function(o,l){o instanceof te.Buffer&&(o=o.toString());var u=null;if(typeof o=="string")try{u=JSON.parse(o)}catch{throw new Error("The JSON structure is invalid")}else u=o;return n(u,l)},Br}var Nr,wi;function oo(){if(wi)return Nr;wi=1;var n=Gi(),o=io(),l=Ki(),u=ao();return Nr={xml2js:n,xml2json:o,js2xml:l,json2xml:u},Nr}var uo=oo();const so=me.getDefaultExportFromCjs(uo);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function fo(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function qe(n,o=""){if(!Number.isSafeInteger(n)||n<0){const l=o&&`"${o}" `;throw new Error(`${l}expected integer >0, got ${n}`)}}function ke(n,o,l=""){const u=fo(n),m=n?.length,y=o!==void 0;if(!u||y&&m!==o){const A=l&&`"${l}" `,v=y?` of length ${o}`:"",_=u?`length=${m}`:`type=${typeof n}`;throw new Error(A+"expected Uint8Array"+v+", got "+_)}return n}function $i(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash must wrapped by utils.createHasher");qe(n.outputLen),qe(n.blockLen)}function et(n,o=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(o&&n.finished)throw new Error("Hash#digest() has already been called")}function lo(n,o){ke(n,void 0,"digestInto() output");const l=o.outputLen;if(n.length<l)throw new Error('"digestInto() output" expected to be of length >='+l)}function He(...n){for(let o=0;o<n.length;o++)n[o].fill(0)}function Ze(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function co(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function _i(n,o=""){return typeof n=="string"?co(n):ke(n,void 0,o)}function ho(n,o){if(o!==void 0&&{}.toString.call(o)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(n,o)}function po(n,o={}){const l=(m,y)=>n(y).update(m).digest(),u=n(void 0);return l.outputLen=u.outputLen,l.blockLen=u.blockLen,l.create=m=>n(m),Object.assign(l,o),Object.freeze(l)}const yo=n=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,n])});class Wi{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(o,l){if($i(o),ke(l,void 0,"key"),this.iHash=o.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 u=this.blockLen,m=new Uint8Array(u);m.set(l.length>u?o.create().update(l).digest():l);for(let y=0;y<m.length;y++)m[y]^=54;this.iHash.update(m),this.oHash=o.create();for(let y=0;y<m.length;y++)m[y]^=106;this.oHash.update(m),He(m)}update(o){return et(this),this.iHash.update(o),this}digestInto(o){et(this),ke(o,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||=Object.create(Object.getPrototypeOf(this),{});const{oHash:l,iHash:u,finished:m,destroyed:y,blockLen:A,outputLen:v}=this;return o=o,o.finished=m,o.destroyed=y,o.blockLen=A,o.outputLen=v,o.oHash=l._cloneInto(o.oHash),o.iHash=u._cloneInto(o.iHash),o}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Vi=(n,o,l)=>new Wi(n,o).update(l).digest();Vi.create=(n,o)=>new Wi(n,o);function go(n,o,l,u){$i(n);const m=ho({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:v}=m;if(qe(y,"c"),qe(A,"dkLen"),qe(v,"asyncTick"),y<1)throw new Error("iterations (c) must be >= 1");const _=_i(o,"password"),B=_i(l,"salt"),C=new Uint8Array(A),N=Vi.create(n,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:v,DK:C,PRF:N,PRFSalt:P}}function bo(n,o,l,u,m){return n.destroy(),o.destroy(),u&&u.destroy(),He(m),l}function mo(n,o,l,u){const{c:m,dkLen:y,DK:A,PRF:v,PRFSalt:_}=go(n,o,l,u);let B;const C=new Uint8Array(4),N=Ze(C),P=new Uint8Array(v.outputLen);for(let V=1,q=0;q<y;V++,q+=v.outputLen){const H=A.subarray(q,q+v.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),H.set(P.subarray(0,H.length));for(let L=1;L<m;L++){v._cloneInto(B).update(P).digestInto(P);for(let c=0;c<H.length;c++)H[c]^=P[c]}}return bo(v,_,A,B,P)}class Eo{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(o,l,u,m){this.blockLen=o,this.outputLen=l,this.padOffset=u,this.isLE=m,this.buffer=new Uint8Array(o),this.view=Ze(this.buffer)}update(o){et(this),ke(o);const{view:l,buffer:u,blockLen:m}=this,y=o.length;for(let A=0;A<y;){const v=Math.min(m-this.pos,y-A);if(v===m){const _=Ze(o);for(;m<=y-A;A+=m)this.process(_,A);continue}u.set(o.subarray(A,A+v),this.pos),this.pos+=v,A+=v,this.pos===m&&(this.process(l,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){et(this),lo(o,this),this.finished=!0;const{buffer:l,view:u,blockLen:m,isLE:y}=this;let{pos:A}=this;l[A++]=128,He(this.buffer.subarray(A)),this.padOffset>m-A&&(this.process(u,0),A=0);for(let N=A;N<m;N++)l[N]=0;u.setBigUint64(m-8,BigInt(this.length*8),y),this.process(u,0);const v=Ze(o),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)v.setUint32(4*N,C[N],y)}digest(){const{buffer:o,outputLen:l}=this;this.digestInto(o);const u=o.slice(0,l);return this.destroy(),u}_cloneInto(o){o||=new this.constructor,o.set(...this.get());const{blockLen:l,buffer:u,length:m,finished:y,destroyed:A,pos:v}=this;return o.destroyed=A,o.finished=y,o.length=m,o.pos=v,m%l&&o.buffer.set(u),o}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ze=BigInt(2**32-1),Ai=BigInt(32);function vo(n,o=!1){return o?{h:Number(n&ze),l:Number(n>>Ai&ze)}:{h:Number(n>>Ai&ze)|0,l:Number(n&ze)|0}}function wo(n,o=!1){const l=n.length;let u=new Uint32Array(l),m=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:v}=vo(n[y],o);[u[y],m[y]]=[A,v]}return[u,m]}const Ti=(n,o,l)=>n>>>l,Si=(n,o,l)=>n<<32-l|o>>>l,Ce=(n,o,l)=>n>>>l|o<<32-l,De=(n,o,l)=>n<<32-l|o>>>l,Je=(n,o,l)=>n<<64-l|o>>>l-32,Qe=(n,o,l)=>n>>>l-32|o<<64-l;function Se(n,o,l,u){const m=(o>>>0)+(u>>>0);return{h:n+l+(m/2**32|0)|0,l:m|0}}const _o=(n,o,l)=>(n>>>0)+(o>>>0)+(l>>>0),Ao=(n,o,l,u)=>o+l+u+(n/2**32|0)|0,To=(n,o,l,u)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0),So=(n,o,l,u,m)=>o+l+u+m+(n/2**32|0)|0,Ro=(n,o,l,u,m)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0)+(m>>>0),xo=(n,o,l,u,m,y)=>o+l+u+m+y+(n/2**32|0)|0,Yi=wo(["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(n=>BigInt(n))),Io=Yi[0],Fo=Yi[1],Ie=new Uint32Array(80),Fe=new Uint32Array(80);class Oo extends Eo{constructor(o){super(128,o,16,!1)}get(){const{Ah:o,Al:l,Bh:u,Bl:m,Ch:y,Cl:A,Dh:v,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:H,Hl:L}=this;return[o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L]}set(o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L){this.Ah=o|0,this.Al=l|0,this.Bh=u|0,this.Bl=m|0,this.Ch=y|0,this.Cl=A|0,this.Dh=v|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=H|0,this.Hl=L|0}process(o,l){for(let s=0;s<16;s++,l+=4)Ie[s]=o.getUint32(l),Fe[s]=o.getUint32(l+=4);for(let s=16;s<80;s++){const a=Ie[s-15]|0,g=Fe[s-15]|0,T=Ce(a,g,1)^Ce(a,g,8)^Ti(a,g,7),S=De(a,g,1)^De(a,g,8)^Si(a,g,7),F=Ie[s-2]|0,d=Fe[s-2]|0,K=Ce(F,d,19)^Je(F,d,61)^Ti(F,d,6),X=De(F,d,19)^Qe(F,d,61)^Si(F,d,6),x=To(S,X,Fe[s-7],Fe[s-16]),ee=So(x,T,K,Ie[s-7],Ie[s-16]);Ie[s]=ee|0,Fe[s]=x|0}let{Ah:u,Al:m,Bh:y,Bl:A,Ch:v,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:H,Gl:L,Hh:c,Hl:E}=this;for(let s=0;s<80;s++){const a=Ce(N,P,14)^Ce(N,P,18)^Je(N,P,41),g=De(N,P,14)^De(N,P,18)^Qe(N,P,41),T=N&V^~N&H,S=P&q^~P&L,F=Ro(E,g,S,Fo[s],Fe[s]),d=xo(F,c,a,T,Io[s],Ie[s]),K=F|0,X=Ce(u,m,28)^Je(u,m,34)^Je(u,m,39),x=De(u,m,28)^Qe(u,m,34)^Qe(u,m,39),ee=u&y^u&v^y&v,re=m&A^m&_^A&_;c=H|0,E=L|0,H=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=v|0,C=_|0,v=y|0,_=A|0,y=u|0,A=m|0;const ie=_o(K,x,re);u=Ao(ie,d,X,ee),m=ie|0}({h:u,l:m}=Se(this.Ah|0,this.Al|0,u|0,m|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:v,l:_}=Se(this.Ch|0,this.Cl|0,v|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=Se(this.Fh|0,this.Fl|0,V|0,q|0),{h:H,l:L}=Se(this.Gh|0,this.Gl|0,H|0,L|0),{h:c,l:E}=Se(this.Hh|0,this.Hl|0,c|0,E|0),this.set(u,m,y,A,v,_,B,C,N,P,V,q,H,L,c,E)}roundClean(){He(Ie,Fe)}destroy(){He(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Bo extends Oo{Ah=Ee[0]|0;Al=Ee[1]|0;Bh=Ee[2]|0;Bl=Ee[3]|0;Ch=Ee[4]|0;Cl=Ee[5]|0;Dh=Ee[6]|0;Dl=Ee[7]|0;Eh=Ee[8]|0;El=Ee[9]|0;Fh=Ee[10]|0;Fl=Ee[11]|0;Gh=Ee[12]|0;Gl=Ee[13]|0;Hh=Ee[14]|0;Hl=Ee[15]|0;constructor(){super(64)}}const No=po(()=>new Bo,yo(3)),Po=(n,o,l,u)=>te.Buffer.from(mo(No,n,o,{c:l,dkLen:u}));class Co{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:o,baseURI:l}){this.axiosClient=o,this.baseURI=l}async signUrl(o,l){const u=new URL(o);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const m=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",m),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const o=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=so.xml2js(o.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(o){const l=await this.getSignKey();return Po(o,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Do=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,m=Ri(u,o),y=new Co({baseURI:n,axiosClient:o});return{getCapabilities:()=>m.getCapabilities(),signUrl:(A,v)=>y.signUrl(A,v)}};exports.GetCapabilitiesFactory=Ri;exports.ocs=Do;