diff --git a/precompiled/app.js b/precompiled/app.js index 9f99635edd..d226b41f3f 100644 --- a/precompiled/app.js +++ b/precompiled/app.js @@ -1,6 +1,6 @@ #!/usr/bin/env node (()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8109),r(4608),r(8034),r(2946),r(3560),r(5217),r(3385),r(4603),r(4783),r(6399),r(5519),r(6931),r(3682),r(9022),r(5027),r(8635),r(5162),r(8817),r(8417),r(7099),r(9921),r(7773),r(6431),r(6965),r(7725),r(9614),r(304),r(9386),r(9364),r(1807),r(9807),r(4025),r(9929),r(9659),r(6258),r(9345),r(522),r(3357),r(192),r(8976);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let l=await t();return this.cacheMap.set(e,{data:l,expireAt:new Date(r||this.WillExpireAt)}),l}}class l{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let c=l.getInstance();function f(e){let t=new u(e);return c.cacheStorages.add(t),t}e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:l,getManagedCacheStorage:f}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";class s extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}}e.exports={CancelRequest:s,ON_CANCEL:o}},5796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8330),r(8386),r(9368),r(2931),r(9515),r(5162),r(5027),r(8635),r(8256),r(3183),r(4334);let i={width:80,_program:{},_options:[],program:(e={})=>(i._program=e,i),option:(e,t={})=>(e=Array.isArray(e)?e:[e],t.dest=t.dest||e.slice(-1)[0].toLowerCase().replace(/^-+/,"").replace(/-[a-z]/g,e=>e.slice(1).toUpperCase()),t.help=t.help||({help:"output usage information",version:"output the version number"})[t.action],i._options.push(Object.assign(t,{flags:e,positional:!e[0].startsWith("-")})),i),parse:e=>{let t=i._options.map((e,t)=>e.positional?t:null).filter(e=>null!==e),o={};i._options.forEach((e,t)=>e.positional?null:e.flags.forEach(e=>o[e]=t)),i._program.name=i._program.name||r(1017).parse(e[1]).base;let s=e.slice(2).reduce((e,t)=>/^-[^-]/.test(t)?e.concat(t.slice(1).split("").map(e=>"-"+e)):e.concat(t),[]),c=0;for(;ce in o),a=-1===t?s.length:c+t;0===(e=s.slice(c,a)).length&&(i._options[f].positional?l(`the following arguments are required: ${r}`):"+"===i._options[f].nargs?l(`argument ${r}: expected at least one argument`):l(`argument ${r}: expected one argument`)),"+"!==i._options[f].nargs?(e=e[0],c+=1):c=a}i[i._options[f].dest]=e}return t.length&&l(`the following arguments are required: ${t.map(e=>i._options[e].flags[0]).join(", ")}`),i}},o=e=>Array(e+1).join(" "),s=()=>{let e=i._options.map(e=>{let t=e.flags.sort((e,t)=>e.length-t.length)[0],r=e.metavar||e.dest;return e.positional?"+"===e.nargs?`${r} [${r} ...]`:`${r}`:["store_true","store_false","help","version"].includes(e.action)?`[${t}]`:"+"===e.nargs?`[${t} ${r} [${r} ...]]`:`[${t} ${r}]`}),t=i.width,r=`usage: ${i._program.name}`,s=[r];e.map(e=>" "+e).forEach(e=>{s[s.length-1].length+e.length{s();let e=i._options.filter(e=>e.positional).map(e=>[e.metavar||e.dest,e.help]),t=i._options.filter(e=>!e.positional).map(e=>{let t;let{flags:r}=e,i=e.metavar||e.dest;return[t=["store_true","store_false","help","version"].includes(e.action)?r.map(e=>`${e}`).join(", "):"+"===e.nargs?r.map(e=>`${e} ${i} [${i} ...]`).join(", "):r.map(e=>`${e} ${i}`).join(", "),e.help]}),r=Math.max.apply(null,e.concat(t).map(e=>e[0].length));r=r>30?30:r;let a=i.width-r-4,u=e=>{let t=e=>Array.from(Array(Math.ceil(e.length/a)).keys()).map(t=>e.slice(t*a,(t+1)*a)).join("\n"+o(r+4));e[0].length{console.log(i._program.version),process.exit()},l=e=>{s(),console.log(i._program.name+":","error:",e),process.exit(1)};e.exports=i},1784:(e,t,r)=>{"use strict";let i=["kugou","kuwo","migu","bilibili","ytdlp"],o={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),ytdownload:r(9588),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:i,PROVIDERS:o}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",l=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},c=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>c(e,a),decrypt:e=>l(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,l=i.createHash("md5").update(u).digest("hex"),c=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${l}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(c)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>c(e,u),decrypt:e=>l(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=(e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=Buffer.concat(Array(a).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:u.slice(0,s),iv:u.slice(s,s+o)}},o=Buffer.from(i.randomBytes(32).toString("hex")),a=i.randomBytes(8),u=r(o,a,256,16),l=i.createCipheriv("aes-256-cbc",u.key,u.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),a,l.update(Buffer.from(t)),l.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},o).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super(`The audio data is incomplete: ${e}`),this.name="IncompleteAudioData"}}e.exports=i},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}e.exports=i},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}e.exports=i},6014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t){super(`Failed to get the response. Status code: ${t}`),this.url=e,this.code=t,this.name="RequestFailed"}}e.exports=i},9057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}e.exports=i},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}e.exports=i},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}e.exports=i},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}e.exports=i},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}e.exports=i},403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2931),r(9515),r(5162),r(8817),r(8417),r(7099),r(9921),r(7773),r(6431),r(6965),r(7725),r(9614),r(304),r(9386),r(9364),r(1807),r(9807),r(4025),r(9929),r(9659),r(6258),r(9345),r(522),r(3357),r(192),r(8976),r(1210),r(8019),r(2071),r(9397),r(5027),r(8635),r(3183),r(4334);let i=r(7310).parse,o=r(743),s=r(5262),a=r(886),u=r(3477),{isHost:l}=r(5157),{getManagedCacheStorage:c}=r(9220),{logScope:f}=r(7691),h=f("hook"),p=c("hook");p.aliveDuration=6048e5;let d=["true","cvip","svip"].includes((process.env.ENABLE_LOCAL_VIP||"").toLowerCase()),g="true"===(process.env.BLOCK_ADS||"").toLowerCase(),y="true"===(process.env.DISABLE_UPGRADE_CHECK||"").toLowerCase(),m="svip"===(process.env.ENABLE_LOCAL_VIP||"").toLowerCase(),b=(process.env.LOCAL_VIP_UID||"").split(",").map(e=>parseInt(e)).filter(e=>!Number.isNaN(e)),v={request:{before:()=>{},after:()=>{}},connect:{before:()=>{}},negotiate:{before:()=>{}},target:{host:new Set,path:new Set}};v.target.host=new Set(["music.163.com","interface.music.163.com","interface3.music.163.com","apm.music.163.com","apm3.music.163.com","musicupload.netease.com"]),v.target.path=new Set(["/api/v3/playlist/detail","/api/v3/song/detail","/api/v6/playlist/detail","/api/album/play","/api/artist/privilege","/api/album/privilege","/api/v1/artist","/api/v1/artist/songs","/api/artist/top/song","/api/v1/album","/api/album/v3/detail","/api/playlist/privilege","/api/song/enhance/player/url","/api/song/enhance/player/url/v1","/api/song/enhance/download/url","/api/song/enhance/download/url/v1","/api/song/enhance/privilege","/api/ad","/batch","/api/batch","/api/listen/together/privilege/get","/api/v1/search/get","/api/v1/search/song/get","/api/search/complex/get","/api/search/complex/page","/api/search/song/page","/api/cloudsearch/pc","/api/v1/playlist/manipulate/tracks","/api/song/like","/api/v1/play/record","/api/playlist/v4/detail","/api/v1/radio/get","/api/v1/discovery/recommend/songs","/api/usertool/sound/mobile/promote","/api/usertool/sound/mobile/theme","/api/usertool/sound/mobile/animationList","/api/usertool/sound/mobile/all","/api/usertool/sound/mobile/detail","/api/vipauth/app/auth/query"]);let w=["music.163.com","music.126.net","iplay.163.com","look.163.com","y.163.com"];v.request.before=e=>{let{req:t}=e;t.url=(t.url.startsWith("http://")?"":(t.socket.encrypted?"https:":"http:")+"//"+(w.some(e=>(t.headers.host||"").endsWith(e))?t.headers.host:null))+t.url;let r=i(t.url);if([r.hostname,t.headers.host].some(e=>l(e,"music.163.com"))&&(e.decision="proxy"),[r.hostname,t.headers.host].some(e=>v.target.host.has(e))&&"POST"===t.method&&("/api/linux/forward"===r.path||r.path.startsWith("/eapi/")))return s.read(t).then(e=>t.body=e).then(s=>{if("x-napm-retry"in t.headers&&delete t.headers["x-napm-retry"],t.headers["X-Real-IP"]="118.88.88.88",t.headers["Accept-Encoding"]="gzip, deflate",!t.url.includes("stream")&&s){let t;let a={};if(a.pad=(s.match(/%0+$/)||[""])[0],a.forward="/api/linux/forward"===r.path,a.forward?(t=JSON.parse(o.linuxapi.decrypt(Buffer.from(s.slice(8,s.length-a.pad.length),"hex")).toString()),a.path=i(t.url).path,a.param=t.params):(t=o.eapi.decrypt(Buffer.from(s.slice(7,s.length-a.pad.length),"hex")).toString().split("-36cd479b6b5-"),a.path=t[0],a.param=JSON.parse(t[1])),a.path=a.path.replace(/\/\d*$/,""),e.netease=a,"/api/song/enhance/download/url"===a.path||"/api/song/enhance/download/url/v1"===a.path)return _(e);g&&a.path.startsWith("/api/ad")&&(e.error=Error("ADs blocked."),e.decision="close"),y&&a.path.match(/^\/api(\/v1)?\/(android|ios|osx|pc)\/(upgrade|version)/)&&(e.error=Error("Upgrade check blocked."),e.decision="close")}}).catch(e=>e&&h.error(e,`A error occurred in hook.request.before when hooking ${t.url}.`));if(v.target.host.has(r.hostname)&&(r.path.startsWith("/weapi/")||r.path.startsWith("/api/")))t.headers["X-Real-IP"]="118.88.88.88",e.netease={web:!0,path:r.path.replace(/^\/weapi\//,"/api/").split("?").shift().replace(/\/\d*$/,"")};else if(t.url.includes("package"))try{let r=t.url.split("package/").pop().split("/"),s=i(o.base64.decode(r[0])),a=r[1].replace(/\.\w+/,"");t.url=s.href,t.headers.host=s.hostname,t.headers.cookie=null,e.package={id:a},e.decision="proxy"}catch(t){e.error=t,e.decision="close"}},v.request.after=e=>{let{req:t,proxyRes:r,netease:a,package:u}=e;if("tyst.migu.cn"===t.headers.host&&r.headers["content-range"]&&200===r.statusCode&&(r.statusCode=206),a&&v.target.path.has(a.path)&&200===r.statusCode)return s.read(r,!0).then(e=>e.length?r.body=e:Promise.reject()).then(t=>{let r=e=>e.replace(/([^\\]"\s*:\s*)(\d{16,})(\s*[}|,])/g,'$1"$2L"$3');try{a.encrypted=!1,a.jsonBody=JSON.parse(r(t.toString()))}catch(e){a.encrypted=!0,a.jsonBody=JSON.parse(r(o.eapi.decrypt(t).toString()))}if(d&&("/batch"===a.path||"/api/batch"===a.path)){let e=a.jsonBody["/api/music-vip-membership/client/vip/info"],t={iconUrl:null,dynamicIconUrl:null,isSign:!1,isSignIap:!1,isSignDeduct:!1,isSignIapDeduct:!1};if(e&&(0===b.length||b.includes(e.data.userId)))try{let r=e.data.now+316224e5;e.data.redVipLevel=7,e.data.redVipAnnualCount=1,e.data.musicPackage={...t,...e.data.musicPackage,vipCode:230,vipLevel:5,expireTime:r},e.data.associator={...t,...e.data.associator,vipCode:100,vipLevel:5,expireTime:r},m&&(e.data.redplus={...t,...e.data.redplus,vipCode:300,vipLevel:5,expireTime:r},e.data.albumVip={...t,...e.data.albumVip,vipCode:400,vipLevel:0,expireTime:r}),a.jsonBody["/api/music-vip-membership/client/vip/info"]=e}catch(e){h.debug({err:e},"Unable to apply the local VIP.")}}if(new Set([401,512]).has(a.jsonBody.code)&&!a.web){if(a.path.includes("manipulate"))return S(e);if("/api/song/like"===a.path)return x(e)}else if(a.path.includes("url"))return O(e);else if(a.path.includes("/usertool/sound/"))return j(a.jsonBody);else if(a.path.includes("batch"))for(let e in a.jsonBody)e.includes("/usertool/sound/")&&j(a.jsonBody[e]);else if(a.path.includes("/vipauth/app/auth/query"))return k(a.jsonBody)}).then(()=>{["transfer-encoding","content-encoding","content-length"].filter(e=>e in r.headers).forEach(e=>delete r.headers[e]);let e=(e,t)=>("object"==typeof t&&null!=t&&("cp"in t&&(t.cp=1),"fee"in t&&(t.fee=0),"downloadMaxbr"in t&&0===t.downloadMaxbr&&(t.downloadMaxbr=32e4),"dl"in t&&"downloadMaxbr"in t&&t.dle&&h.error(e,`A error occurred in hook.request.after when hooking ${t.url}.`));if(u){if(new Set([201,301,302,303,307,308]).has(r.statusCode))return s(t.method,i(t.url).resolve(r.headers.location),t.headers).then(t=>e.proxyRes=t);/p\d+c*\.music\.126\.net/.test(t.url)&&(r.headers["content-type"]="audio/*")}},v.connect.before=e=>{let{req:t}=e,r=i("https://"+t.url);[r.hostname,t.headers.host].some(e=>v.target.host.has(e))?80===parseInt(r.port)?(t.url=`${global.address||"localhost"}:${global.port[0]}`,t.local=!0):global.port[1]?(t.url=`${global.address||"localhost"}:${global.port[1]}`,t.local=!0):e.decision="blank":r.href.includes(global.endpoint)&&(e.decision="proxy")},v.negotiate.before=e=>{let{req:t,socket:r,decision:o}=e,s=i("https://"+t.url),a=v.target.host;!t.local&&!o&&a.has(r.sni)&&!a.has(s.hostname)&&(a.add(s.hostname),e.decision="blank")};let _=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url";if(i.forward){let{id:e,br:r}=i.param;i.param={ids:`["${e}"]`,br:r},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,br:r,level:a,e_r:u,header:l}=i.param;if(!r&&a)switch(a){case"hires":case"lossless":r=999e3;break;case"exhigh":r=32e4;break;case"standard":r=128e3}i.param={ids:`["${e}"]`,br:r,e_r:u,header:l},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},S=e=>{let{req:t,netease:r}=e,{trackIds:i,pid:o,op:a}=r.param,u=(Array.isArray(i)?i:JSON.parse(i))[0];return s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${u},${u}]&pid=${o}&op=${a}`).then(e=>e.json()).then(e=>{r.jsonBody=e}).catch(e=>e&&h.error(e))},x=e=>{let{req:t,netease:r}=e,{trackId:i}=r.param,o=0,a=0;return s("GET","http://music.163.com/api/v1/user/info",t.headers).then(e=>e.json()).then(e=>s("GET",`http://music.163.com/api/user/playlist?uid=${a=e.userPoint.userId}&limit=1`,t.headers).then(e=>e.json())).then(e=>(o=e.playlist[0].id,s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${i},${i}]&pid=${o}&op=add`).then(e=>e.json()))).then(e=>{new Set([200,502]).has(e.code)&&(r.jsonBody={code:200,playlistId:o})}).catch(e=>e&&h.error(e))},E=e=>s("GET",e.url).then(e=>o.md5.pipe(e)),O=e=>{let t;let{req:r,netease:i}=e,{jsonBody:s}=i,l=Number(process.env.MIN_BR)||0,c=0,f=e=>{if(e.flag=0,(200!==e.code||e.freeTrialInfo||e.br{let s="";try{let{header:e}=i.param;e="string"==typeof e?JSON.parse(e):e;let t=u.parse(r.headers.cookie.replace(/\s/g,""),";");s=e.os||t.os}catch(e){}return e.type=999e3===t.br?"flac":"mp3","pc"===s||"uwp"===s?e.url=global.endpoint?`${global.endpoint.replace("https://","http://")}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url:e.url=global.endpoint?`${global.endpoint}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url,e.md5=t.md5||o.md5.digest(t.url),e.br=t.br||128e3,e.size=t.size,e.code=200,e.freeTrialInfo=null,t}).then(t=>{if(!i.path.includes("download")||t.md5)return;let o=(e,t)=>{let r=Array.from([e,t]).map(e=>e.split(".").slice(0,3).map(e=>parseInt(e)||0)).reduce((e,t)=>e.length?e.map((e,r)=>e.concat(t[r])):t.map(e=>[e]),[]).filter(e=>e[0]!==e[1])[0];return!r||r[0]<=r[1]},s={android:"0.0.0",osx:"0.0.0"},a={key:t.url.replace(/\?.*$/,"").replace(/(?<=kugou\.com\/)\w+\/\w+\//,"").replace(/(?<=kuwo\.cn\/)\w+\/\w+\/resource\//,""),url:t.url};try{let{header:t}=i.param;t="string"==typeof t?JSON.parse(t):t;let l=u.parse(r.headers.cookie.replace(/\s/g,""),";"),c=t.os||l.os,f=t.appver||l.appver;if(c in s&&o(s[c],f))return p.cache(a,()=>E(a)).then(t=>e.md5=t)}catch(e){}}).catch(e=>e&&h.error(e));200===e.code&&i.web&&(e.url=e.url.replace(/(m\d+?)(?!c)\.music\.126\.net/,"$1c.music.126.net"))};return Array.isArray(s.data)?i.path.includes("download")?(s.data=s.data[0],t=[f(s.data)]):(c=i.web?0:parseInt(((Array.isArray(i.param.ids)?i.param.ids:JSON.parse(i.param.ids))[0]||0).toString().replace("_0","")),t=s.data.map(e=>f(e))):t=[f(s.data)],Promise.all(t).catch(e=>e&&h.error(e))},j=e=>{h.debug("unblockSoundEffects() has been triggered.");let{data:t,code:r}=e;200===r&&(Array.isArray(t)?t.map(e=>{e.type&&(e.type=1)}):t.type&&(t.type=1))},k=e=>{h.debug("unblockLyricsEffects() has been triggered.");let{data:t,code:r}=e;200===r&&Array.isArray(t)&&t.forEach(e=>{"canUse"in e&&(e.canUse=!0),"canNotUseReasonCode"in e&&(e.canNotUseReasonCode=200)})};e.exports=v},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(5027),r(8635);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),l=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),c=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),p=o(64).map(e=>s(2,e));p[p.length-1]=p[p.length-1].multiply(-1);let d=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),g=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),y=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(p[e[t].low]).equals(0)||(s=s.or(p[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(l,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let l=i(0);f=i(s[1]),f=(f=b(u,64,f)).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{l=l.shiftLeft(4).or(m[e][r[e]])}),f=b(d,32,l),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(c,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(g,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(y,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let l=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{l[t]=i(e[r+8*t]).shiftLeft(8*r).or(l[t])})});let c=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{c[e]=v(u,l[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(c[a]=v(u,h));let p=o(8*c.length).map(()=>0),d=0;return c.forEach(e=>{o(8).forEach(t=>{p[d]=e.shiftRight(8*t).and(255).low,d+=1})}),Buffer.from(p)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0),E=e=>_(e,S,1),O=e=>x(Buffer.from(e)).toString("base64");e.exports={encrypt:x,decrypt:E,encryptQuery:O}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",l=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:u,ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));function c(e){return l.child({scope:e})}e.exports={logger:l,logScope:c}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),l=r(5262),c=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return l("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(c),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return l("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},p=s("provider/bilibili"),d=e=>p.cache(e,()=>f(e)).then(h);e.exports={check:d,track:h}},8537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(1210),r(8019),r(8330),r(8386),r(9368);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=(e,t)=>Object.keys(e).reduce((r,i)=>Object.assign(r,t.includes(i)&&{[i]:e[i]}),{}),a=e=>{let t=[e[0]],r=()=>t.reduce((e,t)=>e+t.length,0);return e.slice(1).some(e=>r()>15||(t.push(e),!1)),t},u=e=>{try{let r=s(e,["id","name","alias","duration"]);if(r.name=(r.name||"").replace(/(\s*cover[::\s][^)]+)/i,"").replace(/\(\s*cover[::\s][^)]+\)/i,"").replace(/(\s*翻自[::\s][^)]+)/,"").replace(/\(\s*翻自[::\s][^)]+\)/,""),r.album=s(e.album,["id","name"]),r.artists=e.artists.map(e=>s(e,["id","name"])),r.keyword=r.name+" - "+a(r.artists.map(e=>e.name)).join(" / "),"true"===process.env.SEARCH_ALBUM){var t;let e=null===(t=r.album)||void 0===t?void 0:t.name;e&&e!==r.name&&(r.keyword+=` ${e}`)}return r}catch(e){return console.log("getFormatData err: ",e),{}}},l=(e,t)=>{if(t){let e=u(t);return e.name?Promise.resolve(e):Promise.reject()}{let t="https://music.163.com/api/song/detail?ids=["+e+"]";return i("GET",t).then(e=>e.json()).then(e=>{if(e&&e.songs&&e.songs.length){let t=u(e.songs[0]);return t.name?t:Promise.reject()}return Promise.reject()})}},c=o("provider/find");e.exports=(e,t)=>t?l(e,t):c.cache(e,()=>l(e))},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2071);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},c=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=c(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,l).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},p=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,l).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},d=u("provider/joox"),g=e=>d.cache(e,()=>h(e)).then(p);e.exports={check:g,track:p}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),c=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(l),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),p=u("provider/kugou"),d=e=>p.cache(e,()=>c(e)).then(h);e.exports={check:d,search:c}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.musicrid.split("_").pop(),name:e.name,duration:1e3*e.duration,album:{id:e.albumid,name:e.album},artists:e.artist.split("&").map((t,r)=>({id:r?null:e.artistid,name:t}))}),c=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," ")),r=`http://www.kuwo.cn/api/www/search/searchMusicBykeyWord?key=${t}&pn=1&rn=30`,i=s.random.hex(32).toUpperCase();return a("GET",r,{referer:`http://www.kuwo.cn/search/list?key=${t}`,cross:s.md5.digest(i),cookie:`Hm_token=${i}`}).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo"),p=e=>h.cache(e,()=>c(e)).then(f);e.exports={check:p,track:f}},886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8109),r(4608),r(8034),r(2946),r(3560),r(5217),r(3385),r(4603),r(4783),r(6399),r(5519),r(6931),r(3682),r(9022),r(2931),r(9515),r(5162),r(7114),r(8386),r(9368),r(3183),r(4334),r(863),r(1742),r(5027),r(8635);let i=r(8537),o=r(5262),{PROVIDERS:s,DEFAULT_SOURCE:a}=r(1784),{isHostWrapper:u}=r(5157),l=r(9057),c=r(6014),f=r(312),{logScope:h}=r(7691),p=r(4113),d=h("provider/match"),g=e=>e>=200&&e<=299,y=new Map([["bilivideo.com","https://www.bilibili.com/"],["yt-download.org","https://www.yt-download.org/"]]);async function m(e,t){d.debug({source:e,info:t},"Getting the audio...");let r=await s[e].check(t);if(!r)throw new l(e);let i=await v(r);if(d.debug(i,"The matched song is:"),!i||"string"!=typeof i.url)throw new f("song is undefined, or song.url is not a string.");return d.debug({source:e,info:t},"The audio matched!"),i}async function b(e,t,r){let o=(t||global.source||a).filter(e=>e in s),u=await i(e,r),c=null;if(process.env.SELECT_MAX_BR){let e=await Promise.allSettled(o.map(async e=>m(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));if(0===(e=e.filter(e=>"fulfilled"===e.status)).length)throw new l("any source");c=(e=e.map(e=>e.value)).reduce((e,t)=>e.br>=t.br?e:t)}else if(process.env.FOLLOW_SOURCE_ORDER){for(let e=0;em(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));let{id:f,name:h}=u,{url:g}=c;return d.debug({audioInfo:u,audioData:c},"The data to replace:"),d.info({audioId:f,songName:h,url:g},`Replaced: [${f}] ${h}`),c}async function v(e){let t=u(e),r={size:0,br:null,url:null,md5:null},i={range:"bytes=0-8191","accept-encoding":"identity"};y.forEach((e,r)=>{t(r)&&(i.referer=e)});let s=await o("GET",e,i),{headers:a}=s;if(!g(s.statusCode))throw new c(e,s.statusCode);r.url=s.url.href;let l=await s.body(!0);try{let e=w(l);r.br=e&&!isNaN(e)?1e3*e:null}catch(e){d.debug(e,"Failed to decode and extract the bitrate")}if(!r.br){if(t("qq.com")&&r.url.includes(".m4a")&&(r.br=96e3),t("bilivideo.com")&&r.url.includes(".m4a")){let e=r.url.match(/-(\d+)k\.m4a/),t=parseInt(e);isNaN(t)?t=192e3:t<96||t>999?t=192e3:t*=1e3,r.br=t}t("googlevideo.com")&&(r.br=128e3)}return a&&(t("126.net")&&(r.md5=r.url.split("/").slice(-1)[0].replace(/\..*/g,"")),t("kuwo.cn")&&r.br<=32e4&&(r.md5=a.etag.replace(/"/g,"")),t("qq.com")&&(r.md5=a["server-md5"]),r.size=parseInt((a["content-range"]||"").split("/").pop()||a["content-length"])||0,!t("yt-download.org")&&"8192"!==a["content-length"])?Promise.reject():r}function w(e){let t={3:{3:["free",32,64,96,128,160,192,224,256,288,320,352,384,416,448,"bad"],2:["free",32,48,56,64,80,96,112,128,160,192,224,256,320,384,"bad"],1:["free",32,40,48,56,64,80,96,112,128,160,192,224,256,320,"bad"]},2:{3:["free",32,48,56,64,80,96,112,128,144,160,176,192,224,256,"bad"],2:["free",8,16,24,32,40,48,56,64,80,96,112,128,144,160,"bad"]}};t[2][1]=t[2][2],t[0]=t[2];let r=0;if("fLaC"===e.slice(0,4).toString())return 999;if("ID3"===e.slice(0,3).toString()){r=6;let t=e.slice(r,r+4).reduce((e,t,r)=>e+(127&t)<<7*(3-r),0);r=10+t}let i=e.slice(r,r+4);if(4===i.length&&255===i[0]&&(i[1]>>5&7)==7&&(i[1]>>1&3)!=0&&(i[2]>>4&15)!=15&&(i[2]>>2&3)!=3){let e=i[1]>>3&3,r=i[1]>>1&3,o=i[2]>>4;return t[e][r][o]}}e.exports=b},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},l=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},c=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),p=a("provider/migu"),d=e=>p.cache(e,()=>c(e)).then(h);e.exports={check:d,track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="http://76.76.21.21/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2),r={Host:"music.163-my-beloved.com"};return o("GET",t,r).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd"),l=e=>u.cache(e,()=>a(e));e.exports={check:l}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},l=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),c=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl,o={range:"bytes=0-8191","accept-encoding":"identity"};return s("GET",i,o).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),p=a("provider/qq"),d=e=>p.cache(e,()=>c(e)).then(h);e.exports={check:d,track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function p(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let d=async e=>{let{id:t}=await p(l(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(l(c(e)));return t},y=i("youtube-dl"),m=e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:g}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(2071),r(6803),r(4519);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,l=process.env.YOUTUBE_KEY||null,c=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${l}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},p=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>c(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})},d=e=>a.cache(e,()=>l?f(e):h(e)).then(p);e.exports={check:d,track:p}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function p(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let d=async e=>{let{id:t}=await p(l(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(l(c(e)));return t},y=i("yt-dlp"),m=e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:g}},9588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=void 0,a=process.env.YOUTUBE_KEY||null,u=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${a}`;return i("GET",t,{accept:"application/json"},null,s).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},l=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[0];return r?r.videoRenderer.videoId:Promise.reject()})},c=e=>{let t=`https://www.yt-download.org/api/button/mp3/${e}`,r=/]*href=["']([^"']*)["']/;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{var t=e.match(r);return t?t[1]:Promise.reject()})},f=o("provider/yt-download"),h=e=>f.cache(e,()=>a?u(e):l(e)).then(c);e.exports={check:h,track:c}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8330),r(2071);let i=r(9796),o=r(2181),s=r(5687),a=r(2188),u=r(4113),{logScope:l}=r(7691),c=r(7310).parse,f=r(7310).format,h=l("request"),p=e=>(global.hosts||{})[e]||e,d=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,g=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=p(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?p(t.hostname)+":"+(t.port||443):"http://"+p(t.hostname)+t.path):(o.hostname=p(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},y=(e,t,r,i,o,l)=>{let p=c(t),w=r||{},_=g(e,p,{host:p.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,c)=>{var g;h.debug(`Start requesting ${t}`);let y=d(p,o)(_),m=function(){y.destroy(new u(f(p)))};null==l||l.on(a,m),null!==(g=null==l?void 0:l.cancelled)&&void 0!==g&&g&&m(),y.setTimeout(1e4,()=>{h.warn({url:f(p)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:p.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>c(e)).end(i)}).on("error",e=>c(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==l?void 0:l.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(p)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=p.resolve(t.headers.location||p.href);return h.debug(`Redirect to ${r}`),delete w.host,y(e,r,w,i,o)}return Object.assign(t,{url:p,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));y.read=m,y.create=d,y.translate=p,y.configure=g,e.exports=y},8837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2931),r(9515),r(5162),r(1210),r(8019);let i=r(7147),o=r(1808),s=r(1017),a=r(7310).parse,{logScope:u}=r(7691),l=u("server"),c=r(313),f=r(403),h=r(5262),{isHost:p}=r(5157),d={core:{mitm:(e,t)=>{if("/proxy.pac"===e.url){let r=a("http://"+e.headers.host);t.writeHead(200,{"Content-Type":"application/x-ns-proxy-autoconfig"}),t.end(` +${o(r+4)}${t(e[1])}`)};e.length&&console.log("\npositional arguments:"),e.forEach(u),t.length&&console.log("\noptional arguments:"),t.forEach(u),process.exit()},u=()=>{console.log(i._program.version),process.exit()},l=e=>{s(),console.log(i._program.name+":","error:",e),process.exit(1)};e.exports=i},1784:(e,t,r)=>{"use strict";let i=["kugou","kuwo","migu","bilibili","ytdlp"],o={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),ytdownload:r(9588),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:i,PROVIDERS:o}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",l=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},c=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>c(e,a),decrypt:e=>l(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,l=i.createHash("md5").update(u).digest("hex"),c=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${l}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(c)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>c(e,u),decrypt:e=>l(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=(e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=Buffer.concat(Array(a).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:u.slice(0,s),iv:u.slice(s,s+o)}},o=Buffer.from(i.randomBytes(32).toString("hex")),a=i.randomBytes(8),u=r(o,a,256,16),l=i.createCipheriv("aes-256-cbc",u.key,u.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),a,l.update(Buffer.from(t)),l.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},o).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super(`The audio data is incomplete: ${e}`),this.name="IncompleteAudioData"}}e.exports=i},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}e.exports=i},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}e.exports=i},6014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t){super(`Failed to get the response. Status code: ${t}`),this.url=e,this.code=t,this.name="RequestFailed"}}e.exports=i},9057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t="?"){super(`This song "${t}" is not available in ${e}`),this.name="SongNotAvailable"}}e.exports=i},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}e.exports=i},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}e.exports=i},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}e.exports=i},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}e.exports=i},403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2931),r(9515),r(5162),r(8817),r(8417),r(7099),r(9921),r(7773),r(6431),r(6965),r(7725),r(9614),r(304),r(9386),r(9364),r(1807),r(9807),r(4025),r(9929),r(9659),r(6258),r(9345),r(522),r(3357),r(192),r(8976),r(1210),r(8019),r(2071),r(9397),r(5027),r(8635),r(3183),r(4334);let i=r(7310).parse,o=r(743),s=r(5262),a=r(886),u=r(3477),{isHost:l}=r(5157),{getManagedCacheStorage:c}=r(9220),{logScope:f}=r(7691),h=f("hook"),p=c("hook");p.aliveDuration=6048e5;let d=["true","cvip","svip"].includes((process.env.ENABLE_LOCAL_VIP||"").toLowerCase()),g="true"===(process.env.BLOCK_ADS||"").toLowerCase(),y="true"===(process.env.DISABLE_UPGRADE_CHECK||"").toLowerCase(),m="svip"===(process.env.ENABLE_LOCAL_VIP||"").toLowerCase(),b=(process.env.LOCAL_VIP_UID||"").split(",").map(e=>parseInt(e)).filter(e=>!Number.isNaN(e)),v={request:{before:()=>{},after:()=>{}},connect:{before:()=>{}},negotiate:{before:()=>{}},target:{host:new Set,path:new Set}};v.target.host=new Set(["music.163.com","interface.music.163.com","interface3.music.163.com","apm.music.163.com","apm3.music.163.com","musicupload.netease.com"]),v.target.path=new Set(["/api/v3/playlist/detail","/api/v3/song/detail","/api/v6/playlist/detail","/api/album/play","/api/artist/privilege","/api/album/privilege","/api/v1/artist","/api/v1/artist/songs","/api/artist/top/song","/api/v1/album","/api/album/v3/detail","/api/playlist/privilege","/api/song/enhance/player/url","/api/song/enhance/player/url/v1","/api/song/enhance/download/url","/api/song/enhance/download/url/v1","/api/song/enhance/privilege","/api/ad","/batch","/api/batch","/api/listen/together/privilege/get","/api/v1/search/get","/api/v1/search/song/get","/api/search/complex/get","/api/search/complex/page","/api/search/song/page","/api/cloudsearch/pc","/api/v1/playlist/manipulate/tracks","/api/song/like","/api/v1/play/record","/api/playlist/v4/detail","/api/v1/radio/get","/api/v1/discovery/recommend/songs","/api/usertool/sound/mobile/promote","/api/usertool/sound/mobile/theme","/api/usertool/sound/mobile/animationList","/api/usertool/sound/mobile/all","/api/usertool/sound/mobile/detail","/api/vipauth/app/auth/query"]);let w=["music.163.com","music.126.net","iplay.163.com","look.163.com","y.163.com"];v.request.before=e=>{let{req:t}=e;t.url=(t.url.startsWith("http://")?"":(t.socket.encrypted?"https:":"http:")+"//"+(w.some(e=>(t.headers.host||"").endsWith(e))?t.headers.host:null))+t.url;let r=i(t.url);if([r.hostname,t.headers.host].some(e=>l(e,"music.163.com"))&&(e.decision="proxy"),[r.hostname,t.headers.host].some(e=>v.target.host.has(e))&&"POST"===t.method&&("/api/linux/forward"===r.path||r.path.startsWith("/eapi/")))return s.read(t).then(e=>t.body=e).then(s=>{if("x-napm-retry"in t.headers&&delete t.headers["x-napm-retry"],t.headers["X-Real-IP"]="118.88.88.88",t.headers["Accept-Encoding"]="gzip, deflate",!t.url.includes("stream")&&s){let t;let a={};if(a.pad=(s.match(/%0+$/)||[""])[0],a.forward="/api/linux/forward"===r.path,a.forward?(t=JSON.parse(o.linuxapi.decrypt(Buffer.from(s.slice(8,s.length-a.pad.length),"hex")).toString()),a.path=i(t.url).path,a.param=t.params):(t=o.eapi.decrypt(Buffer.from(s.slice(7,s.length-a.pad.length),"hex")).toString().split("-36cd479b6b5-"),a.path=t[0],a.param=JSON.parse(t[1])),a.path=a.path.replace(/\/\d*$/,""),e.netease=a,"/api/song/enhance/download/url"===a.path||"/api/song/enhance/download/url/v1"===a.path)return _(e);g&&a.path.startsWith("/api/ad")&&(e.error=Error("ADs blocked."),e.decision="close"),y&&a.path.match(/^\/api(\/v1)?\/(android|ios|osx|pc)\/(upgrade|version)/)&&(e.error=Error("Upgrade check blocked."),e.decision="close")}}).catch(e=>e&&h.error(e,`A error occurred in hook.request.before when hooking ${t.url}.`));if(v.target.host.has(r.hostname)&&(r.path.startsWith("/weapi/")||r.path.startsWith("/api/")))t.headers["X-Real-IP"]="118.88.88.88",e.netease={web:!0,path:r.path.replace(/^\/weapi\//,"/api/").split("?").shift().replace(/\/\d*$/,"")};else if(t.url.includes("package"))try{let r=t.url.split("package/").pop().split("/"),s=i(o.base64.decode(r[0])),a=r[1].replace(/\.\w+/,"");t.url=s.href,t.headers.host=s.hostname,t.headers.cookie=null,e.package={id:a},e.decision="proxy"}catch(t){e.error=t,e.decision="close"}},v.request.after=e=>{let{req:t,proxyRes:r,netease:a,package:u}=e;if("tyst.migu.cn"===t.headers.host&&r.headers["content-range"]&&200===r.statusCode&&(r.statusCode=206),a&&v.target.path.has(a.path)&&200===r.statusCode)return s.read(r,!0).then(e=>e.length?r.body=e:Promise.reject()).then(t=>{let r=e=>e.replace(/([^\\]"\s*:\s*)(\d{16,})(\s*[}|,])/g,'$1"$2L"$3');try{a.encrypted=!1,a.jsonBody=JSON.parse(r(t.toString()))}catch(e){a.encrypted=!0,a.jsonBody=JSON.parse(r(o.eapi.decrypt(t).toString()))}if(d&&("/batch"===a.path||"/api/batch"===a.path)){let e=a.jsonBody["/api/music-vip-membership/client/vip/info"],t={iconUrl:null,dynamicIconUrl:null,isSign:!1,isSignIap:!1,isSignDeduct:!1,isSignIapDeduct:!1};if(e&&(0===b.length||b.includes(e.data.userId)))try{let r=e.data.now+316224e5;e.data.redVipLevel=7,e.data.redVipAnnualCount=1,e.data.musicPackage={...t,...e.data.musicPackage,vipCode:230,vipLevel:5,expireTime:r},e.data.associator={...t,...e.data.associator,vipCode:100,vipLevel:5,expireTime:r},m&&(e.data.redplus={...t,...e.data.redplus,vipCode:300,vipLevel:5,expireTime:r},e.data.albumVip={...t,...e.data.albumVip,vipCode:400,vipLevel:0,expireTime:r}),a.jsonBody["/api/music-vip-membership/client/vip/info"]=e}catch(e){h.debug({err:e},"Unable to apply the local VIP.")}}if(new Set([401,512]).has(a.jsonBody.code)&&!a.web){if(a.path.includes("manipulate"))return S(e);if("/api/song/like"===a.path)return x(e)}else if(a.path.includes("url"))return O(e);else if(a.path.includes("/usertool/sound/"))return j(a.jsonBody);else if(a.path.includes("batch"))for(let e in a.jsonBody)e.includes("/usertool/sound/")&&j(a.jsonBody[e]);else if(a.path.includes("/vipauth/app/auth/query"))return k(a.jsonBody)}).then(()=>{["transfer-encoding","content-encoding","content-length"].filter(e=>e in r.headers).forEach(e=>delete r.headers[e]);let e=(e,t)=>("object"==typeof t&&null!=t&&("cp"in t&&(t.cp=1),"fee"in t&&(t.fee=0),"downloadMaxbr"in t&&0===t.downloadMaxbr&&(t.downloadMaxbr=32e4),"dl"in t&&"downloadMaxbr"in t&&t.dle&&h.error(e,`A error occurred in hook.request.after when hooking ${t.url}.`));if(u){if(new Set([201,301,302,303,307,308]).has(r.statusCode))return s(t.method,i(t.url).resolve(r.headers.location),t.headers).then(t=>e.proxyRes=t);/p\d+c*\.music\.126\.net/.test(t.url)&&(r.headers["content-type"]="audio/*")}},v.connect.before=e=>{let{req:t}=e,r=i("https://"+t.url);[r.hostname,t.headers.host].some(e=>v.target.host.has(e))?80===parseInt(r.port)?(t.url=`${global.address||"localhost"}:${global.port[0]}`,t.local=!0):global.port[1]?(t.url=`${global.address||"localhost"}:${global.port[1]}`,t.local=!0):e.decision="blank":r.href.includes(global.endpoint)&&(e.decision="proxy")},v.negotiate.before=e=>{let{req:t,socket:r,decision:o}=e,s=i("https://"+t.url),a=v.target.host;!t.local&&!o&&a.has(r.sni)&&!a.has(s.hostname)&&(a.add(s.hostname),e.decision="blank")};let _=e=>{let t;let{req:r,netease:i}=e,s="http://music.163.com/api/song/enhance/player/url";if(i.forward){let{id:e,br:r}=i.param;i.param={ids:`["${e}"]`,br:r},t=o.linuxapi.encryptRequest(s,i.param)}else{let{id:e,br:r,level:a,e_r:u,header:l}=i.param;if(!r&&a)switch(a){case"hires":case"lossless":r=999e3;break;case"exhigh":r=32e4;break;case"standard":r=128e3}i.param={ids:`["${e}"]`,br:r,e_r:u,header:l},t=o.eapi.encryptRequest(s,i.param)}r.url=t.url,r.body=t.body+i.pad},S=e=>{let{req:t,netease:r}=e,{trackIds:i,pid:o,op:a}=r.param,u=(Array.isArray(i)?i:JSON.parse(i))[0];return s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${u},${u}]&pid=${o}&op=${a}`).then(e=>e.json()).then(e=>{r.jsonBody=e}).catch(e=>e&&h.error(e))},x=e=>{let{req:t,netease:r}=e,{trackId:i}=r.param,o=0,a=0;return s("GET","http://music.163.com/api/v1/user/info",t.headers).then(e=>e.json()).then(e=>s("GET",`http://music.163.com/api/user/playlist?uid=${a=e.userPoint.userId}&limit=1`,t.headers).then(e=>e.json())).then(e=>(o=e.playlist[0].id,s("POST","http://music.163.com/api/playlist/manipulate/tracks",t.headers,`trackIds=[${i},${i}]&pid=${o}&op=add`).then(e=>e.json()))).then(e=>{new Set([200,502]).has(e.code)&&(r.jsonBody={code:200,playlistId:o})}).catch(e=>e&&h.error(e))},E=e=>s("GET",e.url).then(e=>o.md5.pipe(e)),O=e=>{let t;let{req:r,netease:i}=e,{jsonBody:s}=i,l=Number(process.env.MIN_BR)||0,c=0,f=e=>{if(e.flag=0,(200!==e.code||e.freeTrialInfo||e.br{let s="";try{let{header:e}=i.param;e="string"==typeof e?JSON.parse(e):e;let t=u.parse(r.headers.cookie.replace(/\s/g,""),";");s=e.os||t.os}catch(e){}return e.type=999e3===t.br?"flac":"mp3","pc"===s||"uwp"===s?e.url=global.endpoint?`${global.endpoint.replace("https://","http://")}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url:e.url=global.endpoint?`${global.endpoint}/package/${o.base64.encode(t.url)}/${e.id}.${e.type}`:t.url,e.md5=t.md5||o.md5.digest(t.url),e.br=t.br||128e3,e.size=t.size,e.code=200,e.freeTrialInfo=null,t}).then(t=>{if(!i.path.includes("download")||t.md5)return;let o=(e,t)=>{let r=Array.from([e,t]).map(e=>e.split(".").slice(0,3).map(e=>parseInt(e)||0)).reduce((e,t)=>e.length?e.map((e,r)=>e.concat(t[r])):t.map(e=>[e]),[]).filter(e=>e[0]!==e[1])[0];return!r||r[0]<=r[1]},s={android:"0.0.0",osx:"0.0.0"},a={key:t.url.replace(/\?.*$/,"").replace(/(?<=kugou\.com\/)\w+\/\w+\//,"").replace(/(?<=kuwo\.cn\/)\w+\/\w+\/resource\//,""),url:t.url};try{let{header:t}=i.param;t="string"==typeof t?JSON.parse(t):t;let l=u.parse(r.headers.cookie.replace(/\s/g,""),";"),c=t.os||l.os,f=t.appver||l.appver;if(c in s&&o(s[c],f))return p.cache(a,()=>E(a)).then(t=>e.md5=t)}catch(e){}}).catch(e=>e&&h.error(e));200===e.code&&i.web&&(e.url=e.url.replace(/(m\d+?)(?!c)\.music\.126\.net/,"$1c.music.126.net"))};return Array.isArray(s.data)?i.path.includes("download")?(s.data=s.data[0],t=[f(s.data)]):(c=i.web?0:parseInt(((Array.isArray(i.param.ids)?i.param.ids:JSON.parse(i.param.ids))[0]||0).toString().replace("_0","")),t=s.data.map(e=>f(e))):t=[f(s.data)],Promise.all(t).catch(e=>e&&h.error(e))},j=e=>{h.debug("unblockSoundEffects() has been triggered.");let{data:t,code:r}=e;200===r&&(Array.isArray(t)?t.map(e=>{e.type&&(e.type=1)}):t.type&&(t.type=1))},k=e=>{h.debug("unblockLyricsEffects() has been triggered.");let{data:t,code:r}=e;200===r&&Array.isArray(t)&&t.forEach(e=>{"canUse"in e&&(e.canUse=!0),"canNotUseReasonCode"in e&&(e.canNotUseReasonCode=200)})};e.exports=v},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(5027),r(8635);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),l=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),c=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),p=o(64).map(e=>s(2,e));p[p.length-1]=p[p.length-1].multiply(-1);let d=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),g=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),y=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(p[e[t].low]).equals(0)||(s=s.or(p[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(l,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let l=i(0);f=i(s[1]),f=(f=b(u,64,f)).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{l=l.shiftLeft(4).or(m[e][r[e]])}),f=b(d,32,l),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(c,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(g,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(y,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let l=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{l[t]=i(e[r+8*t]).shiftLeft(8*r).or(l[t])})});let c=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{c[e]=v(u,l[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(c[a]=v(u,h));let p=o(8*c.length).map(()=>0),d=0;return c.forEach(e=>{o(8).forEach(t=>{p[d]=e.shiftRight(8*t).and(255).low,d+=1})}),Buffer.from(p)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0),E=e=>_(e,S,1),O=e=>x(Buffer.from(e)).toString("base64");e.exports={encrypt:x,decrypt:E,encryptQuery:O}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",l=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:u,ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));function c(e){return l.child({scope:e})}e.exports={logger:l,logScope:c}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),l=r(5262),c=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return l("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(c),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return l("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},p=s("provider/bilibili"),d=e=>p.cache(e,()=>f(e)).then(h);e.exports={check:d,track:h}},8537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(1210),r(8019),r(8330),r(8386),r(9368);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=(e,t)=>Object.keys(e).reduce((r,i)=>Object.assign(r,t.includes(i)&&{[i]:e[i]}),{}),a=e=>{let t=[e[0]],r=()=>t.reduce((e,t)=>e+t.length,0);return e.slice(1).some(e=>r()>15||(t.push(e),!1)),t},u=e=>{try{let r=s(e,["id","name","alias","duration"]);if(r.name=(r.name||"").replace(/(\s*cover[::\s][^)]+)/i,"").replace(/\(\s*cover[::\s][^)]+\)/i,"").replace(/(\s*翻自[::\s][^)]+)/,"").replace(/\(\s*翻自[::\s][^)]+\)/,""),r.album=s(e.album,["id","name"]),r.artists=e.artists.map(e=>s(e,["id","name"])),r.keyword=r.name+" - "+a(r.artists.map(e=>e.name)).join(" / "),"true"===process.env.SEARCH_ALBUM){var t;let e=null===(t=r.album)||void 0===t?void 0:t.name;e&&e!==r.name&&(r.keyword+=` ${e}`)}return r}catch(e){return console.log("getFormatData err: ",e),{}}},l=(e,t)=>{if(t){let e=u(t);return e.name?Promise.resolve(e):Promise.reject()}{let t="https://music.163.com/api/song/detail?ids=["+e+"]";return i("GET",t).then(e=>e.json()).then(e=>{if(e&&e.songs&&e.songs.length){let t=u(e.songs[0]);return t.name?t:Promise.reject()}return Promise.reject()})}},c=o("provider/find");e.exports=(e,t)=>t?l(e,t):c.cache(e,()=>l(e))},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2071);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},c=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=c(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,l).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},p=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,l).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},d=u("provider/joox"),g=e=>d.cache(e,()=>h(e)).then(p);e.exports={check:g,track:p}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),c=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(l),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),p=u("provider/kugou"),d=e=>p.cache(e,()=>c(e)).then(h);e.exports={check:d,search:c}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.musicrid.split("_").pop(),name:e.name,duration:1e3*e.duration,album:{id:e.albumid,name:e.album},artists:e.artist.split("&").map((t,r)=>({id:r?null:e.artistid,name:t}))}),c=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," ")),r=`http://www.kuwo.cn/api/www/search/searchMusicBykeyWord?key=${t}&pn=1&rn=30`,i=s.random.hex(32).toUpperCase();return a("GET",r,{referer:`http://www.kuwo.cn/search/list?key=${t}`,cross:s.md5.digest(s.sha1.digest(i)),cookie:`Hm_token=${i}`}).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo"),p=e=>h.cache(e,()=>c(e)).then(f);e.exports={check:p,track:f}},886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8109),r(4608),r(8034),r(2946),r(3560),r(5217),r(3385),r(4603),r(4783),r(6399),r(5519),r(6931),r(3682),r(9022),r(2931),r(9515),r(5162),r(7114),r(8386),r(9368),r(3183),r(4334),r(863),r(1742),r(5027),r(8635);let i=r(8537),o=r(5262),{PROVIDERS:s,DEFAULT_SOURCE:a}=r(1784),{isHostWrapper:u}=r(5157),l=r(9057),c=r(6014),f=r(312),{logScope:h}=r(7691),p=r(4113),d=h("provider/match"),g=e=>e>=200&&e<=299,y=new Map([["bilivideo.com","https://www.bilibili.com/"],["yt-download.org","https://www.yt-download.org/"]]);async function m(e,t){d.debug({source:e,info:t},"Getting the audio...");let r=await s[e].check(t);if(!r)throw new l(e);let i=await v(r);if(d.debug(i,"The matched song is:"),!i||"string"!=typeof i.url)throw new f("song is undefined, or song.url is not a string.");return d.debug({source:e,info:t},"The audio matched!"),i}async function b(e,t,r){let o=(t||global.source||a).filter(e=>e in s),u=await i(e,r),c=null;if(process.env.SELECT_MAX_BR){let e=await Promise.allSettled(o.map(async e=>m(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));if(0===(e=e.filter(e=>"fulfilled"===e.status)).length)throw new l("any source");c=(e=e.map(e=>e.value)).reduce((e,t)=>e.br>=t.br?e:t)}else if(process.env.FOLLOW_SOURCE_ORDER){for(let e=0;em(e,u).catch(e=>{throw e&&(e instanceof p?d.debug(e):d.error(e)),e})));let{id:f,name:h}=u,{url:g}=c;return d.debug({audioInfo:u,audioData:c},"The data to replace:"),d.info({audioId:f,songName:h,url:g},`Replaced: [${f}] ${h}`),c}async function v(e){let t=u(e),r={size:0,br:null,url:null,md5:null},i={range:"bytes=0-8191","accept-encoding":"identity"};y.forEach((e,r)=>{t(r)&&(i.referer=e)});let s=await o("GET",e,i),{headers:a}=s;if(!g(s.statusCode))throw new c(e,s.statusCode);r.url=s.url.href;let l=await s.body(!0);try{let e=w(l);r.br=e&&!isNaN(e)?1e3*e:null}catch(e){d.debug(e,"Failed to decode and extract the bitrate")}if(!r.br){if(t("qq.com")&&r.url.includes(".m4a")&&(r.br=96e3),t("bilivideo.com")&&r.url.includes(".m4a")){let e=r.url.match(/-(\d+)k\.m4a/),t=parseInt(e);isNaN(t)?t=192e3:t<96||t>999?t=192e3:t*=1e3,r.br=t}t("googlevideo.com")&&(r.br=128e3)}return a&&(t("126.net")&&(r.md5=r.url.split("/").slice(-1)[0].replace(/\..*/g,"")),t("qq.com")&&(r.md5=a["server-md5"]),r.size=parseInt((a["content-range"]||"").split("/").pop()||a["content-length"])||0,!t("yt-download.org")&&"8192"!==a["content-length"])?Promise.reject():r}function w(e){let t={3:{3:["free",32,64,96,128,160,192,224,256,288,320,352,384,416,448,"bad"],2:["free",32,48,56,64,80,96,112,128,160,192,224,256,320,384,"bad"],1:["free",32,40,48,56,64,80,96,112,128,160,192,224,256,320,"bad"]},2:{3:["free",32,48,56,64,80,96,112,128,144,160,176,192,224,256,"bad"],2:["free",8,16,24,32,40,48,56,64,80,96,112,128,144,160,"bad"]}};t[2][1]=t[2][2],t[0]=t[2];let r=0;if("fLaC"===e.slice(0,4).toString())return 999;if("ID3"===e.slice(0,3).toString()){r=6;let t=e.slice(r,r+4).reduce((e,t,r)=>e+(127&t)<<7*(3-r),0);r=10+t}let i=e.slice(r,r+4);if(4===i.length&&255===i[0]&&(i[1]>>5&7)==7&&(i[1]>>1&3)!=0&&(i[2]>>4&15)!=15&&(i[2]>>2&3)!=3){let e=i[1]>>3&3,r=i[1]>>1&3,o=i[2]>>4;return t[e][r][o]}}e.exports=b},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},l=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},c=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),p=a("provider/migu"),d=e=>p.cache(e,()=>c(e)).then(h);e.exports={check:d,track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="http://76.76.21.21/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2),r={Host:"music.163-my-beloved.com"};return o("GET",t,r).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd"),l=e=>u.cache(e,()=>a(e));e.exports={check:l}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},l=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),c=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl,o={range:"bytes=0-8191","accept-encoding":"identity"};return s("GET",i,o).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),p=a("provider/qq"),d=e=>p.cache(e,()=>c(e)).then(h);e.exports={check:d,track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function p(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let d=async e=>{let{id:t}=await p(l(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(l(c(e)));return t},y=i("youtube-dl"),m=e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:g}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(2071),r(6803),r(4519);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,l=process.env.YOUTUBE_KEY||null,c=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${l}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},p=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>c(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})},d=e=>a.cache(e,()=>l?f(e):h(e)).then(p);e.exports={check:d,track:p}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function p(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let d=async e=>{let{id:t}=await p(l(f(e.keyword)));return t},g=async e=>{let{url:t}=await p(l(c(e)));return t},y=i("yt-dlp"),m=e=>y.cache(e,()=>d(e)).then(g).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:g}},9588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=void 0,a=process.env.YOUTUBE_KEY||null,u=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${a}`;return i("GET",t,{accept:"application/json"},null,s).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},l=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[0];return r?r.videoRenderer.videoId:Promise.reject()})},c=e=>{let t=`https://www.yt-download.org/api/button/mp3/${e}`,r=/]*href=["']([^"']*)["']/;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{var t=e.match(r);return t?t[1]:Promise.reject()})},f=o("provider/yt-download"),h=e=>f.cache(e,()=>a?u(e):l(e)).then(c);e.exports={check:h,track:c}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8330),r(2071);let i=r(9796),o=r(2181),s=r(5687),a=r(2188),u=r(4113),{logScope:l}=r(7691),c=r(7310).parse,f=r(7310).format,h=l("request"),p=e=>(global.hosts||{})[e]||e,d=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,g=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=p(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?p(t.hostname)+":"+(t.port||443):"http://"+p(t.hostname)+t.path):(o.hostname=p(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},y=(e,t,r,i,o,l)=>{let p=c(t),w=r||{},_=g(e,p,{host:p.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,c)=>{var g;h.debug(`Start requesting ${t}`);let y=d(p,o)(_),m=function(){y.destroy(new u(f(p)))};null==l||l.on(a,m),null!==(g=null==l?void 0:l.cancelled)&&void 0!==g&&g&&m(),y.setTimeout(1e4,()=>{h.warn({url:f(p)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:p.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>c(e)).end(i)}).on("error",e=>c(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==l?void 0:l.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(p)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=p.resolve(t.headers.location||p.href);return h.debug(`Redirect to ${r}`),delete w.host,y(e,r,w,i,o)}return Object.assign(t,{url:p,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));y.read=m,y.create=d,y.translate=p,y.configure=g,e.exports=y},8837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2931),r(9515),r(5162),r(1210),r(8019);let i=r(7147),o=r(1808),s=r(1017),a=r(7310).parse,{logScope:u}=r(7691),l=u("server"),c=r(313),f=r(403),h=r(5262),{isHost:p}=r(5157),d={core:{mitm:(e,t)=>{if("/proxy.pac"===e.url){let r=a("http://"+e.headers.host);t.writeHead(200,{"Content-Type":"application/x-ns-proxy-autoconfig"}),t.end(` function FindProxyForURL(url, host) { if (${Array.from(f.target.host).map(e=>`host == '${e}'`).join(" || ")}) { return 'PROXY ${r.hostname}:${r.port||80}' @@ -78,4 +78,4 @@ ${o(r+4)}${t(e[1])}`)};e.length&&console.log("\npositional arguments:"),e.forEac o${r} if ([o${r}].length !== 1) throw Error() })() - `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}e.exports=s},2988:e=>{e.exports=a,a.default=a,a.stable=f,a.stableStringify=f;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,r,a){void 0===a&&(a=s()),l(e,"",0,[],void 0,0,a);try{u=0===o.length?JSON.stringify(e,t,r):JSON.stringify(e,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u,c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function u(e,t,r,s){var a=Object.getOwnPropertyDescriptor(s,r);void 0!==a.get?a.configurable?(Object.defineProperty(s,r,{value:e}),i.push([s,r,t,a])):o.push([t,r,e]):(s[r]=e,i.push([s,r,t]))}function l(e,i,o,s,a,c,f){if(c+=1,"object"==typeof e&&null!==e){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&o+1>f.edgesLimit){u(t,e,i,a);return}if(s.push(e),Array.isArray(e))for(h=0;ht?1:0}function f(e,t,r,a){void 0===a&&(a=s());var u,l=h(e,"",0,[],void 0,0,a)||e;try{u=0===o.length?JSON.stringify(l,t,r):JSON.stringify(l,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function h(e,o,s,a,l,f,p){if(f+=1,"object"==typeof e&&null!==e){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&s+1>p.edgesLimit){u(t,e,o,l);return}if(a.push(e),Array.isArray(e))for(d=0;d0)for(var i=0;i{"use strict";function t(e){return e}e.exports=t},1828:(e,t,r)=>{try{var i=r(3837);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3730)}},3730:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3538:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}function s(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")}function a(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}e.exports={register:s,unregister:a}},5962:(e,t,r)=>{var i=r(4447);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},2306:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(5443),s=r(7008);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,l=t.close||a,c=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),c[i]&&(c.lastTime=t.time,c.lastLevel=t.level,c.lastObj=t),r)?e:t},{autoDestroy:!0});c._destroy=function(e,t){let r=l(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(c[i]=!0,c.lastTime=0,c.lastLevel=0,c.lastObj=null);let f=e(c);if(f&&"function"==typeof f.catch)f.catch(e=>{c.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(c,f,{objectMode:!0});return c}},1787:(e,t,r)=>{"use strict";let i=r(8556)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},6441:(e,t,r)=>{"use strict";let i=r(8306),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:l,hooksSym:c}=r(4941),{noop:f,genLog:h}=r(9952),p={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=h(p.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(p.error,e),warn:e=>h(p.warn,e),info:e=>h(p.info,e),debug:e=>h(p.debug,e),trace:e=>h(p.trace,e)},g=Object.keys(p).reduce((e,t)=>(e[p[t]]=t,e),{}),y=Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});function m(e){let t=e[l].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e}function b(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function v(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],u=this[a],l=this[c].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=b(e,u)?d[e](l):h(r[e],l)}this.emit("level-change",e,o,t[i],i)}function w(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function _(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]}function S(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:g,r),o=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:p,e);return{labels:i,values:o}}function x(e,t,r){if("number"==typeof e){let i=[].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(g).map(e=>+e),1/0);if(!i.includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:p,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}function E(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}}e.exports={initialLsCache:y,genLsCache:m,levelMethods:d,getLevel:w,setLevel:v,isLevelEnabled:_,mappings:S,assertNoLevelCollisions:E,assertDefaultLevelFound:x}},8508:(e,t,r)=>{"use strict";let{version:i}=r(8002);e.exports={version:i}},5092:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(2361),o=r(4656),s=r(8306),a=r(1787),{lsCacheSym:u,levelValSym:l,setLevelSym:c,getLevelSym:f,chindingsSym:h,parsedChindingsSym:p,mixinSym:d,asJsonSym:g,writeSym:y,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:j,formatOptsSym:k,stringifiersSym:T}=r(4941),{getLevel:P,setLevel:R,isLevelEnabled:M,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:C}=r(6441),{asChindings:I,asJson:D,buildFormatters:$,stringify:B}=r(9952),{version:q}=r(8508),U=r(5434),F=class{},W={constructor:F,child:z,bindings:H,setBindings:J,flush:Y,isLevelEnabled:M,version:q,get level(){return this[f]()},set level(lvl){this[c](lvl)},get levelVal(){return this[l]},set levelVal(n){throw Error("levelVal is read-only")},[u]:L,[y]:K,[g]:D,[f]:P,[c]:R};Object.setPrototypeOf(W,i.prototype),e.exports=function(){return Object.create(W)};let G=e=>e;function z(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;s{"use strict";let i=r(9775),{redactFmtSym:o,wildcardFirstSym:s}=r(4941),{rx:a,validator:u}=i,l=u({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),c="[Redacted]";function f(e,t){let{paths:r,censor:u}=h(e),l=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:u}=i,l=`${t.substr(u,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(l)}),e[o].push(l),e},{}),c={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},f=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(l),...Object.getOwnPropertySymbols(l)].reduce((e,r)=>{if(null===l[r])e[r]=e=>f(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:l[r],censor:o,serialize:t,strict:!1})}return e},c)}function h(e){if(Array.isArray(e))return l(e={paths:e,censor:c}),e;let{paths:t,censor:r=c,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),l({paths:t,censor:r}),{paths:t,censor:r}}e.exports=f},4941:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),u=Symbol("pino.lsCache"),l=Symbol("pino.chindings"),c=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),p=Symbol("pino.redactFmt"),d=Symbol("pino.time"),g=Symbol("pino.timeSliceIndex"),y=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),j=Symbol.for("pino.formatters"),k=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:l,parsedChindingsSym:c,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:p,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},9649:e=>{"use strict";let t=()=>`,"time":${Date.now()}`,r=()=>`,"time":${Math.round(Date.now()/1e3)}`,i=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;e.exports={nullTime:()=>"",epochTime:t,unixTime:r,isoTime:i}},9952:(e,t,r)=>{"use strict";let i=r(4532),{mapHttpRequest:o,mapHttpResponse:s}=r(4186),a=r(4656),u=r(2988),{lsCacheSym:l,chindingsSym:c,parsedChindingsSym:f,writeSym:h,serializersSym:p,formatOptsSym:d,endSym:g,stringifiersSym:y,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(4941);function O(){}function j(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,u=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[d]),e)}else this[h](null,i(t,a,this[d]),e)}}function k(e){let t="",r=0,i=!1,o=255,s=e.length;if(s>100)return JSON.stringify(e);for(var a=0;a=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'}function T(e,t,r,i){let o;let s=this[m],a=this[y],u=this[g],f=this[c],h=this[p],d=this[x],v=this[E],w=this[l][r]+i;w+=f;let _=void 0===e.hasOwnProperty;d.log&&(e=d.log(e)),void 0!==t&&(e[v]=t);let S=a[b];for(let t in e)if(o=e[t],(_||e.hasOwnProperty(t))&&void 0!==o){o=h[t]?h[t](o):o;let e=a[t]||S;switch(typeof o){case"undefined":case"function":continue;case"number":!1===Number.isFinite(o)&&(o=null);case"boolean":e&&(o=e(o));break;case"string":o=(e||k)(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+u}function P(e,t){let r;let i=e[c],o=e[m],s=e[y],a=s[b],u=e[p],l=e[x].bindings;for(let e in t=l(t)){r=t[e];let l="level"!==e&&"serializers"!==e&&"formatters"!==e&&"customLevels"!==e&&t.hasOwnProperty(e)&&void 0!==r;if(!0===l){if(r=u[e]?u[e](r):r,void 0===(r=(s[e]||a||o)(r)))continue;i+=',"'+e+'":'+r}}return i}function R(e,t,i,o){if(t&&"function"==typeof t)return M((t=t.bind(o))(e),i,e);try{let t=r(1686).prettyFactory||r(1686);return t.asMetaWrapper=M,M(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function M(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,$(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[c].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,u=this.lastMsg,l=i[x],c=l.log?l.log(a):a,f=i[E];u&&c&&!c.hasOwnProperty(f)&&(c[f]=u);let h=Object.assign({level:this.lastLevel,time:s},c,null),d=i[p],g=Object.keys(d);for(var m=0;m=0&&!A(i)&&(i=L({fd:i.fd,sync:!0})),s){let e=Object.assign({messageKey:l},s);i=R(e,u,i,t)}return{opts:r,stream:i}}}function C(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o}function I(e){try{return JSON.stringify(e)}catch(t){return u(e)}}function D(e,t,r){return{level:e,bindings:t,log:r}}function $(e,t){!0===e[v]&&(e.lastLevel=t.lastLevel,e.lastMsg=t.lastMsg,e.lastObj=t.lastObj,e.lastTime=t.lastTime,e.lastLogger=t.lastLogger)}e.exports={noop:O,buildSafeSonicBoom:L,getPrettyStream:R,asChindings:P,asJson:T,genLog:j,createArgsNormalizer:N,final:C,stringify:I,buildFormatters:D}},8167:(e,t,r)=>{"use strict";let i=r(2037),o=r(4186),s=r(5434),a=r(9649),u=r(5092),l=r(4941),{assertDefaultLevelFound:c,mappings:f,genLsCache:h}=r(6441),{createArgsNormalizer:p,asChindings:d,final:g,stringify:y,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(9952),{version:w}=r(8508),{mixinMergeStrategySym:_}=r(4941),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:P,setLevelSym:R,endSym:M,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:I,formattersSym:D,hooksSym:$}=l,{epochTime:B,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:B,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},z=p(G),H=Object.assign(Object.create(null),o);function J(...e){let t={},{opts:r,stream:i}=z(t,...e),{redact:o,crlf:a,serializers:l,timestamp:p,messageKey:g,nestedKey:m,base:w,name:U,level:F,customLevels:W,useLevelLabels:H,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=r,ei=b(er.level,er.bindings,er.log);H&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=V):(Q||X)&&!H?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=K(Q||X)):(Q||X)&&H&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=Y(Q||X)),l[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=l[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=o?s(o,y):{},es=o?{stringify:eo[x]}:{stringify:y},ea=d.bind(null,{[S]:"",[E]:l,[P]:eo,[T]:y,[D]:ei}),eu="";null!==w&&(eu=ea(void 0===U?w:Object.assign({},w,{name:U})));let el=p instanceof Function?p:p?B:q,ec=el().indexOf(":")+1;if(et&&!W)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);c(F,W,et);let ef=f(W,et);return Object.assign(t,{levels:ef,[I]:et,[k]:i,[O]:el,[j]:ec,[T]:y,[P]:eo,[M]:"}"+(a?"\r\n":"\n"),[A]:es,[L]:g,[N]:m,[E]:l,[C]:Z,[_]:ee,[S]:eu,[D]:ei,[$]:en,silent:v}),Object.setPrototypeOf(t,u()),h(t),t[R](F),t}function V(e,t){return{level:e}}function K(e){return function(t,r){return{[e]:r}}}function Y(e){return function(t,r){return{[e]:t}}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=g,e.exports.levels=f(),e.exports.stdSerializers=H,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=l,e.exports.version=w,e.exports.default=J,e.exports.pino=J},4186:(e,t,r)=>{"use strict";let i=r(7657),o=r(6836),s=r(6364);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},7657:e=>{"use strict";e.exports=s;let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});function s(e){if(!(e instanceof Error))return e;e[r]=void 0;let i=Object.create(o);for(let o in i.type="[object Function]"===t.call(e.constructor)?e.constructor.name:e.name,i.message=e.message,i.stack=e.stack,e)if(void 0===i[o]){let t=e[o];t instanceof Error?t.hasOwnProperty(r)||(i[o]=s(t)):i[o]=t}return delete e[r],i.raw=e,i}Object.defineProperty(o,i,{writable:!0,value:{}})},6836:e=>{"use strict";e.exports={mapHttpRequest:o,reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}function o(e){return{req:i(e)}}Object.defineProperty(r,t,{writable:!0,value:{}})},6364:e=>{"use strict";e.exports={mapHttpResponse:o,resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function o(e){return{res:i(e)}}Object.defineProperty(r,t,{writable:!0,value:{}})},8556:(e,t,r)=>{"use strict";let{format:i}=r(3837);function o(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){return{code:o,name:r,message:e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}e.exports=o},1556:(e,t,r)=>{var i=r(5962),o=r(5546),s=r(7147),a=function(){},u=/^v?\.0/.test(process.version),l=function(e){return"function"==typeof e},c=function(e){return!!u&&!!s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&l(e.close)},f=function(e){return e.setHeader&&l(e.abort)},h=function(e,t,r,s){s=i(s);var u=!1;e.on("close",function(){u=!0}),o(e,{readable:t,writable:r},function(e){if(e)return s(e);u=!0,s()});var h=!1;return function(t){if(!u&&!h){if(h=!0,c(e))return e.close(a);if(f(e))return e.abort();if(l(e.destroy))return e.destroy();s(t||Error("stream was destroyed"))}}},p=function(e){e()},d=function(e,t){return e.pipe(t)},g=function(){var e,t=Array.prototype.slice.call(arguments),r=l(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(p),a||(i.forEach(p),r(e))})});return t.reduce(d)};e.exports=g},4532:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}function r(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var u=1;u-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=l||null==r[f])break;h=l||null==r[f])break;h=l||void 0===r[f])break;h",h=d+2,d++;break}c+=o(r[f]),h=d+2,d++;break;case 115:if(f>=l)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function o(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function s(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let u,l;if("string"==typeof t&&o(t,"not ")?(u="must not be",t=t.replace(/^not /,"")):u="must be",s(e," argument"))l=`The ${e} ${u} ${i(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${u} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},673:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(5006),s=r(8719);r(1828)(c,o);for(var a=i(s.prototype),u=0;u{"use strict";e.exports=o;var i=r(8597);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(1828)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},5006:(e,t,r)=>{"use strict";e.exports=P,P.ReadableState=T;var i,o,s,a,u,l=r(2361).EventEmitter,c=function(e,t){return e.listeners(t).length},f=r(1829),h=r(4300).Buffer,p=global.Uint8Array||function(){};function d(e){return h.from(e)}function g(e){return h.isBuffer(e)||e instanceof p}var y=r(3837);o=y&&y.debuglog?y.debuglog("stream"):function(){};var m=r(4506),b=r(3390),v=r(1111).getHighWaterMark,w=r(7638).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1828)(P,f);var O=b.errorOrDestroy,j=["error","close","destroy","pause","resume"];function k(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function T(e,t,o){i=i||r(673),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",o),this.buffer=new m,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7361).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||r(673),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,i,s){o("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,I(e,u);else if(s||(a=A(u,t)),a)O(e,a);else if(u.objectMode||t&&t.length>0){if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=d(t)),i)u.endEmitted?O(e,new E):M(e,u,t,!0);else if(u.ended)O(e,new S);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?M(e,u,t,!1):B(e,u)):M(e,u,t,!1)}}else i||(u.reading=!1,B(e,u));return!u.ended&&(u.length=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function C(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function I(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,$(e)))}}function D(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick($,e))}function $(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,H(e)}function B(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(q,e,t))}function q(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function W(e){o("readable nexttick read 0"),e.read(0)}function G(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z,e,t))}function z(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),H(e),t.flowing&&!t.reading&&e.read(0)}function H(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function J(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(K,t,e))}function K(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):D(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&V(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?J(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){O(this,new x("_read()"))},P.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?g:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=U(r);e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==Y(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===c(e,"error")&&O(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),k(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?D(this):i.reading||process.nextTick(W,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(F,this),r},P.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(F,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,G(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a{"use strict";e.exports=f;var i=r(7638).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,l=r(673);function c(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}e.exports=k,k.WritableState=j;var o,s,a={deprecate:r(4484)},u=r(1829),l=r(4300).Buffer,c=global.Uint8Array||function(){};function f(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var p=r(3390),d=r(1111).getHighWaterMark,g=r(7638).q,y=g.ERR_INVALID_ARG_TYPE,m=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,v=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,_=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,x=g.ERR_UNKNOWN_ENCODING,E=p.errorOrDestroy;function O(){}function j(e,t,s){o=o||r(673),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){C(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function k(e){var t=this instanceof(o=o||r(673));if(!t&&!s.call(k,this))return new k(e);this._writableState=new j(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function T(e,t){var r=new S;E(e,r),process.nextTick(t,r)}function P(e,t,r,i){var o;return null===r?o=new _:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(E(e,o),process.nextTick(i,o),!1)}function R(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function M(e,t,r,i,o,s){if(!r){var a=R(t,i,o);i!==a&&(r=!0,o="buffer",i=a)}var u=t.objectMode?1:i.length;t.length+=u;var l=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||W(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)}},8187:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(2426),a=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(d(r,!1)))}}function y(e){process.nextTick(g,e)}function m(e,t){return function(r,i){e.then(function(){if(t[c]){r(d(void 0,!0));return}t[h](r,i)},i)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){process.nextTick(function(){t[l]?r(t[l]):e(d(void 0,!0))})});var i=this[f];if(i)e=new Promise(m(i,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));e=new Promise(this[h])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),o),b),w=function(e){var t,r=Object.create(v,(i(t={},p,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[p].read();i?(r[f]=null,r[a]=null,r[u]=null,e(d(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[l]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(d(void 0,!0))),r[c]=!0}),e.on("readable",y.bind(null,r)),r};e.exports=w},4506:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,i=0;r;)p(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,s),0==(e-=s)){s===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(s));break}++i}return this.length-=i,t}},{key:h,value:function(e,t){return f(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},3390:e=>{"use strict";function t(e,t){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(s,this,e)):process.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(i,o):(o._writableState.errorEmitted=!0,process.nextTick(r,o,e)):process.nextTick(r,o,e):t?(process.nextTick(i,o),t(e)):process.nextTick(i,o)})),this}function r(e,t){s(e,t),i(e)}function i(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){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 s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:a}},2426:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),o=0;o{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),l=u.value}catch(e){r(e);return}u.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(o,s){var a=e.apply(t,r);function u(e){i(a,o,s,u,l,"next",e)}function l(e){i(a,o,s,u,l,"throw",e)}u(void 0)})}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function a(e){for(var t=1;t{"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o,s=r(7638).q,a=s.ERR_MISSING_ARGS,u=s.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function f(e,t,s,a){a=i(a);var l=!1;e.on("close",function(){l=!0}),void 0===o&&(o=r(2426)),o(e,{readable:t,writable:s},function(e){if(e)return a(e);l=!0,a()});var f=!1;return function(t){if(!l&&!f){if(f=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new u("pipe"))}}}function h(e){e()}function p(e,t){return e.pipe(t)}function d(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function g(){for(var e,t=arguments.length,r=Array(t),i=0;i0,function(t){e||(e=t),t&&s.forEach(h),a||(s.forEach(h),o(e))})});return r.reduce(p)}e.exports=g},1111:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_INVALID_OPT_VALUE;function o(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function s(e,t,r,s){var a=o(t,s,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var u=s?r:"highWaterMark";throw new i(u,a)}return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:s}},1829:(e,t,r)=>{e.exports=r(2781)},8118:(e,t,r)=>{var i=r(2781);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(5006)).Stream=i||t,t.Readable=t,t.Writable=r(8719),t.Duplex=r(673),t.Transform=r(8597),t.PassThrough=r(4343),t.finished=r(2426),t.pipeline=r(2970))},3268:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if((e=e||{}).circles)return i(e);return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,e);if(i instanceof Map)return new Map(r(Array.from(i),e));if(i instanceof Set)return new Set(r(Array.from(i),e));var o={};for(var s in i){var a=i[s];"object"!=typeof a||null===a?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(r(Array.from(a),e)):a instanceof Set?o[s]=new Set(r(Array.from(a),e)):ArrayBuffer.isView(a)?o[s]=t(a):o[s]=e(a)}return o}:function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,e);if(i instanceof Map)return new Map(r(Array.from(i),e));if(i instanceof Set)return new Set(r(Array.from(i),e));var o={};for(var s in i)if(!1!==Object.hasOwnProperty.call(i,s)){var a=i[s];"object"!=typeof a||null===a?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(r(Array.from(a),e)):a instanceof Set?o[s]=new Set(r(Array.from(a),e)):ArrayBuffer.isView(a)?o[s]=t(a):o[s]=e(a)}return o};function r(e,r){for(var i=Object.keys(e),o=Array(i.length),s=0;s{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(4300),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},9316:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",l=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let c=JSON.parse(e,o);if("ignore"===u&&"ignore"===l||null===c||"object"!=typeof c)return c;if("ignore"!==u&&"ignore"!==l){if(!1===r.test(e)&&!1===i.test(e))return c}else if("ignore"!==u&&"ignore"===l){if(!1===r.test(e))return c}else if(!1===i.test(e))return c;return s(c,{protoAction:u,constructorAction:l}),c}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}function a(e,t){try{return o(e,t)}catch(e){return null}}e.exports={parse:o,scan:s,safeParse:a}},4656:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(8306),a=r(3837).inherits,u=r(160);function l(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&h(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function c(e){if(!(this instanceof c))return new c(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)l(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),this.sync)try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}else{i.write(this.fd,this._writingBuf,"utf8",this.release);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(c,o),c.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&h(this),t<16384},c.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},c.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),l(e||this.file,this)},c.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||p(this)}},c.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;u(100)}},c.prototype.destroy=function(){this.destroyed||p(this)},e.exports=c},5443:(e,t,r)=>{"use strict";let{Transform:i}=r(2781),{StringDecoder:o}=r(1576),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){let t=this[a].write(e);if(1===(i=t.split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function l(e){if(this[s]+=this[a].end(),this[s])try{c(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function c(e,t){void 0!==t&&e.push(t)}function f(e){return e}function h(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=u,r.flush=l,r.readableObjectMode=!0;let c=new i(r);return c[s]="",c[a]=new o("utf8"),c.matcher=e,c.mapper=t,c.maxLength=r.maxLength,c.skipOverflow=r.skipOverflow||!1,c.overflow=!1,c._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},c}e.exports=h},6151:e=>{function t(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(r(t)):null}function r(e){return e.buffer.length?e.buffer.head?e.buffer.head.data.length:e.buffer[0].length:e.length}e.exports=t},7361:(e,t,r)=>{"use strict";var i=r(9685).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.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 s(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=s(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function u(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=g,this.end=y,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=b,t=3;break;default:this.write=v,this.end=w;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function f(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=f(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function g(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function w(e){return e&&e.length?this.write(e):""}t.s=u,u.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{e.exports=r(3837).deprecate},4447:e=>{e.exports=t;function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw TypeError("need wrapper function");return Object.keys(e).forEach(function(t){i[t]=e[t]}),i;function i(){for(var t=Array(arguments.length),r=0;r{var i=r(3284),o=r(2903),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},587:(e,t,r)=>{var i=r(17).has;e.exports=function(e){return i(e),e}},3939:(e,t,r)=>{var i=r(3284),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},591:(e,t,r)=>{var i=r(3228).has;e.exports=function(e){return i(e),e}},348:(e,t,r)=>{var i=r(2145),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},7397:(e,t,r)=>{var i=r(6120),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},947:(e,t,r)=>{var i=r(1165),o=r(4708),s=r(4676),a=function(e){return function(t,r,a){var u,l=i(t),c=s(l),f=o(a,c);if(e&&r!=r){for(;c>f;)if((u=l[f++])!=u)return!0}else for(;c>f;f++)if((e||f in l)&&l[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6941:(e,t,r)=>{"use strict";var i=r(783),o=r(8629),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9641:(e,t,r)=>{var i=r(5767),o=r(3204),s=r(3219);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},3519:(e,t,r)=>{"use strict";var i=r(5767),o=r(2617),s=r(7397),a=r(2383),u=r(3853),l=r(8586),c=r(1664),f=r(6890),h=r(3204),p=r(3219),d=r(2930),g=r(7901),y=r(9293),m=h("Promise"),b=c("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(g(void 0,!0))}:{exit:!1,value:a}};return l(a(d),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),l=a.value;if(a.exit)return l;l.done=!0;var c=l.iterator,f=o(function(){if(l.inner)try{y(l.inner.iterator,"normal")}catch(e){return y(c,"throw",e)}return p(c,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(g(void 0,!0)):(r=(f=o(function(){return i(t,c)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),g(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},7797:(e,t,r)=>{"use strict";var i=r(5767),o=r(5416),s=r(7397),a=r(6120),u=r(1221),l=r(3204),c=r(4058),f=r(9641),h=function(e){var t=0==e,r=1==e,h=2==e,p=3==e;return function(e,d,g){s(e);var y=void 0!==d;(y||!t)&&o(d);var m=c(e),b=l("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var l=function(e){f(v,o,e,o)},c=function(){try{if(y)try{u(_)}catch(e){l(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(g.length=_,e(g)):e(!p&&(h||void 0));else{var u=i.value;try{if(y){var m=d(u,_),w=function(i){if(r)c();else if(h)i?c():f(v,e,!1,o);else if(t)try{g[_++]=i,c()}catch(e){l(e)}else i?f(v,e,p||u,o):c()};a(m)?b.resolve(m).then(w,l):w(m)}else g[_++]=u,c()}catch(e){l(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};c()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},4849:(e,t,r)=>{"use strict";var i=r(5767),o=r(5416),s=r(7397),a=r(6120),u=r(4058),l=r(3519),c=r(7901),f=r(9641),h=l(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,l){var h=function(e){t.done=!0,l(e)},p=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(c(void 0,!0));else{var i=r.value;try{var l=o(i,t.counter++),f=function(e){u(c(e,!1))};a(l)?e.resolve(l).then(f,p):f(l)}catch(e){p(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},2930:(e,t,r)=>{var i,o,s=r(6234),a=r(2750),u=r(3284),l=r(2383),c=r(4857),f=r(9059),h=r(1664),p=r(5419),d="USE_FUNCTION_CONSTRUCTOR",g=h("asyncIterator"),y=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(y))i=y.prototype;else if(a[d]||s[d])try{o=c(c(c(Function("return async function*(){}()")()))),c(o)===Object.prototype&&(i=o)}catch(e){}i?p&&(i=l(i)):i={},u(i[g])||f(i,g,function(){return this}),e.exports=i},6037:(e,t,r)=>{var i=r(7397),o=r(9293);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},1209:(e,t,r)=>{var i=r(1664)("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},9806:(e,t,r)=>{var i=r(8681),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},904:(e,t,r)=>{var i=r(4419),o=r(3284),s=r(9806),a=r(1664)("toStringTag"),u=Object,l="Arguments"==s(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=c(t=u(e),a))?r:l?s(t):"Object"==(i=s(t))&&o(t.callee)?"Arguments":i}},2578:(e,t,r)=>{var i=r(2624),o=r(5189),s=r(1390),a=r(7936);e.exports=function(e,t,r){for(var u=o(t),l=a.f,c=s.f,f=0;f{var i=r(6554);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},7901:e=>{e.exports=function(e,t){return{value:e,done:t}}},3853:(e,t,r)=>{var i=r(783),o=r(7936),s=r(9697);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},9697:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7371:(e,t,r)=>{"use strict";var i=r(5537),o=r(7936),s=r(9697);e.exports=function(e,t,r){var a=i(t);a in e?o.f(e,a,s(0,r)):e[a]=r}},1701:(e,t,r)=>{var i=r(8921),o=r(7936);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},9059:(e,t,r)=>{var i=r(3284),o=r(7936),s=r(8921),a=r(6395);e.exports=function(e,t,r,u){u||(u={});var l=u.enumerable,c=void 0!==u.name?u.name:t;if(i(r)&&s(r,c,u),u.global)l?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},8586:(e,t,r)=>{var i=r(9059);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},6395:(e,t,r)=>{var i=r(6234),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},783:(e,t,r)=>{var i=r(6554);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},5271:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},3147:(e,t,r)=>{var i=r(6234),o=r(6120),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},1221:e=>{var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},9134:(e,t,r)=>{var i=r(7158),o=r(197);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},7158:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},197:(e,t,r)=>{var i=r(9806);e.exports="undefined"!=typeof process&&"process"==i(process)},3527:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5229:(e,t,r)=>{var i,o,s=r(6234),a=r(3527),u=s.process,l=s.Deno,c=u&&u.versions||l&&l.version,f=c&&c.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},1156:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3828:(e,t,r)=>{var i=r(8681),o=Error,s=i("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,l=u.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},4809:(e,t,r)=>{var i=r(3853),o=r(3828),s=r(8839),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},8839:(e,t,r)=>{var i=r(6554),o=r(9697);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},5200:(e,t,r)=>{var i=r(6234),o=r(1390).f,s=r(3853),a=r(9059),u=r(6395),l=r(2578),c=r(5520);e.exports=function(e,t){var r,f,h,p,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||u(g,{}):(i[g]||{}).prototype)for(f in t){if(p=t[f],h=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!c(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),a(r,f,p,e)}}},6554:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},1322:(e,t,r)=>{var i=r(5354),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},9219:(e,t,r)=>{var i=r(5905),o=r(5416),s=r(5354),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},5354:(e,t,r)=>{var i=r(6554);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},5767:(e,t,r)=>{var i=r(5354),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1050:(e,t,r)=>{var i=r(783),o=r(2624),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),l=u&&"something"===(function(){}).name,c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:l,CONFIGURABLE:c}},2808:(e,t,r)=>{var i=r(8681),o=r(5416);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},5905:(e,t,r)=>{var i=r(9806),o=r(8681);e.exports=function(e){if("Function"===i(e))return o(e)}},8681:(e,t,r)=>{var i=r(5354),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},3204:(e,t,r)=>{var i=r(6234),o=r(3284),s=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e]):i[e]&&i[e][t]}},4058:e=>{e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},9759:(e,t,r)=>{var i=r(904),o=r(3219),s=r(1942),a=r(6193),u=r(1664)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},9531:(e,t,r)=>{var i=r(5767),o=r(5416),s=r(7397),a=r(2903),u=r(9759),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw l(a(e)+" is not iterable")}},3219:(e,t,r)=>{var i=r(5416),o=r(1942);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},9010:(e,t,r)=>{var i=r(5416),o=r(7397),s=r(5767),a=r(2495),u=TypeError,l=Math.max,c=function(e,t,r,i){this.set=e,this.size=t,this.has=r,this.keys=i};c.prototype={getIterator:function(){return o(s(this.keys,this.set))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw u("Invalid size");return new c(e,l(a(t),0),i(e.has),i(e.keys))}},6234:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},2624:(e,t,r)=>{var i=r(8681),o=r(9306),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},5926:e=>{e.exports={}},9241:(e,t,r)=>{var i=r(3204);e.exports=i("document","documentElement")},6925:(e,t,r)=>{var i=r(783),o=r(6554),s=r(3147);e.exports=!i&&!o(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1643:(e,t,r)=>{var i=r(8681),o=r(6554),s=r(9806),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==s(e)?u(e,""):a(e)}:a},6302:(e,t,r)=>{var i=r(3284),o=r(6120),s=r(239);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},811:(e,t,r)=>{var i=r(8681),o=r(3284),s=r(2750),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},7771:(e,t,r)=>{var i=r(6120),o=r(3853);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},6890:(e,t,r)=>{var i,o,s,a=r(2125),u=r(6234),l=r(6120),c=r(3853),f=r(2624),h=r(2750),p=r(5771),d=r(5926),g="Object already initialized",y=u.TypeError,m=u.WeakMap,b=function(e){return s(e)?o(e):i(e,{})},v=function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}};if(a||h.state){var w=h.state||(h.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,i=function(e,t){if(w.has(e))throw y(g);return t.facade=e,w.set(e,t),t},o=function(e){return w.get(e)||{}},s=function(e){return w.has(e)}}else{var _=p("state");d[_]=!0,i=function(e,t){if(f(e,_))throw y(g);return t.facade=e,c(e,_,t),t},o=function(e){return f(e,_)?e[_]:{}},s=function(e){return f(e,_)}}e.exports={set:i,get:o,has:s,enforce:b,getterFor:v}},2794:(e,t,r)=>{var i=r(1664),o=r(6193),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},8629:(e,t,r)=>{var i=r(9806);e.exports=Array.isArray||function(e){return"Array"==i(e)}},3284:(e,t,r)=>{var i=r(5271),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},5520:(e,t,r)=>{var i=r(6554),o=r(3284),s=/#|\.prototype\./,a=function(e,t){var r=l[u(e)];return r==f||r!=c&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},8918:(e,t,r)=>{var i=r(904),o=r(2624),s=r(1942),a=r(1664),u=r(6193),l=a("iterator"),c=Object;e.exports=function(e){if(s(e))return!1;var t=c(e);return void 0!==t[l]||"@@iterator"in t||o(u,i(t))}},1942:e=>{e.exports=function(e){return null==e}},6120:(e,t,r)=>{var i=r(3284),o=r(5271),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},5419:e=>{e.exports=!1},2575:(e,t,r)=>{var i=r(3204),o=r(3284),s=r(2145),a=r(6591),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},6644:(e,t,r)=>{var i=r(5767);e.exports=function(e,t,r){for(var o,s,a=r||e.next;!(o=i(a,e)).done;)if(void 0!==(s=t(o.value)))return s}},4302:(e,t,r)=>{var i=r(9219),o=r(5767),s=r(7397),a=r(2903),u=r(2794),l=r(4676),c=r(2145),f=r(9531),h=r(9759),p=r(9293),d=TypeError,g=function(e,t){this.stopped=e,this.result=t},y=g.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),j=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),P=i(t,E),R=function(e){return m&&p(m,"normal",e),new g(!0,e)},M=function(e){return O?(s(e),T?P(e[0],e[1],R):P(e[0],e[1])):T?P(e,R):P(e)};if(j)m=e.iterator;else if(k)m=e;else{if(!(b=h(e)))throw d(a(e)+" is not iterable");if(u(b)){for(v=0,w=l(e);w>v;v++)if((_=M(e[v]))&&c(y,_))return _;return new g(!1)}m=f(e,b)}for(S=j?e.next:m.next;!(x=o(S,m)).done;){try{_=M(x.value)}catch(e){p(m,"throw",e)}if("object"==typeof _&&_&&c(y,_))return _}return new g(!1)}},9293:(e,t,r)=>{var i=r(5767),o=r(7397),s=r(3219);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},8694:(e,t,r)=>{"use strict";var i=r(5767),o=r(2383),s=r(3853),a=r(8586),u=r(1664),l=r(6890),c=r(3219),f=r(935).IteratorPrototype,h=r(7901),p=r(9293),d=u("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",m=l.set,b=function(e){var t=l.getterFor(e?y:g);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=c(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,d,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},2499:(e,t,r)=>{"use strict";var i=r(5767),o=r(5416),s=r(7397),a=r(4058),u=r(8694),l=r(6037),c=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new c(a(this),{mapper:e})}},935:(e,t,r)=>{"use strict";var i,o,s,a=r(6554),u=r(3284),l=r(6120),c=r(2383),f=r(4857),h=r(9059),p=r(1664),d=r(5419),g=p("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!l(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=c(i)),u(i[g])||h(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},6193:e=>{e.exports={}},4676:(e,t,r)=>{var i=r(8513);e.exports=function(e){return i(e.length)}},8921:(e,t,r)=>{var i=r(8681),o=r(6554),s=r(3284),a=r(2624),u=r(783),l=r(1050).CONFIGURABLE,c=r(811),f=r(6890),h=f.enforce,p=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==g(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===y(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(u?g(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&p(this).source||c(this)},"toString")},17:(e,t,r)=>{var i=r(8681),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},6753:(e,t,r)=>{var i=r(8681),o=r(6644),s=r(17),a=s.Map,u=s.proto,l=i(u.forEach),c=i(u.entries),f=c(new a).next;e.exports=function(e,t,r){return r?o(c(e),function(e){return t(e[1],e[0])},f):l(e,t)}},1919:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},9198:(e,t,r)=>{"use strict";var i=r(5416),o=TypeError,s=function(e){var t,r;this.promise=new e(function(e,i){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=i}),this.resolve=i(t),this.reject=i(r)};e.exports.f=function(e){return new s(e)}},5226:(e,t,r)=>{var i=r(730);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},2383:(e,t,r)=>{var i,o=r(7397),s=r(9912),a=r(1156),u=r(5926),l=r(9241),c=r(3147),f=r(5771),h=">",p="<",d="prototype",g="script",y=f("IE_PROTO"),m=function(){},b=function(e){return p+g+h+e+p+"/"+g+h},v=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=c("iframe");return t.style.display="none",l.appendChild(t),t.src=String("java"+g+":"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&i?v(i):w():v(i);for(var e=a.length;e--;)delete _[d][a[e]];return _()};u[y]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[d]=o(e),r=new m,m[d]=null,r[y]=e):r=_(),void 0===t?r:s.f(r,t)}},9912:(e,t,r)=>{var i=r(783),o=r(9836),s=r(7936),a=r(7397),u=r(1165),l=r(6782);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=l(t),c=o.length,f=0;c>f;)s.f(e,r=o[f++],i[r]);return e}},7936:(e,t,r)=>{var i=r(783),o=r(6925),s=r(9836),a=r(7397),u=r(5537),l=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var i=f(e,t);i&&i[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:i[p],enumerable:h in r?r[h]:i[h],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1390:(e,t,r)=>{var i=r(783),o=r(5767),s=r(8047),a=r(9697),u=r(1165),l=r(5537),c=r(2624),f=r(6925),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=l(t),f)try{return h(e,t)}catch(e){}if(c(e,t))return a(!o(s.f,e,t),e[t])}},8447:(e,t,r)=>{var i=r(8436),o=r(1156).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},8065:(e,t)=>{t.f=Object.getOwnPropertySymbols},4857:(e,t,r)=>{var i=r(2624),o=r(3284),s=r(9306),a=r(5771),u=r(3022),l=a("IE_PROTO"),c=Object,f=c.prototype;e.exports=u?c.getPrototypeOf:function(e){var t=s(e);if(i(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?f:null}},2145:(e,t,r)=>{var i=r(8681);e.exports=i({}.isPrototypeOf)},8436:(e,t,r)=>{var i=r(8681),o=r(2624),s=r(1165),a=r(947).indexOf,u=r(5926),l=i([].push);e.exports=function(e,t){var r,i=s(e),c=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&l(f,r);for(;t.length>c;)o(i,r=t[c++])&&(~a(f,r)||l(f,r));return f}},6782:(e,t,r)=>{var i=r(8436),o=r(1156);e.exports=Object.keys||function(e){return i(e,o)}},8047:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},239:(e,t,r)=>{var i=r(2808),o=r(7397),s=r(3939);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return o(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},7679:(e,t,r)=>{var i=r(5767),o=r(3284),s=r(6120),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw a("Can't convert object to primitive value")}},5189:(e,t,r)=>{var i=r(3204),o=r(8681),s=r(8447),a=r(8065),u=r(7397),l=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?l(t,r(e)):t}},2610:(e,t,r)=>{var i=r(8681),o=r(2624),s=SyntaxError,a=parseInt,u=String.fromCharCode,l=i("".charAt),c=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},4159:(e,t,r)=>{var i=r(6234),o=r(6583),s=r(3284),a=r(5520),u=r(811),l=r(1664),c=r(9134),f=r(7158),h=r(5419),p=r(5229),d=o&&o.prototype,g=l("species"),y=!1,m=s(i.PromiseRejectionEvent),b=a("Promise",function(){var e=u(o),t=e!==String(o);if(!t&&66===p||h&&!(d.catch&&d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((r.constructor={})[g]=i,!(y=r.then(function(){}) instanceof i))return!0}return!t&&(c||f)&&!m});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},6583:(e,t,r)=>{var i=r(6234);e.exports=i.Promise},8352:(e,t,r)=>{var i=r(6583),o=r(1209),s=r(4159).CONSTRUCTOR;e.exports=s||!o(function(e){i.all(e).then(void 0,function(){})})},3572:(e,t,r)=>{var i=r(7936).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},8532:(e,t,r)=>{"use strict";var i=r(7397);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},6325:(e,t,r)=>{var i=r(1942),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},7573:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},4486:(e,t,r)=>{var i=r(3228),o=r(8853),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},6680:(e,t,r)=>{"use strict";var i=r(591),o=r(3228),s=r(4486),a=r(8361),u=r(9010),l=r(8853),c=r(6644),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?l(t,function(e){r.includes(e)&&h(o,e)}):c(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},3228:(e,t,r)=>{var i=r(8681),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},6683:(e,t,r)=>{"use strict";var i=r(591),o=r(3228),s=r(8361),a=r(9010),u=r(8853),l=r(6644),c=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new c;return s(t)>r.size?l(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},3943:(e,t,r)=>{"use strict";var i=r(591),o=r(3228).has,s=r(8361),a=r(9010),u=r(8853),l=r(6644),c=r(9293);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==l(f,function(e){if(o(t,e))return c(f,"normal",!1)})}},3985:(e,t,r)=>{"use strict";var i=r(591),o=r(8361),s=r(8853),a=r(9010);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},9735:(e,t,r)=>{"use strict";var i=r(591),o=r(3228).has,s=r(8361),a=r(9010),u=r(6644),l=r(9293);e.exports=function(e){var t=i(this),r=a(e);if(s(t){var i=r(8681),o=r(6644),s=r(3228),a=s.Set,u=s.proto,l=i(u.forEach),c=i(u.keys),f=c(new a).next;e.exports=function(e,t,r){return r?o(c(e),t,f):l(e,t)}},7330:(e,t,r)=>{var i=r(3204),o=function(){return{size:0,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){try{return new(i("Set"))()[e](o()),!0}catch(e){return!1}}},8361:(e,t,r)=>{var i=r(2808),o=r(3228);e.exports=i(o.proto,"size","get")||function(e){return e.size}},7376:(e,t,r)=>{"use strict";var i=r(591),o=r(3228),s=r(4486),a=r(9010),u=r(6644),l=o.add,c=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){c(t,e)?f(o,e):l(o,e)}),o}},2218:(e,t,r)=>{"use strict";var i=r(591),o=r(3228).add,s=r(4486),a=r(9010),u=r(6644);e.exports=function(e){var t=i(this),r=a(e).getIterator(),l=s(t);return u(r,function(e){o(l,e)}),l}},5771:(e,t,r)=>{var i=r(1653),o=r(4925),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},2750:(e,t,r)=>{var i=r(6234),o=r(6395),s="__core-js_shared__",a=i[s]||o(s,{});e.exports=a},1653:(e,t,r)=>{var i=r(5419),o=r(2750);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:i?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7532:(e,t,r)=>{var i=r(5229),o=r(6554),s=r(6234).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol();return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},4708:(e,t,r)=>{var i=r(2495),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},1165:(e,t,r)=>{var i=r(1643),o=r(6325);e.exports=function(e){return i(o(e))}},2495:(e,t,r)=>{var i=r(1919);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},8513:(e,t,r)=>{var i=r(2495),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},9306:(e,t,r)=>{var i=r(6325),o=Object;e.exports=function(e){return o(i(e))}},3685:(e,t,r)=>{var i=r(5767),o=r(6120),s=r(2575),a=r(3219),u=r(7679),l=r(1664),c=TypeError,f=l("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,l=a(e,f);if(l){if(void 0===t&&(t="default"),!o(r=i(l,e,t))||s(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},5537:(e,t,r)=>{var i=r(3685),o=r(2575);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},8963:(e,t,r)=>{var i=r(3204),o=r(3284),s=r(8918),a=r(6120),u=i("Set"),l=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)};e.exports=function(e){return l(e)?e:s(e)?new u(e):e}},4419:(e,t,r)=>{var i=r(1664)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},730:(e,t,r)=>{var i=r(904),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},2903:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4925:(e,t,r)=>{var i=r(8681),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},6591:(e,t,r)=>{var i=r(7532);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9836:(e,t,r)=>{var i=r(783),o=r(6554);e.exports=i&&o(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2125:(e,t,r)=>{var i=r(6234),o=r(3284),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},1664:(e,t,r)=>{var i=r(6234),o=r(1653),s=r(2624),a=r(4925),u=r(7532),l=r(6591),c=i.Symbol,f=o("wks"),h=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(c,e)?c[e]:h("Symbol."+e)),f[e]}},7069:(e,t,r)=>{"use strict";var i=r(3204),o=r(2624),s=r(3853),a=r(2145),u=r(239),l=r(2578),c=r(3572),f=r(6302),h=r(5226),p=r(7771),d=r(4809),g=r(783),y=r(5419);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!y&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),d(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&p(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):l(O,E,{name:!0}):g&&b in S&&(c(O,S,b),c(O,S,"prepareStackTrace")),l(O,S),!y)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},7178:(e,t,r)=>{"use strict";var i=r(5200),o=r(2145),s=r(4857),a=r(239),u=r(2578),l=r(2383),c=r(3853),f=r(9697),h=r(7771),p=r(4809),d=r(4302),g=r(5226),y=r(1664)("toStringTag"),m=Error,b=[].push,v=function(e,t){var r,i=o(w,this);a?r=a(m(),i?s(this):w):c(r=i?this:l(w),y,"Error"),void 0!==t&&c(r,"message",g(t)),p(r,v,r.stack,1),arguments.length>2&&h(r,arguments[2]);var u=[];return d(e,b,{that:u}),c(r,"errors",u),r};a?a(v,m):u(v,m,{name:!0});var w=v.prototype=l(m.prototype,{constructor:f(1,v),message:f(1,""),name:f(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:v})},1742:(e,t,r)=>{r(7178)},8330:(e,t,r)=>{"use strict";var i=r(5200),o=r(9306),s=r(4676),a=r(6941),u=r(1221),l=r(6554)(function(){return 4294967297!==[].push.call({length:4294967296},1)}),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}};i({target:"Array",proto:!0,arity:1,forced:l||!c()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var l=0;l{var i=r(5200),o=r(6234),s=r(1322),a=r(7069),u="WebAssembly",l=o[u],c=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,c),i({global:!0,constructor:!0,arity:1,forced:c},r)},h=function(e,t){if(l&&l[e]){var r={};r[e]=a(u+"."+e,t,c),i({target:u,stat:!0,constructor:!0,arity:1,forced:c},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},7114:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(9198),u=r(2617),l=r(4302);i({target:"Promise",stat:!0,forced:r(8352)},{allSettled:function(e){var t=this,r=a.f(t),i=r.resolve,c=r.reject,f=u(function(){var r=s(t.resolve),a=[],u=0,c=1;l(e,function(e){var s=u++,l=!1;c++,o(r,t,e).then(function(e){!l&&(l=!0,a[s]={status:"fulfilled",value:e},--c||i(a))},function(e){!l&&(l=!0,a[s]={status:"rejected",reason:e},--c||i(a))})}),--c||i(a)});return f.error&&c(f.value),r.promise}})},863:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(3204),u=r(9198),l=r(2617),c=r(4302),f=r(8352),h="No one promise resolved";i({target:"Promise",stat:!0,forced:f},{any:function(e){var t=this,r=a("AggregateError"),i=u.f(t),f=i.resolve,p=i.reject,d=l(function(){var i=s(t.resolve),a=[],u=0,l=1,d=!1;c(e,function(e){var s=u++,c=!1;l++,o(i,t,e).then(function(e){c||d||(d=!0,f(e))},function(e){!c&&!d&&(c=!0,a[s]=e,--l||p(new r(a,h)))})}),--l||p(new r(a,h))});return d.error&&p(d.value),i.promise}})},8256:(e,t,r)=>{var i=r(6234),o=r(783),s=r(1701),a=r(8532),u=r(6554),l=i.RegExp,c=l.prototype;o&&u(function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==i||r!==i})&&s(c,"flags",{configurable:!0,get:a})},2931:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(7397),u=r(6120),l=r(4058),c=r(3519),f=r(7901),h=r(9641),p=c(function(e){var t=this,r=t.iterator,i=t.predicate;return new e(function(s,l){var c=function(e){t.done=!0,l(e)},p=function(e){h(r,c,e,c)},d=function(){try{e.resolve(a(o(t.next,r))).then(function(r){try{if(a(r).done)t.done=!0,s(f(void 0,!0));else{var o=r.value;try{var l=i(o,t.counter++),h=function(e){e?s(f(o,!1)):d()};u(l)?e.resolve(l).then(h,p):h(l)}catch(e){p(e)}}}catch(e){c(e)}},c)}catch(e){c(e)}};d()})});i({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return a(this),s(e),new p(l(this),{predicate:e})}})},6803:(e,t,r)=>{"use strict";var i=r(5200),o=r(7797).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},5027:(e,t,r)=>{"use strict";var i=r(5200),o=r(7797).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},8386:(e,t,r)=>{r(5200)({target:"AsyncIterator",proto:!0,real:!0},{map:r(4849)})},3183:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(7397),u=r(6120),l=r(3204),c=r(4058),f=r(9641),h=l("Promise"),p=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=c(this),r=t.iterator,i=t.next,l=arguments.length<2,d=l?void 0:arguments[1],g=0;return new h(function(t,s){var c=function(e){f(r,s,e,s)},y=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)l?s(p("Reduce of empty iterator with no initial value")):t(d);else{var i=r.value;if(l)l=!1,d=i,y();else try{var o=e(d,i,g),f=function(e){d=e,y()};u(o)?h.resolve(o).then(f,c):f(o)}catch(e){c(e)}}g++}catch(e){s(e)}},s)}catch(e){s(e)}};y()})}})},1210:(e,t,r)=>{"use strict";var i=r(5200),o=r(7797).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},5162:(e,t,r)=>{"use strict";var i=r(5200),o=r(6234),s=r(348),a=r(3284),u=r(3853),l=r(6554),c=r(2624),f=r(1664),h=r(935).IteratorPrototype,p=r(5419),d=f("toStringTag"),g=o.Iterator,y=p||!a(g)||g.prototype!==h||!l(function(){g({})}),m=function(){s(this,h)};c(h,d)||u(h,d,"Iterator"),(y||!c(h,"constructor")||h.constructor===Object)&&u(h,"constructor",m),m.prototype=h,i({global:!0,constructor:!0,forced:y},{Iterator:m})},9515:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(7397),u=r(4058),l=r(8694),c=r(6037),f=l(function(){for(var e,t,r=this.iterator,i=this.predicate,s=this.next;;){if(e=a(o(s,r)),this.done=!!e.done)return;if(t=e.value,c(r,i,[t,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0},{filter:function(e){return a(this),s(e),new f(u(this),{predicate:e})}})},4519:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},8635:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},9368:(e,t,r)=>{r(5200)({target:"Iterator",proto:!0,real:!0},{map:r(2499)})},4334:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058),l=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],c=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,c),c++},{IS_RECORD:!0}),r)throw l("Reduce of empty iterator with no initial value");return i}})},8019:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2071:(e,t,r)=>{"use strict";var i=r(5200),o=r(783),s=r(6234),a=r(3204),u=r(8681),l=r(5767),c=r(3284),f=r(6120),h=r(8629),p=r(2624),d=r(730),g=r(4676),y=r(7371),m=r(6554),b=r(2610),v=r(7532),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,j=u("".charAt),k=u("".slice),T=u(/./.exec),P=u([].push),R=/^\d$/,M=/^[1-9]$/,A=/^(-|\d)$/,L=/^[\t\n\r ]$/,N=0,C=1,I=function(e,t){e=d(e);var r=new q(e,0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(5200),o=r(587),s=r(17).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5200),o=r(587),s=r(17),a=s.get,u=s.has,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),l(s,e,r)),r):(i=t.insert(e,s),l(s,e,i),i)}})},8034:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},2946:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(17),u=r(6753),l=a.Map,c=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e,o){r(e,o,t)&&c(i,o,e)}),i}})},5217:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},3560:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},3385:(e,t,r)=>{"use strict";var i=r(5200),o=r(7573),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},4603:(e,t,r)=>{"use strict";var i=r(5200),o=r(587),s=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},4783:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(17),u=r(6753),l=a.Map,c=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e,o){c(i,r(e,o,t),e)}),i}})},6399:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(17),u=r(6753),l=a.Map,c=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e,o){c(i,o,r(e,o,t))}),i}})},5519:(e,t,r)=>{"use strict";var i=r(5200),o=r(587),s=r(4302),a=r(17).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i{"use strict";var i=r(5200),o=r(5416),s=r(587),a=r(6753),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw u("Reduce of empty map with no initial value");return i}})},3682:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},9022:(e,t,r)=>{"use strict";var i=r(5200),o=r(5416),s=r(587),a=r(17),u=TypeError,l=a.get,c=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=c(r,e);if(!a&&i<3)throw u("Updating absent value");var h=a?l(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},8817:(e,t,r)=>{"use strict";var i=r(5200),o=r(591),s=r(3228).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(5200),o=r(591),s=r(3228).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(6680);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},9921:(e,t,r)=>{var i=r(5200),o=r(6680);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("difference")},{difference:o})},7773:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(8853);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},6431:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(3228),u=r(8853),l=a.Set,c=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e){r(e,e,t)&&c(i,e)}),i}})},6965:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(8853);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},7725:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(6683);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},9614:(e,t,r)=>{var i=r(5200),o=r(6554),s=r(6683);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("intersection")||o(function(){return"3,2"!=Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},304:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(3943);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},9386:(e,t,r)=>{var i=r(5200),o=r(3943);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("isDisjointFrom")},{isDisjointFrom:o})},9364:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(3985);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},1807:(e,t,r)=>{var i=r(5200),o=r(3985);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("isSubsetOf")},{isSubsetOf:o})},9807:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(9735);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},4025:(e,t,r)=>{var i=r(5200),o=r(9735);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("isSupersetOf")},{isSupersetOf:o})},9929:(e,t,r)=>{"use strict";var i=r(5200),o=r(8681),s=r(591),a=r(8853),u=r(730),l=o([].join),c=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){c(i,e)}),l(i,r)}})},9659:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(3228),u=r(8853),l=a.Set,c=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e){c(i,r(e,e,t))}),i}})},6258:(e,t,r)=>{"use strict";var i=r(5200),o=r(5416),s=r(591),a=r(8853),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw u("Reduce of empty set with no initial value");return i}})},9345:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(8853);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},522:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(7376);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},3357:(e,t,r)=>{var i=r(5200),o=r(7376);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("symmetricDifference")},{symmetricDifference:o})},192:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(2218);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},8976:(e,t,r)=>{var i=r(5200),o=r(2218);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("union")},{union:o})},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},2181:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},6144:e=>{"use strict";e.exports=require("vm")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(6224));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),l="win32"===process.platform,c=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o),h=!a&&(u||l||c||f),p=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:p(a,s,r,i)),d=(e,t,r,i,o)=>e<0?r+t+i:r+p(e,t,i,o)+i,g=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?d((""+o).indexOf(t,i),o,e,t,r):"",y=(e,t,r)=>g(`\x1b[${e}m`,`\x1b[${t}m`,r),m={reset:y(0,0),bold:y(1,22,"\x1b[22m\x1b[1m"),dim:y(2,22,"\x1b[22m\x1b[2m"),italic:y(3,23),underline:y(4,24),inverse:y(7,27),hidden:y(8,28),strikethrough:y(9,29),black:y(30,39),red:y(31,39),green:y(32,39),yellow:y(33,39),blue:y(34,39),magenta:y(35,39),cyan:y(36,39),white:y(37,39),gray:y(90,39),bgBlack:y(40,49),bgRed:y(41,49),bgGreen:y(42,49),bgYellow:y(43,49),bgBlue:y(44,49),bgMagenta:y(45,49),bgCyan:y(46,49),bgWhite:y(47,49),blackBright:y(90,39),redBright:y(91,39),greenBright:y(92,39),yellowBright:y(93,39),blueBright:y(94,39),magentaBright:y(95,39),cyanBright:y(96,39),whiteBright:y(97,39),bgBlackBright:y(100,49),bgRedBright:y(101,49),bgGreenBright:y(102,49),bgYellowBright:y(103,49),bgBlueBright:y(104,49),bgMagentaBright:y(105,49),bgCyanBright:y(106,49),bgWhiteBright:y(107,49)},b=e=>e,v=({useColor:e=h}={})=>e?m:Object.keys(m).reduce((e,t)=>({...e,[t]:b}),{}),{reset:w,bold:_,dim:S,italic:x,underline:E,inverse:O,hidden:j,strikethrough:k,black:T,red:P,green:R,yellow:M,blue:A,magenta:L,cyan:N,white:C,gray:I,bgBlack:D,bgRed:$,bgGreen:B,bgYellow:q,bgBlue:U,bgMagenta:F,bgCyan:W,bgWhite:G,blackBright:z,redBright:H,greenBright:J,yellowBright:V,blueBright:K,magentaBright:Y,cyanBright:Q,whiteBright:X,bgBlackBright:Z,bgRedBright:ee,bgGreenBright:et,bgYellowBright:er,bgBlueBright:en,bgMagentaBright:ei,bgCyanBright:eo,bgWhiteBright:es}=v();t.bgBlack=D,t.bgBlackBright=Z,t.bgBlue=U,t.bgBlueBright=en,t.bgCyan=W,t.bgCyanBright=eo,t.bgGreen=B,t.bgGreenBright=et,t.bgMagenta=F,t.bgMagentaBright=ei,t.bgRed=$,t.bgRedBright=ee,t.bgWhite=G,t.bgWhiteBright=es,t.bgYellow=q,t.bgYellowBright=er,t.black=T,t.blackBright=z,t.blue=A,t.blueBright=K,t.bold=_,t.createColors=v,t.cyan=N,t.cyanBright=Q,t.dim=S,t.gray=I,t.green=R,t.greenBright=J,t.hidden=j,t.inverse=O,t.isColorSupported=h,t.italic=x,t.magenta=L,t.magentaBright=Y,t.red=P,t.redBright=H,t.reset=w,t.strikethrough=k,t.underline=E,t.white=C,t.whiteBright=X,t.yellow=M,t.yellowBright=V},1686:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(799),o=r(1556),{Transform:s}=r(8118),a=r(2306),u=r(9316),l=r(8202),{ERROR_LIKE_KEYS:c,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:p,LEVEL_NAMES:d}=r(484),{isObject:g,prettifyErrorLog:y,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(6741),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:c,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function j(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,c=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),j="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,k=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},P=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=j?t.customLevels:void 0!==T[i],a=s?T[i]:d[i],u=void 0!==a?a:i;return e.push([u,o]),e},[]):void 0,R={customLevels:k,customLevelNames:T};j&&!t.customLevels&&(R.customLevels=void 0,R.customLevelNames=void 0);let M=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,C=l(t.colorize,P,j);return function(e){let l;if(g(e))l=e;else{let t=E(e);if(t.err||!g(t.value))return e+r;l=t.value}if(u){let e=j?t.customLevels:void 0!==T[u],r=(e?T[u]:d[u])||Number(u),i=l[void 0===s?p:s];if(i0?`${D} ${k}`:k),P&&(D=D.length>0?`${D} ${P}:`:P),!1===D.endsWith(":")&&""!==D&&(D+=":"),O&&(D=D.length>0?`${D} ${O}`:O),D.length>0&&!N&&(D+=r),"Error"===l.type&&l.stack){let e=y({log:l,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(D+=r),D+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof l[e]||"number"==typeof l[e]),t=w({input:l,skipKeys:e,customPrettifiers:M,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:C});N&&!/^\s$/.test(t)&&(D+=" "),D+=t}return D}}function k(e={}){let t=j(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){let o=t(e);i(null,o)}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=k,e.exports.prettyFactory=j,e.exports.colorizerFactory=l,e.exports.default=k},8202:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(484),s={default:e=>e,60:e=>e,50:e=>e,40:e=>e,30:e=>e,20:e=>e,10:e=>e,message:e=>e,greyMessage:e=>e},{createColors:a}=r(799),u=a({useColor:!0}),{white:l,bgRed:c,red:f,yellow:h,green:p,blue:d,gray:g,cyan:y}=u,m={default:l,60:c,50:f,40:h,30:p,20:d,10:g,message:y,greyMessage:g};function b(e){return e.reduce(function(e,[t,r]){return e[t]="function"==typeof u[r]?u[r]:l,e},{default:l,message:y,greyMessage:g})}function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),l=e?a||o:Object.assign({},o,a),c="default";c=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:c:Object.prototype.hasOwnProperty.call(l,t.toLowerCase())?l[t.toLowerCase()]:c;let f=u[c];return Object.prototype.hasOwnProperty.call(r,c)?r[c](f):r.default(f)}}function w(e){let t=v(e),r=function(e,r){return t(e,s,r)};return r.message=s.message,r.greyMessage=s.greyMessage,r}function _(e){let t=v(e),r=function(e,r){return t(e,m,r)};return r.message=m.message,r.greyMessage=m.greyMessage,r}function S(e,t){let r=b(e),i=t?r:Object.assign({},m,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}e.exports=function(e=!1,t,r){return e&&void 0!==t?S(t,r):e?_(r):w(r)}},484:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},6741:(e,t,r)=>{"use strict";let i=r(3268)({circles:!0}),o=r(924),s=r(6755),a=r(2988),{isMainThread:u}=r(1267),l=r(8202)(),{DATE_FORMAT:c,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:p,LEVEL_LABEL:d,TIMESTAMP_KEY:g,LOGGER_KEYS:y,LEVELS:m}=r(484);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+c);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,c);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r="\n"}){let i=e.split(/\r?\n/);for(let e=1;e0){let a;let u=y.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===u.includes(e)):s.filter(e=>!1===u.includes(e));for(let t=0;t`),""!==r)return r}function k({input:e,ident:t=" ",eol:r="\n",skipKeys:i=[],customPrettifiers:o={},errorLikeKeys:s=f,excludeLoggerKeys:u=!0,singleLine:c=!1,colorizer:h=l}){let p=[].concat(i);!0===u&&Array.prototype.push.apply(p,y);let d="",{plain:g,errors:m}=Object.entries(e).reduce(({plain:t,errors:r},[i,a])=>{if(!1===p.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return c?(Object.keys(g).length>0&&(d+=h.greyMessage(a(g))),d+=r):Object.entries(g).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});d+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(d+=P({keyName:e,lines:s,eol:r,ident:t}))}),d}function T({log:e,timestampKey:t=g,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`}function P({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function A(e,t){let r=i(e);return t.forEach(e=>{M(r,e)}),r}function L(){}function N(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=L,t.end=L,t.flushSync=L,t.destroy=L;return}t.removeListener("error",e)}),!e.sync&&u&&C(t),t}function C(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(3538);t.register(e,I),e.on("close",function(){t.unregister(e)})}}function I(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:x,prettifyLevel:E,prettifyMessage:O,prettifyMetadata:j,prettifyObject:k,prettifyTime:T,buildSafeSonicBoom:N,filterLog:A},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:P,deleteLogProperty:M,splitIgnoreKey:R,createDate:v,isValidDate:w}},6755:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(3837).inherits,a=r(1017),u=r(160);function l(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t._reopening&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function c(e){if(!(this instanceof c))return new c(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:d,retryEAGAIN:g}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=g||(()=>!0),this.mkdir=d||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)l(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(c,o),c.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),l(e||this.file,this)},c.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):p(this)))},c.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},c.prototype.destroy=function(){this.destroyed||p(this)},c.SonicBoom=c,c.default=c,e.exports=c},8002:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@unblockneteasemusic/server","version":"0.27.2-patch.1","description":"Revive unavailable songs for Netease Cloud Music","main":"src/provider/match.js","bin":{"unblockneteasemusic":"./precompiled/app.js"},"engines":{"node":">= 12"},"scripts":{"start:dev":"cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com","start":"cross-env node src/app.js -e https://music.163.com","build":"webpack","pkg":"pkg . --out-path=dist/","test":"jest"},"pkg":{"assets":["server.key","server.crt"],"targets":["node16-linux-arm64","node16-win-arm64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"repository":{"type":"git","url":"https://github.com/UnblockNeteaseMusic/server.git"},"author":"nondanee, 1715173329, pan93412","license":"LGPL-3.0-only","dependencies":{"node-windows":"^1.0.0-beta.8","pino":"6.14.0","pino-pretty":"^7.6.1"},"devDependencies":{"@swc/core":"^1.3.69","@types/node":"^20.4.2","@types/pino":"6.3.12","@yarnpkg/sdks":"^3.0.0-rc.48","browserslist":"^4.21.9","core-js":"^3.31.1","cross-env":"^7.0.3","jest":"^29.6.1","pkg":"^5.8.1","prettier":"^3.0.0","swc-loader":"^0.2.3","terser-webpack-plugin":"^5.3.9","typescript":"^5.1.6","webpack":"^5.88.1","webpack-cli":"^5.1.4"},"resolutions":{"cacheable-request":"^10.2.7","minimatch":"^3.0.5","minimist":"^1.2.6","semver":"^7.5.2"},"publishConfig":{"access":"public"},"packageManager":"yarn@3.6.1"}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}var i={};(()=>{"use strict";var e=i;r(8386),r(9368),r(1210),r(8019),r(5162),r(3183),r(4334),r(8330),r(5027),r(8635);let t=r(4147),o=r(5796).program({name:t.name.replace(/@.+\//,""),version:t.version}).option(["-v","--version"],{action:"version"}).option(["-p","--port"],{metavar:"http[:https]",help:"specify server port"}).option(["-a","--address"],{metavar:"address",help:"specify server host"}).option(["-u","--proxy-url"],{metavar:"url",help:"request through upstream proxy"}).option(["-f","--force-host"],{metavar:"host",help:"force the netease server ip"}).option(["-o","--match-order"],{metavar:"source",nargs:"+",help:"set priority of sources"}).option(["-t","--token"],{metavar:"token",help:"set up proxy authentication"}).option(["-e","--endpoint"],{metavar:"url",help:"replace virtual endpoint with public host"}).option(["-s","--strict"],{action:"store_true",help:"enable proxy limitation"}).option(["-c","--cnrelay"],{metavar:"cnrelay",help:"Mainland China relay to get music url"}).option(["-h","--help"],{action:"help"}).parse(process.argv);global.address=o.address,o.port=(o.port||"8080:8081").split(":").map(e=>parseInt(e));let s=e=>isNaN(e)||e<1||e>65535;if(o.port.some(s)&&(console.log("Port must be a number higher than 0 and lower than 65535."),process.exit(1)),o.proxyUrl&&!/http(s?):\/\/.+:\d+/.test(o.proxyUrl)&&(console.log("Please check the proxy url."),process.exit(1)),o.endpoint?"-"===o.endpoint?o.endpoint="":/http(s?):\/\/.+/.test(o.endpoint)||(console.log("Please check the endpoint host."),process.exit(1)):o.endpoint="https://music.163.com",o.forceHost&&0===r(1808).isIP(o.forceHost)&&(console.log("Please check the server host."),process.exit(1)),o.matchOrder){let e=Object.keys(r(1784).PROVIDERS),t=o.matchOrder;t.some((e,r)=>r!=t.indexOf(e))?(console.log("Please check the duplication in match order."),process.exit(1)):t.some(t=>!e.includes(t))&&(console.log("Please check the availability of match sources."),process.exit(1)),global.source=t}o.token&&!/\S+:\S+/.test(o.token)&&(console.log("Please check the authentication token."),process.exit(1));let{logScope:a}=r(7691),u=r(7310).parse,l=r(403),c=r(8837),{CacheStorageGroup:f}=r(9220),h=a("app"),p=Array.from(l.target.host);global.port=o.port,global.proxy=o.proxyUrl?u(o.proxyUrl):null,global.hosts=p.reduce((e,t)=>Object.assign(e,{[t]:o.forceHost}),{}),c.whitelist=["://[\\w.]*music\\.126\\.net","://[\\w.]*vod\\.126\\.net","://acstatic-dun.126.net","://[\\w.]*\\.netease.com","://[\\w.]*\\.163yun.com"],global.cnrelay=o.cnrelay,o.strict&&c.blacklist.push(".*"),c.authentication=o.token||null,global.endpoint=o.endpoint,o.endpoint&&c.whitelist.push(escape(o.endpoint));let d=e=>new Promise((t,i)=>r(9523).lookup(e,{all:!0},(e,r)=>e?i(e):t(r.map(e=>e.address)))),g=e=>r(5262)("POST","http://music.httpdns.c.163.com/d",{},e).then(e=>e.json()).then(e=>e.dns.reduce((e,t)=>e.concat(t.ips),[])),y=e=>r(5262)("GET","http://httpdns.n.netease.com/httpdns/v2/d?domain="+e).then(e=>e.json()).then(e=>Object.keys(e.data).map(t=>e.data[t]).reduce((e,t)=>e.concat(t.ip||[]),[])),m="true"===process.env.ENABLE_HTTPDNS?[g,y]:[],b=f.getInstance();setInterval(()=>{b.cleanup()},9e5),Promise.all(m.map(e=>e(p.join(","))).concat(p.map(d))).then(e=>{let{host:t}=l.target;e.forEach(e=>e.forEach(t.add,t)),c.whitelist=c.whitelist.concat(Array.from(t).map(escape));let r=e=>h.info(`${["HTTP","HTTPS"][e]} Server running @ http://${address||"0.0.0.0"}:${port[e]}`);port[0]&&c.http.listen(port[0],address).once("listening",()=>r(0)),port[1]&&c.https.listen(port[1],address).once("listening",()=>r(1)),cnrelay&&h.info(`CNRelay: ${cnrelay}`)}).catch(e=>{console.log(e),process.exit(1)})})()})(); \ No newline at end of file + `,i({o:t,〇:null}),{codeGeneration:{strings:!1,wasm:!1}})}catch(t){throw Error(r(e))}})}}e.exports=s},2988:e=>{e.exports=a,a.default=a,a.stable=f,a.stableStringify=f;var t="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,r,a){void 0===a&&(a=s()),l(e,"",0,[],void 0,0,a);try{u=0===o.length?JSON.stringify(e,t,r):JSON.stringify(e,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u,c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function u(e,t,r,s){var a=Object.getOwnPropertyDescriptor(s,r);void 0!==a.get?a.configurable?(Object.defineProperty(s,r,{value:e}),i.push([s,r,t,a])):o.push([t,r,e]):(s[r]=e,i.push([s,r,t]))}function l(e,i,o,s,a,c,f){if(c+=1,"object"==typeof e&&null!==e){for(h=0;hf.depthLimit||void 0!==f.edgesLimit&&o+1>f.edgesLimit){u(t,e,i,a);return}if(s.push(e),Array.isArray(e))for(h=0;ht?1:0}function f(e,t,r,a){void 0===a&&(a=s());var u,l=h(e,"",0,[],void 0,0,a)||e;try{u=0===o.length?JSON.stringify(l,t,r):JSON.stringify(l,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function h(e,o,s,a,l,f,p){if(f+=1,"object"==typeof e&&null!==e){for(d=0;dp.depthLimit||void 0!==p.edgesLimit&&s+1>p.edgesLimit){u(t,e,o,l);return}if(a.push(e),Array.isArray(e))for(d=0;d0)for(var i=0;i{"use strict";function t(e){return e}e.exports=t},1828:(e,t,r)=>{try{var i=r(3837);if("function"!=typeof i.inherits)throw"";e.exports=i.inherits}catch(t){e.exports=r(3730)}},3730:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3538:e=>{"use strict";function t(e,t,r,i){function o(){let e=t.deref();void 0!==e&&r(e,i)}e[i]=o,process.once(i,o)}let r=new FinalizationRegistry(o),i=new WeakMap;function o(e){process.removeListener("exit",e.exit),process.removeListener("beforeExit",e.beforeExit)}function s(e,o){if(void 0===e)throw Error("the object can't be undefined");let s=new WeakRef(e),a={};i.set(e,a),r.register(e,a),t(a,s,o,"exit"),t(a,s,o,"beforeExit")}function a(e){let t=i.get(e);i.delete(e),t&&o(t),r.unregister(e)}e.exports={register:s,unregister:a}},5962:(e,t,r)=>{var i=r(4447);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(o),e.exports.strict=i(s),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},2306:(e,t,r)=>{"use strict";let i=Symbol.for("pino.metadata"),o=r(5443),s=r(7008);function a(e,t){process.nextTick(t,e)}e.exports=function(e,t={}){let r="lines"===t.parse,u="function"==typeof t.parseLine?t.parseLine:JSON.parse,l=t.close||a,c=o(function(e){let t;try{t=u(e)}catch(t){this.emit("unknown",e,t);return}if(null===t){this.emit("unknown",e,"Null value ignored");return}return("object"!=typeof t&&(t={data:t,time:Date.now()}),c[i]&&(c.lastTime=t.time,c.lastLevel=t.level,c.lastObj=t),r)?e:t},{autoDestroy:!0});c._destroy=function(e,t){let r=l(e,t);r&&"function"==typeof r.then&&r.then(t,t)},!1!==t.metadata&&(c[i]=!0,c.lastTime=0,c.lastLevel=0,c.lastObj=null);let f=e(c);if(f&&"function"==typeof f.catch)f.catch(e=>{c.destroy(e)}),f=null;else if(t.enablePipelining&&f)return s(c,f,{objectMode:!0});return c}},1787:(e,t,r)=>{"use strict";let i=r(8556)();e.exports=i;let o="PinoWarning";i.create(o,"PINODEP004","bindings.serializers is deprecated, use options.serializers option instead"),i.create(o,"PINODEP005","bindings.formatters is deprecated, use options.formatters option instead"),i.create(o,"PINODEP006","bindings.customLevels is deprecated, use options.customLevels option instead"),i.create(o,"PINODEP007","bindings.level is deprecated, use options.level option instead")},6441:(e,t,r)=>{"use strict";let i=r(8306),{lsCacheSym:o,levelValSym:s,useOnlyCustomLevelsSym:a,streamSym:u,formattersSym:l,hooksSym:c}=r(4941),{noop:f,genLog:h}=r(9952),p={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},d={fatal:e=>{let t=h(p.fatal,e);return function(...e){let r=this[u];if(t.call(this,...e),"function"==typeof r.flushSync)try{r.flushSync()}catch(e){}}},error:e=>h(p.error,e),warn:e=>h(p.warn,e),info:e=>h(p.info,e),debug:e=>h(p.debug,e),trace:e=>h(p.trace,e)},g=Object.keys(p).reduce((e,t)=>(e[p[t]]=t,e),{}),y=Object.keys(g).reduce((e,t)=>(e[t]=i('{"level":'+Number(t)),e),{});function m(e){let t=e[l].level,{labels:r}=e.levels,i={};for(let e in r){let o=t(r[e],Number(e));i[e]=JSON.stringify(o).slice(0,-1)}return e[o]=i,e}function b(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function v(e){let{labels:t,values:r}=this.levels;if("number"==typeof e){if(void 0===t[e])throw Error("unknown level value"+e);e=t[e]}if(void 0===r[e])throw Error("unknown level "+e);let i=this[s],o=this[s]=r[e],u=this[a],l=this[c].logMethod;for(let e in r){if(o>r[e]){this[e]=f;continue}this[e]=b(e,u)?d[e](l):h(r[e],l)}this.emit("level-change",e,o,t[i],i)}function w(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function _(e){let{values:t}=this.levels,r=t[e];return void 0!==r&&r>=this[s]}function S(e=null,t=!1){let r=e?Object.keys(e).reduce((t,r)=>(t[e[r]]=r,t),{}):null,i=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:g,r),o=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:p,e);return{labels:i,values:o}}function x(e,t,r){if("number"==typeof e){let i=[].concat(Object.keys(t||{}).map(e=>t[e]),r?[]:Object.keys(g).map(e=>+e),1/0);if(!i.includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:p,t);if(!(e in i))throw Error(`default level:${e} must be included in custom levels`)}function E(e,t){let{labels:r,values:i}=e;for(let e in t){if(e in i)throw Error("levels cannot be overridden");if(t[e]in r)throw Error("pre-existing level values cannot be used for new levels")}}e.exports={initialLsCache:y,genLsCache:m,levelMethods:d,getLevel:w,setLevel:v,isLevelEnabled:_,mappings:S,assertNoLevelCollisions:E,assertDefaultLevelFound:x}},8508:(e,t,r)=>{"use strict";let{version:i}=r(8002);e.exports={version:i}},5092:(e,t,r)=>{"use strict";let{EventEmitter:i}=r(2361),o=r(4656),s=r(8306),a=r(1787),{lsCacheSym:u,levelValSym:l,setLevelSym:c,getLevelSym:f,chindingsSym:h,parsedChindingsSym:p,mixinSym:d,asJsonSym:g,writeSym:y,mixinMergeStrategySym:m,timeSym:b,timeSliceIndexSym:v,streamSym:w,serializersSym:_,formattersSym:S,useOnlyCustomLevelsSym:x,needsMetadataGsym:E,redactFmtSym:O,stringifySym:j,formatOptsSym:k,stringifiersSym:T}=r(4941),{getLevel:P,setLevel:R,isLevelEnabled:M,mappings:A,initialLsCache:L,genLsCache:N,assertNoLevelCollisions:C}=r(6441),{asChindings:I,asJson:D,buildFormatters:$,stringify:B}=r(9952),{version:q}=r(8508),U=r(5434),F=class{},W={constructor:F,child:H,bindings:z,setBindings:J,flush:Y,isLevelEnabled:M,version:q,get level(){return this[f]()},set level(lvl){this[c](lvl)},get levelVal(){return this[l]},set levelVal(n){throw Error("levelVal is read-only")},[u]:L,[y]:K,[g]:D,[f]:P,[c]:R};Object.setPrototypeOf(W,i.prototype),e.exports=function(){return Object.create(W)};let G=e=>e;function H(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[_],i=this[S],o=Object.create(this);if(!0===e.hasOwnProperty("serializers")&&(a.emit("PINODEP004"),t.serializers=e.serializers),!0===e.hasOwnProperty("formatters")&&(a.emit("PINODEP005"),t.formatters=e.formatters),!0===e.hasOwnProperty("customLevels")&&(a.emit("PINODEP006"),t.customLevels=e.customLevels),!0===e.hasOwnProperty("level")&&(a.emit("PINODEP007"),t.level=e.level),!0===t.hasOwnProperty("serializers")){for(let e in o[_]=Object.create(null),r)o[_][e]=r[e];let e=Object.getOwnPropertySymbols(r);for(var s=0;s{"use strict";let i=r(9775),{redactFmtSym:o,wildcardFirstSym:s}=r(4941),{rx:a,validator:u}=i,l=u({ERR_PATHS_MUST_BE_STRINGS:()=>"pino – redacted paths must be strings",ERR_INVALID_PATH:e=>`pino – redact paths array contains an invalid path (${e})`}),c="[Redacted]";function f(e,t){let{paths:r,censor:u}=h(e),l=r.reduce((e,t)=>{a.lastIndex=0;let r=a.exec(t),i=a.exec(t),o=void 0!==r[1]?r[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):r[0];if("*"===o&&(o=s),null===i)return e[o]=null,e;if(null===e[o])return e;let{index:u}=i,l=`${t.substr(u,t.length-1)}`;return e[o]=e[o]||[],o!==s&&0===e[o].length&&e[o].push(...e[s]||[]),o===s&&Object.keys(e).forEach(function(t){e[t]&&e[t].push(l)}),e[o].push(l),e},{}),c={[o]:i({paths:r,censor:u,serialize:t,strict:!1})},f=(...e)=>"function"==typeof u?t(u(...e)):t(u);return[...Object.keys(l),...Object.getOwnPropertySymbols(l)].reduce((e,r)=>{if(null===l[r])e[r]=e=>f(e,[r]);else{let o="function"==typeof u?(e,t)=>u(e,[r,...t]):u;e[r]=i({paths:l[r],censor:o,serialize:t,strict:!1})}return e},c)}function h(e){if(Array.isArray(e))return l(e={paths:e,censor:c}),e;let{paths:t,censor:r=c,remove:i}=e;if(!1===Array.isArray(t))throw Error("pino – redact must contain an array of strings");return!0===i&&(r=void 0),l({paths:t,censor:r}),{paths:t,censor:r}}e.exports=f},4941:e=>{"use strict";let t=Symbol("pino.setLevel"),r=Symbol("pino.getLevel"),i=Symbol("pino.levelVal"),o=Symbol("pino.useLevelLabels"),s=Symbol("pino.useOnlyCustomLevels"),a=Symbol("pino.mixin"),u=Symbol("pino.lsCache"),l=Symbol("pino.chindings"),c=Symbol("pino.parsedChindings"),f=Symbol("pino.asJson"),h=Symbol("pino.write"),p=Symbol("pino.redactFmt"),d=Symbol("pino.time"),g=Symbol("pino.timeSliceIndex"),y=Symbol("pino.stream"),m=Symbol("pino.stringify"),b=Symbol("pino.stringifiers"),v=Symbol("pino.end"),w=Symbol("pino.formatOpts"),_=Symbol("pino.messageKey"),S=Symbol("pino.nestedKey"),x=Symbol("pino.mixinMergeStrategy"),E=Symbol("pino.wildcardFirst"),O=Symbol.for("pino.serializers"),j=Symbol.for("pino.formatters"),k=Symbol.for("pino.hooks"),T=Symbol.for("pino.metadata");e.exports={setLevelSym:t,getLevelSym:r,levelValSym:i,useLevelLabelsSym:o,mixinSym:a,lsCacheSym:u,chindingsSym:l,parsedChindingsSym:c,asJsonSym:f,writeSym:h,serializersSym:O,redactFmtSym:p,timeSym:d,timeSliceIndexSym:g,streamSym:y,stringifySym:m,stringifiersSym:b,endSym:v,formatOptsSym:w,messageKeySym:_,nestedKeySym:S,wildcardFirstSym:E,needsMetadataGsym:T,useOnlyCustomLevelsSym:s,formattersSym:j,hooksSym:k,mixinMergeStrategySym:x}},9649:e=>{"use strict";let t=()=>`,"time":${Date.now()}`,r=()=>`,"time":${Math.round(Date.now()/1e3)}`,i=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;e.exports={nullTime:()=>"",epochTime:t,unixTime:r,isoTime:i}},9952:(e,t,r)=>{"use strict";let i=r(4532),{mapHttpRequest:o,mapHttpResponse:s}=r(4186),a=r(4656),u=r(2988),{lsCacheSym:l,chindingsSym:c,parsedChindingsSym:f,writeSym:h,serializersSym:p,formatOptsSym:d,endSym:g,stringifiersSym:y,stringifySym:m,wildcardFirstSym:b,needsMetadataGsym:v,redactFmtSym:w,streamSym:_,nestedKeySym:S,formattersSym:x,messageKeySym:E}=r(4941);function O(){}function j(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(t,...a){if("object"==typeof t){let r,u=t;null!==t&&(t.method&&t.headers&&t.socket?t=o(t):"function"==typeof t.setHeader&&(t=s(t))),this[S]&&(t={[this[S]]:t}),null===u&&0===a.length?r=[null]:(u=a.shift(),r=a),this[h](t,i(u,r,this[d]),e)}else this[h](null,i(t,a,this[d]),e)}}function k(e){let t="",r=0,i=!1,o=255,s=e.length;if(s>100)return JSON.stringify(e);for(var a=0;a=32;a++)(34===(o=e.charCodeAt(a))||92===o)&&(t+=e.slice(r,a)+"\\",r=a,i=!0);return i?t+=e.slice(r):t=e,o<32?JSON.stringify(e):'"'+t+'"'}function T(e,t,r,i){let o;let s=this[m],a=this[y],u=this[g],f=this[c],h=this[p],d=this[x],v=this[E],w=this[l][r]+i;w+=f;let _=void 0===e.hasOwnProperty;d.log&&(e=d.log(e)),void 0!==t&&(e[v]=t);let S=a[b];for(let t in e)if(o=e[t],(_||e.hasOwnProperty(t))&&void 0!==o){o=h[t]?h[t](o):o;let e=a[t]||S;switch(typeof o){case"undefined":case"function":continue;case"number":!1===Number.isFinite(o)&&(o=null);case"boolean":e&&(o=e(o));break;case"string":o=(e||k)(o);break;default:o=(e||s)(o)}if(void 0===o)continue;w+=',"'+t+'":'+o}return w+u}function P(e,t){let r;let i=e[c],o=e[m],s=e[y],a=s[b],u=e[p],l=e[x].bindings;for(let e in t=l(t)){r=t[e];let l="level"!==e&&"serializers"!==e&&"formatters"!==e&&"customLevels"!==e&&t.hasOwnProperty(e)&&void 0!==r;if(!0===l){if(r=u[e]?u[e](r):r,void 0===(r=(s[e]||a||o)(r)))continue;i+=',"'+e+'":'+r}}return i}function R(e,t,i,o){if(t&&"function"==typeof t)return M((t=t.bind(o))(e),i,e);try{let t=r(1686).prettyFactory||r(1686);return t.asMetaWrapper=M,M(t(e),i,e)}catch(e){if(e.message.startsWith("Cannot find module 'pino-pretty'"))throw Error("Missing `pino-pretty` module: `pino-pretty` must be installed separately");throw e}}function M(e,t,r){r=Object.assign({suppressFlushSyncWarning:!1},r);let i=!1;return{[v]:!0,lastLevel:0,lastMsg:null,lastObj:null,lastLogger:null,flushSync(){r.suppressFlushSyncWarning||i||(i=!0,$(t,this),t.write(e(Object.assign({level:40,msg:"pino.final with prettyPrint does not support flushing",time:Date.now()},this.chindings()))))},chindings(){let e=this.lastLogger,t=null;return e?(e.hasOwnProperty(f)?t=e[f]:(t=JSON.parse("{"+e[c].substr(1)+"}"),e[f]=t),t):null},write(r){let i=this.lastLogger,o=this.chindings(),s=this.lastTime;s=s.match(/^\d+/)?parseInt(s):s.slice(1,-1);let a=this.lastObj,u=this.lastMsg,l=i[x],c=l.log?l.log(a):a,f=i[E];u&&c&&!c.hasOwnProperty(f)&&(c[f]=u);let h=Object.assign({level:this.lastLevel,time:s},c,null),d=i[p],g=Object.keys(d);for(var m=0;m=0&&!A(i)&&(i=L({fd:i.fd,sync:!0})),s){let e=Object.assign({messageKey:l},s);i=R(e,u,i,t)}return{opts:r,stream:i}}}function C(e,t){if(void 0===e||"function"!=typeof e.child)throw Error("expected a pino logger instance");let r=void 0!==t;if(r&&"function"!=typeof t)throw Error("if supplied, the handler parameter should be a function");let i=e[_];if("function"!=typeof i.flushSync)throw Error("final requires a stream that has a flushSync method, such as pino.destination");let o=new Proxy(e,{get:(e,t)=>t in e.levels.values?(...r)=>{e[t](...r),i.flushSync()}:e[t]});return r?(e=null,...r)=>{try{i.flushSync()}catch(e){}return t(e,o,...r)}:o}function I(e){try{return JSON.stringify(e)}catch(t){return u(e)}}function D(e,t,r){return{level:e,bindings:t,log:r}}function $(e,t){!0===e[v]&&(e.lastLevel=t.lastLevel,e.lastMsg=t.lastMsg,e.lastObj=t.lastObj,e.lastTime=t.lastTime,e.lastLogger=t.lastLogger)}e.exports={noop:O,buildSafeSonicBoom:L,getPrettyStream:R,asChindings:P,asJson:T,genLog:j,createArgsNormalizer:N,final:C,stringify:I,buildFormatters:D}},8167:(e,t,r)=>{"use strict";let i=r(2037),o=r(4186),s=r(5434),a=r(9649),u=r(5092),l=r(4941),{assertDefaultLevelFound:c,mappings:f,genLsCache:h}=r(6441),{createArgsNormalizer:p,asChindings:d,final:g,stringify:y,buildSafeSonicBoom:m,buildFormatters:b,noop:v}=r(9952),{version:w}=r(8508),{mixinMergeStrategySym:_}=r(4941),{chindingsSym:S,redactFmtSym:x,serializersSym:E,timeSym:O,timeSliceIndexSym:j,streamSym:k,stringifySym:T,stringifiersSym:P,setLevelSym:R,endSym:M,formatOptsSym:A,messageKeySym:L,nestedKeySym:N,mixinSym:C,useOnlyCustomLevelsSym:I,formattersSym:D,hooksSym:$}=l,{epochTime:B,nullTime:q}=a,{pid:U}=process,F=i.hostname(),W=o.err,G={level:"info",messageKey:"msg",nestedKey:null,enabled:!0,prettyPrint:!1,base:{pid:U,hostname:F},serializers:Object.assign(Object.create(null),{err:W}),formatters:Object.assign(Object.create(null),{bindings:e=>e,level:(e,t)=>({level:t})}),hooks:{logMethod:void 0},timestamp:B,name:void 0,redact:null,customLevels:null,levelKey:void 0,useOnlyCustomLevels:!1},H=p(G),z=Object.assign(Object.create(null),o);function J(...e){let t={},{opts:r,stream:i}=H(t,...e),{redact:o,crlf:a,serializers:l,timestamp:p,messageKey:g,nestedKey:m,base:w,name:U,level:F,customLevels:W,useLevelLabels:z,changeLevelName:Q,levelKey:X,mixin:Z,mixinMergeStrategy:ee,useOnlyCustomLevels:et,formatters:er,hooks:en}=r,ei=b(er.level,er.bindings,er.log);z&&!(Q||X)?(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),ei.level=V):(Q||X)&&!z?(process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=K(Q||X)):(Q||X)&&z&&(process.emitWarning("useLevelLabels is deprecated, use the formatters.level option instead","Warning","PINODEP001"),process.emitWarning("changeLevelName and levelKey are deprecated, use the formatters.level option instead","Warning","PINODEP002"),ei.level=Y(Q||X)),l[Symbol.for("pino.*")]&&(process.emitWarning("The pino.* serializer is deprecated, use the formatters.log options instead","Warning","PINODEP003"),ei.log=l[Symbol.for("pino.*")]),ei.bindings||(ei.bindings=G.formatters.bindings),ei.level||(ei.level=G.formatters.level);let eo=o?s(o,y):{},es=o?{stringify:eo[x]}:{stringify:y},ea=d.bind(null,{[S]:"",[E]:l,[P]:eo,[T]:y,[D]:ei}),eu="";null!==w&&(eu=ea(void 0===U?w:Object.assign({},w,{name:U})));let el=p instanceof Function?p:p?B:q,ec=el().indexOf(":")+1;if(et&&!W)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(Z&&"function"!=typeof Z)throw Error(`Unknown mixin type "${typeof Z}" - expected "function"`);c(F,W,et);let ef=f(W,et);return Object.assign(t,{levels:ef,[I]:et,[k]:i,[O]:el,[j]:ec,[T]:y,[P]:eo,[M]:"}"+(a?"\r\n":"\n"),[A]:es,[L]:g,[N]:m,[E]:l,[C]:Z,[_]:ee,[S]:eu,[D]:ei,[$]:en,silent:v}),Object.setPrototypeOf(t,u()),h(t),t[R](F),t}function V(e,t){return{level:e}}function K(e){return function(t,r){return{[e]:r}}}function Y(e){return function(t,r){return{[e]:t}}}e.exports=J,e.exports.extreme=(e=process.stdout.fd)=>(process.emitWarning("The pino.extreme() option is deprecated and will be removed in v7. Use pino.destination({ sync: false }) instead.",{code:"extreme_deprecation"}),m({dest:e,minLength:4096,sync:!1})),e.exports.destination=(e=process.stdout.fd)=>"object"==typeof e?(e.dest=e.dest||process.stdout.fd,m(e)):m({dest:e,minLength:0,sync:!0}),e.exports.final=g,e.exports.levels=f(),e.exports.stdSerializers=z,e.exports.stdTimeFunctions=Object.assign({},a),e.exports.symbols=l,e.exports.version=w,e.exports.default=J,e.exports.pino=J},4186:(e,t,r)=>{"use strict";let i=r(7657),o=r(6836),s=r(6364);e.exports={err:i,mapHttpRequest:o.mapHttpRequest,mapHttpResponse:s.mapHttpResponse,req:o.reqSerializer,res:s.resSerializer,wrapErrorSerializer:function(e){return e===i?e:function(t){return e(i(t))}},wrapRequestSerializer:function(e){return e===o.reqSerializer?e:function(t){return e(o.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===s.resSerializer?e:function(t){return e(s.resSerializer(t))}}}},7657:e=>{"use strict";e.exports=s;let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),i=Symbol("pino-raw-err-ref"),o=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[i]},set:function(e){this[i]=e}}});function s(e){if(!(e instanceof Error))return e;e[r]=void 0;let i=Object.create(o);for(let o in i.type="[object Function]"===t.call(e.constructor)?e.constructor.name:e.name,i.message=e.message,i.stack=e.stack,e)if(void 0===i[o]){let t=e[o];t instanceof Error?t.hasOwnProperty(r)||(i[o]=s(t)):i[o]=t}return delete e[r],i.raw=e,i}Object.defineProperty(o,i,{writable:!0,value:{}})},6836:e=>{"use strict";e.exports={mapHttpRequest:o,reqSerializer:i};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=e.info||e.socket,i=Object.create(r);return i.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),i.method=e.method,e.originalUrl?(i.url=e.originalUrl,i.query=e.query,i.params=e.params):i.url=e.path||(e.url?e.url.path||e.url:void 0),i.headers=e.headers,i.remoteAddress=t&&t.remoteAddress,i.remotePort=t&&t.remotePort,i.raw=e.raw||e,i}function o(e){return{req:i(e)}}Object.defineProperty(r,t,{writable:!0,value:{}})},6364:e=>{"use strict";e.exports={mapHttpResponse:o,resSerializer:i};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function i(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function o(e){return{res:i(e)}}Object.defineProperty(r,t,{writable:!0,value:{}})},8556:(e,t,r)=>{"use strict";let{format:i}=r(3837);function o(){let e={},t=new Map;return{create:function(r,o,s){if(!r)throw Error("Warning name must not be empty");if(!o)throw Error("Warning code must not be empty");if(!s)throw Error("Warning message must not be empty");if(void 0!==e[o=o.toUpperCase()])throw Error(`The code '${o}' already exist`);return t.set(o,!1),e[o]=function(e,t,a){return{code:o,name:r,message:e&&t&&a?i(s,e,t,a):e&&t?i(s,e,t):e?i(s,e):s}},e[o]},emit:function(r,i,o,s){if(void 0===e[r])throw Error(`The code '${r}' does not exist`);if(!0===t.get(r))return;t.set(r,!0);let a=e[r](i,o,s);process.emitWarning(a.message,a.name,a.code)},emitted:t}}e.exports=o},1556:(e,t,r)=>{var i=r(5962),o=r(5546),s=r(7147),a=function(){},u=/^v?\.0/.test(process.version),l=function(e){return"function"==typeof e},c=function(e){return!!u&&!!s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&l(e.close)},f=function(e){return e.setHeader&&l(e.abort)},h=function(e,t,r,s){s=i(s);var u=!1;e.on("close",function(){u=!0}),o(e,{readable:t,writable:r},function(e){if(e)return s(e);u=!0,s()});var h=!1;return function(t){if(!u&&!h){if(h=!0,c(e))return e.close(a);if(f(e))return e.abort();if(l(e.destroy))return e.destroy();s(t||Error("stream was destroyed"))}}},p=function(e){e()},d=function(e,t){return e.pipe(t)},g=function(){var e,t=Array.prototype.slice.call(arguments),r=l(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(o,s){var a=s0,function(t){e||(e=t),t&&i.forEach(p),a||(i.forEach(p),r(e))})});return t.reduce(d)};e.exports=g},4532:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}function r(e,r,i){var o=i&&i.stringify||t;if("object"==typeof e&&null!==e){var s=r.length+1;if(1===s)return e;var a=Array(s);a[0]=o(e);for(var u=1;u-1?h:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=l||null==r[f])break;h=l||null==r[f])break;h=l||void 0===r[f])break;h",h=d+2,d++;break}c+=o(r[f]),h=d+2,d++;break;case 115:if(f>=l)break;h{"use strict";let t={};function r(e,r,i){i||(i=Error);class o extends i{constructor(e,t,i){super("string"==typeof r?r:r(e,t,i))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function o(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function s(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let u,l;if("string"==typeof t&&o(t,"not ")?(u="must not be",t=t.replace(/^not /,"")):u="must be",s(e," argument"))l=`The ${e} ${u} ${i(t,"type")}`;else{let r=a(e,".")?"property":"argument";l=`The "${e}" ${r} ${u} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},673:(e,t,r)=>{"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var o=r(5006),s=r(8719);r(1828)(c,o);for(var a=i(s.prototype),u=0;u{"use strict";e.exports=o;var i=r(8597);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}r(1828)(o,i),o.prototype._transform=function(e,t,r){r(null,e)}},5006:(e,t,r)=>{"use strict";e.exports=P,P.ReadableState=T;var i,o,s,a,u,l=r(2361).EventEmitter,c=function(e,t){return e.listeners(t).length},f=r(1829),h=r(4300).Buffer,p=global.Uint8Array||function(){};function d(e){return h.from(e)}function g(e){return h.isBuffer(e)||e instanceof p}var y=r(3837);o=y&&y.debuglog?y.debuglog("stream"):function(){};var m=r(4506),b=r(3390),v=r(1111).getHighWaterMark,w=r(7638).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,x=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1828)(P,f);var O=b.errorOrDestroy,j=["error","close","destroy","pause","resume"];function k(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function T(e,t,o){i=i||r(673),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",o),this.buffer=new m,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=r(7361).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function P(e){if(i=i||r(673),!(this instanceof P))return new P(e);var t=this instanceof i;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,i,s){o("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,I(e,u);else if(s||(a=A(u,t)),a)O(e,a);else if(u.objectMode||t&&t.length>0){if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=d(t)),i)u.endEmitted?O(e,new E):M(e,u,t,!0);else if(u.ended)O(e,new S);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?M(e,u,t,!1):B(e,u)):M(e,u,t,!1)}}else i||(u.reading=!1,B(e,u));return!u.ended&&(u.length=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function C(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function I(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,$(e)))}}function D(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick($,e))}function $(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function B(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(q,e,t))}function q(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function W(e){o("readable nexttick read 0"),e.read(0)}function G(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(H,e,t))}function H(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function J(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(K,t,e))}function K(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):D(this),null;if(0===(e=C(e,r))&&r.ended)return 0===r.length&&V(this),null;var s=r.needReadable;return o("need readable",s),(0===r.length||r.length-e0?J(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){O(this,new x("_read()"))},P.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?g:a;function a(){o("onend"),e.end()}i.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",function t(s,c){o("onunpipe"),s===r&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u())});var u=U(r);e.on("drain",u);var l=!1;function f(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==Y(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),g(),e.removeListener("error",h),0===c(e,"error")&&O(e,t)}function p(){e.removeListener("finish",d),g()}function d(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",f),k(e,"error",h),e.once("close",p),e.once("finish",d),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?D(this):i.reading||process.nextTick(W,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(F,this),r},P.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&process.nextTick(F,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,G(this,e)),e.paused=!1,this},P.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var s in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),(!r.objectMode||null!=s)&&(r.objectMode||s&&s.length)&&(t.push(s)||(i=!0,e.pause()))}),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var a=0;a{"use strict";e.exports=f;var i=r(7638).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,l=r(673);function c(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){G(t,e)}}e.exports=k,k.WritableState=j;var o,s,a={deprecate:r(4484)},u=r(1829),l=r(4300).Buffer,c=global.Uint8Array||function(){};function f(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var p=r(3390),d=r(1111).getHighWaterMark,g=r(7638).q,y=g.ERR_INVALID_ARG_TYPE,m=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_MULTIPLE_CALLBACK,v=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,_=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,x=g.ERR_UNKNOWN_ENCODING,E=p.errorOrDestroy;function O(){}function j(e,t,s){o=o||r(673),e=e||{},"boolean"!=typeof s&&(s=t instanceof o),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){C(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function k(e){var t=this instanceof(o=o||r(673));if(!t&&!s.call(k,this))return new k(e);this._writableState=new j(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function T(e,t){var r=new S;E(e,r),process.nextTick(t,r)}function P(e,t,r,i){var o;return null===r?o=new _:"string"==typeof r||t.objectMode||(o=new y("chunk",["string","Buffer"],r)),!o||(E(e,o),process.nextTick(i,o),!1)}function R(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function M(e,t,r,i,o,s){if(!r){var a=R(t,i,o);i!==a&&(r=!0,o="buffer",i=a)}var u=t.objectMode?1:i.length;t.length+=u;var l=t.length-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||W(this,i,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(e,t){t(e)}},8187:(e,t,r)=>{"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(2426),a=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[p].read();null!==r&&(e[f]=null,e[a]=null,e[u]=null,t(d(r,!1)))}}function y(e){process.nextTick(g,e)}function m(e,t){return function(r,i){e.then(function(){if(t[c]){r(d(void 0,!0));return}t[h](r,i)},i)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(o={get stream(){return this[p]},next:function(){var e,t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){process.nextTick(function(){t[l]?r(t[l]):e(d(void 0,!0))})});var i=this[f];if(i)e=new Promise(m(i,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));e=new Promise(this[h])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){if(e){r(e);return}t(d(void 0,!0))})})}),o),b),w=function(e){var t,r=Object.create(v,(i(t={},p,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[p].read();i?(r[f]=null,r[a]=null,r[u]=null,e(d(i,!1))):(r[a]=e,r[u]=t)},writable:!0}),t));return r[f]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[a]=null,r[u]=null,t(e)),r[l]=e;return}var i=r[a];null!==i&&(r[f]=null,r[a]=null,r[u]=null,i(d(void 0,!0))),r[c]=!0}),e.on("readable",y.bind(null,r)),r};e.exports=w},4506:(e,t,r)=>{"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,i=0;r;)p(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(s));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,s),0==(e-=s)){s===o.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(s));break}++i}return this.length-=i,t}},{key:h,value:function(e,t){return f(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},3390:e=>{"use strict";function t(e,t){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(s,this,e)):process.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(i,o):(o._writableState.errorEmitted=!0,process.nextTick(r,o,e)):process.nextTick(r,o,e):t?(process.nextTick(i,o),t(e)):process.nextTick(i,o)})),this}function r(e,t){s(e,t),i(e)}function i(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){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 s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:a}},2426:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),o=0;o{"use strict";function i(e,t,r,i,o,s,a){try{var u=e[s](a),l=u.value}catch(e){r(e);return}u.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(o,s){var a=e.apply(t,r);function u(e){i(a,o,s,u,l,"next",e)}function l(e){i(a,o,s,u,l,"throw",e)}u(void 0)})}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function a(e){for(var t=1;t{"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o,s=r(7638).q,a=s.ERR_MISSING_ARGS,u=s.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function f(e,t,s,a){a=i(a);var l=!1;e.on("close",function(){l=!0}),void 0===o&&(o=r(2426)),o(e,{readable:t,writable:s},function(e){if(e)return a(e);l=!0,a()});var f=!1;return function(t){if(!l&&!f){if(f=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new u("pipe"))}}}function h(e){e()}function p(e,t){return e.pipe(t)}function d(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function g(){for(var e,t=arguments.length,r=Array(t),i=0;i0,function(t){e||(e=t),t&&s.forEach(h),a||(s.forEach(h),o(e))})});return r.reduce(p)}e.exports=g},1111:(e,t,r)=>{"use strict";var i=r(7638).q.ERR_INVALID_OPT_VALUE;function o(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function s(e,t,r,s){var a=o(t,s,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var u=s?r:"highWaterMark";throw new i(u,a)}return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:s}},1829:(e,t,r)=>{e.exports=r(2781)},8118:(e,t,r)=>{var i=r(2781);"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(5006)).Stream=i||t,t.Readable=t,t.Writable=r(8719),t.Duplex=r(673),t.Transform=r(8597),t.PassThrough=r(4343),t.finished=r(2426),t.pipeline=r(2970))},3268:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if((e=e||{}).circles)return i(e);return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,e);if(i instanceof Map)return new Map(r(Array.from(i),e));if(i instanceof Set)return new Set(r(Array.from(i),e));var o={};for(var s in i){var a=i[s];"object"!=typeof a||null===a?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(r(Array.from(a),e)):a instanceof Set?o[s]=new Set(r(Array.from(a),e)):ArrayBuffer.isView(a)?o[s]=t(a):o[s]=e(a)}return o}:function e(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,e);if(i instanceof Map)return new Map(r(Array.from(i),e));if(i instanceof Set)return new Set(r(Array.from(i),e));var o={};for(var s in i)if(!1!==Object.hasOwnProperty.call(i,s)){var a=i[s];"object"!=typeof a||null===a?o[s]=a:a instanceof Date?o[s]=new Date(a):a instanceof Map?o[s]=new Map(r(Array.from(a),e)):a instanceof Set?o[s]=new Set(r(Array.from(a),e)):ArrayBuffer.isView(a)?o[s]=t(a):o[s]=e(a)}return o};function r(e,r){for(var i=Object.keys(e),o=Array(i.length),s=0;s{/*! safe-buffer. MIT License. Feross Aboukhadijeh */var i=r(4300),o=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},9316:e=>{"use strict";let t="undefined"!=typeof Buffer,r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function o(e,o,a){null==a&&(null!==o&&"object"==typeof o?(a=o,o=void 0):a={});let u=a.protoAction||"error",l=a.constructorAction||"error";t&&Buffer.isBuffer(e)&&(e=e.toString()),e&&65279===e.charCodeAt(0)&&(e=e.slice(1));let c=JSON.parse(e,o);if("ignore"===u&&"ignore"===l||null===c||"object"!=typeof c)return c;if("ignore"!==u&&"ignore"!==l){if(!1===r.test(e)&&!1===i.test(e))return c}else if("ignore"!==u&&"ignore"===l){if(!1===r.test(e))return c}else if(!1===i.test(e))return c;return s(c,{protoAction:u,constructorAction:l}),c}function s(e,{protoAction:t="error",constructorAction:r="error"}={}){let i=[e];for(;i.length;){let e=i;for(let o of(i=[],e)){if("ignore"!==t&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if("error"===t)throw SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if("ignore"!==r&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if("error"===r)throw SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let e in o){let t=o[e];t&&"object"==typeof t&&i.push(o[e])}}}}function a(e,t){try{return o(e,t)}catch(e){return null}}e.exports={parse:o,scan:s,safeParse:a}},4656:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(8306),a=r(3837).inherits,u=r(160);function l(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}if(t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),t._reopening)return;let o=t._buf.length;o>0&&o>t.minLength&&!t.destroyed&&h(t)}if(t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1,t.sync)try{let t=i.openSync(e,"a");r(null,t)}catch(e){throw r(e),e}else i.open(e,"a",r)}function c(e){if(!(this instanceof c))return new c(e);let{fd:t,dest:r,minLength:o,sync:s}=e||{};if(t=t||r,this._buf="",this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this.file=null,this.destroyed=!1,this.sync=s||!1,this.minLength=o||0,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)l(t,this);else throw Error("SonicBoom supports only file descriptors and files");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._buf=this._writingBuf+this._buf,this._writingBuf="",this._writing=!1,this.emit("error",e);return}if(this._writingBuf.length!==t){if(this._writingBuf=this._writingBuf.slice(t),this.sync)try{do t=i.writeSync(this.fd,this._writingBuf,"utf8"),this._writingBuf=this._writingBuf.slice(t);while(0!==this._writingBuf.length)}catch(e){this.release(e);return}else{i.write(this.fd,this._writingBuf,"utf8",this.release);return}}if(this._writingBuf="",this.destroyed)return;let r=this._buf.length;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>0&&r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){e._writing=!0;let t=e._buf,r=e.release;if(t.length>16777216?(t=t.slice(0,16777216),e._buf=e._buf.slice(16777216)):e._buf="",s(t),e._writingBuf=t,e.sync)try{let o=i.writeSync(e.fd,t,"utf8");r(null,o)}catch(e){r(e)}else i.write(e.fd,t,"utf8",r)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._buf=""}a(c,o),c.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");this._buf+=e;let t=this._buf.length;return!this._writing&&t>this.minLength&&h(this),t<16384},c.prototype.flush=function(){if(this.destroyed)throw Error("SonicBoom destroyed");this._writing||this.minLength<=0||h(this)},c.prototype.reopen=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),l(e||this.file,this)},c.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}if(!this._ending){if(this._ending=!0,!this._writing&&this._buf.length>0&&this.fd>=0){h(this);return}this._writing||p(this)}},c.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(;this._buf.length>0;)try{i.writeSync(this.fd,this._buf,"utf8"),this._buf=""}catch(e){if("EAGAIN"!==e.code)throw e;u(100)}},c.prototype.destroy=function(){this.destroyed||p(this)},e.exports=c},5443:(e,t,r)=>{"use strict";let{Transform:i}=r(2781),{StringDecoder:o}=r(1576),s=Symbol("last"),a=Symbol("decoder");function u(e,t,r){let i;if(this.overflow){let t=this[a].write(e);if(1===(i=t.split(this.matcher)).length)return r();i.shift(),this.overflow=!1}else this[s]+=this[a].write(e),i=this[s].split(this.matcher);this[s]=i.pop();for(let e=0;ethis.maxLength,this.overflow&&!this.skipOverflow){r(Error("maximum buffer reached"));return}r()}function l(e){if(this[s]+=this[a].end(),this[s])try{c(this,this.mapper(this[s]))}catch(t){return e(t)}e()}function c(e,t){void 0!==t&&e.push(t)}function f(e){return e}function h(e,t,r){switch(e=e||/\r?\n/,t=t||f,r=r||{},arguments.length){case 1:"function"==typeof e?(t=e,e=/\r?\n/):"object"!=typeof e||e instanceof RegExp||(r=e,e=/\r?\n/);break;case 2:"function"==typeof e?(r=t,t=e,e=/\r?\n/):"object"==typeof t&&(r=t,t=f)}(r=Object.assign({},r)).autoDestroy=!0,r.transform=u,r.flush=l,r.readableObjectMode=!0;let c=new i(r);return c[s]="",c[a]=new o("utf8"),c.matcher=e,c.mapper=t,c.maxLength=r.maxLength,c.skipOverflow=r.skipOverflow||!1,c.overflow=!1,c._destroy=function(e,t){this._writableState.errorEmitted=!1,t(e)},c}e.exports=h},6151:e=>{function t(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(r(t)):null}function r(e){return e.buffer.length?e.buffer.head?e.buffer.head.data.length:e.buffer[0].length:e.length}e.exports=t},7361:(e,t,r)=>{"use strict";var i=r(9685).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.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 s(e){var t;if(!e)return"utf8";for(;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=s(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function u(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=g,this.end=y,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=b,t=3;break;default:this.write=v,this.end=w;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function f(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=f(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function g(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function w(e){return e&&e.length?this.write(e):""}t.s=u,u.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{e.exports=r(3837).deprecate},4447:e=>{e.exports=t;function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw TypeError("need wrapper function");return Object.keys(e).forEach(function(t){i[t]=e[t]}),i;function i(){for(var t=Array(arguments.length),r=0;r{var i=r(3284),o=r(2903),s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not a function")}},587:(e,t,r)=>{var i=r(17).has;e.exports=function(e){return i(e),e}},3939:(e,t,r)=>{var i=r(3284),o=String,s=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw s("Can't set "+o(e)+" as a prototype")}},591:(e,t,r)=>{var i=r(3228).has;e.exports=function(e){return i(e),e}},348:(e,t,r)=>{var i=r(2145),o=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},7397:(e,t,r)=>{var i=r(6120),o=String,s=TypeError;e.exports=function(e){if(i(e))return e;throw s(o(e)+" is not an object")}},947:(e,t,r)=>{var i=r(1165),o=r(4708),s=r(4676),a=function(e){return function(t,r,a){var u,l=i(t),c=s(l),f=o(a,c);if(e&&r!=r){for(;c>f;)if((u=l[f++])!=u)return!0}else for(;c>f;f++)if((e||f in l)&&l[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},6941:(e,t,r)=>{"use strict";var i=r(783),o=r(8629),s=TypeError,a=Object.getOwnPropertyDescriptor,u=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9641:(e,t,r)=>{var i=r(5767),o=r(3204),s=r(3219);e.exports=function(e,t,r,a){try{var u=s(e,"return");if(u)return o("Promise").resolve(i(u,e)).then(function(){t(r)},function(e){a(e)})}catch(e){return a(e)}t(r)}},3519:(e,t,r)=>{"use strict";var i=r(5767),o=r(2617),s=r(7397),a=r(2383),u=r(3853),l=r(8586),c=r(1664),f=r(6890),h=r(3204),p=r(3219),d=r(2930),g=r(7901),y=r(9293),m=h("Promise"),b=c("toStringTag"),v="AsyncIteratorHelper",w="WrapForValidAsyncIterator",_=f.set,S=function(e){var t=!e,r=f.getterFor(e?w:v),u=function(e){var i=o(function(){return r(e)}),s=i.error,a=i.value;return s||t&&a.done?{exit:!0,value:s?m.reject(a):m.resolve(g(void 0,!0))}:{exit:!1,value:a}};return l(a(d),{next:function(){var e=u(this),t=e.value;if(e.exit)return t;var r=o(function(){return s(t.nextHandler(m))}),i=r.error,a=r.value;return i&&(t.done=!0),i?m.reject(a):m.resolve(a)},return:function(){var t,r,a=u(this),l=a.value;if(a.exit)return l;l.done=!0;var c=l.iterator,f=o(function(){if(l.inner)try{y(l.inner.iterator,"normal")}catch(e){return y(c,"throw",e)}return p(c,"return")});return(t=r=f.value,f.error)?m.reject(r):void 0===t?m.resolve(g(void 0,!0)):(r=(f=o(function(){return i(t,c)})).value,f.error)?m.reject(r):e?m.resolve(r):m.resolve(r).then(function(e){return s(e),g(void 0,!0)})}})},x=S(!0),E=S(!1);u(E,b,"Async Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?w:v,i.nextHandler=e,i.counter=0,i.done=!1,_(this,i)};return r.prototype=t?x:E,r}},7797:(e,t,r)=>{"use strict";var i=r(5767),o=r(5416),s=r(7397),a=r(6120),u=r(1221),l=r(3204),c=r(4058),f=r(9641),h=function(e){var t=0==e,r=1==e,h=2==e,p=3==e;return function(e,d,g){s(e);var y=void 0!==d;(y||!t)&&o(d);var m=c(e),b=l("Promise"),v=m.iterator,w=m.next,_=0;return new b(function(e,o){var l=function(e){f(v,o,e,o)},c=function(){try{if(y)try{u(_)}catch(e){l(e)}b.resolve(s(i(w,v))).then(function(i){try{if(s(i).done)t?(g.length=_,e(g)):e(!p&&(h||void 0));else{var u=i.value;try{if(y){var m=d(u,_),w=function(i){if(r)c();else if(h)i?c():f(v,e,!1,o);else if(t)try{g[_++]=i,c()}catch(e){l(e)}else i?f(v,e,p||u,o):c()};a(m)?b.resolve(m).then(w,l):w(m)}else g[_++]=u,c()}catch(e){l(e)}}}catch(e){o(e)}},o)}catch(e){o(e)}};c()})}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},4849:(e,t,r)=>{"use strict";var i=r(5767),o=r(5416),s=r(7397),a=r(6120),u=r(4058),l=r(3519),c=r(7901),f=r(9641),h=l(function(e){var t=this,r=t.iterator,o=t.mapper;return new e(function(u,l){var h=function(e){t.done=!0,l(e)},p=function(e){f(r,h,e,h)};e.resolve(s(i(t.next,r))).then(function(r){try{if(s(r).done)t.done=!0,u(c(void 0,!0));else{var i=r.value;try{var l=o(i,t.counter++),f=function(e){u(c(e,!1))};a(l)?e.resolve(l).then(f,p):f(l)}catch(e){p(e)}}}catch(e){h(e)}},h)})});e.exports=function(e){return s(this),o(e),new h(u(this),{mapper:e})}},2930:(e,t,r)=>{var i,o,s=r(6234),a=r(2750),u=r(3284),l=r(2383),c=r(4857),f=r(9059),h=r(1664),p=r(5419),d="USE_FUNCTION_CONSTRUCTOR",g=h("asyncIterator"),y=s.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)i=m;else if(u(y))i=y.prototype;else if(a[d]||s[d])try{o=c(c(c(Function("return async function*(){}()")()))),c(o)===Object.prototype&&(i=o)}catch(e){}i?p&&(i=l(i)):i={},u(i[g])||f(i,g,function(){return this}),e.exports=i},6037:(e,t,r)=>{var i=r(7397),o=r(9293);e.exports=function(e,t,r,s){try{return s?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},1209:(e,t,r)=>{var i=r(1664)("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var s={};s[i]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},9806:(e,t,r)=>{var i=r(8681),o=i({}.toString),s=i("".slice);e.exports=function(e){return s(o(e),8,-1)}},904:(e,t,r)=>{var i=r(4419),o=r(3284),s=r(9806),a=r(1664)("toStringTag"),u=Object,l="Arguments"==s(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(e){}};e.exports=i?s:function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=c(t=u(e),a))?r:l?s(t):"Object"==(i=s(t))&&o(t.callee)?"Arguments":i}},2578:(e,t,r)=>{var i=r(2624),o=r(5189),s=r(1390),a=r(7936);e.exports=function(e,t,r){for(var u=o(t),l=a.f,c=s.f,f=0;f{var i=r(6554);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},7901:e=>{e.exports=function(e,t){return{value:e,done:t}}},3853:(e,t,r)=>{var i=r(783),o=r(7936),s=r(9697);e.exports=i?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},9697:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7371:(e,t,r)=>{"use strict";var i=r(5537),o=r(7936),s=r(9697);e.exports=function(e,t,r){var a=i(t);a in e?o.f(e,a,s(0,r)):e[a]=r}},1701:(e,t,r)=>{var i=r(8921),o=r(7936);e.exports=function(e,t,r){return r.get&&i(r.get,t,{getter:!0}),r.set&&i(r.set,t,{setter:!0}),o.f(e,t,r)}},9059:(e,t,r)=>{var i=r(3284),o=r(7936),s=r(8921),a=r(6395);e.exports=function(e,t,r,u){u||(u={});var l=u.enumerable,c=void 0!==u.name?u.name:t;if(i(r)&&s(r,c,u),u.global)l?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},8586:(e,t,r)=>{var i=r(9059);e.exports=function(e,t,r){for(var o in t)i(e,o,t[o],r);return e}},6395:(e,t,r)=>{var i=r(6234),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(r){i[e]=t}return t}},783:(e,t,r)=>{var i=r(6554);e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},5271:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},3147:(e,t,r)=>{var i=r(6234),o=r(6120),s=i.document,a=o(s)&&o(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},1221:e=>{var t=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw t("Maximum allowed index exceeded");return e}},9134:(e,t,r)=>{var i=r(7158),o=r(197);e.exports=!i&&!o&&"object"==typeof window&&"object"==typeof document},7158:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},197:(e,t,r)=>{var i=r(9806);e.exports="undefined"!=typeof process&&"process"==i(process)},3527:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5229:(e,t,r)=>{var i,o,s=r(6234),a=r(3527),u=s.process,l=s.Deno,c=u&&u.versions||l&&l.version,f=c&&c.v8;f&&(o=(i=f.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},1156:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3828:(e,t,r)=>{var i=r(8681),o=Error,s=i("".replace),a=String(o("zxcasd").stack),u=/\n\s*at [^:]*:[^\n]*/,l=u.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=s(e,u,"");return e}},4809:(e,t,r)=>{var i=r(3853),o=r(3828),s=r(8839),a=Error.captureStackTrace;e.exports=function(e,t,r,u){s&&(a?a(e,t):i(e,"stack",o(r,u)))}},8839:(e,t,r)=>{var i=r(6554),o=r(9697);e.exports=!i(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)})},5200:(e,t,r)=>{var i=r(6234),o=r(1390).f,s=r(3853),a=r(9059),u=r(6395),l=r(2578),c=r(5520);e.exports=function(e,t){var r,f,h,p,d,g=e.target,y=e.global,m=e.stat;if(r=y?i:m?i[g]||u(g,{}):(i[g]||{}).prototype)for(f in t){if(p=t[f],h=e.dontCallGetSet?(d=o(r,f))&&d.value:r[f],!c(y?f:g+(m?".":"#")+f,e.forced)&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&s(p,"sham",!0),a(r,f,p,e)}}},6554:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},1322:(e,t,r)=>{var i=r(5354),o=Function.prototype,s=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(s):function(){return a.apply(s,arguments)})},9219:(e,t,r)=>{var i=r(5905),o=r(5416),s=r(5354),a=i(i.bind);e.exports=function(e,t){return o(e),void 0===t?e:s?a(e,t):function(){return e.apply(t,arguments)}}},5354:(e,t,r)=>{var i=r(6554);e.exports=!i(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},5767:(e,t,r)=>{var i=r(5354),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1050:(e,t,r)=>{var i=r(783),o=r(2624),s=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,u=o(s,"name"),l=u&&"something"===(function(){}).name,c=u&&(!i||i&&a(s,"name").configurable);e.exports={EXISTS:u,PROPER:l,CONFIGURABLE:c}},2808:(e,t,r)=>{var i=r(8681),o=r(5416);e.exports=function(e,t,r){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},5905:(e,t,r)=>{var i=r(9806),o=r(8681);e.exports=function(e){if("Function"===i(e))return o(e)}},8681:(e,t,r)=>{var i=r(5354),o=Function.prototype,s=o.call,a=i&&o.bind.bind(s,s);e.exports=i?a:function(e){return function(){return s.apply(e,arguments)}}},3204:(e,t,r)=>{var i=r(6234),o=r(3284),s=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e]):i[e]&&i[e][t]}},4058:e=>{e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},9759:(e,t,r)=>{var i=r(904),o=r(3219),s=r(1942),a=r(6193),u=r(1664)("iterator");e.exports=function(e){if(!s(e))return o(e,u)||o(e,"@@iterator")||a[i(e)]}},9531:(e,t,r)=>{var i=r(5767),o=r(5416),s=r(7397),a=r(2903),u=r(9759),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return s(i(r,e));throw l(a(e)+" is not iterable")}},3219:(e,t,r)=>{var i=r(5416),o=r(1942);e.exports=function(e,t){var r=e[t];return o(r)?void 0:i(r)}},9010:(e,t,r)=>{var i=r(5416),o=r(7397),s=r(5767),a=r(2495),u=TypeError,l=Math.max,c=function(e,t,r,i){this.set=e,this.size=t,this.has=r,this.keys=i};c.prototype={getIterator:function(){return o(s(this.keys,this.set))},includes:function(e){return s(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw u("Invalid size");return new c(e,l(a(t),0),i(e.has),i(e.keys))}},6234:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},2624:(e,t,r)=>{var i=r(8681),o=r(9306),s=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(o(e),t)}},5926:e=>{e.exports={}},9241:(e,t,r)=>{var i=r(3204);e.exports=i("document","documentElement")},6925:(e,t,r)=>{var i=r(783),o=r(6554),s=r(3147);e.exports=!i&&!o(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1643:(e,t,r)=>{var i=r(8681),o=r(6554),s=r(9806),a=Object,u=i("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==s(e)?u(e,""):a(e)}:a},6302:(e,t,r)=>{var i=r(3284),o=r(6120),s=r(239);e.exports=function(e,t,r){var a,u;return s&&i(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&s(e,u),e}},811:(e,t,r)=>{var i=r(8681),o=r(3284),s=r(2750),a=i(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return a(e)}),e.exports=s.inspectSource},7771:(e,t,r)=>{var i=r(6120),o=r(3853);e.exports=function(e,t){i(t)&&"cause"in t&&o(e,"cause",t.cause)}},6890:(e,t,r)=>{var i,o,s,a=r(2125),u=r(6234),l=r(6120),c=r(3853),f=r(2624),h=r(2750),p=r(5771),d=r(5926),g="Object already initialized",y=u.TypeError,m=u.WeakMap,b=function(e){return s(e)?o(e):i(e,{})},v=function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw y("Incompatible receiver, "+e+" required");return r}};if(a||h.state){var w=h.state||(h.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,i=function(e,t){if(w.has(e))throw y(g);return t.facade=e,w.set(e,t),t},o=function(e){return w.get(e)||{}},s=function(e){return w.has(e)}}else{var _=p("state");d[_]=!0,i=function(e,t){if(f(e,_))throw y(g);return t.facade=e,c(e,_,t),t},o=function(e){return f(e,_)?e[_]:{}},s=function(e){return f(e,_)}}e.exports={set:i,get:o,has:s,enforce:b,getterFor:v}},2794:(e,t,r)=>{var i=r(1664),o=r(6193),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[s]===e)}},8629:(e,t,r)=>{var i=r(9806);e.exports=Array.isArray||function(e){return"Array"==i(e)}},3284:(e,t,r)=>{var i=r(5271),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},5520:(e,t,r)=>{var i=r(6554),o=r(3284),s=/#|\.prototype\./,a=function(e,t){var r=l[u(e)];return r==f||r!=c&&(o(t)?i(t):!!t)},u=a.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},8918:(e,t,r)=>{var i=r(904),o=r(2624),s=r(1942),a=r(1664),u=r(6193),l=a("iterator"),c=Object;e.exports=function(e){if(s(e))return!1;var t=c(e);return void 0!==t[l]||"@@iterator"in t||o(u,i(t))}},1942:e=>{e.exports=function(e){return null==e}},6120:(e,t,r)=>{var i=r(3284),o=r(5271),s=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===s}:function(e){return"object"==typeof e?null!==e:i(e)}},5419:e=>{e.exports=!1},2575:(e,t,r)=>{var i=r(3204),o=r(3284),s=r(2145),a=r(6591),u=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&s(t.prototype,u(e))}},6644:(e,t,r)=>{var i=r(5767);e.exports=function(e,t,r){for(var o,s,a=r||e.next;!(o=i(a,e)).done;)if(void 0!==(s=t(o.value)))return s}},4302:(e,t,r)=>{var i=r(9219),o=r(5767),s=r(7397),a=r(2903),u=r(2794),l=r(4676),c=r(2145),f=r(9531),h=r(9759),p=r(9293),d=TypeError,g=function(e,t){this.stopped=e,this.result=t},y=g.prototype;e.exports=function(e,t,r){var m,b,v,w,_,S,x,E=r&&r.that,O=!!(r&&r.AS_ENTRIES),j=!!(r&&r.IS_RECORD),k=!!(r&&r.IS_ITERATOR),T=!!(r&&r.INTERRUPTED),P=i(t,E),R=function(e){return m&&p(m,"normal",e),new g(!0,e)},M=function(e){return O?(s(e),T?P(e[0],e[1],R):P(e[0],e[1])):T?P(e,R):P(e)};if(j)m=e.iterator;else if(k)m=e;else{if(!(b=h(e)))throw d(a(e)+" is not iterable");if(u(b)){for(v=0,w=l(e);w>v;v++)if((_=M(e[v]))&&c(y,_))return _;return new g(!1)}m=f(e,b)}for(S=j?e.next:m.next;!(x=o(S,m)).done;){try{_=M(x.value)}catch(e){p(m,"throw",e)}if("object"==typeof _&&_&&c(y,_))return _}return new g(!1)}},9293:(e,t,r)=>{var i=r(5767),o=r(7397),s=r(3219);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=s(e,"return"))){if("throw"===t)throw r;return r}a=i(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},8694:(e,t,r)=>{"use strict";var i=r(5767),o=r(2383),s=r(3853),a=r(8586),u=r(1664),l=r(6890),c=r(3219),f=r(935).IteratorPrototype,h=r(7901),p=r(9293),d=u("toStringTag"),g="IteratorHelper",y="WrapForValidIterator",m=l.set,b=function(e){var t=l.getterFor(e?y:g);return a(o(f),{next:function(){var r=t(this);if(e)return r.nextHandler();try{var i=r.done?void 0:r.nextHandler();return h(i,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),o=r.iterator;if(r.done=!0,e){var s=c(o,"return");return s?i(s,o):h(void 0,!0)}if(r.inner)try{p(r.inner.iterator,"normal")}catch(e){return p(o,"throw",e)}return p(o,"normal"),h(void 0,!0)}})},v=b(!0),w=b(!1);s(w,d,"Iterator Helper"),e.exports=function(e,t){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?y:g,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?v:w,r}},2499:(e,t,r)=>{"use strict";var i=r(5767),o=r(5416),s=r(7397),a=r(4058),u=r(8694),l=r(6037),c=u(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return s(this),o(e),new c(a(this),{mapper:e})}},935:(e,t,r)=>{"use strict";var i,o,s,a=r(6554),u=r(3284),l=r(6120),c=r(2383),f=r(4857),h=r(9059),p=r(1664),d=r(5419),g=p("iterator"),y=!1;[].keys&&("next"in(s=[].keys())?(o=f(f(s)))!==Object.prototype&&(i=o):y=!0),!l(i)||a(function(){var e={};return i[g].call(e)!==e})?i={}:d&&(i=c(i)),u(i[g])||h(i,g,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:y}},6193:e=>{e.exports={}},4676:(e,t,r)=>{var i=r(8513);e.exports=function(e){return i(e.length)}},8921:(e,t,r)=>{var i=r(8681),o=r(6554),s=r(3284),a=r(2624),u=r(783),l=r(1050).CONFIGURABLE,c=r(811),f=r(6890),h=f.enforce,p=f.get,d=String,g=Object.defineProperty,y=i("".slice),m=i("".replace),b=i([].join),v=u&&!o(function(){return 8!==g(function(){},"length",{value:8}).length}),w=String(String).split("String"),_=e.exports=function(e,t,r){"Symbol("===y(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(u?g(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return a(i,"source")||(i.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return s(this)&&p(this).source||c(this)},"toString")},17:(e,t,r)=>{var i=r(8681),o=Map.prototype;e.exports={Map:Map,set:i(o.set),get:i(o.get),has:i(o.has),remove:i(o.delete),proto:o}},6753:(e,t,r)=>{var i=r(8681),o=r(6644),s=r(17),a=s.Map,u=s.proto,l=i(u.forEach),c=i(u.entries),f=c(new a).next;e.exports=function(e,t,r){return r?o(c(e),function(e){return t(e[1],e[0])},f):l(e,t)}},1919:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?r:t)(i)}},9198:(e,t,r)=>{"use strict";var i=r(5416),o=TypeError,s=function(e){var t,r;this.promise=new e(function(e,i){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=i}),this.resolve=i(t),this.reject=i(r)};e.exports.f=function(e){return new s(e)}},5226:(e,t,r)=>{var i=r(730);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},2383:(e,t,r)=>{var i,o=r(7397),s=r(9912),a=r(1156),u=r(5926),l=r(9241),c=r(3147),f=r(5771),h=">",p="<",d="prototype",g="script",y=f("IE_PROTO"),m=function(){},b=function(e){return p+g+h+e+p+"/"+g+h},v=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){var e,t=c("iframe");return t.style.display="none",l.appendChild(t),t.src=String("java"+g+":"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&i?v(i):w():v(i);for(var e=a.length;e--;)delete _[d][a[e]];return _()};u[y]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[d]=o(e),r=new m,m[d]=null,r[y]=e):r=_(),void 0===t?r:s.f(r,t)}},9912:(e,t,r)=>{var i=r(783),o=r(9836),s=r(7936),a=r(7397),u=r(1165),l=r(6782);t.f=i&&!o?Object.defineProperties:function(e,t){a(e);for(var r,i=u(t),o=l(t),c=o.length,f=0;c>f;)s.f(e,r=o[f++],i[r]);return e}},7936:(e,t,r)=>{var i=r(783),o=r(6925),s=r(9836),a=r(7397),u=r(5537),l=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";t.f=i?s?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var i=f(e,t);i&&i[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:i[p],enumerable:h in r?r[h]:i[h],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1390:(e,t,r)=>{var i=r(783),o=r(5767),s=r(8047),a=r(9697),u=r(1165),l=r(5537),c=r(2624),f=r(6925),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=u(e),t=l(t),f)try{return h(e,t)}catch(e){}if(c(e,t))return a(!o(s.f,e,t),e[t])}},8447:(e,t,r)=>{var i=r(8436),o=r(1156).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},8065:(e,t)=>{t.f=Object.getOwnPropertySymbols},4857:(e,t,r)=>{var i=r(2624),o=r(3284),s=r(9306),a=r(5771),u=r(3022),l=a("IE_PROTO"),c=Object,f=c.prototype;e.exports=u?c.getPrototypeOf:function(e){var t=s(e);if(i(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?f:null}},2145:(e,t,r)=>{var i=r(8681);e.exports=i({}.isPrototypeOf)},8436:(e,t,r)=>{var i=r(8681),o=r(2624),s=r(1165),a=r(947).indexOf,u=r(5926),l=i([].push);e.exports=function(e,t){var r,i=s(e),c=0,f=[];for(r in i)!o(u,r)&&o(i,r)&&l(f,r);for(;t.length>c;)o(i,r=t[c++])&&(~a(f,r)||l(f,r));return f}},6782:(e,t,r)=>{var i=r(8436),o=r(1156);e.exports=Object.keys||function(e){return i(e,o)}},8047:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},239:(e,t,r)=>{var i=r(2808),o=r(7397),s=r(3939);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=i(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return o(r),s(i),t?e(r,i):r.__proto__=i,r}}():void 0)},7679:(e,t,r)=>{var i=r(5767),o=r(3284),s=r(6120),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!s(u=i(r,e))||o(r=e.valueOf)&&!s(u=i(r,e))||"string"!==t&&o(r=e.toString)&&!s(u=i(r,e)))return u;throw a("Can't convert object to primitive value")}},5189:(e,t,r)=>{var i=r(3204),o=r(8681),s=r(8447),a=r(8065),u=r(7397),l=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(u(e)),r=a.f;return r?l(t,r(e)):t}},2610:(e,t,r)=>{var i=r(8681),o=r(2624),s=SyntaxError,a=parseInt,u=String.fromCharCode,l=i("".charAt),c=i("".slice),f=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,i="";t{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},4159:(e,t,r)=>{var i=r(6234),o=r(6583),s=r(3284),a=r(5520),u=r(811),l=r(1664),c=r(9134),f=r(7158),h=r(5419),p=r(5229),d=o&&o.prototype,g=l("species"),y=!1,m=s(i.PromiseRejectionEvent),b=a("Promise",function(){var e=u(o),t=e!==String(o);if(!t&&66===p||h&&!(d.catch&&d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((r.constructor={})[g]=i,!(y=r.then(function(){}) instanceof i))return!0}return!t&&(c||f)&&!m});e.exports={CONSTRUCTOR:b,REJECTION_EVENT:m,SUBCLASSING:y}},6583:(e,t,r)=>{var i=r(6234);e.exports=i.Promise},8352:(e,t,r)=>{var i=r(6583),o=r(1209),s=r(4159).CONSTRUCTOR;e.exports=s||!o(function(e){i.all(e).then(void 0,function(){})})},3572:(e,t,r)=>{var i=r(7936).f;e.exports=function(e,t,r){r in e||i(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},8532:(e,t,r)=>{"use strict";var i=r(7397);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},6325:(e,t,r)=>{var i=r(1942),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},7573:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},4486:(e,t,r)=>{var i=r(3228),o=r(8853),s=i.Set,a=i.add;e.exports=function(e){var t=new s;return o(e,function(e){a(t,e)}),t}},6680:(e,t,r)=>{"use strict";var i=r(591),o=r(3228),s=r(4486),a=r(8361),u=r(9010),l=r(8853),c=r(6644),f=o.has,h=o.remove;e.exports=function(e){var t=i(this),r=u(e),o=s(t);return a(t)<=r.size?l(t,function(e){r.includes(e)&&h(o,e)}):c(r.getIterator(),function(e){f(t,e)&&h(o,e)}),o}},3228:(e,t,r)=>{var i=r(8681),o=Set.prototype;e.exports={Set:Set,add:i(o.add),has:i(o.has),remove:i(o.delete),proto:o}},6683:(e,t,r)=>{"use strict";var i=r(591),o=r(3228),s=r(8361),a=r(9010),u=r(8853),l=r(6644),c=o.Set,f=o.add,h=o.has;e.exports=function(e){var t=i(this),r=a(e),o=new c;return s(t)>r.size?l(r.getIterator(),function(e){h(t,e)&&f(o,e)}):u(t,function(e){r.includes(e)&&f(o,e)}),o}},3943:(e,t,r)=>{"use strict";var i=r(591),o=r(3228).has,s=r(8361),a=r(9010),u=r(8853),l=r(6644),c=r(9293);e.exports=function(e){var t=i(this),r=a(e);if(s(t)<=r.size)return!1!==u(t,function(e){if(r.includes(e))return!1},!0);var f=r.getIterator();return!1!==l(f,function(e){if(o(t,e))return c(f,"normal",!1)})}},3985:(e,t,r)=>{"use strict";var i=r(591),o=r(8361),s=r(8853),a=r(9010);e.exports=function(e){var t=i(this),r=a(e);return!(o(t)>r.size)&&!1!==s(t,function(e){if(!r.includes(e))return!1},!0)}},9735:(e,t,r)=>{"use strict";var i=r(591),o=r(3228).has,s=r(8361),a=r(9010),u=r(6644),l=r(9293);e.exports=function(e){var t=i(this),r=a(e);if(s(t){var i=r(8681),o=r(6644),s=r(3228),a=s.Set,u=s.proto,l=i(u.forEach),c=i(u.keys),f=c(new a).next;e.exports=function(e,t,r){return r?o(c(e),t,f):l(e,t)}},7330:(e,t,r)=>{var i=r(3204),o=function(){return{size:0,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){try{return new(i("Set"))()[e](o()),!0}catch(e){return!1}}},8361:(e,t,r)=>{var i=r(2808),o=r(3228);e.exports=i(o.proto,"size","get")||function(e){return e.size}},7376:(e,t,r)=>{"use strict";var i=r(591),o=r(3228),s=r(4486),a=r(9010),u=r(6644),l=o.add,c=o.has,f=o.remove;e.exports=function(e){var t=i(this),r=a(e).getIterator(),o=s(t);return u(r,function(e){c(t,e)?f(o,e):l(o,e)}),o}},2218:(e,t,r)=>{"use strict";var i=r(591),o=r(3228).add,s=r(4486),a=r(9010),u=r(6644);e.exports=function(e){var t=i(this),r=a(e).getIterator(),l=s(t);return u(r,function(e){o(l,e)}),l}},5771:(e,t,r)=>{var i=r(1653),o=r(4925),s=i("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},2750:(e,t,r)=>{var i=r(6234),o=r(6395),s="__core-js_shared__",a=i[s]||o(s,{});e.exports=a},1653:(e,t,r)=>{var i=r(5419),o=r(2750);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:i?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7532:(e,t,r)=>{var i=r(5229),o=r(6554),s=r(6234).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol();return!s(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&i&&i<41})},4708:(e,t,r)=>{var i=r(2495),o=Math.max,s=Math.min;e.exports=function(e,t){var r=i(e);return r<0?o(r+t,0):s(r,t)}},1165:(e,t,r)=>{var i=r(1643),o=r(6325);e.exports=function(e){return i(o(e))}},2495:(e,t,r)=>{var i=r(1919);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},8513:(e,t,r)=>{var i=r(2495),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},9306:(e,t,r)=>{var i=r(6325),o=Object;e.exports=function(e){return o(i(e))}},3685:(e,t,r)=>{var i=r(5767),o=r(6120),s=r(2575),a=r(3219),u=r(7679),l=r(1664),c=TypeError,f=l("toPrimitive");e.exports=function(e,t){if(!o(e)||s(e))return e;var r,l=a(e,f);if(l){if(void 0===t&&(t="default"),!o(r=i(l,e,t))||s(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},5537:(e,t,r)=>{var i=r(3685),o=r(2575);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},8963:(e,t,r)=>{var i=r(3204),o=r(3284),s=r(8918),a=r(6120),u=i("Set"),l=function(e){return a(e)&&"number"==typeof e.size&&o(e.has)&&o(e.keys)};e.exports=function(e){return l(e)?e:s(e)?new u(e):e}},4419:(e,t,r)=>{var i=r(1664)("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},730:(e,t,r)=>{var i=r(904),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},2903:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4925:(e,t,r)=>{var i=r(8681),o=0,s=Math.random(),a=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+s,36)}},6591:(e,t,r)=>{var i=r(7532);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9836:(e,t,r)=>{var i=r(783),o=r(6554);e.exports=i&&o(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2125:(e,t,r)=>{var i=r(6234),o=r(3284),s=i.WeakMap;e.exports=o(s)&&/native code/.test(String(s))},1664:(e,t,r)=>{var i=r(6234),o=r(1653),s=r(2624),a=r(4925),u=r(7532),l=r(6591),c=i.Symbol,f=o("wks"),h=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return s(f,e)||(f[e]=u&&s(c,e)?c[e]:h("Symbol."+e)),f[e]}},7069:(e,t,r)=>{"use strict";var i=r(3204),o=r(2624),s=r(3853),a=r(2145),u=r(239),l=r(2578),c=r(3572),f=r(6302),h=r(5226),p=r(7771),d=r(4809),g=r(783),y=r(5419);e.exports=function(e,t,r,m){var b="stackTraceLimit",v=m?2:1,w=e.split("."),_=w[w.length-1],S=i.apply(null,w);if(S){var x=S.prototype;if(!y&&o(x,"cause")&&delete x.cause,!r)return S;var E=i("Error"),O=t(function(e,t){var r=h(m?t:e,void 0),i=m?new S(e):new S;return void 0!==r&&s(i,"message",r),d(i,O,i.stack,2),this&&a(x,this)&&f(i,this,O),arguments.length>v&&p(i,arguments[v]),i});if(O.prototype=x,"Error"!==_?u?u(O,E):l(O,E,{name:!0}):g&&b in S&&(c(O,S,b),c(O,S,"prepareStackTrace")),l(O,S),!y)try{x.name!==_&&s(x,"name",_),x.constructor=O}catch(e){}return O}}},7178:(e,t,r)=>{"use strict";var i=r(5200),o=r(2145),s=r(4857),a=r(239),u=r(2578),l=r(2383),c=r(3853),f=r(9697),h=r(7771),p=r(4809),d=r(4302),g=r(5226),y=r(1664)("toStringTag"),m=Error,b=[].push,v=function(e,t){var r,i=o(w,this);a?r=a(m(),i?s(this):w):c(r=i?this:l(w),y,"Error"),void 0!==t&&c(r,"message",g(t)),p(r,v,r.stack,1),arguments.length>2&&h(r,arguments[2]);var u=[];return d(e,b,{that:u}),c(r,"errors",u),r};a?a(v,m):u(v,m,{name:!0});var w=v.prototype=l(m.prototype,{constructor:f(1,v),message:f(1,""),name:f(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:v})},1742:(e,t,r)=>{r(7178)},8330:(e,t,r)=>{"use strict";var i=r(5200),o=r(9306),s=r(4676),a=r(6941),u=r(1221),l=r(6554)(function(){return 4294967297!==[].push.call({length:4294967296},1)}),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}};i({target:"Array",proto:!0,arity:1,forced:l||!c()},{push:function(e){var t=o(this),r=s(t),i=arguments.length;u(r+i);for(var l=0;l{var i=r(5200),o=r(6234),s=r(1322),a=r(7069),u="WebAssembly",l=o[u],c=7!==Error("e",{cause:7}).cause,f=function(e,t){var r={};r[e]=a(e,t,c),i({global:!0,constructor:!0,arity:1,forced:c},r)},h=function(e,t){if(l&&l[e]){var r={};r[e]=a(u+"."+e,t,c),i({target:u,stat:!0,constructor:!0,arity:1,forced:c},r)}};f("Error",function(e){return function(t){return s(e,this,arguments)}}),f("EvalError",function(e){return function(t){return s(e,this,arguments)}}),f("RangeError",function(e){return function(t){return s(e,this,arguments)}}),f("ReferenceError",function(e){return function(t){return s(e,this,arguments)}}),f("SyntaxError",function(e){return function(t){return s(e,this,arguments)}}),f("TypeError",function(e){return function(t){return s(e,this,arguments)}}),f("URIError",function(e){return function(t){return s(e,this,arguments)}}),h("CompileError",function(e){return function(t){return s(e,this,arguments)}}),h("LinkError",function(e){return function(t){return s(e,this,arguments)}}),h("RuntimeError",function(e){return function(t){return s(e,this,arguments)}})},7114:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(9198),u=r(2617),l=r(4302);i({target:"Promise",stat:!0,forced:r(8352)},{allSettled:function(e){var t=this,r=a.f(t),i=r.resolve,c=r.reject,f=u(function(){var r=s(t.resolve),a=[],u=0,c=1;l(e,function(e){var s=u++,l=!1;c++,o(r,t,e).then(function(e){!l&&(l=!0,a[s]={status:"fulfilled",value:e},--c||i(a))},function(e){!l&&(l=!0,a[s]={status:"rejected",reason:e},--c||i(a))})}),--c||i(a)});return f.error&&c(f.value),r.promise}})},863:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(3204),u=r(9198),l=r(2617),c=r(4302),f=r(8352),h="No one promise resolved";i({target:"Promise",stat:!0,forced:f},{any:function(e){var t=this,r=a("AggregateError"),i=u.f(t),f=i.resolve,p=i.reject,d=l(function(){var i=s(t.resolve),a=[],u=0,l=1,d=!1;c(e,function(e){var s=u++,c=!1;l++,o(i,t,e).then(function(e){c||d||(d=!0,f(e))},function(e){!c&&!d&&(c=!0,a[s]=e,--l||p(new r(a,h)))})}),--l||p(new r(a,h))});return d.error&&p(d.value),i.promise}})},8256:(e,t,r)=>{var i=r(6234),o=r(783),s=r(1701),a=r(8532),u=r(6554),l=i.RegExp,c=l.prototype;o&&u(function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,i){Object.defineProperty(t,e,{get:function(){return r+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==i||r!==i})&&s(c,"flags",{configurable:!0,get:a})},2931:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(7397),u=r(6120),l=r(4058),c=r(3519),f=r(7901),h=r(9641),p=c(function(e){var t=this,r=t.iterator,i=t.predicate;return new e(function(s,l){var c=function(e){t.done=!0,l(e)},p=function(e){h(r,c,e,c)},d=function(){try{e.resolve(a(o(t.next,r))).then(function(r){try{if(a(r).done)t.done=!0,s(f(void 0,!0));else{var o=r.value;try{var l=i(o,t.counter++),h=function(e){e?s(f(o,!1)):d()};u(l)?e.resolve(l).then(h,p):h(l)}catch(e){p(e)}}}catch(e){c(e)}},c)}catch(e){c(e)}};d()})});i({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return a(this),s(e),new p(l(this),{predicate:e})}})},6803:(e,t,r)=>{"use strict";var i=r(5200),o=r(7797).find;i({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return o(this,e)}})},5027:(e,t,r)=>{"use strict";var i=r(5200),o=r(7797).forEach;i({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return o(this,e)}})},8386:(e,t,r)=>{r(5200)({target:"AsyncIterator",proto:!0,real:!0},{map:r(4849)})},3183:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(7397),u=r(6120),l=r(3204),c=r(4058),f=r(9641),h=l("Promise"),p=TypeError;i({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=c(this),r=t.iterator,i=t.next,l=arguments.length<2,d=l?void 0:arguments[1],g=0;return new h(function(t,s){var c=function(e){f(r,s,e,s)},y=function(){try{h.resolve(a(o(i,r))).then(function(r){try{if(a(r).done)l?s(p("Reduce of empty iterator with no initial value")):t(d);else{var i=r.value;if(l)l=!1,d=i,y();else try{var o=e(d,i,g),f=function(e){d=e,y()};u(o)?h.resolve(o).then(f,c):f(o)}catch(e){c(e)}}g++}catch(e){s(e)}},s)}catch(e){s(e)}};y()})}})},1210:(e,t,r)=>{"use strict";var i=r(5200),o=r(7797).some;i({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return o(this,e)}})},5162:(e,t,r)=>{"use strict";var i=r(5200),o=r(6234),s=r(348),a=r(3284),u=r(3853),l=r(6554),c=r(2624),f=r(1664),h=r(935).IteratorPrototype,p=r(5419),d=f("toStringTag"),g=o.Iterator,y=p||!a(g)||g.prototype!==h||!l(function(){g({})}),m=function(){s(this,h)};c(h,d)||u(h,d,"Iterator"),(y||!c(h,"constructor")||h.constructor===Object)&&u(h,"constructor",m),m.prototype=h,i({global:!0,constructor:!0,forced:y},{Iterator:m})},9515:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(5416),a=r(7397),u=r(4058),l=r(8694),c=r(6037),f=l(function(){for(var e,t,r=this.iterator,i=this.predicate,s=this.next;;){if(e=a(o(s,r)),this.done=!!e.done)return;if(t=e.value,c(r,i,[t,this.counter++],!0))return t}});i({target:"Iterator",proto:!0,real:!0},{filter:function(e){return a(this),s(e),new f(u(this),{predicate:e})}})},4519:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058);i({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},8635:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058);i({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),s(e);var t=u(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},9368:(e,t,r)=>{r(5200)({target:"Iterator",proto:!0,real:!0},{map:r(2499)})},4334:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058),l=TypeError;i({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),s(e);var t=u(this),r=arguments.length<2,i=r?void 0:arguments[1],c=0;if(o(t,function(t){r?(r=!1,i=t):i=e(i,t,c),c++},{IS_RECORD:!0}),r)throw l("Reduce of empty iterator with no initial value");return i}})},8019:(e,t,r)=>{"use strict";var i=r(5200),o=r(4302),s=r(5416),a=r(7397),u=r(4058);i({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),s(e);var t=u(this),r=0;return o(t,function(t,i){if(e(t,r++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2071:(e,t,r)=>{"use strict";var i=r(5200),o=r(783),s=r(6234),a=r(3204),u=r(8681),l=r(5767),c=r(3284),f=r(6120),h=r(8629),p=r(2624),d=r(730),g=r(4676),y=r(7371),m=r(6554),b=r(2610),v=r(7532),w=s.JSON,_=s.Number,S=s.SyntaxError,x=w&&w.parse,E=a("Object","keys"),O=Object.getOwnPropertyDescriptor,j=u("".charAt),k=u("".slice),T=u(/./.exec),P=u([].push),R=/^\d$/,M=/^[1-9]$/,A=/^(-|\d)$/,L=/^[\t\n\r ]$/,N=0,C=1,I=function(e,t){e=d(e);var r=new q(e,0,""),i=r.parse(),o=i.value,s=r.skip(L,i.end);if(s{"use strict";var i=r(5200),o=r(587),s=r(17).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5200),o=r(587),s=r(17),a=s.get,u=s.has,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,i,s=o(this);return u(s,e)?(r=a(s,e),"update"in t&&(r=t.update(r,e,s),l(s,e,r)),r):(i=t.insert(e,s),l(s,e,i),i)}})},8034:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,i){if(!r(e,i,t))return!1},!0)}})},2946:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(17),u=r(6753),l=a.Map,c=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e,o){r(e,o,t)&&c(i,o,e)}),i}})},5217:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{key:i}},!0);return i&&i.key}})},3560:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e,i){if(r(e,i,t))return{value:e}},!0);return i&&i.value}})},3385:(e,t,r)=>{"use strict";var i=r(5200),o=r(7573),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(s(this),function(t){if(o(t,e))return!0},!0)}})},4603:(e,t,r)=>{"use strict";var i=r(5200),o=r(587),s=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=s(o(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},4783:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(17),u=r(6753),l=a.Map,c=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e,o){c(i,r(e,o,t),e)}),i}})},6399:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(17),u=r(6753),l=a.Map,c=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e,o){c(i,o,r(e,o,t))}),i}})},5519:(e,t,r)=>{"use strict";var i=r(5200),o=r(587),s=r(4302),a=r(17).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=o(this),r=arguments.length,i=0;i{"use strict";var i=r(5200),o=r(5416),s=r(587),a=r(6753),u=TypeError;i({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o,s){r?(r=!1,i=o):i=e(i,o,s,t)}),r)throw u("Reduce of empty map with no initial value");return i}})},3682:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(587),a=r(6753);i({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,i){if(r(e,i,t))return!0},!0)}})},9022:(e,t,r)=>{"use strict";var i=r(5200),o=r(5416),s=r(587),a=r(17),u=TypeError,l=a.get,c=a.has,f=a.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=s(this),i=arguments.length;o(t);var a=c(r,e);if(!a&&i<3)throw u("Updating absent value");var h=a?l(r,e):o(i>2?arguments[2]:void 0)(e,r);return f(r,e,t(h,e,r)),r}})},8817:(e,t,r)=>{"use strict";var i=r(5200),o=r(591),s=r(3228).add;i({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=o(this),t=0,r=arguments.length;t{"use strict";var i=r(5200),o=r(591),s=r(3228).remove;i({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=o(this),r=!0,i=0,a=arguments.length;i{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(6680);i({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return o(a,this,s(e))}})},9921:(e,t,r)=>{var i=r(5200),o=r(6680);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("difference")},{difference:o})},7773:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(8853);i({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},6431:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(3228),u=r(8853),l=a.Set,c=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e){r(e,e,t)&&c(i,e)}),i}})},6965:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(8853);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return i&&i.value}})},7725:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(6683);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return o(a,this,s(e))}})},9614:(e,t,r)=>{var i=r(5200),o=r(6554),s=r(6683);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("intersection")||o(function(){return"3,2"!=Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},304:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(3943);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return o(a,this,s(e))}})},9386:(e,t,r)=>{var i=r(5200),o=r(3943);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("isDisjointFrom")},{isDisjointFrom:o})},9364:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(3985);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return o(a,this,s(e))}})},1807:(e,t,r)=>{var i=r(5200),o=r(3985);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("isSubsetOf")},{isSubsetOf:o})},9807:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(9735);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return o(a,this,s(e))}})},4025:(e,t,r)=>{var i=r(5200),o=r(9735);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("isSupersetOf")},{isSupersetOf:o})},9929:(e,t,r)=>{"use strict";var i=r(5200),o=r(8681),s=r(591),a=r(8853),u=r(730),l=o([].join),c=o([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),r=void 0===e?",":u(e),i=[];return a(t,function(e){c(i,e)}),l(i,r)}})},9659:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(3228),u=r(8853),l=a.Set,c=a.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0),i=new l;return u(t,function(e){c(i,r(e,e,t))}),i}})},6258:(e,t,r)=>{"use strict";var i=r(5200),o=r(5416),s=r(591),a=r(8853),u=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),a(t,function(o){r?(r=!1,i=o):i=e(i,o,o,t)}),r)throw u("Reduce of empty set with no initial value");return i}})},9345:(e,t,r)=>{"use strict";var i=r(5200),o=r(9219),s=r(591),a=r(8853);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),r=o(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},522:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(7376);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return o(a,this,s(e))}})},3357:(e,t,r)=>{var i=r(5200),o=r(7376);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("symmetricDifference")},{symmetricDifference:o})},192:(e,t,r)=>{"use strict";var i=r(5200),o=r(5767),s=r(8963),a=r(2218);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return o(a,this,s(e))}})},8976:(e,t,r)=>{var i=r(5200),o=r(2218);i({target:"Set",proto:!0,real:!0,forced:!r(7330)("union")},{union:o})},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},2181:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},3477:e=>{"use strict";e.exports=require("querystring")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},6144:e=>{"use strict";e.exports=require("vm")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}(r(6224));let o=process.env||{},s=process.argv||[],a="NO_COLOR"in o||s.includes("--no-color"),u="FORCE_COLOR"in o||s.includes("--color"),l="win32"===process.platform,c=i&&i.isatty&&i.isatty(1)&&o.TERM&&"dumb"!==o.TERM,f="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o),h=!a&&(u||l||c||f),p=(e,t,r,i,o=t.substring(0,e)+i,s=t.substring(e+r.length),a=s.indexOf(r))=>o+(a<0?s:p(a,s,r,i)),d=(e,t,r,i,o)=>e<0?r+t+i:r+p(e,t,i,o)+i,g=(e,t,r=e,i=e.length+1)=>o=>o||!(""===o||void 0===o)?d((""+o).indexOf(t,i),o,e,t,r):"",y=(e,t,r)=>g(`\x1b[${e}m`,`\x1b[${t}m`,r),m={reset:y(0,0),bold:y(1,22,"\x1b[22m\x1b[1m"),dim:y(2,22,"\x1b[22m\x1b[2m"),italic:y(3,23),underline:y(4,24),inverse:y(7,27),hidden:y(8,28),strikethrough:y(9,29),black:y(30,39),red:y(31,39),green:y(32,39),yellow:y(33,39),blue:y(34,39),magenta:y(35,39),cyan:y(36,39),white:y(37,39),gray:y(90,39),bgBlack:y(40,49),bgRed:y(41,49),bgGreen:y(42,49),bgYellow:y(43,49),bgBlue:y(44,49),bgMagenta:y(45,49),bgCyan:y(46,49),bgWhite:y(47,49),blackBright:y(90,39),redBright:y(91,39),greenBright:y(92,39),yellowBright:y(93,39),blueBright:y(94,39),magentaBright:y(95,39),cyanBright:y(96,39),whiteBright:y(97,39),bgBlackBright:y(100,49),bgRedBright:y(101,49),bgGreenBright:y(102,49),bgYellowBright:y(103,49),bgBlueBright:y(104,49),bgMagentaBright:y(105,49),bgCyanBright:y(106,49),bgWhiteBright:y(107,49)},b=e=>e,v=({useColor:e=h}={})=>e?m:Object.keys(m).reduce((e,t)=>({...e,[t]:b}),{}),{reset:w,bold:_,dim:S,italic:x,underline:E,inverse:O,hidden:j,strikethrough:k,black:T,red:P,green:R,yellow:M,blue:A,magenta:L,cyan:N,white:C,gray:I,bgBlack:D,bgRed:$,bgGreen:B,bgYellow:q,bgBlue:U,bgMagenta:F,bgCyan:W,bgWhite:G,blackBright:H,redBright:z,greenBright:J,yellowBright:V,blueBright:K,magentaBright:Y,cyanBright:Q,whiteBright:X,bgBlackBright:Z,bgRedBright:ee,bgGreenBright:et,bgYellowBright:er,bgBlueBright:en,bgMagentaBright:ei,bgCyanBright:eo,bgWhiteBright:es}=v();t.bgBlack=D,t.bgBlackBright=Z,t.bgBlue=U,t.bgBlueBright=en,t.bgCyan=W,t.bgCyanBright=eo,t.bgGreen=B,t.bgGreenBright=et,t.bgMagenta=F,t.bgMagentaBright=ei,t.bgRed=$,t.bgRedBright=ee,t.bgWhite=G,t.bgWhiteBright=es,t.bgYellow=q,t.bgYellowBright=er,t.black=T,t.blackBright=H,t.blue=A,t.blueBright=K,t.bold=_,t.createColors=v,t.cyan=N,t.cyanBright=Q,t.dim=S,t.gray=I,t.green=R,t.greenBright=J,t.hidden=j,t.inverse=O,t.isColorSupported=h,t.italic=x,t.magenta=L,t.magentaBright=Y,t.red=P,t.redBright=z,t.reset=w,t.strikethrough=k,t.underline=E,t.white=C,t.whiteBright=X,t.yellow=M,t.yellowBright=V},1686:(e,t,r)=>{"use strict";let{isColorSupported:i}=r(799),o=r(1556),{Transform:s}=r(8118),a=r(2306),u=r(9316),l=r(8202),{ERROR_LIKE_KEYS:c,MESSAGE_KEY:f,TIMESTAMP_KEY:h,LEVEL_KEY:p,LEVEL_NAMES:d}=r(484),{isObject:g,prettifyErrorLog:y,prettifyLevel:m,prettifyMessage:b,prettifyMetadata:v,prettifyObject:w,prettifyTime:_,buildSafeSonicBoom:S,filterLog:x}=r(6741),E=e=>{try{return{value:u.parse(e,{protoAction:"remove"})}}catch(e){return{err:e}}},O={colorize:i,crlf:!1,errorLikeObjectKeys:c,errorProps:"",customLevels:null,customColors:null,useOnlyCustomProps:!0,levelFirst:!1,messageKey:f,messageFormat:!1,timestampKey:h,translateTime:!1,useMetadata:!1,outputStream:process.stdout,customPrettifiers:{},hideObject:!1,singleLine:!1};function j(e){let t=Object.assign({},O,e),r=t.crlf?"\r\n":"\n",i=" ",o=t.messageKey,s=t.levelKey,a=t.levelLabel,u=t.minimumLevel,c=t.messageFormat,f=t.timestampKey,h=t.errorLikeObjectKeys,S=t.errorProps.split(","),j="boolean"==typeof t.useOnlyCustomProps?t.useOnlyCustomProps:"true"===t.useOnlyCustomProps,k=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[o]=i.toUpperCase(),e},{default:"USERLVL"}):{},T=t.customLevels?t.customLevels.split(",").reduce((e,t,r)=>{let[i,o=r]=t.split(":");return e[i.toLowerCase()]=o,e},{}):{},P=t.customColors?t.customColors.split(",").reduce((e,r)=>{let[i,o]=r.split(":"),s=j?t.customLevels:void 0!==T[i],a=s?T[i]:d[i],u=void 0!==a?a:i;return e.push([u,o]),e},[]):void 0,R={customLevels:k,customLevelNames:T};j&&!t.customLevels&&(R.customLevels=void 0,R.customLevelNames=void 0);let M=t.customPrettifiers,A=t.ignore?new Set(t.ignore.split(",")):void 0,L=t.hideObject,N=t.singleLine,C=l(t.colorize,P,j);return function(e){let l;if(g(e))l=e;else{let t=E(e);if(t.err||!g(t.value))return e+r;l=t.value}if(u){let e=j?t.customLevels:void 0!==T[u],r=(e?T[u]:d[u])||Number(u),i=l[void 0===s?p:s];if(i0?`${D} ${k}`:k),P&&(D=D.length>0?`${D} ${P}:`:P),!1===D.endsWith(":")&&""!==D&&(D+=":"),O&&(D=D.length>0?`${D} ${O}`:O),D.length>0&&!N&&(D+=r),"Error"===l.type&&l.stack){let e=y({log:l,errorLikeKeys:h,errorProperties:S,ident:i,eol:r});N&&(D+=r),D+=e}else if(!L){let e=[o,s,f].filter(e=>"string"==typeof l[e]||"number"==typeof l[e]),t=w({input:l,skipKeys:e,customPrettifiers:M,errorLikeKeys:h,eol:r,ident:i,singleLine:N,colorizer:C});N&&!/^\s$/.test(t)&&(D+=" "),D+=t}return D}}function k(e={}){let t=j(e);return a(function(r){let i;let a=new s({objectMode:!0,autoDestroy:!0,transform(e,r,i){let o=t(e);i(null,o)}});return i="object"==typeof e.destination&&"function"==typeof e.destination.write?e.destination:S({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync}),r.on("unknown",function(e){i.write(e+"\n")}),o(r,a,i),a},{parse:"lines"})}e.exports=k,e.exports.prettyFactory=j,e.exports.colorizerFactory=l,e.exports.default=k},8202:(e,t,r)=>{"use strict";let{LEVELS:i,LEVEL_NAMES:o}=r(484),s={default:e=>e,60:e=>e,50:e=>e,40:e=>e,30:e=>e,20:e=>e,10:e=>e,message:e=>e,greyMessage:e=>e},{createColors:a}=r(799),u=a({useColor:!0}),{white:l,bgRed:c,red:f,yellow:h,green:p,blue:d,gray:g,cyan:y}=u,m={default:l,60:c,50:f,40:h,30:p,20:d,10:g,message:y,greyMessage:g};function b(e){return e.reduce(function(e,[t,r]){return e[t]="function"==typeof u[r]?u[r]:l,e},{default:l,message:y,greyMessage:g})}function v(e){return function(t,r,{customLevels:s,customLevelNames:a}={}){let u=e?s||i:Object.assign({},i,s),l=e?a||o:Object.assign({},o,a),c="default";c=Number.isInteger(+t)?Object.prototype.hasOwnProperty.call(u,t)?t:c:Object.prototype.hasOwnProperty.call(l,t.toLowerCase())?l[t.toLowerCase()]:c;let f=u[c];return Object.prototype.hasOwnProperty.call(r,c)?r[c](f):r.default(f)}}function w(e){let t=v(e),r=function(e,r){return t(e,s,r)};return r.message=s.message,r.greyMessage=s.greyMessage,r}function _(e){let t=v(e),r=function(e,r){return t(e,m,r)};return r.message=m.message,r.greyMessage=m.greyMessage,r}function S(e,t){let r=b(e),i=t?r:Object.assign({},m,r),o=v(t),s=function(e,t){return o(e,i,t)};return s.message=s.message||i.message,s.greyMessage=s.greyMessage||i.greyMessage,s}e.exports=function(e=!1,t,r){return e&&void 0!==t?S(t,r):e?_(r):w(r)}},484:e=>{"use strict";e.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}},6741:(e,t,r)=>{"use strict";let i=r(3268)({circles:!0}),o=r(924),s=r(6755),a=r(2988),{isMainThread:u}=r(1267),l=r(8202)(),{DATE_FORMAT:c,ERROR_LIKE_KEYS:f,MESSAGE_KEY:h,LEVEL_KEY:p,LEVEL_LABEL:d,TIMESTAMP_KEY:g,LOGGER_KEYS:y,LEVELS:m}=r(484);function b(e,t=!1){if(!1===t)return e;let r=v(e);if(!w(r))return e;if(!0===t)return o(r,"UTC:"+c);let i=t.toUpperCase();if("SYS:STANDARD"===i)return o(r,c);let s=i.substr(0,4);return"SYS:"===s||"UTC:"===s?"UTC:"===s?o(r,t):o(r,t.slice(4)):o(r,`UTC:${t}`)}function v(e){let t=new Date(e);return w(t)?t:t=new Date(+e)}function w(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function _(e){return"[object Object]"===Object.prototype.toString.apply(e)}function S({input:e,ident:t=" ",eol:r="\n"}){let i=e.split(/\r?\n/);for(let e=1;e0){let a;let u=y.concat(t,"type","stack");a="*"===s[0]?Object.keys(e).filter(e=>!1===u.includes(e)):s.filter(e=>!1===u.includes(e));for(let t=0;t`),""!==r)return r}function k({input:e,ident:t=" ",eol:r="\n",skipKeys:i=[],customPrettifiers:o={},errorLikeKeys:s=f,excludeLoggerKeys:u=!0,singleLine:c=!1,colorizer:h=l}){let p=[].concat(i);!0===u&&Array.prototype.push.apply(p,y);let d="",{plain:g,errors:m}=Object.entries(e).reduce(({plain:t,errors:r},[i,a])=>{if(!1===p.includes(i)){let u="function"==typeof o[i]?o[i](a,i,e):a;s.includes(i)?r[i]=u:t[i]=u}return{plain:t,errors:r}},{plain:{},errors:{}});return c?(Object.keys(g).length>0&&(d+=h.greyMessage(a(g))),d+=r):Object.entries(g).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);if(void 0===s)return;let u=S({input:s,ident:t,eol:r});d+=`${t}${e}:${u.startsWith(r)?"":" "}${u}${r}`}),Object.entries(m).forEach(([e,i])=>{let s="function"==typeof o[e]?i:a(i,null,2);void 0!==s&&(d+=P({keyName:e,lines:s,eol:r,ident:t}))}),d}function T({log:e,timestampKey:t=g,translateFormat:r,prettifier:i}){let o=null;if(t in e?o=e[t]:"timestamp"in e&&(o=e.timestamp),null===o)return;let s=r?b(o,r):o;return i?i(s):`[${s}]`}function P({keyName:e,lines:t,eol:r,ident:i}){let o="",s=S({input:t,ident:i,eol:r}),a=`${i}${e}: ${s}${r}`.split(r);for(let e=0;e{Object.prototype.hasOwnProperty.call(e,t)&&(e=e[t])}),delete e[i]}function A(e,t){let r=i(e);return t.forEach(e=>{M(r,e)}),r}function L(){}function N(e){let t=new s(e);return t.on("error",function e(r){if("EPIPE"===r.code){t.write=L,t.end=L,t.flushSync=L,t.destroy=L;return}t.removeListener("error",e)}),!e.sync&&u&&C(t),t}function C(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){let t=r(3538);t.register(e,I),e.on("close",function(){t.unregister(e)})}}function I(e,t){e.destroyed||("beforeExit"===t?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}e.exports={isObject:_,prettifyErrorLog:x,prettifyLevel:E,prettifyMessage:O,prettifyMetadata:j,prettifyObject:k,prettifyTime:T,buildSafeSonicBoom:N,filterLog:A},e.exports.internals={formatTime:b,joinLinesWithIndentation:S,prettifyError:P,deleteLogProperty:M,splitIgnoreKey:R,createDate:v,isValidDate:w}},6755:(e,t,r)=>{"use strict";let i=r(7147),o=r(2361),s=r(3837).inherits,a=r(1017),u=r(160);function l(e,t){function r(r,i){if(r){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",r)}):t.emit("error",r);return}t.fd=i,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t._reopening&&(t._writing||!(t._len>t.minLength)||t.destroyed||h(t))}t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;let o=t.append?"a":"w";if(t.sync)try{t.mkdir&&i.mkdirSync(a.dirname(e),{recursive:!0});let s=i.openSync(e,o);r(null,s)}catch(e){throw r(e),e}else t.mkdir?i.mkdir(a.dirname(e),{recursive:!0},t=>{if(t)return r(t);i.open(e,o,r)}):i.open(e,o,r)}function c(e){if(!(this instanceof c))return new c(e);let{fd:t,dest:r,minLength:o,sync:s,append:a=!0,mkdir:d,retryEAGAIN:g}=e||{};if(t=t||r,this._bufs=[],this._len=0,this.fd=-1,this._writing=!1,this._writingBuf="",this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._hwm=Math.max(o||0,16387),this.file=null,this.destroyed=!1,this.minLength=o||0,this.sync=s||!1,this.append=a||!1,this.retryEAGAIN=g||(()=>!0),this.mkdir=d||!1,"number"==typeof t)this.fd=t,process.nextTick(()=>this.emit("ready"));else if("string"==typeof t)l(t,this);else throw Error("SonicBoom supports only file descriptors and files");if(this.minLength>=16777216)throw Error("minLength should be smaller than MAX_WRITE (16777216)");this.release=(e,t)=>{if(e){if("EAGAIN"===e.code&&this.retryEAGAIN(e,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync)try{u(100),this.release(void 0,0)}catch(e){this.release(e)}else setTimeout(()=>{i.write(this.fd,this._writingBuf,"utf8",this.release)},100)}else this._writing=!1,this.emit("error",e);return}if(this._len-=t,this._writingBuf=this._writingBuf.slice(t),this._writingBuf.length){if(!this.sync){i.write(this.fd,this._writingBuf,"utf8",this.release);return}try{do{let e=i.writeSync(this.fd,this._writingBuf,"utf8");this._len-=e,this._writingBuf=this._writingBuf.slice(e)}while(this._writingBuf)}catch(e){this.release(e);return}}let r=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):r>this.minLength?h(this):this._ending?r>0?h(this):(this._writing=!1,p(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(f,this)):this.emit("drain"))},this.on("newListener",function(e){"drain"===e&&(this._asyncDrainScheduled=!1)})}function f(e){let t=e.listenerCount("drain")>0;t&&(e._asyncDrainScheduled=!1,e.emit("drain"))}function h(e){let t=e.release;if(e._writing=!0,e._writingBuf=e._writingBuf||e._bufs.shift(),e.sync)try{let r=i.writeSync(e.fd,e._writingBuf,"utf8");t(null,r)}catch(e){t(e)}else i.write(e.fd,e._writingBuf,"utf8",t)}function p(e){if(-1===e.fd){e.once("ready",p.bind(null,e));return}i.close(e.fd,t=>{if(t){e.emit("error",t);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}),e.destroyed=!0,e._bufs=[]}s(c,o),c.prototype.write=function(e){if(this.destroyed)throw Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return!this._writing&&t>16777216?r.push(e):0===r.length?r[0]=""+e:r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&h(this),this._len{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&i.close(t,e=>{if(e)return this.emit("error",e)})}),l(e||this.file,this)},c.prototype.end=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}!this._ending&&(this._ending=!0,this._writing||(this._len>0&&this.fd>=0?h(this):p(this)))},c.prototype.flushSync=function(){if(this.destroyed)throw Error("SonicBoom destroyed");if(this.fd<0)throw Error("sonic boom is not ready yet");for(!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");this._bufs.length;){let e=this._bufs[0];try{this._len-=i.writeSync(this.fd,e,"utf8"),this._bufs.shift()}catch(t){if("EAGAIN"!==t.code||!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;u(100)}}},c.prototype.destroy=function(){this.destroyed||p(this)},c.SonicBoom=c,c.default=c,e.exports=c},8002:e=>{"use strict";e.exports=JSON.parse('{"name":"pino","version":"6.14.0","description":"super fast, all natural json logger","main":"pino.js","browser":"./browser.js","files":["pino.js","bin.js","browser.js","pretty.js","usage.txt","test","docs","example.js","lib"],"scripts":{"docs":"docsify serve","browser-test":"airtap --local 8080 test/browser*test.js","lint":"eslint .","test":"npm run lint && tap --100 test/*test.js test/*/*test.js","test-ci":"npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly","cov-ui":"tap --coverage-report=html test/*test.js test/*/*test.js","bench":"node benchmarks/utils/runbench all","bench-basic":"node benchmarks/utils/runbench basic","bench-object":"node benchmarks/utils/runbench object","bench-deep-object":"node benchmarks/utils/runbench deep-object","bench-multi-arg":"node benchmarks/utils/runbench multi-arg","bench-longs-tring":"node benchmarks/utils/runbench long-string","bench-child":"node benchmarks/utils/runbench child","bench-child-child":"node benchmarks/utils/runbench child-child","bench-child-creation":"node benchmarks/utils/runbench child-creation","bench-formatters":"node benchmarks/utils/runbench formatters","update-bench-doc":"node benchmarks/utils/generate-benchmark-doc > docs/benchmarks.md"},"bin":{"pino":"./bin.js"},"precommit":"test","repository":{"type":"git","url":"git+https://github.com/pinojs/pino.git"},"keywords":["fast","logger","stream","json"],"author":"Matteo Collina ","contributors":["David Mark Clements ","James Sumners ","Thomas Watson Steen (https://twitter.com/wa7son)"],"license":"MIT","bugs":{"url":"https://github.com/pinojs/pino/issues"},"homepage":"http://getpino.io","devDependencies":{"airtap":"4.0.3","benchmark":"^2.1.4","bole":"^4.0.0","bunyan":"^1.8.14","docsify-cli":"^4.4.1","eslint":"^7.17.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","execa":"^5.0.0","fastbench":"^1.0.1","flush-write-stream":"^2.0.0","import-fresh":"^3.2.1","log":"^6.0.0","loglevel":"^1.6.7","pino-pretty":"^5.0.0","pre-commit":"^1.2.2","proxyquire":"^2.1.3","pump":"^3.0.0","semver":"^7.0.0","split2":"^3.1.1","steed":"^1.1.3","strip-ansi":"^6.0.0","tap":"^15.0.1","tape":"^5.0.0","through2":"^4.0.0","winston":"^3.3.3"},"dependencies":{"fast-redact":"^3.0.0","fast-safe-stringify":"^2.0.8","process-warning":"^1.0.0","flatstr":"^1.0.12","pino-std-serializers":"^3.1.0","quick-format-unescaped":"^4.0.3","sonic-boom":"^1.0.2"}}')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"@unblockneteasemusic/server","version":"0.27.2-patch.2","description":"Revive unavailable songs for Netease Cloud Music","main":"src/provider/match.js","bin":{"unblockneteasemusic":"./precompiled/app.js"},"engines":{"node":">= 12"},"scripts":{"start:dev":"cross-env LOG_LEVEL=debug node src/app.js -e https://music.163.com","start":"cross-env node src/app.js -e https://music.163.com","build":"webpack","pkg":"pkg . --out-path=dist/","test":"jest"},"pkg":{"assets":["server.key","server.crt"],"targets":["node16-linux-arm64","node16-win-arm64","node16-linux-x64","node16-win-x64"],"outputPath":"dist"},"repository":{"type":"git","url":"https://github.com/UnblockNeteaseMusic/server.git"},"author":"nondanee, 1715173329, pan93412","license":"LGPL-3.0-only","dependencies":{"node-windows":"^1.0.0-beta.8","pino":"6.14.0","pino-pretty":"^7.6.1"},"devDependencies":{"@swc/core":"^1.3.69","@types/node":"^20.4.2","@types/pino":"6.3.12","@yarnpkg/sdks":"^3.0.0-rc.48","browserslist":"^4.21.9","core-js":"^3.31.1","cross-env":"^7.0.3","jest":"^29.6.1","pkg":"^5.8.1","prettier":"^3.0.0","swc-loader":"^0.2.3","terser-webpack-plugin":"^5.3.9","typescript":"^5.1.6","webpack":"^5.88.1","webpack-cli":"^5.1.4"},"resolutions":{"cacheable-request":"^10.2.7","minimatch":"^3.0.5","minimist":"^1.2.6","semver":"^7.5.2"},"publishConfig":{"access":"public"},"packageManager":"yarn@3.6.1"}')}},t={};function r(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,r),s.exports}var i={};(()=>{"use strict";var e=i;r(8386),r(9368),r(1210),r(8019),r(5162),r(3183),r(4334),r(8330),r(5027),r(8635);let t=r(4147),o=r(5796).program({name:t.name.replace(/@.+\//,""),version:t.version}).option(["-v","--version"],{action:"version"}).option(["-p","--port"],{metavar:"http[:https]",help:"specify server port"}).option(["-a","--address"],{metavar:"address",help:"specify server host"}).option(["-u","--proxy-url"],{metavar:"url",help:"request through upstream proxy"}).option(["-f","--force-host"],{metavar:"host",help:"force the netease server ip"}).option(["-o","--match-order"],{metavar:"source",nargs:"+",help:"set priority of sources"}).option(["-t","--token"],{metavar:"token",help:"set up proxy authentication"}).option(["-e","--endpoint"],{metavar:"url",help:"replace virtual endpoint with public host"}).option(["-s","--strict"],{action:"store_true",help:"enable proxy limitation"}).option(["-c","--cnrelay"],{metavar:"cnrelay",help:"Mainland China relay to get music url"}).option(["-h","--help"],{action:"help"}).parse(process.argv);global.address=o.address,o.port=(o.port||"8080:8081").split(":").map(e=>parseInt(e));let s=e=>isNaN(e)||e<1||e>65535;if(o.port.some(s)&&(console.log("Port must be a number higher than 0 and lower than 65535."),process.exit(1)),o.proxyUrl&&!/http(s?):\/\/.+:\d+/.test(o.proxyUrl)&&(console.log("Please check the proxy url."),process.exit(1)),o.endpoint?"-"===o.endpoint?o.endpoint="":/http(s?):\/\/.+/.test(o.endpoint)||(console.log("Please check the endpoint host."),process.exit(1)):o.endpoint="https://music.163.com",o.forceHost&&0===r(1808).isIP(o.forceHost)&&(console.log("Please check the server host."),process.exit(1)),o.matchOrder){let e=Object.keys(r(1784).PROVIDERS),t=o.matchOrder;t.some((e,r)=>r!=t.indexOf(e))?(console.log("Please check the duplication in match order."),process.exit(1)):t.some(t=>!e.includes(t))&&(console.log("Please check the availability of match sources."),process.exit(1)),global.source=t}o.token&&!/\S+:\S+/.test(o.token)&&(console.log("Please check the authentication token."),process.exit(1));let{logScope:a}=r(7691),u=r(7310).parse,l=r(403),c=r(8837),{CacheStorageGroup:f}=r(9220),h=a("app"),p=Array.from(l.target.host);global.port=o.port,global.proxy=o.proxyUrl?u(o.proxyUrl):null,global.hosts=p.reduce((e,t)=>Object.assign(e,{[t]:o.forceHost}),{}),c.whitelist=["://[\\w.]*music\\.126\\.net","://[\\w.]*vod\\.126\\.net","://acstatic-dun.126.net","://[\\w.]*\\.netease.com","://[\\w.]*\\.163yun.com"],global.cnrelay=o.cnrelay,o.strict&&c.blacklist.push(".*"),c.authentication=o.token||null,global.endpoint=o.endpoint,o.endpoint&&c.whitelist.push(escape(o.endpoint));let d=e=>new Promise((t,i)=>r(9523).lookup(e,{all:!0},(e,r)=>e?i(e):t(r.map(e=>e.address)))),g=e=>r(5262)("POST","http://music.httpdns.c.163.com/d",{},e).then(e=>e.json()).then(e=>e.dns.reduce((e,t)=>e.concat(t.ips),[])),y=e=>r(5262)("GET","http://httpdns.n.netease.com/httpdns/v2/d?domain="+e).then(e=>e.json()).then(e=>Object.keys(e.data).map(t=>e.data[t]).reduce((e,t)=>e.concat(t.ip||[]),[])),m="true"===process.env.ENABLE_HTTPDNS?[g,y]:[],b=f.getInstance();setInterval(()=>{b.cleanup()},9e5),Promise.all(m.map(e=>e(p.join(","))).concat(p.map(d))).then(e=>{let{host:t}=l.target;e.forEach(e=>e.forEach(t.add,t)),c.whitelist=c.whitelist.concat(Array.from(t).map(escape));let r=e=>h.info(`${["HTTP","HTTPS"][e]} Server running @ http://${address||"0.0.0.0"}:${port[e]}`);port[0]&&c.http.listen(port[0],address).once("listening",()=>r(0)),port[1]&&c.https.listen(port[1],address).once("listening",()=>r(1)),cnrelay&&h.info(`CNRelay: ${cnrelay}`)}).catch(e=>{console.log(e),process.exit(1)})})()})(); \ No newline at end of file diff --git a/precompiled/bridge.js b/precompiled/bridge.js index f4b893b82a..f4004deb35 100644 --- a/precompiled/bridge.js +++ b/precompiled/bridge.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -(()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8109),r(4608),r(8034),r(2946),r(3560),r(5217),r(3385),r(4603),r(4783),r(6399),r(5519),r(6931),r(3682),r(9022),r(5027),r(8635),r(5162),r(8817),r(8417),r(7099),r(9921),r(7773),r(6431),r(6965),r(7725),r(9614),r(304),r(9386),r(9364),r(1807),r(9807),r(4025),r(9929),r(9659),r(6258),r(9345),r(522),r(3357),r(192),r(8976);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let l=await t();return this.cacheMap.set(e,{data:l,expireAt:new Date(r||this.WillExpireAt)}),l}}class l{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let c=l.getInstance();function f(e){let t=new u(e);return c.cacheStorages.add(t),t}e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:l,getManagedCacheStorage:f}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";class s extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}}e.exports={CancelRequest:s,ON_CANCEL:o}},1784:(e,t,r)=>{"use strict";let i=["kugou","kuwo","migu","bilibili","ytdlp"],o={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),ytdownload:r(9588),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:i,PROVIDERS:o}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",l=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},c=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>c(e,a),decrypt:e=>l(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,l=i.createHash("md5").update(u).digest("hex"),c=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${l}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(c)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>c(e,u),decrypt:e=>l(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=(e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=Buffer.concat(Array(a).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:u.slice(0,s),iv:u.slice(s,s+o)}},o=Buffer.from(i.randomBytes(32).toString("hex")),a=i.randomBytes(8),u=r(o,a,256,16),l=i.createCipheriv("aes-256-cbc",u.key,u.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),a,l.update(Buffer.from(t)),l.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},o).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}e.exports=i},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}e.exports=i},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}e.exports=i},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}e.exports=i},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}e.exports=i},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}e.exports=i},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(5027),r(8635);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),l=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),c=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),d=o(64).map(e=>s(2,e));d[d.length-1]=d[d.length-1].multiply(-1);let p=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),y=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),g=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(d[e[t].low]).equals(0)||(s=s.or(d[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(l,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let l=i(0);f=i(s[1]),f=(f=b(u,64,f)).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{l=l.shiftLeft(4).or(m[e][r[e]])}),f=b(p,32,l),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(c,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(y,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(g,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let l=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{l[t]=i(e[r+8*t]).shiftLeft(8*r).or(l[t])})});let c=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{c[e]=v(u,l[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(c[a]=v(u,h));let d=o(8*c.length).map(()=>0),p=0;return c.forEach(e=>{o(8).forEach(t=>{d[p]=e.shiftRight(8*t).and(255).low,p+=1})}),Buffer.from(d)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0),E=e=>_(e,S,1),O=e=>x(Buffer.from(e)).toString("base64");e.exports={encrypt:x,decrypt:E,encryptQuery:O}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",l=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:u,ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));function c(e){return l.child({scope:e})}e.exports={logger:l,logScope:c}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),l=r(5262),c=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return l("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(c),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return l("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},d=s("provider/bilibili"),p=e=>d.cache(e,()=>f(e)).then(h);e.exports={check:p,track:h}},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2071);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},c=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=c(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,l).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},d=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,l).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},p=u("provider/joox"),y=e=>p.cache(e,()=>h(e)).then(d);e.exports={check:y,track:d}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),c=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(l),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),d=u("provider/kugou"),p=e=>d.cache(e,()=>c(e)).then(h);e.exports={check:p,search:c}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.musicrid.split("_").pop(),name:e.name,duration:1e3*e.duration,album:{id:e.albumid,name:e.album},artists:e.artist.split("&").map((t,r)=>({id:r?null:e.artistid,name:t}))}),c=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," ")),r=`http://www.kuwo.cn/api/www/search/searchMusicBykeyWord?key=${t}&pn=1&rn=30`,i=s.random.hex(32).toUpperCase();return a("GET",r,{referer:`http://www.kuwo.cn/search/list?key=${t}`,cross:s.md5.digest(i),cookie:`Hm_token=${i}`}).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo"),d=e=>h.cache(e,()=>c(e)).then(f);e.exports={check:d,track:f}},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},l=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},c=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),d=a("provider/migu"),p=e=>d.cache(e,()=>c(e)).then(h);e.exports={check:p,track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="http://76.76.21.21/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2),r={Host:"music.163-my-beloved.com"};return o("GET",t,r).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd"),l=e=>u.cache(e,()=>a(e));e.exports={check:l}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},l=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),c=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl,o={range:"bytes=0-8191","accept-encoding":"identity"};return s("GET",i,o).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),d=a("provider/qq"),p=e=>d.cache(e,()=>c(e)).then(h);e.exports={check:p,track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function d(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let p=async e=>{let{id:t}=await d(l(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(l(c(e)));return t},g=i("youtube-dl"),m=e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:y}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(2071),r(6803),r(4519);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,l=process.env.YOUTUBE_KEY||null,c=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${l}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},d=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>c(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})},p=e=>a.cache(e,()=>l?f(e):h(e)).then(d);e.exports={check:p,track:d}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function d(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let p=async e=>{let{id:t}=await d(l(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(l(c(e)));return t},g=i("yt-dlp"),m=e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:y}},9588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=void 0,a=process.env.YOUTUBE_KEY||null,u=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${a}`;return i("GET",t,{accept:"application/json"},null,s).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},l=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[0];return r?r.videoRenderer.videoId:Promise.reject()})},c=e=>{let t=`https://www.yt-download.org/api/button/mp3/${e}`,r=/]*href=["']([^"']*)["']/;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{var t=e.match(r);return t?t[1]:Promise.reject()})},f=o("provider/yt-download"),h=e=>f.cache(e,()=>a?u(e):l(e)).then(c);e.exports={check:h,track:c}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8330),r(2071);let i=r(9796),o=r(2181),s=r(5687),a=r(2188),u=r(4113),{logScope:l}=r(7691),c=r(7310).parse,f=r(7310).format,h=l("request"),d=e=>(global.hosts||{})[e]||e,p=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,y=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=d(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?d(t.hostname)+":"+(t.port||443):"http://"+d(t.hostname)+t.path):(o.hostname=d(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},g=(e,t,r,i,o,l)=>{let d=c(t),w=r||{},_=y(e,d,{host:d.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,c)=>{var y;h.debug(`Start requesting ${t}`);let g=p(d,o)(_),m=function(){g.destroy(new u(f(d)))};null==l||l.on(a,m),null!==(y=null==l?void 0:l.cancelled)&&void 0!==y&&y&&m(),g.setTimeout(1e4,()=>{h.warn({url:f(d)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:d.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>c(e)).end(i)}).on("error",e=>c(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==l?void 0:l.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(d)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=d.resolve(t.headers.location||d.href);return h.debug(`Redirect to ${r}`),delete w.host,g(e,r,w,i,o)}return Object.assign(t,{url:d,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));g.read=m,g.create=p,g.translate=d,g.configure=y,e.exports=g},7581:(e,t,r)=>{"use strict";let i=r(2081),{logScope:o}=r(7691),s=r(3942),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,l=0,c=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:c.slice(0,u),stderr:f.slice(0,l)}))}),h.stdout.on("data",e=>{u+=e.copy(c,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),l+=t.copy(f,l)})})}e.exports={spawnStdout:u}},160:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let r=new Int32Array(new SharedArrayBuffer(4));function t(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(r,0,0,Number(e))}e.exports=t}else{function r(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}e.exports=r}},924:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,l,c=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==c.length||"string"!==g(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},j=function(){return p(e)},k={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return j()},WW:function(){return h(j())},N:function(){return y(e)}};return t.replace(a,function(e){return e in k?k[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(8118),o=r(5546),s=r(1828),a=r(6151),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),l=function(e,t){e._corked?e.once("uncork",t):t()},c=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?c(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(e,t){return!e||e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):void(e.end(),t())},d=function(){},p=function(e){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},y=function(e,t,r){if(!(this instanceof y))return new y(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(y,i.Duplex),y.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new y(e,t,r)},y.prototype.cork=function(){1==++this._corked&&this.emit("cork")},y.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},y.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},y.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),i=function(){t._forward()},s=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:p(e),this._readable2.on("readable",i),this._readable2.on("end",s),this._unread=function(){t._readable2.removeListener("readable",i),t._readable2.removeListener("end",s),r()},this._forward()},y.prototype._read=function(){this._drained=!0,this._forward()},y.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},y.prototype.destroy=function(e,t){if(t||(t=d),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},y.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},y.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return l(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},y.prototype._finish=function(e){var t=this;this.emit("preend"),l(this,function(){h(t._forwardEnd&&t._writable,function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),l(t,e)})})},y.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=y},5546:(e,t,r)=>{var i=r(5962),o=function(){},s=function(e){return e.setHeader&&"function"==typeof e.abort},a=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},u=function(e,t,r){if("function"==typeof t)return u(e,null,t);t||(t={}),r=i(r||o);var l=e._writableState,c=e._readableState,f=t.readable||!1!==t.readable&&e.readable,h=t.writable||!1!==t.writable&&e.writable,d=!1,p=function(){e.writable||y()},y=function(){h=!1,f||r.call(e)},g=function(){f=!1,h||r.call(e)},m=function(t){r.call(e,t?Error("exited with error code: "+t):null)},b=function(t){r.call(e,t)},v=function(){process.nextTick(w)},w=function(){if(!d&&(f&&!(c&&c.ended&&!c.destroyed)||h&&!(l&&l.ended&&!l.destroyed)))return r.call(e,Error("premature close"))},_=function(){e.req.on("finish",y)};return s(e)?(e.on("complete",y),e.on("abort",v),e.req?_():e.on("request",_)):h&&!l&&(e.on("end",p),e.on("close",p)),a(e)&&e.on("exit",m),e.on("end",g),e.on("finish",y),!1!==t.error&&e.on("error",b),e.on("close",v),function(){d=!0,e.removeListener("complete",y),e.removeListener("abort",v),e.removeListener("request",_),e.req&&e.req.removeListener("finish",y),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("exit",m),e.removeListener("end",g),e.removeListener("error",b),e.removeListener("close",v)}};e.exports=u},9775:(e,t,r)=>{"use strict";let i=r(2090),o=r(2224),s=r(4281),a=r(7414),{groupRedact:u,nestedRedact:l}=r(9958),c=r(1166),f=r(5392),h=i(),d=e=>e;function p(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",p="function"==typeof f,y=p&&f.length>1;if(0===t.length)return r||d;h({paths:t,serialize:r,censor:f});let{wildcards:g,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m}),w=!("strict"in e)||e.strict;return s({secret:b,wcLen:m,serialize:r,strict:w,isCensorFct:p,censorFctTakesPath:y},c({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:l,wildcards:g,wcLen:m}))}d.restore=d,p.rx=f,p.validator=i,e.exports=p},9958:e=>{"use strict";function t({keys:e,values:t,target:r}){if(null==r)return;let i=e.length;for(var o=0;o{"use strict";let i=r(5392);function o({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0];a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e);let l=a.indexOf("*");if(l>-1){let e=a.slice(0,l),i=e.join("."),o=a.slice(l+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}e.exports=o},4281:(e,t,r)=>{"use strict";let i=r(5392);function o({secret:e,serialize:t,wcLen:r,strict:i,isCensorFct:o,censorFctTakesPath:c},f){let h=Function("o",` +(()=>{var e={9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8109),r(4608),r(8034),r(2946),r(3560),r(5217),r(3385),r(4603),r(4783),r(6399),r(5519),r(6931),r(3682),r(9022),r(5027),r(8635),r(5162),r(8817),r(8417),r(7099),r(9921),r(7773),r(6431),r(6965),r(7725),r(9614),r(304),r(9386),r(9364),r(1807),r(9807),r(4025),r(9929),r(9659),r(6258),r(9345),r(522),r(3357),r(192),r(8976);let{EventEmitter:i}=r(2361),{logScope:o}=r(7691),s=o("cache"),a={CLEANUP:"cs@cleanup"};class u extends i{id="Default Cache Storage";cacheMap=new Map;aliveDuration=18e5;constructor(e){super(),e&&(this.id=e),this.on(a.CLEANUP,async()=>this.removeExpiredCache())}get WillExpireAt(){return Date.now()+this.aliveDuration}getLoggerContext(e={}){return{...e,cacheStorageId:this.id}}removeExpiredCache(){s.debug(this.getLoggerContext(),"Cleaning up the expired caches..."),this.cacheMap.forEach((e,t)=>{e.expireAt<=Date.now()&&this.cacheMap.delete(t)})}async cache(e,t,r){if("true"===process.env.NO_CACHE)return t();this.emit(a.CLEANUP);let i=this.cacheMap.get(e),o="object"==typeof e?"Something":e,u=this.getLoggerContext({logKey:o});if(i)return s.debug(u,`${o} hit!`),i.data;s.debug(u,`${o} did not hit. Storing the execution result...`);let l=await t();return this.cacheMap.set(e,{data:l,expireAt:new Date(r||this.WillExpireAt)}),l}}class l{static instance=void 0;cacheStorages=new Set;constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}cleanup(){this.cacheStorages.forEach(e=>e.removeExpiredCache())}}let c=l.getInstance();function f(e){let t=new u(e);return c.cacheStorages.add(t),t}e.exports={CacheStorage:u,CacheStorageEvents:a,CacheStorageGroup:l,getManagedCacheStorage:f}},2188:(e,t,r)=>{"use strict";let i=r(2361),o="cancel";class s extends i{cancelled=!1;cancel(){this.cancelled=!0,this.emit(o)}}e.exports={CancelRequest:s,ON_CANCEL:o}},1784:(e,t,r)=>{"use strict";let i=["kugou","kuwo","migu","bilibili","ytdlp"],o={qq:r(9878),kugou:r(4840),kuwo:r(3081),migu:r(1549),joox:r(9788),youtube:r(8396),ytdownload:r(9588),youtubedl:r(4396),ytdlp:r(8965),bilibili:r(8573),pyncmd:r(2085)};e.exports={DEFAULT_SOURCE:i,PROVIDERS:o}},743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368);let i=r(6113),o=r(7310).parse,s=r(3477).stringify,a="e82ckenh8dichen8",u="rFgB&h#%2?^eDg:Q",l=(e,t)=>{let r=i.createDecipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])},c=(e,t)=>{let r=i.createCipheriv("aes-128-ecb",t,null);return Buffer.concat([r.update(e),r.final()])};e.exports={eapi:{encrypt:e=>c(e,a),decrypt:e=>l(e,a),encryptRequest:(t,r)=>{t=o(t);let a=JSON.stringify(r),u=`nobody${t.path}use${a}md5forencrypt`,l=i.createHash("md5").update(u).digest("hex"),c=`${t.path}-36cd479b6b5-${a}-36cd479b6b5-${l}`;return{url:t.href.replace(/\w*api/,"eapi"),body:s({params:e.exports.eapi.encrypt(Buffer.from(c)).toString("hex").toUpperCase()})}}},linuxapi:{encrypt:e=>c(e,u),decrypt:e=>l(e,u),encryptRequest:(t,r)=>{t=o(t);let i=JSON.stringify({method:"POST",url:t.href,params:r});return{url:t.resolve("/api/linux/forward"),body:s({eparams:e.exports.linuxapi.encrypt(Buffer.from(i)).toString("hex").toUpperCase()})}}},miguapi:{encryptBody:e=>{let t=JSON.stringify(e),r=(e,t,r,o)=>{t=t||Buffer.alloc(0);let s=r/8,a=Math.ceil((s+8*o)/32),u=Buffer.concat(Array(a).fill(null).reduce(r=>r.concat(i.createHash("md5").update(Buffer.concat([r.slice(-1)[0],e,t])).digest()),[Buffer.alloc(0)]));return{key:u.slice(0,s),iv:u.slice(s,s+o)}},o=Buffer.from(i.randomBytes(32).toString("hex")),a=i.randomBytes(8),u=r(o,a,256,16),l=i.createCipheriv("aes-256-cbc",u.key,u.iv);return s({data:Buffer.concat([Buffer.from("Salted__"),a,l.update(Buffer.from(t)),l.final()]).toString("base64"),secKey:i.publicEncrypt({key:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8asrfSaoOb4je+DSmKdriQJKWVJ2oDZrs3wi5W67m3LwTB9QVR+cE3XWU21Nx+YBxS0yun8wDcjgQvYt625ZCcgin2ro/eOkNyUOTBIbuj9CvMnhUYiR61lC1f1IGbrSYYimqBVSjpifVufxtx/I3exReZosTByYp4Xwpb1+WAQIDAQAB\n-----END PUBLIC KEY-----",padding:i.constants.RSA_PKCS1_PADDING},o).toString("base64")})}},base64:{encode:(e,t)=>Buffer.from(e,t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_"),decode:(e,t)=>Buffer.from(e.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString(t)},uri:{retrieve:e=>{e=e.toString().trim();let t="3go8&$8*3*3h0k(2)2",r=Array.from(Array(e.length).keys()).map(r=>String.fromCharCode(e.charCodeAt(r)^t.charCodeAt(r%t.length))).join(""),o=i.createHash("md5").update(r).digest("base64").replace(/\//g,"_").replace(/\+/g,"-");return`http://p1.music.126.net/${o}/${e}`}},md5:{digest:e=>i.createHash("md5").update(e).digest("hex"),pipe:e=>new Promise((t,r)=>{let o=i.createHash("md5").setEncoding("hex");e.pipe(o).on("error",e=>r(e)).once("finish",()=>t(o.read()))})},sha1:{digest:e=>i.createHash("sha1").update(e).digest("hex")},random:{hex:e=>i.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}};try{e.exports.kuwoapi=r(5477)}catch(e){}},3942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e,t){super(`${e} exited with ${t}, which is not zero.`),this.process=e,this.exitCode=t,this.name="ProcessExitNotSuccessfully"}}e.exports=i},4113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super(`This request URL has been cancelled: ${e}`),this.name="RequestCancelled"}}e.exports=i},5467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of youtube-dl is malformed."),this.name="YoutubeDlInvalidResponse",this.response=e}}e.exports=i},58:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "youtube-dl" before using the "youtubedl" source.'),this.name="YoutubeDlNotInstalled"}}e.exports=i},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(e){super("The response of yt-dlp is malformed."),this.name="YtDlpInvalidResponse",this.response=e}}e.exports=i},8761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9397);class i extends Error{constructor(){super('You must install "yt-dlp" before using the "ytdlp" source.'),this.name="YtDlpNotInstalled"}}e.exports=i},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(5027),r(8635);let i=e=>{let t=BigInt(e);return{low:Number(t),valueOf:()=>t.valueOf(),toString:()=>t.toString(),not:()=>i(~t),isNegative:()=>t<0,or:e=>i(t|BigInt(e)),and:e=>i(t&BigInt(e)),xor:e=>i(t^BigInt(e)),equals:e=>t===BigInt(e),multiply:e=>i(t*BigInt(e)),shiftLeft:e=>i(t<i(t>>BigInt(e))}},o=e=>Array.from(Array(e).keys()),s=(e,t)=>Array(t).fill(null).reduce(t=>t.multiply(e),i(1)),a=(...e)=>e.map(e=>-1===e?i(-1,-1):i(e)),u=a(31,0,1,2,3,4,-1,-1,3,4,5,6,7,8,-1,-1,7,8,9,10,11,12,-1,-1,11,12,13,14,15,16,-1,-1,15,16,17,18,19,20,-1,-1,19,20,21,22,23,24,-1,-1,23,24,25,26,27,28,-1,-1,27,28,29,30,31,30,-1,-1),l=a(57,49,41,33,25,17,9,1,59,51,43,35,27,19,11,3,61,53,45,37,29,21,13,5,63,55,47,39,31,23,15,7,56,48,40,32,24,16,8,0,58,50,42,34,26,18,10,2,60,52,44,36,28,20,12,4,62,54,46,38,30,22,14,6),c=a(39,7,47,15,55,23,63,31,38,6,46,14,54,22,62,30,37,5,45,13,53,21,61,29,36,4,44,12,52,20,60,28,35,3,43,11,51,19,59,27,34,2,42,10,50,18,58,26,33,1,41,9,49,17,57,25,32,0,40,8,48,16,56,24),f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1],h=a(0,1048577,3145731),d=o(64).map(e=>s(2,e));d[d.length-1]=d[d.length-1].multiply(-1);let p=a(15,6,19,20,28,11,27,16,0,14,22,25,4,17,30,9,1,7,23,13,31,26,2,8,18,12,29,5,21,10,3,24),y=a(56,48,40,32,24,16,8,0,57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,60,52,44,36,28,20,12,4,27,19,11,3),g=a(13,16,10,23,0,4,-1,-1,2,27,14,5,20,9,-1,-1,22,18,11,3,25,7,-1,-1,15,6,26,19,12,1,-1,-1,40,51,30,36,46,54,-1,-1,29,39,50,44,32,47,-1,-1,43,48,38,55,33,52,-1,-1,45,41,49,35,28,31,-1,-1),m=[[14,4,3,15,2,13,5,3,13,14,6,9,11,2,0,5,4,1,10,12,15,6,9,10,1,8,12,7,8,11,7,0,0,15,10,5,14,4,9,10,7,8,12,3,13,1,3,6,15,12,6,11,2,9,5,0,4,2,11,14,1,7,8,13],[15,0,9,5,6,10,12,9,8,7,2,12,3,13,5,2,1,14,7,8,11,4,0,3,14,11,13,6,4,1,10,15,3,13,12,11,15,3,6,0,4,10,1,7,8,4,11,14,13,8,0,6,2,15,9,5,7,1,10,12,14,2,5,9],[10,13,1,11,6,8,11,5,9,4,12,2,15,3,2,14,0,6,13,1,3,15,4,10,14,9,7,12,5,0,8,7,13,1,2,4,3,6,12,11,0,13,5,14,6,8,15,2,7,10,8,15,4,9,11,5,9,0,14,3,10,7,1,12],[7,10,1,15,0,12,11,5,14,9,8,3,9,7,4,8,13,6,2,1,6,11,12,2,3,0,5,14,10,13,15,4,13,3,4,9,6,10,1,12,11,0,2,5,0,13,14,2,8,15,7,4,15,1,10,7,5,6,12,11,3,8,9,14],[2,4,8,15,7,10,13,6,4,1,3,12,11,7,14,0,12,2,5,9,10,13,0,3,1,11,15,5,6,8,9,14,14,11,5,6,4,1,3,10,2,12,15,0,13,2,8,5,11,8,0,15,7,14,9,4,12,7,10,9,1,13,6,3],[12,9,0,7,9,2,14,1,10,15,3,4,6,12,5,11,1,14,13,0,2,8,7,13,15,5,4,10,8,3,11,6,10,4,6,11,7,9,0,6,4,2,13,1,9,15,3,8,15,3,1,14,12,5,11,0,2,12,14,7,5,10,8,13],[4,1,3,10,15,12,5,0,2,11,9,6,8,7,6,9,11,4,12,15,0,3,10,5,14,13,7,8,13,14,1,2,13,6,14,9,4,1,2,14,11,13,5,0,1,10,8,3,0,11,3,5,9,4,15,2,7,8,12,15,10,7,6,12],[13,7,10,0,6,9,5,15,8,4,3,10,11,14,12,5,2,11,9,6,15,12,0,3,4,1,14,13,1,2,7,8,1,2,12,15,10,4,0,3,13,14,6,9,7,8,9,6,15,1,5,12,3,10,14,5,8,7,11,0,4,13,2,11]],b=(e,t,r)=>{let s=i(0);return o(t).forEach(t=>{e[t].isNegative()||r.and(d[e[t].low]).equals(0)||(s=s.or(d[t]))}),s},v=(e,t)=>{let r=o(8).map(()=>i(0)),s=[i(0),i(0)],a=i(0),f=i(0),h=b(l,64,t);return s[0]=h.and(4294967295),s[1]=h.and(-4294967296).shiftRight(32),o(16).forEach(t=>{let l=i(0);f=i(s[1]),f=(f=b(u,64,f)).xor(e[t]),o(8).forEach(e=>{r[e]=f.shiftRight(8*e).and(255)}),o(8).reverse().forEach(e=>{l=l.shiftLeft(4).or(m[e][r[e]])}),f=b(p,32,l),a=i(s[0]),s[0]=i(s[1]),s[1]=a.xor(f)}),s.reverse(),h=b(c,64,h=s[1].shiftLeft(32).and(-4294967296).or(s[0].and(4294967295)))},w=(e,t,r)=>{let i=b(y,56,e);o(16).forEach(e=>{i=i.and(h[f[e]]).shiftLeft(28-f[e]).or(i.and(h[f[e]].not()).shiftRight(f[e])),t[e]=b(g,64,i)}),1===r&&o(8).forEach(e=>{[t[e],t[15-e]]=[t[15-e],t[e]]})},_=(e,t,r)=>{let s=i(0);o(8).forEach(e=>{s=i(t[e]).shiftLeft(8*e).or(s)});let a=Math.floor(e.length/8),u=o(16).map(()=>i(0));w(s,u,r);let l=o(a).map(()=>i(0));o(a).forEach(t=>{o(8).forEach(r=>{l[t]=i(e[r+8*t]).shiftLeft(8*r).or(l[t])})});let c=o(Math.floor((1+8*(a+1))/8)).map(()=>i(0));o(a).forEach(e=>{c[e]=v(u,l[e])});let f=e.slice(8*a),h=i(0);o(e.length%8).forEach(e=>{h=i(f[e]).shiftLeft(8*e).or(h)}),(f.length||0===r)&&(c[a]=v(u,h));let d=o(8*c.length).map(()=>0),p=0;return c.forEach(e=>{o(8).forEach(t=>{d[p]=e.shiftRight(8*t).and(255).low,p+=1})}),Buffer.from(d)},S=Buffer.from("ylzsxkwm"),x=e=>_(e,S,0),E=e=>_(e,S,1),O=e=>x(Buffer.from(e)).toString("base64");e.exports={encrypt:x,decrypt:E,encryptQuery:O}},7691:(e,t,r)=>{"use strict";var i;let o=r(8167),s=process.env.LOG_FILE,a=process.stdout.isTTY,u=a?"\x1b[1m\x1b[32m({scope})\x1b[0m\x1b[36m {msg}":"({scope}) {msg}",l=o({level:null!==(i=process.env.LOG_LEVEL)&&void 0!==i?i:"info",prettyPrint:"true"!==process.env.JSON_LOG&&{colorize:a,messageFormat:u,ignore:"time,pid,hostname,scope",errorProps:"*"}},s&&o.destination(s));function c(e){return l.child({scope:e})}e.exports={logger:l,logScope:c}},8573:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let{cacheStorage:i,CacheStorageGroup:o,getManagedCacheStorage:s}=r(9220),a=r(2290),u=r(2822),l=r(5262),c=e=>({id:e.id,name:e.title,artists:{id:e.mid,name:e.author}}),f=e=>{let t=`https://api.bilibili.com/audio/music-service-c/s?search_type=music&page=1&pagesize=30&keyword=${encodeURIComponent(e.keyword)}`;return l("GET",t).then(e=>e.json()).then(t=>{let r=t.data.result.map(c),i=u(r,e);return i?i.id:Promise.reject()})},h=e=>{let t="https://www.bilibili.com/audio/music-service-c/web/url?rivilege=2&quality=2&sid="+e;return l("GET",t).then(e=>e.json()).then(e=>0===e.code?e.data.cdns[0].replace("https","http"):Promise.reject()).catch(()=>a().bilibili.track(e))},d=s("provider/bilibili"),p=e=>d.cache(e,()=>f(e)).then(h);e.exports={check:p,track:h}},2290:(e,t,r)=>{"use strict";let i=r(5262);e.exports=()=>{let t=global.cnrelay,r=new Proxy(()=>{},{get:(e,t)=>(e.route=(e.route||[]).concat(t),r),apply:(r,o,s)=>{if(e.exports.disable||!t)return Promise.reject();let a=r.route.join("/"),u="object"==typeof s[0]?JSON.stringify(s[0]):s[0];return i("GET",`${t}/${a}?${encodeURIComponent(u)}`).then(e=>e.body())}});return r}},9788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(2071);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l={origin:"http://www.joox.com",referer:"http://www.joox.com",cookie:process.env.JOOX_COOKIE||null},c=e=>/[\u0800-\u4e00]/.test(e.name)?e.name:e.keyword,f=e=>{let{decode:t}=s.base64;return{id:e.songid,name:t(e.info1||""),duration:1e3*e.playtime,album:{id:e.albummid,name:t(e.info3||"")},artists:e.singer_list.map(({id:e,name:r})=>({id:e,name:t(r||"")}))}},h=e=>{let t=c(e),r="http://api-jooxtt.sanook.com/web-fcgi-bin/web_search?country=hk&lang=zh_TW&search_input="+encodeURIComponent(t)+"&sin=0&ein=30";return a("GET",r,l).then(e=>e.body()).then(t=>{let r=JSON.parse(t.replace(/'/g,'"')),i=r.itemlist.map(f),s=o(i,e);return s?s.id:Promise.reject()})},d=e=>{let t="http://api.joox.com/web-fcgi-bin/web_get_songinfo?songid="+e+"&country=hk&lang=zh_cn&from_type=-1&channel_id=-1&_="+new Date().getTime();return a("GET",t,l).then(e=>e.jsonp()).then(e=>{let t=(e.r320Url||e.r192Url||e.mp3Url||e.m4aUrl).replace(/M\d00([\w]+).mp3/,"M800$1.mp3");return t||Promise.reject()}).catch(()=>i().joox.track(e))},p=u("provider/joox"),y=e=>p.cache(e,()=>h(e)).then(d);e.exports={check:y,track:d}},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.hash,id_hq:e["320hash"],id_sq:e.sqhash,name:e.songname,duration:1e3*e.duration,album:{id:e.album_id,name:e.album_name}}),c=e=>{let t="http://mobilecdn.kugou.com/api/v3/search/song?keyword="+encodeURIComponent(e.keyword)+"&page=1&pagesize=10";return a("GET",t).then(e=>e.json()).then(t=>{let r=t.data.info.map(l),i=o(r,e);return i||Promise.reject()}).catch(()=>i().kugou.search(e))},f=(e,t)=>{let r=()=>{switch(t){case"hash":return e.id;case"hqhash":return e.id_hq;case"sqhash":return e.id_sq}return""},i="http://trackercdn.kugou.com/i/v2/?key="+s.md5.digest(`${r()}kgcloudv2`)+"&hash="+r()+"&appid=1005&pid=2&cmd=25&behavior=play&album_id="+e.album.id;return a("GET",i).then(e=>e.json()).then(e=>e.url[0]||Promise.reject())},h=e=>Promise.all(["sqhash","hqhash","hash"].slice(o.ENABLE_FLAC?0:1).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().kugou.track(e)),d=u("provider/kugou"),p=e=>d.cache(e,()=>c(e)).then(h);e.exports={check:p,search:c}},3081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368);let i=r(2290),o=r(2822),s=r(743),a=r(5262),{getManagedCacheStorage:u}=r(9220),l=e=>({id:e.musicrid.split("_").pop(),name:e.name,duration:1e3*e.duration,album:{id:e.albumid,name:e.album},artists:e.artist.split("&").map((t,r)=>({id:r?null:e.artistid,name:t}))}),c=e=>{let t=encodeURIComponent(e.keyword.replace(" - "," ")),r=`http://www.kuwo.cn/api/www/search/searchMusicBykeyWord?key=${t}&pn=1&rn=30`,i=s.random.hex(32).toUpperCase();return a("GET",r,{referer:`http://www.kuwo.cn/search/list?key=${t}`,cross:s.md5.digest(s.sha1.digest(i)),cookie:`Hm_token=${i}`}).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=e=>{let t=s.kuwoapi?"http://mobi.kuwo.cn/mobi.s?f=kuwo&q="+s.kuwoapi.encryptQuery("corp=kuwo&p2p=1&type=convert_url2&sig=0&format="+["flac","mp3"].slice(o.ENABLE_FLAC?0:1).join("|")+"&rid="+e):"http://antiserver.kuwo.cn/anti.s?type=convert_url&format=mp3&response=url&rid=MUSIC_"+e;return a("GET",t,{"user-agent":"okhttp/3.10.0"}).then(e=>e.body()).then(e=>{let t=(e.match(/http[^\s$"]+/)||[])[0];return t||Promise.reject()}).catch(()=>i().kuwo.track(e))},h=u("provider/kuwo"),d=e=>h.cache(e,()=>c(e)).then(f);e.exports={check:d,track:f}},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://music.migu.cn/",referer:"http://m.music.migu.cn/v3/",aversionid:process.env.MIGU_COOKIE||null,channel:"0146921"},l=e=>{let t=e.singerId.split(/\s*,\s*/),r=e.singerName.split(/\s*,\s*/);return{id:e.id,name:e.title,album:{id:e.albumId,name:e.albumName},artists:t.map((e,t)=>({id:e,name:r[t]}))}},c=e=>{let t="https://m.music.migu.cn/migu/remoting/scr_search_tag?keyword="+encodeURIComponent(e.keyword)+"&type=2&rows=20&pgc=1";return s("GET",t,u).then(e=>e.json()).then(t=>{let r=((t||{}).musics||[]).map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r="https://app.c.nf.migu.cn/MIGUM2.0/strategy/listen-url/v2.4?netType=01&resourceType=2&songId="+e.toString()+"&toneFlag="+t;return s("GET",r,u).then(e=>e.json()).then(e=>{let{audioFormatType:i}=e.data;return i!==t?Promise.reject():r?e.data.url:Promise.reject()})},h=e=>Promise.all(["ZQ24","SQ","HQ","PQ"].slice(o.ENABLE_FLAC?0:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().migu.track(e)),d=a("provider/migu"),p=e=>d.cache(e,()=>c(e)).then(h);e.exports={check:p,track:h}},2085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162);let i=r(2822),o=r(5262),{getManagedCacheStorage:s}=r(9220),a=e=>{let t="http://76.76.21.21/api/pyncm?module=track&method=GetTrackAudio&song_ids="+e.id+"&bitrate="+["999000","320000"].slice(i.ENABLE_FLAC?0:1,i.ENABLE_FLAC?1:2),r={Host:"music.163-my-beloved.com"};return o("GET",t,r).then(e=>e.json()).then(t=>{if(t&&"object"==typeof t&&"code"in t&&200!==t.code)return Promise.reject();let r=t.data.find(t=>t.id===e.id);return r&&r.url?r.url:Promise.reject()})},u=s("provider/pyncmd"),l=e=>u.cache(e,()=>a(e));e.exports={check:l}},9878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8386),r(9368),r(6803),r(4519),r(5162);let i=r(2290),o=r(2822),s=r(5262),{getManagedCacheStorage:a}=r(9220),u={origin:"http://y.qq.com/",referer:"http://y.qq.com/",cookie:process.env.QQ_COOKIE||null},l=e=>({id:{song:e.mid,file:e.mid},name:e.name,duration:1e3*e.interval,album:{id:e.album.mid,name:e.album.name},artists:e.singer.map(({mid:e,name:t})=>({id:e,name:t}))}),c=e=>{let t="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({search:{method:"DoSearchForQQMusicDesktop",module:"music.search.SearchCgiService",param:{num_per_page:5,page_num:1,query:e.keyword,search_type:0}}}));return s("GET",t,u).then(e=>e.json()).then(t=>{let r=t.search.data.body.song.list.map(l),i=o(r,e);return i?i.id:Promise.reject()})},f=(e,t)=>{let r=((u.cookie||"").match(/uin=(\d+)/)||[])[1]||"0",i="https://u.y.qq.com/cgi-bin/musicu.fcg?data="+encodeURIComponent(JSON.stringify({req_0:{module:"vkey.GetVkeyServer",method:"CgiGetVkey",param:{guid:(1e7*Math.random()).toFixed(0),loginflag:1,filename:t[0]?[t.join(e.file)]:null,songmid:[e.song],songtype:[0],uin:r,platform:"20"}}}));return s("GET",i,u).then(e=>e.json()).then(e=>{let{sip:t,midurlinfo:r}=e.req_0.data;if(!r[0].purl)return Promise.reject();let i=t[0]+r[0].purl,o={range:"bytes=0-8191","accept-encoding":"identity"};return s("GET",i,o).then(e=>e.statusCode<200||e.statusCode>299?Promise.reject():i)})},h=e=>(e.key=e.file,Promise.all([["F000",".flac"],["M800",".mp3"],["M500",".mp3"],[null,null]].slice(u.cookie||"undefined"!=typeof window?o.ENABLE_FLAC?0:1:2).map(t=>f(e,t).catch(()=>null))).then(e=>e.find(e=>e)||Promise.reject()).catch(()=>i().qq.track(e))),d=a("provider/qq"),p=e=>d.cache(e,()=>c(e)).then(h);e.exports={check:p,track:h}},2822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(6803),r(4519),r(5162),e.exports=(e,t)=>{let{duration:r}=t,i=e.slice(0,5).find(e=>e.duration&&5e3>Math.abs(e.duration-r));return i||e[0]},e.exports.ENABLE_FLAC="true"===(process.env.ENABLE_FLAC||"").toLowerCase()},4396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),s=r(5467),a=r(58),{spawnStdout:u}=r(7581),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/youtube-dl");async function d(e){try{let{stdout:t}=await u("youtube-dl",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new s(r)}catch(e){if(e&&"ENOENT"===e.code)throw new a;throw e}}let p=async e=>{let{id:t}=await d(l(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(l(c(e)));return t},g=i("youtube-dl"),m=e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:y}},8396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8386),r(9368),r(2071),r(6803),r(4519);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=e=>(e||"").split("&").reduce((e,t)=>{let r=t.split("=").map(decodeURIComponent);return Object.assign({},e,{[r[0]]:r[1]})},{}),a=o("provider/youtube"),u=void 0,l=process.env.YOUTUBE_KEY||null,c=(e="-tKVN2mAKRI")=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=/"WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO":{[^}]+}/.exec(e)[0];return i("GET","https://youtube.com"+(t=JSON.parse(`{${t}}}`).WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO).jsUrl,{},null,u).then(e=>e.body())}).then(e=>{let[,t,r]=/function\((\w+)\)\s*{([^}]+split\(""\)[^}]+join\(""\))};/.exec(e),i=/;(.+?)\..+?\(/.exec(r)[1],o=RegExp(`var ${i}={[\\s\\S]+?};`).exec(e)[0];return Function([t],o+"\n"+r)})},f=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${l}`;return i("GET",t,{accept:"application/json"},null,u).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},h=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[1];return r?r.videoRenderer.videoId:Promise.reject()})},d=e=>{let t=`https://www.youtube.com/watch?v=${e}`;return i("GET",t,{},null,u).then(e=>e.body()).then(e=>JSON.parse(e.match(/ytInitialPlayerResponse\s*=\s*{[^]+};\s*var\s*meta/)[0].replace(/;var meta/,"").replace(/ytInitialPlayerResponse = /,"")).streamingData).then(e=>{let t=e.formats.concat(e.adaptiveFormats).find(e=>140===e.itag),r=s(t.signatureCipher);return t.url||(r.sp.includes("sig")?a.cache("YOUTUBE_SIGNATURE",()=>c(),Date.now()+864e5).then(e=>r.url+"&sig="+e(r.s)):r.url)})},p=e=>a.cache(e,()=>l?f(e):h(e)).then(d);e.exports={check:p,track:d}},8965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let{getManagedCacheStorage:i}=r(9220),{logScope:o}=r(7691),{spawnStdout:s}=r(7581),a=r(2962),u=r(8761),l=e=>["-f","140","--dump-json",e],c=e=>`https://www.youtube.com/watch?v=${e}`,f=e=>`ytsearch1:${e}`,h=o("provider/yt-dlp");async function d(e){try{let{stdout:t}=await s("yt-dlp",e),r=JSON.parse(t.toString());if("object"==typeof r&&"string"==typeof r.id&&"string"==typeof r.url)return r;throw new a(r)}catch(e){if(e&&"ENOENT"===e.code)throw new u;throw e}}let p=async e=>{let{id:t}=await d(l(f(e.keyword)));return t},y=async e=>{let{url:t}=await d(l(c(e)));return t},g=i("yt-dlp"),m=e=>g.cache(e,()=>p(e)).then(y).catch(e=>{throw e&&h.error(e),e});e.exports={check:m,track:y}},9588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(2071);let i=r(5262),{getManagedCacheStorage:o}=r(9220),s=void 0,a=process.env.YOUTUBE_KEY||null,u=e=>{let t=`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(e.keyword)}&type=video&key=${a}`;return i("GET",t,{accept:"application/json"},null,s).then(e=>e.json()).then(e=>{let t=e.items[0];return t?t.id.videoId:Promise.reject()})},l=e=>{let t=`https://www.youtube.com/results?search_query=${encodeURIComponent(e.keyword)}`;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{let t=JSON.parse(e.match(/ytInitialData\s*=\s*([^;]+);/)[1]),r=t.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0].itemSectionRenderer.contents[0];return r?r.videoRenderer.videoId:Promise.reject()})},c=e=>{let t=`https://www.yt-download.org/api/button/mp3/${e}`,r=/]*href=["']([^"']*)["']/;return i("GET",t,{},null,s).then(e=>e.body()).then(e=>{var t=e.match(r);return t?t[1]:Promise.reject()})},f=o("provider/yt-download"),h=e=>f.cache(e,()=>a?u(e):l(e)).then(c);e.exports={check:h,track:c}},5262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3183),r(4334),r(5162),r(8330),r(2071);let i=r(9796),o=r(2181),s=r(5687),a=r(2188),u=r(4113),{logScope:l}=r(7691),c=r(7310).parse,f=r(7310).format,h=l("request"),d=e=>(global.hosts||{})[e]||e,p=(e,t)=>("https:"===((void 0===t?global.proxy:t)||e).protocol?s:o).request,y=(e,t,r,i)=>{r=r||{},i=void 0===i?global.proxy:i,"content-length"in r&&delete r["content-length"];let o={};return o._headers=r,i&&"https:"===t.protocol?(o.method="CONNECT",o.headers=Object.keys(r).reduce((e,t)=>Object.assign(e,["host","user-agent"].includes(t)&&{[t]:r[t]}),{})):(o.method=e,o.headers=r),i?(o.hostname=d(i.hostname),o.port=i.port||("https:"===i.protocol?443:80),o.path="https:"===t.protocol?d(t.hostname)+":"+(t.port||443):"http://"+d(t.hostname)+t.path):(o.hostname=d(t.hostname),o.port=t.port||("https:"===t.protocol?443:80),o.path=t.path),o},g=(e,t,r,i,o,l)=>{let d=c(t),w=r||{},_=y(e,d,{host:d.hostname,accept:"application/json, text/plain, */*","accept-encoding":"gzip, deflate","accept-language":"zh-CN,zh;q=0.9","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",...w},o);return new Promise((r,c)=>{var y;h.debug(`Start requesting ${t}`);let g=p(d,o)(_),m=function(){g.destroy(new u(f(d)))};null==l||l.on(a,m),null!==(y=null==l?void 0:l.cancelled)&&void 0!==y&&y&&m(),g.setTimeout(1e4,()=>{h.warn({url:f(d)},"The request timed out, or the requester didn't handle the response."),m()}).on("response",e=>r(e)).on("connect",(t,o)=>{h.debug("received CONNECT, continuing with https.request()..."),s.request({method:e,path:d.path,headers:_._headers,socket:o,agent:!1}).on("response",e=>r(e)).on("error",e=>c(e)).end(i)}).on("error",e=>c(e)).end("CONNECT"===_.method.toUpperCase()?void 0:i)}).then(t=>{var r;if(null!==(r=null==l?void 0:l.cancelled)&&void 0!==r&&r)return Promise.reject(new u(f(d)));if([201,301,302,303,307,308].includes(t.statusCode)){let r=d.resolve(t.headers.location||d.href);return h.debug(`Redirect to ${r}`),delete w.host,g(e,r,w,i,o)}return Object.assign(t,{url:d,body:e=>m(t,e),json:()=>b(t),jsonp:()=>v(t)})})},m=(e,t)=>new Promise((t,r)=>{let i=[];e.on("data",e=>i.push(e)).on("end",()=>t(Buffer.concat(i))).on("error",e=>r(e))}).then(r=>{if(r.length)switch(e.headers["content-encoding"]){case"deflate":case"gzip":r=i.unzipSync(r);break;case"br":r=i.brotliDecompressSync(r)}return t?r:r.toString()}),b=e=>m(e,!1).then(e=>JSON.parse(e)),v=e=>m(e,!1).then(e=>JSON.parse(e.slice(e.indexOf("(")+1,-1)));g.read=m,g.create=p,g.translate=d,g.configure=y,e.exports=g},7581:(e,t,r)=>{"use strict";let i=r(2081),{logScope:o}=r(7691),s=r(3942),a=o("spawn");async function u(e,t=[]){return new Promise((r,o)=>{let u=0,l=0,c=Buffer.alloc(5e6),f=Buffer.alloc(5e6),h=i.spawn(e,t);h.on("spawn",()=>{a.info(`running ${e} ${t.join(" ")}`)}),h.on("error",e=>o(e)),h.on("close",t=>{0!==t?o(new s(e,t)):(a.debug(`process ${e} exited successfully`),r({stdout:c.slice(0,u),stderr:f.slice(0,l)}))}),h.stdout.on("data",e=>{u+=e.copy(c,u)}),h.stderr.on("data",t=>{a.warn(`[${e}][stderr] ${t}`),l+=t.copy(f,l)})})}e.exports={spawnStdout:u}},160:e=>{"use strict";if("undefined"!=typeof SharedArrayBuffer&&"undefined"!=typeof Atomics){let r=new Int32Array(new SharedArrayBuffer(4));function t(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(r,0,0,Number(e))}e.exports=t}else{function r(e){if(!1==(e>0&&e<1/0)){if("number"!=typeof e&&"bigint"!=typeof e)throw TypeError("sleep: ms must be a number");throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}let t=Date.now()+Number(e);for(;t>Date.now(););}e.exports=r}},924:(e,t,r)=>{"use strict";var i;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(s){var a,u,l,c=arguments,f=(a=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,function(e,t,r,i){if(1!==c.length||"string"!==g(e)||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(f.masks[t]||t||f.masks.default)).slice(0,4);("UTC:"===o||"GMT:"===o)&&(t=t.slice(4),r=!0,"GMT:"===o&&(i=!0));var s=function(){return r?"getUTC":"get"},m=function(){return e[s()+"Date"]()},b=function(){return e[s()+"Day"]()},v=function(){return e[s()+"Month"]()},w=function(){return e[s()+"FullYear"]()},_=function(){return e[s()+"Hours"]()},S=function(){return e[s()+"Minutes"]()},x=function(){return e[s()+"Seconds"]()},E=function(){return e[s()+"Milliseconds"]()},O=function(){return r?0:e.getTimezoneOffset()},j=function(){return p(e)},k={d:function(){return m()},dd:function(){return h(m())},ddd:function(){return f.i18n.dayNames[b()]},DDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()],short:!0})},dddd:function(){return f.i18n.dayNames[b()+7]},DDDD:function(){return d({y:w(),m:v(),d:m(),_:s(),dayName:f.i18n.dayNames[b()+7]})},m:function(){return v()+1},mm:function(){return h(v()+1)},mmm:function(){return f.i18n.monthNames[v()]},mmmm:function(){return f.i18n.monthNames[v()+12]},yy:function(){return String(w()).slice(2)},yyyy:function(){return h(w(),4)},h:function(){return _()%12||12},hh:function(){return h(_()%12||12)},H:function(){return _()},HH:function(){return h(_())},M:function(){return S()},MM:function(){return h(S())},s:function(){return x()},ss:function(){return h(x())},l:function(){return h(E(),3)},L:function(){return h(Math.floor(E()/10))},t:function(){return 12>_()?f.i18n.timeNames[0]:f.i18n.timeNames[1]},tt:function(){return 12>_()?f.i18n.timeNames[2]:f.i18n.timeNames[3]},T:function(){return 12>_()?f.i18n.timeNames[4]:f.i18n.timeNames[5]},TT:function(){return 12>_()?f.i18n.timeNames[6]:f.i18n.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":(String(e).match(u)||[""]).pop().replace(l,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(O()>0?"-":"+")+h(100*Math.floor(Math.abs(O())/60)+Math.abs(O())%60,4)},p:function(){return(O()>0?"-":"+")+h(Math.floor(Math.abs(O())/60),2)+":"+h(Math.floor(Math.abs(O())%60),2)},S:function(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function(){return j()},WW:function(){return h(j())},N:function(){return y(e)}};return t.replace(a,function(e){return e in k?k[e]():e.slice(1,e.length-1)})});f.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var h=function(e,t){for(e=String(e),t=t||2;e.length{var i=r(8118),o=r(5546),s=r(1828),a=r(6151),u=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),l=function(e,t){e._corked?e.once("uncork",t):t()},c=function(e,t){e._autoDestroy&&e.destroy(t)},f=function(e,t){return function(r){r?c(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},h=function(e,t){return!e||e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):void(e.end(),t())},d=function(){},p=function(e){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},y=function(e,t,r){if(!(this instanceof y))return new y(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(y,i.Duplex),y.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new y(e,t,r)},y.prototype.cork=function(){1==++this._corked&&this.emit("cork")},y.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},y.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.end();return}var t=this,r=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&process.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),r()},this.uncork()},y.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(null===e||!1===e){this.push(null),this.resume();return}var t=this,r=o(e,{writable:!1,readable:!0},f(this)),i=function(){t._forward()},s=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:p(e),this._readable2.on("readable",i),this._readable2.on("end",s),this._unread=function(){t._readable2.removeListener("readable",i),t._readable2.removeListener("end",s),r()},this._forward()},y.prototype._read=function(){this._drained=!0,this._forward()},y.prototype._forward=function(){var e;if(!this._forwarding&&this._readable2&&this._drained){for(this._forwarding=!0;this._drained&&null!==(e=a(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},y.prototype.destroy=function(e,t){if(t||(t=d),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},y.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},y.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return l(this,this._write.bind(this,e,t,r));if(e===u)return this._finish(r);if(!this._writable)return r();!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()}},y.prototype._finish=function(e){var t=this;this.emit("preend"),l(this,function(){h(t._forwardEnd&&t._writable,function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),l(t,e)})})},y.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=y},5546:(e,t,r)=>{var i=r(5962),o=function(){},s=function(e){return e.setHeader&&"function"==typeof e.abort},a=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},u=function(e,t,r){if("function"==typeof t)return u(e,null,t);t||(t={}),r=i(r||o);var l=e._writableState,c=e._readableState,f=t.readable||!1!==t.readable&&e.readable,h=t.writable||!1!==t.writable&&e.writable,d=!1,p=function(){e.writable||y()},y=function(){h=!1,f||r.call(e)},g=function(){f=!1,h||r.call(e)},m=function(t){r.call(e,t?Error("exited with error code: "+t):null)},b=function(t){r.call(e,t)},v=function(){process.nextTick(w)},w=function(){if(!d&&(f&&!(c&&c.ended&&!c.destroyed)||h&&!(l&&l.ended&&!l.destroyed)))return r.call(e,Error("premature close"))},_=function(){e.req.on("finish",y)};return s(e)?(e.on("complete",y),e.on("abort",v),e.req?_():e.on("request",_)):h&&!l&&(e.on("end",p),e.on("close",p)),a(e)&&e.on("exit",m),e.on("end",g),e.on("finish",y),!1!==t.error&&e.on("error",b),e.on("close",v),function(){d=!0,e.removeListener("complete",y),e.removeListener("abort",v),e.removeListener("request",_),e.req&&e.req.removeListener("finish",y),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("exit",m),e.removeListener("end",g),e.removeListener("error",b),e.removeListener("close",v)}};e.exports=u},9775:(e,t,r)=>{"use strict";let i=r(2090),o=r(2224),s=r(4281),a=r(7414),{groupRedact:u,nestedRedact:l}=r(9958),c=r(1166),f=r(5392),h=i(),d=e=>e;function p(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e?!1===e.serialize?e.serialize:"function"==typeof e.serialize?e.serialize:JSON.stringify:JSON.stringify,i=e.remove;if(!0===i&&r!==JSON.stringify)throw Error("fast-redact – remove option may only be set when serializer is JSON.stringify");let f=!0===i?void 0:"censor"in e?e.censor:"[REDACTED]",p="function"==typeof f,y=p&&f.length>1;if(0===t.length)return r||d;h({paths:t,serialize:r,censor:f});let{wildcards:g,wcLen:m,secret:b}=o({paths:t,censor:f}),v=a({secret:b,wcLen:m}),w=!("strict"in e)||e.strict;return s({secret:b,wcLen:m,serialize:r,strict:w,isCensorFct:p,censorFctTakesPath:y},c({secret:b,censor:f,compileRestore:v,serialize:r,groupRedact:u,nestedRedact:l,wildcards:g,wcLen:m}))}d.restore=d,p.rx=f,p.validator=i,e.exports=p},9958:e=>{"use strict";function t({keys:e,values:t,target:r}){if(null==r)return;let i=e.length;for(var o=0;o{"use strict";let i=r(5392);function o({paths:e}){let t=[];var r=0;let o=e.reduce(function(e,o,s){var a=o.match(i).map(e=>e.replace(/'|"|`/g,""));let u="["===o[0];a=a.map(e=>"["===e[0]?e.substr(1,e.length-2):e);let l=a.indexOf("*");if(l>-1){let e=a.slice(0,l),i=e.join("."),o=a.slice(l+1,a.length);if(o.indexOf("*")>-1)throw Error("fast-redact – Only one wildcard per path is supported");let s=o.length>0;r++,t.push({before:e,beforeStr:i,after:o,nested:s})}else e[o]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(o),leadingBracket:u};return e},{});return{wildcards:t,wcLen:r,secret:o}}e.exports=o},4281:(e,t,r)=>{"use strict";let i=r(5392);function o({secret:e,serialize:t,wcLen:r,strict:i,isCensorFct:o,censorFctTakesPath:c},f){let h=Function("o",` if (typeof o !== 'object' || o == null) { ${l(i,t)} }