32 lines
201 KiB
JavaScript
Raw Normal View History

var kd=Object.create;var Mi=Object.defineProperty;var Ld=Object.getOwnPropertyDescriptor;var Cd=Object.getOwnPropertyNames;var Ud=Object.getPrototypeOf,Pd=Object.prototype.hasOwnProperty;var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Dd=(t,e)=>{for(var r in e)Mi(t,r,{get:e[r],enumerable:!0})},Nd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Cd(e))!Pd.call(t,i)&&i!==r&&Mi(t,i,{get:()=>e[i],enumerable:!(n=Ld(e,i))||n.enumerable});return t};var f=(t,e,r)=>(r=t!=null?kd(Ud(t)):{},Nd(e||!t||!t.__esModule?Mi(r,"default",{value:t,enumerable:!0}):r,t));var Rc=S(mn=>{"use strict";var km=f(l());mn.byteLength=Kd;mn.toByteArray=qd;mn.fromByteArray=Vd;var Re=[],ge=[],Md=typeof Uint8Array<"u"?Uint8Array:Array,Ki="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(vt=0,Bc=Ki.length;vt<Bc;++vt)Re[vt]=Ki[vt],ge[Ki.charCodeAt(vt)]=vt;var vt,Bc;ge[45]=62;ge[95]=63;function Ic(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Kd(t){var e=Ic(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Fd(t,e,r){return(e+r)*3/4-r}function qd(t){var e,r=Ic(t),n=r[0],i=r[1],o=new Md(Fd(t,n,i)),s=0,c=i>0?n-4:n,a;for(a=0;a<c;a+=4)e=ge[t.charCodeAt(a)]<<18|ge[t.charCodeAt(a+1)]<<12|ge[t.charCodeAt(a+2)]<<6|ge[t.charCodeAt(a+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=ge[t.charCodeAt(a)]<<2|ge[t.charCodeAt(a+1)]>>4,o[s++]=e&255),i===1&&(e=ge[t.charCodeAt(a)]<<10|ge[t.charCodeAt(a+1)]<<4|ge[t.charCodeAt(a+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function jd(t){return Re[t>>18&63]+Re[t>>12&63]+Re[t>>6&63]+Re[t&63]}function $d(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(jd(n));return i.join("")}function Vd(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,c=r-n;s<c;s+=o)i.push($d(t,s,s+o>c?c:s+o));return n===1?(e=t[r-1],i.push(Re[e>>2]+Re[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Re[e>>10]+Re[e>>4&63]+Re[e<<2&63]+"=")),i.join("")}});var Oc=S(Fi=>{var Cm=f(l());Fi.read=function(t,e,r,n,i){var o,s,c=i*8-n-1,a=(1<<c)-1,u=a>>1,d=-7,h=r?i-1:0,w=r?-1:1,y=t[e+h];for(h+=w,o=y&(1<<-d)-1,y>>=-d,d+=c;d>0;o=o*256+t[e+h],h+=w,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=n;d>0;s=s*256+t[e+h],h+=w,d-=8);if(o===0)o=1-u;else{if(o===a)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-u}return(y?-1:1)*s*Math.pow(2,o-n)};Fi.write=function(t,e,r,n,i,o){var s,c,a,u=o*8-i-1,d=(1<<u)-1,h=d>>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:o-1,p=n?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+h>=1?e+=w/a:e+=w*Math.pow(2,1-h),e*a>=2&&(s++,a/=2),s+h>=d?(c=0,s=d):s+h>=1?(c=(e*a-1)*Math.pow(2,i),s=s+h):(c=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+y]=c&255,y+=p,c/=256,i-=8);for(s=s<<i|c,u+=i;u>0;t[r+y]=s&255,y+=p,s/=256,u-=8);t[r+y-p]|=b*128}});var fe=S(ur=>{"use strict";var Dm=f(l());var qi=Rc(),cr=Oc(),kc=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ur.Buffer=g;ur.SlowBuffer=Yd;ur.INSPECT_MAX_BYTES=50;var xn=2147483647;ur.kMaxLength=xn;g.TYPED_ARRAY_SUPPORT=Wd();!g.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 Wd(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}});Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function We(t){if(t>xn)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,g.prototype),e}function g(t,e,
`;super(r),this.name="AggregateError",this.errors=e}};rs.exports={AggregateError:ts,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof ny},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:iy};rs.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Qn=S((pv,Zn)=>{"use strict";var yv=f(l()),{AbortController:Au,AbortSignal:oy}=typeof self<"u"?self:typeof window<"u"?window:void 0;Zn.exports=Au;Zn.exports.AbortSignal=oy;Zn.exports.default=Au});var ce=S((wv,Ru)=>{"use strict";var gv=f(l()),{format:sy,inspect:ei,AggregateError:cy}=Pe(),ay=globalThis.AggregateError||cy,uy=Symbol("kIsNodeError"),fy=["string","function","number","object","Function","Object","boolean","bigint","symbol"],ly=/^([A-Z][a-z0-9]*)+$/,dy="__node_internal_",ti={};function qt(t,e){if(!t)throw new ti.ERR_INTERNAL_ASSERTION(e)}function Bu(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function hy(t,e,r){if(typeof e=="function")return qt(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return qt(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:sy(e,...r)}function ne(t,e,r){r||(r=Error);class n extends r{constructor(...o){super(hy(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[uy]=!0,ti[t]=n}function Iu(t){let e=dy+t.name;return Object.defineProperty(t,"name",{value:e}),t}function py(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new ay([e,t],e.message);return r.code=e.code,r}return t||e}var ns=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new ti.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ne("ERR_ASSERTION","%s",Error);ne("ERR_INVALID_ARG_TYPE",(t,e,r)=>{qt(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],o=[],s=[];for(let a of e)qt(typeof a=="string","All expected entries have to be of type string"),fy.includes(a)?i.push(a.toLowerCase()):ly.test(a)?o.push(a):(qt(a!=="object",'The value "object" should be written as "Object"'),s.push(a));if(o.length>0){let a=i.indexOf("object");a!==-1&&(i.splice(i,a,1),o.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let a=i.pop();n+=`one of type ${i.join(", ")}, or ${a}`}}(o.length>0||s.length>0)&&(n+=" or ")}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let a=o.pop();n+=`an instance of ${o.join(", ")}, or ${a}`}}s.length>0&&(n+=" or
/*! Bundled license information:
ieee754/index.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
buffer/index.js:
(*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*)
queue-microtask/index.js:
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
run-parallel-limit/index.js:
(*! run-parallel-limit. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
safe-buffer/index.js:
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
@noble/hashes/esm/utils.js:
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
@noble/ciphers/esm/utils.js:
(*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) *)
*/
//# sourceMappingURL=utils.js.map